/* GR Books on the web laid out like a well-known accounting app, glass look kept (jay, 16 Nov 2026): the icon rail,
   the menus that open from it, the top bar with search, the Create panel, Home's Create actions, the transaction lists
   and the full-screen document forms. partner-books-shell.js adds the pieces; html.bk-shell is set once signed in. */
#bk-rail,.bk-co,.bk-search,.bk-ib[data-help],.bk-ib[data-gear],.bk-me,.bk-dockhead{display:none}
#bk-fly{position:fixed;z-index:60;min-width:230px;max-width:calc(100vw - 16px);padding:10px 0;color:var(--ink);
 background:rgba(246,250,254,.95);border:1px solid var(--gl-rim,#fff);border-radius:18px;box-shadow:0 18px 50px rgba(15,25,45,.22);
 -webkit-backdrop-filter:blur(26px) saturate(1.6);backdrop-filter:blur(26px) saturate(1.6)}
#bk-fly[hidden]{display:none}
#bk-fly .bk-fh{margin:4px 18px 6px;font:700 11.5px 'DM Sans',sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#5f6d84}
#bk-fly button:not(.link){display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;text-align:left;padding:9px 18px;font-size:15px;color:var(--ink);cursor:pointer;border-radius:0;min-height:0}
#bk-fly button:not(.link):hover,#bk-fly button.on{background:var(--gl-sky,#e6f2fb)}
#bk-fly.bk-wide{padding:0}
.bk-apps{display:flex}.bk-apps-l{width:270px;padding:12px 0;border-right:1px solid var(--line)}.bk-apps-r{width:250px;padding:12px 0}
.bk-app i{flex:none;width:28px;height:28px;border-radius:50%;background:#1e3a6d;color:#fff;display:grid;place-items:center}.bk-app i .ico{width:15px;height:15px}
.bk-app>.ico{width:16px;height:16px;color:#5f6d84}
.bk-dockopen{display:flex!important;align-items:center;gap:6px;margin:10px 18px 4px;font-size:13px;text-align:left}.bk-dockopen .ico{width:16px;height:16px}
#bk-fly.bk-createfly{padding:22px 28px}
.bk-create{display:grid;grid-template-columns:repeat(4,minmax(130px,auto));gap:10px 40px}
.bk-ch{margin:0 0 8px;font-weight:700;font-size:15px}
#bk-fly .bk-create button{padding:7px 0;font-size:14.5px}
#bk-fly .bk-create button:hover{background:none;color:#2f66c8;text-decoration:underline}
#bk-fly.bk-mefly{min-width:220px}
@media(max-width:899px){.bk-create{grid-template-columns:1fr 1fr}#bk-fly.bk-createfly{right:8px;max-height:calc(100vh - 80px);overflow:auto}}

@media(min-width:900px){
 html.bk-shell body{padding-left:84px}
 html.bk-shell body:has(#app[hidden]){padding-left:0}
 html.bk-shell body:has(#app[hidden]) #bk-rail{display:none}
 #bk-rail{display:flex;position:fixed;left:0;top:0;bottom:0;width:84px;flex-direction:column;align-items:center;gap:1px;padding:12px 0;z-index:30;overflow-y:auto;
  background:var(--gl-strong);border-right:1px solid var(--gl-rim);-webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6)}
 .bk-logo{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;text-decoration:none;margin-bottom:12px}
 html[data-panel=accounting] .bk-ri{display:flex;flex-direction:column;align-items:center;gap:3px;width:84px;border:0;background:none;padding:5px 0;margin:0;font-size:11px;line-height:1.2;color:var(--ink);cursor:pointer;font-weight:500;min-height:0;white-space:nowrap;box-shadow:none;border-radius:0}
 html[data-panel=accounting] .bk-ri span{display:block;width:auto;max-width:82px;overflow:hidden;text-overflow:ellipsis;text-align:center}
 .bk-ri i{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;transition:background .12s}
 .bk-ri .ico{width:22px;height:22px}
 .bk-ri:hover i,.bk-ri.open i{background:var(--gl-sky)}
 .bk-ri.on i{background:var(--gl-navy);color:#fff;box-shadow:0 4px 12px rgba(30,58,109,.28)}
 .bk-ri.on{font-weight:700;color:#1e3a6d}
 .bk-pinh{font:700 10.5px 'DM Sans',sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#5f6d84;margin:12px 0 3px}
 #bk-rail .grow{flex:1;min-height:12px}

 /* The page: the docked All apps list and the content, with the top bar across. Home has no docked list. */
 html.bk-shell[data-panel=accounting] .partner-app{max-width:none;margin:0;padding:0 24px 24px;grid-template-columns:250px minmax(0,1fr);column-gap:22px}
 html.bk-shell.bk-home .partner-app,html.bk-shell.bk-nodock .partner-app{grid-template-columns:minmax(0,1fr)!important}
 html.bk-shell.bk-home .partner-app nav.p-tabs,html.bk-shell.bk-nodock .partner-app nav.p-tabs{display:none}
 html.bk-shell[data-panel=accounting] .partner-app nav.p-tabs{top:82px;max-height:calc(100vh - 94px)}
 .bk-dockhead{display:flex;align-items:center;gap:6px;white-space:nowrap;padding:2px 6px 8px 12px;font:700 12px 'DM Sans',sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#5f6d84}
 html.bk-shell .p-navlist .bh-createbtn{display:none!important}

 /* Top bar */
 html.bk-shell[data-panel=accounting] .partner-app .partner-head{position:sticky;top:0;margin:0 -24px 20px;border-radius:0;border-width:0 0 1px;padding:10px 24px;gap:14px;z-index:20;min-height:64px;align-items:center}
 html.bk-shell .partner-head .brand,html.bk-shell .partner-head .eyebrow,html.bk-shell .partner-head>.grow,html.bk-shell #who,html.bk-shell #logout{display:none}
 .bk-co{display:block;font-weight:700;letter-spacing:.4px;text-transform:uppercase;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px;flex:0 1 auto}
 .bk-search{display:flex;align-items:center;gap:8px;flex:1;max-width:640px;margin:0 auto;position:relative;height:42px;padding:0 14px;border-radius:12px;background:var(--gl-field);border:1px solid var(--gl-rim);color:#5f6d84}
 .bk-search>span .ico{width:18px;height:18px}
 html[data-panel=accounting] .bk-search input,html[data-theme=dark][data-panel=accounting] .bk-search input{border:0!important;background:none!important;border:0;background:none;box-shadow:none;margin:0;padding:0;height:40px;flex:1;font-size:15px;min-width:0}
 html[data-panel=accounting] .bk-search input:focus{box-shadow:none}
 .bk-search:focus-within{border-color:#9cdbfc;box-shadow:0 0 0 3px rgba(156,219,252,.45)}
 .bk-ib{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;border:0;background:none;color:var(--ink);cursor:pointer;padding:0;min-height:0}
 .bk-ib:hover{background:var(--gl-sky)}.bk-ib .ico{width:21px;height:21px}
 .bk-me{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;border:0;background:#1e3a6d;color:#fff;font-weight:700;cursor:pointer;padding:0;min-height:0}
 .bk-results{position:absolute;left:0;right:0;top:48px;max-height:70vh;overflow:auto;padding:6px;background:rgba(248,251,254,.97);border:1px solid var(--gl-rim);border-radius:16px;box-shadow:0 18px 50px rgba(15,25,45,.2);
  -webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
 .bk-results button{display:flex;justify-content:space-between;align-items:baseline;gap:12px;width:100%;border:0;background:none;text-align:left;padding:9px 12px;border-radius:10px;cursor:pointer;font-size:14.5px;color:var(--ink);min-height:0}
 .bk-results button.on,.bk-results button:hover{background:var(--gl-sky)}.bk-results small{color:#5f6d84;white-space:nowrap}
 .bk-rh{margin:8px 12px 2px;font:700 11px 'DM Sans',sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#5f6d84}
}

/* Home: greeting, apps, Create actions, Business at a glance with four cards across on wide screens */
html.bk-shell .bh-top{justify-content:center;text-align:center;margin:6px 0 16px}
.bh-hello{font:800 30px Manrope,sans-serif!important;letter-spacing:-.4px}
html.bk-shell .bh-pills{justify-content:center;flex-wrap:wrap;overflow:visible;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:4px}
.bh-quick{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 24px}
.bh-quick h3{margin:0 8px 0 0;font-size:17px;font-weight:600}
.bh-q{border:1px solid var(--gl-rim,var(--line));background:var(--gl-glass,#fff);border-radius:20px;padding:7px 16px;font-size:14.5px;font-weight:500;cursor:pointer;color:var(--ink);min-height:0;
 box-shadow:0 3px 10px rgba(20,35,60,.05);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.bh-q:hover{background:var(--gl-strong,#f3f6fa)}
.bh-showall{font-weight:600;font-size:14.5px}
.bh-glance-h{font-size:17px;font-weight:600;margin:0 0 12px}
@media(min-width:760px){.bh-card.strip{grid-column:1/-1}}
@media(min-width:1400px){.bh-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.bh-card.wide{grid-column:span 2}.bh-card.strip{grid-column:1/-1}}
.bh-card.strip .bh-glance{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:4px 18px}
.bh-card.strip .bh-glance li{flex-direction:column;align-items:flex-start;border-top:0;gap:2px;padding:4px 0}
.bh-card.strip .bh-glance li b{font-size:18px}

/* The company is in the top bar, so the name above each page goes (computers only). */
@media(min-width:900px){html.bk-shell #content>h2.step-title{display:none}}
/* Transaction lists */
.panel:has(.bk-menu){position:relative;z-index:5}
.bk-crumb{font-size:13px}
.bk-txbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
html[data-panel=accounting] .bk-txbar select{width:auto;margin:0;min-width:190px}
.bk-tx th.r,.bk-tx td.r{text-align:right}
.bk-tx tbody tr{cursor:pointer}
.bk-tx td{vertical-align:middle}
.bk-acts{display:inline-flex;gap:14px}.bk-acts .link{font-weight:600}
.bk-cat{max-width:240px;overflow:hidden;text-overflow:ellipsis}
.bk-menu{position:relative;display:inline-block}
.bk-menu summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.bk-menu summary::-webkit-details-marker{display:none}
.bk-menu-list{position:absolute;right:0;top:calc(100% + 6px);min-width:230px;z-index:10;padding:6px 0;background:rgba(246,250,254,.97);border:1px solid var(--gl-rim,var(--line));border-radius:16px;
 box-shadow:0 18px 50px rgba(15,25,45,.2);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}
.bk-menu-list button{display:block;width:100%;text-align:left;border:0;background:none;padding:9px 16px;font-size:15px;cursor:pointer;color:var(--ink);min-height:0}
.bk-menu-list button:hover{background:var(--gl-sky,#eef3fb)}

/* Bill, invoice and the other documents: full screen, details on a band, a numbered line table, buttons along the bottom */
dialog.p-dlg.bk-doc{width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;border-radius:0;inset:0;border:0}
dialog.bk-doc form{display:block;position:relative;padding:0 0 92px;min-height:100%}
dialog.bk-doc form>h3{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:10px;margin:0!important;padding:14px 28px;font:800 24px Manrope,sans-serif;
 background:var(--gl-strong,#fff);border-bottom:1px solid var(--gl-rim,var(--line));-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}
.bk-x{margin-left:auto;border:0;background:none;width:42px;height:42px;border-radius:50%;cursor:pointer;color:var(--ink);display:grid;place-items:center;padding:0;min-height:0}
.bk-x:hover{background:var(--gl-sky,#eef3fb)}.bk-x .ico{width:24px;height:24px}
.bk-big{text-align:right;padding:16px 28px 0}
.bk-big small{display:block;font:700 11.5px 'DM Sans',sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#5f6d84}
.bk-big b{font:700 32px 'DM Sans',sans-serif;font-variant-numeric:tabular-nums}
dialog.bk-doc .bk-band{margin:0;padding:20px 28px;background:rgba(214,229,244,.45);border-bottom:1px solid var(--gl-rim,var(--line));gap:12px 18px}
dialog.bk-doc form>:not(h3):not(.bk-band):not(.acts):not(.bk-big):not(.bk-lt):not(.bk-lfoot){margin-left:28px;margin-right:28px}
dialog.bk-doc form>label{display:block;width:auto;margin:6px 28px 14px!important;padding:0!important}
.bk-lt{font-weight:700;font-size:17px;margin:22px 28px 6px}
.bk-lhead{display:none}
.bk-tots{min-width:320px;display:grid;gap:7px;font-size:15px}
.bk-tots div{display:flex;justify-content:space-between;gap:24px}
.bk-tots b{font-variant-numeric:tabular-nums}
.bk-grand{font-weight:700;font-size:16px}
dialog.bk-doc .bk-lfoot{margin:12px 28px!important;flex-wrap:wrap}
dialog.bk-doc .acts{position:fixed;left:0;right:0;bottom:0;margin:0!important;padding:12px 28px;z-index:4;justify-content:flex-end;
 background:var(--gl-strong,#fff);border-top:1px solid var(--gl-rim,var(--line));-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}
dialog.bk-doc .acts [data-cancel]{order:-1;margin-right:auto}
@media(max-width:899px){dialog.bk-doc form{padding-bottom:0}dialog.bk-doc .acts{position:sticky;margin-top:18px!important;padding:10px 16px;flex-wrap:wrap;gap:8px}dialog.bk-doc .tots,dialog.bk-doc .bk-tots{min-width:0;width:100%}}
@media(min-width:900px){
 .bk-big{position:absolute;right:28px;top:84px;padding:0;z-index:1}
 dialog.bk-doc .bk-band{padding-right:320px;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
 .bk-lhead{display:flex;gap:6px;padding:8px 0;border-bottom:1px solid var(--line);font:700 11.5px 'DM Sans',sans-serif;letter-spacing:.5px;text-transform:uppercase;color:#5f6d84}
 .bk-lhead span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .bk-lhead .bk-n{flex:0 0 26px;text-align:center}.bk-lhead .bk-del{flex:0 0 40px}
 dialog.bk-doc [data-lines]{counter-reset:ln}
 dialog.bk-doc [data-line]{counter-increment:ln;flex-wrap:nowrap!important;margin:0!important;padding:8px 0;border-bottom:1px solid var(--line)!important;align-items:center!important}
 dialog.bk-doc [data-line]::before{content:counter(ln);flex:0 0 26px;color:#5f6d84;font-size:13px;text-align:center}
 dialog.bk-doc [data-line] label{font-size:0;margin:0}
 dialog.bk-doc [data-line] label :is(input,select){font-size:14px;margin:0}
 dialog.bk-doc [data-line] [data-del]{flex:0 0 40px;min-height:38px}
}

/* Dark: smoked glass */
html[data-theme=dark] #bk-fly,html[data-theme=dark] .bk-results,html[data-theme=dark] .bk-menu-list{background:rgba(24,30,40,.95)}
html[data-theme=dark] .bk-ri.on{color:#dbe6f7}
html[data-theme=dark] .bk-me,html[data-theme=dark] .bk-app i{background:#4d7fd6}
html[data-theme=dark] dialog.bk-doc .bk-band{background:rgba(255,255,255,.04)}
html[data-theme=dark] #bk-fly .bk-create button:hover{color:#9cc2ff}
html[data-theme=dark] .bk-pinh,html[data-theme=dark] .bk-dockhead,html[data-theme=dark] #bk-fly .bk-fh,html[data-theme=dark] .bk-rh,html[data-theme=dark] .bk-big small,html[data-theme=dark] .bk-lhead{color:#9aa6b8}

/* A quote at a glance (partner-accounting.js quoteBox, 17 Nov 2026) */
.bk-qbox{border:1px solid #dfe3ea;border-radius:12px;padding:14px 16px;margin:0 0 12px}
.bk-qwho{font-weight:700;font-size:17px}
.bk-qtot{font-weight:800;font-size:22px;font-variant-numeric:tabular-nums}
.bk-qsteps{list-style:none;display:flex;gap:4px;padding:0;margin:12px 0 8px}
.bk-qsteps li{flex:1;text-align:center;font-size:12px;font-weight:600;padding:6px 2px;border-radius:8px;background:#f2f4f7;color:#6b7588}
.bk-qsteps li.on{background:#e6f0ff;color:#0b2545}
.bk-qsteps li.no{background:#fde8e8;color:#b42318}
.bk-qnext{margin:10px 0 0;padding:8px 10px;border-radius:8px;background:#f6f8fb}
html[data-theme=dark] .bk-qbox{border-color:rgba(255,255,255,.14)}
html[data-theme=dark] .bk-qsteps li{background:rgba(255,255,255,.06);color:#9aa6b8}
html[data-theme=dark] .bk-qsteps li.on{background:rgba(77,127,214,.3);color:#dbe6f7}
html[data-theme=dark] .bk-qsteps li.no{background:rgba(180,35,24,.3);color:#ffd2cc}
html[data-theme=dark] .bk-qnext{background:rgba(255,255,255,.06)}
