/* Etapa 1: estructura de trabajo; acceso y documentos conservan sus estilos. */
:root{--shell-height:88px;--side-width:224px;--mobile-bar:70px}
.skip-to-content{position:fixed;left:16px;top:-100px;z-index:150;background:#072b60;color:white;padding:13px 18px;border-radius:9px}.skip-to-content:focus{top:12px}
body.workspace-mode .app-header{position:fixed;inset:0 0 auto;z-index:30;height:var(--shell-height);min-height:var(--shell-height);padding:12px 22px;gap:18px;background:#fff;border-bottom:1px solid #d6e3f0;box-shadow:0 2px 9px #072b6005}
body.workspace-mode .brand{flex:0 0 auto;gap:10px}body.workspace-mode .brand .logo{width:43px;height:43px}body.workspace-mode .brand strong{font-size:21px}body.workspace-mode .brand small{font-size:10px}
.business-context{display:flex;align-items:center;gap:10px;min-width:0;max-width:420px;margin-left:auto}.business-context #accountInfo{font-size:12px;font-weight:650;color:#234b72;margin:0;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.business-logo-link{flex:0 0 auto;width:48px;height:48px;padding:4px;border:1px solid #d7e4f0;background:#fbfdff;border-radius:10px}.business-logo-link img{display:block;width:100%;height:100%;object-fit:contain}.business-logo-link:hover{box-shadow:0 0 0 2px #8ee443}
body.workspace-mode .header-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;flex:0 0 auto;margin-left:auto;width:auto;padding-top:0;border:0}body.workspace-mode .header-actions button{font-size:12px;min-height:42px;padding:10px 12px}body.workspace-mode .session-identity{max-width:180px;text-align:right}body.workspace-mode .session-identity strong{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}body.workspace-mode .session-identity small{font-size:10px}
body.workspace-mode main{max-width:1500px;margin:0 auto 0 var(--side-width);padding:calc(var(--shell-height) + 24px) 30px 65px;min-width:0}body.workspace-mode #view{min-width:0;outline:0;scroll-margin-top:calc(var(--shell-height) + 18px)}body.workspace-mode #view h1,body.workspace-mode #view h2{scroll-margin-top:calc(var(--shell-height) + 18px)}body.workspace-mode footer{margin-left:var(--side-width)}
#desktopNavigation{position:fixed;left:0;top:var(--shell-height);bottom:0;width:var(--side-width);padding:20px 12px 25px;background:#fff;border-right:1px solid #d6e3ef;overflow-y:auto;z-index:25}
#desktopNavigation .grouped-tabs{display:block;overflow:visible;padding:0;margin:0;background:transparent;border:0;border-radius:0}#desktopNavigation .grouped-tabs>button{display:block;width:100%;text-align:left;margin:0 0 18px;padding:12px 14px;min-height:45px;font-size:13px;border-radius:10px;white-space:normal}#desktopNavigation .nav-group{position:static;margin-top:18px}#desktopNavigation .nav-group>summary{display:block;padding:0 12px 7px;color:#5b7690;font-size:10px;letter-spacing:1px;text-transform:uppercase;cursor:default;list-style:none;min-height:0;border:0;background:transparent;pointer-events:none}#desktopNavigation summary::-webkit-details-marker{display:none}#desktopNavigation .nav-menu{display:flex;position:static;flex-direction:column;min-width:0;width:auto;padding:0;gap:5px;background:transparent;border:0;box-shadow:none;border-radius:0;z-index:auto}#desktopNavigation .nav-menu button{display:block;text-align:left;width:100%;min-height:44px;padding:11px 14px;border-radius:9px;color:#385a78;font-size:13px;white-space:normal;border:1px solid transparent}#desktopNavigation .grouped-tabs button.active{background:#edf7e5;color:#194e2d;border:1px solid #d2e8c4;box-shadow:inset 3px 0 #70ca36;font-weight:750}#desktopNavigation .nav-group.has-active>summary{color:#305c82;background:transparent}
body.workspace-mode #syncPanel{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 17px;padding:0}body.workspace-mode #syncStatus{font-size:11px;line-height:1.5;margin:0;color:#58738d}#retrySync{display:flex;align-items:center;gap:7px;min-height:40px;font-size:11px;padding:8px 11px}.sync-icon{font-size:18px;line-height:1}
#mobileNavigation{position:fixed;inset:auto 0 0;z-index:35;height:calc(var(--mobile-bar) + env(safe-area-inset-bottom));padding:6px 8px calc(6px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;background:#fff;border-top:1px solid #d2e0ef;box-shadow:0 -3px 15px #072b6005}#mobileNavigation button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid transparent;background:transparent;min-height:54px;border-radius:10px;padding:6px;color:#52718b;font-size:11px}#mobileNavigation button.active{background:#edf7e5;color:#0b508d;border-color:#d7eacb}#mobileNavigation button svg{flex-shrink:0}
#moreNavigation{width:min(94vw,560px);max-height:calc(90dvh - env(safe-area-inset-bottom));padding:22px}#moreNavigation .modalhead h2{font-size:23px}#moreNavContext{line-height:1.5;margin:0 0 17px;overflow-wrap:anywhere}#moreNavigation .grouped-tabs{display:block;overflow:visible;margin:0;padding:0;border:0;background:transparent}#moreNavigation .grouped-tabs>[data-tab=inicio],#moreNavigation [data-tab=agenda],#moreNavigation [data-tab=taller]{display:none}#moreNavigation .nav-group{display:block;position:static;border:0;margin:13px 0}#moreNavigation .nav-group>summary{display:block;padding:10px 0;font-size:12px;color:#4d6e8c;background:transparent;letter-spacing:.4px}#moreNavigation .nav-menu{position:static;display:flex;min-width:0;width:100%;flex-direction:column;gap:6px;box-shadow:none;border:0;padding:0;background:transparent}#moreNavigation .nav-menu button{min-height:46px;text-align:left;padding:12px;font-size:14px;background:#f1f6fc;color:#1a4d7b;border:1px solid #dce6f1;border-radius:10px}#moreNavigation .nav-menu button.active{background:#eaf6e1;border-color:#c8e4b4;box-shadow:none;color:#194f29}
.home-pagehead{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px}.home-pagehead h1{font-size:29px;color:#072b60;letter-spacing:-.6px;margin:7px 0}.home-pagehead .eyebrow{color:#477da6;margin:0}.home-today{text-transform:capitalize;margin:0}.home-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:20px 0}.home-stat{text-align:left;background:#fff;border:1px solid #d3e1ef;border-top:3px solid #087bd4;box-shadow:0 4px 16px #072b6004;border-radius:13px;padding:17px 18px;min-width:0;cursor:pointer;min-height:130px;display:flex;flex-direction:column;align-items:flex-start}.home-stat span{color:#4e708d;font-size:12px;font-weight:600;line-height:1.5}.home-stat b{font-size:29px;color:#072b60;display:block;margin:8px 0;line-height:1.2}.home-stat small{color:#617c93;font-size:11px;font-weight:400;line-height:1.5}.home-stat:last-child{border-top-color:#70ce36}.home-stat.home-stat-warning{border-top-color:#d79828}.home-stat:hover{background:#fbfdff;border-color:#a9c8e5}.home-shortcuts{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 24px}.home-shortcuts button{min-height:44px;font-size:13px}.home-sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.home-sectionhead h2{font-size:20px;margin:0;color:#072b60}.home-sectionhead button{font-size:12px;min-height:42px;flex-shrink:0}.home-next,.home-workshop{margin:20px 0;padding:21px}.home-service{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:15px;align-items:center;border-top:1px solid #e1eaf3;padding:19px 0}.home-service:first-of-type{border-top:0}.home-date{background:#edf4fd;color:#0e568e;border-radius:9px;padding:9px 4px;text-align:center;align-self:start}.home-date span{font-size:10px;text-transform:uppercase;display:block}.home-date b{font-size:23px}.home-service h3,.home-order h3{font-size:15px;color:#123e67;line-height:1.45;margin:7px 0;overflow-wrap:anywhere}.home-service p,.home-order p{font-size:12px;color:#57748e;margin:6px 0;line-height:1.5;overflow-wrap:anywhere}.home-service small{font-size:11px;color:#52738f}.home-service-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px}.home-service-actions button{font-size:12px;padding:10px 13px;min-height:43px}.home-order{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e0eaf4;padding:18px 0;gap:18px}.home-order>div{min-width:0}.home-order>button{flex-shrink:0;font-size:12px;min-height:44px}.home-directory{border-top:1px solid #dbe6f1;margin:26px 0 10px;padding-top:22px}.home-directory h2{font-size:19px;color:#072b60;margin:0 0 9px}.home-directory .actions{flex-wrap:wrap;margin-top:14px}.home-directory button{font-size:12px;min-height:43px}
.job-context{background:#edf5ff;border:1px solid #d0e2f4;border-left:4px solid #087bd4;border-radius:12px;margin:16px 0;padding:17px 20px;overflow-wrap:anywhere}.job-context h3{font-size:19px;color:#072b60;line-height:1.45;margin:10px 0 4px}.job-context p{margin:5px 0;color:#2c5478;font-size:14px;line-height:1.55}.job-context small{color:#5b7691;font-size:12px;line-height:1.5}.job-context .context-meta{display:flex;gap:9px;flex-wrap:wrap;font-size:11px;color:#486e92;align-items:center}.job-context-compact{padding:12px 15px;margin:0 0 20px;border-left-width:3px}.job-context-compact h3{font-size:15px;margin:6px 0}.job-context-compact p{font-size:12px}.job-context-compact small{font-size:11px}.job-global-note{padding:13px 16px;border-radius:10px;background:#edf4ff;border:1px solid #d6e3f2;font-size:13px;line-height:1.6;color:#365f85}.pending-quote-list .panel{margin-top:15px}.pending-quote-list h3{font-size:17px;color:#072b60;overflow-wrap:anywhere}.pending-quote-list p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.ops-tabs button{min-height:44px}
@media(max-width:1000px){:root{--shell-height:128px}body.workspace-mode .app-header{display:grid;grid-template-columns:minmax(120px,1fr) auto 46px;grid-template-rows:55px 49px;height:var(--shell-height);padding:8px 12px;column-gap:8px;row-gap:4px;align-items:center}body.workspace-mode .brand{grid-column:1;grid-row:1;gap:7px;min-width:0}body.workspace-mode .brand .logo{width:32px;height:36px}body.workspace-mode .brand strong{font-size:18px}body.workspace-mode .brand small{font-size:9px;white-space:nowrap}body.workspace-mode .header-actions{display:contents}body.workspace-mode .session-identity{grid-column:2;grid-row:1;max-width:112px;text-align:right}body.workspace-mode .session-identity strong{font-size:11px;line-height:1.45}body.workspace-mode .session-identity small{font-size:9px}body.workspace-mode #logout{grid-column:3;grid-row:1;min-height:40px;font-size:11px;padding:9px 7px}body.workspace-mode #changeProfile{grid-column:2/4;grid-row:2;justify-self:end;min-height:40px;font-size:10px;padding:9px 10px;white-space:nowrap}body.workspace-mode .business-context{grid-column:1;grid-row:2;max-width:none;width:100%;margin:0;gap:7px;align-self:center}body.workspace-mode .business-logo-link{width:31px;height:34px;border-radius:7px;padding:2px}body.workspace-mode .business-context #accountInfo{font-size:10px;line-height:1.4}body.workspace-mode main{margin:0;max-width:none;padding:calc(var(--shell-height) + 14px) 16px calc(var(--mobile-bar) + env(safe-area-inset-bottom) + 30px)}body.workspace-mode footer{margin-left:0;padding-bottom:calc(var(--mobile-bar) + env(safe-area-inset-bottom) + 20px)}body.workspace-mode #syncPanel{flex-direction:row;align-items:center;margin-bottom:18px;gap:9px}body.workspace-mode #syncStatus{font-size:10px;min-width:0}#retrySync{min-width:40px;min-height:40px;justify-content:center;padding:8px}.sync-button-label{display:none}.home-pagehead h1{font-size:26px}.home-today{font-size:12px}.home-stats{gap:9px;margin:16px 0}.home-stat{padding:12px 10px;min-height:138px}.home-stat span{font-size:11px;line-height:1.5}.home-stat b{font-size:25px;margin:8px 0}.home-stat small{font-size:10px;line-height:1.45}.home-shortcuts{gap:7px;margin:16px 0 21px}.home-shortcuts button{font-size:12px;padding:10px 12px}.home-next,.home-workshop{padding:16px;margin:18px 0}.home-sectionhead h2{font-size:18px;line-height:1.35}.home-sectionhead button{font-size:11px;padding:9px 10px;min-height:42px}.home-service{grid-template-columns:39px minmax(0,1fr);gap:10px 12px;align-items:start;padding:17px 0}.home-date{padding:7px 3px}.home-date b{font-size:19px}.home-service-actions{grid-column:2;flex-direction:row;flex-wrap:wrap;gap:7px}.home-service-actions button{min-height:44px;font-size:11px;white-space:normal}.home-service h3,.home-order h3{font-size:14px}.home-service p,.home-order p{font-size:11px}.home-order{align-items:flex-start;flex-wrap:wrap;gap:10px}.home-order button{font-size:11px;min-height:44px}.job-context{padding:14px;border-left-width:3px}.job-context h3{font-size:17px}.job-context p{font-size:13px}.job-context small{font-size:11px}.job-context-compact h3{font-size:14px}.job-context-compact p{font-size:12px}.job-context-compact{margin-bottom:17px}.sectionbar h2{font-size:20px}.tools{padding:17px}#moreNavigation .nav-group>summary{min-height:40px}.ops-tabs button{min-height:44px}}
@media(min-width:701px) and (max-width:1000px){body.workspace-mode .brand strong{font-size:21px}body.workspace-mode .brand .logo{width:40px;height:42px}body.workspace-mode .business-context #accountInfo{font-size:12px}body.workspace-mode .session-identity strong{font-size:13px;max-width:220px}body.workspace-mode .session-identity{max-width:220px}.home-stat{min-height:126px}.home-service-actions{grid-column:3;flex-direction:column}.home-service{grid-template-columns:48px minmax(0,1fr) auto}}
@media(max-width:360px){body.workspace-mode .session-identity{max-width:87px}.home-stats{gap:7px}.home-stat{padding:11px 8px}.home-stat span{font-size:10px}.home-stat small{font-size:9px}.home-stat b{font-size:23px}.home-sectionhead{align-items:flex-start;gap:8px}.home-sectionhead h2{font-size:16px}}

#desktopNavigation .nav-group>summary{outline:none!important;box-shadow:none!important}#desktopNavigation .nav-group>summary::after{content:none!important}.home-today{text-transform:none}.home-today::first-letter{text-transform:uppercase}body.workspace-mode .item,body.workspace-mode .workshop-card{scroll-margin-top:calc(var(--shell-height) + 18px)}

/* Shared application standard, loaded last by both applications. */
/* Shared header for both applications; controls remain inside the header. */
body.workspace-mode .app-header .header-actions :is(#changeApplication,#posSwitch){display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#072b60;border:1px solid #d7e4f0;border-radius:12px;text-decoration:none;font-weight:700;font-size:12px;min-height:42px;padding:10px 12px;white-space:nowrap}
#moreNavigation [data-primary-navigation]{display:none!important}
#moreNavTitle:focus{outline:none}
@media(max-width:1000px){
body.workspace-mode{--shell-height:174px}
body.workspace-mode .app-header{display:grid;grid-template-columns:minmax(120px,1fr) auto 46px;grid-template-rows:55px 37px 44px;column-gap:8px;row-gap:4px;padding:8px 12px;height:var(--shell-height);min-height:var(--shell-height)}
body.workspace-mode .app-header .brand{grid-column:1;grid-row:1;min-width:0;gap:7px}
body.workspace-mode .app-header .brand strong{font-size:18px}
body.workspace-mode .app-header .header-actions{display:contents;width:auto;margin:0;padding:0;border:0}
body.workspace-mode .app-header .session-identity{grid-column:2;grid-row:1;justify-self:end;max-width:112px;margin:0;text-align:right}
body.workspace-mode .app-header .session-identity strong{font-size:11px;line-height:1.45}
body.workspace-mode .app-header .session-identity small{font-size:9px}
body.workspace-mode .app-header :is(#logout,#posLogout){grid-column:3;grid-row:1;min-height:40px;font-size:11px;padding:9px 7px}
body.workspace-mode .app-header .business-context{grid-column:1/3;grid-row:2;width:100%;max-width:none;margin:0;gap:7px}
body.workspace-mode .app-header :is(#internalNotices,#posNotices){grid-column:3;grid-row:2;justify-self:end;width:40px;height:36px;min-height:36px;padding:6px}
body.workspace-mode .app-header .header-actions :is(#changeApplication,#posSwitch){grid-column:1;grid-row:3;justify-self:start;min-height:40px;font-size:11px;padding:9px 10px}
body.workspace-mode .app-header #changeProfile{grid-column:2/4;grid-row:3;justify-self:end;max-width:none;min-height:40px;padding:9px 10px;white-space:nowrap;font-size:11px}
body.workspace-mode .app-header [hidden]{display:none!important}
}

/* Common brand tokens and shared controls. Business-specific layouts live separately. */
body.workspace-mode .app-header .header-actions :is(button,a){border-radius:12px;white-space:nowrap}
body.workspace-mode #syncPanel{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
body.workspace-mode #syncPanel :is(#syncStatus,#posStatus){font-size:11px;line-height:1.5;color:var(--muted);margin:0;min-width:0;overflow-wrap:anywhere}
body.workspace-mode #syncPanel :is(#retrySync,#posRefresh){display:flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:40px;padding:10px 12px;font-size:12px}
body.workspace-mode :is(#notice,#posNotice):not(:empty){background:#edf4ff;border:1px solid #ccdef4;border-radius:12px;padding:13px;margin:12px 0;color:#154477;overflow-wrap:anywhere}
.application-footer{text-align:center;color:var(--muted);font-size:12px;line-height:1.6}.application-footer p{margin:4px 0}
body.workspace-mode .app-header :is(#internalNotices,#posNotices){position:relative;display:inline-flex;align-items:center;justify-content:center}
body.workspace-mode .app-header .notification-count{position:absolute;top:0;right:-2px;padding:3px;min-width:17px;font-size:10px}
@media(max-width:1000px){body.workspace-mode #syncPanel :is(#retrySync,#posRefresh){min-width:40px;padding:8px}body.workspace-mode .app-header .brand .logo{width:32px;height:36px}body.workspace-mode .app-header .business-logo-link{width:31px;height:34px;padding:2px;border-radius:7px}}

body.workspace-mode .app-header .business-logo-link{font-weight:700}
#moreNavigation .nav-group[open]>summary:not(:focus-visible){outline:none}

.pos-search{align-items:flex-end}.pos-search>.field{margin-bottom:0}.pos-search>button{align-self:flex-end;min-height:46px;margin-bottom:0}.organization-filters>.field{margin-bottom:0}.organization-filters>button{align-self:flex-end;min-height:46px}

body.workspace-mode .tools>h1{font-size:28px;line-height:1.25;color:var(--navy);margin:0 0 22px}@media(max-width:1000px){body.workspace-mode .tools>h1{font-size:24px}}

.app-confirm-dialog{width:min(94vw,540px);max-height:90dvh;border:1px solid #d6e3f0;border-radius:18px;padding:24px}.app-confirm-dialog::backdrop{background:#072b6099}#appConfirmMessage{white-space:pre-line;line-height:1.65;color:#355575}.app-confirm-dialog .actions{justify-content:flex-end;gap:10px}.app-confirm-dialog button{min-height:44px}.app-confirm-dialog textarea{max-height:40vh}.app-confirm-dialog .modalhead h2{font-size:23px}@media(max-width:600px){.app-confirm-dialog{padding:18px}.app-confirm-dialog .actions{display:grid;grid-template-columns:1fr 1fr}}

/* Tarjetas compartidas de Mi perfil, con el mismo ancho y separación. */
.profile-panel+.profile-panel{margin-top:18px}

/* Estado de acciones no disponibles, compartido por ambas aplicaciones. */
button:disabled,input[type=submit]:disabled,.filebutton[aria-disabled=true],button[aria-disabled=true],button.plan-locked{opacity:.55!important;filter:saturate(.45);box-shadow:none!important}
button:disabled,input[type=submit]:disabled{cursor:not-allowed!important}
button[aria-disabled=true]{cursor:help}

/* Administración usa la navegación común, con una lista plana. */
#desktopNavigation .platform-menu>button{margin:0 0 5px;background:transparent;border:1px solid transparent;color:#385a78;font-weight:600}
#moreNavigation .platform-menu>button{display:block;width:100%;min-height:46px;text-align:left;margin:0 0 7px;padding:12px;font-size:14px;background:transparent;border:1px solid transparent;color:#385a78;white-space:normal}
#moreNavigation .platform-menu>button.active{background:#edf7e5;color:#194e2d;border-color:#d2e8c4}
body.platform-mode.workspace-mode{--shell-height:88px}
body.platform-mode.workspace-mode .admin-company-logo{width:150px;height:56px}
@media(max-width:1000px){body.platform-mode.workspace-mode{--shell-height:128px}body.platform-mode.workspace-mode .admin-company-logo{width:140px;height:44px}}
