/* SWZ visual contract 2026-10-31. Identical header structure for Finance, Planner and Operations.
   Layout only: no authentication, plans, data or form behavior changes. */
.swd-suite-header{
 --suite-ink:#162b4c;--suite-bg:#fff;--suite-line:#dce5ef;--suite-soft:#f5f8fd;--suite-active:#e4efff;
 display:grid!important;grid-template-columns:minmax(390px,445px) minmax(0,1fr) auto!important;
 grid-template-rows:minmax(72px,auto)!important;align-items:center!important;
 gap:12px!important;width:100%!important;min-width:0!important;max-width:100%!important;
 box-sizing:border-box!important;padding:11px 16px!important;margin:0 0 6px!important;
 border:1px solid var(--suite-line)!important;border-radius:15px!important;
 background:var(--suite-bg)!important;color:var(--suite-ink)!important;overflow:visible!important;
 box-shadow:0 4px 18px #23476b0a!important;font-family:Arial,Helvetica,sans-serif!important;
}
.szf-theme-dark .swd-suite-header,.swzbp-theme-dark .swd-suite-header,.szdo-app[data-theme=dark] .swd-suite-header,
html[data-szdo-theme=dark] .swd-suite-header{--suite-bg:#152236;--suite-ink:#e6f0fd;--suite-line:#3a4b65;--suite-soft:#203451;--suite-active:#2f5079}
.swd-suite-header *, .swd-suite-header *:before,.swd-suite-header *:after{box-sizing:border-box}
.swd-suite-header .swd-suite-brand{
 grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;
 flex-direction:row!important;gap:14px!important;min-width:0!important;max-width:100%!important;
 width:100%!important;margin:0!important;padding:0!important;position:relative!important;
}
.swd-suite-header .swd-suite-logo{display:block!important;flex:0 0 clamp(190px,15vw,278px)!important;min-width:0!important;max-width:278px!important;margin:0!important;padding:0!important;text-decoration:none!important}
.swd-suite-header [data-suite-logo-frame]{display:block!important;width:100%!important;max-width:100%!important;height:66px!important;position:static!important;overflow:visible!important;min-width:0!important}
.swd-suite-header [data-suite-logo-frame] img{position:static!important;display:block!important;width:100%!important;height:66px!important;max-width:100%!important;max-height:66px!important;object-fit:contain!important;object-position:left center!important;filter:none!important;opacity:1!important;transform:none!important;margin:0!important}
.swd-suite-header [data-suite-logo-frame] img.szf-logo-dark{display:none!important}
.szf-theme-dark .swd-suite-header [data-suite-logo-frame] img.szf-logo-light:not(.szf-logo-nodark),
.swzbp-theme-dark .swd-suite-header [data-suite-logo-frame] img.szf-logo-light:not(.szf-logo-nodark),
.szdo-app[data-theme=dark] .swd-suite-header [data-suite-logo-frame] img.szf-logo-light:not(.szf-logo-nodark),
html[data-szdo-theme=dark] .swd-suite-header [data-suite-logo-frame] img.szf-logo-light:not(.szf-logo-nodark){display:none!important}
.szf-theme-dark .swd-suite-header [data-suite-logo-frame] img.szf-logo-dark,
.swzbp-theme-dark .swd-suite-header [data-suite-logo-frame] img.szf-logo-dark,
.szdo-app[data-theme=dark] .swd-suite-header [data-suite-logo-frame] img.szf-logo-dark,
html[data-szdo-theme=dark] .swd-suite-header [data-suite-logo-frame] img.szf-logo-dark{display:block!important}
.swd-suite-header .swd-suite-meta{display:flex!important;flex:1 1 auto!important;min-width:0!important;max-width:245px!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:3px!important;margin:0!important;padding:0 0 0 14px!important;border-left:1px solid var(--suite-line)!important;text-align:left!important}
.swd-suite-header .swd-suite-meta-label{font-size:12px!important;font-weight:500!important;line-height:1.2!important;color:#5d6c80!important}
.swd-suite-header .swd-suite-name{display:block!important;position:static!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;white-space:normal!important;text-align:left!important;overflow:visible!important;overflow-wrap:anywhere!important;text-overflow:clip!important;font-size:14px!important;font-weight:750!important;line-height:1.25!important;color:var(--suite-ink)!important}
.swd-suite-header .swd-suite-right{grid-column:2/4!important;grid-row:1!important;display:block!important;min-width:0!important;max-width:100%!important;width:auto!important;margin:0!important;padding:0!important}
.swd-suite-header .swd-suite-controls{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;padding:0!important;white-space:nowrap!important}
.swd-suite-header .swd-suite-areas{display:flex!important;flex:0 1 auto!important;justify-content:center!important;align-items:center!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important}
.swd-suite-header .ec-work-areas,.swd-suite-header .szdo-areas,.swd-suite-header .swzbp-product-switch{display:flex!important;flex-flow:row nowrap!important;gap:0!important;align-items:center!important;min-width:0!important;max-width:100%!important;width:auto!important;margin:0!important;padding:0!important}
.swd-suite-header .ec-work-business,.swd-suite-header .szdo-areas,.swd-suite-header .swzbp-product-switch{display:flex!important;gap:2px!important;border:1px solid var(--suite-line)!important;background:var(--suite-soft)!important;border-radius:10px!important;padding:3px!important;min-width:0!important}
.swd-suite-header .ec-work-link,.swd-suite-header .szdo-areas a,.swd-suite-header .swzbp-product-switch a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;height:40px!important;margin:0!important;padding:6px 11px!important;border:1px solid transparent!important;border-radius:8px!important;font-size:12px!important;line-height:1.2!important;font-weight:650!important;white-space:nowrap!important;text-decoration:none!important;color:var(--suite-ink)!important}
.swd-suite-header .ec-work-link.is-active,.swd-suite-header .szdo-areas a.is-active,.swd-suite-header .swzbp-product-switch a.is-active{background:var(--suite-active)!important;border-color:#86aff2!important;box-shadow:inset 0 -2px 0 #568ac9!important;color:#154b9a!important}
.swd-suite-header .ec-work-personal,.swd-suite-header .ec-work-single{display:none!important}
.swd-suite-header .ec-work-areas [data-area-help]{min-width:0!important}
.swd-suite-header .swd-suite-utilities,.swd-suite-header .swzbp-head-actions,.swd-suite-header .szdo-preferences{display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:flex-end!important;flex-flow:row nowrap!important;gap:6px!important;min-width:0!important;max-width:100%!important;width:auto!important;margin:0!important;padding:0!important}
.swd-suite-header .swzbp-head-actions>* ,.swd-suite-header .szdo-preferences>*{flex:0 0 auto!important}
.swd-suite-header .swd-suite-guide,.swd-suite-header .szdo-dropdown,.swd-suite-header .swzbp-account,.swd-suite-header .szf-head-notifications{position:relative!important;display:block!important;min-width:0!important;margin:0!important}
.swd-suite-header .swd-suite-guide>summary,.swd-suite-header .szdo-dropdown>summary,.swd-suite-header .swzbp-iconbtn,.swd-suite-header .swzbp-account>summary,.swd-suite-header .szf-head-notifications>summary{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
 width:auto!important;min-width:40px!important;min-height:40px!important;height:40px!important;
 margin:0!important;padding:7px 10px!important;border:1px solid var(--suite-line)!important;border-radius:9px!important;
 background:var(--suite-soft)!important;color:var(--suite-ink)!important;font:650 12px/1.2 Arial,Helvetica,sans-serif!important;
 cursor:pointer!important;white-space:nowrap!important;text-decoration:none!important;list-style:none!important}
.swd-suite-header summary::-webkit-details-marker{display:none!important}
.swd-suite-header .szf-head-notifications{flex:0 0 40px!important;width:40px!important}
.swd-suite-header .szf-head-notifications>summary{width:40px!important;padding:6px!important}
.swd-suite-header .swd-suite-bell{width:22px;height:22px}
.swd-suite-header .swd-suite-popover,.swd-suite-header .szdo-dropdown>div,.swd-suite-header .swzbp-account>div,.swd-suite-header .szf-notification-panel{
 position:absolute!important;z-index:35000!important;top:calc(100% + 7px)!important;right:0!important;left:auto!important;
 width:max-content!important;min-width:180px!important;max-width:calc(100vw - 26px)!important;
 padding:10px!important;border:1px solid var(--suite-line)!important;border-radius:10px!important;
 background:var(--suite-bg)!important;color:var(--suite-ink)!important;box-shadow:0 12px 30px #14233c26!important}
.swd-suite-header .swd-suite-popover a,.swd-suite-header .szdo-dropdown>div a,.swd-suite-header .swzbp-account>div a{display:block!important;min-height:35px!important;padding:8px 9px!important;white-space:normal!important;color:var(--suite-ink)!important;text-decoration:none!important}
.swd-suite-header .swd-suite-guide:not([open])>.swd-suite-popover,.swd-suite-header .szdo-dropdown:not([open])>div,.swd-suite-header .swzbp-account:not([open])>div,.swd-suite-header .szf-head-notifications:not([open])>.szf-notification-panel{display:none!important}
.swd-suite-header :focus-visible{outline:2px solid #3676d6!important;outline-offset:2px!important}
.swd-suite-header .swzbp-home-back,.swd-suite-header .szdo-back{position:absolute!important;top:-10px!important;left:0!important;font-size:11px!important;color:var(--suite-ink)!important}
@media (min-width:1101px){.swd-suite-header .ec-work-business{display:flex!important}.swd-suite-header .ec-work-picker{display:none!important}}
@media (min-width:901px) and (max-width:1380px){
 .swd-suite-header{grid-template-columns:minmax(320px,1fr) auto!important;grid-template-rows:auto auto!important;gap:6px 12px!important}
 .swd-suite-header .swd-suite-brand{grid-column:1!important;grid-row:1!important}
 .swd-suite-header .swd-suite-logo{flex-basis:220px!important}
 .swd-suite-header .swd-suite-right{grid-column:1/-1!important;grid-row:2!important;width:100%!important}
 .swd-suite-header .swd-suite-controls{justify-content:space-between!important}
}
@media (max-width:1100px){
 .swd-suite-header .ec-work-business{display:none!important}
 .swd-suite-header .ec-work-picker{display:block!important;min-width:150px!important;max-width:260px!important}
 .swd-suite-header .ec-work-picker>summary{min-height:40px!important;padding:5px 10px!important;border:1px solid var(--suite-line)!important;border-radius:9px!important;background:var(--suite-soft)!important}
 .swd-suite-header .ec-work-menu{position:absolute!important;z-index:35000!important;left:0!important;top:calc(100% + 5px)!important;width:max-content!important;min-width:230px!important;max-width:calc(100vw - 30px)!important;padding:7px!important;border:1px solid var(--suite-line)!important;background:var(--suite-bg)!important;border-radius:10px!important;box-shadow:0 10px 25px #14233c25!important}
 .swd-suite-header .ec-work-picker:not([open])>.ec-work-menu{display:none!important}
 .swd-suite-header .ec-work-picker>summary small{display:none!important}
}
@media (max-width:900px){
 .swd-suite-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;padding:10px!important}
 .swd-suite-header .swd-suite-brand{width:100%!important;gap:8px!important}
 .swd-suite-header .swd-suite-logo{flex:0 1 210px!important}
 .swd-suite-header [data-suite-logo-frame],.swd-suite-header [data-suite-logo-frame] img{height:56px!important;max-height:56px!important}
 .swd-suite-header .swd-suite-meta{max-width:150px!important;padding-left:9px!important}
 .swd-suite-header .swd-suite-right{width:100%!important}
 .swd-suite-header .swd-suite-controls{flex-wrap:wrap!important;justify-content:space-between!important;gap:7px!important}
 .swd-suite-header .swd-suite-areas{flex:1 1 180px!important;justify-content:flex-start!important}
 .swd-suite-header .swd-suite-utilities{flex:1 1 auto!important;justify-content:flex-end!important}
 .swd-suite-header .swzbp-head-actions,.swd-suite-header .szdo-preferences{flex-wrap:wrap!important;justify-content:flex-end!important}
}
@media(max-width:490px){
 .swd-suite-header .swd-suite-name{font-size:12px!important}
 .swd-suite-header .swd-suite-meta-label{font-size:10px!important}
 .swd-suite-header .swd-suite-logo{flex:0 1 155px!important}
 .swd-suite-header .swd-suite-utilities{flex:1 1 100%!important}
 .swd-suite-header .swzbp-head-actions,.swd-suite-header .szdo-preferences{justify-content:space-between!important;width:100%!important}
 .swd-suite-header .swzbp-iconbtn,.swd-suite-header .szdo-dropdown>summary,.swd-suite-header .swzbp-account>summary{font-size:11px!important;padding:6px 7px!important}
}
/* Preserve current search, Today and all individual cards; only align their collapsed strips. */
.swz-quick-status{display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)!important;align-items:start!important;gap:10px!important}
.swz-quick-status>.szf-qsearch,.swz-quick-status>.szf-today{min-width:0!important;width:100%!important;margin:0!important}
.swz-quick-status .szf-qsearch-launch,.swz-quick-status .szf-today-strip{height:48px!important;min-height:48px!important;max-height:48px!important;display:flex!important;align-items:center!important;padding:6px 12px!important;box-sizing:border-box!important;border-radius:10px!important}
@media(max-width:900px){.swz-quick-status{grid-template-columns:minmax(0,1fr)!important;gap:7px!important}}

/* SWZ layout correction: Search and Today share the first row; expandable cards span the full available width. */
@media(min-width:901px){
 body .swz-quick-status,body.szf-business-control-view .swz-quick-status,body .swzbp-shell .swz-quick-status,body .szdo-app .swz-quick-status{
   display:grid!important;flex-direction:initial!important;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)!important;
   grid-auto-flow:row!important;align-items:start!important;gap:10px!important;margin:8px 0 12px!important
 }
 body .swz-quick-status>.szf-qsearch{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important}
 body .swz-quick-status>.szf-today{display:contents!important}
 body .swz-quick-status>.szf-today>.szf-today-strip{grid-column:2!important;grid-row:1!important;min-width:0!important}
 body .swz-quick-status>.szf-today> :not(.szf-today-strip){grid-column:1/-1!important;min-width:0!important}
 body .swz-quick-status .szf-today-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:900px){
 body .swz-quick-status,body.szf-business-control-view .swz-quick-status,body .swzbp-shell .swz-quick-status,body .szdo-app .swz-quick-status{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important}
 body .swz-quick-status>.szf-qsearch{grid-column:1!important;grid-row:1!important}
 body .swz-quick-status>.szf-today{grid-column:1!important;grid-row:2!important;width:100%!important}
}
@media(min-width:901px) and (max-width:1200px){body .swz-quick-status .szf-today-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Acceso personal independiente y visible, sin confundirlo con las áreas empresariales. */
.ec-work-personal-planner{display:flex;align-items:center;min-width:0;flex:0 1 auto}
.ec-work-personal-planner .ec-work-link{min-height:40px;white-space:nowrap;border:1px solid #d7e3f4;border-radius:9px;padding:7px 10px;background:#fff;color:#234975;text-decoration:none;font-weight:650;font-size:12px}
.ec-work-personal-planner .ec-work-link:hover,.ec-work-personal-planner .ec-work-link:focus-visible{background:#edf4ff;border-color:#779fdf}
@media(max-width:1250px){.ec-work-personal-planner .ec-work-link{font-size:11px;padding:7px 8px}}
@media(max-width:900px){.ec-work-personal-planner{order:3}.ec-work-personal-planner .ec-work-link{min-height:38px}}

/* Cuatro accesos: separación adaptativa antes de que colisionen con utilidades. */
@media(min-width:901px) and (max-width:1530px){
  .swd-suite-header{grid-template-columns:minmax(320px,1fr) auto!important;grid-template-rows:auto auto!important;gap:8px!important}
  .swd-suite-header .swd-suite-brand{grid-column:1!important;grid-row:1!important}
  .swd-suite-header .swd-suite-right{grid-column:1/-1!important;grid-row:2!important;width:100%!important}
  .swd-suite-header .swd-suite-controls{justify-content:space-between!important}
}
@media(max-width:900px){
  .swd-suite-header .ec-work-areas{flex-flow:row wrap!important;gap:7px!important}
  .swd-suite-header .ec-work-personal-planner{order:3!important}
}

/* 2026-11-01: icono + valor, controles de bajo ruido visual */
.swd-suite-header .swz-head-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:15px;margin-right:2px}
.swd-suite-header .swd-suite-utilities summary,.swd-suite-header .swzbp-iconbtn{border-color:#dce5f0!important;background:#f8fafd!important;box-shadow:none!important}
.swd-suite-header .ec-work-business,.swd-suite-header .szdo-areas,.swd-suite-header .swzbp-product-switch{border-color:#e4ebf4!important;background:#f9fbfe!important}
.swd-suite-header .ec-work-link:not(.is-active),.swd-suite-header .szdo-areas a:not(.is-active),.swd-suite-header .swzbp-product-switch a:not(.is-active){background:transparent!important;border-color:transparent!important;box-shadow:none!important}
.swd-suite-header .ec-work-link.is-active,.swd-suite-header .szdo-areas a.is-active,.swd-suite-header .swzbp-product-switch a.is-active{background:#e6f0ff!important;border-color:#93b9ef!important;box-shadow:inset 0 -2px 0 #568ac9!important;color:#154b9a!important}
.swzbp-theme-dark .swd-suite-header .ec-work-business,.szdo-app[data-theme=dark] .swd-suite-header .ec-work-business{background:#203451!important;border-color:#3a4b65!important}
.swzbp-theme-dark .swd-suite-header .ec-work-link.is-active,.szdo-app[data-theme=dark] .swd-suite-header .ec-work-link.is-active{background:#2f5079!important;color:#edf5ff!important}
.szdo-app[data-theme=dark] .swd-suite-header .swd-suite-utilities summary{background:#203451!important;border-color:#3a4b65!important;color:#e6f0fd!important}
