/* DSP Business Billing & Accounting - Phase 9 compact workspace (2026-10-13). DSP forest / sage / cream. */
[data-dsp-billing][data-p9] :is(.dsp-billing__hero,.dsp-bs-bar,.dsp-billing__crumb){display:none!important}
[data-dsp-billing][data-p9] .dsp-billing__hero.dsp-p9-show{display:block!important;margin:0 0 12px}
.dsp-p9-top{--p9-ink:#15211A;--p9-forest:#163D2B;--p9-muted:#59655E;--p9-line:rgba(22,61,43,.14);--p9-card:#FFFDF8;--p9-cream:#FAF4E6;--p9-coral:#C4472D;
  position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:10px;min-height:60px;margin:0 0 12px;padding:8px 12px;
  background:var(--p9-card);border:1px solid var(--p9-line);border-radius:16px;box-shadow:0 1px 2px rgba(14,47,34,.05),0 6px 18px rgba(14,47,34,.05);
  font-family:Inter,system-ui,sans-serif;color:var(--p9-ink)}
html body .dsp-p9-top [hidden]{display:none!important}
.dsp-p9-id{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto}
.dsp-p9-titles{display:flex;flex-direction:column;min-width:0}
.dsp-p9-h1{margin:0!important;padding:0!important;font:750 1.05rem/1.25 Manrope,"Plus Jakarta Sans",Inter,system-ui,sans-serif!important;color:var(--p9-forest)!important;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dsp-p9-h1-section{display:none}
.dsp-p9-biz{font-size:.8rem;line-height:1.3;color:var(--p9-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .dsp-p9-top button{font:inherit;transform:none!important;box-shadow:none!important;cursor:pointer}
html body .dsp-p9-icon{display:inline-grid!important;place-items:center;width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;color:var(--p9-forest)!important;transition:background-color .16s ease}
html body .dsp-p9-icon:hover{background:rgba(22,61,43,.07)!important}
html body .dsp-p9-chip{display:inline-flex!important;align-items:center;gap:6px;min-height:36px!important;padding:6px 12px!important;border:1px solid var(--p9-line)!important;border-radius:999px!important;background:#E7EBDD!important;color:var(--p9-forest)!important;font-size:.78rem!important;font-weight:700!important;white-space:nowrap;flex:none;transition:background-color .16s ease}
html body .dsp-p9-chip svg{width:16px;height:16px}
html body .dsp-p9-chip[data-kind=warning]{background:#FBE9E3!important;border-color:rgba(196,71,45,.5)!important;color:var(--p9-coral)!important}
html body .dsp-p9-chip[data-kind=syncing]{background:#C7CEBA!important}
html body .dsp-p9-chip[aria-expanded=true]{outline:2px solid rgba(22,61,43,.25)}
.dsp-p9-actions{display:flex;align-items:center;gap:6px;flex:none}
html body .dsp-p9-btn{display:inline-flex!important;align-items:center;gap:6px;min-height:40px!important;padding:8px 12px!important;border:1px solid var(--p9-line)!important;border-radius:12px!important;background:var(--p9-card)!important;color:var(--p9-forest)!important;font-size:.86rem!important;font-weight:650!important;white-space:nowrap;transition:background-color .16s ease,border-color .16s ease}
html body .dsp-p9-btn:hover{background:#F1EEE4!important;border-color:rgba(22,61,43,.3)!important}
html body .dsp-p9-btn.is-primary{background:var(--p9-forest)!important;border-color:var(--p9-forest)!important;color:#fff!important}
html body .dsp-p9-btn.is-primary:hover{background:#0E2F22!important}
html body .dsp-p9-btn svg{width:18px;height:18px;flex:none}
.dsp-p9-top :is(button,select):focus-visible{outline:3px solid var(--p9-coral)!important;outline-offset:2px}
.dsp-p9-more{position:relative}
.dsp-p9-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:80;display:grid;min-width:240px;padding:6px;background:var(--p9-card);border:1px solid var(--p9-line);border-radius:14px;box-shadow:0 12px 32px rgba(14,47,34,.16);animation:dsp-p9-pop .18s ease}
.dsp-p9-menu[hidden]{display:none!important}
html body .dsp-p9-menu button{display:block!important;width:100%;min-height:44px!important;padding:10px 12px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--p9-ink)!important;text-align:left;font-size:.9rem!important;font-weight:600!important}
html body .dsp-p9-menu button:hover{background:rgba(22,61,43,.07)!important}
.dsp-p9-menu-row{display:grid;gap:6px;padding:8px 12px 10px;border-bottom:1px solid var(--p9-line);margin-bottom:4px;font-size:.78rem;color:var(--p9-muted);font-weight:600}
.dsp-p9-menu-row select{width:100%;min-height:40px}
@keyframes dsp-p9-pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.dsp-p9-account{display:grid;gap:10px;margin:0 0 12px}
.dsp-p9-account[hidden]{display:none!important}
.dsp-p9-account .dsp-billing-cloud{margin:0!important}
.dsp-p9-account .dsp-billing__privacy{margin:0!important}
[data-dsp-billing][data-p9] [data-bill-pane]{scroll-margin-top:calc(var(--p9-top-h,60px) + 12px)}

/* Desktop sidebar: sticky and independently scrollable (focused-page CSS had made it static, so it scrolled away). */
@media(min-width:901px){
  html body [data-dsp-billing][data-p9] .dsp-billing__app{overflow:clip!important}
  html body.dsp-billing-focused-page [data-dsp-billing][data-p9] .dsp-billing__nav,
  html body [data-dsp-billing][data-p9] .dsp-billing__nav{position:sticky!important;top:calc(var(--p9-top-h,60px) + 12px)!important;align-self:start!important;max-height:calc(100dvh - var(--p9-top-h,60px) - 24px)!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin}
}
html body .dsp-p9-top .dsp-p9-tab-only{display:none!important}
@media(min-width:768px) and (max-width:900px){html body .dsp-p9-top .dsp-p9-tab-only{display:inline-grid!important}}
/* Tablet / small laptop */
@media(max-width:1100px){.dsp-p9-btn span{display:none}html body .dsp-p9-btn{padding:8px 10px!important}}
/* Phones: Back | section title | search | settings | more. New Sale stays on the floating button. */
@media(max-width:767px){
  html body [data-dsp-billing][data-p9] .dsp-billing__app{overflow:clip!important}
  .dsp-p9-top{min-height:56px;margin:0 -2px 10px;padding:6px 6px 6px 10px;border-radius:14px;gap:4px}
  .dsp-p9-h1-full{display:none}.dsp-p9-h1-section{display:inline}
  .dsp-p9-h1{font-size:1.02rem!important}
  .dsp-p9-biz{font-size:.74rem}
  html body .dsp-p9-top .dsp-p9-hide-m{display:none!important}
  html body .dsp-p9-btn--icon-m{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;justify-content:center;border-color:transparent!important;background:transparent!important}
  html body .dsp-p9-chip{min-height:32px!important;padding:4px 9px!important;font-size:.72rem!important}
  html body .dsp-p9-chip span{max-width:64px;overflow:hidden;text-overflow:ellipsis}
  .dsp-p9-titles{flex:1 1 auto}
  .dsp-p9-menu{min-width:min(260px,calc(100vw - 32px))}
}
html body .dsp-p9-top .dsp-p9-h1,html body .dsp-p9-top .dsp-p9-h1 span{display:block;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;overflow:hidden;text-overflow:ellipsis;max-width:100%}
html body .dsp-p9-top .dsp-p9-h1 .dsp-p9-h1-section{display:none}
@media(max-width:767px){html body .dsp-p9-top .dsp-p9-h1 .dsp-p9-h1-full{display:none}html body .dsp-p9-top .dsp-p9-h1 .dsp-p9-h1-section{display:block}}
@media(max-width:430px){html body .dsp-p9-chip span{display:none}html body .dsp-p9-chip{width:36px;justify-content:center;padding:0!important}}
@media(prefers-reduced-motion:reduce){.dsp-p9-menu{animation:none}html body .dsp-p9-top *{transition:none!important}}
@media print{.dsp-p9-top,.dsp-p9-account{display:none!important}}
