/* BoostCore System Setup kit — one stylesheet, byte-identical in every app.
   Source of the look: outputs/system-setup-prototype (setup.css, help-guides.css, departments.css),
   the System Setup and Help Guides prototype Mark approved on 19 November 2026.
   Everything is scoped under .bch and every element carries a bch- class, so an app's own
   button / heading / table rules cannot reshape it. The kit carries its own colours for the three
   themes because the apps name their colour variables differently. */

.bch{
  --bch-bg:#f3f5f7;--bch-surface:#fff;--bch-border:#dce3e8;--bch-text:#20323b;--bch-muted:#5d6c76;
  --bch-brand:#176b60;--bch-brand-deep:#105348;--bch-brand-tint:#e9f4f0;--bch-focus:#176b60;
  --bch-table-surface:#edf1f4;--bch-table-ink:#405560;--bch-danger:#b3261e;--bch-error-bg:#fce9e7;
  --bch-warning:#805200;--bch-warning-bg:#fff3d6;--bch-inactive-bg:#f3f5f7;
  /* One text unit: the prototype's 16 px, or the app's larger root when its text-size preference grows it. */
  --bch-u:max(1rem,16px);
  container:bch/inline-size;box-sizing:border-box;display:block;min-width:0;margin:0;padding:0;
  color:var(--bch-text);font-family:inherit;font-size:var(--bch-u);font-weight:400;line-height:1.5;text-align:left;
  letter-spacing:normal;text-transform:none;
}
/* Theme: follows the app's own theme attribute (data-theme, data-appearance-theme, data-office-theme or\n   data-pos-theme) on any ancestor (html, body or a workspace element),
   or an explicit data-bch-theme set by the app (declared last, so it wins). */
[data-theme=light-green] .bch,[data-appearance-theme=light-green] .bch,[data-office-theme=light-green] .bch,[data-pos-theme=light-green] .bch,
.bch[data-bch-theme=light-green]{
  --bch-bg:#f0f7f1;--bch-border:#cddfd1;--bch-text:#243c2e;--bch-muted:#526b59;--bch-brand:#286447;--bch-brand-deep:#21623f;
  --bch-brand-tint:#e3f0e5;--bch-focus:#21623f;--bch-table-surface:#eaf3eb;--bch-table-ink:#35533f;--bch-inactive-bg:#f0f7f1;
}
[data-theme=beige] .bch,[data-appearance-theme=beige] .bch,[data-office-theme=beige] .bch,[data-pos-theme=beige] .bch,
.bch[data-bch-theme=beige]{
  --bch-bg:#f3eee5;--bch-border:#d8cdbc;--bch-text:#302b25;--bch-muted:#716556;--bch-brand:#746044;--bch-brand-deep:#574630;
  --bch-brand-tint:#eee5d6;--bch-focus:#746044;--bch-table-surface:#f0eade;--bch-table-ink:#574630;--bch-inactive-bg:#f3eee5;
}
.bch.bch[data-bch-theme=light-green]{
  --bch-bg:#f0f7f1;--bch-border:#cddfd1;--bch-text:#243c2e;--bch-muted:#526b59;--bch-brand:#286447;--bch-brand-deep:#21623f;
  --bch-brand-tint:#e3f0e5;--bch-focus:#21623f;--bch-table-surface:#eaf3eb;--bch-table-ink:#35533f;--bch-inactive-bg:#f0f7f1;
}
.bch.bch[data-bch-theme=beige]{
  --bch-bg:#f3eee5;--bch-border:#d8cdbc;--bch-text:#302b25;--bch-muted:#716556;--bch-brand:#746044;--bch-brand-deep:#574630;
  --bch-brand-tint:#eee5d6;--bch-focus:#746044;--bch-table-surface:#f0eade;--bch-table-ink:#574630;--bch-inactive-bg:#f3eee5;
}
.bch.bch[data-bch-theme=default]{
  --bch-bg:#f3f5f7;--bch-border:#dce3e8;--bch-text:#20323b;--bch-muted:#5d6c76;--bch-brand:#176b60;--bch-brand-deep:#105348;
  --bch-brand-tint:#e9f4f0;--bch-focus:#176b60;--bch-table-surface:#edf1f4;--bch-table-ink:#405560;--bch-inactive-bg:#f3f5f7;
}
/* Reset: every kit element starts from nothing, whatever the app styles globally. */
.bch [class*="bch-"]{
  box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;outline:0;
  float:none;position:static;inset:auto;transform:none;width:auto;height:auto;min-width:0;min-height:0;max-width:none;max-height:none;
  font:inherit;color:inherit;text-align:inherit;text-decoration:none;text-transform:none;letter-spacing:normal;
  text-shadow:none;opacity:1;filter:none;transition:none;animation:none;cursor:auto;appearance:none;
  list-style:none;vertical-align:baseline;white-space:normal;overflow:visible;overflow-wrap:anywhere;
  flex-direction:row;flex-wrap:nowrap;justify-content:normal;align-items:normal;gap:normal;
}
.bch [class*="bch-"]::before,.bch [class*="bch-"]::after{content:none}
.bch [class*="bch-"]:focus-visible{outline:3px solid var(--bch-focus);outline-offset:2px}
.bch [hidden]{display:none!important}

/* Page frame */
.bch .bch-main{display:block;padding:28px 32px 48px;max-width:1440px;margin:0 auto}
.bch-page .bch-main{padding:0;max-width:none}
.bch .bch-crumbs{display:block;font-size:calc(var(--bch-u)*.84);color:var(--bch-muted);margin:0 0 13px}
.bch .bch-crumb-link{color:var(--bch-brand);cursor:pointer;display:inline;font-size:inherit}
.bch .bch-crumb-link:hover{text-decoration:underline}
.bch .bch-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:0 0 24px}
.bch .bch-title-text{display:block;min-width:0;flex:1 1 auto}
.bch .bch-h1{display:block;font-size:calc(var(--bch-u)*1.9);font-weight:700;line-height:1.15;letter-spacing:-.025em;margin:0 0 8px;color:var(--bch-text)}
.bch .bch-lede{display:block;margin:0;color:var(--bch-muted);max-width:65ch;line-height:1.5}
.bch .bch-title-actions{display:flex;flex-wrap:wrap;gap:10px;flex:none}
.bch .bch-h2{display:block;font-size:calc(var(--bch-u)*1.13);font-weight:700;line-height:1.3;margin:0 0 7px;color:var(--bch-text)}
.bch .bch-h3{display:block;font-size:calc(var(--bch-u)*1);font-weight:700;line-height:1.3;margin:0;color:var(--bch-text)}
.bch .bch-text{display:block;line-height:1.65;color:var(--bch-text)}

/* Buttons and links */
.bch .bch-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid var(--bch-border);border-radius:6px;
  background:var(--bch-surface);color:var(--bch-text);padding:8px 16px;font-weight:650;line-height:1.25;cursor:pointer;text-align:center;white-space:normal}
.bch .bch-btn:hover{border-color:var(--bch-brand);background:var(--bch-brand-tint)}
.bch .bch-btn-primary{background:var(--bch-brand);border-color:var(--bch-brand);color:#fff}
.bch .bch-btn-primary:hover{background:var(--bch-brand-deep);border-color:var(--bch-brand-deep);color:#fff}
.bch .bch-btn:disabled,.bch .bch-btn[aria-disabled=true]{opacity:.55;cursor:default}
.bch .bch-link{display:inline;color:var(--bch-brand);text-decoration:underline;cursor:pointer;font-weight:400}

/* Panels and fields */
.bch .bch-panel{display:block;background:var(--bch-surface);border:1px solid var(--bch-border);border-radius:9px;padding:24px;margin:0 0 20px}
.bch .bch-field{display:grid;align-content:start;gap:7px;min-width:0}
.bch .bch-label{display:block;font-size:calc(var(--bch-u)*.84);font-weight:650;color:var(--bch-muted)}
.bch .bch-input{display:block;width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--bch-border);border-radius:5px;
  background:var(--bch-surface);color:var(--bch-text);line-height:1.4;cursor:text}
.bch select.bch-input{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;cursor:pointer;padding-right:34px;appearance:none;background-color:var(--bch-surface);background-repeat:no-repeat;
  /* Chevron drawn with gradients: no image request, so no content-security policy can block it. */
  background-image:linear-gradient(45deg,transparent 50%,var(--bch-muted) 50%),linear-gradient(135deg,var(--bch-muted) 50%,transparent 50%);
  background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px,5px 5px}
.bch textarea.bch-input{min-height:80px;resize:vertical}
.bch .bch-input:disabled,.bch .bch-input[readonly]{background:var(--bch-bg);color:var(--bch-muted)}
.bch .bch-check{display:flex;align-items:center;gap:10px;min-height:42px;cursor:pointer}
.bch .bch-check input{appearance:auto;width:18px;height:18px;margin:0;accent-color:var(--bch-brand);flex:none}
.bch .bch-notice{display:block;border-left:3px solid var(--bch-brand);padding:12px 16px;background:var(--bch-brand-tint);margin:0 0 20px;line-height:1.5}
.bch .bch-notice-error{background:var(--bch-error-bg);border-color:var(--bch-danger)}
.bch .bch-notice-warning{background:var(--bch-warning-bg);border-color:var(--bch-warning)}

/* Help Guides — index */
.bch .bch-help-search .bch-field{max-width:520px}
.bch .bch-help-index{display:grid;gap:26px}
.bch .bch-help-group .bch-h2{font-size:calc(var(--bch-u)*1.125);margin:0 0 12px}
.bch .bch-help-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bch .bch-help-card{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;text-align:left;padding:20px;
  background:var(--bch-surface);color:var(--bch-text);border:1px solid var(--bch-border);border-radius:7px;cursor:pointer;min-width:0}
.bch .bch-help-card:hover{border-color:var(--bch-brand)}
.bch .bch-help-card-text{display:block;min-width:0;flex:1 1 auto}
.bch .bch-help-card-title{display:block;font-size:calc(var(--bch-u)*1);font-weight:700;line-height:1.35;color:var(--bch-brand)}
.bch .bch-help-card-summary{display:block;font-size:calc(var(--bch-u)*.875);line-height:1.55;color:var(--bch-muted);margin-top:6px}
.bch .bch-help-card-chevron{display:block;flex:none;font-size:calc(var(--bch-u)*1.1);line-height:1;color:var(--bch-muted)}
.bch .bch-empty{display:block;padding:16px 0;color:var(--bch-muted)}

/* Help Guides — article */
.bch .bch-help-article{max-width:900px;line-height:1.65}
.bch .bch-help-article>.bch-h2{margin:24px 0 12px;font-size:calc(var(--bch-u)*1.125)}
.bch .bch-help-article>.bch-h2:first-child{margin-top:0}
.bch .bch-steps{display:block;padding-left:24px;list-style:decimal outside}
.bch .bch-steps>.bch-step{display:list-item;list-style:decimal outside;padding-left:4px;margin-bottom:12px;line-height:1.65}
.bch .bch-defs{display:block;margin:0}
.bch .bch-def{display:block;padding:14px 0;border-bottom:1px solid var(--bch-border)}
.bch .bch-def-term{display:block;font-weight:600}
.bch .bch-def-text{display:block;margin:4px 0 0;color:var(--bch-muted)}
.bch .bch-note{display:block;border-left:3px solid var(--bch-brand);padding:4px 0 4px 16px;margin-top:26px}
.bch .bch-note .bch-h3{font-size:calc(var(--bch-u)*1)}
.bch .bch-note-text{display:block;margin:6px 0 0;color:var(--bch-muted)}
.bch .bch-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:24px;padding-top:20px;border-top:1px solid var(--bch-border)}

/* Setup records — list */
.bch .bch-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:18px;margin:0 0 18px}
.bch .bch-toolbar-search{width:320px;max-width:100%}
.bch .bch-toolbar-status{width:170px;max-width:100%}
.bch .bch-table-wrap{display:block;overflow-x:auto}
.bch .bch-table{display:table;border-collapse:collapse;border-spacing:0;width:100%;font-size:calc(var(--bch-u)*.91);table-layout:auto;background:none}
.bch .bch-thead{display:table-header-group}.bch .bch-tbody{display:table-row-group}.bch .bch-tr{display:table-row;background:none}
.bch .bch-th,.bch .bch-td{display:table-cell;text-align:left;border-bottom:1px solid var(--bch-border);padding:13px 16px;vertical-align:middle;overflow-wrap:break-word}
/* Inside a table, words break only when they cannot fit, so a column never shrinks below its longest word. */
.bch .bch-table [class*="bch-"]{overflow-wrap:break-word}
.bch .bch-tbody .bch-tr:last-child .bch-td{border-bottom:0}
.bch .bch-th{font-size:calc(var(--bch-u)*.8);color:var(--bch-table-ink);background:var(--bch-table-surface);font-weight:650;line-height:1.3}
.bch .bch-td{line-height:1.45}
.bch .bch-open{display:inline;color:var(--bch-brand);font-weight:650;padding:4px 0;cursor:pointer;text-align:left}
.bch .bch-open:hover{text-decoration:underline}
.bch .bch-pill{display:inline-block;padding:3px 9px;border-radius:4px;color:var(--bch-brand-deep);background:var(--bch-brand-tint);font-size:calc(var(--bch-u)*.8);line-height:1.4;white-space:nowrap}
.bch .bch-pill-inactive{background:var(--bch-inactive-bg);color:var(--bch-muted)}

/* Setup records — saved record and editor */
.bch .bch-record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 4px}
.bch .bch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 28px;margin:22px 0 28px}
.bch .bch-grid-item{display:block;min-width:0}
.bch .bch-grid-wide{grid-column:1/-1}
/* A checkbox in a field grid keeps the box beside its label (the grid item rule above would stack them). */
.bch .bch-check.bch-grid-item{display:flex}
.bch .bch-grid-term{display:block;font-size:calc(var(--bch-u)*.84);font-weight:650;color:var(--bch-muted)}
.bch .bch-grid-value{display:block;margin:2px 0 0;line-height:1.5;white-space:pre-wrap}
.bch .bch-details{display:block;margin:0 0 22px}
.bch .bch-summary{display:list-item;list-style:disclosure-closed inside;cursor:pointer;color:var(--bch-brand);font-weight:650;min-height:32px}
.bch .bch-details[open]>.bch-summary{list-style-type:disclosure-open}
.bch .bch-savebar{position:sticky;bottom:0;display:flex;justify-content:flex-end;flex-wrap:wrap;align-items:center;gap:10px;background:var(--bch-surface);
  padding:14px 0 0;margin-top:8px;border-top:1px solid var(--bch-border);z-index:1}
.bch .bch-savebar-note{display:block;margin-right:auto;font-size:calc(var(--bch-u)*.85);color:var(--bch-muted)}
.bch .bch-status-line{display:block;margin:0 0 16px;color:var(--bch-muted)}
.bch .bch-num{text-align:right;font-variant-numeric:tabular-nums}

/* Per-list layout, exactly as each approved list page: departments.css, classes.css, locations.css,
   tax-codes.css, withholding-tax-codes.css (fixed column shares; saved-record grid). */
.bch[data-bch-kind] .bch-table{table-layout:fixed}
.bch[data-bch-kind=departments] .bch-thead .bch-th:nth-child(1),.bch[data-bch-kind=classes] .bch-thead .bch-th:nth-child(1){width:25%}
.bch[data-bch-kind=departments] .bch-thead .bch-th:nth-child(2),.bch[data-bch-kind=classes] .bch-thead .bch-th:nth-child(2){width:55%}
.bch[data-bch-kind=departments] .bch-grid,.bch[data-bch-kind=classes] .bch-grid{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr)}
.bch[data-bch-kind=locations] .bch-thead .bch-th:nth-child(1){width:19%}
.bch[data-bch-kind=locations] .bch-thead .bch-th:nth-child(2){width:30%}
.bch[data-bch-kind=locations] .bch-thead .bch-th:nth-child(3){width:17%}
.bch[data-bch-kind=locations] .bch-thead .bch-th:nth-child(4){width:19%}
.bch[data-bch-kind=locations] .bch-grid,.bch[data-bch-kind$=tax-codes] .bch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.bch[data-bch-kind$=tax-codes] .bch-thead .bch-th:nth-child(1){width:20%}
.bch[data-bch-kind$=tax-codes] .bch-thead .bch-th:nth-child(2){width:32%}
.bch[data-bch-kind$=tax-codes] .bch-thead .bch-th:nth-child(3){width:14%}
.bch[data-bch-kind$=tax-codes] .bch-thead .bch-th:nth-child(4){width:18%}
.bch[data-bch-kind$=tax-codes] .bch-grid{margin-bottom:24px}
.bch[data-bch-kind$=tax-codes] .bch-details{border-top:1px solid var(--bch-border);padding:18px 0 4px}
.bch[data-bch-kind$=tax-codes] .bch-summary{font-weight:600}
.bch[data-bch-kind$=tax-codes] form .bch-h3{border-top:1px solid var(--bch-border);padding-top:18px}
/* Users, Roles & Permissions and Document Numbering lists, exactly as the approved prototype measures them
   (setup.js / role-catalog.js): the search is the input's natural 20-character width (204px at 16px, at 1440
   and at 390 alike), and a table whose columns ARE the prototype's takes its column shares. A list with extra
   genuine columns keeps automatic widths and records that in its acceptance map. */
.bch .bch-toolbar-search.bch-toolbar-search-compact{flex:0 1 auto;width:calc(var(--bch-u)*12.75)}
.bch .bch-table.bch-cols-users,.bch .bch-table.bch-cols-roles,.bch .bch-table.bch-cols-numbering{table-layout:fixed}
.bch .bch-cols-users .bch-thead .bch-th:nth-child(1){width:32%}
.bch .bch-cols-users .bch-thead .bch-th:nth-child(2){width:53%}
.bch .bch-cols-roles .bch-thead .bch-th:nth-child(1){width:23%}
.bch .bch-cols-roles .bch-thead .bch-th:nth-child(2){width:49%}
.bch .bch-cols-roles .bch-thead .bch-th:nth-child(3){width:16%}
.bch .bch-cols-numbering .bch-thead .bch-th:nth-child(1){width:28%}
.bch .bch-cols-numbering .bch-thead .bch-th:nth-child(2){width:17%}
.bch .bch-cols-numbering .bch-thead .bch-th:nth-child(3){width:18%}
.bch .bch-cols-numbering .bch-thead .bch-th:nth-child(4){width:23%}

/* Native setup pages — Company Profile, Users, Roles & Permissions, Document Numbering.
   Source: the prototype's company-profile.css, user-record-tabs.css, roles-permissions.css and
   document-numbering.css. Classes only: each app keeps its own page logic and draws it with these. */
.bch .bch-btn-danger{color:var(--bch-danger)}
.bch .bch-btn-danger:hover{border-color:var(--bch-danger);background:var(--bch-error-bg);color:var(--bch-danger)}
.bch .bch-notice-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.bch .bch-record-title{display:block;font-size:calc(var(--bch-u)*.95);font-weight:700;line-height:1.35;color:var(--bch-text)}
.bch .bch-record-aside{display:block;margin:0;font-size:calc(var(--bch-u)*.84);line-height:1.5;color:var(--bch-muted);max-width:38ch}
.bch .bch-meta{display:flex;flex-wrap:wrap;gap:8px 20px;margin:7px 0 14px;font-size:calc(var(--bch-u)*.82);line-height:1.4;color:var(--bch-muted)}
.bch .bch-meta-item{display:inline}
.bch .bch-small{display:block;font-size:calc(var(--bch-u)*.83);line-height:1.55;color:var(--bch-muted)}
.bch .bch-flag{display:block;margin-top:6px;font-size:calc(var(--bch-u)*.8);font-weight:600;color:var(--bch-brand-deep)}
/* Section links scroll with the page. The prototype pins them under its review bar; in the apps that would slide
   them under (or over) each app's own fixed top bar, so pinning waits for a per-app offset (--bch-sticky-top). */
.bch .bch-sectionnav{display:flex;flex-wrap:wrap;gap:4px;padding:7px;margin:0 0 18px;background:var(--bch-surface);border:1px solid var(--bch-border);border-radius:7px}
.bch .bch-sectionnav-link{display:inline-flex;align-items:center;min-height:38px;padding:9px 13px;border-radius:4px;color:var(--bch-brand);font-weight:650;line-height:1.25;cursor:pointer}
.bch .bch-sectionnav-link:hover,.bch .bch-sectionnav-link[aria-current]:not([aria-current=false]){background:var(--bch-brand-tint)}
.bch .bch-section{display:block;scroll-margin-top:calc(var(--bch-sticky-top,0px) + 16px)}
.bch .bch-section-head{display:block;padding-bottom:18px;border-bottom:1px solid var(--bch-border)}
.bch .bch-section-head .bch-h2{margin:0}
.bch .bch-section-desc{display:block;margin:5px 0 0;font-size:calc(var(--bch-u)*.9);line-height:1.5;color:var(--bch-muted);max-width:70ch}
.bch .bch-sub{display:block;padding-top:24px;margin-top:24px;border-top:1px solid var(--bch-border)}
.bch .bch-sub-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px}
.bch .bch-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.bch .bch-hint{display:block;font-size:calc(var(--bch-u)*.8);line-height:1.4;color:var(--bch-muted)}
.bch .bch-req{display:inline;margin-left:5px;font-size:calc(var(--bch-u)*.72);font-weight:500;color:var(--bch-muted)}
.bch .bch-field-error{display:block;font-size:calc(var(--bch-u)*.8);line-height:1.4;font-weight:600;color:var(--bch-danger)}
.bch .bch-input[aria-invalid=true]{border-color:var(--bch-danger)}
.bch input.bch-checkbox{appearance:auto;display:inline-block;width:18px;height:18px;margin:0;flex:none;accent-color:var(--bch-brand);cursor:pointer;vertical-align:middle}
.bch .bch-logo-row{display:grid;grid-template-columns:88px minmax(0,1fr);gap:20px;align-items:start;padding-top:24px;margin-top:24px;border-top:1px solid var(--bch-border)}
.bch .bch-logo{display:grid;place-items:center;width:88px;height:88px;border:1px solid var(--bch-border);border-radius:9px;background:var(--bch-bg);overflow:hidden}
.bch .bch-logo-img{display:block;width:100%;height:100%;padding:3px;object-fit:contain;background:#fff}
.bch .bch-logo-initials{display:grid;place-items:center;width:64px;height:64px;border-radius:7px;background:var(--bch-brand);color:#fff;font-size:calc(var(--bch-u)*1.2);font-weight:700}
.bch .bch-tabs{display:flex;flex-wrap:wrap;gap:22px;margin:0 0 22px;border-bottom:1px solid var(--bch-border)}
.bch .bch-tab{display:inline-flex;align-items:center;min-height:46px;padding:10px 4px;border-bottom:3px solid transparent;color:var(--bch-muted);font-weight:650;line-height:1.25;cursor:pointer;overflow-wrap:break-word}
.bch .bch-tab:hover{color:var(--bch-brand)}
.bch .bch-tab[aria-selected=true],.bch .bch-tab[aria-current=page],.bch .bch-tab.bch-tab-active{color:var(--bch-brand-deep);border-bottom-color:var(--bch-brand)}
.bch .bch-context{display:flex;flex-wrap:wrap;align-items:center;gap:7px 18px;padding:3px 0 19px}
.bch .bch-context-name{display:inline;font-size:calc(var(--bch-u)*1.05);font-weight:700}
.bch .bch-context-sub{display:inline;font-size:calc(var(--bch-u)*.89);color:var(--bch-muted)}
.bch .bch-context-end{display:inline;margin-left:auto;font-size:calc(var(--bch-u)*.8);color:var(--bch-muted)}
.bch .bch-matrix .bch-thead .bch-th:not(:first-child),.bch .bch-matrix .bch-td{text-align:center}
.bch .bch-matrix .bch-th-row{background:var(--bch-surface);color:var(--bch-text);font-size:calc(var(--bch-u)*.92);font-weight:600;text-align:left}
.bch .bch-matrix .bch-th-group{padding:10px 16px;background:var(--bch-bg);color:var(--bch-brand-deep);text-align:left}
.bch .bch-matrix .bch-th-row .bch-small,.bch .bch-matrix .bch-th-row .bch-hint{font-weight:400}
.bch .bch-section-head+.bch-table-wrap,.bch .bch-section-head+.bch-toolbar{margin-top:22px}
.bch .bch-matrix-check{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:auto;cursor:pointer}
.bch .bch-matrix-label{display:none}
.bch .bch-review{display:block;margin-top:24px;padding:18px 20px;border-left:3px solid var(--bch-brand);background:var(--bch-brand-tint)}
.bch .bch-review-item{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--bch-border);font-size:calc(var(--bch-u)*.86)}
.bch .bch-list{display:block;padding-left:20px;list-style:disc outside;font-size:calc(var(--bch-u)*.88);line-height:1.7;color:var(--bch-muted)}
.bch .bch-list>.bch-list-item{display:list-item;list-style:disc outside}
.bch .bch-mono{font-family:Consolas,"Cascadia Mono","Courier New",monospace;font-size:calc(var(--bch-u)*.8125)}
.bch .bch-sample{display:block;padding:20px;background:var(--bch-bg);border:1px solid var(--bch-border);border-left:3px solid var(--bch-brand);border-radius:6px}
.bch .bch-sample-value{display:block;font-family:Consolas,"Cascadia Mono","Courier New",monospace;font-size:calc(var(--bch-u)*1.3125);font-weight:600;line-height:1.5}
.bch .bch-savebar-float{padding:14px 18px;border:1px solid var(--bch-border);border-radius:6px;box-shadow:0 -4px 14px rgba(32,50,59,.035);z-index:9}
.bch .bch-pill-warning{background:var(--bch-warning-bg);color:var(--bch-warning)}
.bch .bch-pill-danger{background:var(--bch-error-bg);color:var(--bch-danger)}
.bch .bch-td-muted{color:var(--bch-muted)}
.bch .bch-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 16px}
.bch .bch-row-action{display:inline;padding:4px 0;color:var(--bch-brand);font-weight:650;cursor:pointer;white-space:nowrap}
.bch .bch-row-action:hover{text-decoration:underline}
.bch .bch-row-action-danger{color:var(--bch-danger)}
.bch .bch-row-action:disabled{opacity:.55;cursor:default;text-decoration:none}
.bch input[type=file].bch-input{padding:8px;font-size:calc(var(--bch-u)*.85);cursor:pointer;max-width:480px}
.bch input[type=file].bch-input::file-selector-button{font:inherit;margin:0 10px 0 0;padding:6px 12px;border:1px solid var(--bch-border);border-radius:5px;background:var(--bch-bg);color:var(--bch-text);cursor:pointer}
.bch .bch-table-boxed{border:1px solid var(--bch-border);border-radius:6px}
.bch .bch-tbody .bch-tr:last-child .bch-th{border-bottom:0}
.bch .bch-savebar:not(:last-child){padding-bottom:14px;margin-bottom:8px}
/* Company Profile sub-elements, exactly as company-profile.css and tax-setup.css draw them. */
.bch .bch-tag{display:inline-block;margin-left:6px;font-size:calc(var(--bch-u)*.75);font-weight:500;color:var(--bch-muted)}
.bch .bch-sub-text{display:block;margin:0 0 12px;font-size:calc(var(--bch-u)*.86);line-height:1.5;color:var(--bch-muted);max-width:65ch}
.bch .bch-context-note{display:block;margin:24px 0 0;padding:8px 14px;border-left:3px solid var(--bch-brand);background:var(--bch-brand-tint);font-size:calc(var(--bch-u)*.84);line-height:1.6;color:var(--bch-text);max-width:75ch}
.bch .bch-restricted{display:block;margin:12px 0 0;padding:12px 14px;background:var(--bch-bg);border:1px solid var(--bch-border);border-radius:5px;font-size:calc(var(--bch-u)*.87);line-height:1.5;color:var(--bch-muted)}
.bch .bch-empty-note{display:block;margin:16px 0 0;font-size:calc(var(--bch-u)*.88);line-height:1.5;color:var(--bch-muted)}
.bch .bch-bank{display:block;margin-top:18px;padding:18px;background:var(--bch-bg);border:1px solid var(--bch-border);border-radius:6px}
.bch .bch-bank .bch-input{background:var(--bch-surface)}
.bch .bch-check-line{display:flex;align-items:center;gap:9px;margin-top:20px;font-size:calc(var(--bch-u)*.87);line-height:1.5;cursor:pointer}
.bch .bch-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:18px}
.bch .bch-card{display:block;min-width:0;padding:18px;border:1px solid var(--bch-border);border-radius:6px;background:var(--bch-surface)}
.bch .bch-card-title{display:block;margin:0 0 16px;font-size:var(--bch-u);font-weight:700;color:var(--bch-text)}
.bch .bch-rate-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0;padding:13px 0;border-top:1px solid var(--bch-border);border-bottom:1px solid var(--bch-border)}
.bch .bch-rate-label{display:inline;font-size:calc(var(--bch-u)*.84);color:var(--bch-muted)}
.bch .bch-rate-value{display:inline;font-weight:700;color:var(--bch-brand-deep);white-space:nowrap}
/* The company mark when no logo is chosen: the building icon on the brand colour (landing.css .side-logo). */
.bch .bch-logo-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:.55rem;background:var(--bch-brand);color:#fff;font-size:calc(var(--bch-u)*1.2);font-weight:800;box-shadow:0 0 0 1px #ffffff38}
.bch .bch-actions-inline{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
.bch .bch-panel>.bch-section-desc{margin-bottom:18px}
.bch .bch-table-wrap+.bch-small{margin-top:12px}
.bch .bch-sample+.bch-details,.bch .bch-table-wrap+.bch-review{margin-top:22px}
.bch .bch-matrix .bch-td .bch-input{max-width:220px;margin:0 auto}
.bch .bch-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Help Guides in a dialog over the workspace: drafts and offline queues behind it stay mounted. */
dialog.bch.bch-dialog{position:fixed;inset:0;width:min(1180px,calc(100vw - 48px));height:calc(100dvh - 48px);max-width:none;max-height:none;margin:auto;padding:0;
  border:1px solid var(--bch-border);border-radius:12px;background:var(--bch-bg);color:var(--bch-text);overflow:hidden;box-shadow:0 24px 60px rgba(16,42,50,.28)}
dialog.bch.bch-dialog:not([open]){display:none}
dialog.bch.bch-dialog[open]{display:flex;flex-direction:column}
dialog.bch.bch-dialog::backdrop{background:rgba(16,42,50,.6)}
.bch .bch-bar{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:12px 28px;background:var(--bch-surface);
  border-bottom:1px solid var(--bch-border);font-size:calc(var(--bch-u)*.9)}
.bch .bch-bar-app{display:block;min-width:0;color:var(--bch-text)}
.bch .bch-scroll{display:block;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}

@container bch (max-width:900px){
  .bch .bch-main{padding:22px 16px 32px}
  .bch-page .bch-main{padding:0}
  .bch .bch-title{flex-wrap:wrap;margin-bottom:20px}
  .bch .bch-h1{font-size:calc(var(--bch-u)*1.65)}
  .bch .bch-title-actions{width:100%}
  .bch .bch-title-actions .bch-btn{flex:1 1 100%}
  .bch .bch-panel{padding:18px 16px}
  .bch .bch-help-cards{grid-template-columns:minmax(0,1fr)}
  .bch .bch-help-card{padding:18px}
  .bch .bch-steps{padding-left:20px}
  .bch .bch-actions .bch-btn{flex:1 1 100%}
  .bch .bch-bar{padding:12px 16px}
  .bch .bch-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .bch .bch-toolbar-search{flex:1 1 180px;width:auto}
  .bch .bch-toolbar-status{flex:1 1 130px;width:auto}
  .bch .bch-table,.bch .bch-tbody,.bch .bch-td{display:block;width:100%}
  .bch .bch-thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .bch .bch-tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 18px;padding:18px 0;border-top:1px solid var(--bch-border)}
  .bch .bch-tbody .bch-tr:first-child{border-top:0}
  .bch .bch-td,.bch .bch-tbody .bch-tr:last-child .bch-td{border:0;padding:0}
  .bch .bch-td::before{content:attr(data-label);display:block;color:var(--bch-muted);font-size:calc(var(--bch-u)*.75);font-weight:600;margin-bottom:4px}
  .bch .bch-td-lead{grid-column:1/-1;grid-row:1}
  .bch .bch-td-lead::before{content:none;display:none}
  .bch .bch-td-lead .bch-open{font-size:calc(var(--bch-u)*1.06)}
  .bch .bch-record-head{flex-wrap:wrap}
}
@container bch (max-width:900px){
  .bch .bch-sectionnav{position:static;gap:2px}
  .bch .bch-sectionnav-link{padding:8px 10px;font-size:calc(var(--bch-u)*.85)}
  .bch .bch-grid-2{grid-template-columns:minmax(0,1fr)}
  .bch .bch-record-aside{max-width:none}
  .bch .bch-tabs{gap:0}
  /* Equal tabs when they fit; a tab never breaks inside a word, the row wraps instead. */
  .bch .bch-context{display:grid;gap:5px}
  .bch .bch-context-end{margin-left:0}
  .bch .bch-logo-row{grid-template-columns:64px minmax(0,1fr);gap:14px}
  .bch .bch-logo{width:64px;height:64px}
  .bch .bch-logo-initials,.bch .bch-logo-mark{width:48px;height:48px}
  .bch .bch-card-grid{grid-template-columns:minmax(0,1fr)}
  .bch .bch-card .bch-btn,.bch .bch-sub-head .bch-btn{width:100%}
  .bch .bch-bank{padding:16px}
  .bch .bch-review{padding:16px}
  .bch .bch-review-item{display:grid;gap:5px}
  .bch .bch-sample{padding:16px}
  .bch .bch-sample-value{font-size:calc(var(--bch-u)*1.125)}
  .bch .bch-savebar-float .bch-savebar-note{flex-basis:100%}
  /* Phone: one card per row, every action of the row on one line whatever the number of columns. */
  .bch .bch-matrix .bch-tr{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 10px;padding:14px;border:1px solid var(--bch-border);border-radius:6px;background:var(--bch-surface)}
  .bch .bch-matrix .bch-tr>.bch-td{flex:1 1 0;min-width:0}
  .bch .bch-matrix .bch-tbody .bch-tr:not(.bch-tr-group):first-child{border-top:1px solid var(--bch-border)}
  .bch .bch-matrix .bch-tr.bch-tr-group{display:block;margin:18px 0 0;padding:0;border:0;background:none}
  .bch .bch-matrix .bch-th-row,.bch .bch-matrix .bch-th-group{display:block;flex:1 1 100%;grid-column:1/-1;padding:0 0 10px;border:0;background:none}
  .bch .bch-matrix .bch-th-group{padding:12px 0;font-size:calc(var(--bch-u)*.9)}
  .bch .bch-matrix .bch-td{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:60px}
  .bch .bch-matrix .bch-td::before{content:none;display:none}
  .bch .bch-matrix-label{display:block;color:var(--bch-muted);font-size:calc(var(--bch-u)*.8)}
  .bch .bch-matrix-check{flex-direction:column;gap:10px;width:100%;min-height:60px}
  .bch .bch-table-boxed{border:0;border-radius:0}
  .bch[data-bch-kind] .bch-grid{grid-template-columns:minmax(0,1fr)}
  .bch .bch-td-actions,.bch .bch-td-wide{grid-column:1/-1}
  .bch .bch-td-actions::before{content:none;display:none}
  .bch .bch-row-actions{justify-content:flex-start}
}
@media (max-width:700px){
  dialog.bch.bch-dialog{width:100vw;height:100dvh;border:0;border-radius:0}
}
@media (prefers-reduced-motion:reduce){.bch [class*="bch-"]{scroll-behavior:auto;transition:none}}
