/* Hoober Portal: the shared look.
   Loaded LAST on every page (portal home, DocFlow, Marketing, Clients, DocScan, Timecard) so the top bar,
   left sidebar, "you" card, page titles and landing screens are the same in every app.
   Change these here, not in each app's own stylesheet. */
:root{
  --hp-green:#234430; --hp-gold:#d4af37; --hp-ink:#d4d4cf; --hp-muted:rgba(212,212,207,.62);
  --hp-dim:rgba(212,212,207,.45); --hp-line:rgba(255,255,255,.08); --hp-card:#161616;
  --hp-title:36px;                     /* every page and landing-screen title */
}

/* ── Top bar: logo | app name on the left, Apps on the right ── */
.topbar{box-sizing:border-box;min-height:84px;padding:20px 34px 20px 28px!important}
.topbar .brand{gap:16px!important}
.topbar .brand-logo{height:34px!important;width:auto!important}
.topbar .brand-divider{height:30px!important}
.topbar .brand-name{font-family:'Playfair Display',Georgia,serif!important;font-size:28px!important;font-weight:500!important;letter-spacing:-.01em;line-height:1!important}
.topbar .brand-mark{display:none!important}              /* DocFlow's extra icon: no other app has one */
.studio > .topbar{min-height:0;padding:0 18px 0 calc(28px - var(--edge, 16px))!important}   /* DocFlow's grid already adds its edge; logo lands at 28px like every app */

/* ── Left sidebar (Marketing, Clients) ── */
@media (min-width:861px){
  .side{gap:4px!important;margin-top:0!important;padding-top:8px!important}
  .side-btn{display:flex!important;align-items:center!important;gap:12px!important;min-height:48px;height:auto!important;padding:0 14px!important;
    border-radius:14px!important;font-size:15px!important;font-weight:500!important;color:var(--hp-muted)!important;box-shadow:none!important;text-decoration:none;
    background:transparent}
  .side-btn i,.side-btn > svg{width:22px!important;height:22px!important;flex:none}
  .side-btn:hover{background:rgba(255,255,255,.05)!important;color:var(--hp-ink)!important}
  .side-btn.on{background:var(--hp-green)!important;color:#f1efe6!important;font-weight:600!important}
  .side-count{margin-left:auto!important}

  /* "You" card at the bottom of the sidebar */
  .side-me{margin-top:auto!important;padding:16px 0 0!important;border:0!important;border-top:1px solid var(--hp-line)!important;border-radius:0!important;background:none!important;display:flex!important;flex-direction:column!important;gap:8px!important}
}
.side-me .me-card{display:flex!important;flex-direction:row!important;align-items:center!important;text-align:left!important;gap:12px!important;padding:12px!important;
  border-radius:14px!important;border:1px solid var(--hp-line)!important;background:var(--hp-card)!important;color:var(--hp-ink);text-decoration:none}
a.me-card:hover{border-color:rgba(212,175,55,.45)!important}
.side-me .me-ph{width:44px!important;height:44px!important;flex:none;border-radius:50%!important;border:2px solid rgba(212,175,55,.45);
  background-color:var(--hp-green)!important;background-position:center 20%;background-size:cover;display:grid!important;place-items:center;font-weight:700;font-size:15px;color:var(--hp-ink)}
.side-me .me-ph i,.side-me .me-ph svg{width:22px!important;height:22px!important;color:var(--hp-muted)}
.side-me .me-txt{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0;line-height:1.3;gap:1px}
.side-me .me-txt small{font-size:10.5px!important;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--hp-dim)!important}
.side-me .me-txt b{font-size:14.5px!important;font-weight:600;color:var(--hp-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.side-me .me-txt em{font-style:normal;font-size:12px!important;font-weight:600;color:var(--hp-gold)!important}
.side-me .me-txt span{font-size:12px;color:var(--hp-muted);line-height:1.35;max-width:100%}
.side-me details summary{cursor:pointer;list-style:none;font-size:12.5px;font-weight:600;color:var(--hp-gold);padding:2px 2px}
.side-me details summary::-webkit-details-marker{display:none}
.side-me details summary em{font-style:normal;font-weight:500;color:var(--hp-muted)}
.side-me details select{margin-top:8px}

/* ── DocFlow's Form Library: a boxed work panel, but its rows match the sidebar ── */
.library .lib-row{min-height:48px;padding:6px 14px!important;gap:12px!important;border-radius:14px!important;border-color:transparent!important;
  font-size:15px!important;font-weight:500!important;box-shadow:none!important;background:transparent}
.library .lib-row > i:first-child{width:22px!important;height:22px!important;flex:none}
.library .lib-row:hover{background:rgba(255,255,255,.05)!important}
.library .lib-group.open > .lib-row,.library .lib-group.has-active > .lib-row{background:rgba(255,255,255,.05)!important;border-color:transparent!important}
.library .lib-item{min-height:40px;padding:6px 12px!important;border-radius:12px!important;font-size:14px!important;
  color:var(--hp-muted)!important;-webkit-text-fill-color:currentColor!important}
.library .lib-item:hover{background:rgba(255,255,255,.05)!important;color:var(--hp-ink)!important}
.library .lib-item.active{background:var(--hp-green)!important;color:#f1efe6!important;font-weight:600!important;border-left-color:var(--hp-gold)!important}

/* ── Panel titles (DocFlow, Marketing, Clients boxes) ── */
.panel-head h2{font-family:'Playfair Display',Georgia,serif!important;font-size:21px!important;font-weight:500!important;letter-spacing:-.01em!important;color:var(--hp-ink)}
@media (max-height:700px){ .studio .panel-head h2{font-size:17px!important} }

/* ── Landing screens and page titles ── */
/* greeting line ("Good afternoon, Tiffney") */
.hp-greet,.landing .hp-greet,.dash-head .eyebrow,.view-head .eyebrow,.welcome .eyebrow{display:block;margin:0 0 8px!important;font-family:'Instrument Sans','Inter',sans-serif;
  font-size:12.5px!important;font-weight:600!important;letter-spacing:.14em!important;text-transform:uppercase;color:var(--hp-gold)!important}
/* title */
.dash-head h1,.view-head h1,.page-head h1,.welcome h2,.landing h1,.list-head h1{font-family:'Playfair Display',Georgia,serif!important;
  font-size:var(--hp-title)!important;font-weight:500!important;letter-spacing:-.01em!important;line-height:1.12!important;color:var(--hp-ink)!important;-webkit-text-fill-color:currentColor}
.dash-head h1{margin:0 0 28px!important}
.landing h1{margin:0 0 24px!important}
.welcome h2{margin:0 0 10px!important}
/* the line under a title */
.view-head + .lead,.page-head p,.welcome > .muted,.landing > p:not(.hp-greet){font-size:15px!important;line-height:1.5!important;color:var(--hp-muted)!important}
/* the round Hoober mark on centered landing screens (DocFlow, Marketing) */
.landing-mark{width:96px!important;height:96px!important;margin-bottom:20px!important}
.list-head{flex-wrap:wrap;row-gap:10px}

/* ── Phones ── */
@media (max-width:760px){
  .topbar{min-height:0;padding:16px!important}
  .topbar .brand{gap:12px!important}
  .topbar .brand-logo{height:28px!important}
  .topbar .brand-divider{height:24px!important}
  .topbar .brand-name{font-size:23px!important}
  .studio > .topbar{padding:0 8px!important}
  :root{--hp-title:28px}
  .dash-head h1{margin-bottom:20px!important}
  .landing-mark{width:68px!important;height:68px!important;margin-bottom:14px!important}
}
/* Phone logo and app-name sizes, set here (loads first) so the logo doesn't start big and shrink
   once the top-bar buttons appear. Same values as portal/mylinks.css and portal/switcher.css. */
@media (max-width:480px){
  .topbar .brand{gap:8px!important}
  .topbar .brand-logo{height:22px!important}
  .topbar .brand-divider{height:20px!important}
  .topbar .brand-name{font-size:20px!important}
}
@media (max-width:400px){
  .topbar .brand-logo{height:20px!important}
  .topbar .brand-name{font-size:19px!important}
}
@media (max-width:360px){
  .topbar .brand-logo,.topbar .brand-divider{display:none!important}
}

/* Dropdowns in every app: one arrow style, set in from the right edge with room for long choices.
   (DocFlow's fields printed on the document page keep their own look.) */
select:not([multiple]):not([size]):not(.pe-in){
  -webkit-appearance:none!important;appearance:none!important;padding-right:40px!important;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9aca6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:16px 16px!important}

/* Signed in, the "you" box is replaced by the photo at the top right (portal/account.js): hidden means gone, line included */
.side-me[hidden]{display:none!important}
/* Home headline: hidden until it can say your name (portal/shell.js), so it doesn't change a second after load */
.hp-greet-title:not(.hp-ready){visibility:hidden}
