/* the start-screen picker and tile dragging. v1250 */
.pf-bar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 12px; }
.pf-lab{ font-size:12.5px; font-weight:800; color:var(--navy); }
.pf-sel{ height:36px; border:1.5px solid var(--line); border-radius:9px; background:#fff; font:inherit;
  font-weight:700; font-size:12.5px; color:var(--navy); padding:0 10px; }
.pf-hint{ font-size:12px; color:var(--muted); font-weight:600; }
.pf-ok{ font-size:12px; font-weight:800; color:#3aa02a; }
.pf-err{ font-size:12px; font-weight:800; color:#c0392b; }
.tiles .tile[data-action]{ touch-action:manipulation; }
.tile.pf-moving{ opacity:.45; }
.tile.pf-over{ outline:2px dashed var(--royal); outline-offset:3px; }
.pf-ghost{ position:fixed; z-index:95; pointer-events:none; transform:translate(12px,12px);
  background:var(--royal); color:#fff; font-size:12px; font-weight:800; padding:6px 11px; border-radius:9px;
  max-width:240px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
  box-shadow:0 8px 22px rgba(22,36,107,.3); }

/* the menu down the left, and the dashboard panels. v1255 */
.pf-menu{ position:fixed; left:0; top:64px; bottom:0; width:208px; background:#fff; border-right:1px solid var(--line);
  padding:10px 8px 24px; overflow-y:auto; overflow-x:hidden; z-index:20; scrollbar-width:thin; scrollbar-color:#d6ddee transparent; }
/* the fat system scrollbar sat in the middle of the menu; a thin one that only
   shows when the menu is actually too tall. v1278 */
.pf-menu::-webkit-scrollbar{ width:6px; }
.pf-menu::-webkit-scrollbar-thumb{ background:#d6ddee; border-radius:3px; }
.pf-menu::-webkit-scrollbar-track{ background:transparent; }
.pf-menu.shut{ width:56px; }
/* the widen / narrow button - a real button with a name on it when the menu is
   open, and a neat square when it is narrow. v1274 */
.pf-mtoggle{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:36px;
  border:1.5px solid var(--line); border-radius:10px; background:#f5f8ff; color:var(--royal); font:inherit;
  font-weight:800; font-size:12.5px; cursor:pointer; margin-bottom:10px; transition:background .12s ease, border-color .12s ease; }
.pf-mtoggle:hover{ background:#eaf0ff; border-color:#c4d1ee; }
.pf-mtic{ font-size:15px; font-weight:900; line-height:1; }
.pf-menu.shut .pf-mtoggle{ width:36px; margin-left:auto; margin-right:auto; padding:0; }

/* the name of a narrow menu button, drawn on the page so the menu cannot cut it off */
.pf-tip{ position:fixed; transform:translateY(-50%) translateX(-6px); background:var(--navy); color:#fff;
  font-family:'Nunito',sans-serif; font-size:12px; font-weight:800; padding:7px 11px; border-radius:9px;
  white-space:nowrap; opacity:0; pointer-events:none; box-shadow:0 8px 22px rgba(22,36,107,.28); z-index:60;
  transition:opacity .12s ease, transform .12s ease; }
.pf-tip.on{ opacity:1; transform:translateY(-50%) translateX(0); }
.pf-tip::before{ content:''; position:absolute; left:-5px; top:50%; margin-top:-5px;
  border:5px solid transparent; border-right-color:var(--navy); }
.pf-mi{ display:flex; align-items:center; gap:10px; width:100%; height:38px; padding:0 10px; margin-bottom:3px;
  border:0; border-radius:10px; background:none; font:inherit; font-size:13px; font-weight:700; color:var(--navy);
  cursor:pointer; text-align:left; }
.pf-mi:hover{ background:#f4f7fb; }
.pf-mi.on{ background:#eef2ff; color:var(--royal); font-weight:900; }
.pf-mic{ width:20px; text-align:center; flex:none; font-size:15px; }
.pf-mtx{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pf-menu.shut .pf-mtx{ display:none; }
/* no count bubble on the narrow menu - it sat on top of the icon. Adam, 3 Nov 2026. v1919 */
.pf-menu.shut .pf-mbadge{ display:none; }
.with-menu{ padding-left:208px; }
.pf-menu.shut ~ .with-menu{ padding-left:56px; }
@media(max-width:900px){
  .pf-menu{ position:static; width:auto; height:auto; top:auto; border-right:0; border-bottom:1px solid var(--line);
    display:flex; gap:6px; overflow-x:auto; padding:8px 10px; }
  .pf-menu .pf-mtoggle{ display:none; }
  .pf-mi{ width:auto; flex:none; height:34px; }
  .pf-mtx{ display:none; }
  .pf-menu.shut{ width:auto; }
  .with-menu, .pf-menu.shut ~ .with-menu{ padding-left:0; }
}
.pf-dashpick{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:0 0 12px; }
.pf-chip{ height:32px; padding:0 12px; border-radius:16px; border:1.5px solid var(--line); background:#fff;
  color:var(--navy); font:inherit; font-weight:700; font-size:12px; cursor:pointer; }
.pf-chip.on{ background:var(--royal); border-color:var(--royal); color:#fff; }
.pf-panels{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:12px; margin:0 0 18px; }
.pf-panel{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px 14px; }
.pf-ph{ display:flex; align-items:center; justify-content:space-between; font-size:12px; font-weight:900;
  color:var(--navy); text-transform:uppercase; letter-spacing:.03em; margin-bottom:9px; }
.pf-open{ height:28px; padding:0 11px; border:1px solid var(--line); border-radius:8px; background:#fff;
  color:var(--royal); font:inherit; font-weight:800; font-size:11.5px; cursor:pointer; text-transform:none; }
.pf-nums{ display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; margin-bottom:8px; }
.pf-nums b{ font-size:24px; font-weight:900; color:var(--navy); }
.pf-nums b.pf-bad{ color:#b5342f; }
.pf-nums span{ font-size:12px; font-weight:700; color:var(--muted); margin-right:8px; }
.pf-row{ display:flex; justify-content:space-between; gap:10px; padding:5px 0; border-top:1px solid var(--line);
  font-size:12.5px; color:#1b2440; font-weight:600; }
.pf-row span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pf-row i{ font-style:normal; color:var(--muted); font-weight:800; font-size:11.5px; flex:none; }
.pf-empty{ font-size:12.5px; color:var(--muted); margin:0; }

/* a narrow menu shows icons only; the name comes from the page-level tip above */
@media(min-width:901px){
  .pf-menu.shut .pf-mi{ justify-content:center; padding:0; }
  .pf-menu .pf-mi{ transition:background .12s ease; }
}

/* Edit layout. v1673 */
body.pf-editing .tiles .tile[data-action], body.pf-editing .dash-nums [data-pfk], body.pf-editing .pf-panels [data-pfk], body.pf-editing .pf-menu [data-pfk]{ outline:1.5px dashed #9db0ea; outline-offset:2px; cursor:grab; touch-action:none; user-select:none; }
body.pf-editing .pf-moving{ opacity:.45; }
body.pf-editing .pf-over{ outline:2px solid #2547d6 !important; outline-offset:3px; }
.dash-add.pf-editbtn.on{ background:#2547d6; color:#fff; border-color:#2547d6; }
