/* workspace.css – Aprikos Workspace: the staff area as a full-screen place of work (workspace.js).
   Same palette and type as the rest of the site (site.css variables); only layout, rhythm and states are added. */

/* ---- full screen: no public header, footer or preview bar while the workspace shell is on screen ---- */
body:has(#pg-admin.active .ad-shell)>header,
body:has(#pg-admin.active .ad-shell)>footer,
body:has(#pg-admin.active .ad-shell) #protoBar{display:none!important}
body:has(#pg-admin.active .ad-shell){scroll-padding-top:0}
#pg-admin .ad-shell{min-height:100vh;grid-template-columns:248px minmax(0,1fr);transition:grid-template-columns .18s}
#pg-admin .ad-rail{height:100vh;overflow-y:auto;scrollbar-width:thin}
#pg-admin .ad-main{min-width:0}
/* the floating pill is replaced by the bell in the bar */
body:has(#pg-admin.active .ad-shell) #adFloat{display:none}

/* ---- folded rail: icons only, badges stay (wide screens only – on small screens the rail is a strip) ---- */
@media (min-width:901px){
  #pg-admin .ad-shell.ws-mini{grid-template-columns:68px minmax(0,1fr)}
  .ws-mini .ad-rail{padding-left:10px;padding-right:10px}
  .ws-mini .ad-brand small,.ws-mini .ad-brand b,.ws-mini .ad-nav a span,.ws-mini .ad-nav a em,.ws-mini .ad-grph,.ws-mini .ad-me{display:none}
  .ws-mini .ad-brand{padding:0 0 12px;margin-bottom:10px;min-height:8px}
  .ws-mini .ad-nav a{justify-content:center;padding:11px 0;position:relative}
  .ws-mini .ad-grpb{display:flex;margin:0;padding:0;border:0}
  .ws-mini .ad-nav a .ad-badge{position:absolute;top:3px;right:6px;min-width:16px;height:16px;font-size:10px;padding:0 4px}
}

/* ---- the compact bar inside the work area ---- */
.ws-bar{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:8px;padding:8px 22px;background:rgba(246,250,250,.92);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.ws-sp{flex:1}
.ws-ic,.ws-lang,.ws-av{display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:36px;border:1px solid transparent;border-radius:10px;background:none;color:var(--deeper,#0A2E2F);cursor:pointer;position:relative;font-family:Jost;font-weight:600;font-size:.8rem;letter-spacing:.06em}
.ws-ic svg,.ws-search svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ws-ic:hover,.ws-lang:hover{background:#fff;border-color:var(--line)}
.ws-ic em{position:absolute;top:1px;right:0;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#E8A33D;color:#0A2E2F;font-style:normal;font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center}
.ws-search{display:flex;align-items:center;gap:9px;height:36px;min-width:0;flex:0 1 420px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);cursor:text;font:inherit;font-size:.88rem;text-align:left}
.ws-search span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-search:hover{border-color:var(--deep)}
.ws-av{border-radius:50%;width:36px;background:var(--deeper,#0A2E2F);color:#fff;font-size:.9rem;letter-spacing:0}
.ws-prof{position:relative}
.ws-menu{position:absolute;right:0;top:44px;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 40px rgba(10,46,47,.16);padding:14px;display:flex;flex-direction:column;gap:3px;z-index:70}
.ws-menu b{font-family:Jost;font-size:.95rem}
.ws-menu small{color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
.ws-menu a{margin-top:6px;padding:8px 10px;border-radius:9px;color:var(--deeper,#0A2E2F);text-decoration:none;font-family:Jost;font-weight:500;font-size:.9rem}
.ws-menu a:hover{background:var(--bg-soft)}
.ws-bar :focus-visible,.ws-home :focus-visible,.ws-sales :focus-visible,.ws-int summary:focus-visible{outline:2px solid #3AC0C3;outline-offset:2px}

/* ---- start page ---- */
.ws-hello{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:4px 0 18px}
.ws-hello small{display:block;font-family:Jost;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--deep);margin-bottom:6px}
.ws-hello h2{font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.15;margin:0}
.ws-hello p{margin:4px 0 0;color:var(--muted);font-size:.92rem}
.ws-home{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:22px}
.ws-home .ws-A,.ws-home .ws-M,.ws-home .ws-onb{grid-column:1/-1}
.ws-onb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 22px}
.ws-onb li{display:flex;align-items:center;gap:8px;font-size:.9rem}
.ws-onb li i{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-size:12px;font-weight:700;background:var(--bg-soft);color:var(--muted)}
.ws-onb li.ok i{background:#E3F4EC;color:#1B7F5C}
.ws-onb li.todo span{font-weight:600}
.ws-onb li small{color:var(--muted);font-weight:400}
.ws-m365{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ws-mcol h4{margin:0 0 8px;font-size:.9rem}
.ws-ev,.ws-mail{list-style:none;margin:0;padding:0}
.ws-ev li,.ws-mail li{display:grid;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:.88rem;align-items:center}
.ws-ev li{grid-template-columns:96px minmax(0,1fr) auto}
.ws-mail li{grid-template-columns:minmax(0,1fr) auto}
.ws-ev li:first-child,.ws-mail li:first-child{border-top:0}
.ws-ev time,.ws-mail time{color:var(--muted);font-size:.8rem;white-space:nowrap}
.ws-ev li.ext time{color:var(--deep);font-weight:600}
.ws-ev a,.ws-mail a{color:inherit;text-decoration:none;font-weight:500;overflow-wrap:anywhere}
.ws-ev a:hover,.ws-mail a:hover{color:var(--deep);text-decoration:underline}
.ws-ev small,.ws-mail small{display:block;color:var(--muted);font-size:.78rem}
.ws-mail li.unread a{font-weight:700}
.ws-mfoot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);font-size:.85rem}
.ws-mfoot a{color:var(--deep)}
@media (max-width:900px){.ws-m365{grid-template-columns:1fr}.ws-ev li{grid-template-columns:80px minmax(0,1fr)}.ws-ev li>.btn{grid-column:2;justify-self:start}}
.ws-sec{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;min-width:0}
.ws-sales{margin:0 0 18px}
.ws-h{margin-bottom:12px}
.ws-h h3{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;font-size:1.05rem;line-height:1.3}
.ws-h h3 i{flex:none;width:22px;height:22px;border-radius:7px;background:var(--bg-soft);color:var(--deep);font-style:normal;font-family:Jost;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.ws-h h3 em{font-style:normal;font-family:Jost;font-weight:500;font-size:.8rem;color:var(--muted)}
.ws-h small{display:block;margin-top:4px;color:var(--muted);font-size:.82rem;line-height:1.45}
.ws-list{display:flex;flex-direction:column}
.ws-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;align-items:center;gap:6px 14px;padding:11px 0;border-top:1px solid var(--line)}
.ws-row:first-child{border-top:0}
.ws-sev{width:10px;height:10px;border-radius:50%;background:#9DB5B6}
.sev-high .ws-sev{background:#E8A33D}
.sev-critical .ws-sev{background:#C8372D;box-shadow:0 0 0 4px rgba(200,55,45,.14)}
.ws-rt{min-width:0}
.ws-rt b{display:block;font-family:Jost;font-weight:600;font-size:.94rem;line-height:1.3;overflow-wrap:anywhere}
.ws-rt small{display:block;color:var(--muted);font-size:.82rem;line-height:1.4;overflow-wrap:anywhere}
.ws-meta{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:.78rem;color:var(--muted);white-space:nowrap}
.ws-meta .late{color:#C8372D;font-weight:600}
.ws-meta .none{font-style:italic}
.ws-actd{grid-column:2/-1;background:var(--bg-soft);border-radius:12px;padding:12px 14px;font-size:.88rem}
.ws-actd p{margin:0 0 6px}
.ws-actb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.ws-actb label{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;color:var(--muted)}
.ws-actb input{height:32px;border:1px solid var(--line);border-radius:8px;padding:0 8px;font:inherit;font-size:.85rem}
.ws-ro,.ws-hint{color:var(--muted);font-size:.8rem;margin:8px 0 0}
.ws-msg{margin:8px 0 0;font-size:.85rem}
.ws-msg.ok{color:#1B7F5C}.ws-msg.bad{color:#C8372D}
.ws-empty{margin:0;padding:10px 12px;border-radius:10px;background:var(--bg-soft);color:var(--muted);font-size:.87rem;line-height:1.45}
.ws-more{margin-top:10px;background:none;border:0;padding:4px 0;color:var(--deep);font-family:Jost;font-weight:600;font-size:.85rem;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ws-sub{margin:16px 0 8px;font-size:.9rem}
.ws-goals{display:grid;gap:12px}
.ws-gh{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:.9rem}
.ws-gh b{font-family:Jost;font-weight:600}
.ws-gh span{color:var(--muted);font-size:.84rem;white-space:nowrap}
.ws-bar2{height:8px;border-radius:999px;background:var(--bg-soft);overflow:hidden;margin:6px 0 4px}
.ws-bar2 i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#12494B,#3AC0C3)}
.ws-goal small{color:var(--muted);font-size:.78rem;line-height:1.4}
.ws-nodata{font-style:italic}
.ws-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.ws-form label{display:flex;flex-direction:column;gap:4px;font-size:.78rem;color:var(--muted)}
.ws-form select,.ws-form input{height:36px;border:1px solid var(--line);border-radius:9px;padding:0 10px;font:inherit;font-size:.9rem;min-width:120px}
.ws-feed{list-style:none;margin:0;padding:0}
.ws-feed li{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:.88rem}
.ws-feed li:first-child{border-top:0}
.ws-feed time{color:var(--muted);font-size:.8rem}
.ws-feed a{color:inherit;text-decoration:none;overflow-wrap:anywhere}
.ws-feed a:hover{color:var(--deep);text-decoration:underline}
.ws-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.ws-chip{display:inline-flex;align-items:baseline;gap:5px;padding:6px 11px;border-radius:999px;background:var(--bg-soft);font-size:.82rem;color:var(--muted)}
.ws-chip b{font-family:Jost;color:var(--deeper,#0A2E2F)}
.ws-chip.bad{background:#FDF1E0;color:#7A4A07}
.ws-int{grid-column:1/-1;background:#fff;border:1px solid var(--line);border-radius:16px;padding:0 20px}
.ws-int summary{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;padding:14px 0;cursor:pointer;list-style-position:inside}
.ws-int summary span{color:var(--muted);font-size:.82rem}
.ws-int[open]{padding-bottom:16px}
.ws-tbl{width:100%;border-collapse:collapse;font-size:.86rem}
.ws-tbl th{text-align:left;font-family:Jost;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:8px 10px 8px 0;border-bottom:1px solid var(--line)}
.ws-tbl td{padding:10px 10px 10px 0;border-bottom:1px solid var(--line);vertical-align:top}
.ws-tbl td small{display:block;color:var(--muted);font-size:.78rem;line-height:1.4}
.ws-st{display:inline-block;padding:3px 9px;border-radius:999px;font-family:Jost;font-size:.76rem;font-weight:600;white-space:nowrap}
.ws-st.ok{background:#E3F4EC;color:#1B7F5C}.ws-st.warn{background:#FDF1E0;color:#7A4A07}.ws-st.bad{background:#FBE7E5;color:#A32A22}.ws-st.off{background:var(--bg-soft);color:var(--muted)}.ws-st.ready{background:#E6F4F4;color:#12494B}

@media (max-width:1100px){.ws-home{grid-template-columns:1fr}}
@media (max-width:900px){
  #pg-admin .ad-shell,#pg-admin .ad-shell.ws-mini{grid-template-columns:1fr;min-height:0}
  #pg-admin .ad-rail{height:auto}
  .ws-bar{padding:8px 14px}
  .ws-bar .ws-ic:first-child{display:none}
  .ws-row{grid-template-columns:10px minmax(0,1fr);row-gap:6px}
  .ws-meta{grid-column:2;flex-direction:row;align-items:center;gap:12px;white-space:normal}
  .ws-row>.btn{grid-column:2;justify-self:start}
  .ws-tbl thead{display:none}
  .ws-tbl tr{display:block;padding:8px 0;border-bottom:1px solid var(--line)}
  .ws-tbl td{display:block;border:0;padding:2px 0}
}
@media (prefers-reduced-motion:reduce){#pg-admin .ad-shell{transition:none}}
