/* Composición compartida Android/web. Sin fuentes, frameworks o servicios externos. */
.compact-shell{--compact-nav-height:64px}.compact-shell .sidebar{width:14.75rem;padding:20px 12px;overflow-y:auto}.compact-shell .sidebar .brand{padding:6px 14px}.compact-shell .main{margin-left:14.75rem;padding-bottom:35px}.compact-shell .mobile-primary,.compact-shell .navigation-secondary,.compact-shell .work-session-label,.compact-shell .work-breadcrumb,.compact-shell .work-context,.compact-shell .work-sync,.compact-shell .page>footer{display:none}.compact-shell .pagehead{padding:14px 22px 6px;min-height:0}.compact-shell .pagehead h1{font-size:24px;margin:0}.compact-shell .pagehead .muted{font-size:12px}.compact-shell #content{padding-top:12px}.compact-shell .topbar{position:sticky;top:0;z-index:20;min-height:64px;padding:8px 20px;gap:12px;background:var(--panel,#fff);border-bottom:1px solid #e3e9f0}.compact-shell .topbar .brand{max-width:130px}.compact-shell .topbar .brand img{max-height:40px;object-fit:contain}.compact-shell .topbar .identity,.compact-shell .work-home,.compact-shell .work-account{display:none}.compact-shell .topbar .actions{margin-left:auto;gap:6px}.compact-shell .topbar select{max-width:230px;width:auto;padding:8px;font-size:13px}.compact-shell .topbar button{min-width:42px;min-height:42px}.compact-menu{display:none}.compact-bottom{display:none}.compact-navigation{display:grid;gap:18px}.compact-navigation p{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#9aa8bd;margin:8px 14px}.compact-navigation button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;border:0;background:transparent;color:inherit;padding:11px 14px;border-radius:10px;min-height:44px;font-size:13px;box-shadow:none}.compact-navigation button.active{background:var(--soft);color:var(--accent);font-weight:700}.compact-navigation button:hover{background:#edf3fa}.compact-navigation .work-icon,.compact-navigation .service-motorcycle{width:21px;height:21px;flex:0 0 21px}.compact-drawer{padding:18px;width:min(86vw,310px);max-width:310px;height:100dvh;max-height:100dvh;margin:0;inset:0 auto 0 0;border:0;border-radius:0;overflow-y:auto;background:#fff;color:#1a2a3d}.compact-drawer::backdrop,.compact-sheet::backdrop{background:#101e35a6}.compact-drawer header{display:flex;justify-content:space-between;align-items:center}.compact-drawer>p{font-size:12px;color:#65758a}.compact-drawer button{min-height:44px}.compact-drawer .compact-navigation{margin-top:18px}.compact-orders{max-width:1040px;margin:auto}.compact-search{display:flex;gap:7px;align-items:center}.compact-search input{margin:0;min-width:0;flex:1}.compact-search button{white-space:nowrap;min-height:44px;padding:8px 12px}.compact-tabs{display:flex;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;padding:12px 0 7px;scrollbar-width:thin;position:sticky;top:64px;z-index:8;background:var(--panel,#fff)}.compact-tabs button{flex:0 0 auto;display:flex;align-items:center;gap:6px;border:1px solid #e1e7ee;background:#fff;border-radius:22px;padding:10px 13px;min-height:44px;color:#53647b;font-size:13px}.compact-tabs button[aria-selected=true]{color:#fff;background:var(--accent);border-color:var(--accent)}.compact-count{font-size:11px;min-width:19px;padding:2px 5px;border-radius:10px;background:#9cb1c333}.compact-filter-note{font-size:12px;color:#62738a;margin:6px 0 12px}.compact-row{border:1px solid #e4eaf1;border-radius:13px;margin:0 0 8px;background:#fff;overflow:hidden;content-visibility:auto;contain-intrinsic-size:auto 105px;box-shadow:0 2px 7px #132b4c04}.compact-row-main{display:flex;align-items:center;width:100%;text-align:left;border:0;border-radius:0;padding:14px;background:transparent;gap:12px;min-height:96px;color:#1c2b40}.compact-folio{display:grid;place-items:center;min-width:54px;max-width:100px;overflow-wrap:anywhere;min-height:46px;background:var(--soft);color:var(--accent);border-radius:10px;font-weight:750;font-size:12px}.compact-row-info{display:grid;gap:5px;flex:1;min-width:0}.compact-row-info>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-row-info>small{font-size:11px;color:#5b6a80}.compact-badges{display:flex;flex-wrap:wrap;gap:4px}.compact-badges .tag{font-size:10px;padding:3px 7px;line-height:1.5}.compact-row-actions{display:flex;gap:8px;padding:0 14px 10px;justify-content:flex-end}.compact-row-actions button{font-size:12px;padding:6px 12px;min-height:36px}.compact-more{display:block;margin:15px auto;min-height:44px}.compact-fab{position:fixed;bottom:24px;right:25px;width:56px;height:56px;border:0;border-radius:18px;background:var(--accent);color:white;font-size:28px;z-index:24;box-shadow:0 6px 18px #10284430}.compact-sheet{padding:0 18px 20px;border:0;border-radius:18px;max-width:680px;width:calc(100% - 32px);max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;color:#1b2a3c;background:#fff}.compact-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:#fff;z-index:10;padding:14px 0;border-bottom:1px solid #e6ebf1;margin-bottom:14px}.compact-sheet-header h2{font-size:19px;margin:0}.compact-sheet-header button{min-width:44px;min-height:44px}.compact-sheet>.card{box-shadow:none;border:0;padding:0}.compact-sheet button,.compact-sheet input,.compact-sheet select{min-height:44px}.compact-filter-sheet{max-width:450px}.compact-filter-sheet form>button{margin:6px}.compact-pos{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,350px);gap:20px;padding:16px!important}.compact-pos>h2,.compact-pos>p{display:none}.compact-pos>[data-pos-catalog]{min-width:0}.compact-checkout-home{border-left:1px solid #e5eaf1;padding-left:18px}.compact-checkout-content .service-fields{padding:0;border:0;box-shadow:none;margin-bottom:14px}.compact-pos .pos-toolbar{padding:0 0 12px}.compact-pos .pos-toolbar>label{font-size:12px}.compact-pos .pos-categories{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:6px}.compact-pos .pos-categories button{flex:0 0 auto;min-height:44px}.compact-pos .pos-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:10px}.compact-pos .productline{position:relative;display:flex;align-items:flex-start;min-height:126px;padding:14px 42px 14px 14px;border:1px solid #e0e6ee;border-radius:12px;content-visibility:auto;contain-intrinsic-size:auto 126px}.compact-pos .productline>label{font-size:14px;margin:0}.compact-pos .productline>label small{font-size:11px}.compact-pos .productline>label small:nth-of-type(n+2),.compact-pos .productline>input,.compact-pos .productline>.pos-options{display:none}.compact-product-open{position:absolute;right:8px;bottom:8px;min-width:34px;min-height:34px;border-radius:50%;padding:3px;background:var(--soft);color:var(--accent)}.compact-product-dialog .productline{display:block;padding:0;border:0;content-visibility:visible}.compact-product-dialog .productline>input,.compact-product-dialog .productline>.pos-options,.compact-product-dialog .productline>label small{display:block}.compact-product-dialog .compact-product-open{display:none}.compact-product-dialog .pos-options fieldset{min-width:0}.compact-cart{display:none}.compact-cart>span{display:grid;gap:2px}.compact-cart small{font-size:11px}.compact-cart strong{font-size:19px}.compact-hybrid{font-size:12px;margin:8px 0 12px}.compact-hybrid>summary{cursor:pointer;padding:10px;border:1px solid #e3e9f0;border-radius:10px}.compact-shell .owner-intervention{font-size:11px;margin:5px 20px;padding:7px}.compact-shell .work-intro{margin-bottom:12px;padding:10px}.compact-shell .work-intro p{font-size:12px}.compact-shell .settings-hub>p{font-size:12px}.compact-shell .settings-hub>.card{margin-bottom:12px}.compact-shell .settings-hub details>summary{cursor:pointer;min-height:44px;padding:12px;font-weight:650}.compact-shell .work-metrics{gap:8px}.compact-shell .work-metric{padding:12px}.compact-shell footer.page{font-size:10px;padding:15px}.compact-shell .laundry-heading{margin-bottom:8px}.compact-shell .laundry-business-logo{max-height:44px;width:auto}.compact-shell .laundry-heading p{display:none}#toast:has(button){display:flex;align-items:center;gap:12px}#toast button{color:inherit;border:1px solid currentColor;background:transparent;padding:5px;min-width:36px}
@media(max-width:1000px){.compact-shell .sidebar{display:none}.compact-shell .main{margin-left:0}.compact-menu{display:block}.compact-shell .topbar{padding:7px 12px}.compact-shell #content{padding:12px 14px}.compact-shell .pagehead{padding:12px 14px 0}.compact-shell .topbar .brand{display:none}.compact-shell .topbar .actions{width:100%;justify-content:flex-end}.compact-shell .topbar select{max-width:210px}.compact-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;min-height:64px;padding:4px 8px max(4px,env(safe-area-inset-bottom));justify-content:space-around;background:#fff;border-top:1px solid #e1e7ee;z-index:30}.compact-bottom button{display:grid;justify-items:center;gap:4px;padding:6px 14px;background:transparent;border:0;box-shadow:none;font-size:11px;color:#56657a;border-radius:12px;min-width:75px}.compact-bottom button[aria-current=page]{color:var(--accent);background:var(--soft)}.compact-bottom svg{width:23px;height:23px}.compact-shell .main{padding-bottom:90px}.compact-fab{bottom:calc(84px + env(safe-area-inset-bottom));right:18px}.compact-shell footer.page{padding-bottom:15px}.compact-sheet{margin:auto 0 0;width:100%;max-width:none;max-height:88dvh;border-radius:20px 20px 0 0;padding:0 16px calc(20px + env(safe-area-inset-bottom))}.compact-sheet::backdrop{background:#101e3590}.compact-search button{font-size:12px;padding:8px}.compact-row-actions{display:none}.compact-row.swiped .compact-row-actions{display:flex}.compact-pos{grid-template-columns:1fr}.compact-checkout-home{display:none}.compact-cart{display:flex;position:fixed;bottom:calc(64px + env(safe-area-inset-bottom));left:0;right:0;background:#fff;z-index:29;padding:10px 16px;border-top:1px solid #e2e8f0;justify-content:space-between;gap:12px;align-items:center}.compact-shell:has(.compact-pos) .main{padding-bottom:168px}.compact-shell .laundry-cartbar{bottom:calc(64px + env(safe-area-inset-bottom));z-index:29}.compact-shell:has(.laundry-pos) .main{padding-bottom:165px}.compact-shell .laundry-pos .laundry-ticket-home{display:none}.compact-shell .laundry-cartbar{display:flex}.compact-shell .laundry-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.compact-shell .laundry-service-tile{min-height:95px;padding:10px}.compact-shell .laundry-service-tile strong{font-size:12px}.compact-shell .owner-intervention{margin:5px 14px}.compact-shell .pagehead h1{font-size:21px}.compact-shell .topbar [data-action] span{display:none}.compact-tabs{top:60px}.compact-filter-sheet{max-width:none}}
@media(prefers-reduced-motion:reduce){.compact-shell *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.compact-shell{grid-template-columns:14.75rem minmax(0,1fr)}.compact-shell .main{margin:0;max-width:none;padding:0 22px 35px}.compact-shell .topbar{margin-bottom:0}.compact-shell .sidebar .compact-navigation button:hover{color:#172a43}.compact-shell .laundry-tiles .laundry-tile-compact>button{min-height:104px}.compact-shell .pagehead{margin-bottom:8px}.compact-pos [data-pos-category]>h3{font-size:15px;margin:8px 0}.compact-shell .laundry-catalog-tools{top:64px}.compact-pos .compact-checkout-content>h3{font-size:16px}.compact-shell .topbar .actions{flex-wrap:nowrap} @media(max-width:1000px){.compact-shell{display:block}.compact-shell .main{padding:0 0 100px}.compact-shell:has(.compact-pos) .main,.compact-shell:has(.laundry-pos) .main{padding-bottom:160px}.compact-shell .sidebar{display:none}.compact-shell .topbar select{min-width:0;max-width:190px}.compact-shell .laundry-catalog-tools{position:static}}

.compact-shell .topbar .actions .work-home,.compact-shell .topbar .actions .work-account{display:none}.compact-shell .topbar{border-radius:0}.compact-pos .pos-toolbar>[data-pos-review]{display:none}.compact-shell .settings-hub>.card{margin-bottom:10px}.compact-shell .sidebar .brand{margin-bottom:18px}

.compact-shell .settings-link{padding:14px;min-height:80px;gap:5px}.compact-shell .settings-link strong{font-size:14px}.compact-shell .settings-link>span{font-size:12px;line-height:1.4}.compact-shell .settings-cards{gap:8px}.compact-shell .settings-hub>.muted{margin-bottom:10px}


.compact-product-photo{width:64px;height:64px;border-radius:10px;object-fit:cover;margin-right:8px;flex:0 0 64px}.compact-product-dialog .compact-product-photo{width:100%;height:150px;margin:0 0 12px;object-fit:contain}.compact-pos .productline:has(.compact-product-photo){min-height:140px}

/* Las tarjetas compactas no usan la columna de cantidad del formulario clásico.
   Limitar a hijos del catálogo: la ficha de personalización conserva sus campos. */
.compact-pos [data-pos-catalog] .pos-products{grid-template-columns:repeat(auto-fill,minmax(min(145px,100%),1fr));align-items:stretch}
.compact-pos [data-pos-catalog] .pos-products>.productline{
 display:flex;flex-direction:column;align-items:stretch;gap:8px;
 width:100%;min-width:0;min-height:150px;padding:12px 12px 58px;
 grid-template-columns:none;grid-column:auto;contain-intrinsic-size:auto 150px
}
.compact-pos [data-pos-catalog] .pos-products>.productline[hidden]{display:none}
.compact-pos [data-pos-catalog] .pos-products>.productline>label{
 display:block;width:100%;min-width:0;line-height:1.35;word-break:normal;overflow-wrap:break-word
}
.pos-product-name{display:block}
.pos-product-price{display:block;white-space:nowrap;font-variant-numeric:tabular-nums}
.pos-product-stock{display:block;margin-top:3px;font-weight:500}
.compact-pos .pos-products .pos-product-price{font-size:15px;font-weight:700;color:var(--ink,#1b2a3c);margin-top:8px}
.compact-pos .pos-products [data-sold-out=true] .pos-product-stock{color:#b4232e;font-weight:650}
.compact-pos .pos-products>.productline>.compact-product-photo{width:100%;height:96px;flex:0 0 auto;margin:0;object-fit:contain}
.compact-pos .pos-products .compact-product-open{width:44px;height:44px;min-width:44px;min-height:44px;font-size:24px;line-height:1}
.compact-pos .pos-products .compact-product-open:disabled{opacity:1;background:#f4f5f7;color:#8993a1;cursor:not-allowed}
.compact-pos .pos-toolbar{position:static}
.compact-product-dialog .productline:has(.pos-options){display:block;grid-template-columns:none;min-width:0;padding:0;border:0}
@media(max-width:360px){.compact-pos{padding:10px!important}.compact-pos [data-pos-catalog] .pos-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.compact-pos [data-pos-catalog] .pos-products>.productline{padding:10px 10px 58px}.compact-pos .pos-products .pos-product-price{font-size:14px}.compact-shell .topbar{gap:6px;padding:7px 8px}.compact-shell .topbar .actions{gap:4px}.compact-shell .topbar select{max-width:132px}}

.compact-shell .topbar [data-compact-inbox][hidden]{display:none!important}
.compact-drawer .compact-hybrid{margin-top:18px;font-size:12px}
.compact-drawer #hybrid-status{margin:0;padding:12px}
.compact-drawer #hybrid-status button{width:100%;margin:4px 0}
.compact-sync-attention{margin:8px 14px;color:#854d0e;background:#fff8e5;border-radius:10px}
.compact-sync-attention>summary{min-height:44px;font-weight:650}
@media(max-width:1000px){.compact-shell .topbar{min-height:58px}.compact-shell .topbar #company{flex:1;max-width:200px;text-overflow:ellipsis}.compact-shell .laundry-heading h2{font-size:21px}.compact-shell .laundry-cartbar{padding:8px 12px;gap:10px;min-height:66px}.compact-shell .laundry-cartbar>button{font-size:14px;white-space:nowrap;min-height:44px;padding:10px 14px}.compact-shell .laundry-cartbar strong{font-size:22px}.compact-shell .laundry-cartbar small{font-size:12px}.compact-shell .laundry-heading{gap:10px}.compact-shell .laundry-pos .card{padding:14px}}
@media(max-width:480px){.compact-shell .laundry-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-shell .laundry-tile button strong{overflow-wrap:break-word;word-break:normal}.compact-shell .laundry-tile button span:last-child{white-space:nowrap}}

@media(max-width:1000px) {
  /* El .card hereda backdrop-filter (theme-ui.css) y eso ancla a su caja a los hijos position:fixed:
     sin esto la barra del carrito queda a mitad de la lista y tapa productos. Lo mismo pasa con el
     transform/filter de .card:active: al tocar "Revisar pedido" la barra saltaba y el clic caía en el pie de página. */
  html .compact-shell form.compact-pos,
  html .compact-shell form.compact-pos:active {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    filter: none;
  }

  /* La barra inferior mide 72px; el carrito debe apoyarse justo encima. */
  .compact-cart {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .compact-bottom {
    display: flex;
    position: fixed;
    top: auto; /* anula el nav{top:0} global de theme-ui.css */
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px; /* Altura fija explícita */
    min-height: unset; /* Anular min-height heredado */
    max-height: 72px; /* Evitar expansión */
    padding: 4px 8px max(4px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center; /* CLAVE: centrar en lugar de stretch */
    background: #fff;
    border-top: 1px solid #e1e7ee;
    z-index: 30;
  }

  .compact-bottom button {
    display: grid;
    justify-items: center;
    align-content: center; /* Centrar contenido verticalmente */
    gap: 4px;
    padding: 6px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 11px;
    color: #56657a;
    border-radius: 12px;
    min-width: 75px;
    height: 56px; /* Altura fija para los botones */
    flex-shrink: 0; /* Evitar compresión */
  }

  .compact-bottom button[aria-current=page] {
    color: var(--accent);
    background: var(--soft);
  }

  .compact-bottom svg {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
  }

  /* Padding inferior unificado: 72px de barra + 20px de margen + safe-area */
  .compact-shell .main {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

/* Menú lateral de escritorio.
   1) El selector global nav{} de theme-ui.css pintaba de gris claro el <nav> sobre el fondo azul del
      sidebar (texto blanco casi ilegible). 2) Un texto largo estiraba la columna del grid más allá del panel. */
.compact-shell .sidebar nav.compact-navigation {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  padding: 0;
  position: static;
}

.compact-navigation {
  grid-template-columns: minmax(0, 1fr);
}

.compact-navigation > *,
.compact-navigation button {
  min-width: 0;
}

.compact-shell .sidebar .compact-navigation button,
.compact-navigation button {
  /* style.css fija nowrap+hidden+ellipsis, pero el ellipsis no actúa en un botón flex con icono: el texto solo se cortaba. */
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}

/* Panel del repartidor en móvil: el recuadro de seguridad respeta el margen del contenido y el botón de
   ayuda va anclado en una barra propia sobre la barra inferior (antes flotaba y tapaba texto). */
@media(max-width:1000px) {
  .compact-shell #safety-hud {
    padding: 12px 14px 0;
  }

  .compact-shell #safety-hud .safety-driver-controls {
    margin-left: 0;
    margin-right: 0;
  }

  /* "Escanear comanda" y "Permisos del dispositivo" también cuelgan directo del main, sin el margen de #content. */
  .compact-shell .dispatch-driver-tools {
    margin-left: 14px;
    margin-right: 14px;
  }

  html .compact-shell .safety-driver-controls .safety-panic {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    justify-content: center;
    text-align: center;
    bottom: calc(72px + 10px + env(safe-area-inset-bottom, 0px));
    min-height: 52px;
    font-size: .95rem;
  }

  .compact-shell .main:has(.safety-panic) {
    padding-bottom: calc(72px + 10px + 52px + 28px + env(safe-area-inset-bottom, 0px));
  }
}

@media(max-width:1000px){html[data-env=equipo] .compact-shell .laundry-cartbar{bottom:calc(72px + env(safe-area-inset-bottom,0px))}}

/* Computadora: el botón de ayuda va anclado abajo, junto al contenido (no flota sobre los botones). */
@media(min-width:1001px) {
  html .compact-shell .safety-driver-controls .safety-panic {
    left: calc(14.75rem + 14px);
    right: 14px;
    bottom: 14px;
    width: auto;
    max-width: none;
    min-height: 52px;
    justify-content: center;
    text-align: center;
    font-size: .95rem;
  }

  .compact-shell .main:has(.safety-panic) {
    padding-bottom: calc(14px + 52px + 28px);
  }
}

.compact-drawer .owner-logos-drawer{padding:4px 14px 12px}.compact-drawer .owner-logos .owner-logo-btn{background:#fff;border-color:#d6dbe6}.compact-drawer .owner-logos .owner-logo-negocio{background:#f4f6fa;border-color:#d6dbe6}.compact-drawer .owner-logos .owner-logo-btn[aria-current=page]{border-color:#f5b82e}
.compact-drawer .owner-logos .owner-logo-nexo{background:#f4f6fa;border-color:#d6dbe6;color:#152033}

/* Barra inferior flotante en píldora (tema claro). El desenfoque va en la propia barra fija, nunca en un contenedor. */
html[data-env=dueno] .compact-bottom{left:14px;right:14px;bottom:calc(10px + env(safe-area-inset-bottom));min-height:68px;padding:6px;border:1px solid rgba(255,255,255,.85);border-radius:34px;background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);box-shadow:0 12px 34px rgba(36,46,92,.16),0 2px 6px rgba(36,46,92,.06)}
html[data-env=dueno] .compact-bottom button{border-radius:28px;color:#4d5873;min-width:84px;padding:8px 14px}
html[data-env=dueno] .compact-bottom button[aria-current=page]{background:#17244d;color:#fff;box-shadow:0 6px 14px rgba(23,36,77,.28)}
html[data-env=dueno] .compact-fab{bottom:calc(98px + env(safe-area-inset-bottom));border-radius:22px;background:#17244d;box-shadow:0 10px 24px rgba(23,36,77,.30)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html[data-env=dueno] .compact-bottom{background:#fff}}
@media (prefers-reduced-transparency:reduce){html[data-env=dueno] .compact-bottom{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}
html[data-env=dueno] .compact-tabs button[aria-selected=true]{background:#17244d;border-color:#17244d;color:#fff;box-shadow:0 6px 14px rgba(23,36,77,.22)}
html[data-env=dueno] .compact-cart{left:14px;right:14px;bottom:calc(86px + env(safe-area-inset-bottom));border:1px solid rgba(255,255,255,.85);border-radius:22px;background:rgba(255,255,255,.80);-webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);box-shadow:0 10px 28px rgba(36,46,92,.14)}
@media (prefers-reduced-transparency:reduce){html[data-env=dueno] .compact-cart{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media(max-width:1000px){html[data-env=dueno] .compact-shell .safety-driver-controls .safety-panic{bottom:calc(92px + env(safe-area-inset-bottom,0px))}html[data-env=dueno] .compact-shell .main:has(.safety-panic){padding-bottom:calc(92px + 52px + 28px + env(safe-area-inset-bottom,0px))}}

/* Equipo (todos menos el dueño): barra y carrito prácticos, sin desenfoque */
html[data-env=equipo] .compact-bottom,html[data-env=equipo] .compact-cart{-webkit-backdrop-filter:none;backdrop-filter:none}
/* Revisión de pantallas: .sr-only no existía en la app del equipo (solo en customer-menu.css) y las etiquetas ocultas se veían; sin botón flotante en computadora del equipo; pestañas sin franja blanca */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:1001px){html[data-env=equipo] .compact-fab{display:none}}
html[data-env=equipo] .compact-tabs{background:var(--bg,#f2f5fa)}
/* ---- Botón de emergencia: círculo pequeño "SOS", siempre visible a la derecha y sobre la barra inferior (ya no es una barra de ancho completo) ---- */
html .compact-shell .safety-driver-controls .safety-panic[data-safety-panic]{left:auto;right:14px;width:56px;height:56px;min-height:56px;max-width:none;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#b3202f;color:#fff;border:3px solid #fff;font-size:1rem;font-weight:800;letter-spacing:.04em;line-height:1;box-shadow:0 4px 14px rgba(122,20,42,.5),0 0 0 2px #b3202f;bottom:calc(72px + 14px + env(safe-area-inset-bottom,0px))}
html .compact-shell .safety-driver-controls .safety-panic[data-safety-panic]:focus-visible{outline:4px solid #2563eb;outline-offset:3px}
.compact-shell .main:has(.safety-panic){padding-bottom:calc(72px + 14px + 56px + 18px + env(safe-area-inset-bottom,0px))}
@media(min-width:1001px){html .compact-shell .safety-driver-controls .safety-panic[data-safety-panic]{right:22px;bottom:22px}.compact-shell .main:has(.safety-panic){padding-bottom:calc(22px + 56px + 24px)}}
html[data-env=dueno] .compact-shell .main:has(.safety-panic){padding-bottom:calc(92px + 56px + 20px + env(safe-area-inset-bottom,0px))}
@media(min-width:1001px){html[data-env=dueno] .compact-shell .main:has(.safety-panic){padding-bottom:calc(22px + 56px + 24px)}}
@media(max-width:1000px){html[data-env=dueno] .compact-shell .safety-driver-controls .safety-panic[data-safety-panic]{bottom:calc(92px + 14px + env(safe-area-inset-bottom,0px))}}
.pay-locked{border:0;padding:0;margin:0}
.compact-drawer .compact-navigation{position:static;z-index:auto}

/* ===== Accesos del menú (teléfono: cajón lateral; escritorio: barra lateral): tipografía, iconos en baldosa y ritmo ===== */
.compact-navigation>div{margin:0;padding:0}
.compact-navigation>div+div{margin-top:10px;padding-top:6px;border-top:1px solid rgba(128,138,158,.28)}
.compact-navigation>div>p{margin:14px 14px 6px;font-size:.7rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;line-height:1.2;color:inherit;opacity:.74}
.compact-navigation>div:first-child>p{margin-top:6px}
.compact-navigation button[data-page]{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:6px 12px;border-radius:14px;font-size:1.02rem;font-weight:600;letter-spacing:.005em;text-align:left}
.compact-navigation button[data-page]>span{flex:1;min-width:0;overflow-wrap:break-word;hyphens:manual;-webkit-hyphens:manual}
.compact-navigation button[data-page]>svg{flex:0 0 auto;box-sizing:border-box;width:38px;height:38px;padding:9px;border-radius:12px;background:rgba(120,130,150,.14);background:color-mix(in srgb,currentColor 9%,transparent);color:inherit;transition:background-color .18s}
.compact-navigation button[data-page]>svg.service-motorcycle{padding:9px 7px}
.compact-navigation button[data-page][aria-current=page]>svg,.compact-navigation button[data-page].active>svg{background:rgba(80,100,135,.2);background:color-mix(in srgb,currentColor 16%,transparent);color:inherit}
.compact-navigation button[data-page][aria-current=page],.compact-navigation button[data-page].active{font-weight:700}
.compact-navigation button[data-page]:focus-visible{outline:2px solid #0b63d0;outline-offset:2px}
.compact-drawer>header>strong{font-family:var(--font-display);font-size:1.5rem;font-weight:700;letter-spacing:.01em}
.compact-drawer .compact-navigation{padding:4px 8px 18px}

/* Pantallas anchas: el contenido no se estira sin fin; se centra con un ancho cómodo de lectura */
@media (min-width:1700px){.compact-shell .main{max-width:100rem;margin-inline:auto}}

/* Carrito: solo aparece cuando hay productos (con 0 productos tapaba la lista); el select de la barra superior usa 16 px para que Safari de iPhone no acerque la pantalla al tocarlo */
.compact-cart[hidden]{display:none!important}
@media(max-width:1000px){.compact-shell .topbar select{font-size:16px}}

/* ===== Punto de venta moderno: tarjeta completa tocable, nombre en 2 líneas, precio destacado, existencias con color y «+» claro ===== */
.compact-pos .productline{min-height:142px;padding:14px;overflow:hidden}
.compact-pos .productline>label{min-width:0;padding-right:0}
.compact-pos .productline .compact-product-open{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;padding:0;border-radius:inherit;background:transparent;color:transparent;border:0;z-index:2;cursor:pointer;font-size:0}
.compact-pos .productline .compact-product-open:focus-visible{outline:3px solid var(--accent-ring,#2563eb);outline-offset:-3px}
.compact-pos .pos-products .productline .compact-product-open:disabled{cursor:not-allowed;background:transparent;color:transparent;opacity:1}
.compact-pos .productline::after{content:"+";position:absolute;right:10px;bottom:10px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--accent,#b4232c);color:#fff;font-size:1.5rem;line-height:1;font-weight:500;pointer-events:none;box-shadow:0 4px 10px rgba(0,0,0,.2)}
.compact-pos .productline[data-sold-out="true"] .pos-product-name,.compact-pos .productline[data-sold-out="true"] .pos-product-price{opacity:.62}
.compact-pos .pos-products .productline[data-sold-out="true"] .pos-product-stock.agotado{color:#fff;font-weight:700}
.compact-pos .productline[data-sold-out="true"]::after{display:none}
.compact-product-dialog .productline::after{display:none}
.compact-pos .pos-product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:650;font-size:.98rem;line-height:1.25;overflow-wrap:anywhere}
.compact-pos .productline>label small:first-of-type{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:6px}
.compact-pos .pos-product-price{font-size:1.1rem;font-weight:750;font-variant-numeric:tabular-nums;color:var(--ink,#152033)}
.compact-pos .pos-product-stock{font-size:.8rem;color:var(--ink-muted,#566379)}
.compact-pos .pos-product-stock.poco,.compact-pos .pos-product-stock.agotado{display:inline-block;padding:2px 9px;border-radius:999px;font-weight:700}
.compact-pos .pos-product-stock.poco{background:#ffe6b3;color:#6b3f00}
.compact-pos .pos-product-stock.agotado{background:#b3262f;color:#fff}
/* Pantallas de inicio del puesto: en teléfono sobran las frases explicativas; el título y las acciones bastan */
@media(max-width:700px){.compact-shell .work-welcome p,.compact-shell .work-intro p{display:none}}
.dispatch-loading{margin:0;padding:14px 4px}
