/*
 * Back office (/bo). Plain CSS: the public site's Tailwind build does not cover these pages.
 * Brand colours match Styles/site.css. Fonts are self-hosted in wwwroot/fonts (SIL OFL, see OFL.txt there).
 * Sections: 1 tokens · 2 base · 3 shell · 4 page header · 5 buttons · 6 forms · 7 panels · 8 tables and badges
 *           9 alerts and dialog · 10 workspace pieces · 11 sign-in · 12 small screens
 */

/* 1 · Tokens ---------------------------------------------------------------------------------------------------- */
@font-face { font-family: Inter; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Poppins; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Poppins; src: url("../fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --bo-navy: #0A0D53;
    --bo-navy-hover: #1A1F6E;
    --bo-navy-tint: #EEF0FA;
    --bo-orange: #FF8C33;
    --bo-blue: #046BD2;
    --bo-blue-ink: #0A5BAF;
    --bo-blue-bg: #EFF6FF;
    --bo-ink: #1B1D2E;
    --bo-muted: #5B6075;
    --bo-canvas: #F5F6FA;
    --bo-surface: #FFFFFF;
    --bo-surface-alt: #FAFBFD;
    --bo-hover: #F5F6FA;
    --bo-line: #E3E6EE;
    --bo-line-strong: #CBD0DC;
    --bo-success: #067647;
    --bo-success-bg: #ECFDF3;
    --bo-success-line: #ABEFC6;
    --bo-warning: #93370D;
    --bo-warning-bg: #FFFAEB;
    --bo-warning-line: #FEDF89;
    --bo-danger: #B42318;
    --bo-danger-hover: #912018;
    --bo-danger-bg: #FEF3F2;
    --bo-danger-line: #FECDCA;
    --bo-radius-sm: 6px;
    --bo-radius: 8px;
    --bo-shadow-sm: 0 1px 2px rgb(10 13 83 / .06), 0 2px 8px rgb(10 13 83 / .04);
    --bo-shadow: 0 4px 16px rgb(10 13 83 / .08), 0 1px 3px rgb(10 13 83 / .06);
    --bo-font: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --bo-font-title: Poppins, var(--bo-font);
    --bo-sidebar: 248px;
    --bo-topbar: 56px;
    --bo-gutter: 32px;
}

/* 2 · Base ------------------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bo {
    margin: 0; font: 400 14px/1.5 var(--bo-font); color: var(--bo-ink); background: var(--bo-canvas);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01";
}
h1, h2, h3 { margin: 0; color: var(--bo-ink); }
h1 { font: 500 24px/1.3 var(--bo-font-title); color: var(--bo-navy); letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 600; line-height: 1.4; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
a { color: var(--bo-blue); text-decoration: none; text-underline-offset: .2em; }
a:hover { color: var(--bo-blue-ink); text-decoration: underline; }
.bo-button:hover, .bo-chip:hover, .bo-nav a:hover, .bo-brand:hover, a.bo-tile:hover, .bo-summary a:hover, .bo-slot a:hover, .bo-tabs a:hover { text-decoration: none; }
code { font: 12.5px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; padding: 1px 6px; border-radius: 4px; background: var(--bo-navy-tint); color: var(--bo-navy); overflow-wrap: anywhere; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--bo-blue); outline-offset: 2px; }
::selection { background: #CFE3FA; }
[hidden] { display: none !important; }
.bo-icon { flex: none; display: block; }
.bo-muted { color: var(--bo-muted); font-size: 13px; }
.bo-hint { color: var(--bo-muted); font-size: 13px; font-weight: 400; }
.bo-nowrap { white-space: nowrap; }
.bo-num { text-align: right; font-variant-numeric: tabular-nums; }
.bo-dim { opacity: .6; }
.bo-inline { display: inline-flex; gap: 4px; margin: 0; }
.bo-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bo-skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 16px; border-radius: var(--bo-radius-sm); background: var(--bo-navy); color: #fff; font-weight: 500; }
.bo-skip:focus { top: 12px; color: #fff; }
.bo-checker { background: repeating-conic-gradient(#EEF0F6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* 3 · Shell: sidebar, top bar, main ----------------------------------------------------------------------------- */
.bo-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--bo-sidebar); display: flex; flex-direction: column;
    background: var(--bo-navy); color: #fff; overflow-y: auto; overscroll-behavior: contain;
}
.bo-sidebar :focus-visible { outline-color: #fff; }
.bo-brand { display: flex; align-items: center; gap: 10px; min-height: var(--bo-topbar); padding: 0 20px; color: #fff; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .08); }
.bo-brand:hover { color: #fff; }
.bo-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--bo-orange); color: var(--bo-navy); font: 700 15px/1 var(--bo-font-title); }
.bo-brand-name { display: grid; line-height: 1.15; }
.bo-brand-name strong { font: 700 15px/1.2 var(--bo-font-title); letter-spacing: .02em; }
.bo-brand-name span { font-size: 12px; color: rgb(255 255 255 / .65); }
.bo-nav { display: grid; gap: 2px; padding: 12px 12px 24px; }
.bo-nav-group { margin: 18px 0 4px; padding: 0 12px; font-size: 12px; font-weight: 500; color: rgb(255 255 255 / .55); }
.bo-nav a {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 8px 12px;
    border-radius: var(--bo-radius-sm); color: rgb(255 255 255 / .8); font-weight: 500; text-decoration: none;
    transition: background-color .12s, color .12s;
}
.bo-nav a .bo-icon { opacity: .85; }
.bo-nav a:hover { background: rgb(255 255 255 / .06); color: #fff; }
.bo-nav a[aria-current=page] { background: rgb(255 255 255 / .1); color: #fff; }
.bo-nav a[aria-current=page] .bo-icon { opacity: 1; }
.bo-nav a[aria-current=page]::before {
    content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bo-orange);
}
.bo-sidebar-foot { margin-top: auto; padding: 16px 24px 20px; font-size: 12px; color: rgb(255 255 255 / .5); }

.bo-frame { min-height: 100vh; margin-left: var(--bo-sidebar); display: flex; flex-direction: column; }
.bo-frame-bare { margin-left: 0; }
.bo-main:focus { outline: none; }
.bo-topbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; min-height: var(--bo-topbar);
    padding: 0 var(--bo-gutter); background: var(--bo-surface); border-bottom: 1px solid var(--bo-line);
}
.bo-topbar .bo-menu-button { display: none; }
.bo-breadcrumb { min-width: 0; }
.bo-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--bo-muted); }
.bo-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.bo-breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border: solid var(--bo-line-strong); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); margin-right: 2px; }
.bo-breadcrumb a { color: var(--bo-muted); text-decoration: none; }
.bo-breadcrumb a:hover { color: var(--bo-ink); text-decoration: underline; }
.bo-breadcrumb [aria-current=page] { color: var(--bo-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.bo-account { display: flex; align-items: center; gap: 12px; margin: 0 0 0 auto; }
.bo-avatar {
    display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
    background: var(--bo-navy-tint); color: var(--bo-navy); font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.bo-account-email { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--bo-muted); }
.bo-main { flex: 1; width: 100%; max-width: calc(1200px + 2 * var(--bo-gutter)); margin: 0 auto; padding: 28px var(--bo-gutter) 80px; }
.bo-main-narrow { max-width: calc(880px + 2 * var(--bo-gutter)); }
.bo-scrim { display: none; }

/* Draft bar: Mobile app pages while the draft differs from what is live. */
.bo-draftbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -12px 0 24px; padding: 10px 16px;
    border: 1px solid var(--bo-warning-line); border-radius: var(--bo-radius); background: var(--bo-warning-bg); color: var(--bo-warning); font-size: 13px;
}
.bo-draftbar strong { font-weight: 600; }
.bo-draftbar a { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--bo-warning); font-weight: 600; text-decoration: none; }
.bo-draftbar a:hover { color: var(--bo-warning); text-decoration: underline; }

/* 4 · Page header ----------------------------------------------------------------------------------------------- */
.bo-page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.bo-page-head > div:first-child { min-width: 0; flex: 1 1 360px; }
.bo-page-head p { margin-top: 6px; max-width: 75ch; color: var(--bo-muted); }
.bo-page-head h1 { overflow-wrap: anywhere; }
.bo-page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.bo-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bo-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 36px 0 12px; }
.bo-section-head p { color: var(--bo-muted); font-size: 13px; }

/* 5 · Buttons --------------------------------------------------------------------------------------------------- */
.bo-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; margin: 0;
    border: 1px solid transparent; border-radius: var(--bo-radius-sm); background: var(--bo-navy); color: #fff;
    font: 500 14px/1.2 var(--bo-font); text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .12s, border-color .12s, color .12s, box-shadow .12s;
}
.bo-button:hover { background: var(--bo-navy-hover); color: #fff; }
.bo-button:active { transform: translateY(1px); }
.bo-button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.bo-button-quiet { background: var(--bo-surface); color: var(--bo-ink); border-color: var(--bo-line-strong); box-shadow: 0 1px 2px rgb(10 13 83 / .04); }
.bo-button-quiet:hover { background: var(--bo-hover); color: var(--bo-ink); border-color: #B4BACB; }
.bo-button-ghost { background: transparent; color: var(--bo-ink); }
.bo-button-ghost:hover { background: var(--bo-hover); color: var(--bo-ink); }
.bo-button-danger { background: var(--bo-danger); color: #fff; }
.bo-button-danger:hover { background: var(--bo-danger-hover); color: #fff; }
.bo-button-danger-quiet { background: var(--bo-surface); color: var(--bo-danger); border-color: var(--bo-danger-line); }
.bo-button-danger-quiet:hover { background: var(--bo-danger-bg); color: var(--bo-danger); border-color: #FDA29B; }
.bo-button-small { min-height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.bo-button-link { text-decoration: none; }
.bo-icon-button {
    display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--bo-line-strong);
    border-radius: var(--bo-radius-sm); background: var(--bo-surface); color: var(--bo-ink); cursor: pointer; transition: background-color .12s;
}
.bo-icon-button:hover { background: var(--bo-hover); }
.bo-icon-button:disabled { opacity: .4; cursor: not-allowed; }
.bo-topbar .bo-icon-button { border-color: transparent; }

/* 6 · Forms ----------------------------------------------------------------------------------------------------- */
.bo input:is([type=text], [type=email], [type=password], [type=number], [type=url], [type=tel], [type=date], [type=search], :not([type])),
.bo select, .bo textarea {
    display: block; width: 100%; min-height: 40px; padding: 8px 12px; margin: 0; border: 1px solid var(--bo-line-strong);
    border-radius: var(--bo-radius-sm); background: var(--bo-surface); color: var(--bo-ink); font: 400 14px/1.4 var(--bo-font);
    transition: border-color .12s, box-shadow .12s;
}
.bo input:is([type=text], [type=email], [type=password], [type=number], [type=url], [type=tel], [type=date], [type=search], :not([type])):hover,
.bo select:hover, .bo textarea:hover { border-color: #B4BACB; }
.bo input:is([type=text], [type=email], [type=password], [type=number], [type=url], [type=tel], [type=date], [type=search], :not([type])):focus-visible,
.bo select:focus-visible, .bo textarea:focus-visible { outline: 2px solid var(--bo-blue); outline-offset: 0; border-color: var(--bo-blue); }
.bo input::placeholder, .bo textarea::placeholder { color: #8A8FA3; }
.bo input[type=number] { font-variant-numeric: tabular-nums; }
.bo textarea { min-height: 84px; line-height: 1.5; resize: vertical; }
.bo select {
    appearance: none; padding-right: 36px; cursor: pointer;
    background: var(--bo-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6075' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.bo input[type=color] { width: 56px; height: 40px; padding: 4px; border: 1px solid var(--bo-line-strong); border-radius: var(--bo-radius-sm); background: var(--bo-surface); cursor: pointer; }
.bo input[type=checkbox], .bo input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--bo-navy); flex: none; cursor: pointer; }
.bo input[aria-invalid=true], .bo .input-validation-error { border-color: var(--bo-danger) !important; }

/* A label that wraps its control: label text first, then the input. */
.bo-fields { display: grid; gap: 16px; margin: 0; }
/* Flex so an optional hint sits on the label's line; the control always takes a full line below. */
.bo-fields label:not(.bo-check):not(.bo-switch), .bo-form label:not(.bo-check):not(.bo-switch), label.bo-field {
    display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; gap: 6px 8px; font-size: 13px; font-weight: 500; color: var(--bo-ink);
}
:is(.bo-fields, .bo-form) label:not(.bo-check):not(.bo-switch) > :is(input, select, textarea), label.bo-field > :is(input, select, textarea) { flex: 1 0 100%; }
.bo-colours label { display: grid !important; }
label.bo-narrow { max-width: 260px; }
.bo-dropzone label { display: block !important; font-size: 14px !important; font-weight: 400 !important; color: var(--bo-muted) !important; }
div.bo-field { display: grid; gap: 6px; align-content: start; }
div.bo-field > label { font-size: 13px; font-weight: 500; color: var(--bo-ink); }
.bo-form { display: grid; gap: 16px; margin: 0; }
.bo-field-grid { display: grid; gap: 16px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); align-items: end; }
.bo-field-grid .bo-span { grid-column: 1 / -1; }
.bo-field-row { display: flex; align-items: flex-end; gap: 12px; }
.bo-field-row > :first-child { flex: 1; }
.bo-field-error { color: var(--bo-danger); font-size: 13px; font-weight: 400; }
.bo-field-error:empty { display: none; }
.bo-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; cursor: pointer; }
.bo-check input { margin-top: 2px !important; }
.bo-checks { display: grid; gap: 10px; }
.bo-colours { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: end; }
.bo-colours label { width: auto; }

/* On/off switch: still a checkbox for the form and screen readers. */
.bo-switch { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 400; cursor: pointer; }
.bo-switch input[type=checkbox] {
    appearance: none; position: relative; width: 36px !important; height: 20px !important; margin: 1px 0 0 !important; border-radius: 999px;
    background: var(--bo-line-strong); transition: background-color .15s; cursor: pointer;
}
.bo-switch input[type=checkbox]::before {
    content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 2px rgb(10 13 83 / .25); transition: transform .15s;
}
.bo-switch input[type=checkbox]:checked { background: var(--bo-navy); }
.bo-switch input[type=checkbox]:checked::before { transform: translateX(16px); }
.bo-switch-danger input[type=checkbox]:checked { background: var(--bo-danger); }
.bo-switch-text { display: grid; gap: 2px; }
.bo-switch-text strong { font-weight: 500; }
.bo-switches { display: grid; gap: 16px; }

/* File upload drop zone */
.bo-dropzone {
    position: relative; display: grid; justify-items: center; gap: 8px; padding: 28px 20px; text-align: center;
    border: 1.5px dashed var(--bo-line-strong); border-radius: var(--bo-radius); background: var(--bo-surface-alt); color: var(--bo-muted);
    transition: border-color .12s, background-color .12s;
}
.bo-dropzone.is-over { border-color: var(--bo-blue); background: var(--bo-blue-bg); }
.bo-dropzone .bo-icon { color: var(--bo-navy); }
.bo-dropzone strong { color: var(--bo-ink); font-weight: 500; }
.bo-dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bo-dropzone input[type=file]:focus-visible + .bo-dropzone-focus { position: absolute; inset: -4px; border: 2px solid var(--bo-blue); border-radius: 10px; }
.bo-dropzone-file { font-size: 13px; font-weight: 500; color: var(--bo-ink); overflow-wrap: anywhere; }
.bo-dropzone-file:empty { display: none; }

/* Sticky save bar at the foot of a long form */
.bo-savebar {
    position: sticky; bottom: 16px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px;
    margin-top: 8px; padding: 12px 16px; border: 1px solid var(--bo-line); border-radius: var(--bo-radius);
    background: var(--bo-surface); box-shadow: var(--bo-shadow);
}
.bo-savebar-state { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--bo-muted); font-size: 13px; }
.bo-savebar-state:empty { display: none; }
.bo-savebar.is-dirty .bo-savebar-state { color: var(--bo-warning); font-weight: 500; }
.bo-savebar.is-dirty .bo-savebar-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F79009; }

/* Settings layout: explanation on the left, controls on the right */
.bo-settings { display: grid; gap: 0; }
.bo-settings-row { display: grid; gap: 12px 32px; grid-template-columns: minmax(0, 1fr); padding: 24px 0; border-top: 1px solid var(--bo-line); }
.bo-settings-row:first-child { border-top: 0; padding-top: 0; }
.bo-settings-row > header h2 { margin-bottom: 4px; }
.bo-settings-row > header p { color: var(--bo-muted); font-size: 13px; max-width: 42ch; }
@media (min-width: 960px) { .bo-settings-row { grid-template-columns: 280px minmax(0, 1fr); } }

/* 7 · Panels ---------------------------------------------------------------------------------------------------- */
.bo-card { background: var(--bo-surface); border: 1px solid var(--bo-line); border-radius: var(--bo-radius); padding: 20px 24px; min-width: 0; }
.bo-stack { display: grid; gap: 16px; align-content: start; }
.bo-stack > .bo-panel-head { margin-bottom: 0; }
.bo-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.bo-panel-head p { margin-top: 2px; color: var(--bo-muted); font-size: 13px; }
.bo-panel-flush { padding: 0; overflow: hidden; }
.bo-panel-flush > .bo-panel-head { padding: 16px 20px; margin: 0; border-bottom: 1px solid var(--bo-line); }
.bo-grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .bo-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bo-split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .bo-split { grid-template-columns: minmax(0, 1fr) 320px; } .bo-split-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.bo-aside { display: grid; gap: 16px; }
@media (min-width: 1100px) { .bo-aside { position: sticky; top: calc(var(--bo-topbar) + 24px); } }
.bo-danger-zone {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 32px; padding: 20px 24px;
    background: var(--bo-surface); border: 1px solid var(--bo-danger-line); border-radius: var(--bo-radius);
}
.bo-danger-zone h2 { color: var(--bo-danger); }
.bo-danger-zone p { margin-top: 4px; color: var(--bo-muted); font-size: 13px; max-width: 60ch; }
.bo-empty {
    display: grid; justify-items: center; gap: 8px; padding: 48px 24px; text-align: center; color: var(--bo-muted);
    background: var(--bo-surface); border: 1px dashed var(--bo-line-strong); border-radius: var(--bo-radius);
}
.bo-empty h2 { color: var(--bo-ink); }
.bo-empty p { max-width: 48ch; }
.bo-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; background: var(--bo-navy-tint); color: var(--bo-navy); }

/* Disclosure rows (details/summary) used for "Create …" forms and per-row editors */
.bo-disclosure > summary { list-style: none; cursor: pointer; }
.bo-disclosure > summary::-webkit-details-marker { display: none; }
.bo-disclosure[open] > summary .bo-chevron { transform: rotate(180deg); }
.bo-chevron { transition: transform .15s; color: var(--bo-muted); }
.bo-create { margin-bottom: 16px; }
.bo-create > summary { display: inline-flex; }
.bo-create[open] > summary { margin-bottom: 12px; background: var(--bo-surface); color: var(--bo-ink); border-color: var(--bo-line-strong); }
.bo-create-body { background: var(--bo-surface); border: 1px solid var(--bo-line); border-radius: var(--bo-radius); padding: 20px 24px; }

/* 8 · Tables and badges ----------------------------------------------------------------------------------------- */
.bo-table-wrap { overflow-x: auto; background: var(--bo-surface); border: 1px solid var(--bo-line); border-radius: var(--bo-radius); }
.bo-panel-flush .bo-table-wrap { border: 0; border-radius: 0; }
.bo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bo-table th {
    padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 500; color: var(--bo-muted); white-space: nowrap;
    background: var(--bo-surface-alt); border-bottom: 1px solid var(--bo-line);
}
.bo-table td { padding: 12px 16px; border-bottom: 1px solid var(--bo-line); vertical-align: middle; }
.bo-table tbody tr:last-child td { border-bottom: 0; }
.bo-table tbody tr { transition: background-color .1s; }
.bo-table tbody tr:hover { background: var(--bo-surface-alt); }
.bo-table th.bo-num, .bo-table td.bo-num { text-align: right; }
.bo-table a:not(.bo-button) { color: var(--bo-ink); font-weight: 500; text-decoration: none; }
.bo-table a:not(.bo-button):hover { color: var(--bo-blue); text-decoration: underline; }
.bo-table .bo-actions { text-align: right; white-space: nowrap; width: 1%; }
.bo-table .bo-actions > * { vertical-align: middle; }
.bo-cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bo-cell-sub { display: block; color: var(--bo-muted); font-size: 12px; font-weight: 400; }
.bo-swatch { display: inline-block; flex: none; width: 28px; height: 20px; border-radius: 5px; border: 1px solid rgb(10 13 83 / .12); }

.bo-badge {
    display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px;
    background: #F0F1F5; color: #3F4357; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; vertical-align: middle;
}
.bo-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.bo-badge-plain::before { display: none; }
.bo-badge-success { background: var(--bo-success-bg); color: var(--bo-success); }
.bo-badge-warning { background: var(--bo-warning-bg); color: #B54708; }
.bo-badge-danger { background: var(--bo-danger-bg); color: var(--bo-danger); }
.bo-badge-info { background: var(--bo-blue-bg); color: var(--bo-blue-ink); }
.bo-badge-navy { background: var(--bo-navy-tint); color: var(--bo-navy); }
.bo-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* 9 · Alerts and the confirmation dialog ------------------------------------------------------------------------ */
.bo-alert, .bo-notice, .bo-warning, .bo-info {
    display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 12px 16px; border: 1px solid; border-radius: var(--bo-radius); font-size: 14px;
}
.bo-alert { background: var(--bo-danger-bg); color: var(--bo-danger); border-color: var(--bo-danger-line); }
.bo-notice { background: var(--bo-success-bg); color: var(--bo-success); border-color: var(--bo-success-line); }
.bo-warning { background: var(--bo-warning-bg); color: var(--bo-warning); border-color: var(--bo-warning-line); }
.bo-info { background: var(--bo-blue-bg); color: var(--bo-blue-ink); border-color: #B2D4F5; }
.bo-alert .bo-icon, .bo-notice .bo-icon, .bo-warning .bo-icon, .bo-info .bo-icon { margin-top: 1px; }
.bo-alert-body { flex: 1; min-width: 0; }
.bo-alert-title { margin: 0; font-weight: 600; }
.bo-alert ul { margin: 6px 0 0; padding-left: 18px; }
.bo-alert li + li { margin-top: 2px; }
.bo-alert:empty, .validation-summary-valid { display: none !important; }
.bo-alert-close { margin: -4px -6px -4px auto; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: var(--bo-radius-sm); background: transparent; color: inherit; cursor: pointer; opacity: .75; }
.bo-alert-close:hover { opacity: 1; background: rgb(0 0 0 / .05); }

.bo-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 12px; background: var(--bo-surface); color: var(--bo-ink); box-shadow: 0 24px 48px rgb(10 13 83 / .2); }
.bo-dialog::backdrop { background: rgb(10 13 83 / .45); }
.bo-dialog-body { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 24px 24px 8px; }
.bo-dialog-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bo-danger-bg); color: var(--bo-danger); }
.bo-dialog h2 { margin: 6px 0 6px; }
.bo-dialog p { color: var(--bo-muted); }
.bo-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px 20px; }

/* 10 · Workspace pieces ----------------------------------------------------------------------------------------- */
/* Home dashboard tiles */
.bo-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bo-tile { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
a.bo-tile:hover { border-color: var(--bo-line-strong); box-shadow: var(--bo-shadow-sm); color: inherit; }
.bo-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bo-tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--bo-radius); background: var(--bo-navy-tint); color: var(--bo-navy); }
.bo-tile p { color: var(--bo-muted); }
.bo-tile-foot { justify-self: start; display: inline-flex; align-items: center; gap: 6px; color: var(--bo-blue); font-size: 13px; font-weight: 500; }
.bo-stat { display: grid; gap: 2px; align-content: start; }
.bo-stat-value { font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--bo-navy); font-variant-numeric: tabular-nums; }
.bo-stat-label { color: var(--bo-muted); font-size: 13px; }
.bo-stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: start; align-content: start; }
.bo-big { font-size: 20px; font-weight: 600; color: var(--bo-navy); }

/* Mobile overview: live and draft cards */
.bo-status-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .bo-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bo-status-card { display: grid; gap: 12px; align-content: start; }
.bo-status-card .bo-panel-head { margin-bottom: 0; }
.bo-status-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }
.bo-kv { display: grid; gap: 4px 16px; grid-template-columns: max-content minmax(0, 1fr); margin: 0; font-size: 13px; }
.bo-kv dt { color: var(--bo-muted); }
.bo-kv dd { margin: 0; overflow-wrap: anywhere; }
.bo-summary { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.bo-summary a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; height: 100%; padding: 16px; text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
.bo-summary a:hover { border-color: var(--bo-line-strong); box-shadow: var(--bo-shadow-sm); color: inherit; }
.bo-summary .bo-tile-icon { width: 36px; height: 36px; grid-row: span 2; }
.bo-summary strong { font-weight: 600; }
.bo-summary .bo-muted { overflow-wrap: anywhere; }

/* Landing: toolbar, image tiles, slot editor */
.bo-toolbar {
    position: sticky; top: var(--bo-topbar); z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    margin: -8px calc(-1 * var(--bo-gutter)) 8px; padding: 12px var(--bo-gutter); background: rgb(245 246 250 / .97); border-bottom: 1px solid transparent;
}
.bo-toolbar.is-stuck { border-bottom-color: var(--bo-line); }
.bo-search { position: relative; flex: 0 1 300px; }
.bo-search .bo-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--bo-muted); pointer-events: none; }
.bo .bo-search input { padding-left: 38px; }
.bo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bo-chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--bo-line-strong); border-radius: var(--bo-radius-sm);
    background: var(--bo-surface); color: var(--bo-ink); font-size: 13px; font-weight: 500; text-decoration: none; transition: background-color .12s, border-color .12s;
}
.bo-chip:hover { background: var(--bo-hover); color: var(--bo-ink); border-color: #B4BACB; }
.bo-chip[aria-current=true] { background: var(--bo-navy); border-color: var(--bo-navy); color: #fff; }
.bo-count { color: var(--bo-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.bo-chip[aria-current=true] .bo-count { color: rgb(255 255 255 / .7); }
.bo-group { scroll-margin-top: calc(var(--bo-topbar) + 72px); margin-top: 28px; }
.bo-group-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.bo-slots { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.bo-slot a {
    display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; color: inherit; text-decoration: none;
    background: var(--bo-surface); border: 1px solid var(--bo-line); border-radius: var(--bo-radius); transition: border-color .12s, box-shadow .12s;
}
.bo-slot a:hover { border-color: var(--bo-line-strong); box-shadow: var(--bo-shadow-sm); color: inherit; }
.bo-slot img, .bo-preview img, .bo-trash img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: repeating-conic-gradient(#EEF0F6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.bo-slot img { border-bottom: 1px solid var(--bo-line); }
.bo-slot-body { display: grid; gap: 8px; align-content: start; padding: 12px 14px 14px; }
.bo-slot-label { font-weight: 500; overflow-wrap: anywhere; }
.bo-slot-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; color: var(--bo-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bo-preview img { border: 1px solid var(--bo-line); border-radius: var(--bo-radius); }
.bo-trash { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.bo-trash li { display: grid; gap: 10px; padding: 12px; }
.bo-trash img { border-radius: var(--bo-radius-sm); border: 1px solid var(--bo-line); }

/* Mobile app previews (tier card, reward card, banner) */
.bo-card-preview, .bo-banner-preview {
    display: grid; gap: 4px; padding: 18px 20px; border-radius: 14px; box-shadow: 0 6px 16px rgb(10 13 83 / .12); overflow-wrap: anywhere;
}
.bo-card-preview { min-height: 132px; align-content: space-between; }
.bo-card-preview span, .bo-banner-preview small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.bo-card-preview strong { font-size: 22px; font-weight: 600; line-height: 1.2; }
.bo-card-preview em { font-style: normal; font-size: 13px; opacity: .85; }
.bo-banner-preview { min-height: 128px; align-content: center; }
.bo-banner-preview strong { font-size: 18px; font-weight: 600; white-space: pre-line; line-height: 1.25; }
.bo-banner-preview span { font-size: 13px; font-weight: 600; margin-top: 6px; }
.bo-phone { padding: 16px; border-radius: var(--bo-radius); background: var(--bo-surface-alt); border: 1px solid var(--bo-line); }
.bo-banner-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bo-banner-list li { display: grid; gap: 14px; align-content: start; padding: 16px; }
.bo-banner-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bo-banner-meta .bo-muted { overflow-wrap: anywhere; }
.bo-order { display: inline-flex; gap: 4px; }
.bo-days { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.bo-row { display: grid; gap: 12px 16px; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); margin: 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--bo-line); min-width: 0; }
.bo-row:first-of-type { border-top: 0; padding-top: 0; }
.bo-row .bo-grow { grid-column: 1 / -1; }
@media (min-width: 900px) { .bo-row { grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 2fr); } .bo-row .bo-grow { grid-column: auto; } }

/* Users & Roles */
.bo-tabs { display: flex; gap: 4px; margin: 0 0 24px; border-bottom: 1px solid var(--bo-line); }
.bo-tabs a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent;
    color: var(--bo-muted); font-weight: 500; text-decoration: none;
}
.bo-tabs a:hover { color: var(--bo-ink); }
.bo-tabs a[aria-selected=true] { color: var(--bo-navy); border-bottom-color: var(--bo-navy); }
.bo-tab-panel + .bo-tab-panel { margin-top: 40px; }
.bo-js .bo-tab-panel + .bo-tab-panel { margin-top: 0; }
.bo-list { background: var(--bo-surface); border: 1px solid var(--bo-line); border-radius: var(--bo-radius); }
.bo-list > * + * { border-top: 1px solid var(--bo-line); }
.bo-list-head { display: grid; gap: 16px; align-items: center; padding: 10px 20px; background: var(--bo-surface-alt); border-radius: var(--bo-radius) var(--bo-radius) 0 0; color: var(--bo-muted); font-size: 12px; font-weight: 500; }
.bo-person > summary { display: grid; grid-template-columns: 32px minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 16px; align-items: center; padding: 14px 20px; }
.bo-person > summary:hover { background: var(--bo-surface-alt); }
.bo-person-email { font-weight: 500; overflow-wrap: anywhere; }
.bo-person-edit { display: inline-flex; align-items: center; gap: 6px; color: var(--bo-muted); font-size: 13px; font-weight: 500; }
.bo-person[open] > summary { background: var(--bo-surface-alt); }
.bo-person-body { padding: 4px 20px 20px 68px; background: var(--bo-surface-alt); }
.bo-access fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.bo-access legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.bo-matrix-head, .bo-matrix-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 104px) 96px; gap: 8px 16px; align-items: center; }
.bo-matrix-head > :not(:first-child) { text-align: center; }
.bo-matrix-row { padding: 12px 20px; margin: 0; }
.bo-matrix-row fieldset { display: contents; }
.bo-matrix-name { font-weight: 500; overflow-wrap: anywhere; }
.bo-matrix-cell { display: flex; justify-content: center; align-items: center; gap: 8px; cursor: pointer; }
.bo-matrix-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bo-matrix-row .bo-actions { text-align: right; }

/* 11 · Sign-in -------------------------------------------------------------------------------------------------- */
.bo-auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--bo-canvas); }
.bo-auth-inner { width: min(400px, 100%); display: grid; gap: 24px; }
.bo-auth .bo-brand { justify-content: center; min-height: 0; padding: 0; border: 0; color: var(--bo-navy); }
.bo-auth .bo-brand-name span { color: var(--bo-muted); }
.bo-login { padding: 32px; box-shadow: var(--bo-shadow-sm); }
.bo-login h1 { font-size: 20px; }
.bo-login > p { margin-top: 6px; color: var(--bo-muted); }
.bo-login .bo-form { margin-top: 24px; }
.bo-form > .bo-alert { margin: 0; }
.bo-login .bo-button { width: 100%; margin-top: 8px; }
.bo-password { position: relative; }
.bo .bo-password input { padding-right: 44px; }
.bo-password button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--bo-radius-sm); background: transparent; color: var(--bo-muted); cursor: pointer; }
.bo-password button:hover { background: var(--bo-hover); color: var(--bo-ink); }
.bo-auth-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--bo-muted); font-size: 12px; text-align: center; }

/* 12 · Small screens -------------------------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    :root { --bo-gutter: 20px; }
    .bo-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
    .bo-nav-open .bo-sidebar { transform: none; box-shadow: 0 0 40px rgb(10 13 83 / .3); }
    .bo-nav-open .bo-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgb(10 13 83 / .45); }
    .bo-frame { margin-left: 0; }
    .bo-topbar .bo-menu-button { display: inline-grid; margin-left: -6px; }
    .bo-account-email { display: none; }
}
@media (max-width: 719px) {
    .bo-main { padding-top: 20px; }
    .bo-card, .bo-create-body, .bo-danger-zone { padding: 16px; }
    .bo-breadcrumb li:not(:last-child) { display: none; }
    .bo-person > summary { grid-template-columns: 32px minmax(0, 1fr) auto; }
    .bo-person > summary .bo-badges { grid-column: 2 / -1; }
    .bo-person-body { padding: 4px 16px 16px; }
    .bo-list-head { display: none; }
    .bo-matrix-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bo-matrix-name, .bo-matrix-row .bo-actions { grid-column: 1 / -1; text-align: left; }
    .bo-matrix-cell { justify-content: flex-start; }
    .bo-matrix-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 13px; }
    .bo-savebar { bottom: 8px; }
    .bo-toolbar { position: static; }
}
/* ---------- Service workspace: RMA steps, case history, ticket message ---------- */
.bo-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.bo-steps li { position: relative; padding-top: 14px; border-top: 4px solid var(--bo-line); font-size: 12px; color: var(--bo-muted); }
.bo-steps li.is-done { border-top-color: var(--bo-success); color: var(--bo-ink); }
.bo-steps li.is-current { border-top-color: var(--bo-navy); color: var(--bo-navy); font-weight: 600; }
.bo-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.bo-timeline li { position: relative; display: grid; gap: 4px; padding: 0 0 20px 24px; border-left: 2px solid var(--bo-line); margin-left: 6px; }
.bo-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.bo-timeline li::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--bo-surface); border: 2px solid var(--bo-line-strong); }
.bo-timeline li:first-child::before { background: var(--bo-navy); border-color: var(--bo-navy); }
.bo-timeline-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bo-timeline-note { margin: 0; overflow-wrap: anywhere; }
.bo-timeline-internal { margin: 0; padding: 8px 10px; border-radius: var(--bo-radius-sm); background: var(--bo-warning-bg); color: var(--bo-warning); font-size: 13px; overflow-wrap: anywhere; }
.bo-message { margin: 0; padding: 14px 16px; border-radius: var(--bo-radius); background: var(--bo-surface-alt); border: 1px solid var(--bo-line); white-space: pre-wrap; overflow-wrap: anywhere; }
.bo-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bo-demo { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.bo-demo label { flex: 1 1 260px; }
@media (max-width: 719px) { .bo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media print {
    .bo-sidebar, .bo-topbar, .bo-savebar, .bo-toolbar, .bo-draftbar { display: none !important; }
    .bo-frame { margin: 0; }
}

/* 13 · Roles, templates and permissions -------------------------------------------------------------------------- */
.bo-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.bo-row-link {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px 20px; align-items: center;
    padding: 14px 20px; color: inherit; text-decoration: none;
}
a.bo-row-link:hover { background: var(--bo-surface-alt); color: inherit; text-decoration: none; }
.bo-row-main { display: grid; gap: 2px; min-width: 0; }
.bo-row-title { font-weight: 500; color: var(--bo-ink); overflow-wrap: anywhere; }
a.bo-row-title:hover { color: var(--bo-blue); }
@media (max-width: 719px) { .bo-row-link { grid-template-columns: minmax(0, 1fr); } }

.bo-perm { display: grid; gap: 16px; }
.bo-perm-group { border: 1px solid var(--bo-line); border-radius: var(--bo-radius); overflow: hidden; }
.bo-perm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 8px 8px 16px; background: var(--bo-surface-alt); border-bottom: 1px solid var(--bo-line); min-height: 48px; }
.bo-perm-head h3 { font-size: 14px; font-weight: 600; }
.bo-perm-shortcuts { display: none; gap: 4px; }
.bo-js .bo-perm-shortcuts { display: flex; }
.bo-perm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bo-perm-table th, .bo-perm-table td { padding: 10px 16px; border-bottom: 1px solid var(--bo-line); }
.bo-perm-table thead th { font-size: 12px; font-weight: 500; color: var(--bo-muted); text-align: center; background: var(--bo-surface); }
.bo-perm-table thead th:first-child, .bo-perm-table tbody th { text-align: left; }
.bo-perm-table tbody th { font-weight: 500; }
.bo-perm-table td { width: 96px; text-align: center; }
.bo-perm-table tbody tr:last-child > * { border-bottom: 0; }
.bo-perm-table tbody tr:hover { background: var(--bo-surface-alt); }
.bo-perm-table input[type=checkbox] { width: 18px; height: 18px; vertical-align: middle; }
.bo-perm-na { color: var(--bo-line-strong); }
@media (max-width: 719px) { .bo-perm-table th, .bo-perm-table td { padding: 8px; } .bo-perm-table td { width: 56px; } }

/* Read-only pages: someone with View but not Edit sees the form, disabled */
.bo-fieldset-contents { display: contents; }
.bo input:disabled, .bo select:disabled, .bo textarea:disabled { background: var(--bo-surface-alt); color: var(--bo-muted); cursor: not-allowed; }
.bo input[type=checkbox]:disabled { opacity: .45; }
