/* Header/outer surface only. Action controls keep their module styles. */
:is(#atlas-module-header,[data-atlas-header])>.atlas-store-identity{display:none}
[data-atlas-header-actions][hidden]{display:none!important}
:is(#atlas-module-header,[data-atlas-header])[hidden]{display:none!important}
:is(#atlas-module-header,[data-atlas-header])>:is(small,p){display:none!important}
.kitchen-bottom-options:not(:has(nav)){display:none!important}
[data-atlas-embedded-header]>.brand{display:none!important}
html[data-atlas-interface="desktop"] :is(#atlas-module-header,[data-atlas-header]){
  display:flex!important;align-items:center;justify-content:flex-end;gap:8px;width:100%!important;max-width:none!important;
  position:relative!important;top:auto!important;min-height:44px!important;max-height:none!important;
  margin:0 0 10px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
html[data-atlas-interface="desktop"] :is(#atlas-module-header,[data-atlas-header]) [data-atlas-heading]{
  position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;
}
html[data-atlas-interface="desktop"] :is(#atlas-module-header,[data-atlas-header]) :is(#account,#revision,.portal-module-status){display:none!important}
html[data-atlas-interface="desktop"] :is(#atlas-module-header,[data-atlas-header])>[data-atlas-header-actions]{position:static!important;transform:none!important;background:transparent;box-shadow:none}
html[data-atlas-interface="desktop"] :is(#atlas-module-header,[data-atlas-header])>.atlas-store-identity{display:flex!important;position:relative;align-items:center;gap:10px;min-width:0;margin-right:auto}
html[data-atlas-interface="desktop"] :is(#atlas-module-header,[data-atlas-header]) .atlas-store-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#a4e879;color:#10233f!important;font:800 14px/1 system-ui}
html[data-atlas-interface="desktop"] :is(#atlas-module-header,[data-atlas-header]) .atlas-store-name{display:block;max-width:240px;overflow:hidden;color:#10233f!important;font:700 15px/1.2 Inter,system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap}
html[data-atlas-interface="desktop"] :is(#atlas-module-header,[data-atlas-header])>.atlas-store-identity>.atlas-context-picker{display:block!important;position:absolute!important;left:0!important;top:0!important;width:38px!important;height:38px!important;margin:0!important;padding:0!important;opacity:0!important;cursor:pointer;z-index:2;min-height:38px!important}
html[data-atlas-interface="compact"] body[data-atlas-surface-active]{margin:0!important;padding:0!important;background:#10233f!important}
html[data-atlas-interface="compact"] :is(#atlas-module-surface,[data-atlas-surface="module"]){
  width:100%!important;max-width:none!important;min-width:0;box-sizing:border-box;margin:0!important;padding:16px!important;min-height:100svh;background:#fff!important;
}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header]){
  position:relative!important;top:auto!important;display:grid!important;grid-template-columns: minmax(0,1fr) auto;
  align-items:center;gap:8px 12px;width:calc(100% + 32px)!important;max-width:none!important;min-height:0!important;max-height:none;
  margin:-16px -16px 8px!important;padding:calc(12px + env(safe-area-inset-top,0px)) 20px 30px!important;
  border:0!important;border-radius:0!important;background:#10233f!important;color:#fff!important;box-shadow:none!important;
}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:24px;background:#fff;border-radius:24px 24px 0 0;pointer-events:none;
}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>.atlas-store-identity{grid-column:1;grid-row:1;display:flex;align-items:center;gap:12px;min-width:0}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header]) .atlas-store-avatar{
  display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:15px;background:#a4e879;color:#10233f!important;font:800 16px/1 system-ui;
}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header]) .atlas-store-name{color:#fff!important;font:750 17px/1.25 Inter,system-ui,sans-serif;overflow-wrap:anywhere}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>[data-atlas-heading]{grid-column:1 / -1;grid-row:2;min-width:0;width:auto!important;max-width:none!important;display:block!important;margin:0!important;padding:0!important}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header]) [data-atlas-heading]>:is(small,p,.brand){display:none!important}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header]) :is(h1,h2,[data-atlas-heading]:is(h1,h2)){
  display:block!important;margin:0!important;padding:0!important;color:#fff!important;font:700 24px/1.2 Inter,system-ui,sans-serif!important;letter-spacing:-.025em;
}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>[data-atlas-header-actions]{
  grid-column:2;grid-row:1;position:static!important;transform:none!important;display:flex!important;align-items:center;flex-wrap:wrap!important;gap:6px!important;width:auto!important;min-width:0;max-width:130px;margin:0!important;padding:0!important;
}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>label[data-atlas-header-actions]{grid-column:1 / -1;grid-row:3;max-width:none;width:100%}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header]) :is(#account,#revision,.portal-module-status){display:none!important}
html[data-atlas-interface="compact"] :is(#atlas-portal-surface,[data-atlas-surface="portal"]){padding:0!important;background:#10233f!important;gap:0!important}
html[data-atlas-interface="compact"] :is(#atlas-portal-surface,[data-atlas-surface="portal"])>:is(#atlas-module-header,[data-atlas-header]){width:100%!important;margin:0!important;padding-bottom:24px!important;flex:none}
html[data-atlas-interface="compact"] :is(#atlas-portal-surface,[data-atlas-surface="portal"])>:is(#atlas-module-header,[data-atlas-header])::after{display:none}
html[data-atlas-interface="compact"] :is(#atlas-portal-surface,[data-atlas-surface="portal"])>iframe{border-radius:24px 24px 0 0;background:#fff}
:is(#atlas-portal-surface,[data-atlas-surface="portal"]).header-collapsed>:is(#atlas-module-header,[data-atlas-header]){min-height:0!important;max-height:0!important;padding-block:0!important;margin-block:0!important}

/* Existing module navigation, desktop only. No pager or action buttons. */
html[data-atlas-interface="desktop"] :is(#app,#root,body) :is(#atlas-module-tabs,[data-atlas-tabs]):not([hidden]){
  display:flex!important;flex-direction:row!important;align-items:stretch!important;justify-content:flex-start!important;flex-wrap:nowrap!important;
  gap:22px!important;width:100%!important;max-width:100%!important;min-width:0!important;grid-template-columns:none!important;
  margin:0 0 24px!important;padding:0!important;overflow-x:auto!important;border:0!important;border-bottom:1px solid #dce2e9!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;scrollbar-width:thin;
}
html[data-atlas-interface="desktop"] :is(#app,#root,body) :is(#atlas-module-tabs,[data-atlas-tabs])>button{
  position:relative!important;display:inline-flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  width:auto!important;min-width:0!important;min-height:54px!important;margin:0!important;padding:15px 3px 17px!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#788190!important;
  font:600 14px/1.3 Inter,system-ui,sans-serif!important;letter-spacing:0!important;white-space:nowrap!important;transform:none!important;
}
html[data-atlas-interface="desktop"] :is(#app,#root,body) :is(#atlas-module-tabs,[data-atlas-tabs])>button[hidden]{display:none!important}
html[data-atlas-interface="desktop"] :is(#app,#root,body) :is(#atlas-module-tabs,[data-atlas-tabs])>button :is(span,b,strong){color:inherit!important;font-size:inherit!important;background:transparent!important;box-shadow:none!important}
html[data-atlas-interface="desktop"] :is(#app,#root,body) :is(#atlas-module-tabs,[data-atlas-tabs])>button :is(i,svg,.nav-icon){
  display:grid!important;place-items:center!important;flex:0 0 18px!important;width:18px!important;height:18px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font-style:normal;
}
html[data-atlas-interface="desktop"] :is(#app,#root,body) :is(#atlas-module-tabs,[data-atlas-tabs])>button :is(small,em){display:none!important}
html[data-atlas-interface="desktop"] :is(#app,#root,body) :is(#atlas-module-tabs,[data-atlas-tabs])>button svg{
  fill:none!important;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
html[data-atlas-interface="desktop"] :is(#app,#root,body) :is(#atlas-module-tabs,[data-atlas-tabs])>button:is(.active,[aria-current="page"],[aria-selected="true"],[aria-pressed="true"]){color:#10233f!important;font-weight:750!important}
html[data-atlas-interface="desktop"] :is(#app,#root,body) :is(#atlas-module-tabs,[data-atlas-tabs])>button:is(.active,[aria-current="page"],[aria-selected="true"],[aria-pressed="true"])::after{
  content:"";position:absolute;bottom:0;left:0;right:0;height:4px;background:#10233f;border-radius:5px 5px 0 0;
}
html[data-atlas-interface="desktop"] [data-atlas-tabs]>button:focus-visible{outline:2px solid #426ca4!important;outline-offset:-2px}
html[data-atlas-interface="desktop"] #root .shell:has(>nav[data-atlas-tabs]){display:block!important}
/* Preserve permission/session visibility even against legacy !important header rules. */
:is(#app,#root,body) :is(#atlas-module-header,[data-atlas-header])[hidden],
:is(#app,#root,body) :is(#atlas-module-header,[data-atlas-header]) [data-atlas-header-actions][hidden]{display:none!important}

/* Mobile header: profile/store above; back arrow and module title on one line. */
.atlas-profile-trigger,.atlas-header-back{display:none!important}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header]){
  grid-template-columns:44px minmax(0,1fr) 44px!important;
}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>.atlas-profile-trigger{
  display:grid!important;place-items:center;grid-column:3;grid-row:1;width:44px;height:44px;min-height:44px;
  margin:0!important;padding:10px!important;border:1px solid #ffffff35!important;border-radius:15px!important;background:#c5dcfa!important;color:#163d70!important;
  box-shadow:none;cursor:pointer;
}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>.atlas-store-identity{grid-column:1 / 3;grid-row:1;justify-content:flex-start!important;text-align:left!important;width:100%}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header]) .atlas-store-identity>.atlas-store-avatar{display:grid!important;flex-shrink:0}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>.atlas-header-back{
  display:grid!important;place-items:center;grid-column:1;grid-row:2;width:44px;height:44px;min-height:44px;
  margin:0!important;padding:10px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#fff!important;text-decoration:none;box-shadow:none!important;
}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>[data-atlas-heading]{grid-column:2 / -1;grid-row:2}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>[data-atlas-header-actions]{grid-column:1 / -1;grid-row:3;justify-self:end}
html[data-atlas-interface="compact"] :is(#app,#root,body) :is(#atlas-module-header,[data-atlas-header]) :is([data-atlas-home-link],[data-atlas-logout-control]){display:none!important}
:is(.atlas-profile-trigger,.atlas-header-back)>svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html :is(#atlas-account-panel,.atlas-account-panel){
  box-sizing:border-box;position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;
  margin:0;padding:0;border:0;border-radius:0;background:#fff;color:#172638;overflow:auto;font-family:Inter,system-ui,sans-serif;
}
.atlas-account-panel::backdrop{background:#10233f66}
html :is(#atlas-account-panel,.atlas-account-panel)>header{display:flex;align-items:center;gap:12px;padding:calc(18px + env(safe-area-inset-top,0px)) 20px 18px;border-bottom:1px solid #e0e6ed;background:#fff;position:sticky;top:0}
html :is(#atlas-account-panel,.atlas-account-panel)>header>h2{font:650 23px/1.25 Inter,system-ui,sans-serif;margin:0;color:#172638}
html :is(#atlas-account-panel,.atlas-account-panel) .atlas-profile-close{width:44px;
  height:44px;
  min-height:44px;
  padding:0!important;
  border:0!important;
  border-radius:12px;
  background:transparent!important;
  color:#172638!important;
  font-size:34px!important;
  box-shadow:none!important;
  cursor:pointer}
.atlas-account-content{padding:30px 24px 20px;text-align:center}
.atlas-account-avatar{display:grid;place-items:center;width:92px;height:92px;margin:0 auto 22px;border:4px solid #426ca4;border-radius:50%;background:#a4e879;color:#10233f;font:650 30px/1 system-ui;box-shadow:inset 0 0 0 4px white}
.atlas-account-content>h3{margin:0;font:650 23px/1.3 Inter,system-ui,sans-serif;overflow-wrap:anywhere}
.atlas-account-email{font-size:16px;color:#748096;margin:8px 0;overflow-wrap:anywhere}
.atlas-account-content dl{margin:28px 0 0;text-align:left}
.atlas-account-content dl>div{padding:17px 0;border-bottom:1px solid #e7ebf1}
.atlas-account-content dt{font-size:12px;color:#77859a;margin-bottom:7px}
.atlas-account-content dd{margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
html :is(#atlas-account-panel,.atlas-account-panel)>.atlas-profile-logout{display:block;
  width:calc(100% - 48px);
  margin:10px 24px 30px;
  padding:15px 18px;
  border:1px solid #dce3ec;
  border-radius:14px;
  background:#f4f6f9;
  color:#526174;
  font:600 15px/1.3 system-ui;
  box-shadow:none;
  text-align:left;
  cursor:pointer}
html :is(#atlas-account-panel,.atlas-account-panel)>.atlas-profile-logout[hidden]{display:none!important}
html :is(#atlas-account-panel,.atlas-account-panel)>header{justify-content:flex-start!important;background:#fff!important;text-align:left}
html :is(#atlas-account-panel,.atlas-account-panel) .atlas-profile-close{font-weight:400!important;line-height:1!important}

html[data-atlas-interface="compact"] #mobileMoreMenu [data-atlas-header] > :is(p,.mobile-settings-button){display:none!important}

html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>small[data-atlas-header-actions]{display:none!important}

html[data-atlas-interface="compact"] #logout{display:none!important}

/* More: seamless content and consistent outline icons. */
html[data-atlas-interface="compact"] #mobileMoreMenu [data-atlas-header]{border-bottom:0!important;margin-bottom:0!important}
html[data-atlas-interface="compact"] #mobileMoreMenu [data-atlas-header]::after{bottom:-1px;height:25px;border:0;box-shadow:none}
html[data-atlas-interface="compact"] #mobileMoreMenu .mobile-more-icon{font-size:0!important;color:#214c65}
html[data-atlas-interface="compact"] #mobileMoreMenu .mobile-more-icon::before{content:"";display:block;width:25px;height:25px;background:currentColor;mask:var(--atlas-more-icon) center/contain no-repeat;-webkit-mask:var(--atlas-more-icon) center/contain no-repeat}
html[data-atlas-interface="compact"] #mobileMoreMenu [data-more-group="personal"]{
  --atlas-more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%2\
0stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2021v-2a6%206%200%200%201%2012%200v2M16%205a3%203%200%200%201%200%206m2%204a5%205%200%200%201%203%204v2%22%2F%3E%3C%2Fsvg%3E");
}
html[data-atlas-interface="compact"] #mobileMoreMenu [data-more-route="/inventario/"]{
  --atlas-more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%2\
0stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%209%205-9%205-9-5%209-5Zm-9%205v9l9%205%209-5V8M12%2013v9M7.5%205.5l9%205%22%2F%3E%3C%2Fsvg%3E");
}
html[data-atlas-interface="compact"] #mobileMoreMenu [data-more-group="compras"]{
  --atlas-more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%2\
0stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203h2l3%2012h11l2-9H6%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2220%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2220%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E");
}
html[data-atlas-interface="compact"] #mobileMoreMenu [data-more-route="/albaranes/"]{
  --atlas-more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%2\
0stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h9l4%204v14H6V3Zm9%200v5h4M9%2012h7M9%2016h7%22%2F%3E%3C%2Fsvg%3E");
}
html[data-atlas-interface="compact"] #mobileMoreMenu [data-more-route="/analisis/"]{
  --atlas-more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%2\
0stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%203v18h17M8%2016v-5m5%205V7m5%209v-8%22%2F%3E%3C%2Fsvg%3E");
}

/* Shared compact header: remove legacy branding and separator seams. */
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])>.brand[data-atlas-header-actions]{display:none!important}
html[data-atlas-interface="compact"] :is(#atlas-module-header,[data-atlas-header])::after{bottom:-2px;height:26px;border:0!important;box-shadow:none!important;z-index:1}
html[data-atlas-interface="compact"] [data-atlas-surface]>.shell{border-top:0!important}
html[data-atlas-interface="compact"] [data-atlas-tabs]{border-top:0!important}

.atlas-context-picker{display:none!important}
html[data-atlas-interface="compact"] .atlas-store-identity[data-atlas-switchable]{position:relative}
html[data-atlas-interface="compact"] .atlas-store-identity>.atlas-context-picker{
 display:block!important;position:absolute!important;left:0!important;top:0!important;width:44px!important;height:44px!important;
 margin:0!important;padding:0!important;opacity:0!important;cursor:pointer;z-index:2;min-height:44px!important;
}
html[data-atlas-interface="compact"] .atlas-store-identity:focus-within>.atlas-store-avatar{outline:3px solid #fff;outline-offset:3px}
html[data-atlas-interface] #app [data-atlas-context-source]{display:none!important}
html[data-atlas-interface] #app label:has(>[data-atlas-context-source]){display:none!important}

/* Desktop portal: retain the existing sidebar, update only its palette. */
html[data-atlas-interface="desktop"] :is(#atlas-module-header,[data-atlas-header])>.brand[data-atlas-header-actions]{display:none!important}
html[data-atlas-interface="desktop"] #shell>aside{background:#10233f!important;border-right-color:#294563!important;box-shadow:6px 0 20px #10233f18!important}
html[data-atlas-interface="desktop"] #shell>aside .brand::before{background:#a4e879!important;color:#10233f!important}
html[data-atlas-interface="desktop"] #shell>aside :is(.brand strong,#modules button,.logout){color:#edf4ff!important}
html[data-atlas-interface="desktop"] #shell>aside :is(.brand small,.nav-option-icon){color:#b8cde7!important}
html[data-atlas-interface="desktop"] #shell>aside #modules button.active{background:#a4e879!important;color:#10233f!important;box-shadow:none!important}
html[data-atlas-interface="desktop"] #shell>aside #modules button.active .nav-option-icon{color:#10233f!important}
html[data-atlas-interface="desktop"] #shell>aside #modules button:hover:not(.active){background:#244564!important}
html[data-atlas-interface="desktop"] #shell>aside .nav-settings{background:#244564!important;border-color:#456380!important;color:#edf4ff!important}

html[data-atlas-interface="desktop"] #shell>aside>.brand{display:flex;align-items:center;min-height:48px;padding:5px 40px 9px 0;gap:8px}
html[data-atlas-interface="desktop"] #shell>aside>.brand>small{display:none!important}
html[data-atlas-interface="desktop"] #shell>aside>.brand::before{
 content:""!important;position:static!important;display:block!important;flex:0 0 36px;width:36px;height:36px;
 background:transparent url('/login-symbol.svg?v=20261022-logo-10') center/contain no-repeat!important;border-radius:0!important;box-shadow:none!important;
}
html[data-atlas-interface="desktop"] #shell>aside>.brand>strong{font:700 20px/1.2 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:.02em!important;text-transform:none!important;color:#fff!important}
