/* Kite Bill — Apple finish (loaded last): the left menu like Finder / iOS Settings (coloured icon tiles, quiet group titles, soft selected pill),
 * a calmer top bar, readable form boxes. Works with Light / Medium / Dark (html.light | html.medium | html.dark). */
:root:root:root{--ba-hover:rgba(60,60,67,.07);--ba-line:rgba(60,60,67,.14);--ba-mut:#8a8a8e}
html.dark,html.medium{--ba-hover:rgba(255,255,255,.07);--ba-line:rgba(255,255,255,.1);--ba-mut:#9a9aa3}
/* ---- the left menu */
:root:root:root:root html.kl .mbb-sidebar,:root:root:root:root .mbb-sidebar{padding:.4rem .15rem}
.mbb-sidebar .mbb-sidebar-scroll{padding:.2rem .65rem 1rem!important;scrollbar-width:thin}
.mbb-sidebar .mbb-section-label{display:flex;align-items:center;justify-content:space-between;width:100%;background:none!important;border:0!important;margin:.9rem 0 .15rem!important;padding:.2rem .55rem!important;font:700 .68rem/1 -apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif!important;letter-spacing:.06em!important;text-transform:uppercase;color:var(--ba-mut)!important;cursor:pointer;border-radius:8px}
.mbb-sidebar .mbb-section-label:hover{background:var(--ba-hover)!important}.mbb-sidebar .mbb-section-label .kbp-car{font-size:.7rem;opacity:.7}
.mbb-sidebar .mbb-section-label span{font-size:inherit!important}
.mbb-sidebar .mbb-nav-item{display:flex!important;align-items:center;min-height:2.3rem;margin:1px 0!important;padding:.2rem .5rem .2rem .4rem!important;border-radius:10px!important;font:500 .9rem/1.2 -apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif!important;letter-spacing:-.005em;border:0!important;box-shadow:none!important;transition:background .14s}
.mbb-sidebar .mbb-nav-item:hover{background:var(--ba-hover)!important}
.mbb-sidebar .mbb-nav-item .mbb-nav-left{display:flex;align-items:center;gap:.65rem;min-width:0;flex:1}
.mbb-sidebar .mbb-nav-item .mbb-nav-icon{flex:none;display:grid!important;place-items:center;width:1.7rem!important;height:1.7rem!important;border-radius:8px!important;font-size:.95rem!important;color:#fff!important;background:var(--pg,#64748b)!important;box-shadow:inset 0 -1px 0 rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.14)!important}
.mbb-sidebar .mbb-nav-item .mbb-nav-icon svg{width:1em;height:1em;stroke-width:2.1;stroke:#fff}
.mbb-sidebar .mbb-nav-item.active{background:color-mix(in srgb,var(--pg,var(--k-a,#4f46e5)) 16%,transparent)!important;font-weight:650!important}
.mbb-sidebar .mbb-nav-item.active .mbb-nav-icon{box-shadow:0 0 0 2px color-mix(in srgb,var(--pg,#4f46e5) 28%,transparent),0 2px 6px rgba(0,0,0,.2)!important}
.mbb-sidebar .mbb-nav-item[data-grp="0"]{--pg:#0d9488}.mbb-sidebar .mbb-nav-item[data-grp="1"]{--pg:#3b82f6}.mbb-sidebar .mbb-nav-item[data-grp="2"]{--pg:#16a34a}.mbb-sidebar .mbb-nav-item[data-grp="3"]{--pg:#8b5cf6}
.mbb-sidebar .mbb-nav-item[data-grp="4"]{--pg:#ec4899}.mbb-sidebar .mbb-nav-item[data-grp="5"]{--pg:#f97316}.mbb-sidebar .mbb-nav-item[data-grp="6"]{--pg:#0ea5e9}.mbb-sidebar .mbb-nav-item[data-grp="7"]{--pg:#64748b}
.mbb-sidebar .mbb-nav-item .nav-count,.mbb-sidebar .mbb-nav-item [class*="count"],.mbb-sidebar .mbb-nav-item .kbp-badge{margin-left:auto;border-radius:999px}
/* the two "Classic" shortcuts: one line each, the key shown quietly */
.mbb-sidebar .sidebar-top-bar a,.mbb-sidebar .sidebar-top-bar button{white-space:nowrap}
.mbb-sidebar [class*="classic"] kbd,.mbb-sidebar .mbb-sidebar-scroll>div:first-child kbd{font-size:.68rem}
/* collapsed */
.mbb-sidebar.is-collapsed .mbb-nav-item{justify-content:center;padding:.2rem!important}
.mbb-sidebar.is-collapsed .mbb-section-label{height:1px;padding:0!important;margin:.55rem .4rem!important;background:var(--ba-line)!important;font-size:0!important}
/* ---- the top bar */
.kb-top .kb-ic{width:2.1rem;height:2.1rem;display:inline-grid;place-items:center;font-size:1rem;line-height:1}
.kb-top #kolBtn{width:2.1rem;height:2.1rem;min-width:0;padding:0;border-radius:50%;margin-right:.2rem}
.kb-cmd{display:flex;align-items:center;gap:.5rem;border-radius:12px!important;padding:0 .8rem!important}
.kb-cmd input{flex:1;min-width:0;text-align:left!important;background:transparent!important;border:0!important;outline:none;font:500 .9rem/1 -apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif}
.kb-cmd .kb-cmd-name{flex:none;max-width:11rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:.8rem;opacity:.85}
/* ---- big forms: the panel's close button always shows a cross; placeholders are not cut */
.modal-overlay .modal-header>button:empty::before,.kbpn-t>button:empty::before{content:"✕";font-size:1.05rem}
.kbpn-t>button[aria-label="Close"]{min-width:2.2rem;min-height:2.2rem;display:inline-grid;place-items:center;border-radius:50%}
.inv-row-search,#invPartySearchInput{text-overflow:ellipsis}
.kb-cb{min-width:15rem}
/* search: the hint is visible; the business name sits quietly on the right */
html.kl.kl .kb-top .kb-cmd input::placeholder{color:var(--ba-mut)!important;opacity:1}
html.kl.kl .kb-top .kb-cmd .kb-cmd-name{position:static!important;transform:none!important;margin-left:auto}
.kb-cmd .kb-cmd-ic{flex:none}
/* groups cannot be folded (the menu is always open), so no fold arrows */
.mbb-sidebar .mbb-section-label .kbp-car{display:none}
.mbb-sidebar .mbb-section-label{cursor:default}.mbb-sidebar .mbb-section-label:hover{background:none!important}
/* the two Classic shortcuts: one tidy line each */
.mbb-sidebar .kb-sidequick{display:flex!important;align-items:center;gap:.55rem;width:100%;margin:.25rem 0!important;padding:.4rem .65rem!important;border-radius:10px!important;font:600 .84rem/1.1 -apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif!important}
.mbb-sidebar .kb-sidequick .t{flex:1;text-align:left;white-space:nowrap;overflow:visible!important;text-overflow:clip!important}
.mbb-sidebar .kb-sidequick kbd{flex:none;border:0!important;background:none!important;padding:0!important;font:500 .7rem/1 -apple-system,Inter,sans-serif!important;color:var(--ba-mut)!important}
/* the cross of a big form: always visible */
.kbpn-ov .modal-box-header .kbpn-tools>button:not(.kbpn-btn){color:var(--text)!important;font-size:1.05rem!important;line-height:1!important;background:var(--card-inner)!important;border:1px solid var(--card-border)!important;text-indent:0!important;overflow:visible!important}
.kbpn-ov .modal-box-header .kbpn-tools>button:not(.kbpn-btn):hover{color:#ef4444!important}
/* the same page links at the foot of a page only repeated the tab bar on top */
.kb-fam-foot{display:none!important}
/* the open page in the menu: a soft pill in its own group colour */
:root:root:root html.kl .mbb-sidebar .mbb-nav-item.active{background:color-mix(in srgb,var(--pg,var(--k-a,#4f46e5)) 16%,transparent)!important;color:var(--text)!important}
