/* BooksAuto — application styles */
:root {
    --navy: #0f2742;
    --navy-2: #16355a;
    --navy-3: #22497a;
    --teal: #0f766e;
    --teal-2: #0d9488;
    --teal-soft: #e6f4f2;
    --bg: #f3f5f8;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-2: #d1d5db;
    --danger: #b91c1c;
    --danger-soft: #fdecec;
    --warning: #92400e;
    --warning-soft: #fff6e0;
    --success: #166534;
    --success-soft: #e8f6ec;
    --info: #1e4e8c;
    --info-soft: #e8f0fb;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; line-height: 1.25; }
h2 { font-size: 1.05rem; margin: 0; }
h3 { font-size: .95rem; margin: 1rem 0 .5rem; }
p { margin: 0 0 .75rem; }
code { font-family: var(--mono); font-size: .9em; background: rgba(15, 39, 66, .07); padding: 1px 5px; border-radius: 4px; }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; }
.mt { margin-top: 1rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.danger { color: var(--danger) !important; }

/* ---------- App shell ---------- */
body.app { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px; flex: 0 0 250px; background: var(--navy); color: #cbd5e1;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 10px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.sidebar > * { flex-shrink: 0; } /* a long menu scrolls; it never squeezes the firm name or logo */
.firm-name { margin: 0 18px 8px; padding: 6px 10px; background: var(--navy-2); border-radius: 6px; color: #e2e8f0; font-size: .85rem; line-height: 1.35;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.nav { padding: 6px 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.nav-label { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: #7c93b3; margin: 14px 10px 4px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: #cbd5e1; font-size: .93rem; }
.nav-link .ico { width: 18px; text-align: center; opacity: .8; }
.nav-link:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.nav-link.active { background: var(--teal); color: #fff; }
.nav-link.disabled { color: #64748b; cursor: default; }
.nav-link.disabled:hover { background: none; color: #64748b; }
.nav-link em { white-space: nowrap; margin-left: auto; font-style: normal; font-size: .68rem; background: var(--navy-2); color: #94a3b8; padding: 1px 6px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; padding: 12px 18px; font-size: .72rem; color: #64748b; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar-title { font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.content { padding: 24px; width: 100%; max-width: none; min-width: 0; } /* 1.21.6 the whole window (large monitors too) */
.banner { margin: 0; border-radius: 0; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--bg); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.usermenu-panel { position: absolute; right: 0; top: calc(100% + 6px); width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); overflow: hidden; }
.usermenu-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.usermenu-head small { color: var(--muted); }
.usermenu-panel a, .usermenu-panel button { display: block; width: 100%; text-align: left; padding: 10px 14px; background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; }
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--bg); text-decoration: none; }

/* ---------- Page structure ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 .badge { vertical-align: middle; font-size: .75rem; }
.crumbs { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head a { font-size: .85rem; }
.narrow-card { max-width: 720px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .grid-2 + .grid-2 { margin-top: 20px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty p { margin-bottom: 12px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f9fafb; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfc; }
.card:not(.flush) .table th:first-child, .card:not(.flush) .table td:first-child { padding-left: 0; }
.card:not(.flush) .table th { background: none; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline-block; margin-left: 4px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -8px 0 20px; }
.pagination span { display: flex; gap: 6px; }

/* ---------- Badges & alerts ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 600; line-height: 1.6; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted, .badge-neutral { background: #eef0f3; color: #4b5563; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #c7e8d1; }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: #f5c9c9; }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: #f5e0ac; }
.alert-info { background: var(--info-soft); color: var(--info); border-color: #c9d9f2; }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; }
/* 1.22.14 …but a BUTTON inside a notice is not a link in a sentence. It inherited the notice's text colour, so
   "Fix it" was drawn in dark red on a green button — unreadable, on the one notice that asks to be pressed. */
.alert a.btn { text-decoration: none; }
.alert a.btn-primary, .alert a.btn-danger, .alert a.btn-success { color: #fff; }
.alert .inline-form { display: inline; margin: 0; }
.copy-row { display: flex; gap: 8px; margin-top: 8px; }
.copy-row input { flex: 1; font-family: var(--mono); font-size: .8rem; background: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0b5f59; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { background: #f9fafb; border-color: #9ca3af; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(0, 0, 0, .05); }
.btn-danger-outline { background: #fff; color: var(--danger); border-color: #f0b4b4; }
.btn-danger-outline:hover { background: var(--danger-soft); }
.btn-sm { padding: 6px 11px; font-size: .82rem; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; font-size: 1.3rem; cursor: pointer; padding: 4px 8px; color: var(--text); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.form legend { font-weight: 700; font-size: 1rem; margin-bottom: 12px; padding: 0; color: var(--navy); }
.form.narrow { max-width: 720px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 2px; }
.field-wide { grid-column: 1 / -1; }
.card > .field, .form > .field { margin-bottom: 14px; }
label { font-weight: 600; font-size: .88rem; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=date], input[type=number], input:not([type]), select, textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; color: var(--text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(13, 148, 136, .18); }
input:disabled { background: #f3f4f6; color: var(--muted); }
textarea { resize: vertical; min-height: 90px; }
.help { color: var(--muted); font-size: .8rem; }
.error { color: var(--danger); font-size: .82rem; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: #e39a9a; background: #fffafa; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; }
.check-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.list-filter { margin-bottom: 8px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; margin-bottom: 8px; font-weight: 400; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.radio-card input { margin-top: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters input[type=search] { max-width: 320px; }
.filters select, .filters input[type=date] { width: auto; }
.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--muted); }

/* ---------- Lists, tabs, misc ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a, .tabs span { padding: 10px 14px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--teal); border-bottom-color: var(--teal); }
.tabs .disabled { color: #b0b7c3; cursor: default; }
.tabs em { font-style: normal; font-size: .68rem; background: #eef0f3; padding: 1px 6px; border-radius: 99px; margin-left: 4px; }

.dl { margin: 0; }
.dl-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.dl-row:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); font-size: .88rem; }
.dl dd { margin: 0; overflow-wrap: anywhere; }

.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.feed li:last-child { border-bottom: 0; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); margin-top: 7px; flex: 0 0 8px; }
.people { list-style: none; padding: 0; margin: 0; }
.people li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.plain { padding-left: 18px; margin: 0; }
.changes { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.changes s { color: var(--muted); }
details summary { cursor: pointer; color: var(--teal); font-size: .85rem; }

.progress { height: 8px; background: #eef0f3; border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.progress span { display: block; height: 100%; background: var(--teal-2); border-radius: 99px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; color: #fff; flex: 0 0 22px; }
.checklist li.done { color: var(--muted); text-decoration: line-through; }
.checklist li.done .tick { background: var(--teal-2); border-color: var(--teal-2); }

.health { list-style: none; padding: 0; margin: 0 0 16px; }
.health li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.health li span { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; margin-right: 6px; }
.health li.ok span { background: var(--success-soft); color: var(--success); }
.health li.bad span { background: var(--danger-soft); color: var(--danger); }
.health li.warn span { background: var(--warning-soft); color: var(--warning); }
.health em { display: block; margin-left: 30px; font-style: normal; color: var(--muted); }

.logo-box { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 1px dashed var(--line-2); border-radius: 8px; margin-bottom: 14px; padding: 12px; background: #fafbfc; }
.logo-box img { max-width: 100%; max-height: 110px; }
.log { background: #0b1220; color: #cbd5e1; padding: 14px; border-radius: 8px; font-family: var(--mono); font-size: .75rem; max-height: 360px; overflow: auto; white-space: pre-wrap; }

.error-page { text-align: center; padding: 30px 10px; }
/* 1.22.13 the big number on "page not found" was drawn in the border grey, 1.5:1 on white: the one thing on
   the page a person reads first failed WCAG 1.4.3. Muted grey is 4.8:1. */
.error-code { font-size: 3.2rem; font-weight: 800; color: var(--muted); line-height: 1; margin-bottom: 8px; }

/* ---------- Sign-in pages ---------- */
body.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(160deg, #0f2742 0%, #16355a 45%, #0f766e 140%); background-color: #0d2040; animation: auth-in .3s ease-out both; }
@keyframes auth-in { from { opacity: 0; } to { opacity: 1; } }
.auth-wrap { width: 100%; max-width: 440px; }
.auth-wrap.wide { max-width: 780px; }
.auth-brand { display: flex; align-items: center; gap: 14px; color: #fff; margin-bottom: 18px; }
.auth-brand img { border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.auth-name { font-size: 1.5rem; font-weight: 800; }
.auth-tag { color: #b6c6dc; font-size: .9rem; }
.auth-card { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.auth-card h1 { font-size: 1.45rem; }
.auth-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: #b6c6dc; font-size: .82rem; }
.auth-foot .linklike { color: #e2e8f0; }
.code-input { font-size: 1.6rem !important; letter-spacing: .35em; text-align: center; font-family: var(--mono) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
    body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
    body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; }
    .menu-toggle { display: inline-block; }
    .topbar { padding: 0 12px; }
    .content { padding: 16px; }
    .grid-2, .form-grid { grid-template-columns: 1fr; }
    .uname { display: none; }
    .dl-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-value { font-size: 1.4rem; }
    .auth-card { padding: 20px; }
    .page-head .btn { width: 100%; }
}

/* ---------- Payroll ---------- */
.stat-value.small-value { font-size: 1.25rem; }
.card-head.pad { padding: 16px 20px 0; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.run-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.run-bar .badge { margin-right: 6px; }
.steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.steps li { padding: 5px 12px; border-radius: 99px; background: #eef0f3; color: var(--muted); font-size: .8rem; font-weight: 600; }
.steps li.done { background: var(--teal-soft); color: var(--teal); }
.run-table input.hrs { width: 68px; text-align: right; padding: 6px 7px; }
.run-table select.compact { width: auto; padding: 5px 6px; font-size: .85rem; }
.run-table tr.excluded td { opacity: .45; }
.run-table tr.voided td { text-decoration: line-through; opacity: .6; }
.run-table tr.voided td.actions { text-decoration: none; opacity: 1; }
.table tfoot td { border-top: 2px solid var(--line-2); background: #f9fafb; }
.warn-icon { color: #b45309; font-weight: 700; margin-left: 4px; cursor: help; }
.warn-list { font-size: .78rem; color: #92400e; margin-top: 3px; }
.void-box { display: inline-block; position: relative; }
.void-box summary { list-style: none; }
.void-box summary::-webkit-details-marker { display: none; }
.void-box form { position: absolute; right: 0; top: 110%; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: flex; gap: 6px; width: 320px; }
.doc-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-buttons form { display: inline; }
.inline-grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-grid select, .inline-grid input { width: auto; flex: 1 1 120px; min-width: 110px; }
.inline-grid button { flex: 0 0 auto; }
.inline-form { display: inline; margin-left: 8px; }
.deadlines { list-style: none; margin: 0; padding: 0; }
.deadlines li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; flex-wrap: wrap; }
.deadlines li:last-child { border-bottom: 0; }
.dl-when { font-weight: 700; color: var(--navy); min-width: 96px; font-size: .85rem; }
.group-row td { background: #f3f5f8; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 6px 0 14px; }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trace td { font-size: .82rem; padding: 6px 0; }
@media (max-width: 860px) { .form-grid.four { grid-template-columns: 1fr 1fr; } .check-grid { grid-template-columns: 1fr; } }
.run-table .emp-col { min-width: 210px; }

/* ---------- Desktop edition ---------- */
.open-path { padding: 12px 16px; }
.open-path input { flex: 1 1 420px; }
.path { word-break: break-all; color: var(--muted); }
.current-file { border-left: 4px solid var(--teal-2); }
.recovery-code { font-size: 1.6rem; font-weight: 700; letter-spacing: .12em; text-align: center; padding: 18px; border: 2px dashed var(--line-2); border-radius: 10px; margin-bottom: 14px; background: #fafbfc; }
body.desktop .install-btn { display: none !important; }

/* ---------- Licensing ---------- */
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-row textarea { flex: 1; font-family: var(--mono); font-size: .85rem; }
.copy-row input.serial, input.serial { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); }
.license-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.license-banner > span { flex: 1 1 420px; }
.alert .license-banner .btn, .license-banner .btn { white-space: nowrap; text-decoration: none; }
.license-banner .btn-primary { color: #fff; }
.license-state { display: flex; gap: 14px; align-items: center; }
.license-state .big { font-size: 2.4rem; font-weight: 700; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.readonly-note { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; padding: 10px 12px; }

/* ---------- Year-end & ROE ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .push { margin-left: auto; }
.toolbar form.inline { display: flex; align-items: center; gap: 8px; }
.toolbar select { width: auto; }
.table tfoot th { border-top: 2px solid var(--line-2); background: #fafbfc; font-variant-numeric: tabular-nums; }
.table tfoot th.num { text-align: right; }
.stack { display: grid; gap: 8px; }
.alert ul.plain { margin: 6px 0 0; }
details.alert summary { cursor: pointer; }
.roe-blocks { display: grid; grid-template-columns: 70px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.roe-blocks > div { padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.roe-blocks > div:nth-child(odd) { background: #f6f8fa; font-weight: 600; color: var(--muted); }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pp-grid div { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: .82rem; }
.pp-grid div b { display: block; font-variant-numeric: tabular-nums; }
.pp-grid div.zero { opacity: .55; }
.pp-grid div.first { border-color: var(--teal-2); background: var(--teal-soft); }
.rows-3 .form-grid.four { margin-bottom: 6px; }

/* ---------- "Add to Home Screen" sheet (phones & tablets) ---------- */
.install-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); transform: translateY(120%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.install-sheet.show { transform: none; pointer-events: auto; }
.install-sheet .is-card { display: grid; grid-template-columns: 52px 1fr; gap: 12px 14px; align-items: center; max-width: 520px; margin: 0 auto; padding: 16px; border-radius: 18px; background: #0f2742; color: #e2ecf8; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); font: 15px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; }
.install-sheet img { border-radius: 12px; }
.install-sheet .is-text b { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
.install-sheet .is-text span b { display: inline; font-size: inherit; }
.install-sheet .is-actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; }
.install-sheet button { font: inherit; font-weight: 700; border: 0; border-radius: 11px; padding: 11px 18px; cursor: pointer; }
.install-sheet .is-go { background: #2dd4bf; color: #04201d; }
.install-sheet .is-close { background: rgba(255, 255, 255, .1); color: #fff; }
.install-sheet .ios-share { width: 15px; height: 18px; fill: #5eead4; vertical-align: -3px; }

/* ---------- Phone app mode ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
    html.is-mobile, html.is-mobile body { -webkit-tap-highlight-color: transparent; }
    body.app { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .topbar { padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
    .topbar-title { font-size: 1.02rem; color: var(--text); }
    .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(12px); border-top: 1px solid var(--line);
        padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right)); }
    .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px; min-height: 48px; justify-content: center; cursor: pointer; }
    .tabbar .tb-ico { font-size: 1.2rem; line-height: 1; }
    .tabbar a.active { color: var(--teal); background: var(--teal-soft); }
    .sidebar { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); height: 100%; overflow-y: auto; }
    .content { padding: 14px max(14px, env(safe-area-inset-left)) 20px; }
    input, select, textarea { font-size: 16px !important; } /* stops iPhone zooming into fields */
    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; }
    .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
    .page-head h1 { font-size: 1.4rem; }
    .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; white-space: nowrap; flex-wrap: nowrap; }
    .tabs::-webkit-scrollbar { display: none; }
    .table-wrap { -webkit-overflow-scrolling: touch; }
    .card { border-radius: 14px; }
    .toolbar .push { margin-left: 0; }
    .menu-toggle { display: none !important; } /* the Menu tab at the bottom opens the menu */
}
html.is-standalone .topbar { background: #fff; }
/* Sign-in pages on phones: full-screen app look */
@media (max-width: 520px) {
    body.auth { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
    .auth-wrap { padding: 20px 16px; }
}

/* v0.6: inline forms, cloud + tax table banners */
.form-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.form-inline label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.form-inline input[type=text], .form-inline input[type=email], .form-inline input[type=date] { width: auto; min-width: 180px; }
.update-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.update-banner form { margin: 0; }
.cloud-lock { text-align: center; padding: 34px 18px; }
.cloud-lock .big { font-size: 2.6rem; }
.progress { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 10px 0; }
.progress > span { display: block; height: 100%; width: 0; background: var(--primary, #1d4ed8); transition: width .2s; }

/* v0.7: cloud sync */
.sync-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; margin-right: 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--teal-soft, #e6f6f3); color: var(--teal, #0f766e); text-decoration: none; white-space: nowrap; }
.sync-pill.busy { background: #e8f0fe; color: #1d4ed8; }
.sync-pill.warn { background: #fef3c7; color: #92400e; }

/* 1.21.81 the Super Admin's session countdown: quiet until the last five minutes */
.fresh-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; margin-right: 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #e8f0fe; color: #1d4ed8; white-space: nowrap; }
.fresh-pill button { border: 0; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .76rem; cursor: pointer; background: #1d4ed8; color: #fff; }
.stay-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; margin-right: 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #eef2f7; color: #475569; white-space: nowrap; }
.stay-pill.soon { background: #fef3c7; color: #92400e; }
.stay-pill.over { background: #fee2e2; color: #991b1b; }
.stay-pill button { border: 0; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .76rem; cursor: pointer; background: #92400e; color: #fff; }
.stay-pill button:disabled { opacity: .6; cursor: default; }
.sync-note { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }

/* v0.8: documents */
.doc-upload .drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--line-2, #cbd5e1); border-radius: 14px; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.doc-upload .drop.over, .doc-upload .drop:hover { border-color: var(--teal, #0f766e); background: var(--teal-soft, #e6f6f3); }
.doc-upload .drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.doc-upload .drop-ico { font-size: 1.6rem; color: var(--teal, #0f766e); }
.doc-upload-opts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; }
.doc-upload-opts label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.doc-progress { list-style: none; margin: 10px 0 0; padding: 0; font-size: .88rem; }
.doc-progress li { padding: 3px 0; color: var(--muted); }
.doc-progress li.ok { color: var(--teal, #0f766e); }
.doc-progress li.bad { color: var(--danger, #b91c1c); }
.doc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.doc-layout > * { min-width: 0; }
.doc-folders { display: flex; flex-direction: column; padding: 8px; }
.doc-folders a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.doc-folders a span { color: var(--muted); font-size: .8rem; }
.doc-folders a.active { background: var(--teal-soft, #e6f6f3); color: var(--teal, #0f766e); font-weight: 700; }
.doc-usage { padding: 10px; }
.doc-ico { font-size: 1.1rem; }
.doc-preview { max-width: 100%; max-height: 480px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } .doc-folders { flex-direction: row; overflow-x: auto; } .doc-folders a { white-space: nowrap; } }
@media (max-width: 860px) { .doc-folders .doc-usage { display: none; } }
@media (max-width: 640px) {
    .doc-table th:nth-child(n+2):nth-child(-n+5), .doc-table td:nth-child(n+2):nth-child(-n+5) { display: none; }
    .doc-table td.actions { white-space: nowrap; }
}

/* v0.8.1: welcome / restore */
.welcome-choice .choice { display: block; padding: 14px 16px; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--teal-soft, #e6f6f3); }
.welcome-choice .choice strong { display: block; color: var(--teal, #0f766e); font-size: 1.02rem; }
.welcome-choice .choice span { font-size: .9rem; color: var(--muted); }
.welcome-choice .choice:hover { border-color: var(--teal, #0f766e); }
.welcome-new { font-size: 1.05rem; margin: 18px 0 4px; }
.restore-list { display: flex; flex-direction: column; gap: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- Document requests & client portal (v1.0) ---------- */
.card.flush > .card-head { padding: 16px 20px 0; }
.card.flush > .empty { padding: 20px; margin: 0; }
.btn-row.wrap { flex-wrap: wrap; }
.req-item { padding: 14px; margin-bottom: 12px; box-shadow: none; background: #fbfcfd; }
.req-item .btn-row { justify-content: space-between; margin-top: 6px; }
.file-list { list-style: none; padding-left: 0; margin: 0 0 12px; }
.file-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.file-list li:last-child { border-bottom: 0; }
.inline-details { display: inline-block; }
.inline-details > summary { list-style: none; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] { display: block; width: 100%; }
.inline-details textarea, .form textarea { width: 100%; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; }
.msg { padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.msg-staff { background: var(--teal-soft); border-color: #cde9e5; }
.msg-head { margin-bottom: 2px; }
body.portal { min-height: 100vh; display: flex; flex-direction: column; }
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--navy); color: #fff; }
.portal-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.portal-brand:hover { text-decoration: none; }
.portal-nav { display: flex; align-items: center; gap: 16px; font-size: .9rem; }
.portal-nav a, .portal-nav .linklike { color: #e2e8f0; }
.portal-main { width: 100%; max-width: 860px; margin: 0 auto; padding: 24px 16px 40px; flex: 1; }
.portal-main.portal-narrow { max-width: 440px; padding-top: 48px; }
.portal-card h1 { font-size: 1.4rem; }
.portal-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 16px; }
.portal-head { margin-bottom: 18px; }
.portal-list { display: grid; gap: 12px; }
.portal-tile { display: flex; flex-direction: column; gap: 4px; margin: 0; color: var(--text); }
.portal-tile:hover { text-decoration: none; border-color: var(--teal); }
.portal-item .card-head { flex-wrap: wrap; }
.upload-box { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fcfdfd; }
.upload-box input[type=text], .upload-box select { width: 100%; }
.upload-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.upload-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.upload-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.approve-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fcfdfd; }
@media (max-width: 640px) {
    .portal-top { padding: 10px 14px; }
    .portal-nav { gap: 10px; font-size: .85rem; }
    .portal-nav a[title] { display: none; }
    .upload-pick .btn { flex: 1; text-align: center; }
}

/* ---------- In-app store (v1.1) ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.plan-card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.plan-card.featured { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft), var(--shadow); }
.plan-card h3 { margin: 4px 0 0; font-size: 1.05rem; }
.plan-price { font-size: 1.25rem; font-weight: 700; margin: 0; }
.buy-details { margin-top: auto; }
.buy-details > summary { list-style: none; }
.buy-details > summary::-webkit-details-marker { display: none; }
.spinner { width: 36px; height: 36px; margin: 8px auto 12px; border: 4px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Super Admin: trial delivery + reports (v1.5) ---------- */
.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
details.card > summary { list-style: none; cursor: pointer; margin: 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.delivery-card { margin-bottom: 20px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: #fff; }
.choice input { margin-top: 4px; accent-color: var(--teal); }
.choice span { display: flex; flex-direction: column; gap: 3px; }
.choice small { color: var(--muted); }
.choice:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.stat small { color: var(--muted); font-size: .78rem; margin-top: 2px; }
a.stat:hover { text-decoration: none; border-color: var(--teal); }
.seg-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.seg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: .88rem; }
.seg-pill:hover { text-decoration: none; border-color: var(--teal); }
.seg-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg-pill b { font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; padding: 8px 4px 0; }
.bars .bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.bars .bar i { display: block; width: 100%; max-width: 38px; background: var(--teal); border-radius: 5px 5px 0 0; min-height: 2px; }
.bars .bar span { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.bars .bar em { font-style: normal; font-size: .66rem; color: var(--text); white-space: nowrap; }
.attn { list-style: none; margin: 0; padding: 0; }
.attn li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.attn li:last-child { border-bottom: 0; }
.attn b { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .choice-grid { grid-template-columns: 1fr; } .bars .bar em { display: none; } }
.nav-link em.nav-count { background: #f59e0b; color: #1f2937; font-weight: 700; }
.table .badge { white-space: nowrap; }
.btn-link { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; text-decoration: underline; cursor: pointer; }
.about-status { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0; }
.about-status span { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 28px; }
.about-status.ok span { background: #059669; }
.about-status.warn span { background: #d97706; }
.ok-mark { color: #059669; font-weight: 700; }
.need-mark { display: inline-block; background: #fef3c7; color: #92400e; font-weight: 700; font-size: .78rem; padding: 1px 8px; border-radius: 99px; }
.prefilled .dl { margin: 0; }
.btn-danger-ghost { background: none; border: 1px solid #fecaca; color: #b91c1c; }
.btn-danger-ghost:hover { background: #fef2f2; }
.inline-form { display: inline; }

/* v1.7 — sign-in choices, recovery, customer directory, email accounts */
.choice-panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0 6px; background: #fff; }
.choice-panel > summary { cursor: pointer; list-style: none; }
.choice-panel > summary::-webkit-details-marker { display: none; }
.choice-panel > summary strong { display: block; color: var(--teal, #0f766e); font-size: 1.02rem; }
.choice-panel > summary span { font-size: .9rem; color: var(--muted); }
.choice-panel[open] { border-color: var(--teal, #0f766e); }
.choice-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.choice-box h2 { font-size: 1.02rem; margin: 0 0 4px; }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.task-row { display: grid; grid-template-columns: 1fr minmax(180px, 44%); gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-row select { width: 100%; }
@media (max-width: 640px) { .task-row, .kv { grid-template-columns: 1fr; } }
.mb { margin-bottom: 1rem; }
.access-grid { grid-template-columns: repeat(3, 1fr); } @media (max-width: 760px) { .access-grid { grid-template-columns: 1fr; } } [data-key-fields][hidden] { display: none; }
.scope-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .scope-opt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; background: #fff; cursor: pointer; } .scope-opt select { width: auto; padding: 2px 6px; } .scope-opt:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(15,118,110,.12); }
.mini-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .mini-form input[type=text] { width: 110px; } .mini-form input[name=note] { width: 220px; } .print-ready { border-color: var(--teal); }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan-opt { border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; background: #fff; display: flex; gap: 8px; align-items: flex-start; }
.plan-opt span { display: flex; flex-direction: column; gap: 3px; }
.plan-opt b { font-size: 1.5rem; color: var(--navy); } .plan-opt b i { font-size: .8rem; font-style: normal; color: var(--muted); font-weight: 500; }
.plan-opt small { color: var(--muted); } .plan-opt s { color: var(--muted); font-size: .85rem; }
.plan-opt:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.14); }
.stat-value small { font-size: .9rem; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .plan-pick { grid-template-columns: 1fr; } }
.doc-preview { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; }

/* ---------- v1.9 payment page, subscription, receipts ---------- */
.paysteps { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.paysteps span, .paysteps a { flex: 1; min-width: 150px; font-size: .86rem; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line, #e3e9f1); color: var(--muted, #5b6b7f); }
/* 1.21.74 a wizard whose earlier steps you can go back to (Set up year-to-date amounts) marks them as links */
.paysteps a:hover { border-color: #14b8a6; color: #0f766e; text-decoration: none; }
.paysteps .on { border-color: #14b8a6; color: #0f766e; background: #f0fdfa; font-weight: 600; }
.paysteps .done { color: #15803d; }
.paysteps .done::before { content: "✓ "; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.pay-sum { position: sticky; top: 16px; }
.pay-sum h2 { margin-top: 0; }
.sum-lines { margin: 8px 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line, #e3e9f1); font-size: .9rem; }
.sum-row span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 1.15rem; font-weight: 700; border-bottom: 0; padding-top: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin: 12px 0 6px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: .86rem; line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.mod { padding: 12px 0; border-top: 1px solid var(--line, #e3e9f1); }
.mod:first-of-type { border-top: 0; }
.mod-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; cursor: pointer; }
.mod.soon { opacity: .65; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tier { cursor: pointer; }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier span { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; border: 1px solid var(--line, #d5dde8); text-align: center; height: 100%; }
.tier small { color: var(--muted, #5b6b7f); font-size: .78rem; }
.tier em { font-style: normal; font-weight: 700; color: #0f766e; }
.tier input:checked + span { border: 2px solid #14b8a6; background: #f0fdfa; }
.tier input:disabled + span { opacity: .45; cursor: not-allowed; }
.tier.off span::after { content: "too small"; font-size: .7rem; color: #b91c1c; }
.seg-app { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; border: 1px solid var(--line, #d5dde8); }
.seg-app label { cursor: pointer; }
.seg-app input { position: absolute; opacity: 0; pointer-events: none; }
.seg-app span { display: block; padding: 7px 12px; border-radius: 8px; font-size: .88rem; }
.seg-app input:checked + span { background: #0b1f36; color: #fff; }
.stripe-card { padding: 12px; border: 1px solid var(--line, #d5dde8); border-radius: 10px; background: #fff; min-height: 44px; }
.card-field { margin-top: 12px; }
.lbl { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.row-menu { display: inline-block; position: relative; }
.row-menu > summary { list-style: none; cursor: pointer; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > .mini-form { position: absolute; right: 0; z-index: 20; }
.row-menu .stack { display: flex; flex-direction: column; gap: 8px; width: 300px; padding: 12px; background: #fff; border: 1px solid var(--line, #e3e9f1); border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.3); }
.row-menu .stack + .mini-form { position: static; margin-top: 6px; }
.danger-text { color: #b91c1c; }
.receipt { max-width: 760px; margin: 0 auto; background: #fff; padding: 28px; }
.r-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #0b1f36; padding-bottom: 12px; margin-bottom: 16px; }
.r-meta { text-align: right; }
.r-meta h1 { margin: 0; font-size: 1.4rem; }
@media print { .no-print { display: none !important; } .receipt { padding: 0; } }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } .pay-sum { position: static; } .tiers { grid-template-columns: 1fr; } }

/* 1.10 business switcher */
.biz-switch { position: relative; }
.biz-switch > summary { list-style: none; cursor: pointer; }
.biz-switch > summary::-webkit-details-marker { display: none; }
.biz-menu { position: absolute; left: 12px; right: 12px; top: 100%; z-index: 30; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.25); padding: 6px; }
.biz-menu form { margin: 0; }
.biz-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 7px; color: #0f172a; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; }
.biz-item:hover { background: #f1f5f9; }
.biz-item.on { font-weight: 700; color: #0f766e; }
.biz-item em { font-style: normal; font-size: .75rem; color: #64748b; }
.biz-item.add { color: #0f766e; border-top: 1px solid #e2e8f0; margin-top: 4px; border-radius: 0 0 7px 7px; }
.own-co { border-left: 4px solid #14b8a6; }
.client-pay { max-width: 720px; margin: 0 auto; text-align: left; }
.client-pay .card { margin-bottom: 14px; }
.payer-client { margin-top: 8px; }
.auth-card:has(.client-pay) { max-width: 780px; width: 100%; }

/* 1.11 access type per company */
.access-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
@media (max-width: 640px) { .access-opts { grid-template-columns: 1fr; } }
.access-opt { cursor: pointer; }
.access-opt input { position: absolute; opacity: 0; pointer-events: none; }
.access-opt span { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 10px; border: 1px solid var(--line, #d5dde8); height: 100%; }
.access-opt small { color: var(--muted, #5b6b7f); font-size: .78rem; line-height: 1.3; }
.access-opt em { font-style: normal; font-weight: 700; color: #0f766e; margin-top: auto; }
.access-opt input:checked + span { border: 2px solid #14b8a6; background: #f0fdfa; }
.access-opt input:disabled + span { opacity: .45; cursor: not-allowed; }
.access-badge { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: #eef2f7; color: #334155; margin-left: 6px; vertical-align: middle; }

/* 1.12 show / hide password */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { width: 100%; box-sizing: border-box; padding-right: 46px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: #5b6b7f; cursor: pointer; padding: 0; }
.pw-eye:hover, .pw-eye:focus-visible { color: #0b1f36; background: rgba(11, 31, 54, .06); outline: none; }

/* PDF templates (Super Admin) */
.pdf-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.pdf-edit fieldset { margin: 0 0 12px; }
.pdf-edit-preview { position: sticky; top: 12px; }
.pdf-frame { width: 100%; height: 78vh; border: 0; display: block; background: #f3f4f6; }
@media (max-width: 1000px) { .pdf-edit { grid-template-columns: 1fr; } .pdf-edit-preview { position: static; } .pdf-frame { height: 70vh; } }
.plan-card .btn-block { white-space: normal; line-height: 1.25; }
.undo-termination { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; padding:4px 0 12px; border-bottom:1px solid var(--line, #e5e7eb); margin-bottom:12px; }

/* ---------- Scheduling (1.14) ---------- */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px; }
.subtabs a { padding: 6px 12px; border-radius: 999px; background: #eef2f6; color: var(--ink, #1f2937); text-decoration: none; font-size: .88rem; font-weight: 600; }
.subtabs a.active { background: #0f766e; color: #fff; }
.sched-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.sched-grid th, .sched-grid td { vertical-align: top; }
.sched-grid th.hol { background: #fff7ed; }
.sched-cell { min-width: 108px; }
.sched-cell.off { background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 6px, #f1f5f9 6px, #f1f5f9 12px); }
.chip { display: block; margin: 0 0 4px; padding: 5px 7px; border-radius: 8px; background: #ccfbf1; color: #134e4a; text-decoration: none; font-size: .8rem; line-height: 1.25; border: 1px solid #99f6e4; }
.chip b { display: block; }
.chip small { display: block; opacity: .85; }
.chip small.w { color: #b45309; font-weight: 700; opacity: 1; }
.chip.draft { background: #fff; border-style: dashed; border-color: #0f766e; }
.chip.warn { border-color: #f59e0b; box-shadow: inset 3px 0 0 #f59e0b; }
.chip.open { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.chip-off { background: #f1f5f9; color: #475569; border-color: #e2e8f0; display: inline-block; }
.open-row td { background: #fafbff; }
.tiny { font-size: .72rem; }
.req-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.big-code { font-size: 2.6rem; font-weight: 800; letter-spacing: .12em; margin: 8px 0; }
.setup-code { border: 2px solid #0f766e; }
.avail summary { cursor: pointer; padding: 8px 0; }
.avail-form { padding: 6px 0 12px; }
.avail-day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.avail-day b { width: 40px; }
.avail-day input { width: 80px; }
.invite-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.invite-name { min-width: 160px; font-weight: 600; }
.ts-warn td { background: #fffbeb; }
.ts-total td { background: #f8fafc; }
.pad { padding: 0 20px; }
.stat-text { display: block; font-size: .95rem; font-weight: 600; margin-top: 6px; line-height: 1.35; }
/* 1.15: export approved hours */
.export-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 10px 0; }
.export-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.export-form input[type=date] { width: 170px; }
.export-form input[type=email] { width: 280px; max-width: 100%; }
.change-card .dl-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
.details-form-box summary { cursor: pointer; }
.export-form input[type=text] { width: 220px; max-width: 100%; }
/* 1.15: "Log out of company" in the Windows app's sidebar */
.nav-form { margin: 0; }
.nav-button { background: none; border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.card.highlight { box-shadow: 0 0 0 2px var(--teal, #0f766e) inset; }
/* 1.15: a form that's being sent (data-busy) */
.btn.is-busy { opacity: .75; cursor: progress; }
.btn.is-busy::before { content: ""; display: inline-block; width: .85em; height: .85em; margin-right: .45em; vertical-align: -.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ba-spin .8s linear infinite; }
@keyframes ba-spin { to { transform: rotate(360deg); } }
.btn.is-waiting { opacity: .75; cursor: progress; }
/* 1.16: a schedule shared with an accountant — view / export only (the server refuses changes too) */
.viewer-mode .content form[method="post"], .viewer-mode .content form[method="POST"], .viewer-mode .content [data-edit-only] { display: none !important; }
.viewer-mode .content .tabs a[href$="/settings"], .viewer-mode .content .tabs a[href$="/time-clock"] { display: none; }

/* Test Lab */
.testlab-as{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin-top:10px}
.testlab-as form{margin:0}
.testlab-as-btn{width:100%;text-align:left;display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid var(--border,#e2e8f0);border-radius:10px;background:var(--surface,#fff);color:inherit;font:inherit;cursor:pointer}
.testlab-as-btn small{color:var(--muted,#64748b);font-size:12px}
.testlab-as-btn:hover{border-color:#f97316}
.testlab-as-btn.on{border-color:#f97316;box-shadow:0 0 0 2px rgba(249,115,22,.25);background:#fff7ed}
.testlab-plans select{max-width:170px}
.testlab-plans td{vertical-align:top}
.pad-x{padding:0 20px}

/* ===== 1.17 Pay run: checks, panels over the page, live totals ===== */
.pr-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin: 0 0 16px; }
.pr-check { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.pr-check-ico { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--muted); }
.pr-check-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-check-text strong { font-size: 14px; }
.pr-check-text span { font-size: 13px; color: #475467; }
.pr-check.tone-danger { background: #fef3f2; border-color: #fecdca; } .pr-check.tone-danger .pr-check-ico { background: #b42318; }
.pr-check.tone-warning { background: #fffaeb; border-color: #fedf89; } .pr-check.tone-warning .pr-check-ico { background: #b54708; }
.pr-check.tone-info { background: #eef3ff; border-color: #c7d7fe; } .pr-check.tone-info .pr-check-ico { background: #2f5bd3; }
.pr-check.tone-success { background: #ecfdf3; border-color: #abefc6; } .pr-check.tone-success .pr-check-ico { background: var(--teal); }
.btn-danger { background: #b42318; color: #fff; border-color: #b42318; }
.btn-danger:hover { background: #912018; color: #fff; }
.why { text-decoration: underline dotted; text-underline-offset: 3px; color: inherit; }
.set-mark { margin-left: 4px; color: #b54708; font-size: 12px; }
.money-in { width: 92px !important; }
.live-totals { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; position: sticky; bottom: 0; background: #0f2742; color: #fff; border-radius: 0 0 var(--radius) var(--radius); z-index: 5; }
.live-totals .lt-figs { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.live-totals .lt-figs span { display: flex; flex-direction: column; }
.live-totals small { color: #9fb1c6; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.live-totals b { font-size: 17px; font-variant-numeric: tabular-nums; }
.live-totals .lt-note { color: #c9d5e3; flex-direction: row !important; max-width: 260px; }
.flash { animation: flashcell 1.2s ease; }
@keyframes flashcell { 0% { background: #fef0c7; } 100% { background: transparent; } }
.cash-list { display: flex; flex-direction: column; }
.cash-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.cash-row span { display: flex; flex-direction: column; }
.cash-row b { font-variant-numeric: tabular-nums; }

dialog.drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: 480px; max-width: 100%; padding: 0; border: 0; box-shadow: -12px 0 40px rgba(16, 24, 40, .22); background: #fff; color: var(--text); }
dialog.drawer::backdrop { background: rgba(16, 24, 40, .45); }
dialog.drawer[open] { animation: drawerIn .18s ease-out; }
@keyframes drawerIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-form { display: flex; flex-direction: column; min-height: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 4px 0 2px; font-size: 20px; }
.drawer-kicker { font-size: 12px; font-weight: 800; color: #b42318; letter-spacing: .04em; text-transform: uppercase; }
.drawer-x { border: 1px solid var(--line-2); background: #fff; border-radius: 10px; width: 40px; height: 40px; font-size: 20px; cursor: pointer; flex: none; }
.drawer-body { padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.drawer-body .field { display: flex; flex-direction: column; gap: 5px; margin: 0; font-weight: 600; font-size: 14px; }
.drawer-body .field small { font-weight: 400; }
.drawer-body input, .drawer-body select { font: inherit; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 9px; width: 100%; box-sizing: border-box; }
.drawer-body .big-input { font-size: 18px; padding: 11px 12px; border: 2px solid var(--teal); letter-spacing: .04em; }
.drawer-body input.ok { border-color: #16a34a; background: #f0fdf4; }
.drawer-body input.bad { border-color: #b42318; background: #fef3f2; }
.drawer-body .form-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.drawer-body .form-grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.drawer-body fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.drawer-body .error { color: #b42318; }
.drawer-body .req { color: #b42318; font-style: normal; }
.drawer-tip { background: #f6f7f9; border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #344054; }
.inline-ask { display: flex; gap: 8px; margin-top: 8px; }
.inline-ask input { flex: 1; }
.drawer-foot { display: flex; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
.drawer-foot .btn { flex: 1; justify-content: center; }
.split-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line); }
.sb-net { background: #0f766e; } .sb-tax { background: #5eb8ad; } .sb-cpp { background: #2f5bd3; } .sb-ei { background: #8aa2e6; } .sb-other { background: #f59e0b; }
.split-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.split-legend li { display: flex; align-items: center; gap: 8px; }
.split-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.split-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.why-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
@media (max-width: 720px) {
    .pr-checks { grid-template-columns: 1fr; }
    .live-totals { border-radius: 0; }
    .live-totals .lt-note { display: none; }
    .drawer-body .form-grid.three, .drawer-body .form-grid.two { grid-template-columns: 1fr; }
}
.pr-phone { display: none; }
@media (max-width: 720px) {
    .pr-phone { display: block; background: #0f2742; color: #fff; border-radius: 16px; padding: 18px; margin: 0 0 14px; }
    .pr-phone-top { display: flex; flex-direction: column; gap: 2px; }
    .pr-phone-top .muted { color: #9fb1c6; }
    .pr-phone-net { font-size: 34px; font-variant-numeric: tabular-nums; }
    .pr-phone-warn { background: #fef3f2; color: #b42318; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
    .pr-phone-btn { width: 100%; justify-content: center; min-height: 52px; font-size: 16px; margin-top: 12px; background: #14b8a6; border-color: #14b8a6; color: #04201d; }
}

/* ===== 1.17 Charts & dashboards ===== */
.chart { margin: 0; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: #344054; margin-bottom: 14px; }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ch-legend i.ln { height: 3px; width: 18px; border-radius: 2px; }
.ch-legend i.ln.dash { background-image: linear-gradient(90deg, transparent 50%, #fff 50%) !important; background-size: 6px 3px; }
.ch-body { display: flex; gap: 10px; }
.ch-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; color: #667085; text-align: right; min-width: 46px; font-variant-numeric: tabular-nums; transform: translateY(-7px); }
.ch-main { flex: 1; min-width: 0; }
.ch-plot { position: relative; border-bottom: 1px solid #cfd4dc; background-image: linear-gradient(#eef0f4 1px, transparent 1px); background-size: 100% 25%; }
.ch-cols { position: absolute; inset: 0; display: grid; gap: 0; }
.ch-col { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 100%; padding: 0 12%; }
.ch-col.hl { background: rgba(15, 118, 110, .07); }
.ch-col:hover { background: rgba(16, 24, 40, .04); }
.ch-stack { width: 100%; max-width: 46px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.ch-seg:first-child { border-radius: 5px 5px 0 0; }
.ch-bar { flex: 1; max-width: 34px; border-radius: 5px 5px 0 0; min-height: 0; }
.ch-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ch-x { display: grid; margin-top: 8px; font-size: 12px; text-align: center; }
.ch-x span { display: flex; flex-direction: column; font-weight: 600; }
.ch-x small { font-weight: 400; color: #667085; font-size: 11px; }
.donut { display: flex; flex-direction: column; gap: 12px; }
.donut-ring { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.donut-ring svg { width: 200px; height: 200px; transform: rotate(-90deg); }
.donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-c small { color: #667085; font-size: 12px; }
.donut-c b { font-size: 16px; font-variant-numeric: tabular-nums; }
.donut-legend { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hb-row { display: grid; grid-template-columns: 120px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { height: 14px; background: #eef0f4; border-radius: 4px; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 4px; }
.hb-row b { text-align: right; font-variant-numeric: tabular-nums; }
.spark { display: block; }
.vs { margin-top: 12px; }
.vs-h { display: flex; justify-content: space-between; font-size: 13px; gap: 10px; }
.vs-t { position: relative; height: 10px; background: #eef0f4; border-radius: 99px; margin-top: 6px; }
.vs-t i { position: absolute; left: 0; border-radius: 99px; }
.vs-t i.p { top: 0; bottom: 0; background: #c7d7fe; }
.vs-t i.a { top: 2px; bottom: 2px; background: #2f5bd3; }
.tone-danger { color: #b42318; font-weight: 700; } .tone-good { color: var(--teal); font-weight: 700; } .tone-muted { color: #667085; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-grid .span2 { grid-column: span 2; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi small { color: #5b6475; font-weight: 600; font-size: 12px; }
.kpi b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi span { font-size: 12px; font-weight: 600; }
.hero-dark { background: #0f2742; color: #fff; border-radius: 18px; padding: 22px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hero-dark .k { font-size: 12px; color: #9fb1c6; font-weight: 700; letter-spacing: .05em; }
.hero-dark h2 { margin: 4px 0; font-size: 26px; color: #fff; }
.hero-dark p { color: #c9d5e3; margin: 0; font-size: 14px; }
.hero-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-tiles div { background: #16355a; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.hero-tiles small { color: #9fb1c6; font-size: 12px; }
.hero-tiles b { font-size: 20px; font-variant-numeric: tabular-nums; }
.hero-tiles span { color: #9fd9d2; font-size: 12px; }
.btn-hero { background: #14b8a6; color: #04201d; border-color: #14b8a6; font-weight: 800; }
.btn-hero:hover { background: #2dd4bf; color: #04201d; }
.btn-ghost-dark { color: #fff; border: 1px solid #3a5573; background: transparent; }
.btn-ghost-dark:hover { color: #fff; background: #16355a; }
.dl-list { display: flex; flex-direction: column; }
.dl-row { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.dl-date { width: 48px; text-align: center; border-radius: 10px; padding: 5px 0; flex: none; display: flex; flex-direction: column; line-height: 1.1; }
.dl-date small { font-size: 10.5px; font-weight: 700; }
.dl-date b { font-size: 18px; }
.dl-row .dl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.dl-row .dl-t strong { font-size: 14px; }
.dl-in { font-size: 12px; font-weight: 800; white-space: nowrap; }
.t-danger { background: #fee4e2; color: #b42318; } .t-warning { background: #fef0c7; color: #93370d; } .t-good { background: #e6f4f2; color: #0f766e; } .t-muted { background: #eef0f4; color: #344054; }
.fix-list { display: flex; flex-direction: column; gap: 8px; }
.fix-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.fix-item:hover { filter: brightness(.98); color: var(--text); }
.fix-item .pr-check-ico { width: 22px; height: 22px; font-size: 12px; }
.fix-item span { display: flex; flex-direction: column; font-size: 12.5px; color: #475467; }
.fix-item strong { font-size: 14px; color: var(--text); }
@media (max-width: 960px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-grid .span2 { grid-column: auto; }
    .hero-dark { grid-template-columns: 1fr; }
}
.emp-insights h3 { font-size: 15px; margin: 4px 0 10px; }
.emp-insights .dash-grid { margin-bottom: 8px; }
.heat { display: grid; grid-template-columns: 40px repeat(12, minmax(0, 1fr)); gap: 4px; font-size: 11px; color: #667085; }
.heat-l { align-self: center; }
.heat i { display: block; height: 20px; border-radius: 5px; }
.raise { background: #f6f7f9; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.raise .field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; margin: 0; }
.raise input { font: inherit; font-size: 17px; font-weight: 700; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px; }
.raise-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.raise-out div { background: #fff; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; }
.raise-out small { color: #667085; font-size: 12px; }
.raise-out b { font-size: 19px; font-variant-numeric: tabular-nums; }
/* payroll calendar */
.cal-nav { align-items: center; flex-wrap: wrap; }
.month-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.cal-k { border-left: 6px solid var(--line); }
.cal-k.late { border-left-color: #b42318; } .cal-k.soon { border-left-color: #f59e0b; } .cal-k.up { border-left-color: #98a2b3; } .cal-k.done { border-left-color: #16a34a; }
.cal-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cal-card { flex: 999 1 720px; min-width: 0; }
.cal-side { flex: 1 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); min-width: 780px; }
.cal-h { padding: 9px 10px; font-size: 12px; font-weight: 700; color: #5b6475; background: #f9fafb; border-bottom: 1px solid var(--line); }
.cal-d { min-height: 118px; padding: 6px; border-right: 1px solid #eef0f4; border-bottom: 1px solid #eef0f4; display: flex; flex-direction: column; gap: 3px; }
.cal-d.out { background: #fafafb; }
.cal-d.today { background: #f0faf8; }
.cal-n { font-size: 13px; font-weight: 700; }
.cal-d.today .cal-n { color: var(--teal); }
.cal-ev { display: block; font-size: 11px; font-weight: 500; line-height: 1.25; padding: 3px 6px; border-radius: 6px; overflow: hidden; border-left: 3px solid; }
.cal-ev b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-done { background: #ecfdf3; color: #166534; border-color: #16a34a; }
.st-soon { background: #fffaeb; color: #93370d; border-color: #f59e0b; }
.st-late { background: #fef3f2; color: #b42318; border-color: #b42318; }
.st-up { background: #f2f4f7; color: #344054; border-color: #98a2b3; }
.todo-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text); }
.todo-row span:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.todo-row small { color: #475467; }
.todo-row em { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }
.todo-row .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; border: 0; }
.legend-row { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 3px 0; }
.legend-row .cal-ev { width: 18px; padding: 0; height: 14px; }
/* sales & POS */
.page-intro { margin: 4px 0 16px; }
.page-intro h2 { margin: 0 0 4px; }
.page-intro p { margin: 0; max-width: 820px; }
.pos-on { display: flex; gap: 16px; align-items: flex-start; }
.pos-body { flex: 1; }
.pos-title { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.pos-logo { width: 48px; height: 48px; border-radius: 12px; background: #667085; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.pos-square { background: #101828; } .pos-clover { background: #1f7a3a; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pos-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.pos-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pos-t small { color: #5b6475; font-size: 12px; }
.is-disabled { opacity: .6; pointer-events: none; }
.src-badge { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.src-pos { background: #e6f4f2; color: #0f766e; } .src-man { background: #fff4ed; color: #9a3412; } .src-proj { background: #eef0f4; color: #344054; }
.pct { font-weight: 800; padding: 2px 8px; border-radius: 99px; font-size: 12.5px; }
.pct.good { background: #dcfce7; color: #166534; } .pct.mid { background: #fef0c7; color: #93370d; } .pct.bad { background: #fee4e2; color: #b42318; }
.sales-table tr.today { background: #f0faf8; }
.side-stack { display: flex; flex-direction: column; gap: 16px; }
.week-nav { display: inline-flex; align-items: center; gap: 6px; }
.card-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* scheduling dashboard & who's working */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 6px 0 16px; }
.dash-hello { margin: 2px 0 0; font-size: 24px; }
.range-box { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 2px 4px; }
.seg { display: inline-flex; background: #e9ecf1; border-radius: 10px; padding: 3px; }
.seg a { padding: 6px 14px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 600; }
.seg a.on { background: #101828; color: #fff; }
.empty-chart { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.empty-chart p { margin: 0; }
.ww-mini { display: flex; flex-direction: column; gap: 12px; }
.ww-row { display: grid; grid-template-columns: 34px minmax(140px, 200px) 1fr 110px; gap: 12px; align-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ww-name { display: flex; flex-direction: column; min-width: 0; }
.ww-name small { color: #5b6475; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ww-track { position: relative; height: 12px; background: #eef0f4; border-radius: 99px; }
.ww-track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.ww-track i.plan { background: #dbe4ff; border: 1px dashed #8aa2e6; box-sizing: border-box; }
.ww-track i.act { top: 2px; bottom: 2px; }
.ww-track b.now { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #b42318; }
.ww-state { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; text-align: center; white-space: nowrap; }
.ww-state.st-good { background: #dcfce7; color: #166534; } .ww-state.st-danger { background: #fee4e2; color: #b42318; } .ww-state.st-warning { background: #fef0c7; color: #93370d; } .ww-state.st-muted { background: #eef0f4; color: #344054; }
.att-list { display: flex; flex-direction: column; gap: 8px; }
.att { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: #f6f7f9; color: var(--text); font-size: 14px; }
.att-n { min-width: 28px; text-align: center; border-radius: 99px; padding: 2px 8px; font-size: 12px; color: #fff; }
.n-danger { background: #b42318; } .n-warning { background: #b54708; } .n-info { background: #2f5bd3; } .n-zero { background: #d0d5dd; color: #344054; }
.upsell { border-radius: 20px; background: #0f2742; color: #fff; padding: 26px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: center; margin-bottom: 16px; }
.up-copy { display: flex; flex-direction: column; gap: 12px; }
.up-copy h2 { margin: 0; font-size: 24px; line-height: 1.25; color: #fff; }
.up-copy p { margin: 0; color: #c9d5e3; }
.up-pill { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; background: #f59e0b; color: #1f1300; padding: 4px 10px; border-radius: 99px; }
.btn-promo { background: #f59e0b; color: #1f1300; border-color: #f59e0b; font-weight: 800; }
.btn-promo:hover { background: #fbbf24; color: #1f1300; }
.up-fine { color: #9fb1c6 !important; }
.up-preview { background: #16355a; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.up-row { display: flex; justify-content: space-between; font-size: 13px; color: #9fb1c6; }
.up-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.up-tiles div { background: #0f2742; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.up-tiles small { color: #9fb1c6; font-size: 12px; } .up-tiles b { font-size: 19px; }
.up-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.up-bars i { flex: 1; background: #2f8f86; border-radius: 4px 4px 0 0; }
@media (max-width: 960px) { .upsell { grid-template-columns: 1fr; } .ww-row { grid-template-columns: 34px 1fr 100px; } .ww-track { grid-column: 1 / -1; order: 5; } }
.tl { min-width: 980px; }
.tl-hours { display: grid; grid-template-columns: 230px 1fr 124px; padding-bottom: 6px; }
.tl-scale { display: grid; font-size: 12px; font-weight: 600; color: #5b6475; }
.tl-row { display: grid; grid-template-columns: 230px 1fr 124px; gap: 0 0; align-items: center; min-height: 56px; border-top: 1px solid #eef0f4; }
.tl-who { display: flex; gap: 10px; align-items: center; padding-right: 10px; min-width: 0; }
.tl-lane { position: relative; height: 56px; background-image: linear-gradient(90deg, #eef0f4 1px, transparent 1px); }
.tl-lane i { position: absolute; top: 12px; height: 32px; border-radius: 8px; box-sizing: border-box; }
.tl-plan { background: rgba(219, 228, 255, .55); border: 1px dashed; }
.tl-act { display: flex; align-items: center; overflow: hidden; }
.tl-act span { color: #fff; font-size: 12px; font-weight: 700; padding-left: 9px; white-space: nowrap; }
.tl-break { background: repeating-linear-gradient(135deg, #f59e0b 0 4px, #fde68a 4px 8px); border-radius: 4px !important; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: #b42318; }
.tl-row .ww-state { margin-left: 10px; }
.feed { display: flex; flex-direction: column; }
.feed-row { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.feed-row > span:first-child { width: 72px; flex: none; font-variant-numeric: tabular-nums; }
@media print { .sidebar, .topbar, .subtabs, .dash-head .btn-row, .testlab-bar, .tabbar { display: none !important; } .tl { min-width: 0; } }
/* week schedule (1.17) */
.sched-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 14px; }
.tb-spacer { flex: 1; }
.dept-pick label { display: inline-flex; align-items: center; gap: 6px; }
.dept-pick select { font: inherit; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; }
.warn-btn { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; font-weight: 700; }
.ok-pill { background: #ecfdf3; color: #166534; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.kpi b.kpi-text { font-size: 16px; }
.pct-good { color: #166534; font-weight: 700; } .pct-mid { color: #93370d; font-weight: 700; } .pct-bad { color: #b42318; font-weight: 700; } .pct-none { color: #667085; }
.sched-pro th, .sched-pro td { vertical-align: top; }
.sched-pro thead th { background: #fff; }
.proj-row th { background: #f9fafb !important; font-weight: 400; text-transform: none; letter-spacing: 0; }
.proj-h { display: block; font-weight: 800; font-size: 13px; color: var(--text); }
.proj-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; font-weight: 700; padding: 5px 7px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.proj-in.set { border-color: var(--teal); }
.proj-actual { font-weight: 800; font-size: 13px; color: var(--text); display: block; }
.opt { display: block; font-size: 11px; color: var(--teal); font-weight: 700; margin-top: 3px; white-space: nowrap; }
.opt.over { color: #b42318; }
.day-h { min-width: 120px; text-transform: none !important; letter-spacing: 0 !important; }
.day-h.is-today { background: #f0faf8 !important; box-shadow: inset 0 3px 0 var(--teal); }
.dh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.dh-top b { display: block; font-size: 14px; color: var(--text); }
.dh-top small { color: #667085; font-weight: 500; }
.dh-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 11.5px; font-weight: 600; color: #475467; }
.dh-wx { display: inline-flex; align-items: center; gap: 3px; }
.dh-ev { display: block; margin-top: 5px; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.dh-ev.bday { background: #f4f0ff; color: #6941c6; } .dh-ev.hol { background: #fff4ed; color: #9a3412; }
.sec-row td { background: #f9fafb; border-top: 3px solid; padding: 7px 14px !important; }
.sec-row td strong { margin-right: 10px; }
.emp-cell { display: flex; gap: 9px; align-items: center; }
.emp-cell span:last-child { display: flex; flex-direction: column; }
.emp-cell small { font-size: 12px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; flex: none; }
.sched-cell.unavail { background: repeating-linear-gradient(135deg, #f6f7f9 0 6px, #eef0f4 6px 12px); }
a.shift { position: relative; display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #fff; color: var(--text); margin-bottom: 4px; min-height: 34px; }
a.shift:hover { border-color: var(--teal); }
a.shift.warn { border-color: #fda29b; background: #fffbfa; }
a.shift.open { border-style: dashed; border-color: #98a2b3; }
.sh-l { width: 20px; flex: none; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; background: #98a2b3; }
.sh-t { padding: 4px 7px; display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; min-width: 0; }
.sh-t b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-t small { color: #667085; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-t small.w { color: #b42318; font-weight: 700; }
.sh-draft { position: absolute; top: 3px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.day-foot td { background: #f9fafb; border-top: 2px solid var(--line); }
.pct-pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #eef0f4; color: #344054; }
.pct-pill.pct-good { background: #dcfce7; color: #166534; } .pct-pill.pct-mid { background: #fef0c7; color: #93370d; } .pct-pill.pct-bad { background: #fee4e2; color: #b42318; }
.d-block { display: block; font-size: 11.5px; color: #475467; margin-top: 2px; }
.warn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 0 0 16px; }
.warn-card { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.warn-card span { width: 24px; height: 24px; border-radius: 7px; background: #fef3f2; color: #b42318; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.warn-card p { margin: 0; font-size: 13.5px; }
.sales-table td:first-child { white-space: nowrap; }

.sched-pro { table-layout: fixed; min-width: 1060px; width: 100%; }
.sched-pro col.c-emp { width: 172px; } .sched-pro col.c-h { width: 58px; } .sched-pro col.c-cost { width: 86px; }
.sched-pro th, .sched-pro td { padding-left: 6px; padding-right: 6px; }
.day-h { min-width: 0; }
.dh-ev { max-width: 100%; }

.opt { white-space: normal; }
.opt span { display: block; color: #475467; font-weight: 600; }
.sh-t b { font-size: 11.5px; white-space: normal; }
.tl-lane i { font-style: normal; }

.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.loc-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--text); display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.loc-card:hover { border-color: var(--teal); color: var(--text); }
.loc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.loc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.loc-nums span { display: flex; flex-direction: column; }
.loc-nums small { font-size: 11.5px; color: #5b6475; font-weight: 600; }
.loc-nums b { font-size: 18px; font-variant-numeric: tabular-nums; }
.loc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pos-admin { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; } .pos-admin legend { font-weight: 700; padding: 0 6px; }
/* Test Lab: what to try */
.tl-try { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.tl-try-col { border: 1px solid var(--line, #e4e7ec); border-radius: 12px; padding: 14px 16px; background: var(--card-2, #fafbfc); }
.tl-try-col h3 { font-size: 1rem; margin: 0 0 8px; display: flex; flex-direction: column; gap: 2px; }
.tl-try-col h3 small { font-weight: 500; color: var(--muted, #667085); font-size: .78rem; }
.tl-try-col ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .88rem; line-height: 1.45; }
@media (max-width: 1100px) { .tl-try { grid-template-columns: 1fr; } }

/* ---------- 1.18 Bookkeeping ---------- */
.bk-nav { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; margin: -8px 0 18px; padding: 4px 2px 8px; scrollbar-width: thin; }
.bk-nav a { white-space: nowrap; padding: 7px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 600; }
.bk-nav a:hover { text-decoration: none; border-color: var(--teal); }
.bk-nav a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.bk-nav a.acct { margin-left: 10px; }
.bk-nav em { font-style: normal; background: #f59e0b; color: #fff; border-radius: 99px; padding: 0 7px; font-size: .75rem; margin-left: 3px; }
.bk-nav a.on em { background: #fbbf24; color: var(--navy); }
.bk-answered .btn { color: #fff; text-decoration: none; }
.bk-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.bk-filter select, .bk-filter input { width: auto; max-width: 220px; }
.bk-answered { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bk-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.bk-close { background: linear-gradient(135deg, #0f2742, #16355a 60%, #0f766e); color: #fff; border-radius: 18px; padding: 22px 24px; position: relative; overflow: hidden; }
.bk-close h2 { color: #fff; font-size: 1.35rem; margin: 2px 0 2px; }
.bk-close .k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #9fd8d1; font-weight: 700; }
.bk-close .sub { color: #c9d6e4; font-size: .9rem; }
.bk-ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; background: conic-gradient(#34d399 calc(var(--p) * 1%), rgba(255,255,255,.15) 0); display: grid; place-items: center; flex: 0 0 86px; }
.bk-ring span { width: 66px; height: 66px; border-radius: 50%; background: #13304f; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.bk-close-top { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.bk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bk-steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; background: rgba(255,255,255,.07); border-radius: 12px; padding: 9px 12px; }
.bk-steps li.done { opacity: .78; }
.bk-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: rgba(255,255,255,.15); }
.bk-steps li.done .n { background: #34d399; color: #064e3b; }
.bk-steps b { display: block; font-size: .93rem; }
.bk-steps small { color: #b9c7d8; }
.bk-steps .btn { background: #fff; color: var(--navy); border: 0; }
.bk-steps .btn:hover { background: #e6f4f2; }
.bk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bk-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: var(--text); box-shadow: var(--shadow); }
a.bk-tile:hover { text-decoration: none; border-color: var(--teal); transform: translateY(-1px); }
.bk-tile small { color: var(--muted); font-weight: 600; font-size: 12px; }
.bk-tile b { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--navy); }
.bk-tile span { font-size: 12px; color: var(--muted); }
.bk-tile.warn b { color: #b45309; }
.bk-tile.good b { color: var(--success); }
.bk-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; height: 170px; padding: 6px 4px 0; }
.bk-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bk-bar .pair { display: flex; gap: 4px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bk-bar i { display: block; width: 38%; max-width: 22px; border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bk-bar i.in { background: #14b8a6; }
.bk-bar i.out { background: #f59e0b; }
.bk-bar small { color: var(--muted); font-size: 12px; }
.bk-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.bk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.bk-pl { width: 100%; border-collapse: collapse; }
.bk-pl td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.bk-pl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.bk-pl tr.net td { border-bottom: 0; font-weight: 800; font-size: 1.05rem; padding-top: 10px; }
.bk-saved { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bk-saved div { background: var(--teal-soft); border-radius: 14px; padding: 12px 14px; }
.bk-saved b { display: block; font-size: 1.5rem; color: var(--teal); }
.bk-saved span { font-size: .85rem; color: #24524d; }
/* review */
.bk-review { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bk-progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 16px; }
.bk-progress i { display: block; height: 100%; background: linear-gradient(90deg, #14b8a6, #34d399); transition: width .4s; }
.bk-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 24px rgba(15, 39, 66, .08); padding: 22px 24px; }
.bk-card .meta { color: var(--muted); font-size: .85rem; }
.bk-card h2 { font-size: 1.25rem; margin: 4px 0 2px; word-break: break-word; }
.bk-card .raw { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.bk-amt { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 6px 0 12px; }
.bk-amt.in { color: var(--success); }
.bk-amt.out { color: var(--navy); }
.bk-sugg { background: var(--teal-soft); border: 1px solid #b9e3dd; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.bk-sugg b { font-size: 1.05rem; }
.bk-sugg .bk-why { font-size: .85rem; color: #24524d; }
.bk-sugg.ai { background: #f3efff; border-color: #ddd3ff; }
.bk-sugg.ai .bk-why { color: #4c3d8f; }
.bk-sugg.none { background: var(--warning-soft); border-color: #f5dfa8; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bk-actions kbd, .bk-keys kbd { font-family: var(--mono); font-size: .72rem; background: rgba(15,39,66,.08); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.btn-primary kbd { background: rgba(255,255,255,.2); }
.bk-keys { color: var(--muted); font-size: .8rem; margin-top: 12px; }
.bk-pick { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.bk-pick .row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.bk-split-row { display: grid; grid-template-columns: minmax(0, 2fr) 110px 120px minmax(0, 1fr) 28px; gap: 6px; margin-bottom: 6px; }
.bk-queue { list-style: none; margin: 0; padding: 0; }
.bk-queue li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.bk-queue li.cur { background: var(--info-soft); border-radius: 8px; }
.bk-queue .d { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-queue .c { font-size: .78rem; color: var(--muted); }
.bk-queue .a { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; }
.bk-chip { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--line); color: var(--muted); }
.bk-chip.memory, .bk-chip.rule { background: var(--teal-soft); color: var(--teal); }
.bk-chip.vendor { background: var(--info-soft); color: var(--info); }
.bk-chip.ai { background: #f3efff; color: #5b47b3; }
.bk-chip.transfer, .bk-chip.match { background: #eef2ff; color: #3730a3; }
.bk-chip.invoice, .bk-chip.bill { background: var(--success-soft); color: var(--success); }
.bk-done { text-align: center; padding: 40px 20px; }
.bk-done .big { font-size: 3rem; }
.amt-in { color: var(--success); }
.bk-tbl td.num, .bk-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-tbl tr.bad td { background: #fff1f1; }
.bk-tbl tr.dup td { color: var(--muted); text-decoration: line-through; }
.bk-tbl tr.likely td { color: #92400e; }
.bk-tbl tr.total td { font-weight: 800; border-top: 2px solid var(--navy); }
.bk-tbl tr.sec td { background: #f8fafc; font-weight: 700; color: var(--navy); }
.bk-proof { display: flex; gap: 14px; align-items: center; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.bk-proof.ok { background: var(--success-soft); color: var(--success); }
.bk-proof.bad { background: var(--danger-soft); color: var(--danger); }
.bk-proof .ico { font-size: 1.8rem; }
.bk-proof b { display: block; color: inherit; }
/* 1.22.32 one stretch of a statement that does not add up, and the form to add what is missing */
.bk-gap { border: 1px solid var(--danger); border-left-width: 4px; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: var(--surface, #fff); }
.bk-gap p { margin: 0 0 8px; }
.bk-gap-note { border-color: #b45309; }
.bk-gap-note p { margin: 0; }
.bk-chip-warn { background: #fef3c7; color: #7c2d12; }
.bk-gap .form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.bk-unread { margin: 0 0 10px 18px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.bk-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed #9ccfc8; background: #f5fbfa; border-radius: 18px; padding: 34px 20px; text-align: center; cursor: pointer; }
.bk-drop:hover, .bk-drop.over { border-color: var(--teal); background: var(--teal-soft); }
.bk-drop input[type=file] { max-width: 100%; }
.bk-drop .ico { font-size: 2.4rem; }
.bk-kinds { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.bk-kinds span { font-size: .78rem; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
/* 1.21.44 duplicate account alert on banking page */
.bk-dup-alert { border-left: 4px solid var(--warning); margin-bottom: 8px; }
.bk-dup-alert em { font-style: normal; font-weight: 700; }

/* 1.21.48 Connect OneDrive / Google Drive: each drive shown by its own mark beside its name. The width and height
   are set here on purpose — an SVG with a viewBox and no size falls back to 300x150 and wrecks the row. */
.drive-choice { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.drive-btn { display: inline-flex; align-items: center; gap: 9px; }
.drive-mark { width: 20px; height: 20px; flex: none; }
.bk-acct-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bk-acct-row:last-child { border-bottom: 0; }
.bk-acct-row .nm b { display: block; }
.bk-acct-row .nm small, .bk-acct-row small { color: var(--muted); }
.bk-acct-row .num { font-variant-numeric: tabular-nums; text-align: right; }
.bk-state { font-size: .8rem; font-weight: 700; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.bk-state.ok { background: var(--success-soft); color: var(--success); }
.bk-state.off { background: var(--danger-soft); color: var(--danger); }
.bk-state.none { background: var(--warning-soft); color: var(--warning); }
.bk-lines-tbl input, .bk-lines-tbl select { width: 100%; }
.bk-lines-tbl td { padding: 4px 4px; vertical-align: top; }
/* 1.22.58 live stock under the quantity: words carry the meaning, the colour only helps */
.bk-stock { font-size: 12px; line-height: 1.3; color: var(--muted, #475569); min-height: 0; white-space: normal; }
.bk-stock-low { color: #8a4b00; font-weight: 600; }
.bk-stock-short { color: #a11222; font-weight: 700; }
.bk-tot { display: grid; grid-template-columns: auto 140px; gap: 4px 16px; justify-content: end; margin-top: 10px; font-variant-numeric: tabular-nums; }
.bk-tot b { text-align: right; }
/* ---------------------------------------------------------------- the invoice itself (1.21.78)
   One document used four ways — on screen, printed, saved as a PDF by the browser, and opened by the
   customer — so all of its appearance is here rather than in the markup, keyed off [data-style] from the
   company's template. "classic" below is the form BooksAuto has always produced and is still the default:
   nobody's invoice changes because they installed an update.                                             */
.bk-inv { --inv-accent: #0f2742; --inv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 820px; background: #fff; color: #111827; border: 1px solid var(--line); border-radius: 12px;
    padding: 34px 38px; margin: 0 auto 20px; font-family: var(--inv-font); position: relative; overflow: hidden; }
.bk-inv-band { display: none; }
.bk-c-no, .bk-inv-topdue { display: none; } /* 1.22.77 only the Standard style shows line numbers and the balance beside the title */
.bk-inv-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.bk-inv-biz { font-size: 1.15rem; margin: 0; }
.bk-inv-fromlines { font-size: .82rem; color: var(--muted); }
.bk-inv-id { text-align: right; }
.bk-inv-title { font-size: 1.8rem; letter-spacing: .04em; color: var(--inv-accent); margin: 0 0 4px; }
.bk-inv-meta { font-size: .82rem; margin: 0; display: block; }
.bk-inv-meta > div { display: flex; gap: 6px; justify-content: flex-end; }
.bk-inv-meta dt { color: var(--muted); margin: 0; font-weight: 400; }
.bk-inv-meta dd { margin: 0; }
.bk-inv-to { margin-bottom: 14px; }
.bk-inv-tolbl { font-size: .78rem; color: var(--muted); margin: 0 0 2px; }
.bk-inv-toname { margin: 0; }
.bk-inv-toaddr { font-size: .84rem; color: var(--muted); }
.bk-inv .bk-tbl thead th { border-bottom: 2px solid var(--inv-accent); }
.bk-inv-foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; margin-top: 12px; }
/* Classic keeps the order it has always had — totals, then the message and notes beneath them, full width —
   because an invoice sent last month must not come out rearranged after an update. The markup is written
   notes-first for the styles that set them side by side, so classic reverses it rather than needing two. */
.bk-inv[data-style="classic"] .bk-inv-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.bk-inv[data-style="classic"] .bk-tot { grid-row: 1; }
.bk-inv[data-style="classic"] .bk-inv-notes { grid-row: 2; padding-top: 14px; }
.bk-inv-notes { padding-top: 10px; }
.bk-inv-msg { margin: 0 0 6px; }
/* 1.21.78 where to pay, written on the document so it survives being printed or saved as a PDF */
.bk-inv-pay { margin-top: 18px; padding: 9px 12px; border: 1px solid var(--inv-accent); border-radius: 8px; font-size: .86rem; word-break: break-all; }
.bk-inv-pay strong { color: var(--inv-accent); }
.bk-inv-foot { margin-top: 22px; font-size: .82rem; color: var(--muted); }
.bk-tot-due b, b.bk-tot-due { font-size: 1.2rem; }

/* Modern — a band of the accent across the top, air, hairline rules. */
.bk-inv[data-style="modern"] { padding: 0 0 34px; }
.bk-inv[data-style="modern"] .bk-inv-band { display: block; height: 10px; background: var(--inv-accent); }
.bk-inv[data-style="modern"] .bk-inv-head { padding: 30px 38px 0; align-items: flex-start; margin-bottom: 30px; }
.bk-inv[data-style="modern"] .bk-inv-title { font-size: 2.3rem; font-weight: 300; letter-spacing: .14em; color: #111827; }
.bk-inv[data-style="modern"] .bk-inv-biz { font-size: 1.3rem; letter-spacing: -.01em; }
.bk-inv[data-style="modern"] .bk-inv-to,
.bk-inv[data-style="modern"] .bk-tbl,
.bk-inv[data-style="modern"] .bk-inv-foot-grid,
.bk-inv[data-style="modern"] .bk-inv-foot,
.bk-inv[data-style="modern"] .bk-inv-time { margin-left: 38px; margin-right: 38px; }
.bk-inv[data-style="modern"] .bk-tbl { width: calc(100% - 76px); }
.bk-inv[data-style="modern"] .bk-tbl thead th { border-bottom: 1px solid var(--inv-accent); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--inv-accent); }
.bk-inv[data-style="modern"] .bk-tbl td { border-bottom: 1px solid #f1f5f9; }
.bk-inv[data-style="modern"] .bk-tot-due b, .bk-inv[data-style="modern"] b.bk-tot-due { color: var(--inv-accent); font-size: 1.35rem; }

/* Bold — the company name reversed out of a solid block of the accent. */
.bk-inv[data-style="bold"] { padding: 0 0 34px; }
.bk-inv[data-style="bold"] .bk-inv-head { background: var(--inv-accent); color: #fff; padding: 28px 38px; margin-bottom: 26px; align-items: center; }
.bk-inv[data-style="bold"] .bk-inv-biz { font-size: 1.5rem; color: #fff; }
.bk-inv[data-style="bold"] .bk-inv-fromlines,
.bk-inv[data-style="bold"] .bk-inv-meta dt { color: rgba(255, 255, 255, .78); }
.bk-inv[data-style="bold"] .bk-inv-title,
.bk-inv[data-style="bold"] .bk-inv-meta dd { color: #fff; }
.bk-inv[data-style="bold"] .bk-inv-title { font-size: 2rem; font-weight: 800; letter-spacing: .02em; }
.bk-inv[data-style="bold"] .bk-inv-logo { background: #fff; border-radius: 6px; padding: 4px; }
.bk-inv[data-style="bold"] .bk-inv-to,
.bk-inv[data-style="bold"] .bk-tbl,
.bk-inv[data-style="bold"] .bk-inv-foot-grid,
.bk-inv[data-style="bold"] .bk-inv-foot,
.bk-inv[data-style="bold"] .bk-inv-time { margin-left: 38px; margin-right: 38px; }
.bk-inv[data-style="bold"] .bk-tbl { width: calc(100% - 76px); }
.bk-inv[data-style="bold"] .bk-tbl thead th { background: #f8fafc; border-bottom: 2px solid var(--inv-accent); }
/* the class is on the span and the b themselves, not on a wrapper — a descendant selector matches nothing */
/* the two cells are grid siblings with a 16px gap between them; the label reaches across it so the pair
   reads as one bar rather than two chips */
.bk-inv[data-style="bold"] span.bk-tot-due, .bk-inv[data-style="bold"] b.bk-tot-due { background: var(--inv-accent); color: #fff; padding: 7px 10px; }
.bk-inv[data-style="bold"] span.bk-tot-due { margin-right: -16px; padding-right: 26px; }
.bk-inv[data-style="bold"] span.bk-tot-due strong { color: #fff; }

/* Minimal — no rules, no fill. Small-caps labels and the amount due doing the work. */
.bk-inv[data-style="minimal"] { padding: 44px 46px; }
.bk-inv[data-style="minimal"] .bk-inv-head { margin-bottom: 40px; }
.bk-inv[data-style="minimal"] .bk-inv-title { font-size: 1rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.bk-inv[data-style="minimal"] .bk-inv-biz { font-size: 1.25rem; font-weight: 600; }
.bk-inv[data-style="minimal"] .bk-inv-tolbl,
.bk-inv[data-style="minimal"] .bk-tbl thead th { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bk-inv[data-style="minimal"] .bk-tbl thead th,
.bk-inv[data-style="minimal"] .bk-tbl td { border: 0; background: none; padding-top: 9px; padding-bottom: 9px; }
.bk-inv[data-style="minimal"] .bk-tbl tbody tr + tr td { border-top: 1px solid #f1f5f9; }
.bk-inv[data-style="minimal"] .bk-tot-due b, .bk-inv[data-style="minimal"] b.bk-tot-due { font-size: 1.6rem; font-weight: 700; color: var(--inv-accent); }

/* Formal — serif, the title centred under a double rule. For engagement letters and professional fees. */
.bk-inv[data-style="formal"] { padding: 42px 46px; }
.bk-inv[data-style="formal"] .bk-inv-head { display: block; text-align: center; border-bottom: 3px double var(--inv-accent); padding-bottom: 16px; margin-bottom: 24px; }
.bk-inv[data-style="formal"] .bk-inv-biz { font-size: 1.5rem; letter-spacing: .01em; }
.bk-inv[data-style="formal"] .bk-inv-logo { margin: 0 auto 8px; }
.bk-inv[data-style="formal"] .bk-inv-id { text-align: center; margin-top: 14px; }
.bk-inv[data-style="formal"] .bk-inv-title { font-size: 1.1rem; letter-spacing: .3em; text-transform: uppercase; }
.bk-inv[data-style="formal"] .bk-inv-meta > div { justify-content: center; }
.bk-inv[data-style="formal"] .bk-tbl thead th { border-bottom: 1px solid #111827; font-variant: small-caps; letter-spacing: .04em; }
.bk-inv[data-style="formal"] .bk-tbl td { border-bottom: 1px dotted var(--line); }
.bk-inv[data-style="formal"] .bk-inv-foot { border-top: 1px solid var(--line); padding-top: 12px; text-align: center; }
.bk-wp-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.bk-wp-index { list-style: none; margin: 0; padding: 0; }
.bk-wp-index a { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--text); }
.bk-wp-index a:hover { background: #f1f5f9; text-decoration: none; }
.bk-wp-index a.on { background: var(--info-soft); }
.bk-wp-index .l { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--navy); color: #fff; }
.wp-st { font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.wp-st.reviewed { background: var(--success); color: #fff; }
.wp-st.prepared { background: var(--success-soft); color: var(--success); }
.wp-st.ready { background: var(--info-soft); color: var(--info); }
.wp-st.check { background: var(--warning-soft); color: var(--warning); }
.wp-st.empty { background: var(--line); color: var(--muted); }
.wp-check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.wp-check .i { font-weight: 800; }
.wp-check .i.ok { color: var(--success); }
.wp-check .i.bad { color: var(--danger); }
.wp-check .i.info { color: var(--info); }
.wp-check small { display: block; color: var(--muted); }
.tick { display: inline-block; font-size: .68rem; font-weight: 800; color: #b91c1c; border: 1px solid #f2b8b8; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.bk-public { max-width: 640px; }
.bk-q-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.bk-q-item .top { display: flex; justify-content: space-between; gap: 10px; }
.bk-q-item .amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.bk-quick label { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: .86rem; cursor: pointer; background: #f8fafc; }
.bk-quick input { margin: 0; }
.bk-quick label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.bk-setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bk-ind-list { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; max-height: 300px; overflow: auto; }
.bk-ind-list li { padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.bk-ind-list li:hover, .bk-ind-list li.on { background: var(--teal-soft); }
.bk-ind-list small { display: block; color: var(--muted); }
.bk-chart-prev { max-height: 420px; overflow: auto; font-size: .86rem; }
.bk-chart-prev div { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.bk-chart-prev span { color: var(--muted); font-size: .78rem; }
@media (max-width: 900px) {
    .bk-hero, .bk-review, .bk-setup-grid, .bk-wp-grid { grid-template-columns: 1fr; }
    .bk-saved { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bk-acct-row { grid-template-columns: 1fr 1fr; }
    .bk-split-row { grid-template-columns: 1fr 1fr; }
    .bk-inv { padding: 20px; }
}
@media print {
    .sidebar, .topbar, .bk-nav, .tabs, .page-head .btn-row, .no-print, .bk-answered, .alert { display: none !important; }
    .main { margin: 0 !important; }
    .card, .bk-inv { box-shadow: none; border: 0; }
    body { background: #fff; }
}
.bk-payrow { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.bk-payrow span { flex: 1; }
@media print { .grid-main { display: block; } }

/* ---------- 1.19 QuickBooks-style menu bar ---------- */
.tm-bar { display: flex; align-items: center; gap: 6px; background: var(--navy); padding: 0 10px; min-height: 40px; position: sticky; top: 0; z-index: 300; flex-wrap: wrap; }
.tm-brand { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; padding: 0 10px 0 2px; height: 40px; }
.tm-brand:hover { text-decoration: none; color: #fff; }
.tm-brand img { border-radius: 5px; }
.tm-menus { display: flex; flex-wrap: wrap; flex: 1 1 auto; }
.tm-menu { position: relative; }
.tm-top { background: transparent; border: 0; color: #e2e8f0; padding: 0 11px; height: 40px; font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.tm-menu:hover > .tm-top, .tm-menu:focus-within > .tm-top { background: var(--navy-3); color: #fff; }
.tm-drop { display: none; position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--line-2); border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px rgba(15, 39, 66, .2); padding: 5px 0; z-index: 310; }
.tm-menu:hover > .tm-drop, .tm-menu:focus-within > .tm-drop { display: block; }
.tm-drop-right { left: auto; right: 0; max-height: 70vh; overflow: auto; }
.tm-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 6px 14px; color: var(--text); font: inherit; font-size: 13.5px; text-decoration: none; white-space: nowrap; background: none; border: 0; text-align: left; cursor: pointer; }
.tm-item:hover, .tm-item:focus { background: var(--teal-soft); color: var(--navy); text-decoration: none; outline: none; }
.tm-item.on { font-weight: 700; }
.tm-item.muted { cursor: default; }
.tm-form { margin: 0; }
.tm-sep { border-top: 1px solid var(--line); margin: 4px 0; }
.tm-new { font-size: 10px; font-weight: 700; background: var(--teal-soft); color: var(--teal); border-radius: 3px; padding: 1px 5px; }
.tm-client .tm-top { border: 1px solid #36557d; border-radius: 6px; height: 30px; color: #fff; }
.tm-client .tm-top .muted { color: #a9bad0; }
.tm-company { color: #cbd5e1; font-size: 13px; padding: 0 8px; }
@media (min-width: 861px) {
    body.topmenu .sidebar { display: none; }
    body.topmenu .menu-toggle { display: none; }
    body.topmenu .topbar { height: 48px; }
}
/* 1.21.2 the one menu: Company switcher, locked modules, phones */
.tm-client .tm-top { border-color: #5eead4; height: 32px; }
.tm-co-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #99f6e4; margin-right: 4px; }
.tm-company { display: flex; align-items: center; color: #fff; text-decoration: none; border: 1px solid #5eead4; border-radius: 6px; height: 32px; padding: 0 10px; }
.tm-company:hover { text-decoration: none; color: #fff; background: var(--navy-3); }
.tm-head { display: block; padding: 8px 14px 3px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tm-locked { color: var(--muted); }
.tm-locked .tm-sub { font-size: 10.5px; font-weight: 700; color: #fff; background: var(--teal); border-radius: 3px; padding: 1px 6px; }
.tm-toggle { display: none; background: transparent; border: 1px solid #36557d; color: #fff; border-radius: 6px; height: 30px; padding: 0 10px; font: inherit; font-size: 13px; cursor: pointer; }
@media (max-width: 860px) {
    .tm-bar { padding: 6px 10px; }
    .tm-toggle { display: inline-block; }
    .tm-menus { display: none; order: 9; flex: 1 1 100%; flex-direction: column; padding-bottom: 6px; }
    .tm-bar.tm-open .tm-menus { display: flex; }
    .tm-menus .tm-top { width: 100%; text-align: left; height: 38px; border-top: 1px solid #23406a; }
    .tm-menus .tm-drop { position: static; box-shadow: none; border-radius: 6px; min-width: 0; margin: 0 0 6px; }
    .tm-client { margin-left: auto; }
    .tm-client .tm-top .tm-co-lbl { display: none; }
    .tm-drop-right { position: absolute; right: 0; }
    body.topmenu .menu-toggle { display: none; }
}

/* ---------- 1.19 date boxes ---------- */
input.datebox { font-variant-numeric: tabular-nums; }
input.datebox.is-invalid { border-color: var(--danger) !important; background: var(--danger-soft); }

/* ---------- 1.19 Home: tiles, news, to do ---------- */
.home-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.home-left { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.home-right { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.home-right h2, .home-news h2 { font-size: 1rem; color: var(--navy); }
.mb-s { margin-bottom: 8px !important; }
.home-tiles { padding: 10px 16px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.flow:last-child { border-bottom: 0; }
.flow-name { width: 104px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.flow-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.flow-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 104px; padding: 8px 4px; border-radius: 8px; color: var(--text); font-size: .8rem; font-weight: 600; text-align: center; line-height: 1.2; }
.flow-tile:hover { background: #eef4fb; text-decoration: none; color: var(--navy); }
.flow-ico { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.flow-arrow { color: #9aa4b2; font-size: 1.1rem; margin-top: -18px; }
.tone-teal { background: #e6f4f2; color: #0f5f58; } .tone-blue { background: #e8f0fb; color: #1e4e8c; } .tone-amber { background: #fdf0e3; color: #9a4a0b; }
.tone-purple { background: #efeafd; color: #4c1d95; } .tone-gray { background: #eef1f5; color: #374151; } .tone-green { background: var(--success-soft); color: var(--success); } .tone-red { background: var(--danger-soft); color: var(--danger); }
.hm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .9rem; }
.hm-row:last-child { border-bottom: 0; }
.hm-row:hover { text-decoration: none; color: var(--navy); }
.hm-row small { display: block; font-size: .74rem; }
.hm-n { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.home-news { padding: 0; overflow: hidden; }
.news-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.news-count { background: var(--teal); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.news-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.nchip { border: 1px solid var(--line-2); background: #fff; color: #374151; border-radius: 999px; padding: 4px 12px; font-size: .8rem; cursor: pointer; }
.nchip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.news-x { border: 0; background: transparent; font-size: 1.3rem; color: var(--muted); cursor: pointer; min-width: 34px; min-height: 34px; }
.news-item { display: flex; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.news-item.more:not(.show) { display: none; }
.news-item[hidden] { display: none !important; }
.news-date { width: 54px; flex: 0 0 54px; text-align: center; }
.news-date small { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .05em; }
.news-date b { display: block; font-size: 1.35rem; color: var(--navy); line-height: 1.1; }
.news-body { flex: 1; min-width: 0; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .74rem; color: #4b5563; font-weight: 600; margin-bottom: 2px; }
.news-tag { font-size: .68rem; font-weight: 700; border-radius: 3px; padding: 0 6px; }
.tag-tax { background: #e8f0fb; color: #1e4e8c; } .tag-payroll { background: #efeafd; color: #4c1d95; } .tag-filing { background: #fdf0e3; color: #9a4a0b; }
.news-new { font-size: .64rem; font-weight: 700; color: #fff; background: #b45309; border-radius: 3px; padding: 0 5px; }
.news-title { font-weight: 700; font-size: .92rem; }
.news-sum { font-size: .82rem; color: #4b5563; margin-top: 2px; }
.news-more { align-self: center; white-space: nowrap; font-weight: 600; font-size: .82rem; }
.news-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 9px 16px; font-size: .78rem; color: var(--muted); background: #f7f9fb; }
.news-empty { padding: 12px 16px; margin: 0; }
.news-off { margin: 0; }
.link-btn { border: 0; background: transparent; color: var(--teal); font-weight: 600; cursor: pointer; padding: 0; font: inherit; }
.link-btn:hover { text-decoration: underline; }

/* ---------- 1.19 entry grid (QuickBooks batch layout) ---------- */
.qb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; background: #fff; border: 1px solid #d9dee6; border-radius: 8px 8px 0 0; padding: 10px 14px; }
.qb-lbl { display: flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .04em; color: #4b5563; font-weight: 600; }
.qb-lbl select { min-width: 210px; }
.qb-type { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 600; }
.qb-type:disabled { opacity: 1; }
.qb-fixed { font-size: .9rem; color: var(--text); letter-spacing: 0; }
.qb-tabs { display: flex; gap: 0; }
.qb-tab { border: 0; background: transparent; padding: 7px 12px; font: inherit; font-size: .86rem; cursor: pointer; border-bottom: 3px solid transparent; color: #374151; }
.qb-tab.on { border-bottom-color: var(--teal); color: var(--navy); font-weight: 700; }
.spacer { flex: 1; }
.qb-wrap { background: #fff; border: 1px solid #d9dee6; border-top: 0; overflow-x: auto; }
.qb-table { width: 100%; min-width: 1340px; border-collapse: collapse; font-size: .84rem; }
.qb-table th { text-align: left; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: #4b5563; background: #f7f9fb; border-bottom: 1px solid #c9d1dc; border-right: 1px solid #e2e6ec; padding: 7px 8px; font-weight: 600; white-space: nowrap; }
.qb-table th.num { text-align: right; }
.qb-table td { border-right: 1px solid #e2e6ec; border-bottom: 1px solid #edf0f4; padding: 5px 7px; vertical-align: top; }
.qb-table tbody tr:nth-child(even) td { background-image: linear-gradient(rgba(30, 78, 140, .04), rgba(30, 78, 140, .04)); }
.qb-row.is-susp td { background: #fff8e6 !important; }
.qb-row.st-saved td { color: var(--muted); }
.qb-row.has-err td { background: var(--danger-soft) !important; }
.qb-row[hidden] { display: none; }
.c-status { width: 120px; } .c-date { width: 90px; } .c-num { width: 66px; } .c-payee { width: 200px; } .c-acct { width: 300px; } .c-tax { width: 150px; } .c-amt { width: 96px; } .c-taxamt { width: 92px; } .c-memo { width: 170px; }
.qb-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.p-auto { background: #e6f4f2; color: #0f5f58; } .p-sugg { background: #e8f0fb; color: #1e4e8c; } .p-susp { background: #fff1cc; color: #7a3a0a; } .p-changed { background: #efeafd; color: #4c1d95; } .p-saved { background: #eef1f5; color: #4b5563; }
.qb-why { font-size: .72rem; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.qb-err { display: block; font-size: .74rem; color: var(--danger); font-weight: 600; margin-top: 3px; }
.qb-in { width: 100%; box-sizing: border-box; border: 1px solid transparent; border-radius: 4px; padding: 4px 6px; font: inherit; font-size: .84rem; background: transparent; }
.qb-in:hover, .qb-in:focus { border-color: #c9d1dc; background: #fff; }
.qb-payee { font-weight: 600; }
.qb-raw { font-family: var(--mono); font-size: .68rem; color: var(--muted); padding: 1px 6px 0; }
.qb-acct, .qb-tax { width: 100%; font-size: .82rem; padding: 4px 6px; }
.qb-row.is-susp .qb-acct { border-color: #c2410c; background: #fffaf0; font-weight: 600; color: #7a3a0a; }
.qb-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 5px; font-size: .72rem; color: #92400e; }
.qb-chip { border: 1px solid #92400e; background: #fff; color: #92400e; border-radius: 999px; padding: 1px 8px; font-size: .72rem; cursor: pointer; }
.qb-chip:hover { background: #fff6e0; }
.qb-split-line { font-size: .72rem; color: #1e4e8c; margin-top: 4px; line-height: 1.35; }
.qb-saved { font-size: .82rem; }
.qb-split { background: #f7f9fb; border: 1px solid #d9dee6; border-radius: 6px; padding: 10px 12px; }
.qb-split-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.qb-split-table th { background: transparent; border: 0; padding: 4px; }
.qb-split-table td { border: 0; padding: 3px 4px; background: none !important; }
.qb-split-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qb-foot { background: #fff; border: 1px solid #d9dee6; border-top: 0; border-radius: 0 0 8px 8px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.qb-totals { display: grid; grid-template-columns: auto auto; gap: 2px 18px; font-size: .84rem; font-variant-numeric: tabular-nums; }
.qb-totals span { color: #4b5563; font-size: .74rem; letter-spacing: .04em; }
.qb-totals strong { text-align: right; }
.qb-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
.qb-actions .muted { margin-right: auto; }
.qb-batch td { padding: 2px 3px; }
.qb-batch .c-n { width: 34px; text-align: center; font-size: .74rem; }
.qb-cell { width: 100%; box-sizing: border-box; border: 1px solid transparent; padding: 5px 6px; font: inherit; font-size: .84rem; background: transparent; border-radius: 3px; }
.qb-cell:focus { border-color: var(--teal); background: #fff; outline: none; box-shadow: 0 0 0 2px rgba(13, 148, 136, .15); }
.qb-cell.is-invalid { border-color: var(--danger); background: var(--danger-soft); }
.qb-cell.num { text-align: right; }
.qb-batch tr.has-err td { background: var(--danger-soft) !important; }
.qb-errrow td { border-right: 0; padding: 0 6px 4px; background: var(--danger-soft) !important; }
.pad { padding: 12px 14px; }
.qb-batch .c-date, .qb-batch .c-due { width: 112px; }
.qb-batch .c-tax { width: 70px; }
input.qb-cell { border: 1px solid transparent !important; background: transparent !important; box-shadow: none !important; padding: 5px 6px !important; min-height: 0 !important; border-radius: 3px !important; }
input.qb-cell:focus { border-color: var(--teal) !important; background: #fff !important; box-shadow: 0 0 0 2px rgba(13, 148, 136, .15) !important; }
input.qb-cell.is-invalid { border-color: var(--danger) !important; background: var(--danger-soft) !important; }

/* ---------- 1.19 opening balances & reconcile ---------- */
.stack-l > * + * { margin-top: 16px; }
.op-bank { border-top: 1px solid var(--line); padding: 10px 0; }
.op-bank-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.op-amt { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.op-paste { width: 100%; box-sizing: border-box; font-family: var(--mono); font-size: .8rem; }
.report-paper h3 { margin-top: 18px; }
.rec-head { flex-wrap: wrap; gap: 12px; }
.rec-cols { display: flex; flex-wrap: wrap; gap: 16px; }
.rec-list { flex: 1 1 460px; min-width: 0; }
.rec-list tr.on td { background: var(--teal-soft); }
.c-tick { width: 30px; }
.rec-sum { margin-top: 16px; }
.rec-grid { display: grid; grid-template-columns: auto auto; gap: 4px 24px; max-width: 420px; margin-left: auto; font-variant-numeric: tabular-nums; }
.rec-grid strong { text-align: right; }
.rec-diff-l { font-weight: 700; }
.rec-diff { font-size: 1.1rem; }
.right { text-align: right; }

/* ---------- 1.19 report window ---------- */
.rep-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.rep-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; flex: 1; }
.rep-lbl { display: flex; flex-direction: column; gap: 3px; font-size: .72rem; color: #4b5563; font-weight: 600; letter-spacing: .03em; }
.rep-check { align-self: center; margin: 0; }
.rep-amt { color: inherit; }
.rep-amt:hover { color: var(--info); text-decoration: underline; }
.rep-tbl th.num { white-space: nowrap; }
.rep-net td { border-top: 2px solid var(--text); border-bottom: 3px double var(--text); }
.rc-layout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.rc-cats { flex: 1 1 220px; max-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 0; }
.rc-cats a { display: block; padding: 8px 14px; color: var(--text); border-left: 3px solid transparent; font-size: .9rem; }
.rc-cats a:hover { background: #eef2f7; text-decoration: none; }
.rc-cats a.on { border-left-color: var(--teal); background: var(--teal-soft); font-weight: 700; }
.rc-main { flex: 999 1 560px; min-width: 0; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.rc-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.rc-card[hidden] { display: none; }
.rc-card h3 { margin: 0; font-size: .95rem; color: var(--navy); }
.rc-card p { margin: 0; font-size: .82rem; color: #4b5563; flex: 1; }
.rc-run { display: flex; gap: 6px; align-items: center; }
.rc-run select { flex: 1; font-size: .82rem; }
.find-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.find-form label { display: flex; flex-direction: column; gap: 3px; font-size: .74rem; color: #4b5563; }
.ar-row { cursor: pointer; }
.ar-row:hover td { background: #eef4fb; }
.ar-status { font-size: .72rem; font-weight: 700; border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.st-locked { background: #e5e7eb; color: #374151; } .st-rec { background: #e6f4f2; color: #0f5f58; } .st-open { background: #e8f0fb; color: #1e4e8c; }
.caution { border-top: 5px solid #b45309; }
.lock-note { background: #f1f3f6; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.modal-back { position: fixed; inset: 0; background: rgba(15, 39, 66, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 400; }
.modal { background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); padding: 18px 20px; width: 540px; max-width: 100%; }
.modal h2 { color: #7a3a0a; margin-bottom: 8px; }
.btn-warn { background: #b45309; border-color: #b45309; color: #fff; }
.btn-warn:hover { background: #92400e; }

/* ---------- 1.19 documents & e-signature ---------- */
.doc-layout2 { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
/* 1.22.35 the wording on the left and the document beside it, as before 1.22.31: the preview's wrapper had no
   width of its own, so a wide statement pushed it under the editor. On a screen too narrow for both they stack. */
.doc-side { flex: 1 1 520px; min-width: 0; }
@media (min-width: 1100px) {
    .doc-layout2 { display: grid; grid-template-columns: minmax(340px, 4fr) minmax(0, 7fr); }
    .doc-layout2 > .doc-edit { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow-y: auto; }
}
.doc-period { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.doc-edit { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.doc-edit > .card { margin: 0; }
.doc-preview { flex: 1 1 520px; min-width: 0; }
.doc-text { min-height: 360px; line-height: 1.45; }
.doc-paper { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 36px 40px; font-family: Georgia, "Times New Roman", serif; color: #1f2937; overflow: hidden; }
.doc-paper.has-mark::before { content: attr(data-mark); position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font: 700 88px/1 Helvetica, Arial, sans-serif; color: rgba(185, 28, 28, .08); letter-spacing: .1em; pointer-events: none; white-space: nowrap; }

/* 1.21.81 Financial statements: the three-line heading, the exhibit tag, the footer, and the rules
   that make a column of figures read as a statement rather than as a list. */
.doc-stmt { margin: 0 0 18px; text-align: center; }
.doc-stmt .ds-ex { float: right; font-size: .85rem; font-weight: 400; }
.doc-stmt .ds-who, .doc-stmt .ds-what { font-weight: 700; font-size: 1rem; line-height: 1.5; }
.doc-stmt .ds-when { font-weight: 700; font-size: .95rem; line-height: 1.5; }
.doc-preview.busy { opacity: .55; transition: opacity .15s; }
.doc-signoff { margin: 26px 0 0; }
.doc-signoff img { max-height: 54px; display: block; margin: 0 0 4px; }
.doc-signoff .dso-name { font-weight: 700; }
.doc-signoff .dso-role, .doc-signoff .dso-at { font-size: .9rem; }
.doc-sig2 { display: flex; gap: 48px; }
.doc-sig2 .doc-sig { flex: 1; }
.doc-foot { margin: 22px 0 0; text-align: center; font-size: .82rem; color: #4b5563; }
.doc-foot.it { font-style: italic; }
.doc-table tr.ind td:first-child { padding-left: 22px; }
.doc-table tr.rule td:not(:first-child) { border-top: 1px solid #111; }
.doc-table tr.dbl td:not(:first-child) { border-bottom: 3px double #111; }
.doc-table tr.sec td { font-weight: 700; padding-top: 8px; }
.doc-paper h1 { font-size: 1.35rem; text-align: center; margin: 14px 0 8px; font-family: Helvetica, Arial, sans-serif; color: var(--navy); }
.doc-paper h2 { font-size: 1rem; margin: 14px 0 6px; font-family: Helvetica, Arial, sans-serif; }
.doc-paper p { margin: 0 0 10px; line-height: 1.55; font-size: .93rem; }
.doc-paper h3 { font-size: .93rem; margin: 10px 0 4px; font-family: Helvetica, Arial, sans-serif; } /* 1.22.34 a sub-heading inside a note */
.qbc-job { padding-left: 26px !important; } /* 1.22.34 a job, set in under its customer */
.doc-paper .doc-note { font-style: italic; color: #6b7280; font-size: .8rem; text-align: center; }
/* 1.21.80 the firm's letterhead: logo and name left, contact right, a rule under both */
.doc-paper .doc-letterhead.dl-centre { flex-direction: column; align-items: center; text-align: center; }
.doc-letterhead.dl-centre .dl-at { align-items: center; }
.doc-letterhead.dl-two_office { justify-content: space-between; align-items: flex-start; }
.doc-letterhead.dl-two_office .dl-mark { text-align: center; flex: 1; }
.doc-letterhead .dl-mark em { display: block; font-size: .85rem; font-style: normal; }
.doc-letterhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid #374151; }
.doc-paper .doc-letterhead .dl-mark { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.doc-paper .doc-letterhead .dl-mark img { max-height: 52px; max-width: 180px; }
.doc-paper .doc-letterhead .dl-at { text-align: right; font-size: .76rem; color: #4b5563; line-height: 1.5; }
.doc-paper .doc-letterhead .dl-at span { display: block; }
@media (max-width: 520px) { .doc-paper .doc-letterhead { flex-direction: column; } .doc-paper .doc-letterhead .dl-at { text-align: left; } }
.doc-paper .doc-sig { margin: 30px 0 12px; }
.doc-paper .doc-sig span { display: block; width: 60%; border-bottom: 1px solid #374151; height: 26px; }
.doc-paper .doc-sig small { color: #4b5563; }
.doc-paper .doc-page { border: 0; border-top: 2px dashed #d1d5db; margin: 26px -40px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font: .85rem/1.4 Helvetica, Arial, sans-serif; }
.doc-table th { text-align: left; border-bottom: 1px solid #374151; padding: 4px 6px; }
.doc-table td { padding: 3px 6px; }
.doc-table .num { text-align: right; white-space: nowrap; }
.doc-table tr.tot td { font-weight: 700; border-top: 1px solid #374151; }
.doc-table tr.sec td { font-weight: 700; padding-top: 8px; }
.sign-wrap { max-width: 860px; margin: 0 auto; }
.sig-pad { width: 100%; max-width: 520px; height: 160px; border: 1px dashed #9aa4b2; border-radius: 6px; background: #fff; touch-action: none; display: block; }
.sign-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-top: 16px; }
.sign-box .form-actions { margin-top: 12px; }
.signers-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.signers-list span { font-size: .8rem; border-radius: 999px; padding: 2px 10px; background: #eef1f5; }
.signers-list span.done { background: var(--success-soft); color: var(--success); }
/* 1.19 quotation flow */
.flow-step { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #eef1f5; color: #374151; font-size: .82rem; font-weight: 600; }
.flow-step b { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #fff; align-items: center; justify-content: center; font-size: .72rem; }
.flow-step.done { background: var(--success-soft); color: var(--success); }
.flow-step.now { background: var(--navy); color: #fff; }
.flow-step.now b { color: var(--navy); }
.flow-steps .flow-arrow { margin-top: 0; padding: 0 4px; }
.flow-steps + * { margin-top: 14px; }
/* 1.19 QuickBooks / Sage import */
.cv-choice { display: block; padding: 6px 0; }
.cv-howto { background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 8px 0 12px; }
.cv-howto ul { margin: 6px 0 0; padding-left: 18px; }
.table-scroll { overflow-x: auto; }
.cv-map td { vertical-align: top; }
.cv-map select { max-width: 260px; }
.cv-new { display: grid; grid-template-columns: 70px minmax(140px, 1fr) 130px 64px; gap: 4px; min-width: 430px; }
.cv-new input, .cv-new select { width: 100%; min-width: 0; margin: 0; padding: 4px 6px; font-size: .85rem; }
.cv-map tr.cv-mapped .cv-new { visibility: hidden; }
/* 1.21.98 two source accounts going into one, and an import that can no longer be taken out */
.cv-dupe { border: 1px solid #f0c36d; background: #fdf6e7; border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; font-size: .9rem; }
.cv-dupe ul { margin: 6px 0 0; padding-left: 18px; }
.cv-dupe li { margin: 2px 0; }
.cv-locked { border-left: 3px solid #9b2226; background: #fdf0f0; border-radius: 6px; padding: 8px 12px; }
.cv-map td { padding-top: 6px; padding-bottom: 6px; }
.cv-errors { color: var(--danger); margin: 0 0 12px; padding-left: 18px; }
.cv-diff td { font-size: .82rem; color: var(--danger); padding-left: 28px; }
.cv-ok { padding: 1px 8px; border-radius: 6px; }
.cv-discard { margin-top: 12px; }
/* 1.20 Super Admin features panel; locked modules on a paid company */
.feat-co { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.feat-co h3 { font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.feat-tbl td { padding: 6px 8px; }
.tabs a.tab-locked { color: #9aa4b2; }
.tabs a.tab-locked:hover { color: var(--navy); }
/* 1.20 e-signature on uploaded PDFs */
@font-face { font-family: 'Great Vibes'; src: url('../fonts/great-vibes.woff2') format('woff2'); font-display: swap; }
.sg-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.sg-c0, .sg-b0 { --sg: #2563eb; } .sg-c1, .sg-b1 { --sg: #db2777; } .sg-c2, .sg-b2 { --sg: #059669; } .sg-c3, .sg-b3 { --sg: #d97706; } .sg-c4, .sg-b4 { --sg: #7c3aed; } .sg-c5, .sg-b5 { --sg: #0891b2; }
.sg-dot { background: var(--sg, #2563eb); }
.pp-wrap { display: flex; gap: 16px; align-items: flex-start; }
.pp-side { position: sticky; top: 12px; flex: 0 0 250px; padding: 14px; }
.pp-side h3 { font-size: .9rem; margin: 0 0 6px; }
.pp-signer { display: flex; align-items: center; gap: 2px; padding: 5px 0; font-size: .88rem; cursor: pointer; }
.pp-signer input { margin-right: 6px; }
.pp-tool { display: block; width: 100%; text-align: left; margin: 0 0 6px; padding: 8px 10px; border: 1px dashed #9aa4b2; border-radius: 6px; background: #fff; cursor: grab; font-size: .88rem; }
.pp-tool:hover { border-color: var(--navy); background: #f3f6fb; }
.pp-pages { flex: 1 1 auto; min-width: 0; max-width: 900px; }
.pp-num, .sp-num { font-size: .75rem; color: var(--muted); margin: 10px 0 4px; }
.pp-page, .sp-page { position: relative; width: 100%; background: #fff; box-shadow: 0 1px 4px rgba(15, 39, 66, .18); user-select: none; }
.pp-page canvas, .sp-page > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pf { position: absolute; border: 2px solid var(--sg); background: color-mix(in srgb, var(--sg) 14%, transparent); border-radius: 3px; cursor: move; touch-action: none; box-sizing: border-box; }
.pf-l { position: absolute; left: 4px; top: 2px; right: 18px; font-size: 10px; line-height: 1.2; color: var(--sg); font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.pf-x { position: absolute; right: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--sg); color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }
.pf-r { position: absolute; right: -5px; bottom: -5px; width: 11px; height: 11px; background: var(--sg); border-radius: 2px; cursor: nwse-resize; }
.pp-warn { color: var(--danger) !important; font-weight: 600; }
.sign-wrap.sign-wide { max-width: 980px; }
.sp-doc { position: relative; margin: 12px 0; }
.sp-doc.has-mark .sp-page::after { content: attr(data-mark); }
.sf { position: absolute; border: 1.5px dashed var(--sg, #94a3b8); border-radius: 3px; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; box-sizing: border-box; }
.sf.mine { --sg: #d97706; border: 2px solid #d97706; background: rgba(253, 230, 138, .45); cursor: pointer; }
.sf.mine.filled, .sf.done { background: transparent; border-color: rgba(15, 39, 66, .15); border-style: solid; }
.sf img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sf-hint { font-size: 11px; font-weight: 700; color: var(--sg, #64748b); padding: 0 4px; white-space: nowrap; }
.sf-txt { font-size: 13px; color: #0f2742; padding: 0 3px; white-space: nowrap; }
.sf-script { font-family: 'Great Vibes', cursive; font-size: 20px; }
.sf-pulse { animation: sfpulse 1s ease-in-out 3; }
@keyframes sfpulse { 50% { box-shadow: 0 0 0 6px rgba(217, 119, 6, .35); } }
.sig-tabs { display: flex; gap: 6px; margin: 4px 0 8px; }
.sig-tab { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 4px 14px; font-size: .85rem; cursor: pointer; }
.sig-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.sig-pad.sig-typed { height: 140px; }
.sig-pad.sig-ini { width: 200px; height: 90px; display: inline-block; }
.sp-guide { margin-top: 8px; }
@media (max-width: 900px) { .pp-wrap { flex-direction: column; } .pp-side { position: static; flex: none; width: 100%; } }
.auth-wrap:has(.sign-wrap) { max-width: 1020px; } /* 1.20: the signing page uses the full width */
.sf.sf-date { pointer-events: none; } /* dates fill by themselves — never in the way of a signature box */
.sf:not(.mine) { pointer-events: none; } /* other signers' boxes never block yours */
/* 1.20.2 free unlimited access banner */
.free-banner { background: linear-gradient(90deg, #e8f7ee, #eef6ff); border-color: #9bd3b0; color: #12422a; }
.free-banner .free-ico { flex: 0 0 auto; font-size: 1.4rem; line-height: 1; }
.free-banner > span:not(.free-ico) { flex: 1 1 420px; }
/* 1.21 early access keys */
.ea-code { font-size: 1.35rem; letter-spacing: 2px; font-weight: 700; background: var(--bg-soft, #f1f5f9); border-radius: 8px; padding: 10px 14px; display: inline-block; margin: 4px 0 8px; user-select: all; }
.ea-card { border-left: 4px solid #22a06b; }
.ea-actions { display: flex; flex-wrap: nowrap; gap: 4px; align-items: center; justify-content: flex-end; padding-right: 8px; }
.ea-actions form { display: inline; margin: 0; }
.ea-actions .btn { white-space: nowrap; }
/* 1.21 QuickBooks / Sage guide + mapping rules */
.cv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.cv-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border, #d8dee6); text-decoration: none; color: inherit; font-weight: 600; font-size: .92rem; }
.cv-tabs a.on { background: var(--brand, #0f766e); border-color: var(--brand, #0f766e); color: #fff; }
.cv-num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--brand, #0f766e); color: #fff; align-items: center; justify-content: center; font-size: .95rem; margin-right: 6px; }
.cv-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.cv-mode { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 2px solid var(--border, #d8dee6); border-radius: 10px; text-decoration: none; color: inherit; }
.cv-mode.on { border-color: var(--brand, #0f766e); background: rgba(15, 118, 110, .06); }
.cv-mode em { font-size: .85rem; color: var(--muted, #64748b); font-style: normal; }
.cv-reports td { vertical-align: top; }
.cv-check ul { list-style: none; padding: 0; margin: 6px 0; }
.cv-check li { padding: 3px 0; }
.cv-check li.miss { color: #b42318; }
.cv-rule { font-size: .72rem; vertical-align: middle; }
@media print { .cv-tabs, .cv-email, .bk-nav, .page-head .btn { display: none !important; } }
.locked-card { max-width: 640px; margin: 30px auto; text-align: center; padding: 30px 26px; }
.locked-card .locked-ico { font-size: 44px; }
.locked-card .form-actions { justify-content: center; }
.bk-attn { margin: 0 0 10px; }
.bk-attn a { font-weight: 600; }
/* 1.21.2 set up a new company */
.su-steps { padding: 6px 22px; }
.su-step { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.su-step:last-child { border-bottom: 0; }
.su-num { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.su-step.done .su-num { background: var(--teal); }
.su-body h3 { margin: 4px 0 2px; font-size: 1.02rem; }
.su-body p { margin: 0 0 8px; }
.add-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.add-features .choice { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line-2); border-radius: 10px; padding: 12px; cursor: pointer; }
.add-features .choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.add-features small { display: block; color: var(--muted); }
/* 1.21.2 company passwords, minimum wage */
.tm-lock { font-size: .85em; margin-left: 4px; }
.co-unlock { max-width: 460px; margin: 40px auto; }
.min-wage strong { margin-right: 4px; }
.report-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.report-link { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--border, #e3e6ea); border-radius: 8px; color: inherit; text-decoration: none; }
.report-link:hover { border-color: var(--primary, #2563eb); }

/* 1.21.3 QuickBooks-style submenus */
.tm-subwrap { position: relative; }
.tm-subbtn .tm-arrow { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 11px; }
.tm-subdrop { display: none; position: absolute; left: 100%; top: -6px; min-width: 250px; max-height: 78vh; overflow-y: auto; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 12px 28px rgba(15, 39, 66, .2); padding: 5px 0; z-index: 320; }
.tm-subwrap:hover > .tm-subdrop, .tm-subwrap:focus-within > .tm-subdrop { display: block; }
.tm-subwrap:hover > .tm-subbtn, .tm-subwrap:focus-within > .tm-subbtn { background: var(--teal-soft); color: var(--navy); }
.tm-menus > .tm-menu:nth-last-child(-n+5) .tm-subdrop { left: auto; right: 100%; }
@media (max-width: 900px) {
    .tm-subdrop { position: static; display: block; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: 14px; min-width: 0; max-height: none; padding: 0; }
    .tm-subbtn .tm-arrow { display: none; }
    .tm-subbtn { font-weight: 600; }
}
/* 1.21.3 books pages */
.bk-inv-logo { display: block; max-height: 70px; max-width: 220px; margin-bottom: 6px; }

/* ---- the Templates page: the editor on the left, the form itself on the right (1.21.78) ----
   The preview is the real template partial with a made-up invoice in it, so what is being judged is the
   document, not a picture of one. Sticky, because the list of what-to-show is longer than the form. */
.bk-tpl-grid { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.bk-tpl-prev { position: sticky; top: 14px; }
.bk-tpl-prev .bk-inv { max-width: none; margin: 0; font-size: .9rem; }
.bk-tpl-prev-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.bk-tpl-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bk-tpl-styles label { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; background: #fff; }
.bk-tpl-styles label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.bk-tpl-styles input { margin: 0 6px 0 0; }
.bk-tpl-styles strong { font-size: .9rem; }
.bk-tpl-styles small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.bk-tpl-swatch { display: flex; flex-wrap: wrap; gap: 7px; }
.bk-tpl-swatch label { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.bk-tpl-swatch label:has(input:checked) { border-color: #fff; box-shadow: 0 0 0 2px var(--navy); }
.bk-tpl-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
@media (max-width: 1100px) { .bk-tpl-grid { grid-template-columns: 1fr; } .bk-tpl-prev { position: static; } }
.bk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bk-tile { display: block; border-radius: 10px; padding: 12px 14px; background: var(--teal-soft); color: var(--navy); text-decoration: none; border: 2px solid transparent; }
.bk-tile:hover { text-decoration: none; border-color: var(--teal); }
.bk-tile.on { border-color: var(--navy); }
.bk-tile b { display: block; font-size: 1.25rem; }
.bk-tile span { font-size: 12.5px; }
.bk-tile.warn { background: #fef3c7; }
.bk-tile.bad { background: #fee2e2; }
.bk-tile.good { background: #dcfce7; }
.bk-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bk-cal th { font-size: 12px; color: var(--muted); padding: 4px; text-align: left; }
.bk-cal td { border: 1px solid var(--line); vertical-align: top; height: 96px; padding: 4px; font-size: 11.5px; }
.bk-cal td.out { background: #f8fafc; color: #cbd5e1; }
.bk-cal td.today { background: #f0fdfa; }
.bk-cal .d { font-weight: 700; font-size: 12px; }
.bk-cal a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 3px; padding: 0 3px; margin-top: 2px; text-decoration: none; color: var(--text); }
.bk-cal .k-sale { background: #e0f2fe; } .bk-cal .k-due { background: #fee2e2; } .bk-cal .k-bill { background: #fef3c7; } .bk-cal .k-in { background: #dcfce7; }
.bk-cal .k-out { background: #ede9fe; } .bk-cal .k-todo { background: #fce7f3; } .bk-cal .k-done { background: #f1f5f9; text-decoration: line-through; } .bk-cal .k-order { background: #e2e8f0; }
.bk-ts input { width: 4.2em; text-align: right; }
.bk-ts select { max-width: 13em; }
.bk-grid-in { width: 6.2em; text-align: right; }
.bk-check-ok { color: #15803d; font-weight: 700; }
.bk-check-bad { color: #b91c1c; font-weight: 700; }
.bk-slip { max-width: 760px; }
@media print { .tm-bar, .no-print { display: none !important; } }

/* 1.21.3 Batch enter: sensible column widths, no empty band before Amount; the grid uses the whole screen width */
.content:has(.qb-grid-form) { max-width: none; }
.qb-batch { table-layout: fixed; min-width: 1060px; }
.qb-batch th.c-n { width: 34px; }
.qb-batch th.c-date, .qb-batch th.c-due { width: 112px; }
.qb-batch th.c-number { width: 96px; }
.qb-batch th.c-name { width: 20%; }
.qb-batch th.c-account { width: 24%; }
.qb-batch th.c-tax { width: 64px; }
.qb-batch th.c-amount { width: 112px; }
.qb-batch th.c-taxamt { width: 96px; }
.qb-batch th.c-memo { width: auto; }
.qb-batch td .qb-cell { width: 100%; box-sizing: border-box; }

/* 1.21.4 signing page: step numbers, the date boxes can be clicked, a bar that follows you down the document */
.sf.sf-date.mine { pointer-events: auto; }
.sign-step { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; margin-right: 6px; vertical-align: 2px; }
.sign-adopt { margin-bottom: 14px; }
.sign-bar { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(15, 39, 66, .12); padding: 10px 14px; margin-top: 14px; font-size: .9rem; font-weight: 600; }
.sf.mine:focus { outline: 3px solid #f59e0b; outline-offset: 1px; }

/* 1.21.5 saved signature */
.mysig-preview { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px; }
.mysig-preview img { max-height: 70px; max-width: 70%; mix-blend-mode: multiply; }
.mysig-preview .mysig-ini { max-height: 50px; max-width: 25%; }
.pf.pf-self { background: rgba(255, 255, 255, .7); }
.pf.pf-self img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.pp-tool.pp-mine { border-color: var(--teal); }
.esign-lock { border: 1px dashed var(--line-2); border-radius: 8px; padding: 12px 14px; background: #fafbfc; }

/* 1.21.5 calendar button beside every date box */
.datebox-wrap { display: inline-flex; align-items: stretch; position: relative; max-width: 100%; vertical-align: middle; }
.field .datebox-wrap, .form-grid .datebox-wrap, label.field .datebox-wrap { display: flex; width: 100%; }
.datebox-wrap > input.datebox, .datebox-wrap > input.qb-date { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.datebox-cal { flex: 0 0 auto; border: 1px solid var(--line-2, #d0d7e2); border-left: 0; background: #f7f9fb; border-radius: 0 6px 6px 0; padding: 0 8px; cursor: pointer; font-size: 14px; line-height: 1; }
.datebox-cal:hover { background: #eef3f8; }
.datebox-cal:disabled { opacity: .5; cursor: default; }
.datebox-picker { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
.qb-table .datebox-wrap { display: flex; width: 100%; }
.qb-table .datebox-cal { border-radius: 0 4px 4px 0; padding: 0 5px; font-size: 12px; background: transparent; border-color: transparent; }
.qb-table tr:hover .datebox-cal, .qb-table .datebox-wrap:focus-within .datebox-cal { border-color: #c9d1dc; background: #fff; }
@media print { .datebox-cal { display: none; } }
.gifi-name{font-family:inherit;font-size:.85em;margin-left:.35em}
.rep-gifi .rep-sub td:first-child{padding-left:1.6em;color:var(--muted,#666)}.rep-gifi .rep-gifi-line td{font-weight:600}.rep-nogifi td:first-child{color:#b45309}

/* 1.21.5 backups and office computers */
.plain-list { list-style: none; padding: 0; margin: 0 0 .75rem; }
.plain-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.text-danger { color: var(--danger, #b42318); }
.mt-s { margin-top: .5rem; }
h2.h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
.backup-banner form { margin: 0; }

/* 1.21.6 QuickBooks-style windows: lists scroll inside their panes, the totals and buttons stay fixed */
[data-fill].is-filled { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
[data-fill].is-filled > * { flex: 0 0 auto; }
.qb-grid-form.is-filled > .qb-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
.qb-grid-form.is-filled .qb-table thead th { position: sticky; top: 0; z-index: 2; }
.qb-grid-form.is-filled > .qb-actions { margin-top: 8px; }
.rec-form.is-filled > .rec-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rec-form.is-filled .rec-list { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.rec-form.is-filled .rec-list > .table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
.rec-form.is-filled .rec-list thead th { position: sticky; top: 0; z-index: 2; background: #f7f9fb; }
.rec-form.is-filled > .rec-sum { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px 16px; }
.rec-form.is-filled .rec-sum .rec-grid { margin-left: 0; max-width: none; grid-template-columns: repeat(3, auto auto); gap: 4px 18px; }
.rec-form.is-filled .rec-sum .form-actions { margin: 0; padding: 0; border: 0; }
.kbd-hint { margin-left: auto; align-self: center; }
.kbd-hint kbd { font: 600 11px/1 var(--mono, ui-monospace, monospace); padding: 2px 5px; border: 1px solid #c9d1dc; border-bottom-width: 2px; border-radius: 4px; background: #fff; color: #334155; }
.kbd-bar { margin: 8px 0; }

/* 1.21.8 sortable report columns */
th.sort-th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
th.sort-th a:hover { color: var(--teal, #0f766e); text-decoration: underline; }
th.sort-th.sorted a { color: var(--teal, #0f766e); }
th.num.sort-th a { justify-content: flex-end; }
.sort-arrow { font-size: .8em; }
@media print { .sort-arrow { display: none; } th.sort-th a { text-decoration: none; color: inherit; } }
.rep-email { margin-bottom: 14px; }
.rep-email > summary { cursor: pointer; list-style: none; }
.rep-email > summary::-webkit-details-marker { display: none; }
.rep-email:not([open]) { padding-top: 12px; padding-bottom: 12px; }

/* 1.21.9 report email: preview window */
.rep-layout { max-width: 560px; }
dialog.rep-preview { width: min(1100px, 96vw); height: 92vh; padding: 0; border: 0; border-radius: 12px; box-shadow: 0 20px 60px rgba(15, 23, 42, .35); overflow: hidden; }
dialog.rep-preview[open] { display: flex; flex-direction: column; }
dialog.rep-preview::backdrop { background: rgba(15, 23, 42, .55); }
.rep-pv-head, .rep-pv-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface-2, #f1f5f9); flex-wrap: wrap; }
.rep-pv-head strong { margin-right: auto; }
.rep-pv-opts { display: inline-flex; gap: 10px; font-size: 13px; }
.rep-pv-opts select { margin-left: 4px; }
.rep-pv-foot { justify-content: space-between; border-top: 1px solid var(--border, #e2e8f0); }
.rep-pv-frame { flex: 1; width: 100%; border: 0; background: #525659; }
@media print { dialog.rep-preview { display: none !important; } }

/* 1.21.9 open windows */
.ow-bar { display: flex; align-items: stretch; gap: 6px; background: #e8edf3; border-bottom: 1px solid var(--line-2, #d5dde7); padding: 4px 8px 0; min-height: 32px; position: relative; z-index: 290; }
.ow-bar.is-min { padding-bottom: 4px; }
.ow-form { margin: 0; display: inline-flex; }
.ow-toggle, .ow-closeall { border: 0; background: transparent; color: #334155; font-size: 12px; cursor: pointer; padding: 0 8px; border-radius: 6px; white-space: nowrap; }
.ow-toggle:hover, .ow-closeall:hover { background: #d7dfe9; }
.ow-tabs { display: flex; gap: 3px; overflow-x: auto; flex: 1; scrollbar-width: thin; }
.ow-tab { display: flex; align-items: center; background: #f5f7fa; border: 1px solid #d5dde7; border-bottom: 0; border-radius: 7px 7px 0 0; max-width: 230px; flex: 0 0 auto; }
.ow-tab a { padding: 5px 6px 5px 11px; font-size: 12.5px; color: #334155; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ow-tab.on { background: #fff; border-color: #b9c6d6; box-shadow: 0 -2px 0 var(--teal, #0f766e) inset; }
.ow-tab.on a { color: #0f172a; font-weight: 600; }
.ow-x { border: 0; background: transparent; color: #64748b; cursor: pointer; font-size: 11px; width: 22px; height: 22px; border-radius: 5px; margin-right: 3px; }
.ow-x:hover { background: #fee2e2; color: #b91c1c; }
.ow-all { margin-left: auto; }
.tm-win { display: flex; align-items: center; }
.tm-win .tm-item { flex: 1; }
.tm-win.on .tm-item { font-weight: 600; background: var(--teal-soft, #e6f4f1); }
.tm-win-x { border: 0; background: transparent; color: #64748b; cursor: pointer; width: 26px; height: 26px; border-radius: 5px; margin-right: 6px; }
.tm-win-x:hover { background: #fee2e2; color: #b91c1c; }
@media (max-width: 900px) { .ow-bar { display: none; } }

/* 1.21.10 Windows like QuickBooks Desktop: the desk and its window panes */
body.ws-shell { height: 100vh; overflow: hidden; }
body.ws-shell .main { height: 100vh; overflow: hidden; }
body.ws-shell .sidebar { display: none; }
.ws-content { padding: 0 !important; flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
/* 1.21.94 On the desk every line a banner takes is a line off the window below it: the stripes between
   the menu bar and the work area were costing the better part of three. They say the same thing in one. */
.ws-content > .alert { margin: 4px 10px 0; padding: 5px 10px; font-size: .82rem; line-height: 1.3; border-radius: 5px; }
.ws-shell .banner { padding: 5px 12px; font-size: .82rem; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.ws-shell .banner > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-shell .banner .btn-sm { padding: 1px 8px; font-size: .78rem; }
.alert[data-autohide] { transition: opacity .4s ease, margin .4s ease, padding .4s ease, max-height .4s ease; overflow: hidden; max-height: 8rem; }
.alert[data-autohide].going { opacity: 0; max-height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
/* 1.22.41 its own stacking layer: every window opened or brought forward takes the next number up, and without this
   those numbers were compared with the menu bar's (300) — after a few hundred the windows covered the open menus */
.ws-desk { flex: 1; min-height: 0; position: relative; z-index: 0; isolation: isolate; overflow: hidden; background: #dfe5ec; background-image: radial-gradient(circle at 1px 1px, rgba(15, 39, 66, .07) 1px, transparent 0); background-size: 18px 18px; }
.ws-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #475569; text-align: center; }
.ws-empty[hidden] { display: none; }
.ws-win { position: absolute; display: flex; flex-direction: column; background: #fff; border: 1px solid #9aabc0; border-radius: 8px 8px 4px 4px; box-shadow: 0 8px 26px rgba(15, 39, 66, .22); overflow: hidden; min-width: 360px; min-height: 220px; }
.ws-win[hidden] { display: none; }
.ws-win.is-max { border-radius: 0; box-shadow: none; border-width: 0; }
.ws-win.is-front { border-color: #0f766e; box-shadow: 0 12px 34px rgba(15, 39, 66, .32); }
.ws-titlebar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px 0 12px; background: linear-gradient(#e9eef4, #dbe3ec); border-bottom: 1px solid #b8c5d4; cursor: move; user-select: none; }
.ws-win.is-front .ws-titlebar { background: linear-gradient(#16365c, #0f2742); color: #fff; border-bottom-color: #0f2742; }
.ws-win.is-max .ws-titlebar { cursor: default; }
.ws-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.ws-ctrls { display: inline-flex; gap: 2px; }
.ws-btn { width: 30px; height: 24px; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; font-size: 13px; line-height: 1; }
.ws-btn:hover { background: rgba(148, 163, 184, .35); }
.ws-btn.ws-x:hover { background: #dc2626; color: #fff; }
.ws-frame { flex: 1; width: 100%; border: 0; background: #f4f6f9; }
.ws-grip { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, #94a3b8 50%, #94a3b8 58%, transparent 58%, transparent 68%, #94a3b8 68%, #94a3b8 76%, transparent 76%); }
.ws-win.is-max .ws-grip { display: none; }
.ws-desk.ws-dragging .ws-frame { pointer-events: none; }
.ws-desk.ws-dragging { cursor: move; }
.ws-dock { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 8px; background: #cfd8e3; border-top: 1px solid #b8c5d4; }
.ws-dock[hidden] { display: none; }
.ws-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 230px; padding: 4px 6px 4px 10px; border: 1px solid #9aabc0; border-radius: 6px; background: #f8fafc; font-size: 12.5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-chip:hover { background: #fff; border-color: #0f766e; }
.ws-chip-x { color: #64748b; padding: 0 4px; border-radius: 4px; }
.ws-chip-x:hover { background: #fee2e2; color: #b91c1c; }
.ws-toast { position: fixed; right: 18px; bottom: 18px; z-index: 2000; max-width: 420px; transition: opacity .35s; }
.ws-toast .alert { box-shadow: 0 8px 24px rgba(15, 39, 66, .25); margin: 0 0 8px; }
.ws-toast.out { opacity: 0; }
/* a page inside a window: no side menu, menu bar or top bar — just the page */
body.ws-pane { background: #f4f6f9; }
body.ws-pane .main { min-height: 100vh; }
body.ws-pane .content { padding: 16px 18px; }
[data-ws-winmenu] button.tm-item { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; }
body.ws-pane .page-head .crumbs, body.ws-pane .page-head .ch-sub { display: none; } /* the window's title bar says where you are */
body.ws-pane .page-head { margin-bottom: 12px; }
.ws-frame.ws-solo { position: absolute; inset: 0; height: 100%; }
/* 1.21.11 Company switcher: ⏻ sign out of a company at once */
.tm-co-row { display: flex; align-items: center; }
.tm-co-row .tm-item { flex: 1; min-width: 0; }
.tm-co-row.on { background: var(--teal-soft, #e6f4f1); }
.tm-power { border: 0; background: transparent; color: #64748b; font-size: 15px; width: 30px; height: 28px; margin-right: 6px; border-radius: 6px; cursor: pointer; line-height: 1; }
.tm-power:hover { background: #fee2e2; color: #b91c1c; }
/* 1.21.11 news ticker on the Home page */
.news-ticker { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #0f2742, #16365c); color: #fff; border-radius: 10px; padding: 8px 10px 8px 12px; margin-bottom: 14px; overflow: hidden; }
.nt-badge { flex: 0 0 auto; background: #f59e0b; color: #1f1300; font-weight: 800; font-size: 11.5px; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; animation: nt-pulse 1.6s ease-in-out infinite; }
@keyframes nt-pulse { 50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, .25); } }
.nt-items { flex: 1; min-width: 0; position: relative; height: 24px; }
.nt-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; pointer-events: none; white-space: nowrap; }
.nt-item.on { opacity: 1; transform: none; pointer-events: auto; }
.nt-date { color: #a9bad0; font-size: 12.5px; flex: 0 0 auto; }
.nt-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nt-more { color: #5eead4; font-weight: 700; flex: 0 0 auto; text-decoration: none; }
.nt-more:hover { text-decoration: underline; color: #99f6e4; }
.nt-item .news-new { flex: 0 0 auto; }
.nt-nav { flex: 0 0 auto; display: inline-flex; gap: 2px; }
.nt-btn { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 26px; height: 24px; border-radius: 5px; cursor: pointer; }
.nt-btn:hover { background: rgba(255, 255, 255, .25); }
@media (max-width: 700px) { .nt-date { display: none; } }
.live-search { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line, #e2e8f0); }
.live-search input { flex: 1; max-width: 520px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
/* 1.21.11 Centres, as QuickBooks: details and transactions on the left, the list on the right */
.qb-centre { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.qbc-main, .qbc-list { margin: 0; }
.qbc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.qbc-head h2 { margin: 0 0 2px; }
.qbc-head p { margin: 2px 0; }
.qbc-title { margin: 14px 0 6px; font-size: 15px; }
.qbc-list { padding: 0; overflow: hidden; }
.qbc-list-head { padding: 12px 14px 0; }
.qbc-list .live-search { padding: 8px 10px; }
.qbc-list .live-search input { max-width: none; }
.qbc-scroll { max-height: calc(100vh - 290px); overflow: auto; }
.qbc-names td { padding: 7px 12px; border-bottom: 1px solid var(--line, #eef2f6); vertical-align: top; }
.qbc-names tr.on td { background: var(--teal-soft, #e6f4f1); box-shadow: inset 3px 0 0 var(--teal, #0f766e); }
.qbc-names tr:hover td { background: #f8fafc; }
.qbc-names a { text-decoration: none; color: inherit; display: block; }
.kpis-sm .kpi b { font-size: 18px; }
th.js-sort { cursor: pointer; user-select: none; white-space: nowrap; }
th.js-sort:hover { color: var(--teal, #0f766e); }
th.js-sort:not(.sorted)::after { content: ' ⇅'; color: #b6c2d0; font-size: 11px; }
.view-switch { display: inline-flex; margin-left: auto; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
.view-switch a { padding: 6px 12px; text-decoration: none; color: #334155; font-size: 13px; }
.view-switch a.on { background: var(--navy, #0f2742); color: #fff; }
@media (max-width: 1000px) { .qb-centre { grid-template-columns: 1fr; } .qbc-list { order: -1; } .qbc-scroll { max-height: 340px; } }
.qbc-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qbc-list .card-head { display: flex; justify-content: space-between; align-items: center; }
.qbc-names thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; font-size: 12px; }
/* 1.21.11 bold section titles in the menus */
.tm-drop .tm-sec { padding: 9px 14px 3px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: var(--navy, #0f2742); border-top: 1px solid var(--line-2, #e2e8f0); margin-top: 4px; }
.tm-drop .tm-sec:first-child { border-top: 0; margin-top: 0; }
.qbc-names td:first-child { padding-left: 14px; }
.qbc-names tr.on td { box-shadow: none; }
.qbc-names tr.on td:first-child { box-shadow: inset 3px 0 0 var(--teal, #0f766e); }
/* 1.21.11 ticking many lines by dragging */
body.ticking, body.ticking * { user-select: none !important; cursor: ns-resize !important; }
tbody[data-drag-tick] td.c-tick, tbody[data-drag-tick] td.c-pick { cursor: ns-resize; width: 34px; text-align: center; }
tbody[data-drag-tick] tr.on td { background: #e6f4f1; }
tbody[data-row-toggle] tr { cursor: pointer; }
.tick-tip { font-size: 12px; color: #64748b; }
.reclass-bar { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 14px; background: #0f2742; color: #fff; border-radius: 10px; box-shadow: 0 -6px 24px rgba(15, 39, 66, .25); }
.reclass-bar[hidden] { display: none; }
.reclass-bar .muted { color: #a9bad0; }
.reclass-bar select { max-width: 280px; }
.reclass-bar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.reclass-move { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.g-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 8px; background: #0f2742; color: #fff; border-radius: 8px; }
.g-bulk[hidden] { display: none; }
.g-bulk select { max-width: 260px; }
.g-bulk .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.g-bulk .tick-tip { color: #a9bad0; }
.qb-table td.c-pick, .qb-table th.c-pick { width: 32px; text-align: center; }
.check-list li { padding: 5px 0; border-bottom: 1px solid var(--line, #eef2f6); }
.check-list li.ok { color: #166534; }
.check-list li.bad { color: #991b1b; font-weight: 600; }
.check-list li.note { color: #92400e; }

/* 1.21.12 "＋ Add new" account / name box over the entry grids */
dialog.qa-box { max-height: 94vh; overflow-y: auto; width: min(480px, 94vw); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgba(15, 23, 42, .35); color: var(--text); background: #fff; }
dialog.qa-box::backdrop { background: rgba(15, 23, 42, .35); }
.qa-form { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; }
.qa-form h2 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.qa-form label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: #374151; }
.qa-form input, .qa-form select { font: inherit; font-size: .9rem; font-weight: 400; padding: 7px 9px; border: 1px solid #c9d1dc; border-radius: 6px; }
.qa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa-why { margin: 0; font-size: .86rem; background: #fff8e6; border: 1px solid #f3d38a; color: #7a4a05; border-radius: 6px; padding: 7px 10px; }
.qa-similar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; color: #374151; }
.qa-gifi-name { margin: -4px 0 0; min-height: 1em; }
.qa-err { margin: 0; color: var(--danger); font-size: .84rem; font-weight: 600; }
.qa-actions { display: flex; gap: 8px; }
@media (max-width: 520px) { .qa-row { grid-template-columns: 1fr; } }
/* 1.21.16 New account: subaccount of, bank details, opening balance */
.qa-form label.qa-sub-tick { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.qa-form label.qa-sub-tick input { padding: 0; }
.qa-money { border: 1px solid #dbe3ee; border-radius: 8px; padding: 8px 12px 10px; margin: 0; display: flex; flex-direction: column; gap: 8px; background: #f8fafc; }
.qa-money legend { font-size: .8rem; font-weight: 700; color: var(--navy); padding: 0 4px; }
.qa-money p { margin: 0; }
.coa-sub td.coa-name { padding-left: calc(10px + var(--d, 1) * 22px); }
.coa-d1 { --d: 1; } .coa-d2 { --d: 2; } .coa-d3 { --d: 3; } .coa-d4 { --d: 4; }
.coa-sub td.coa-name summary::before { content: '↳ '; color: #94a3b8; }
.rep-tbl tr.rep-d1 td:first-child { padding-left: 28px; } .rep-tbl tr.rep-d2 td:first-child { padding-left: 46px; } .rep-tbl tr.rep-d3 td:first-child { padding-left: 64px; } .rep-tbl tr.rep-d4 td:first-child { padding-left: 82px; }
.rep-tbl tr.rep-head td { font-weight: 600; }
.rep-tbl tr.rep-subtot td { font-weight: 600; border-top: 1px solid #cbd5e1; }
.coa-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.coa-add label { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; font-weight: 600; }
.coa-add .coa-money { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }

/* 1.21.13 Write cheques: Pay to the order of — one name list with each name's kind */
.pay-to { position: relative; }
.pay-to-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #c9d1dc; border-radius: 6px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); max-height: 320px; overflow-y: auto; }
.pay-to-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; cursor: pointer; font-size: .9rem; }
.pay-to-list li.on, .pay-to-list li:hover { background: #eef6f5; }
.pay-to-list li.pay-new { color: var(--teal); font-weight: 600; border-top: 1px solid #edf0f4; }
.pay-kind { font-style: normal; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #eef2f7; color: #374151; align-self: center; }
.pay-kind.k-vendor { background: #e6f4f1; color: #0d6e64; }
.pay-kind.k-customer { background: #e8f0fb; color: #1e4e8c; }
.pay-kind.k-employee { background: #fff3dc; color: #92400e; }
.pay-to-kind { margin: 4px 0 0; min-height: 1em; }
.pay-kind.k-other-name { background: #f1ecfb; color: #5b3d99; }

/* 1.21.13 Payroll reports › PD7A: each remitting period in the approved PD7A Summary layout */
.pd7a-card { max-width: 760px; }
.pd7a-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.pd7a-head h2 { margin: 0; font-size: 1.6rem; }
.pd7a-head p { margin: 2px 0; }
.pd7a-info { display: grid; grid-template-columns: minmax(180px, 290px) 1fr; gap: 6px 16px; margin: 14px 0; font-size: .92rem; }
.pd7a-info dt { color: #374151; }
.pd7a-info dd { margin: 0; font-weight: 700; }
.pd7a-tbl th { background: #eef2f6; }
.pd7a-tbl .pd7a-total td { border-top: 2px solid #1f2937; }
@media (max-width: 560px) { .pd7a-info { grid-template-columns: 1fr; } .pd7a-info dd { margin-bottom: 6px; } }
[data-report-body].is-loading { opacity: .55; transition: opacity .15s; }

/* 1.21.14 Ask BooksAuto and the application tour */
.ask-answer ol { padding-left: 20px; margin: 6px 0; }
.ask-links { margin: 8px 0 0; display: grid; gap: 4px; }
/* 1.21.16 Ask BooksAuto — the chat */
.ac { position: fixed; right: 18px; bottom: 18px; z-index: 8500; width: 410px; height: min(660px, calc(100vh - 100px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 39, 66, .32), 0 0 0 1px rgba(15, 39, 66, .06); opacity: 0; transform: translateY(18px) scale(.97); transform-origin: bottom right; transition: opacity .18s ease, transform .22s cubic-bezier(.2, .9, .3, 1.2); }
.ac.on { opacity: 1; transform: none; }
.ac[hidden] { display: none; }
.ac-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 55%, var(--teal) 100%); }
.ac-av, .ac-mav { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(135deg, #14b8a6, #0f766e); flex: none; }
.ac-av { width: 38px; height: 38px; font-size: 18px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.ac-who { flex: 1; min-width: 0; }
.ac-who h2 { margin: 0; font-size: 16px; color: #fff; }
.ac-status { font-size: 12px; opacity: .9; display: inline-flex; align-items: center; gap: 6px; }
.ac-status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: acPing 2s infinite; }
.ac-status.off i { background: #fbbf24; animation: none; }
.ac-hbtn { background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.ac-hbtn:hover, .ac-hbtn:focus-visible { background: rgba(255, 255, 255, .26); }
.ac-log { flex: 1; overflow-y: auto; padding: 14px 12px 6px; background: linear-gradient(#f7f9fc, #f3f6fa); scroll-behavior: smooth; }
.ac-msg { display: flex; gap: 8px; margin: 0 0 12px; animation: acIn .28s ease both; }
.ac-mav { width: 28px; height: 28px; font-size: 13px; margin-top: 2px; }
.ac-bub { background: #fff; border: 1px solid #e6ebf2; border-radius: 4px 16px 16px 16px; padding: 10px 12px; max-width: calc(100% - 36px); font-size: 14px; line-height: 1.5; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.ac-bub p { margin: 0 0 6px; }
.ac-me { justify-content: flex-end; }
.ac-me .ac-bub { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; border: 0; border-radius: 16px 4px 16px 16px; max-width: 82%; }
.ac-here { display: block; margin-top: 6px; color: #475569; font-size: 13px; }
.ac-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.ac-dots i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: acDot 1.1s infinite; }
.ac-dots i:nth-child(2) { animation-delay: .15s; } .ac-dots i:nth-child(3) { animation-delay: .3s; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ac-chip { border: 1px solid #cfe3e0; background: #f0faf8; color: #0f5e57; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; line-height: 1.3; text-decoration: none; transition: transform .12s, background .12s, box-shadow .12s; animation: acIn .3s ease both; }
.ac-chip:hover, .ac-chip:focus-visible { background: #dff4f0; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(13, 148, 136, .18); }
.ac-chip.ac-topic { background: #fff; border-color: #dbe3ee; color: var(--navy); font-weight: 600; }
.ac-chip.ac-opt { background: #eef4ff; border-color: #c9d8f5; color: #1e4e8c; }
.ac-chip.ac-ghost { background: transparent; border-style: dashed; color: #64748b; }
.ac-answer .ac-bub { width: calc(100% - 36px); }
.ac-a { font-weight: 500; min-height: 1.2em; }
.ac-hide { display: none; }
.ac-in .ac-steps li, .ac-in .ac-link, .ac-in .ac-chip, .ac-in .ac-note { animation: acIn .3s ease both; }
.ac-steps-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 4px; font-size: 13px; }
.ac-prog { font-size: 12px; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 1px 8px; transition: background .2s; }
.ac-prog.all { background: #dcfce7; color: #166534; font-weight: 600; }
.ac-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; counter-reset: acs; }
.ac-step { display: flex; gap: 9px; align-items: flex-start; width: 100%; text-align: left; font: inherit; font-size: 13.5px; background: #f8fafc; border: 1px solid #e8edf3; border-radius: 10px; padding: 7px 9px; cursor: pointer; color: inherit; transition: background .15s, border-color .15s; }
.ac-step:hover { border-color: #b7d9d4; background: #f3fbf9; }
.ac-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; display: grid; place-items: center; color: transparent; font-size: 12px; font-weight: 800; margin-top: 1px; transition: all .18s; }
.ac-step.on { background: #f0fdf4; border-color: #bbf7d0; }
.ac-step.on .ac-tick { background: #22c55e; border-color: #22c55e; color: #fff; transform: scale(1.08); }
.ac-step.on span:last-child { text-decoration: line-through; color: #64748b; }
.ac-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff8e6; border: 1px solid #fde7a8; font-size: 13px; color: #78510a; }
.ac-links { display: grid; gap: 6px; margin-top: 9px; }
.ac-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 1px solid #e3e9f1; border-radius: 12px; padding: 7px 8px 7px 10px; background: #fff; }
.ac-link-t { flex: 1 1 150px; min-width: 0; display: grid; }
.ac-link-t strong { font-size: 13.5px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-link-t span { font-size: 11.5px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-mini { border: 1px solid #dbe3ee; background: #fff; border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 12px; cursor: pointer; color: #334155; white-space: nowrap; text-decoration: none; }
.ac-mini:hover { background: #f1f5f9; }
.ac-mini.on { background: #fff7e0; border-color: #f5c451; }
.ac-go { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.ac-go:hover { background: var(--teal-2); color: #fff; }
.ac-choice { margin-top: 9px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.ac-choice p { margin: 0; font-size: 13px; font-weight: 600; }
.ac-more { margin-top: 10px; }
.ac-more > span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; font-weight: 700; }
.ac-tools { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.ac-src { flex: 1; font-size: 11.5px; color: #94a3b8; }
.ac-thumb { border: 0; background: none; cursor: pointer; font-size: 15px; opacity: .45; padding: 2px 4px; border-radius: 6px; transition: opacity .15s, transform .15s; }
.ac-thumb:hover { opacity: .85; } .ac-thumb.on { opacity: 1; transform: scale(1.2); }
.ac-jump { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 12px 0; background: #fff; border-top: 1px solid #eef2f6; }
.ac-jump > span { font-size: 12px; color: #64748b; }
.ac-jump .ac-chip { margin: 0; padding: 4px 10px; }
.ac-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 6px; background: #fff; }
.ac-compose textarea { flex: 1; resize: none; border: 1px solid #d5dde8; border-radius: 14px; padding: 9px 12px; font: inherit; font-size: 14px; line-height: 1.4; max-height: 120px; outline: none; transition: border-color .15s, box-shadow .15s; }
.ac-compose textarea:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); }
.ac-send { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 16px; background: linear-gradient(135deg, var(--teal), var(--navy-3)); transition: transform .12s, opacity .12s; flex: none; }
.ac-send:hover { transform: scale(1.06); } .ac-send:disabled { opacity: .5; cursor: default; transform: none; }
.ac-foot { margin: 0; padding: 0 14px 10px; font-size: 11px; color: #94a3b8; background: #fff; }
.tm-ask { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .28); background: linear-gradient(135deg, var(--navy-3), var(--teal)); color: #fff;
    font: inherit; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tm-ask:hover, .tm-ask:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13, 148, 136, .45); }

.ac-launch { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 8400; align-items: center; gap: 8px; border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 600; font-size: 14px;
    padding: 11px 16px 11px 13px; border-radius: 999px; background: linear-gradient(135deg, var(--navy-3), var(--teal)); box-shadow: 0 10px 26px rgba(15, 39, 66, .35); transition: transform .18s, opacity .18s; }
.ac-launch:hover { transform: translateY(-2px); }
.ac-launch-ico { font-size: 18px; }
.ac-launch.ac-gone { opacity: 0; transform: scale(.6); pointer-events: none; }
.tm-menu.tm-peek > .tm-drop, .tm-subwrap.tm-peek > .tm-subdrop { display: block; }
.tm-bar.tm-bar-up { z-index: 8700; }
.tm-item.tm-pulse { position: relative; background: #fff4d6 !important; color: #7a4d00 !important; box-shadow: inset 3px 0 0 #f59e0b; animation: tmPulse 1.2s ease-in-out infinite; }
@keyframes acIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes acDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes acPing { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); } 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@keyframes tmPulse { 0%, 100% { background: #fff4d6; } 50% { background: #ffe39a; } }
@media (max-width: 700px) {
    .ac { inset: 0; width: auto; height: auto; border-radius: 0; }
    .ac-launch { display: inline-flex; bottom: 74px; right: 12px; padding: 12px; }
    .tm-ask { display: none; }
    .ac-launch-txt { display: none; }
}
@media print { .ac, .ac-launch, .tour-ov, .tour-hl, .tour-card { display: none !important; } }
/* 1.21.16 The tour */
.tour-ov { position: fixed; inset: 0; z-index: 9000; background: transparent; }
.tour-ov.dim { background: rgba(15, 23, 42, .55); backdrop-filter: blur(1.5px); }
.tour-ov.pass { pointer-events: none; }
.tour-hl { position: fixed; z-index: 9001; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55), 0 0 0 3px #f59e0b, 0 0 22px 6px rgba(245, 158, 11, .55); transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; animation: tourGlow 1.8s ease-in-out infinite; }
.tour-card { position: fixed; z-index: 9002; text-align: left; width: 390px; max-width: calc(100vw - 24px); background: #fff; color: #0f172a; border-radius: 16px; padding: 14px 16px 14px; box-shadow: 0 22px 50px rgba(15, 23, 42, .35); transition: left .3s ease, top .3s ease; }
.tour-card.tour-center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); width: 470px; }
.tour-card::before { content: ''; position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); display: none; }
.tour-card.arr-below::before { display: block; top: -7px; left: calc(var(--arr, 24px) - 7px); }
.tour-card.arr-above::before { display: block; bottom: -7px; left: calc(var(--arr, 24px) - 7px); }
.tour-card.arr-right::before { display: block; left: -7px; top: calc(var(--arr, 24px) - 7px); }
.tour-card.arr-left::before { display: block; right: -7px; top: calc(var(--arr, 24px) - 7px); }
.tour-card.tour-nudge { animation: tourShake .35s; }
.tour-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tour-fill { flex: 1; }
.tour-dots { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; min-width: 0; }
.tour-dot { width: 27px; height: 27px; border-radius: 50%; border: 2px solid #e2e8f0; background: #f8fafc; cursor: pointer; font-size: 14px; padding: 0; filter: grayscale(1); opacity: .6; transition: all .2s; }
.tour-dot.done { border-color: #22c55e; background: #f0fdf4; filter: none; opacity: 1; }
.tour-dot.cur { border-color: #f59e0b; background: #fff8e6; filter: none; opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.tour-pts { font-size: 13px; font-weight: 700; color: #92400e; background: #fff4d6; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.tour-pts.bump { animation: tourBump .5s; }
.tour-x { border: 0; background: #f1f5f9; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: #475569; flex: none; }
.tour-bar { height: 5px; background: #eef2f6; border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.tour-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #0d9488); border-radius: 99px; transition: width .4s ease; }
.tour-card h3 { margin: 2px 0 6px; font-size: 17px; }
.tour-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.tour-in { animation: tourIn .32s ease both; }
.tour-wave { font-size: 26px; display: inline-block; animation: tourWave 1.6s ease-in-out 2; transform-origin: 70% 70%; }
.tour-lbl { font-weight: 700; font-size: 13px !important; margin: 12px 0 6px !important; color: #334155; }
.tour-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tour-role input, .tour-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tour-role span { display: grid; gap: 4px; justify-items: center; text-align: center; font-size: 12.5px; font-weight: 600; padding: 10px 6px; border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all .15s; height: 100%; }
.tour-role span b { font-size: 24px; }
.tour-role input:checked + span { border-color: var(--teal-2); background: #f0faf8; box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); transform: translateY(-2px); }
.tour-role input:focus-visible + span, .tour-pick input:focus-visible + span { outline: 2px solid var(--teal-2); outline-offset: 2px; }
.tour-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-pick span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 2px solid #e2e8f0; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; color: #64748b; }
.tour-pick input:checked + span { border-color: #f59e0b; background: #fff8e6; color: #7a4d00; }
.tour-btns { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tour-try { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #eef4ff; color: #1e4e8c; font-size: 13px; font-weight: 600; }
.tour-try.ok { background: #dcfce7; color: #166534; }
.tour-hand { font-size: 18px; animation: tourHand 1s ease-in-out infinite; display: inline-block; }
.tour-link { margin-left: auto; border: 0; background: none; color: #64748b; text-decoration: underline; cursor: pointer; font: inherit; font-size: 12px; font-weight: 400; }
.tour-yes { animation: tourBump .5s; display: inline-block; }
.tour-q { font-weight: 600; }
.tour-opts { display: grid; gap: 6px; }
.tour-opt { text-align: left; font: inherit; font-size: 14px; padding: 9px 12px; border: 2px solid #e2e8f0; background: #fff; border-radius: 12px; cursor: pointer; transition: all .15s; color: inherit; }
.tour-opt:hover:not(:disabled) { border-color: #94a3b8; transform: translateX(3px); }
.tour-opt.right { border-color: #22c55e; background: #f0fdf4; }
.tour-opt.pick { box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.tour-opt.wrong { border-color: #ef4444; background: #fef2f2; animation: tourShake .4s; }
.tour-opt:disabled { cursor: default; color: inherit; }
.tour-why { margin-top: 8px !important; padding: 8px 10px; background: #f8fafc; border-radius: 10px; font-size: 13px !important; }
.tour-score { display: grid; grid-auto-flow: column; gap: 8px; margin: 10px 0; }
.tour-score div { text-align: center; background: linear-gradient(135deg, #fff8e6, #f0faf8); border-radius: 12px; padding: 10px 6px; }
.tour-score b { display: block; font-size: 24px; color: var(--navy); animation: tourBump .6s; }
.tour-score span { font-size: 12px; color: #64748b; }
.tour-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-badges span { font-size: 12.5px; font-weight: 700; background: #fff4d6; color: #7a4d00; padding: 4px 10px; border-radius: 999px; animation: acIn .4s ease both; }
.tour-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tour-act { text-decoration: none !important; display: flex; gap: 8px; align-items: center; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--navy); transition: all .15s; }
.tour-act b { font-size: 20px; }
.tour-act:hover { border-color: var(--teal-2); background: #f0faf8; transform: translateY(-2px); }
.tour-toast { position: fixed; z-index: 9100; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; background: #0f2742; color: #fff; padding: 10px 16px; border-radius: 14px; box-shadow: 0 14px 34px rgba(15, 23, 42, .4); font-size: 13px; animation: tourDrop .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.tour-toast.out { opacity: 0; transform: translate(-50%, 12px); transition: all .35s; }
.tour-medal { font-size: 26px; animation: tourBump .7s .2s both; }
.tour-confetti { position: fixed; inset: 0; z-index: 9200; pointer-events: none; }
.tour-spark { position: fixed; z-index: 9300; width: 7px; height: 7px; border-radius: 2px; pointer-events: none; animation: tourSpark .75s ease-out forwards; }
.tour-offer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: linear-gradient(135deg, #fffbeb, #f0faf8); border: 1px solid #fcd34d; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; animation: acIn .4s ease both; }
@keyframes tourGlow { 0%, 100% { box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55), 0 0 0 3px #f59e0b, 0 0 16px 4px rgba(245, 158, 11, .45); } 50% { box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55), 0 0 0 4px #fbbf24, 0 0 28px 10px rgba(245, 158, 11, .65); } }
@keyframes tourIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes tourShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tour-card.tour-center.tour-nudge { animation: none; }
@keyframes tourBump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes tourWave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(18deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(14deg); } }
@keyframes tourHand { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes tourDrop { from { opacity: 0; transform: translate(-50%, 30px) scale(.9); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes tourSpark { to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }
@media (max-width: 600px) { .tour-roles { grid-template-columns: 1fr; } .tour-acts { grid-template-columns: 1fr; } .tour-card.tour-center { width: calc(100vw - 24px); } }
@media (prefers-reduced-motion: reduce) { .ac, .ac-msg, .ac-chip, .tour-hl, .tour-in, .tour-card, .tm-item.tm-pulse, .ac-status i { animation: none !important; transition: none !important; } }

/* 1.21.14 long menus: columns (sections kept whole), else a smooth scroll inside — never off the screen */
.tm-drop.tm-c2, .tm-drop.tm-c3 { column-gap: 0; column-rule: 1px solid var(--line-2, #e2e8f0); }
.tm-drop.tm-c2 { column-count: 2; min-width: 540px; }
.tm-drop.tm-c3 { column-count: 3; min-width: 800px; }
.tm-drop .tm-grp { break-inside: avoid; page-break-inside: avoid; }
.tm-drop.tm-c2 .tm-grp, .tm-drop.tm-c3 .tm-grp { border-bottom: 1px solid var(--line-2, #e2e8f0); padding-bottom: 4px; margin-bottom: 4px; }
.tm-drop.tm-c2 .tm-sec, .tm-drop.tm-c3 .tm-sec { border-top: 0; margin-top: 0; }
.tm-drop.tm-scroll { overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #94a3b8 transparent; }
.tm-drop.tm-scroll::-webkit-scrollbar { width: 8px; }
.tm-drop.tm-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.tm-drop.tm-scroll .tm-subdrop { position: static; display: block; box-shadow: none; border: 0; border-left: 2px solid var(--line-2, #e2e8f0); border-radius: 0; margin-left: 14px; max-height: none; }

/* 1.21.15 bank feeds */
.bf-frame { width: 100%; min-height: 640px; border: 1px solid var(--line-2, #e2e8f0); border-radius: 10px; }

/* 1.21.18 early access stripe: subscribe & pay */
.free-banner > .free-actions { flex: 0 0 auto; display: flex; gap: 6px; flex-wrap: wrap; }
.kind-stats .stat.active { outline: 2px solid var(--primary, #2563eb); outline-offset: -2px; }
.co-plans td { vertical-align: top; }
.co-plans select { max-width: 190px; }
.co-pay-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.co-pay-bar p { margin: 4px 0 0; }
.sr-only-btn { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
@media (max-width: 760px) {
  .co-plans thead { display: none; }
  .co-plans, .co-plans tbody, .co-plans tr, .co-plans td { display: block; width: 100%; }
  .co-plans tr { border-bottom: 1px solid var(--border, #e5e7eb); padding: 10px 0; }
  .co-plans td { border: 0; padding: 4px 16px; text-align: left; }
  .co-plans td[data-label]:not([data-label="Company"])::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #64748b); }
  .co-plans td.num { text-align: left; }
  .co-plans select { max-width: 100%; width: 100%; }
}
/* 1.21.18 batch grid: the selected line, insert / delete */
.qb-batch tr.qb-sel td { background: #eaf3ff; }
.qb-batch tr.qb-sel td.c-n { box-shadow: inset 3px 0 0 #2563eb; color: #1d4ed8; font-weight: 700; }
.qb-batch td.c-n { cursor: pointer; }
.qb-line-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.qb-line-tools button:disabled { opacity: .45; }
/* 1.21.18 the account filled in "as last time" for a memo / name */
.bk-remembered { background-color: #fff8e1 !important; box-shadow: inset 0 0 0 1px #f2c94c; }
/* 1.21.18 batch grid: accounts as you type (by code or name) */
.qb-sug { position: absolute; z-index: 60; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 10px 28px rgba(15, 23, 42, .18); padding: 4px 0; font-size: .9rem; }
.qb-sug-i { padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.qb-sug-i.on, .qb-sug-i:hover { background: #e8f0fe; }
.qb-sug-i.add { border-top: 1px solid #e2e8f0; color: #1d4ed8; font-weight: 600; }
.tm-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 14px; background: #f4f7fb; border-bottom: 1px solid #e2e8f0; font-size: .86rem; }
.tm-shortcuts .sc-lbl { font-weight: 700; color: #475569; margin-right: 4px; }
.tm-shortcuts .sc-item { display: inline-flex; align-items: center; background: #fff; border: 1px solid #d5dde8; border-radius: 999px; overflow: hidden; }
.tm-shortcuts .sc-item a { padding: 3px 4px 3px 11px; color: #0f3b66; text-decoration: none; font-weight: 600; }
.tm-shortcuts .sc-item a:hover { text-decoration: underline; }
.tm-shortcuts .sc-x { border: 0; background: transparent; color: #94a3b8; cursor: pointer; padding: 3px 8px; font-size: .78rem; }
.tm-shortcuts .sc-x:hover { color: #b91c1c; }
.tm-shortcuts .sc-off { margin-left: auto; }
@media (max-width: 760px) { .tm-shortcuts { display: none; } }
.qr-box { width: 230px; height: 230px; padding: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin: 8px 0; }
.qr-box svg { width: 100%; height: 100%; }
.approve-wait { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #eef6ff; color: #1e3a5f; font-weight: 600; margin: 10px 0; }
.approve-wait .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #93c5fd; border-top-color: #1d4ed8; animation: ba-spin .8s linear infinite; }
@keyframes ba-spin { to { transform: rotate(360deg); } }
.approve-box { background: #f1f5f9; border-radius: 10px; padding: 12px 14px; margin: 10px 0 16px; }

/* 1.21.18 Office computers: this computer as a computer of the office */
.office-steps { padding-left: 1.2rem; display: grid; gap: .9rem; }
.office-steps > li { line-height: 1.5; }

/* 1.21.18 checkout: each company's features and total, live */
.sum-co { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 4px; font-weight: 700; color: var(--ink, #0b1f36); border-bottom: 1px solid var(--line, #e3e9f1); }
.sum-row.sum-sub { padding-left: 12px; font-size: .86rem; }
.co-total { margin-left: auto; font-weight: 700; color: var(--teal, #0d9488); font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-total.flash { animation: coFlash .6s ease; }
@keyframes coFlash { 0% { background: rgba(13,148,136,.18); } 100% { background: transparent; } }
/* 1.21.19 the early-access stripe: one short line, "Close for now" */
.free-slim { padding: 6px 14px; gap: 10px; flex-wrap: nowrap; font-size: .9rem; }
.free-slim .free-ico { font-size: 1.05rem; }
.free-slim > .free-txt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.free-slim .btn-sm { padding: 3px 10px; font-size: .82rem; }
.free-close { margin: 0; flex: 0 0 auto; }
.free-close button { border: 0; background: none; color: #12422a; font: inherit; font-size: .82rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: .8; }
.free-close button:hover { background: rgba(18, 66, 42, .08); opacity: 1; }
@media (max-width: 760px) { .free-slim { flex-wrap: wrap; } .free-slim > .free-txt { white-space: normal; } .free-close button span { display: none; } }
/* 1.21.19 the power button */
.power-form { margin: 0; }
.power-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #f3c2c2; background: #fff5f5; color: #b42318; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.power-btn:hover { background: #b42318; color: #fff; transform: scale(1.06); }
.power-btn:focus-visible { outline: 3px solid #fda29b; outline-offset: 2px; }
.power-confirm { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(7, 22, 41, .55); }
.power-confirm[hidden] { display: none; }
.power-card { width: min(420px, calc(100vw - 32px)); background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(3, 14, 30, .55); text-align: center; }
.power-card h3 { margin: 6px 0 6px; }
.power-card p { color: #5b6b7f; margin: 0 0 16px; }
.power-card .pc-ico { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff5f5; color: #b42318; }
.power-card .pc-btns { display: flex; gap: 10px; justify-content: center; }
.power-card .btn-danger { background: #b42318; border-color: #b42318; color: #fff; } .power-card .btn-danger:hover { background: #912018; }
.ob-toggle { margin-left: 10px; border: 0; background: none; color: var(--primary, #0f766e); font: inherit; font-weight: 600; font-size: .92em; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.ob-toggle:hover { background: rgba(15, 118, 110, .08); }
tr.ob-part td { background: #f7fbfa; }
.je-lines .je-x { border: 0; background: none; color: #98a2b3; cursor: pointer; font-size: .95rem; padding: 4px 6px; border-radius: 6px; }
.je-lines .je-x:hover { color: #b42318; background: #fff5f5; }
.je-lines tfoot td { border-top: 2px solid var(--line, #e3e9f1); font-weight: 700; }
.je-ok { color: #027a48; } .je-bad { color: #b42318; }
.je-del { margin-left: auto; }
/* 1.21.19 Batch Enter: copy down (⇣), right-click menu, toast */
.cd-btn { margin-left: 4px; border: 1px solid var(--line, #d0d9e4); background: #fff; color: var(--primary, #0f766e); border-radius: 6px; font-size: .8rem; line-height: 1; padding: 2px 5px; cursor: pointer; vertical-align: 1px; }
.cd-btn:hover { background: #effdfa; border-color: #5eead4; }
.g-menu { position: fixed; z-index: 1200; min-width: 230px; background: #fff; border: 1px solid #d0d9e4; border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(3, 14, 30, .35); padding: 5px; }
.g-menu[hidden] { display: none; }
.g-menu button { width: 100%; display: flex; justify-content: space-between; gap: 18px; border: 0; background: none; padding: 8px 10px; border-radius: 7px; font: inherit; font-size: .9rem; text-align: left; cursor: pointer; color: #0b1f36; }
.g-menu button:hover, .g-menu button:focus { background: #effdfa; outline: none; }
.g-menu kbd { color: #5b6b7f; font-size: .78rem; font-family: inherit; }
.g-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 1100; display: flex; gap: 12px; align-items: center; background: #0b1f36; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); transition: all .25s; font-size: .9rem; }
.g-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.g-toast button { border: 0; background: #5eead4; color: #04201d; border-radius: 7px; padding: 4px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.qb-batch th.c-date, .qb-batch th.c-due { min-width: 138px; }
.bk-del-one { margin: 10px 0 0; text-align: right; }
.bk-qdel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 8px; border: 1px solid #fecaca; background: #fff5f5; border-radius: 10px; }
.bk-qdel[hidden] { display: none; }
.bk-qdel p { flex-basis: 100%; margin: 0; }
.bk-queue .bk-qpick { margin-right: 8px; transform: scale(1.15); accent-color: #b42318; }
.btn-danger { background: #b42318; border-color: #b42318; color: #fff; }
.btn-danger:hover { background: #912018; border-color: #912018; color: #fff; }
/* 1.21.19 Open companies: a button for each (beside Ask BooksAuto), to jump to its dashboard */
.co-bar { display: inline-flex; align-items: center; gap: 5px; flex-wrap: nowrap; overflow-x: auto; max-width: 46vw; scrollbar-width: thin; font-size: .82rem; }
.co-chip { display: inline-flex; align-items: center; flex: none; border: 1px solid #d0d9e4; background: #fff; border-radius: 999px; overflow: hidden; }
.co-chip a { padding: 4px 2px 4px 10px; color: #0b1f36; text-decoration: none; white-space: nowrap; font-weight: 600; }
.co-chip a:hover { color: #0f766e; }
.co-chip form { margin: 0; }
.co-chip button { border: 0; background: none; color: #98a2b3; cursor: pointer; padding: 4px 8px 4px 4px; font-size: .75rem; }
.co-chip button:hover { color: #b42318; }
.co-chip.on { background: #0f766e; border-color: #0f766e; }
.co-chip.on a, .co-chip.on button { color: #fff; }
@media (max-width: 900px) { .co-bar { display: none; } }
.ws-btn.ws-pop { font-size: .95rem; }
/* 1.21.94 Refresh, on every window's own title bar — a pane draws no page header to put it in.
   A marked window means newer data AND unsaved work here: anything else the pane reloads by itself. */
.ws-btn.ws-new { font-size: 1rem; }
.ws-win.ws-stale .ws-btn.ws-new { background: #b45309; color: #fff; animation: ws-stale-pulse 2s ease-in-out infinite; }
.ws-win.ws-stale .ws-title::after { content: " · changed elsewhere"; font-weight: 400; color: #b45309; }
@keyframes ws-stale-pulse { 50% { background: #d97706; } }
@media (prefers-reduced-motion: reduce) { .ws-win.ws-stale .ws-btn.ws-new { animation: none; } }
/* 1.21.19 resizable grid columns; memo shows in full */
.qb-table th.col-rs { position: relative; }
.col-grip { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 3; }
.col-grip::after { content: ""; position: absolute; top: 20%; bottom: 20%; left: 4px; width: 2px; border-radius: 2px; background: transparent; transition: background .15s; }
.qb-table th:hover .col-grip::after, body.col-dragging .col-grip::after { background: #14b8a6; }
body.col-dragging, body.col-dragging * { cursor: col-resize !important; user-select: none; }
.qb-table textarea.qb-memo { resize: none; overflow: hidden; min-height: 30px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; display: block; }
.qb-table th.c-memo { width: 260px; }
.rec-hide { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.rec-list .c-open { width: 28px; text-align: center; }
.rec-open { text-decoration: none; padding: 2px 6px; border-radius: 6px; color: #0f766e; }
.rec-open:hover { background: #effdfa; }

/* 1.21.19 reconciliation: last reconciliation, duplicates */
.rec-last{display:flex;flex-wrap:wrap;gap:12px 28px;align-items:center;padding:12px 16px}
.rec-last>div{display:flex;flex-direction:column}
.rec-last .btn-row{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.rec-dupes{border-left:4px solid #e0a100;background:#fffaf0}
.rec-dupes h2{margin:0 0 4px;font-size:1.05rem}
.rec-tag{display:inline-block;font-size:.72rem;font-weight:600;padding:1px 6px;border-radius:9px;white-space:nowrap}
.rec-tag.pay{background:#e3f4e8;color:#1d6b35}
.rec-tag.bank{background:#fde6e3;color:#a1291b}
tr.rec-dup-pay td{background:#f0faf3}
tr.rec-dup-bank td{background:#fff1ef}
/* 1.21.44 account head rows in reconciliation window */
tr.rec-head-row td{background:#f0f4f8;font-weight:700;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:#4a6080;padding:5px 10px;border-top:2px solid #dde4ed}
@media (prefers-color-scheme:dark){.rec-dupes{background:#2b2615}tr.rec-dup-pay td{background:#15291c}tr.rec-dup-bank td{background:#2e1814}.rec-tag.pay{background:#1f4a2b;color:#bfe9cb}.rec-tag.bank{background:#5a221b;color:#f8cfc8}tr.rec-head-row td{background:#1a2535;color:#8aaccc;border-top-color:#2a3d57}}

/* 1.21.19 QuickBooks-style cheque (green) and deposit (blue) windows; withdrawal / deposit colours in reports */
.qbf-card{background:#eef0f2}
.qbf{--qbf-ink:#1d2b36}
.qbf-top{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;margin-bottom:12px;font-size:.78rem;letter-spacing:.03em;color:#4b5a66}
.qbf-top label{display:flex;align-items:center;gap:8px}
.qbf-top select,.qbf-top input{font-size:.9rem;letter-spacing:0}
.qbf-top .pay-from{margin:0}.qbf-top .pay-from .help{display:none}
.qbf-grow{flex:1;min-width:220px}.qbf-grow input{flex:1;width:100%}
.qbf-bal{margin-left:auto}.qbf-bal strong{font-size:1.15rem;margin-left:8px;color:var(--qbf-ink)}.qbf-bal strong.neg{color:#d0021b}
.qbf-fixed{font-size:.9rem;color:var(--qbf-ink)}
.qbf-paper{border:6px solid #d7f0d5;outline:1px solid #b9dcb6;padding:14px 18px;border-radius:4px;margin-bottom:12px;color:#4b5a66;font-size:.74rem;letter-spacing:.04em;
  background:#e9f8e7 repeating-linear-gradient(135deg,rgba(255,255,255,.55) 0 3px,rgba(255,255,255,0) 3px 9px)}
.qbf-row{display:flex;gap:14px;align-items:center;margin:6px 0;flex-wrap:wrap}
.qbf-row label{display:flex;align-items:center;gap:8px}
.qbf-row input,.qbf-row textarea{font-size:.88rem;letter-spacing:0;background:#fff}
.qbf-right{justify-content:flex-end}
.qbf-words{border-bottom:1px solid #2b3a44;padding:6px 0 3px;margin:8px 0 12px;font-size:.86rem;letter-spacing:0;color:var(--qbf-ink)}
.qbf-stamp{color:#2e9a1c;font-weight:700;font-size:1rem;letter-spacing:.05em;margin-left:auto;margin-right:auto}
.qbf-tabs{display:flex;gap:4px;margin-top:6px}.qbf-tabs span{background:#fff;border:1px solid #cfd6dc;border-bottom:0;padding:6px 14px;border-radius:4px 4px 0 0;font-weight:600;font-size:.85rem}
.qbf-tabs b{margin-left:30px}
.qbf-lines{background:#fff}
.qbf-lines tbody tr:nth-child(even) td{background:#e8f0fb}
.qbf-lines select,.qbf-lines input{width:100%;border:0;background:transparent}
.qbf-deposit .qbf-lines thead th,.qbf-deposit .qbf-dep-top{color:#2a4a72}
.qbf-deposit{border-left:5px solid #4a8be0;padding-left:12px}
.qbf-dep-total{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:8px;font-weight:600}
.qbf-sum{background:#fff;border:1px solid #d5dbe0;border-radius:4px;padding:12px 16px;margin-top:12px}
.qbf-sum h3{font-size:.75rem;letter-spacing:.05em;color:#4b5a66;margin:0 0 8px}
.qbf-sum-grid{display:grid;grid-template-columns:max-content 1fr max-content 1fr;gap:6px 24px;font-size:.85rem;margin-bottom:12px}
.qbf-sum-grid span{color:#5e6c77;text-transform:uppercase;font-size:.72rem;letter-spacing:.04em;align-self:center}
.qbf-actions{justify-content:flex-end}
.qbf-cheque .qbf-paper ~ .qbf-sum{margin-top:0}
.qbf-tint-cheque{background:#f1faf0;border-top:4px solid #57b14d}
.qbf-tint-deposit{background:#f1f6fd;border-top:4px solid #4a8be0}
a.tt{font-weight:600;text-decoration:none}
a.tt.tt-out{color:#1f7a2e}a.tt.tt-in{color:#1d5fb8}a.tt.tt-je{color:#7a4fb5}
tr.tt-out-row td:first-child,tr.tt-out-row td.c-pick+td{box-shadow:inset 3px 0 0 #57b14d}
tr.tt-in-row td:first-child,tr.tt-in-row td.c-pick+td{box-shadow:inset 3px 0 0 #4a8be0}
@media (prefers-color-scheme:dark){.qbf-card{background:#1d2228}.qbf-paper{background:#1d2d1c;border-color:#2c4a2a;outline-color:#2c4a2a;color:#a9b8a8}.qbf-words,.qbf-bal strong,.qbf-fixed{color:#e6ecef}
 .qbf-lines,.qbf-sum,.qbf-tabs span{background:#232a31}.qbf-lines tbody tr:nth-child(even) td{background:#26303c}.qbf-tint-cheque{background:#1b2a1d}.qbf-tint-deposit{background:#1a2433}
 a.tt.tt-out{color:#7fd38a}a.tt.tt-in{color:#8ab8f2}a.tt.tt-je{color:#c3a5f0}}
@media (max-width:640px){.qbf-sum-grid{grid-template-columns:max-content 1fr}.qbf-bal{margin-left:0}}
.qbf-acct{white-space:nowrap}.qbf-dep-total input{max-width:180px;flex:0 0 auto}

/* 1.21.22 Windows start dashboard */
.dh{max-width:1080px;margin:0 auto;padding:8px 4px 24px}
.dh-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(120deg,#10233e,#1b3557 60%,#155e57);color:#fff;border-radius:18px;padding:26px 30px;box-shadow:0 14px 40px rgba(16,35,62,.18)}
.dh-hero h1{margin:0 0 6px;font-size:28px;color:#fff}.dh-hero p{margin:0;color:#b9c8d9;font-size:15px}
.dh-hero img{border-radius:18px;box-shadow:0 10px 26px rgba(0,0,0,.35)}
.dh-h{font-size:15px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#6b7a89);margin:28px 0 12px}
.dh-cos{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.dh-co{margin:0}
.dh-co-btn{width:100%;text-align:left;display:grid;grid-template-columns:52px 1fr;grid-template-rows:auto auto auto;column-gap:14px;row-gap:2px;align-items:center;background:var(--card,#fff);border:1px solid var(--line,#e3e8ee);border-radius:16px;padding:16px 18px;cursor:pointer;transition:transform .12s,box-shadow .12s,border-color .12s;font:inherit;color:inherit}
.dh-co-btn:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(16,35,62,.12);border-color:#1aa38f}
.dh-co-ini{grid-row:1 / span 3;width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,#1aa38f,#3dd6c0);color:#062a25;font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center}
.dh-co-name{font-weight:700;font-size:16px;line-height:1.25}
.dh-co-meta{font-size:12.5px;color:var(--muted,#6b7a89)}
.dh-sync{color:#1a7f6f;font-weight:600}
/* 1.21.28 QuickBooks-style company list (no company open) */
.qb-recent .qb-loc{margin-top:2px;word-break:break-all}
.qb-recent tr.muted strong{color:var(--muted,#6b7280)}
/* 1.21.49 The companies list scrolls in its own frame (QuickBooks' "No Company Open"): about four rows tall, so
   Quick start stays on screen however many companies have been opened. max-height, not height — a short list
   takes only the room it needs and shows no scroll bar. The headings stay put while the rows move. */
.qb-recent-scroll{max-height:268px;overflow-y:auto;overscroll-behavior:contain}
.qb-recent-scroll thead th{position:sticky;top:0;z-index:2;background:var(--card,#fff)}
.qb-recent-scroll:focus-visible{outline:2px solid var(--primary,#0f766e);outline-offset:-2px}
@media (max-height:760px){.qb-recent-scroll{max-height:200px}}
.dh-co-go{font-size:13px;font-weight:700;color:#1a7f6f}
.dh-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.dh-tile{display:flex;flex-direction:column;gap:4px;background:var(--card,#fff);border:1px solid var(--line,#e3e8ee);border-radius:16px;padding:18px;text-decoration:none;color:inherit;transition:transform .12s,box-shadow .12s}
.dh-tile:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(16,35,62,.12);text-decoration:none}
.dh-tile i{font-style:normal;font-size:24px}.dh-tile b{font-size:15px}.dh-tile small{color:var(--muted,#6b7a89)}
.dh-foot{margin-top:28px;text-align:center;color:var(--muted,#8a97a5);font-size:12.5px}
@media (prefers-color-scheme:dark){.dh-co-btn,.dh-tile{background:#1f262e;border-color:#2c3540}.dh-sync,.dh-co-go{color:#5fe0c9}}
@media (max-width:640px){.dh-hero{padding:20px}.dh-hero img{display:none}}

/* 1.21.22 account search box (every account list) */
.acx{position:relative;display:inline-block;width:100%;min-width:180px}
.acx-in{width:100%;box-sizing:border-box}
select.acx-sel{position:absolute!important;inset:0;opacity:0!important;pointer-events:none!important;width:100%!important;height:100%!important}
.acx-list{position:fixed;z-index:10050;background:var(--card,#fff);border:1px solid var(--line,#d5dde5);border-radius:10px;box-shadow:0 16px 40px rgba(16,35,62,.22);overflow-y:auto;padding:4px 0;font-size:13.5px}
.acx-g{padding:7px 12px 3px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted,#7a8896)}
.acx-i{padding:7px 12px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acx-i.on,.acx-i:hover{background:#e3f4f0;color:#0f4f45}
.acx-add{color:#1a7f6f;font-weight:600;border-top:1px solid var(--line,#e3e8ee)}
.acx-none{padding:9px 12px;color:var(--muted,#7a8896)}
@media (prefers-color-scheme:dark){.acx-list{background:#1f262e;border-color:#2c3540}.acx-i.on,.acx-i:hover{background:#17423b;color:#d4fbf3}}

/* ---------- 1.21.23 one bar: no stripes under the menu — shortcuts, company, you and power sit on the right of it ---------- */
.tm-right { display: flex; align-items: center; gap: 6px; margin-left: auto; min-height: 40px; }
.tm-end { display: flex; align-items: center; gap: 6px; padding-left: 4px; }
.tm-ico { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 9px; border-radius: 6px; font-size: 15px; }
.tm-sc-n { font-size: 10px; font-weight: 700; background: #5eead4; color: var(--navy); border-radius: 8px; padding: 0 5px; line-height: 15px; }
.tm-sc .tm-drop { min-width: 270px; }
.tm-item.tm-wrap { white-space: normal; max-width: 270px; color: var(--muted); }
.tm-bar .co-bar { max-width: 32vw; }
.tm-bar .co-chip { border-color: #36557d; background: transparent; }
.tm-bar .co-chip a { color: #e2e8f0; padding: 3px 2px 3px 9px; font-size: 12.5px; }
.tm-bar .co-chip button { color: #94a3b8; }
.tm-bar .co-chip.on { background: #0f766e; border-color: #5eead4; }
.tm-bar .sync-pill { margin-right: 0; padding: 4px 9px; }
.tm-bar .usermenu summary { padding: 2px; border-radius: 50%; }
.tm-bar .usermenu summary:hover { background: var(--navy-3); }
.tm-bar .usermenu .uname { display: none; }
.tm-bar .usermenu .avatar { width: 30px; height: 30px; font-size: 12px; border: 1px solid #5eead4; }
.tm-bar .usermenu-panel { z-index: 320; }
.tm-bar .power-btn { width: 32px; height: 32px; border-color: rgba(253, 162, 155, .55); background: rgba(180, 35, 24, .16); color: #fecaca; }
.tm-bar .power-btn:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
@media (max-width: 860px) {
    .tm-right { margin-left: auto; }
    .tm-brand span { display: none; }
    .tm-bar .co-bar { display: none; }
}

/* 1.21.23 Ask BooksAuto: a floating chat bubble at the bottom right; ✕ hides it, Help › Show the chat button brings it back */
.ac-fab { position: fixed; right: 18px; bottom: 18px; z-index: 8400; display: flex; align-items: center; transition: opacity .18s, transform .18s; }
.ac-fab.ac-fab-off { display: none; }
.ac-fab.ac-gone { opacity: 0; transform: scale(.6); pointer-events: none; }
.ac-fab .ac-launch { position: static; display: inline-flex; gap: 0; width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 28px; overflow: hidden;
    white-space: nowrap; transition: width .22s ease, transform .18s, box-shadow .18s; }
.ac-fab .ac-launch-ico { display: grid; place-items: center; width: 56px; flex: none; }
.ac-fab .ac-launch-txt { max-width: 0; opacity: 0; transition: max-width .22s ease, opacity .18s; }
.ac-fab:hover .ac-launch, .ac-fab .ac-launch:focus-visible { width: 196px; justify-content: flex-start; box-shadow: 0 14px 30px rgba(15, 39, 66, .42); }
.ac-fab:hover .ac-launch-txt, .ac-fab .ac-launch:focus-visible .ac-launch-txt { max-width: 140px; opacity: 1; padding-right: 18px; }
.ac-fab .ac-launch::after { content: ""; position: absolute; bottom: 4px; right: 5px; width: 11px; height: 11px; border-radius: 50%; background: #4ade80; border: 2px solid #fff; }
.ac-fab { isolation: isolate; }
.ac-fab .ac-launch { position: relative; top: auto; right: auto; bottom: auto; left: auto; }
.ac-fab-x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #cbd5e1; background: #fff; color: #475569; font-size: 11px; line-height: 1;
    cursor: pointer; display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: opacity .15s, transform .15s; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); z-index: 2; }
.ac-fab:hover .ac-fab-x, .ac-fab-x:focus-visible { opacity: 1; transform: none; }
.ac-fab-x:hover { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
body.ws-shell .ac-fab { bottom: 44px; }
@media (max-width: 700px) {
    .ac-fab { bottom: 74px; right: 12px; }
    .ac-fab .ac-launch { width: 52px; height: 52px; }
    .ac-fab:hover .ac-launch { width: 52px; }
    .ac-fab .ac-launch-txt { display: none; }
    .ac-fab-x { opacity: 1; transform: none; }
}
@media print { .ac-fab { display: none !important; } }

/* 1.21.23 Quick Add a name: "Select name type" (Vendor / Customer / Employee / Other) as buttons; the grid's Payee results */
.qa-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 2px; }
.qa-kinds-lbl { grid-column: 1 / -1; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.qa-kinds button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 9px 12px; border: 1.5px solid #d0d9e4; border-radius: 8px; background: #fff; cursor: pointer; font: inherit; color: var(--text); transition: border-color .12s, background .12s, box-shadow .12s; }
.qa-kinds button b { font-size: .95rem; }
.qa-kinds button small { font-size: .76rem; color: var(--muted); }
.qa-kinds button:hover { border-color: var(--teal-2, #14b8a6); }
.qa-kinds button.on { border-color: var(--teal, #0f766e); background: #ecfdf8; box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); }
.qa-kinds button.on b::before { content: "✓ "; color: var(--teal, #0f766e); }
.qa-kinds button[hidden] { display: none; }
.qa-kind-sel { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qa-emp-note { margin: 0; padding: 8px 10px; border-radius: 6px; background: #fff7e6; color: #7a4d00; }
.g-name-i { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.g-name-i span { overflow: hidden; text-overflow: ellipsis; }
.g-name-sug { z-index: 9000; }
.qa-more-btn { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; width: 100%; text-align: left; border: 1px dashed #b8c5d4; background: #f8fafc; border-radius: 8px; padding: 8px 12px; cursor: pointer; font: inherit; font-weight: 600; color: #0f766e; }
.qa-more-btn:hover { background: #eef6f4; border-color: #0f766e; }
.qa-more-btn .muted { font-weight: 400; }
.qa-more { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fbfdff; }
.qa-more [hidden] { display: none !important; }
.qa-more > div:not(.qa-row3) { display: flex; flex-direction: column; gap: 10px; }
.qa-row3 { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 10px; }
.qa-cra { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.qa-cra legend { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; }
.qa-cra .check { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; font-weight: 400; }
dialog.qa-box:has(.qa-more:not([hidden])) { width: min(620px, 96vw); }
@media (max-width: 520px) { .qa-row3 { grid-template-columns: 1fr 1fr; } }
.qbf-lines .qbf-taxamt, .qbf-lines .qbf-net { white-space: nowrap; font-variant-numeric: tabular-nums; color: #475569; min-width: 70px; }
.qbf-lines .qbf-net { color: #0b1f36; font-weight: 600; }

/* 1.21.23 Centres as QuickBooks Desktop: the list of names on the LEFT, the chosen one's information and transactions on the right */
.qb-centre { grid-template-columns: 300px minmax(0, 1fr); }
.qb-centre > .qbc-list { order: -1; }
.qbc-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.qbc-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 18px; margin: 4px 0 10px; font-size: .86rem; }
.qbc-info dt { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.qbc-info dd { margin: 0 0 6px; }
.qbc-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qbc-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; margin: 6px 0; background: #0f2742; color: #fff; border-radius: 8px; }
.qbc-bulk[hidden] { display: none; }
.qbc-bulk .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.qbc-alert { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 1000px) { .qb-centre { grid-template-columns: 1fr; } }
.pc-open td { background: #fffaf0; }
.pc-zero { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.reclass-opts { display: flex; flex-direction: column; gap: 6px; flex: 1 1 520px; }
.reclass-opts .reclass-move { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.reclass-opts .reclass-move b { font-weight: 700; }
.ar-bank { white-space: nowrap; color: #0f4c81; font-size: .92em; }

/* 1.21.23 pages for people outside the firm, and the employer's payroll hours form */
body.plain-page { background: #f1f5f9; margin: 0; }
.pp-top { display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: #0f2742; color: #fff; }
.pp-top img { border-radius: 6px; }
.pp-note { color: #99f6e4; margin-left: 6px; font-size: .92rem; }
.pp-main { max-width: 980px; margin: 0 auto; padding: 18px 14px 30px; }
.pp-foot { text-align: center; padding: 16px; }
.pp-msg { text-align: center; padding: 34px 20px; }
.ph-head h1 { margin: 0 0 4px; font-size: 1.4rem; }
.ph-period { font-size: 1.02rem; margin: 4px 0; }
.ph-form .card h2 { font-size: 1.08rem; margin: 0 0 10px; }
.ph-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.ph-opt { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 10px 12px; border: 1.5px solid #d0d9e4; border-radius: 8px; cursor: pointer; background: #fff; }
.ph-opt:has(input:checked) { border-color: #0f766e; background: #ecfdf8; }
.ph-opt span { width: 100%; font-size: .84rem; color: var(--muted); padding-left: 22px; }
.ph-stat { margin-top: 14px; padding: 12px; background: #fff8e6; border: 1px solid #f3d38b; border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.ph-stat h3 { margin: 0; font-size: .98rem; }
.ph-emp { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px 12px; margin: 0 0 10px; background: #fbfdff; }
.ph-emp legend { font-weight: 700; padding: 0 6px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 10px; }
.ph-cell { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; font-weight: 600; color: #374151; }
.ph-cell input, .ph-cell select, .ph-cell textarea { font: inherit; font-size: .95rem; font-weight: 400; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; }
.ph-cell input.is-invalid { border-color: #dc2626; background: #fff5f5; }
.ph-note, .ph-wide { grid-column: span 2; }
.ph-hint { font-weight: 400; color: #0f766e; font-size: .76rem; min-height: 1em; }
.ph-more { margin-top: 8px; } .ph-more summary { cursor: pointer; color: #0f766e; font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.ph-send { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ph-send .ph-cell { width: min(360px, 100%); }
@media (max-width: 560px) { .ph-grid { grid-template-columns: 1fr 1fr; } .ph-note, .ph-wide { grid-column: 1 / -1; } }
.ph-sched { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ph-dates { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: .85rem; }
.ph-dates input { padding: 4px 6px; }

/* 1.21.24 BooksAuto's own "Are you sure?" box (the browser's own pop-ups are blocked in the Windows app) */
.ba-confirm { position: fixed; inset: 0; z-index: 99999; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 16px; }
.ba-confirm-card { background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); padding: 20px 22px 16px; width: min(440px, 100%); }
.ba-confirm-card p { margin: 0 0 16px; font-size: 1rem; line-height: 1.45; color: #0b1f36; white-space: pre-line; }
.ba-confirm-btns { display: flex; justify-content: flex-end; gap: 8px; }

/* 1.21.25 QuickBooks-style payroll: steps, pay cheque detail */
.steps.qb-steps li.current { background: var(--teal); color: #fff; }
.steps.qb-steps li a { color: inherit; text-decoration: none; }
.run-table tr[data-dbl-open] { cursor: default; }
.run-table tr[data-dbl-open]:hover td { background: rgba(15, 118, 110, .05); }
.pcd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pcd-title { margin: 0 0 2px; font-size: 1.2rem; }
.pcd-nav { display: flex; gap: 6px; align-items: center; }
.pcd-unlock { margin: 0 0 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pcd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pcd-grid .card h3 { margin: 0 0 8px; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.pcd-grid .card h3 + .table, .pcd-sum h3:not(:first-child) { margin-top: 12px; }
.pcd-table td, .pcd-table th { padding: 5px 8px; }
.pcd .pcd-in { width: 84px; max-width: 100%; min-height: 0; height: 30px; text-align: right; padding: 3px 8px; font-size: .9rem; }
.pcd .pcd-in.pcd-money { width: 96px; }
.pcd .pcd-pay select { width: auto; min-width: 0; }
.pcd-in[readonly] { background: transparent; border-color: transparent; }
.pcd-auto { font-size: .75rem; color: var(--muted); font-weight: normal; margin-left: 6px; white-space: nowrap; }
.pcd-net td { border-top: 2px solid var(--line, #d9dde3); }
.pcd-pay { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: .9rem; }
.pcd-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; justify-content: flex-end; position: sticky; bottom: 0; background: var(--bg, #fff); padding: 8px 0; }
.create-cheques .cc-how { border: 1px solid var(--line, #d9dde3); border-radius: 8px; padding: 8px 12px; display: grid; gap: 6px; }
.create-cheques .cc-how input[name="first_no"] { width: 90px; margin-left: 6px; }
@media (max-width: 760px) { .pcd-grid { grid-template-columns: 1fr; } }
.live-totals.cc-bar { border-radius: var(--radius); margin: 0 0 16px; }
.qb-next { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 16px; border-left: 4px solid var(--teal); } .qb-next .btn-row { margin-left: auto; } .qb-next form.inline { display: inline; }
.live-totals .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .45); background: transparent; }
.live-totals .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.pcd label.pcd-pay select { width: auto !important; max-width: 340px; flex: 0 0 auto; }
details.reprint-box { padding: 12px 16px; }
details.reprint-box > summary { list-style: none; cursor: pointer; }
details.reprint-box[open] > summary { margin-bottom: 10px; }
/* 1.21.25 the name picker on a cheque / deposit window */
.qbf-payto { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.qbf-payto > label { white-space: nowrap; }
.qbf-payto > input[data-pay-in] { flex: 1; min-width: 220px; }
.qbf-payto .pay-to-kind, .qbf-payto [data-pay-emp] { flex-basis: 100%; margin: 0; }
/* 1.21.25 the bulk-change bar in one compact line */
.reclass-bar { padding: 6px 10px; gap: 8px; flex-wrap: wrap; }
.reclass-bar .reclass-act { max-width: 300px; }
.reclass-bar .reclass-opts { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; gap: 6px; min-width: 0; }
.reclass-bar .reclass-opts .reclass-move[hidden] { display: none; }
.reclass-bar .reclass-opts .reclass-move { flex-wrap: nowrap; }
.reclass-bar .reclass-move input, .reclass-bar .reclass-move select, .reclass-bar .reclass-act { height: 32px; padding-top: 2px; padding-bottom: 2px; font-size: .85rem; }
.reclass-bar .reclass-move .acx, .reclass-bar .reclass-move .acx-in, .reclass-bar .reclass-move input[type=text], .reclass-bar .reclass-move select { width: 260px; max-width: 260px; min-width: 0; }
.reclass-bar .reclass-move select[name="tax"] { width: 170px; }
.reclass-bar .btn-sm { padding: 4px 10px; }
.reclass-bar { margin-right: 64px; } /* room for the chat bubble */

/* 1.21.26 industry picker: group · type to find · NAICS code */
.ind-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, 2fr) 130px; gap: 8px; align-items: start; }
.ind-combo { position: relative; }
.ind-combo input, .ind-row select, .ind-row .ind-code { width: 100%; }
.ind-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; list-style: none; margin: 0; padding: 0; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .14); max-height: 340px; overflow: auto; }
.ind-list li { padding: 7px 12px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.ind-list li span { font-size: 12px; }
.ind-list li:hover, .ind-list li.on { background: var(--teal-soft); }
.ind-list li.ind-none { cursor: default; color: var(--muted, #667); }
.ind-picked { display: block; margin-top: 6px; }
@media (max-width: 760px) { .ind-row { grid-template-columns: 1fr; } }
/* 1.21.26 unlock the period */
.ba-unlock h3 { margin: 0 0 8px; }
.ba-unlock .field { display: block; margin: 0 0 12px; }
.ba-unlock .field input { width: 100%; }
button.ar-status.st-locked { border: 0; background: transparent; cursor: pointer; font: inherit; padding: 0; }
button.ar-status.st-locked:hover { text-decoration: underline; }

/* 1.21.27 pay run: other payroll items on each cheque (bonus, commission, tips…) and the pay panel */
dialog.drawer.drawer-wide { width: 720px; }
.btn-xs { padding: 2px 8px; font-size: .74rem; line-height: 1.5; border-radius: 6px; }
.run-table td.pr-items { min-width: 120px; max-width: 220px; white-space: normal; }
.pr-chip { display: inline-flex; gap: 4px; align-items: baseline; margin: 0 4px 3px 0; padding: 1px 7px; border-radius: 999px; background: #e8f3ee; color: #17533c; font-size: .74rem; white-space: nowrap; }
.pr-chip b { font-weight: 600; }
.pr-chip.ded { background: #fdeceb; color: #8a2b22; }
.pr-chip.er { background: #eef1f6; color: #3a4a63; }
.compact-table th, .compact-table td { padding: 6px 8px; }
.pr-additems select { width: 100%; min-width: 180px; }
.pr-additems input.hrs { width: 84px; }
.pr-additems td:last-child input { width: 100%; min-width: 110px; }
.sal-this { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; white-space: nowrap; }
.sal-this input.hrs { width: 92px; padding: 2px 6px; }
/* 1.21.27 set up year-to-date amounts */
.ytd-wrap { max-height: 70vh; overflow: auto; }
.ytd-grid th.ytd-item, .ytd-grid td.ytd-item { position: sticky; left: 0; background: var(--card); z-index: 1; min-width: 230px; white-space: normal; }
.ytd-grid thead th { position: sticky; top: 0; background: var(--card); z-index: 2; white-space: nowrap; font-size: .74rem; }
.ytd-grid thead th.ytd-item { z-index: 3; }
.ytd-grid input.ytd-in { width: 96px; text-align: right; padding: 3px 6px; }
.ytd-grid tr.ytd-hours input.ytd-in { width: 70px; font-size: .8rem; }
.ytd-grid tr.ytd-hours td { padding-top: 0; border-top: 0; }
.ytd-grid tr.ytd-head th { background: #f3f6f9; text-align: left; font-size: .8rem; text-transform: none; }
.ytd-grid tr.ytd-sum td { background: #f8faf9; font-weight: 600; }
.ytd-grid .ytd-total { font-weight: 600; white-space: nowrap; }
/* 1.21.27 chart of accounts: whose subaccount; reports: subaccounts indented with a dot, as QuickBooks */
.coa-of { display: block; font-size: .74rem; color: #64748b; font-weight: 400; margin-top: 1px; }
.coa-of.warn { color: #b45309; }
.rep-tbl tr.rep-d1 td:first-child, .rep-tbl tr.rep-d2 td:first-child, .rep-tbl tr.rep-d3 td:first-child, .rep-tbl tr.rep-d4 td:first-child { position: relative; }
.rep-tbl tr.rep-d1 td:first-child { padding-left: 34px; } .rep-tbl tr.rep-d2 td:first-child { padding-left: 58px; } .rep-tbl tr.rep-d3 td:first-child { padding-left: 82px; } .rep-tbl tr.rep-d4 td:first-child { padding-left: 106px; }
.rep-tbl tr.rep-sub td:first-child::before { content: '·'; position: absolute; margin-left: -12px; color: #64748b; font-weight: 700; }
/* 1.21.29 an employee's vacation (QuickBooks: Vacation for …) */
.vac-form .choice-inline { display: flex; gap: 8px; align-items: baseline; margin: 4px 0; font-weight: normal; }
.vac-form .choice-inline input { margin: 0; }
.vac-form .vac-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 18px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; max-height: 260px; overflow: auto; }
.vac-form input[readonly] { background: var(--bg-soft, #f4f6f8); }
/* 1.21.29 federal / provincial tax typed in the pay run */
.tax-cell { white-space: nowrap; }
.tax-cell .tax-in { width: 7.5em; text-align: right; }
.tax-cell .tax-in.is-set { background: #fff7e6; border-color: #f0b44c; }
.tax-cell .why { margin-left: 4px; }
/* 1.21.31 a page in a pop-up (an employee's details from the pay run) */
dialog.ba-popup { width: min(1100px, 94vw); height: min(860px, 90vh); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 70px rgba(15, 23, 42, .35); overflow: hidden; display: none; flex-direction: column; }
dialog.ba-popup[open] { display: flex; }
dialog.ba-popup::backdrop { background: rgba(15, 23, 42, .45); }
.ba-popup-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--navy, #13294b); color: #fff; }
.ba-popup-head .drawer-x { color: #fff; background: transparent; border: 0; font-size: 26px; line-height: 1; cursor: pointer; width: auto; height: auto; padding: 2px 8px; }
.ba-popup-head .drawer-x:hover { background: rgba(255,255,255,.15); border-radius: 6px; }
dialog.ba-popup iframe { flex: 1; width: 100%; border: 0; background: var(--bg, #f4f6f8); }
/* 1.21.31 QuickZoom: an amount that opens what it is made of */
a.zoom { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
a.zoom:hover { color: var(--teal, #0f766e); text-decoration-style: solid; }
/* 1.21.31 undo: just this change, or back to before it */
.undo-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 12px 0; }
.undo-choice { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.undo-choice h3 { margin: 0 0 6px; font-size: 1rem; }
/* 1.21.31 every reconciliation, by year */
.rec-years > summary { cursor: pointer; color: var(--teal, #0f766e); }
.rec-years details { margin: 4px 0 4px 14px; }
.rec-years details > summary { cursor: pointer; }
.rec-year-list { margin: 4px 0 6px 18px; padding: 0; columns: 2 220px; }
.rec-hist{flex-basis:100%}
.offby-sum{max-width:620px}.offby-sum td{padding:6px 10px}
.offby-sum .offby-total td{border-top:2px solid var(--border,#d6dde3);font-size:1.05rem}
/* 1.21.32 same person? side by side */
.merge-tbl th:first-child{width:150px;color:var(--muted,#64748b);font-weight:500}
.merge-tbl thead th{vertical-align:bottom}
.merge-pick{display:inline-flex;gap:6px;align-items:center;cursor:pointer}
.merge-tbl tr.merge-diff td{background:rgba(234,179,8,.10)}
.emp-dupes{flex-wrap:wrap}
.merge-tbl thead th{text-transform:none;letter-spacing:normal;font-size:.95rem;color:inherit}
.ye-pick{display:flex;gap:8px}.ye-pick select:first-child{flex:1 1 auto}.ye-pick select:last-child{width:5.5em;flex:0 0 auto}
/* 1.21.32 import review: where the differences come in */
.cv-where{margin-top:14px}
.cv-where-row{border-top:1px solid var(--border,#e2e8f0);padding:6px 0}
.cv-where-row>summary{cursor:pointer}
.cv-where-row table{margin:6px 0 4px}
.cv-sense{background:var(--surface-2,#f8fafc);border:1px solid var(--border,#e2e8f0);border-radius:10px;padding:10px 14px;margin:10px 0}
.cv-sense ul,.cv-fixed ul{list-style:none;padding:0;margin:6px 0}
.cv-sense-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:6px 0;border-top:1px dashed var(--border,#e2e8f0)}
.cv-sense-row>span{flex:1}
.cv-fixed{margin-top:12px}
.cv-anyway{border:1px solid var(--border,#e2e8f0);border-radius:10px;padding:10px 14px;margin:12px 0;background:var(--surface-2,#f8fafc)}
/* 1.21.32 new company from QuickBooks Desktop: what was filled in, at a glance */
.qbd-summary{border:1px solid var(--border,#e2e8f0);border-radius:12px;padding:12px 16px;margin:0 0 14px;background:var(--surface-2,#f8fafc)}
.qbd-summary h3{margin:0 0 8px;font-size:1.05rem}
.qbd-dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px 18px;margin:0}
.qbd-dl dt{font-size:.78rem;color:var(--muted,#64748b)}
.qbd-dl dd{margin:0;font-weight:500}
.qbd-details{border:1px dashed var(--border,#e2e8f0);border-radius:10px;padding:8px 12px;margin:10px 0 14px}
.qbd-details>summary{cursor:pointer;font-weight:600}
/* 1.21.33 backups: what's in each one */
.bk-contents{min-width:280px;line-height:1.45}
.bk-contents details summary{cursor:pointer;color:var(--teal,#0f766e)}
.bk-recent{margin:4px 0 0 16px;padding:0}
/* 1.21.33 CPA adjustments */
.cpa-changes{list-style:none;padding:0;margin:0}
.cpa-changes>li{border-top:1px solid var(--border,#e2e8f0);padding:10px 0}
.cpa-lines{margin:6px 0 0;max-width:820px}
.cpa-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}
.cpa-ch.cpa-done{opacity:.75}
.cpa-banner{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* 1.21.34 Print / email pay stubs */
.ps-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 6px; }
.ps-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; position: sticky; top: 0; background: var(--card); z-index: 2; }
.ps-bar .spacer { flex: 1; }
.ps-scroll { max-height: calc(100vh - 330px); }
.ps-scroll thead th { position: sticky; top: 0; background: var(--card); z-index: 1; }
.ps-note { margin: 8px 0; }
.ps-note textarea { width: 100%; margin-top: 6px; }
.btn.disabled { opacity: .5; pointer-events: none; }
.reclass-why { flex-basis: 100%; font-size: 12.5px; color: var(--warning); background: var(--warning-soft); border-radius: 6px; padding: 4px 8px; }
.reclass-why .btn { margin-left: 6px; }
select option:disabled { color: #9ca3af; }
.reclass-why .btn, .reclass-why .btn-ghost { color: var(--warning); border: 1px solid currentColor; background: transparent; }
.reclass-bar .btn:disabled, form[data-bulk-rules] .btn:disabled { opacity: .45; cursor: not-allowed; }
/* 1.21.35 printing: a wide list prints whole (made smaller to fit), never cut off inside its scroll box */
@media print { .table-wrap, .qbc-scroll, .ps-scroll { overflow: visible !important; max-height: none !important; } }
.calc-tip { position: absolute; z-index: 9999; background: #0f2742; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; pointer-events: none; box-shadow: var(--shadow); }

/* 1.21.36 Employee Centre: the whole line opens the employee */
#emp-list tr { cursor: pointer; }
/* 1.21.37 Super Admin › Legal agreements */
.legal-actions { display: flex; flex-direction: column; gap: 4px; min-width: 118px; }
.legal-actions .btn, .legal-actions form, .legal-actions form .btn { width: 100%; text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* 1.21.38 */

/* 1.21.60 QuickReport off the chart of accounts, as QuickBooks Desktop has it: a quiet mark beside the
   account name that opens every transaction in it. Kept out of the way until the row is hovered or the
   link is focused, so the chart still reads as a list of accounts rather than a list of links. */
.coa-name { position: relative; }
.coa-qr {
    float: right;
    margin-left: 8px;
    padding: 0 4px;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    color: var(--muted, #64748b);
    opacity: 0;
    transition: opacity .12s ease, color .12s ease;
}
tr:hover .coa-qr, .coa-qr:focus-visible { opacity: 1; }
.coa-qr:hover { color: var(--link, #2563eb); }
@media (hover: none) { .coa-qr { opacity: .7; } }   /* on a touch screen there is no hover to reveal it */
@media (prefers-reduced-motion: reduce) { .coa-qr { transition: none; } }

/* 1.21.61 A figure on the GST/HST return opens the transactions behind it. It has to read as a figure first
   and a link second, so it keeps the tabular alignment and the underline only appears under the pointer. */
.bk-drill { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted, #94a3b8); }
.bk-drill:hover, .bk-drill:focus-visible { color: var(--link, #2563eb); border-bottom-color: currentColor; text-decoration: none; }
.bk-drill:focus-visible { outline: 2px solid var(--link, #2563eb); outline-offset: 2px; border-radius: 2px; }

/* "How this was worked out", beside the return */
.bk-workings { display: flex; flex-direction: column; }
.bk-working { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.bk-working:last-child { border-bottom: 0; }
.bk-working.active { background: var(--hover, rgba(37, 99, 235, .06)); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.bk-working-top { display: flex; gap: 8px; align-items: baseline; }
.bk-working-label { flex: 1; min-width: 0; }
.bk-working p { margin: 4px 0 0; }

/* 1.21.63 Lines that make up the figure clicked on the sales tax return. Marked, not filtered to: the running
   balance beside them is a fact about the whole account, so the rest of it stays on screen. The mark is a bar
   down the left edge and a tint, so it survives the row's own type colouring and prints legibly. */
.bk-tbl tr.ar-onbox > td { background: var(--accent-soft, rgba(15, 111, 106, .09)); }
.bk-tbl tr.ar-onbox > td:first-child { box-shadow: inset 3px 0 0 0 var(--accent, #0f6f6a); }
@media print { .bk-tbl tr.ar-onbox > td { background: #eee; } }

/* 1.21.66 Set up year-to-date amounts — the steps. BooksAuto's own look, QuickBooks' order: every step is a
   link rather than a gate, because copying figures from another program means going back and forth. */
.ytd-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ytd-step { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line);
    border-radius: 999px; text-decoration: none; color: var(--muted, #64748b); background: var(--card, #fff); font-size: .86rem; }
.ytd-step:hover { border-color: var(--link, #2563eb); color: var(--link, #2563eb); }
.ytd-step-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none;
    border-radius: 50%; background: var(--line); color: var(--fg, #1b2127); font-size: .74rem; font-weight: 600; }
.ytd-step.here { border-color: var(--link, #2563eb); color: var(--link, #2563eb); font-weight: 600; }
.ytd-step.here .ytd-step-n { background: var(--link, #2563eb); color: #fff; }
.ytd-step.done .ytd-step-n { background: var(--ok, #0f6f6a); color: #fff; }
.ytd-step:focus-visible { outline: 2px solid var(--link, #2563eb); outline-offset: 2px; }
@media (max-width: 640px) { .ytd-step-l { display: none; } .ytd-step.here .ytd-step-l { display: inline; } }

/* 1.21.77 Connect Gmail / Connect Outlook — the provider's own mark on a white button, which is what both
   companies' branding guidance asks for and what Google's review looks at. */
.btn-provider { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #3c4043;
    border: 1px solid #dadce0; font-weight: 600; }
.btn-provider:hover { background: #f8f9fa; border-color: #c6cbd1; color: #202124; text-decoration: none; }
.btn-provider svg { flex: none; }
/* 1.21.77 the "send the ticked stubs to the owner" row, under the bulk bar it belongs to */
.ec-owner { flex-wrap: wrap; gap: 8px 12px; }
.ec-owner input[type="email"], .ec-owner input[type="text"] { padding: 5px 9px; border: 1px solid var(--line, #e3e9f1); border-radius: 8px; font-size: .9rem; }

/* 1.21.87 Performance — the cron command is meant to be selected and pasted into hPanel, so it wraps
   rather than scrolls, and breaks on the long path instead of pushing the page sideways. */
.perf-cmd { display: block; padding: 10px 12px; line-height: 1.5; word-break: break-all; white-space: pre-wrap; }

/* 1.21.94 The template panel's insert buttons: they read as the token they insert, and look pressable. */
.ins-chip { font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem;
    background: #eef2f7; border: 1px solid #c7d2de; border-radius: 4px; padding: 1px 6px; cursor: pointer; color: #1f2d3d;
    margin: 0 2px 4px 0; display: inline-block; line-height: 1.5; }
.ins-chip:hover { background: #dbe6f3; border-color: #94a9c2; }
.ins-chip:active { background: #c7d8ec; }
.ins-chip:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 1px; }
.ins-wrap { line-height: 2; }
.ins-list { list-style: none; padding-left: 0; }
.ins-list li { margin-bottom: 3px; }
.ins-how { background: #f1f7ed; border-left: 3px solid #4d7c2f; padding: 6px 10px; border-radius: 0 4px 4px 0; }

/* 1.21.94 The notes editor: a note switched off is still readable, just clearly not printing. */
.note-row { border: 1px solid #dde3ea; border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.note-row.off { opacity: .55; background: #f6f7f9; }
.note-row textarea { width: 100%; margin-top: 6px; }
.note-row input[type="text"] { width: 100%; }
.note-row > .check { display: block; margin-bottom: 4px; }

/* 1.21.94 The letterhead preview on the Year-end documents screen. */
.fh-peek { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fh-logo { max-height: 56px; max-width: 200px; object-fit: contain; }
.fh-nologo { font-size: .8rem; color: #8b97a6; border: 1px dashed #c7d2de; border-radius: 6px; padding: 14px 18px; }

/* 1.21.94 The one-line prompt when no company has been recognised as the practice. */
.tm-ask { color: #b45309 !important; font-weight: 600; background: #fffbeb; }
.tm-ask:hover { background: #fef3c7; }

/* 1.21.94 The preparer's name on the letterhead, under the firm's. */
.doc-letterhead .dl-person { display: block; font-size: .92em; }

/* 1.21.99 whether a release's files all arrived */
.dep-check.dep-incomplete { border-left: 3px solid #9b2226; }
.dep-check.dep-extra { border-left: 3px solid #8a4b00; }
.dep-check.dep-ok { border-left: 3px solid #0f7a4d; }
.dep-bad { color: #9b2226; font-weight: 600; }
.dep-check ul.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }

/* 1.22.8 Practice plan: three plans side by side, each with this firm's own number on it */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.plan-pick { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line, #d6dee4); border-radius: 10px; cursor: pointer; align-content: start; }
.plan-pick:hover { border-color: var(--brand, #0f766e); }
.plan-pick.is-on { border-color: var(--brand, #0f766e); box-shadow: inset 0 0 0 1px var(--brand, #0f766e); }
.plan-pick .plan-name { font-weight: 600; }
.plan-pick .plan-price { font-size: 1.25rem; font-weight: 600; }

/* 1.22.11 Reconcile: deleting entries in bulk.
   One set of ticks does both jobs, so delete mode has to be impossible to miss — the lists are tinted,
   the tick column is marked, and the reconcile buttons are disabled while it is on. */
.rec-del-form { margin: 0; }
.rec-del-btn { margin-left: 4px; }
.rec-del-actions { display: none; }
body.rec-deleting .rec-del-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.rec-deleting .rec-list { background: #fff5f5; box-shadow: inset 0 0 0 2px #e11d48; }
body.rec-deleting .rec-list .card-head h2::after { content: ' — picking entries to delete'; color: #e11d48; font-weight: 600; font-size: .85em; }
body.rec-deleting .rec-list tbody tr.on { background: #fee2e2; }
body.rec-deleting td.c-tick { outline: 1px solid #fca5a5; }
body.rec-deleting .rec-form .form-actions button:disabled { opacity: .45; }
@media (prefers-color-scheme: dark) {
    body.rec-deleting .rec-list { background: #2a1416; }
    body.rec-deleting .rec-list tbody tr.on { background: #4c1d24; }
}

/* 1.22.13 a link standing alone on its line (the sign-in screens' "Forgot your password?") is a control, and
   at 16 px tall it was under WCAG 2.5.8's 24 px. It is given the height without changing how it looks. */
p.small > a:only-child, p.center > a:only-child { display: inline-flex; align-items: center; min-height: 24px; }

.rec-del-paused { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: #fef3c7; color: #78350f; font-size: .88rem; }

/* 1.22.15 customer / vendor list: doubles and clean-up */
.qbc-doubles { margin: 0; padding: 8px 12px; background: #fef3c7; color: #78350f; font-size: .86rem; border-bottom: 1px solid var(--line); }
.qbc-doubles.quiet { background: none; color: var(--muted); text-align: right; }
.inline-form { display: inline; margin: 0; }
.dup-group { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 14px; overflow: hidden; }
.dup-group > header { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: .9rem; }
.dup-group .table { margin: 0; }
.dup-group footer { padding: 10px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); }
.cm-used { color: var(--muted); font-size: .84rem; }
.cm-inactive td { color: var(--muted); }
.cm-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

/* 1.22.21 automatic backups: how often / at what time / starting on, and the note shown while one runs */
.sched-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .sched-row { grid-template-columns: 1fr; } }
.auto-backup-note { position: fixed; right: 20px; bottom: 20px; z-index: 900; max-width: 420px; padding: 14px 16px; border-radius: 10px; background: #0f172a; color: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); font-size: .95rem; }
.auto-backup-note.bad { background: #991b1b; }
.auto-backup-note button { margin-left: 12px; background: none; border: 1px solid #fff; color: #fff; border-radius: 6px; padding: 2px 10px; min-height: 28px; cursor: pointer; font: inherit; }

/* 1.22.22 the self-declaration an accountant or CPA firm accepts */
.declare-box { border: 1px solid #cbd5e1; border-radius: 10px; padding: 14px 16px; margin: 12px 0; background: #f8fafc; }
.declare-box legend { font-weight: 700; padding: 0 6px; }
.declare-box p { margin: 0 0 10px; }

/* 1.22.27 the time record on an invoice: each day worked */
.bk-inv-timetbl { width: auto; min-width: 260px; margin: 4px 0 14px; font-size: 12.5px; }
.bk-inv-timetbl th, .bk-inv-timetbl td { padding: 3px 14px 3px 0; }
.bk-inv[data-style="modern"] .bk-inv-timetbl, .bk-inv[data-style="bold"] .bk-inv-timetbl { margin-left: 38px; margin-right: 38px; }

/* 1.22.30 Customer / Vendor Centre: open, overdue and paid at a glance; the list's own view filter and totals */
.qbc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.qbc-chip { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; text-align: left; padding: 6px 12px; border: 1px solid var(--line, #d8dee6); border-radius: 8px; background: var(--card, #fff); color: inherit; font: inherit; cursor: pointer; min-height: 44px; }
.qbc-chip span { grid-column: 1 / -1; font-size: 12px; color: var(--muted, #5b6675); }
.qbc-chip b { font-size: 16px; }
.qbc-chip em { font-style: normal; font-size: 12.5px; color: var(--muted, #5b6675); }
.qbc-chip:hover, .qbc-chip[aria-pressed="true"] { border-color: var(--brand, #0f766e); box-shadow: inset 0 0 0 1px var(--brand, #0f766e); }
.qbc-chip:focus-visible { outline: 2px solid var(--brand, #0f766e); outline-offset: 2px; }
.qbc-chip.is-late b { color: var(--danger, #b42318); }
.qbc-view { display: block; margin: 0 0 8px; }
.qbc-view select { max-width: 100%; }
#cc-list tfoot th, #cc-txns tfoot th, #cc-txns tfoot td { border-top: 2px solid var(--line, #d8dee6); position: sticky; bottom: 0; background: var(--card, #fff); }
@media (max-width: 1000px) { .qb-centre { grid-template-columns: minmax(0, 1fr); } .qbc-head .btn-row { flex-wrap: wrap; } .qbc-main .kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }

/* 1.22.31 financial statements on screen: subaccounts under their heading, and amounts that open the books */
.doc-table tr.ind.lvl1 td:first-child { padding-left: 40px; }
.doc-table tr.ind.lvl2 td:first-child { padding-left: 58px; }
.doc-table a.doc-drill { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: zoom-in; }
.doc-table a.doc-drill:hover, .doc-table a.doc-drill:focus-visible { color: var(--brand, #0f766e); text-decoration: underline; outline: none; background: rgba(15, 118, 110, .08); }
.doc-live-tip { margin: 0 0 8px; }
.doc-notes-panel { border: 1px solid var(--line, #d8dee6); border-radius: 10px; padding: 0 12px; margin: 0 0 12px; background: var(--card, #fff); }
.doc-notes-panel > summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.doc-notes-panel iframe { width: 100%; height: 70vh; border: 0; }

/* 1.22.44 a long job's progress: a bar, the percentage and what is being done */
.job-progress { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 12px; max-width: 560px; }
.job-progress progress, .auto-backup-note progress { width: 100%; height: 14px; accent-color: #0f766e; }
.job-progress-text { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.job-progress-hint { font-size: .875rem; color: #475569; }
.auto-backup-note.has-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.auto-backup-note.has-bar progress { grid-column: 1 / -1; accent-color: #5eead4; }

.doc-preview-title { font-size: 1rem; margin: 0 0 10px; }

/* 1.22.45 the automatic schedule */
.auto-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 16px; align-items: end; }
.auto-row label { display: grid; gap: 4px; font-weight: 600; }
.auto-row input, .auto-row select { width: 100%; min-width: 0; }
.auto-days input[type=text] { width: 90px; }
.auto-days input[type=number] { width: 80px; }
.auto-emp { border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 14px 12px; margin: 0 0 12px; min-width: 0; }
.auto-emp legend { font-weight: 700; padding: 0 6px; }
.auto-max { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; flex-wrap: wrap; }
.auto-max input { width: 90px; }
.auto-avail { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px 18px; }
.auto-day { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; }
.auto-day-name { width: 34px; font-weight: 600; }
.auto-day select { min-width: 0; flex: 1 1 96px; }
.auto-day input { width: 62px; flex: 0 0 62px; }

/* 1.22.46 a name on each line of a cheque / deposit */
.pay-line { min-width: 150px; }
.pay-line input[data-pay-in] { width: 100%; min-width: 0; }
.pay-line .pay-to-list { left: auto; right: 0; min-width: 280px; max-width: 80vw; }
.pay-line .pay-to-kind { display: block; margin: 2px 0 0; min-height: 0; color: #475569; }

/* 1.22.47 the company switcher: one column of a fixed width, the list scrolls up and down, a search box on top */
.tm-drop.tm-co-drop { width: 360px; max-width: calc(100vw - 16px); min-width: 0; overflow: hidden; padding: 0; column-count: auto; }
.tm-menu:hover > .tm-co-drop, .tm-menu:focus-within > .tm-co-drop, .tm-menu.tm-peek > .tm-co-drop { display: flex; flex-direction: column; }
.tm-co-search { padding: 8px 10px; border-bottom: 1px solid var(--line-2, #e2e8f0); background: #fff; flex: 0 0 auto; }
.tm-co-search input { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #94a3b8; border-radius: 6px; font: inherit; color: #0f172a; background: #fff; }
.tm-co-search input:focus { outline: 2px solid var(--teal, #0f766e); outline-offset: 1px; }
.tm-co-list { flex: 1 1 auto; min-height: 0; max-height: min(52vh, 440px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px 0; }
.tm-co-list .tm-item { white-space: normal; overflow-wrap: anywhere; }
.tm-co-drop > .tm-sep ~ * { flex: 0 0 auto; }
.tm-co-list [hidden] { display: none !important; }

/* 1.22.49 the grid: this statement beside the same dates last year */
.g-lastyear { background: #f1f5f9; border-left: 3px solid var(--teal, #0f766e); padding: 6px 10px; border-radius: 4px; color: #1e293b; }

/* 1.22.56 screen sharing with support */
.ss-code { font: 700 2.6rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--ink, #0f2742); margin: .2em 0; }
.ss-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #c62828; vertical-align: middle; animation: ss-pulse 1.4s ease-in-out infinite; }
@keyframes ss-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ss-dot { animation: none; } }
.sh-stage { position: relative; margin-top: 12px; background: #111; border-radius: 8px; overflow: hidden; line-height: 0; }
.sh-stage video { width: 100%; height: auto; display: block; }
.sh-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }

/* 1.22.70 referrals: the affiliate's page is wider than a sign-in card; posts and banners to copy */
.auth-wrap:has(.aff-wide) { max-width: 1080px; }
.auth-card:has(.aff-wide) { max-width: none; width: 100%; }
.card-flat { box-shadow: none; background: #f8fafc; margin: 12px 0; padding: 14px 16px; }
.card-flat h3 { margin: 0 0 8px; font-size: 1rem; }
.card-flat textarea { width: 100%; font: inherit; line-height: 1.5; resize: vertical; background: #fff; }
.field.grow { flex: 1 1 320px; }
.field.grow input { width: 100%; }
.kit-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: start; margin-top: 12px; }
.kit-banner { margin: 0; }
.kit-banner canvas { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #f1f5f9; }
.kit-banner figcaption { font-size: .85rem; color: var(--muted); margin: 8px 0; }
.terms-box { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; background: #f8fafc; }
.terms-box h3 { font-size: .95rem; margin: 12px 0 4px; }
.terms-box p { margin: 0 0 8px; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 1.22.73 Invoicing & Inventory workspace ---------- */
.inv-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.inv-list li { line-height: 1.45; }
a.stat { text-decoration: none; color: inherit; }
a.stat:hover, a.stat:focus-visible { border-color: var(--teal); }
a.stat:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.inv-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 20px; }
.inv-plan { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.inv-plan.current { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft), var(--shadow); }
.inv-plan h2 { margin: 0; font-size: 1.15rem; }
.inv-plan .plan-price { font-size: 1.5rem; }
.inv-plan .plan-price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.inv-plan ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; }
.inv-plan li.soon { color: #475569; }
.inv-plan li.soon em { font-style: normal; font-size: .72rem; font-weight: 700; background: #e2e8f0; color: #1e293b; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.inv-plan form, .inv-plan .inv-plan-foot { margin-top: auto; display: grid; gap: 8px; }
.inv-plan .check { font-size: .85rem; }
.inv-billing { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 16px; background: #fff; }
.inv-billing a { padding: 8px 16px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .9rem; }
.inv-billing a[aria-current="true"] { background: var(--navy); color: #fff; }
.inv-billing a:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }

/* ---------- 1.22.74 Help › Add or remove a product ---------- */
.product-pick { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; min-width: 0; }

/* ---------- 1.22.75 Reports to work in ---------- */
.rep-live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.rep-live input[type="search"] { min-width: 220px; }
.rep-cols { position: relative; }
.rep-cols > summary { list-style: none; cursor: pointer; }
.rep-cols > summary::-webkit-details-marker { display: none; }
.rep-cols-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 8px; min-width: 220px; max-height: 320px; overflow: auto; }
.rep-fold { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: 4px 6px; margin-right: 4px; border-radius: 6px; color: var(--navy); }
.rep-fold:hover { background: var(--teal-soft); }
.rep-fold:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
td.rep-barcell { position: relative; }
.rep-share { position: absolute; right: 0; bottom: 2px; height: 3px; background: var(--teal); border-radius: 2px; opacity: .75; }
@media print { .rep-share, .rep-fold { display: none; } }

/* 1.22.76 scanning, the timer */
.scan-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.scan-box input[data-scan-in] { max-width: 100%; }
.scan-cam { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.scan-cam video { width: 100%; max-width: 420px; border-radius: 8px; background: #000; }
.timer-clock { font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 700; }

/* 1.22.77 Standard: the layout most invoicing programs use, in BooksAuto's colours. Company and title across the
   top with the balance due under the title; "Bill to" on the left and the dates in a column on the right; numbered
   lines under a solid heading row; the totals at the right with the balance in a shaded box. */
.bk-inv[data-style="standard"] { padding: 40px 42px; }
.bk-inv[data-style="standard"] .bk-inv-head { margin-bottom: 30px; align-items: flex-start; }
.bk-inv[data-style="standard"] .bk-inv-biz { font-size: 1.2rem; }
.bk-inv[data-style="standard"] .bk-inv-title { font-size: 2.1rem; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: #111827; margin: 0; }
.bk-inv[data-style="standard"] .bk-inv-topdue { display: block; margin: 14px 0 0; }
.bk-inv[data-style="standard"] .bk-inv-topdue span { display: block; font-size: .78rem; color: #4b5563; }
.bk-inv[data-style="standard"] .bk-inv-topdue strong { font-size: 1.25rem; }
.bk-inv[data-style="standard"] .bk-inv-meta { margin-top: 14px; font-size: .86rem; }
.bk-inv[data-style="standard"] .bk-inv-meta > div { display: grid; grid-template-columns: minmax(0, 1fr) 9.5em; gap: 14px; padding: 2px 0; }
.bk-inv[data-style="standard"] .bk-inv-meta dt { color: #4b5563; text-align: right; }
.bk-inv[data-style="standard"] .bk-inv-meta dd { text-align: right; }
.bk-inv[data-style="standard"] .bk-inv-meta > div:first-child dt { font-size: 0; }
.bk-inv[data-style="standard"] .bk-inv-meta > div:first-child dt::after { content: "Number"; font-size: .86rem; }
.bk-inv[data-style="standard"] .bk-inv-to { margin: -6px 0 22px; }
.bk-inv[data-style="standard"] .bk-inv-tolbl { font-size: .86rem; color: #4b5563; }
.bk-inv[data-style="standard"] .bk-c-no { display: table-cell; width: 2.4em; text-align: left; color: #4b5563; }
.bk-inv[data-style="standard"] .bk-tbl thead th { background: var(--inv-accent); color: #fff; border-bottom: 0; font-weight: 600; font-size: .82rem; padding-top: 9px; padding-bottom: 9px; }
.bk-inv[data-style="standard"] .bk-tbl thead th.bk-c-no, .bk-inv[data-style="standard"] .bk-tbl thead th abbr { color: #fff; text-decoration: none; }
.bk-inv[data-style="standard"] .bk-tbl td { border-bottom: 1px solid #e5e7eb; padding-top: 10px; padding-bottom: 10px; vertical-align: top; }
.bk-inv[data-style="standard"] .bk-inv-foot-grid { margin-top: 18px; }
.bk-inv[data-style="standard"] .bk-tot { min-width: 290px; row-gap: 8px; }
.bk-inv[data-style="standard"] span.bk-tot-due, .bk-inv[data-style="standard"] b.bk-tot-due { background: #f1f5f9; padding: 9px 12px; }
.bk-inv[data-style="standard"] span.bk-tot-due { margin-right: -16px; padding-right: 28px; }
.bk-inv[data-style="standard"] .bk-inv-notes { padding-top: 6px; }
@media (max-width: 640px) {
    .bk-inv[data-style="standard"] { padding: 22px 16px; }
    .bk-inv[data-style="standard"] .bk-inv-head { flex-direction: column; }
    .bk-inv[data-style="standard"] .bk-inv-id { text-align: left; }
    .bk-inv[data-style="standard"] .bk-inv-meta > div { grid-template-columns: 8em minmax(0, 1fr); }
    .bk-inv[data-style="standard"] .bk-inv-meta dt, .bk-inv[data-style="standard"] .bk-inv-meta dd { text-align: left; }
    .bk-inv[data-style="standard"] .bk-tot { min-width: 0; }
}
@media print { .bk-inv[data-style="standard"] .bk-tbl thead th, .bk-inv[data-style="standard"] .bk-tot-due { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* 1.22.77 the customer's own page */
.portal-owing { display: flex; align-items: baseline; gap: 10px; font-size: 1.05rem; margin: 0 0 16px; }
.portal-owing strong { font-size: 1.6rem; }

/* 1.22.78 statement grid: move an amount to the other side */
.qb-side { display: block; margin: 3px 0 0 auto; font-size: .74rem; padding: 1px 4px; max-width: 9.5em; }
tr.qb-turned td[data-side-out], tr.qb-turned td[data-side-in] { background: #fff7e6; }

/* 1.22.78 Upload Statement: what the reader is doing. Grey = BooksAuto's own reading; green and blinking = the AI is reading. */
.read-status { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; }
.read-light { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, .25); }
.read-light-ai { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .25); animation: read-blink 1s ease-in-out infinite; }
.read-light-done { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .25); }
@keyframes read-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .read-light-ai { animation: none; outline: 3px solid #16a34a; outline-offset: 2px; } }
.g-menu-tip { max-width: 340px; padding: 10px 12px; font-size: .9rem; line-height: 1.4; color: #1f2d3d; }
/* 1.22.92 a package's presentation: the unit line, and the rules it asks for */
.doc-stmt .ds-unit { font-size: .85rem; line-height: 1.5; }
.doc-table.rs-none tr.rule:not(.dbl) td:not(:first-child) { border-top: 0; }
.doc-table.rt-single tr.dbl td:not(:first-child) { border-bottom: 1px solid #111; }
.doc-table.rt-above tr.dbl td:not(:first-child) { border-bottom: 0; }
/* 1.22.92 the trial balance by financial group */
.fg-table tr.fg-sec td { background: var(--surface-2, #f3f4f6); padding-top: 10px; letter-spacing: .02em; }
.fg-table tr.fg-group td:first-child { padding-left: 12px; }
.fg-table tr.fg-acct td:first-child { padding-left: 28px; }
.fg-table tr.fg-gtot td { border-top: 1px solid currentColor; font-weight: 600; }
.fg-table tr.fg-gtot td:first-child { padding-left: 12px; }
.fg-table tr.fg-stot td { border-top: 1px solid currentColor; font-weight: 700; }
.fg-table tr.fg-net td { border-top: 2px solid currentColor; border-bottom: 3px double currentColor; font-weight: 700; }
.fg-act { white-space: nowrap; }
.fg-act .btn { min-width: 32px; min-height: 32px; }
.fg-move { display: inline-block; position: relative; }
.fg-move > summary { list-style: none; cursor: pointer; }
.fg-move > summary::-webkit-details-marker { display: none; }
.fg-move[open] > form { position: absolute; right: 0; z-index: 5; background: var(--surface, #fff); border: 1px solid var(--border, #d1d5db); border-radius: 8px; padding: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.ye-status .form-inline { gap: 8px; align-items: center; }
.fg-ctl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.fg-ctl label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.fg-ctl select, .fg-ctl input:not([type=hidden]) { width: auto; min-width: 150px; }
.fg-ctl .btn { min-height: 38px; }
.fg-table td:first-child { min-width: 220px; }

/* 1.22.96 The document screen: the PDF itself in the preview pane, page under page as in a PDF viewer */
.doc-view-tabs { display: flex; gap: 8px; margin: 0 0 10px; }
.doc-pdf { background: #525659; border-radius: 8px; padding: 16px; max-height: calc(100vh - 140px); overflow-y: auto; }
.doc-pdf-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.doc-pdf-pages canvas { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); max-width: 100%; height: auto; }
.doc-pdf-msg { color: #fff; text-align: center; margin: 40px 0; }
.doc-pdf.busy .doc-pdf-pages { opacity: .6; transition: opacity .15s; }
/* 1.22.99 ＋ beside an amount in the working view: an adjusting entry on that account */
.doc-aje-add { border: 0; background: none; color: var(--teal); cursor: pointer; font-size: .8rem; padding: 0 0 0 4px; line-height: 1; }
.doc-aje-add:hover, .doc-aje-add:focus-visible { color: var(--navy); }
@media print { .doc-aje-add { display: none; } }
