body, td, label {
    color: #2d2c2f
}

.bg-brand-dark {
    background-color: #250d47;
}

.text-brand,
.text-brand-primary,
.text-finoptimal-purple {
    color: #250d47;
}

a.text-brand:link,
a.text-brand:visited {
    color: #250d47;
}

a.text-brand:hover,
a.text-brand:active,
button.text-brand:hover {
    color: #e91e63;
}

.text-primary-reverse {
    color: #e91e63;
    font-weight: bold;
}

a.text-primary-reverse:link,
a.text-primary-reverse:visited {
    color: #e91e63;
    font-weight: bold;
}

a.text-primary-reverse:hover,
a.text-primary-reverse:active {
    color: #250d47;
    font-weight: bold;
}

.text-brand-secondary,
.text-finoptimal-pink {
    color: #e91e63;
}

a.text-brand-secondary:hover,
a.text-brand-secondary:active {
    color: #250d47;
}

thead.table-dark th.bg-light {
    background-color: #250d47 !important;
    /* border-right: 1px solid #8b99a7 !important; */
}

/* Header text on brand-purple table-dark headers must be white. The console
   tables build their thead cells as <td>, which Bootstrap's table-dark <th>
   color rules miss — so the cells inherited the body's dark gray. */
.table thead.table-dark td,
.table thead.table-dark th {
    /* !important required: the `.table-striped td` rule below forces the
       body text color with !important, which would otherwise drag the
       thead <td> cells dark too. Higher specificity wins between the two. */
    color: var(--bs-white) !important;
}

.btn.btn-purple {
    color: var(--bs-white);
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: #250d47;
    --bs-btn-border-color: #250d47;
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #1a0933;
    --bs-btn-hover-border-color: #1a0933;
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: #1a0933;
    --bs-btn-active-border-color: #1a0933;
    --bs-btn-disabled-color: var(--bs-white);
    --bs-btn-disabled-bg: #250d47;
    --bs-btn-disabled-border-color: #250d47;
}

.btn.btn-blue {
    color: var(--bs-white);
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bs-info);
    --bs-btn-border-color: var(--bs-info);
    --bs-btn-hover-color: var(--bs-dark);
    --bs-btn-hover-bg: var(--bs-info);
    --bs-btn-hover-border-color: var(--bs-info);
    --bs-btn-focus-shadow-rgb: 85 85 102 .15;
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: var(--bs-info);
    --bs-btn-active-border-color: var(--bs-info);
    --bs-btn-active-shadow: none;
    --bs-btn-disabled-color: var(--bs-white);
    --bs-btn-disabled-bg: var(--bs-info);
    --bs-btn-disabled-border-color: var(--bs-info);
    box-shadow: 0 3px 3px 0 rgba(85,85,102,.15), 0 3px 1px -2px rgba(85,85,102,.2), 0 1px 5px 0 rgba(85,85,102,.15);
}
.btn.btn-blue:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}
.btn.btn-blue:focus {
    opacity: .85;
}

.cursor-grab,
*[draggable="true"] {
    cursor: grab;
}

li h1.fo-title {
    color: #250d47;
    font-size: 16px;
    margin: 0;
    padding: 0;
    padding-right: 16px;
    line-height: 38px;
}

.navbar {
    margin: 0;
    padding: 0;
}

.pg-subtitle {
    font-size: 18px;
}

.navbar-vertical.navbar-expand-xs {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 16.625rem !important;
    overflow-y: auto;
    padding: 0;
    box-shadow: none;
}

li.nav-item .nav-link.active {
    background-color: #fff;
    border-bottom: 0;
}

.card-header {
    background-color: #f0f2f5 !important;
}

.table thead th {
    padding: .25rem;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 0;
}

.form-select, .pg-select select {
    display: block;
    width: 100%;
    padding: .25rem 1rem .25rem .35rem;
    -moz-padding-start: -3px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: #495057;
    background-color: rgba(0, 0, 0, 0);
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M2 5l6 6 6-6%27/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 16px 12px;
    border-radius: .375rem;
    transition: .2s ease;
    appearance: none;
}

div.dataTables_wrapper div.dataTables_filter input {
    margin-left: .25em !important;
}

.dataTables_wrapper .dataTables_filter input,
.select2-selection,
.select2-dropdown {
    border: 1px solid lightgray !important;
    border-radius: .375rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    all: unset;
    display: block;
    padding: 1.75rem 1rem .25rem 0;
    -moz-padding-start: -3px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: #495057;
    background-color: rgba(0, 0, 0, 0);
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M2 5l6 6 6-6%27/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 16px 12px;
    transition: .2s ease;
    appearance: none;
}

/* Accruer report Tracks filter — a Select2 control (server-side search) styled to match the sibling
   bootstrap-multiselect `.form-select` filter buttons, and to show a checkbox per dropdown option
   like the legacy multiselect. Scoped off the original <select class="tracks-multiselect"> (the hidden
   sibling Select2 inserts its container after) and the results-list id — NOT a container class, since
   Select2 4.1.0-beta doesn't apply containerCssClass/dropdownCssClass here. Only the accruer tracks
   filter uses Select2 with class `tracks-multiselect`, so nothing else is affected. */
select.tracks-multiselect + .select2-container .select2-selection--multiple {
    height: 33px;
    min-height: 33px;
    padding: 0;
    display: flex;
    align-items: center;                 /* vertically center the label like the sibling filters */
}
select.tracks-multiselect + .select2-container .select2-selection__rendered {
    margin: 0;
    padding: 0 .5rem;
    width: 100%;
    list-style: none;
    text-align: center;                  /* horizontally center like the sibling .form-select buttons */
}
select.tracks-multiselect + .select2-container .select2-selection__rendered li.placeholder {
    margin: 0;
    list-style: none;
    font-size: 14px;                     /* match the rendered legacy multiselect label (.form-select renders 12px here) */
    font-weight: 400;
    line-height: 1.5rem;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Search lives in the dropdown (DropdownSearch adapter), so hide the inline selection search box. */
select.tracks-multiselect + .select2-container .select2-search--inline {
    display: none;
}

/* Dropdown is attached to <body>, so scope it via the results-list id (ends with the select id). */
.select2-results__options[id$="-tracks-multiselect-results"] {
    font-size: 14px;
}
/* Dropdown search box — scope via aria-controls (points at this dropdown's results list). */
.select2-search__field[aria-controls$="-tracks-multiselect-results"] {
    font-size: 14px;
}
.select2-results__options[id$="-tracks-multiselect-results"] .select2-results__option {
    display: flex;
    align-items: center;
    color: #495057;
}
/* Checkbox glyph per selectable option: empty square by default, brand-pink check when selected.
   Scoped to `.select2-results__option--selectable` (Select2's marker for real choices) so message /
   loading rows ("Searching…", "No results found", "Loading more…") get no checkbox. */
.select2-results__options[id$="-tracks-multiselect-results"] .select2-results__option--selectable::before {
    content: '';
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 1px solid #adb5bd;
    border-radius: 5px;                  /* rounded-square like the legacy multiselect checkbox */
    background-color: #fff;
}
.select2-results__options[id$="-tracks-multiselect-results"] .select2-results__option--selected::before {
    background-color: #e91e63;           /* brand pink, matching the legacy multiselect checkbox */
    border-color: #e91e63;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5.5 10 3 3 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;               /* slightly inset check within the 18px box, like the legacy one */
}
/* Selected rows get the same subtle grey background as the legacy multiselect. */
.select2-results__options[id$="-tracks-multiselect-results"] .select2-results__option--selected {
    background-color: #f0f0f0;
}
/* Hover: full blue row + white text, matching the legacy multiselect dropdown (listed last so it
   wins over the selected white background when a selected row is hovered). */
.select2-results__options[id$="-tracks-multiselect-results"] .select2-results__option--highlighted {
    background-color: #6C99E7;
    color: #fff;
}

.form-date {
    display: block;
    width: 100%;
    padding: .25rem;
    -moz-padding-start: -3px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: #495057;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #d2d6da;
    border-radius: .375rem;
    transition: .2s ease;
    appearance: none;
}

.form-control-sm {
    min-height: unset;
    padding: .25rem .75rem;
    font-size: 14px;
    border-radius: .125rem;
}

.form-select-sm {
    font-size: 14px;
    padding: .25rem .75rem;
    -moz-padding-start: -3px;
}

/* The theme's .form-select:focus sets border-color: transparent, so a select you
   just picked from (it keeps focus) lost its box until you clicked elsewhere
   (Jesse, 2026-10-13, Company Settings > Responsibilities). Keep the resting border. */
.form-select:focus, .pg-select select:focus {
    border-color: #d2d6da;
}

.form-check:not(.form-switch) .form-check-input {
    float: revert !important;
    margin-left: -27px !important;
}

.datepicker {
    border: 1px solid lightgray;
}

/* select boxes */
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback), .pg-input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: -1px;
    border-top-left-radius: .375rem;
    border-top-right-radius: .375rem;
    border-bottom-left-radius: .375rem;
    border-bottom-right-radius: .375rem;
}

.form-control-plaintext {
    font-size: .875rem;
    font-weight: 400;
    margin-bottom: .5rem;
    margin-left: .25rem;
}

/*.table-frozen-header {*/
/*    display: flex;*/
/*    overflow: auto;*/
/*    height: 100px;*/
/*}*/

/*.table-frozen-header thead th {*/
/*    position: sticky;*/
/*    top: 0;*/
/*    z-index: 1;*/
/*}*/

.fa-svg-icon {
    display: inline-flex;
    align-self: center;
    /*
        Define a global color for the icons
        In this case black
    */
    fill: #fff;
}

/*
    Define the size of the default icons
*/
.fa-svg-icon svg {
    height: 1em;
    width: 1em;
}

/*
    Positionate the SVG correctly
*/
.fa-svg-icon.svg-baseline svg {
    position: relative;
}

.navbar-icon {
    object-fit: cover;
    width: 20px;
    height: 20px;
    max-height: inherit !important;
}

.nav-link.qbo-on span {
    color: #61953a;
}

.nav-link.qbo-off span {
    color: #990000;
}

.nav-link.qbo-on path {
    fill: #61953a;
}

.nav-link.qbo-off path {
    fill: #990000;
}

.nav-link.qbo-on:hover span, .nav-link.qbo-off:hover span {
    color: #250d47;
}

.nav-link.qbo-on:hover path, .nav-link.qbo-off:hover path {
    /*fill: #c82361;*/ /* hot pink */
    fill: #250d47;
}

.app-card {
    margin-bottom: 1em;
    padding: 1.5em;
    width: 100%;
    border-radius: .5em;
}

/* Danger Zone: Company Settings › Remove Client, for an admin of the managing firm
   (teams/danger_zone.html + components/remove_client_danger_zone.html). */
.danger-zone-card {
    border: 1px solid #dc3545;
}

.danger-zone-title {
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
}

.alert-dismissible .btn-close {
    padding-top: .85rem !important;
    padding-bottom: .85rem !important;
}

.alert-info {
    color: white;
}

/* Solid brand-blue fill for persistent onboarding/info alerts — drops
   Bootstrap's default alert-info gradient (site-bootstrap.css layers a
   linear-gradient(195deg, #49a3f1 0%, #1A73E8 100%) via background-image
   that we have to explicitly clear, otherwise it paints over the flat
   background-color we set here). Applied to the Closer "Where to start"
   alert and the Firm Overview / Firm SOPs explainer alerts. */
:root { --fo-info-blue: #4a90d9; }   /* the blue banner — also the dropdowns' hover (2026-10-08) */
.alert.fo-alert-info-solid {
    background-color: var(--fo-info-blue);
    background-image: none;
    border-color: var(--fo-info-blue);
    font-weight: 400;
}
/* The base sheet sets `p { font-weight: 300 }` globally, which wins over
   the inherited weight from .alert.fo-alert-info-solid above and leaves
   the explainer copy reading washed-out (the user kept seeing 300 on
   the alert text). Force 400 on any <p> inside the solid-info alert so
   the body stays normal weight; <strong> children stay bold. */
.alert.fo-alert-info-solid p {
    font-weight: 400;
}

.alert-success {
    color: white;
}

.alert-danger {
    color: white;
}

/* A link in the white-on-red alert reads white: the theme's dark red alert-link
   disappeared into the red ("Sign in again", fo-signed-out.js). */
.alert-danger .alert-link {
    color: white;
    text-decoration: underline;
}

.alert-warning {
    color: black;
}

.top-table {
    padding-bottom: 6px !important;
    padding-right: 6px !important;
    margin-bottom: 0 !important;
}

.top-table td
table.dataTable {
    margin: 0 !important;
}

.tracks-qbo-svg {
    filter: invert(13%) sepia(14%) saturate(4840%) hue-rotate(231deg) brightness(89%) contrast(103%);
}

.tracks-qbo-svg:hover {
    filter: invert(34%) sepia(67%) saturate(5603%) hue-rotate(321deg) brightness(80%) contrast(96%);
}

#workflow-form {
    /* display: none; */
}

.workflow-detail ol.pg-breadcrumbs,
.workflow-form ol.pg-breadcrumbs {
    padding: 10px 16px !important;
}

.workflow-form input[readonly],
.workflow-form select[readonly] {
    opacity: 0.8;
    color: #878787;
    cursor: default;
}
.multiselect-container .multiselect-all:focus,
.multiselect-container .multiselect-all:hover,
.multiselect-container .multiselect-group:focus,
.multiselect-container .multiselect-group:hover,
.multiselect-container .multiselect-option:focus,
.multiselect-container .multiselect-option:hover {
    background-color: #6C99E7 !important;
}

.multiselect-container .multiselect-filter {
    border-bottom: 1px solid #d3d3d3;
}

.multiselect-container button.multiselect-option.dropdown-item:hover label.form-check-label {
    color: white !important;
}

.multiselect-container .multiselect-filter>input.multiselect-search {
    border-bottom: none;
}

.multiselect-native-select .form-check-label {
    font-size: 14px;
    margin: 0;
    padding: 4px;
}

.multiselect-native-select .multiselect-filter {
    padding-left: 10px;
}

.workflow-form .multiselect-native-select {
    width: 100%;
}

.badge {
    padding: 5px 10px;
    margin: 5px;
    border-radius: 50%;
    background: orange;
    color: white;
    width: 25px;
    /* text-align: right; */
}

.no-badge {
    display: block;
    width: 36.5px;
}

.field-label-td {
    font-size: .875rem;
    /* padding: 5px 5px 5px 0; */
    width: 250px;
}

.field-label-td-xs {
    font-size: .875rem;
    padding: 5px 5px 5px 0;
    width: 100px;
}

.field-input-td,
.starting-field-td,
.ending-field-td,
.open_to-select-month-div {
    font-size: .875rem;
    vertical-align: top;
}

.field-input-td,
#id_open_to,
#id_open_from,
.starting-field-td,
.ending-field-td,
.static-field-td,
#open_to-input-div,
#radio-button-td {
    width: 450px;
    max-width: 450px;
}

.fieldset-helper-text {
    color: #7b809a;
    font-size: 14px;
    font-weight: 400;
    /* sum of .field-label-td and .field-input-td widths */
    width: 700px;
}

.warning-form-text {
    color: red;
    padding-top: 5px;
}

.spreadsheet-sharepoint-admin-hint {
    display: block;
    width: 100%;
    color: #495057;
    font-size: 14px;
    padding-top: 6px;
    margin: 0;
}

#open_from-input-div {
    height: 50px;
}

#starting-input-div,
.starting-select-month-div,
#ending-input-div,
.ending-select-month-div {
    height: 30px;
}

.squish {
    height: 10px !important;
}

.open_to-input-group {
    position: absolute;
    top: 45px;
    left: 551px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
}

.two-lines {
    height: 50px;
    text-align: center;
    /* text-align: center !important; */
}

.align-middle td {
    vertical-align: middle;
}

#rel-date-table {
    z-index: 100;
    position: absolute;
    width: 15%;
    right: -430px;
    top: -110px;
    border-collapse: collapse;
    border-bottom: none;
}

.form-select.text-xs,
.form-select.text-md,
.field-input-td .form-check-input {
    background-color: white;
    border: 1px solid lightgray;
}

.workflow-form .required-field:after {
    content: " *";
    color: red;
}

.workflow-form .fopath_select_client {
    width: 25%;
    display: inline-flex;
    margin-right: 5px;
}
.workflow-form .fopath_select_path {
    width: 25%;
    display: inline-flex;
    margin-right: 5px;
}
.workflow-form .input-group.input-group-static .form-control.fopath_text {
    width: 35%;
    width: calc(50% - 10px);
    display: inline-flex;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.workflow-form fieldset {
    width: 780px;
    padding: 20px 0;
    border-bottom: lightgray solid 1px;
}

.workflow-detail fieldset hr,
.workflow-form fieldset hr {
    width: 700px;
    margin: 30px 40px;
}

.workflow-detail fieldset legend,
.workflow-form fieldset legend,
.workflow-form fieldset div.legend {
    width: 700px;
    margin: 10px 40px;
    font-size: 16px;
    /* border-bottom: lightgray solid 1px; */
    padding-left: 0;
    vertical-align: center;
    font-weight: 500;
}

div.legend-description {
    color: #7b809a;
    margin: 0 40px 5px 40px;
    padding-left: 0;
}

.workflow-detail fieldset .sub-legend,
.workflow-form fieldset .sub-legend,
.workflow-form fieldset div.sub-legend,
div.sub-legend-description {
    width: 700px;
    margin: 10px 40px;
    font-size: 16px;
    padding-left: 0;
    vertical-align: center;
}

/*
.workflow-detail fieldset .sub-legend,
.workflow-form fieldset .sub-legend,
.workflow-form fieldset div.sub-legend {
    border-top: lightgray solid 1px;
}
*/

div.sub-legend-description {
    color: #7b809a;
    margin: 0 40px 25px 40px;
}

.workflow-detail fieldset legend span.expanded,
.workflow-form fieldset legend span.expanded,
.workflow-form fieldset div.legend span.expanded,
.workflow-detail fieldset legend span.collapsed,
.workflow-form fieldset legend span.collapsed,
.workflow-form fieldset div.legend span.collapsed,
.workflow-detail fieldset .sub-legend span.expanded,
.workflow-form fieldset .sub-legend span.expanded,
.workflow-form fieldset div.sub-legend span.expanded,
.workflow-detail fieldset .sub-legend span.collapsed,
.workflow-form fieldset .sub-legend span.collapsed,
.workflow-form fieldset div.sub-legend span.collapsed {
    border: lightgray solid 1px;
    border-radius: 0.375rem;
    vertical-align: center;
    margin: 0;
    margin-right: 5px;
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 0;
    padding-bottom: 0;
    cursor: pointer;
}

/* color: #2d2c2f; */

.fieldset-subsection {
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.workflow-detail .input-group.input-group-dynamic .form-control,
.workflow-detail .input-group.input-group-dynamic .pg-control,
.workflow-detail .input-group.input-group-dynamic .form-control:focus,
.workflow-detail .input-group.input-group-static .form-control,
.workflow-detail .pg-input-group .form-control,
.workflow-detail .input-group.input-group-static .pg-control,
.workflow-detail .pg-input-group .pg-control,
.workflow-detail .input-group.input-group-static
.workflow-detail .form-control:focus {
    background-image: linear-gradient(0deg, #d2d2d2 1px, hsla(0deg, 0%, 82%, 0) 0), linear-gradient(0deg, #d2d2d2 1px, hsla(0deg, 0%, 82%, 0) 0);
    border-radius: 0 !important;
    cursor: unset;
}

.workflow-detail input[type=checkbox] {
    cursor: unset;
}

/* Visible native checkboxes for CheckboxSelectMultiple lists (e.g. Reconciler "Extra
   Columns"). The app's global input styling sets appearance:none, which hides the box
   and renders a stray dot; restore a real checkbox and drop the <ul> bullets so the
   options read as clickable boxes, not a bulleted list. */
input.fo-checkbox {
    appearance: auto;
    -webkit-appearance: auto;
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #250d47;
    cursor: pointer;
    flex: 0 0 auto;
}
ul:has(input.fo-checkbox) {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
ul:has(input.fo-checkbox) li {
    margin: 0;
}
/* Each option is <li><label><input> text</label></li>; lay the row out as a flex
   line so the box and its text are baseline-tidy with consistent spacing. */
ul:has(input.fo-checkbox) label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .3rem 0;
    font-weight: normal;
    cursor: pointer;
}

/* Wrapper for a CheckboxSelectMultiple field (CHECKBOX_MULTIPLE_INPUT_TEMPLATE). Deliberately NOT
   Bootstrap's .input-group: that is display:flex, which strung the label, the option <ul>, and the
   help text across one row. Stack them, then flow the options themselves into columns so a short
   list doesn't burn vertical space. */
.fo-checkbox-field {
    display: block;
}
.fo-checkbox-field > label {
    display: block;
    margin-bottom: .1rem;
}
.fo-checkbox-field ul:has(input.fo-checkbox) {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.75rem;
    margin-top: .35rem;
}

.navbar-vertical.navbar-expand-xs .navbar-nav .nav-link {
    padding-top: .5rem;
    padding-bottom: .5rem;
    margin: 0 1rem;
}

.maintenance-alert {
    margin: 0 12px;
}

.alert-danger,
.alert-dismissible,
.alert-info,
.alert-success,
.alert-warning {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    box-shadow: 0 0.3125rem 0.625rem 0 rgba(0,0,0,.12) !important;
}

/* History */

details {
    padding: 0 !important;
}

summary {
    font-size: 14px !important;
    padding: 5px !important;
}

details ul {
    list-style-type: none !important;;
}

details li {
    font-size: 14px !important;
    border-top: lightgray solid 1px !important;
    padding: 5px !important;
    margin-right: 25px !important;
}

.history-restore {
    padding: 0;
    margin: 0;
}

.truncate {
    max-width: 75px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-toolbar {
    display: inline;
}

.name-column {
    /*max-width: 100px;*/
}

.wider-column {
    max-width: 200px;
}

.x-small-column {
    max-width: 32px;
}

.small-column {
    max-width: 60px;
}

.dropbtn {
}

.dropdown {
    position: relative;
    display: block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    color: white;
    z-index: 9999;
    overflow: hidden;
}

.show {
    display: block;
}
.dropdown-item::placeholder {
  color: rgba(211, 211, 211, 0.766);
}
.dropdown-item {
    width: 250px;
}

.table-striped td {
    border-top: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #2d2c2f !important;
}

.table-striped tr:nth-child(odd) td {
    background-color: var(--bs-table-bg) !important;
}

table.dataTable tfoot tr {
    background-color: #555050;
    color: #fff;
    padding-left: 10px;
}
div .multiselect-container {
    max-height: 300px;
    overflow: auto;
}

.custom-inline-flex {
    display: inline-flex;
}

.btn-header-redact,
.btn-header-redact:hover,
.btn-header-redact:active {
    color: #250d47 !important;
    border-color: #250d47 !important;
    height: 5px !important;
    cursor: default !important;
}

.dropdown-item::placeholder {
    color: rgba(211, 211, 211, 0.766);
}

.workflow-form span.multiselect-native-select button.multiselect {
    margin: 0;
}

.workflow-form button.multiselect,
.workflow-form button.multiselect .multiselect-selected-text {
    text-align: start;
}

.workflow-form div.multiselect-container label.form-check-label {
    padding-left: 10px;
}

.workflow-form-buttons ol {
    --bs-breadcrumb-padding-x: 1rem;
    --bs-breadcrumb-padding-y: 0.5rem;
    --bs-breadcrumb-margin-bottom: 1rem;
    --bs-breadcrumb-bg: #f0f2f5;
    --bs-breadcrumb-border-radius: 0.375rem;
    --bs-breadcrumb-divider-color: #6c757d;
    --bs-breadcrumb-item-padding-x: 0.5rem;
    --bs-breadcrumb-item-active-color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    padding: var(--bs-breadcrumb-padding-y) 38px;
    margin-bottom: var(--bs-breadcrumb-margin-bottom);
    font-size: var(--bs-breadcrumb-font-size);
    list-style: none;
    background-color: var(--bs-breadcrumb-bg);
    border-radius: var(--bs-breadcrumb-border-radius)
}

.workflow-form-buttons ol li {
    width: 350px;
}

.djhj {
    bottom: unset !important;
    top: 0;
}

.djhj-locked {
    background-color: #922B21 !important;
}

.djhj-unlocked {
    background-color: #21922b !important;
}

.djhj-button {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.modal-header {
    padding: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.modal-body {
    padding-left: 24px;
    padding-right: 24px;
}

.modal-body .list-group-item {
    padding-left: 12px;
    padding-right: 12px;
}

.modal-footer {
    padding: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.modal-body div.form-check {
    margin-bottom: 0;
}

.modal-body .form-check-label {
    font-size: 14px;
    color: #2d2c2f;
    margin-top: 0;
    margin-bottom: 0;
}

.modal-body .form-check-input {
    height: 1.0em;
    width: 1.0em;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
}

.modal-body div.list-group-item {
    font-size: 14px;
    padding-top: 4px;
    padding-bottom: 4px;
}

h5.modal-title {
    font-size: 1.125rem;
}

.modal-body h6 {
    font-size: 1rem;
}

#edit-columns-available-column-list {
    overflow-y:auto;
    max-height: 650px;
}

#edit-columns-selected-column-list {
    overflow-y:auto;
    max-height: 650px;
}

table.filters th,
table.filters td {
    padding: 6px 8px;
}

.pointer {
    cursor: pointer;
}
#error-modal-content a,
#error-modal-content code,
#error-modal-content p {
   font-size: 14px;
   font-weight: normal;
}
/*
#error-modal-content p[dir="auto"] {
   margin-bottom: 0;
}
*/

/* AI nav icon */
.icon-invert {
   filter: brightness(0) invert(1);
}

/* Sidebar nav-item "why is this visible?" badges. Stacked along the bottom
   of the icon so they don't collide with the existing top-right .fa-lock
   subscription badge (which answers a different question — "can you use
   it?" vs. "why do you see it?"). Each color is reserved for one reason
   so the meaning stays consistent across the nav: */
.nav-visibility-badge.is-feature-flag { color: #16a34a; } /* green flag — feature flag (early access) */
.nav-visibility-badge.is-admin        { color: #8b5cf6; } /* purple — admin-of-team gate */

/* AI Chat */
.ai-chat-layout {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 155px);
  gap: 1rem;
  position: relative;
}
.ai-chat-sidebar {
  /* Width is user-draggable via the resize handle (App.tsx drives the CSS var,
     persisted in localStorage). Falls back to 240px when unset. */
  width: var(--ai-chat-sidebar-width, 240px);
  min-width: var(--ai-chat-sidebar-width, 240px);
  border-right: 1px solid #e0e0e0;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.15s ease, min-width 0.15s ease;
  position: relative;
}
.ai-chat-sidebar-collapsed {
  width: 40px;
  min-width: 40px;
  padding: 0.5rem 0.25rem;
}
/* Draggable divider between the conversation list and the chat pane. Absolutely
   positioned at the sidebar's right edge so resizing never reflows the flex row.
   Hidden while the sidebar is collapsed. NOTE: distinct class from the existing
   `.ai-chat-resize-handle` (the message-box top drag-handle further down) — that
   one pins a fixed height and would flatten this full-height divider. */
.ai-chat-sidebar-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ai-chat-sidebar-width, 240px);
  width: 10px;
  margin-left: -3px;
  cursor: col-resize;
  z-index: 5;
  background: transparent;
}
.ai-chat-sidebar-resizer:hover,
.ai-chat-resizing .ai-chat-sidebar-resizer {
  background: rgba(0, 0, 0, 0.06);
}
/* While dragging, kill the width transition (so the sidebar tracks the cursor
   1:1) and suppress text selection across the pane. */
.ai-chat-resizing {
  user-select: none;
  cursor: col-resize;
}
.ai-chat-resizing .ai-chat-sidebar {
  transition: none;
}
.ai-chat-sidebar-collapsed .ai-chat-sidebar-list {
  display: none;
}
.ai-chat-sidebar-collapsed .ai-chat-new-btn span:last-child {
  display: none;
}
.ai-chat-sidebar-collapsed .ai-chat-new-btn {
  padding: 0.25rem;
}
.ai-chat-sidebar-toggle {
  align-self: flex-end;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  margin-bottom: 0.25rem;
}
.ai-chat-sidebar-toggle:hover {
  color: #333;
}
.ai-chat-sidebar-collapsed .ai-chat-sidebar-toggle {
  align-self: center;
}
/* Conversation search box (top of the sidebar, above New chat). Styled as one
   bordered row so the icon, the input and the clear button read as a single
   control; the input itself carries no chrome. */
.ai-chat-sidebar-search {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem;
  margin-bottom: 0.4rem;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background-color: #fff;
}
.ai-chat-sidebar-search:focus-within {
  border-color: #e91e63;   /* the focused-input standard */
}
.ai-chat-sidebar-search-icon {
  color: #888;
  font-size: 1rem;
  line-height: 1;
}
.ai-chat-sidebar-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  padding: 0.15rem 0;
}
.ai-chat-sidebar-search-clear {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 0.15rem;
}
.ai-chat-sidebar-search-clear:hover {
  color: #333;
}
.ai-chat-sidebar-search-note {
  font-size: 14px;
  color: #495057;
  padding: 0 0.15rem 0.4rem;
}
/* "Show all chats": clears the search. A link-looking <button>, dark purple, hot pink on hover. */
.ai-chat-sidebar-search-all {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #250d47;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ai-chat-sidebar-search-all:hover,
.ai-chat-sidebar-search-all:focus-visible {
  color: #e91e63;
}
/* The busy sidebar is pointer-events:none so a mutation can't be interrupted
   mid-flight; searching mutates nothing, so the box stays usable. */
.ai-chat-sidebar-busy .ai-chat-sidebar-search {
  pointer-events: auto;
}
.ai-chat-sidebar-collapsed .ai-chat-sidebar-search,
.ai-chat-sidebar-collapsed .ai-chat-sidebar-search-note {
  display: none;
}
/* Keyboard cursor from the search box's arrow keys. Deliberately an outline
   rather than a fill, so it reads as distinct from `.active` (the chat that's
   actually open) when the two land on different rows. */
.ai-chat-sidebar-item.highlighted {
  box-shadow: inset 0 0 0 1px #1a4d8f;
}
/* Marks a hit whose match was inside the messages, not the visible title. */
/* Why a row matched. BOTH kinds are labelled: with only the message badge
   present, a reader had to infer what its absence meant, which isn't
   something you can work out from the UI alone (Jesse, 2026-07-28). The two
   are colour-separated so the eye can group them without reading. */
.ai-chat-sidebar-match-badge {
  flex: none;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 4px;
  padding: 0.15rem 0.25rem;
}
/* Title hits are the expected case and sort first, so they stay quiet. */
.ai-chat-sidebar-match-title {
  color: #6b5b7f;
  background-color: #efecf4;
}
/* A content hit is the surprising one — the row you'd never have found by
   title — so it carries the stronger colour. */
.ai-chat-sidebar-match-content {
  color: #1a4d8f;
  background-color: #e3eef9;
}
.ai-chat-new-btn {
  width: 100%;
  margin-bottom: 0.5rem;
}
/* Split new-chat control: the page's own scope on the main button, every other scope a new
   chat here may carry behind the caret — so a firm or all-companies chat is a choice made at
   creation, never an accident of which page was open (Jesse, 2026-09-14). One Bootstrap
   btn-group, full width. */
.ai-chat-new-split {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 0.5rem;
}
/* Both halves get the SAME explicit geometry: the standard 29px small button. The box was
   2.25rem while `.btn.ai-chat-new-btn` held the main half to 29px, so the caret hung 7px below
   it (Jesse, 2026-10-27: "the bottom doesn't align!"). */
.ai-chat-new-split .ai-chat-new-btn,
.ai-chat-new-split .ai-chat-new-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  min-height: 29px;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
  box-shadow: none;
}
.ai-chat-new-split .ai-chat-new-btn {
  flex: 1 1 0%;
  min-width: 0;
  gap: 0.35rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
  white-space: nowrap;
}
.ai-chat-new-split .ai-chat-new-btn > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-chat-new-split .ai-chat-new-btn-plus {
  line-height: 1;
}
.ai-chat-new-split .ai-chat-new-caret {
  flex: 0 0 2rem;
  width: 2rem;
  padding-left: 0;
  padding-right: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
}
.ai-chat-new-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid #d9dee5;
  background: #fff;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.12);
}
.ai-chat-new-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  font-size: 14px;
  color: #1f2937;
}
.ai-chat-new-option:hover {
  background: #e7f1ff;
}
.ai-chat-sidebar-collapsed .ai-chat-new-caret,
.ai-chat-sidebar-collapsed .ai-chat-new-menu {
  display: none;
}
/* Collapsed, the main half stands alone: round its right side again. */
.ai-chat-sidebar-collapsed .ai-chat-new-split .ai-chat-new-btn {
  border-top-right-radius: var(--bs-btn-border-radius);
  border-bottom-right-radius: var(--bs-btn-border-radius);
}
.ai-chat-sidebar-list {
  flex: 1;
  overflow-y: auto;
}
.ai-chat-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #333;
}
.ai-chat-sidebar-item:hover {
  background-color: #f0f0f0;
}
.ai-chat-sidebar-item.active {
  background-color: #e3eef9;
  color: #1a4d8f;
}
.ai-chat-sidebar-busy {
  pointer-events: none;
}
.ai-chat-sidebar-busy .ai-chat-sidebar-list {
  opacity: 0.5;
}
.ai-chat-sidebar-item.disabled {
  cursor: wait;
}
.ai-chat-sidebar-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Title + its timestamp stack in a column that owns the row's flexible width, so the title
   keeps its ellipsis and the time rides quietly underneath. */
.ai-chat-sidebar-titleblock {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ai-chat-sidebar-time {
  font-size: 14px;
  color: #98a2b3;
  line-height: 1.2;
  white-space: nowrap;
  /* The line now also carries "shared by <name>", and a long name must ellipsize rather
     than push the row wide — the titleblock above is already min-width:0 for this. */
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Whose chat it is, on the same line as the timestamp. Brand blue, matching the 👥 mark
   and the header badge, so ownership reads as one idea wherever it appears. */
.ai-chat-sidebar-sharer {
  color: #1a4d8f;
}
.ai-chat-sidebar-actions {
  display: none;
  gap: 0.25rem;
}
.ai-chat-sidebar-item:hover .ai-chat-sidebar-actions,
.ai-chat-sidebar-item.copied .ai-chat-sidebar-actions {
  display: inline-flex;
}
/* Chat groups (ai/chatGroups.ts): the viewer's own named sections of the list, Slack-style. */
.ai-chat-group {
  border-radius: 6px;
  margin-bottom: 0.35rem;
}
.ai-chat-group-drop {
  background: #f4f1f8;
  box-shadow: inset 0 0 0 1px #c9b8e0;
}
/* A group is a card: a rail in its own colour down the left, a tinted header, a faint wash
   behind its chats — so where one group ends and the next (or the ungrouped Chats) begins
   reads at a glance. The colour is picked from the group's id (chatGroups.ts groupTone), so it
   stays put through renames and reordering. Six tones, distinct from each other and from the
   scope chips' pastel fills. */
.ai-chat-group-card {
  border-left: 3px solid var(--ai-group-accent);
  background: var(--ai-group-wash);
  margin-bottom: 0.6rem;
  padding-bottom: 0.15rem;
}
.ai-chat-group-card > .ai-chat-group-header {
  background: var(--ai-group-tint);
  border-radius: 0 6px 6px 0;
  padding: 0.35rem 0.4rem;
  margin-bottom: 0.1rem;
}
.ai-chat-group-card .ai-chat-group-toggle {
  color: var(--ai-group-ink);
  font-size: 14px;
  font-weight: 700;
}
.ai-chat-group-card .ai-chat-group-toggle:hover {
  color: var(--ai-group-accent);
}
.ai-chat-group-card .ai-chat-group-count {
  color: var(--ai-group-ink);
  opacity: 0.7;
}
.ai-chat-group-folder {
  color: var(--ai-group-accent);
}
.ai-chat-group-card.ai-chat-group-drop {
  background: var(--ai-group-tint);
  box-shadow: inset 0 0 0 2px var(--ai-group-accent);
}
.ai-chat-group-card .ai-chat-group-empty {
  padding-left: 1.6rem;
}
.ai-chat-group-tone-0 { --ai-group-accent: #7c5cc4; --ai-group-ink: #4b3a6b; --ai-group-tint: #ece6f7; --ai-group-wash: #f8f6fc; }
.ai-chat-group-tone-1 { --ai-group-accent: #1a8a8a; --ai-group-ink: #135e5e; --ai-group-tint: #dff1f0; --ai-group-wash: #f4fafa; }
.ai-chat-group-tone-2 { --ai-group-accent: #c98a16; --ai-group-ink: #7a5405; --ai-group-tint: #fbefd6; --ai-group-wash: #fdf9f0; }
.ai-chat-group-tone-3 { --ai-group-accent: #c2476b; --ai-group-ink: #862c47; --ai-group-tint: #f8e1e8; --ai-group-wash: #fcf5f7; }
.ai-chat-group-tone-4 { --ai-group-accent: #3b73c4; --ai-group-ink: #1f4a85; --ai-group-tint: #e1ebf8; --ai-group-wash: #f5f8fd; }
.ai-chat-group-tone-5 { --ai-group-accent: #3f8f4f; --ai-group-ink: #285c33; --ai-group-tint: #e2f1e5; --ai-group-wash: #f5faf6; }
.ai-chat-group-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.35rem 0.15rem;
  min-height: 1.75rem;
}
.ai-chat-group-toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #667085;
}
.ai-chat-group-toggle:hover {
  color: #333;
}
.ai-chat-group-caret {
  display: inline-block;
  width: 0.7rem;
  transition: transform 0.12s ease;
}
.ai-chat-group-caret-closed {
  transform: rotate(-90deg);
}
.ai-chat-group-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-chat-group-name-plain {
  font-size: 14px;
  font-weight: 600;
  color: #667085;
  padding-left: 1.05rem;
}
.ai-chat-group-count {
  flex-shrink: 0;
  font-weight: 400;
  font-size: 12px;
  color: #98a2b3;
}
.ai-chat-group-actions {
  display: none;
  gap: 0.1rem;
}
.ai-chat-group-header:hover .ai-chat-group-actions {
  display: inline-flex;
}
.ai-chat-group-actions .ai-chat-action-icon {
  font-size: 0.8rem;
}
.ai-chat-group-empty {
  font-size: 14px;
  color: #98a2b3;
  padding: 0.2rem 0.5rem 0.4rem 1.4rem;
}
.ai-chat-group-new {
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0.1rem 0.25rem 0.4rem;
  font-size: 14px;
  color: #667085;
}
.ai-chat-group-new:hover {
  color: #1a4d8f;
}
.ai-chat-group-input {
  font-size: 14px;
}
.ai-chat-group-new-input {
  margin-bottom: 0.4rem;
}
/* "Move to group": drawn in the list flow under its row rather than floating, so the list's
   own scroll can never clip it. */
.ai-chat-group-menu {
  margin: 0.1rem 0.25rem 0.35rem 1rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid #d9dee5;
  background: #fff;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.12);
}
.ai-chat-group-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.3rem 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  font-size: 14px;
  color: #1f2937;
}
.ai-chat-group-menu-item:hover {
  background: #e7f1ff;
}
.ai-chat-group-menu-item-on {
  font-weight: 600;
  color: #1a4d8f;
}
.ai-chat-group-menu-item-muted {
  color: #667085;
}
.ai-chat-action-icon-on {
  color: #1a4d8f;
}
.ai-chat-sidebar-item-dragging {
  opacity: 0.45;
}
/* The open chat shown under its folded group — says why it didn't fold away. */
.ai-chat-sidebar-open-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ai-group-ink, #1a4d8f);
  border: 1px solid var(--ai-group-accent, #1a4d8f);
  border-radius: 999px;
  padding: 0 0.35rem;
  line-height: 1.4;
}
/* Which of your groups a search hit is filed in — search lists flat, with no section headers. */
.ai-chat-sidebar-group-tag {
  color: var(--ai-group-ink, #667085);
  font-weight: 600;
}
.ai-chat-sidebar-group-tag .svg-inline--fa,
.ai-chat-sidebar-group-tag .fa-folder {
  color: var(--ai-group-accent, #667085);
}
.ai-chat-group-header-draggable {
  cursor: grab;
}
.ai-chat-group-header-dragging {
  opacity: 0.45;
}
.ai-chat-sidebar-collapsed .ai-chat-group-new,
.ai-chat-sidebar-collapsed .ai-chat-group-new-input {
  display: none;
}
.ai-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* The chat header (ai/ConversationTitle.tsx): the subject and its copy-link first, taking every
   pixel the chips leave; the chips, then the cost and clock, at the right. Nothing appears on
   hover, so nothing moves (Jesse, 2026-10-27). Too narrow for both, the chips wrap under it. */
.ai-chat-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #eee;
  min-height: 2.5rem;
}
.ai-chat-title-main {
  display: flex;
  align-items: center;
  flex: 1 1 12rem;
  min-width: 0;
}
.ai-chat-title-text {
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #250d47;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-chat-title-text-editable {
  cursor: text;
}
.ai-chat-title .closer-copy-link.ai-chat-title-copy {
  flex-shrink: 0;
}
.ai-chat-title-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  /* Stays at the far end while the subject is being renamed, too. */
  margin-left: auto;
}
.ai-chat-title-action {
  cursor: pointer;
  color: #999;
  transition: color 0.15s;
}
.ai-chat-title-action:hover {
  color: #e91e63;
}
.ai-chat-title-id {
  font-size: 14px;
  color: #ccc;
  white-space: nowrap;
  user-select: all;
  cursor: pointer;
}
.ai-chat-title-edit {
  max-width: 400px;
}
/* The Harvest clock (HarvestClock.tsx) comes before the cost in the markup; `order` seats it
   last, at the header's far end. */
.ai-chat-title-timer {
  order: 1;
}
.ai-chat-title-action,
.ai-chat-title-id {
  order: 2;
}
.ai-chat-title-closer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 14px;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: #f3e5f5;
  color: #6a1b9a;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
    /* Two nowrap pills beside a long title were squeezable — the pill is the navigation,
       the title can ellipsize (#1920 round 1). */
    flex-shrink: 0;
}
.ai-chat-title-closer-link:hover {
  background: #e1bee7;
  color: #4a148c;
  text-decoration: none;
}
/* --- Who can see the chat ---------------------------------------------------
   ONE chip (ai/chatVisibility.ts): the scope chip's shape, quiet while the chat is
   private, the brand blue once the team can read it, like the sidebar's team mark.
   Blue rather than the purple of the ↗ back-link pills beside it: a back-link is
   somewhere to GO, this is a fact about who can READ the thread. Its menu shares
   the scope menu's box; its items take the narrow items' cooler blue. */
.ai-chat-title-scope.ai-chat-title-vis-team,
.ai-chat-title-scope.ai-chat-title-vis-firm_only,
.ai-chat-title-scope.ai-chat-title-vis-client {
  background: #e3eef9;
  border-color: #c8d6e5;
  color: #1a4d8f;
}
.ai-chat-title-scope.ai-chat-title-vis-open {
  cursor: pointer;
}
.ai-chat-title-scope.ai-chat-title-vis-open:hover {
  border-color: #1a4d8f;
}
/* Near the header's right end, so the menu opens leftward. */
.ai-chat-title-scope-menu.ai-chat-title-vis-menu {
  left: auto;
  right: 0;
}
.ai-chat-title-vis-check {
  display: inline-block;
  width: 1rem;
}
.ai-chat-title-vis-option.is-current {
  font-weight: 600;
}
/* The scope chip: what this chat's tools reach. Quiet for the default (company),
   its own colour for a wide scope — reaching many companies is the unusual case
   and should read that way. Widenable chips get a caret and a pointer. */
.ai-chat-title-scope-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.ai-chat-title-scope {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 14px;
  line-height: 1.4;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #d9dee5;
  background: #f3f5f8;
  color: #4b5563;
  white-space: nowrap;
  cursor: default;
}
.ai-chat-title-scope-wide {
  background: #fdf1e3;
  border-color: #f0c893;
  color: #8a4b08;
}
.ai-chat-title-scope-widenable {
  cursor: pointer;
}
.ai-chat-title-scope-widenable:hover {
  border-color: #8a4b08;
}
.ai-chat-title-scope-caret {
  margin-left: 0.15rem;
  font-size: 0.65rem;
}
.ai-chat-title-scope-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 16rem;
  /* The narrow list is every team set inside the chat's reach — a firm chat can see a
     dozen, so the menu scrolls rather than running off the bottom of the header. */
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid #d9dee5;
  background: #fff;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.12);
}
.ai-chat-title-scope-search {
  display: block;
  width: calc(100% - 1rem);
  margin: 0.15rem 0.5rem 0.35rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #d9dee5;
  border-radius: 0.375rem;
  font-size: 14px;
  color: #1f2937;
}
.ai-chat-title-scope-empty {
  padding: 0.25rem 0.5rem 0.4rem;
  font-size: 14px;
  color: #6b7280;
}
.ai-chat-title-scope-menu-head {
  padding: 0.25rem 0.5rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}
.ai-chat-title-scope-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  font-size: 14px;
  color: #1f2937;
  white-space: nowrap;
}
.ai-chat-title-scope-option:hover {
  background: #fdf1e3;
  color: #8a4b08;
}
/* Narrowing moves the chat onto another company's page, so it reads as the colder, more
   deliberate half of the menu and takes a second click to confirm (like "Make team chat"). */
.ai-chat-title-scope-option-narrow:hover,
.ai-chat-title-vis-option:hover {
  background: #eef2f8;
  color: #1a4d8f;
}
.ai-chat-title-scope-option-narrow.is-armed,
.ai-chat-title-scope-option-narrow.is-armed:hover,
.ai-chat-title-vis-option.is-armed,
.ai-chat-title-vis-option.is-armed:hover {
  background: #1a4d8f;
  color: #fff;
  font-weight: 600;
}
.ai-chat-title-readonly {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  font-size: 14px;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  white-space: nowrap;
}
/* Sidebar company filter (below the search box): one typable box. Empty, the list is every
   chat the user can see; a chosen company shows as the placeholder with a clear button. The
   results dropdown follows the top-nav quicknav's look. */
.ai-chat-company-filter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem;
  margin-bottom: 0.4rem;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background-color: #fff;
}
.ai-chat-company-filter:focus-within {
  border-color: #1a4d8f;
}
.ai-chat-company-filter.has-value {
  border-color: #b7c7e0;
  background-color: #f3f6fb;
}
.ai-chat-company-filter-icon {
  color: #888;
  font-size: 0.8rem;
  line-height: 1;
}
.ai-chat-company-filter.has-value .ai-chat-company-filter-icon {
  color: #1a4d8f;
}
.ai-chat-company-filter-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  padding: 0.15rem 0;
}
.ai-chat-company-filter.has-value .ai-chat-company-filter-input::placeholder {
  color: #1a4d8f;
  font-weight: 600;
  opacity: 1;
}
.ai-chat-company-filter-clear {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 0.15rem;
}
.ai-chat-company-filter-clear:hover {
  color: #333;
}
.ai-chat-company-filter-results {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 1050;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background-color: #fff;
  border: 1px solid #e4def0;
  border-radius: 0.6rem;
  box-shadow: 0 12px 32px rgba(37, 13, 71, 0.18);
  max-height: 18rem;
  overflow-y: auto;
}
.ai-chat-company-filter-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  color: #250d47;
}
.ai-chat-company-filter-result.is-active,
.ai-chat-company-filter-result:hover {
  background-color: #e7f1ff;
}
.ai-chat-company-filter-all {
  font-weight: 600;
  color: #1a4d8f;
}
.ai-chat-company-filter-result-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-chat-company-filter-result-slug {
  flex: 0 0 auto;
  font-size: 14px;
  color: #7a6a95;
}
/* Marks the rows that stand for a whole roster rather than one company. */
.ai-chat-company-filter-result-kind {
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 0.25rem;
  background: #ece6f5;
  color: #4b3a6b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.ai-chat-company-filter-empty {
  padding: 0.4rem 0.5rem;
  font-size: 14px;
  color: #888;
}
.ai-chat-sidebar-busy .ai-chat-company-filter {
  pointer-events: auto;
}
.ai-chat-sidebar-collapsed .ai-chat-company-filter {
  display: none;
}
/* Sidebar rows in a wide listing: which company the chat belongs to. */
/* Legacy name, kept for the deployed bundle's markup. The live sidebar draws ONE chip
   (.ai-chat-scope-mark) whose colour carries the kind. */
.ai-chat-company-mark {
  display: inline-block;
  margin-right: 0.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #e8eef7;
  color: #1a4d8f;
  vertical-align: middle;
}
/* Sidebar rows: the one-word tag a wide scope carries. */
/* The row's ONE scope chip. Two pills — a kind tag plus a name — said the same thing twice
   and pushed the title off the row (Jesse, 2026-09-14), so the kind lives in the colour and,
   where the name alone is ambiguous, in a parenthetical. */
.ai-chat-scope-mark {
  display: inline-block;
  margin-right: 0.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  background: #e8eef7;
  color: #1a4d8f;
}
/* Blue — one company, the ordinary case and the colour these rows already carried. */
.ai-chat-scope-mark-company {
  background: #e8eef7;
  color: #1a4d8f;
}
/* Yellow — a firm's client roster. */
.ai-chat-scope-mark-firm {
  background: #fcf2ce;
  color: #7a5a05;
}
/* Violet — a team set, matching the firm badge in the sidebar's filter. */
.ai-chat-scope-mark-team-set {
  background: #ece6f5;
  color: #4b3a6b;
}
/* Claude orange — every company the user can open. The loudest scope gets the loudest chip. */
.ai-chat-scope-mark-global {
  background: #f7e2d9;
  color: #a2452a;
}
/* Replaces the composer on a shared wide thread the viewer may only read. */
.ai-chat-readonly-note {
  padding: 0.75rem 1rem;
  border: 1px dashed #d9dee5;
  border-radius: 0.75rem;
  background: #f9fafb;
  color: #6b7280;
  font-size: 14px;
}
/* Sidebar rows are dense, so the same fact is carried by the icon alone. */
.ai-chat-shared-mark {
  color: #1a4d8f;
  margin-right: 0.3rem;
}
.ai-chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  margin-bottom: 1rem;
}
.ai-chat-empty {
  text-align: center;
  color: #999;
  margin-top: 4rem;
  font-size: 1.1rem;
}
.ai-chat-error {
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  background-color: #fff3f3;
  color: #c00;
  border-radius: 8px;
  font-size: 0.9rem;
}
.ai-chat-row {
  display: flex;
  margin: 0.25rem 0;
}
.ai-chat-row-user {
  justify-content: flex-end;
}
.ai-chat-row-assistant {
  justify-content: flex-start;
}
.ai-chat-col {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}
.ai-chat-col-user {
  align-items: flex-end;
}
.ai-chat-col-assistant {
  align-items: flex-start;
}
.ai-chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
}
.ai-chat-bubble-user {
  background-color: #4a90d9;
  color: #fff;
  white-space: pre-wrap;
}
.ai-chat-bubble-user-pending {
  opacity: 0.55;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font-style: italic;
}
.ai-chat-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
  vertical-align: middle;
}
.ai-chat-indicator-unread {
  background-color: #2b8cff;
  box-shadow: 0 0 4px rgba(43, 140, 255, 0.7);
}
.ai-chat-indicator-loading {
  background-color: #2b8cff;
  animation: ai-chat-pulse 1.2s ease-in-out infinite;
}
@keyframes ai-chat-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}
.ai-chat-queued-label {
  font-size: 12px;
  color: #888;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}
/* "Stop and send now" beside a queued message (QueuedMessagePill). */
.ai-chat-queued-send-now {
  margin-right: 0.25rem;
}
.ai-chat-bubble-assistant {
  background-color: #f0f0f0;
  color: #333;
}
.ai-chat-bubble-error {
  background-color: #dc3545;
  color: #fff;
}
/* Markdown element styling shared between the AI chat assistant bubble and the
   Closer note/summary bodies (.ai-markdown). The chat bubble keeps its own
   selector so this is purely additive — adding .ai-markdown to the Closer note
   containers gives them the exact same heading/table/list/code formatting. */
.ai-chat-bubble-assistant h1,
.ai-markdown h1 { font-size: 1.25rem; }
.ai-chat-bubble-assistant h2,
.ai-markdown h2 { font-size: 1.0rem; }
.ai-chat-bubble-assistant h3,
.ai-markdown h3 { font-size: 1rem; }
.ai-chat-bubble-assistant h4,
.ai-chat-bubble-assistant h5,
.ai-chat-bubble-assistant h6,
.ai-markdown h4,
.ai-markdown h5,
.ai-markdown h6 { font-size: 0.95rem; }
.ai-chat-bubble-assistant p,
.ai-markdown p,
.ai-chat-bubble-assistant li,
.ai-markdown li {
  margin: 0 0 0.5rem;
  font-weight: 400;
  color: inherit;
}
/* Single body-text baseline for ALL rendered markdown — standing docs
   (.fo-overview-doc), Closer notes (.closer-note-md), the monthly review
   summary (.closer-summary) all share .ai-markdown for typography, so a
   plain paragraph reads the same as a list item across every product
   surface (Firm Overview, Company Overview, Closer). Per-app classes
   keep only structural rules (max-height, overflow, table treatment) on
   top of this baseline. */
.ai-markdown {
  color: #2d2c2f;
  line-height: 1.5;
}
.ai-markdown ul,
.ai-markdown ol {
  margin: 0 0 0.5rem;
  padding-left: 1.4rem;
}
/* Links in rendered markdown — the AI chat assistant bubble AND every
   .ai-markdown body (Closer notes, the monthly review, standing docs). One
   rule for both: the chat surface is DRY, so its link affordance should be
   too.

   Neither surface announced a link before (Jesse, 2026-09-20: "This isn't
   obviously a link unless I mouse over it — the color isn't different
   enough"), and `$link-decoration: none` means NOTHING is underlined
   anywhere. The chat bubble was the worse of the two: it carries no
   .ai-markdown class, so its links fell all the way through to
   site-bootstrap.css's `a { color: #250d47 }` — brand purple, 1.4:1 against
   the bubble's own #333 body text, i.e. the same darkness as the prose around
   it. The .ai-markdown bodies (Closer cards, on white) had `color: #e91e63`,
   visibly pink but 4.3:1 — under the 4.5:1 AA floor for body text — and
   likewise undecorated.

   So: one brand-pink value dark enough to pass WCAG AA as body text (5.2:1 on
   the bubble, 5.9:1 on white), plus the underline — the one affordance that
   survives a color-blind reader, a screenshot and a glance. Hover goes brand
   purple, matching a.text-brand-secondary:hover above.

   The weight bump applies to the .ai-markdown bodies too (Closer notes, the
   monthly review), which previously rendered links at the body's 400 -- part
   of the same "a link should look like one" change, not an oversight.

   Scoped to the block elements react-markdown emits as DIRECT children of the
   bubble, so the bubble's non-prose links keep the treatment they were given:
   the attachment thumbnails / download chips (inside
   .ai-chat-bubble-attachments) and the Sources list (inside
   .ai-chat-citations) are chrome, not prose, and stay un-underlined. The
   `section` in the list is GFM footnotes, which react-markdown emits as
   <section class="footnotes"> -- prose, and missed by the first cut. */
.ai-chat-bubble-assistant > :is(p, ul, ol, blockquote, table, section, h1, h2, h3, h4, h5, h6) a,
.ai-markdown a {
  color: #c2185b;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 500;
}
.ai-chat-bubble-assistant > :is(p, ul, ol, blockquote, table, section, h1, h2, h3, h4, h5, h6) a:hover,
.ai-chat-bubble-assistant > :is(p, ul, ol, blockquote, table, section, h1, h2, h3, h4, h5, h6) a:focus,
.ai-markdown a:hover,
.ai-markdown a:focus {
  color: #250d47;
  text-decoration-thickness: 2px;
}
/* Title-case rendered markdown section headings. CSS `capitalize` only
   uppercases the FIRST letter of each word and leaves the rest alone —
   so "Source files" becomes "Source Files" while existing CamelCase
   ("QuickBooks Company Context") stays untouched. */
.ai-markdown h1,
.ai-markdown h2,
.ai-markdown h3,
.ai-markdown h4,
.ai-markdown h5,
.ai-markdown h6 {
  text-transform: capitalize;
}
.ai-chat-bubble-assistant p:last-child,
.ai-markdown p:last-child {
  margin-bottom: 0;
}
.ai-chat-bubble-assistant table,
.ai-markdown table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5rem 0;
  font-size: 14px;
}
.ai-chat-bubble-assistant th,
.ai-chat-bubble-assistant td,
.ai-markdown th,
.ai-markdown td {
  border: 1px solid #ccc;
  padding: 0.3rem 0.25rem;
  text-align: left;
  /* The bubble's `word-break: break-word` lets auto table layout shrink every
     column to ONE character, so a long Description squeezes its neighbours
     until "$1,943.29" and "Insurance" split mid-token (TM-1939). Words and
     amounts stay whole; only links and code may break anywhere (below). */
  word-break: normal;
}
/* A long URL or id in a cell would otherwise widen the table past the bubble. */
.ai-chat-bubble-assistant :is(td, th) :is(a, code),
.ai-markdown :is(td, th) :is(a, code) {
  overflow-wrap: anywhere;
}
.ai-chat-bubble-assistant th,
.ai-markdown th {
  background-color: #e0e0e0;
  font-weight: 600;
}
.ai-chat-bubble-assistant code {
  background-color: #e0e0e0;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.85em;
}
/* Notes render <code> as plain inline (Bootstrap-pink) text — no gray badge,
   just the smaller monospace size. (Chat bubbles keep their chip look above.) */
.ai-markdown code {
  font-size: 0.85em;
}
.ai-chat-bubble-assistant pre,
.ai-markdown pre {
  background-color: #e0e0e0;
  padding: 0.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0.5rem 0;
}
.ai-chat-bubble-assistant pre code,
.ai-markdown pre code {
  padding: 0;
  background: none;
}
.ai-chat-bubble-assistant ul,
.ai-chat-bubble-assistant ol,
.ai-markdown ul,
.ai-markdown ol {
  margin: 0.25rem 0;
  padding-left: 1.5rem;
}
/* Note markdown lives inside a <details> (the Open-for-review / Recently-
   resolved wraps). Restore normal list rendering over the global
   `details ul/li { ... !important }` rules, which would otherwise strip the
   bullets and draw a border between every list item. (.ai-markdown beats the
   bare `details ul/li` element selectors on specificity.) */
.ai-markdown ul { list-style: disc !important; }
.ai-markdown ol { list-style: decimal !important; }
.ai-markdown li {
  font-size: inherit !important;
  border-top: 0 !important;
  padding: 0 !important;
  margin-right: 0 !important;
}
/* Same for a conversation message and the composer box: the thread sits in a
   <details> (the Messages & Events section), and a message's lists
   (message_text.py) must keep their bullets there. */
.conversations-msg-body ul,
.conversations-composer-editor ul { list-style: disc !important; }
.conversations-msg-body ol,
.conversations-composer-editor ol { list-style: decimal !important; }
.conversations-msg-body li,
.conversations-composer-editor li {
  font-size: inherit !important;
  border-top: 0 !important;
  padding: 0 !important;
  margin-right: 0 !important;
}
.ai-chat-live-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 14px;
  font-style: italic;
  color: #666;
  background: #f5f2fa;
  border-left: 3px solid #250d47;
  border-radius: 2px;
}
.ai-chat-staff-controls {
  display: flex;
  justify-content: flex-start;
  /* 1rem left inset matches .ai-chat-scroll's padding so the toggle's left edge
     lines up with the response bubbles. Equal 0.25rem top/bottom padding. */
  padding: 0.25rem 1rem;
}
/* Shared tool-call show/hide toggle (AI Console + Closer Discussion). Brand-pink
   uppercase link, no chrome — see ai/ToolCallsToggle.tsx. */
.ai-toolcalls-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #e91e63;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.ai-chat-tool-call {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  padding: 0.25rem 0.5rem;
  font-size: 14px;
  font-style: italic;
  color: #555;
  background: #fff;
  border-left: 3px solid #250d47;
  border-radius: 2px;
  word-break: break-word;
}
.ai-chat-tool-call-label {
  display: block;
}
.ai-chat-tool-call-updates {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
  font-size: 14px;
  font-style: normal;
  color: #6a5a87;
}
.ai-chat-tool-call-updates li {
  padding: 0.08rem 0;
}
/* Faint marker for a tool-only assistant turn whose tool chips are hidden,
   so the bubble reads as real activity instead of an empty rectangle. */
.ai-chat-tool-only-placeholder,
.ai-chat-thinking-placeholder {
  font-size: 14px;
  font-style: italic;
  color: #9a8fb0;
  letter-spacing: 0.04em;
}
/* Closer "Needs your attention": agent proposals waiting on a person (closer/NeedsAttention.tsx). */
.closer-attention-card { margin-top: 1rem; padding: .6rem .9rem; border: 1px solid #dee2e6; }
.closer-attention-head { display: flex; align-items: center; }
.closer-attention-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.closer-attention-row { display: flex; align-items: flex-start; gap: .75rem; padding: .45rem 0; border-top: 1px solid #dee2e6; }
.closer-attention-main { flex: 1; min-width: 0; }
.closer-attention-summary { font-size: 14px; font-weight: 400; color: #2d2c2f; white-space: pre-wrap; }
.closer-attention-meta, .closer-attention-error { font-size: 14px; color: #495057; margin-top: .15rem; }
.closer-attention-meta a { color: #250d47; text-decoration: none; }
.closer-attention-meta a:hover { color: #e91e63; }
.closer-attention-actions, .closer-attention-decline { display: flex; gap: .4rem; align-items: center; }
.closer-attention-decline { margin-top: .35rem; }
.closer-attention-decline .form-control { max-width: 28rem; }
/* What a proposal would change, and a chat's proposals under it (TM-2423; closer/ProposalDetail.tsx). */
.closer-attention-change { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.closer-attention-summary.closer-attention-title { font-weight: 600; }
/* An entry's title opens the transaction drill (ProposalChanges.tsx EntryTitle). */
.closer-proposal-open { border: 0; background: none; padding: 0; font: inherit; color: #250d47; text-decoration: none; text-align: left; }
.closer-proposal-open:hover { color: #e91e63; }
.closer-attention-more { border: 0; background: none; padding: 0; font-size: 14px; color: #250d47; }
.closer-attention-more:hover { color: #e91e63; }
.closer-attention-caret { display: inline-block; transition: transform .12s ease; }
.closer-attention-caret-open { transform: rotate(90deg); }
.closer-attention-group { border-top: 1px solid #dee2e6; padding-top: .45rem; }
.closer-attention-group-head { display: flex; align-items: center; gap: .75rem; }
.closer-attention-group-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #250d47; }
.closer-attention-group-title a { color: #250d47; text-decoration: none; }
.closer-attention-group-title a:hover { color: #e91e63; }
.closer-attention-group-list { margin-top: .3rem; padding-left: 1rem; }
.closer-attention-progress { font-size: 14px; }
.closer-proposal-detail { margin-top: .35rem; padding: .3rem .6rem; border-left: 3px solid #dee2e6; }
.closer-proposal-item + .closer-proposal-item { margin-top: .4rem; }
.closer-proposal-title { font-size: 14px; font-weight: 600; color: #2d2c2f; }
.closer-proposal-change, .closer-proposal-note { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.closer-proposal-reason { font-size: 14px; font-weight: 400; color: #495057; margin-top: .35rem; }
/* The composer's mic, model pick and Connect your apps (ai/ChatInput.tsx, Ramp Stack gap #13). */
.ai-chat-toolbar-icon-active { color: #e91e63; }
/* Wide enough for "Sonnet 5 (default) · 1× cost" (the cost multiple, 2026-10-20). */
.ai-chat-model-pick { display: inline-block; width: 14rem; margin-left: .35rem; font-size: 14px; }
/* Staff's effort pick and "Use for new chats" beside the model (TM-2308). */
.ai-chat-effort-pick { display: inline-block; width: 9.5rem; margin-left: .35rem; font-size: 14px; }
.ai-chat-run-default { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 .5rem; font-size: 14px; font-weight: 400; color: #2d2c2f; white-space: nowrap; cursor: pointer; }
.ai-chat-run-default .form-check-input.fo-check-bare { margin: 0; flex: none; }
.ai-chat-connect-apps { margin-left: .5rem; font-size: 14px; color: #250d47; text-decoration: none; white-space: nowrap; }
.ai-chat-connect-apps:hover { color: #e91e63; }
/* On a phone (TM-2279) the toolbar wraps instead of pushing the page sideways: the model pick
   shrinks and ellipsizes, Connect your apps keeps only its plug, and the send button stays at the
   row's right end. An iframe on iOS Safari grows to its content, so one wide row widened the
   whole chat, header included. */
@media (max-width: 575.98px) {
  .ai-chat-input-toolbar { flex-wrap: wrap; row-gap: .25rem; min-width: 0; }
  .ai-chat-model-pick { flex: 1 1 8rem; width: auto; min-width: 0; max-width: 14rem; }
  .ai-chat-effort-pick { flex: 1 1 7rem; width: auto; min-width: 0; max-width: 9.5rem; }
  .ai-chat-connect-apps { padding: .25rem .4rem; margin-left: .25rem; }
  .ai-chat-connect-apps-label { display: none; }
}
/* The in-app spreadsheet editor (workbook-grid/index.tsx, Ramp Stack gap #12). */
.fo-grid-editor-backdrop { position: fixed; inset: 0; z-index: 1070; background: rgba(37, 13, 71, .35); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.fo-grid-editor { background: #fff; border-radius: .375rem; width: min(80rem, 100%); max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(37, 13, 71, .25); }
.fo-grid-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid #dee2e6; }
.fo-grid-editor-title { font-size: 14px; font-weight: 600; color: #250d47; }
.fo-grid-editor-body { flex: 1; overflow: auto; padding: .5rem 1rem; font-size: 14px; }
.fo-grid-editor-foot { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; padding: .6rem 1rem; border-top: 1px solid #dee2e6; }
.fo-grid-editor-note { font-size: 14px; color: #495057; margin-right: auto; }
.ai-chat-attachment-chip-group { display: inline-flex; align-items: center; gap: .15rem; }
.ai-chat-attachment-chip-edit { border: 1px solid #dee2e6; background: #fff; color: #250d47; border-radius: .375rem; width: 24px; height: 24px; font-size: 12px; padding: 0; }
.ai-chat-attachment-chip-edit:hover { color: #e91e63; }
/* A skill as a doc beside its run / from its card (ai/SkillDocPanel.tsx, Ramp Stack gap #10). */
.fo-skill-doc-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(36rem, 100vw); z-index: 1060; display: flex; flex-direction: column; background: #fff; border-left: 1px solid #dee2e6; box-shadow: -4px 0 16px rgba(37, 13, 71, .12); }
.fo-skill-doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid #dee2e6; }
.fo-skill-doc-title { font-size: 14px; font-weight: 600; color: #250d47; }
.fo-skill-doc-body { flex: 1; overflow-y: auto; padding: .75rem 1rem; font-size: 14px; color: #2d2c2f; }
.fo-skill-doc-md p, .fo-skill-doc-md li { font-weight: 400; }
.fo-skill-doc-parent { color: #495057; border-left: 3px solid #dee2e6; padding-left: .6rem; }
.fo-skill-doc-editor { height: 100%; min-height: 24rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.fo-skill-doc-note { font-size: 14px; margin-top: .5rem; }
.fo-skill-doc-foot { display: flex; gap: .4rem; padding: .6rem 1rem; border-top: 1px solid #dee2e6; }
/* What every run of a skill must report on (ai/RequiredOutputs.tsx in the doc; the Skills tab's
   card, closer_home.html): a line the playbook no longer mentions is flagged. */
.fo-skill-doc-outputs { margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 1px solid #dee2e6; }
.closer-skill-outputs-list { margin: .25rem 0 .35rem; padding-left: 1.2rem; font-size: 14px; color: #2d2c2f; }
.closer-skill-outputs-list li { font-weight: 400; }
.closer-skill-output-flag { font-size: 14px; white-space: nowrap; }
.closer-skill-outputs-note { font-size: 14px; font-weight: 400; color: #495057; margin: .25rem 0; }
.closer-skill-output-row { display: flex; align-items: center; gap: .3rem; margin-top: .3rem; }
.closer-skill-output-row .form-control { flex: 1; height: 29px; font-size: 14px; color: #2d2c2f; background-color: #fff; border: 1px solid lightgray; border-radius: .375rem; padding: 0 .5rem; }
.closer-skill-output-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.ai-chat-title-skill-doc { margin-left: .35rem; }
/* Skill doc and the chat's cost sit in the title's row of pills (scope, who can see it). As
   theme buttons they were 44px tall, uppercase and wrapped onto two lines; here they take the
   pills' shape and keep their own colours. */
.ai-chat-title .btn.ai-chat-title-skill-doc,
.ai-chat-title-meta > .ai-chat-cost > .btn {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  box-shadow: none;
}
/* Firm Close Summary progress (teams/firm_close.html, Ramp Stack gap #11). */
.fo-close-progress, .fo-close-progress-firm { display: flex; align-items: center; gap: .5rem; }
.fo-close-progress-bar { width: 7rem; height: .5rem; background: #e9ecef; }
.fo-close-progress-firm .fo-close-progress-bar { width: 14rem; }
.fo-close-progress-text { font-size: 14px; color: #495057; white-space: nowrap; }
/* Closer Tasks tab Board view (closer/ChecklistKanban.tsx). */
.closer-board-toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.closer-board-hint { font-size: 14px; color: #495057; font-weight: 400; }   /* a <p> too: not the theme's 300 */
.closer-board-columns { display: flex; gap: .6rem; overflow-x: auto; align-items: flex-start; padding-bottom: .25rem; }
.closer-board-column { flex: 0 0 15rem; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: .375rem; padding: .45rem; }
.closer-board-column-over { border-color: #250d47; box-shadow: 0 0 0 1px #250d47; }
.closer-board-column-head { display: flex; align-items: center; margin-bottom: .35rem; }
.closer-board-list { list-style: none; margin: 0; padding: 0; min-height: 2rem; }
.closer-board-card { background: #fff; border: 1px solid #dee2e6; border-radius: .375rem; padding: .45rem .5rem; margin-bottom: .4rem; cursor: grab; }
.closer-board-card-busy { opacity: .6; cursor: progress; }
.closer-board-subject { font-size: 14px; font-weight: 400; color: #250d47; text-decoration: none; }
.closer-board-subject:hover { color: #e91e63; }
.closer-board-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .3rem; }
.closer-board-person, .closer-board-error, .closer-board-empty { font-size: 14px; color: #495057; }
.closer-board-status { display: flex; align-items: center; margin-top: .35rem; }
.closer-board-reason { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.closer-board-empty { padding: .25rem; }
/* Chat write cards (ai/proposalCards.ts): Approve / Reject under a proposal, and what an apply posted. */
.ai-chat-proposal-actions { display: flex; gap: .4rem; margin-top: .5rem; }
.ai-chat-question-card { margin-top: .5rem; padding: .5rem .6rem; border: 1px solid #dee2e6; border-left: 3px solid #250d47; border-radius: .375rem; background: #fff; }
.ai-chat-question-text { font-size: 14px; font-weight: 400; color: #2d2c2f; margin: .2rem 0 .4rem; white-space: pre-wrap; }
.ai-chat-question-answers, .ai-chat-question-other { display: flex; flex-wrap: wrap; gap: .35rem; }
.ai-chat-question-other { margin-top: .4rem; }
.ai-chat-question-other .form-control { max-width: 24rem; }
.ai-chat-skill-changes { margin: .1rem 0 .45rem; padding-left: 1.2rem; font-size: 14px; color: #2d2c2f; }
.ai-chat-skill-done { font-size: 14px; margin-top: .35rem; }
/* Why an unattended run could not make a staged call itself (ai/ApprovalCard.tsx and a Closer
   comment thread's approval card, closer-fin-comments.js; TM-2306). */
.closer-fin-approval { border-top: 1px solid lightgray; padding: .4rem 0; }
.closer-fin-approval-why { color: #495057; margin: .15rem 0 .3rem; }
.ai-chat-approval-why { font-size: 14px; font-weight: 400; color: #495057; margin: 0 0 .4rem; }
.ai-chat-skill-instructions { max-height: 18rem; overflow: auto; white-space: pre-wrap; font-size: 14px; color: #2d2c2f; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: .375rem; padding: .5rem; margin: .25rem 0 .5rem; }
.ai-chat-plan-text { font-size: 14px; font-family: inherit; }
.ai-chat-posted-card { margin-top: .5rem; padding: .45rem .6rem; border: 1px solid #dee2e6; border-radius: .375rem; background: #fff; }
.ai-chat-posted-list { list-style: none; margin: .3rem 0 0; padding: 0; }
.ai-chat-posted-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .2rem 0; }
.ai-chat-posted-name { font-size: 14px; font-weight: 400; color: #2d2c2f; margin-right: auto; }
/* The collapsed "Steps" line: the chat's tool steps in plain words, for the
   viewers who get no raw tool chip (ai/toolStepLabels.ts). */
.ai-chat-steps { margin: 0 0 .35rem; font-size: 14px; font-style: normal; color: #495057; }
.ai-chat-steps-summary { display: inline-flex; align-items: center; cursor: pointer; list-style: none; user-select: none; }
.ai-chat-steps-summary::-webkit-details-marker { display: none; }
.ai-chat-steps[open] > .ai-chat-steps-summary .closer-task-section-caret { transform: rotate(90deg); }
.ai-chat-steps-label { flex-shrink: 0; white-space: nowrap; }
.ai-chat-steps-latest { margin-left: .1rem; font-style: italic; }
/* "Chat about this": the thread attached to the composer until the first send, and the line it
   folds into on that turn (ai/stagedThread.ts; Jesse, 2026-10-26). */
.ai-chat-thread-bar {
  display: flex; align-items: center; gap: .4rem;
  margin: 0 0 .5rem; padding: 0 0 0 .6rem;
  background: #e7f1ff; border-radius: .375rem;
  font-size: 14px; color: #2d2c2f;
}
.ai-chat-thread-bar-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-chat-thread { margin: 0 0 .4rem; font-size: 14px; font-style: normal; }
.ai-chat-thread-summary { display: inline-flex; align-items: center; cursor: pointer; list-style: none; user-select: none; }
.ai-chat-thread-summary::-webkit-details-marker { display: none; }
.ai-chat-thread-summary .closer-task-section-caret { color: inherit; }
.ai-chat-thread[open] > .ai-chat-thread-summary .closer-task-section-caret { transform: rotate(90deg); }
.ai-chat-thread-body {
  margin-top: .35rem; padding: .5rem .6rem; max-height: 320px; overflow: auto;
  border-radius: 6px; background: rgba(255, 255, 255, .14);
}
.ai-chat-steps-list { margin: .25rem 0 0; padding-left: 1.6rem; }
.ai-chat-steps-list li { padding: .05rem 0; }
.ai-chat-tool-call-client .ai-chat-tool-step-label { font-family: inherit; }
.ai-chat-tool-call-updates li::before {
  content: '↳ ';
  color: #a090c0;
}
.ai-chat-tool-call-client {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-style: normal;
  font-size: 14px;
}
.ai-chat-tool-call-client .ai-chat-tool-call-updates {
  font-family: inherit;
}
.ai-chat-live-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #250d47;
  animation: ai-chat-status-pulse 1.2s ease-in-out infinite;
}
@keyframes ai-chat-status-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50%      { opacity: 1.0; transform: scale(1.1); }
}
.ai-chat-citations {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e5e5;
  font-size: 14px;
}
.ai-chat-citations-label {
  font-weight: 600;
  color: #555;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 12px;
}
.ai-chat-citations-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #444;
}
.ai-chat-citations-list li {
  margin: 0.1rem 0;
  line-height: 1.3;
}
.ai-chat-citations-list a {
  color: #250d47;
  text-decoration: none;
  word-break: break-word;
}
.ai-chat-citations-list a:hover {
  text-decoration: underline;
}
.ai-chat-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
  min-height: 1.5rem;
  min-height: 0;
  line-height: 1;
}
.ai-chat-meta-user {
  justify-content: flex-end;
}
.ai-chat-meta-assistant {
  justify-content: flex-start;
  padding-left: 1rem;
}
/* Who wrote a turn, in a team-visible thread. Sits beside the timestamp but is
   NOT hover-gated the way the timestamp is — in a thread several people write
   in, attribution is the thing you read at a glance, not on demand. */
.ai-chat-author {
  font-size: 14px;
  font-weight: 600;
  color: #1a4d8f;
  white-space: nowrap;
}
.ai-chat-timestamp {
  font-size: 14px;
  color: #999;
  white-space: nowrap;
}
.ai-chat-actions {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.ai-chat-actions-hidden {
  visibility: hidden;
}
.ai-chat-action-icon {
  font-size: 0.95rem;
  color: #666;
  cursor: pointer;
  padding: 0.15rem;
}
.ai-chat-action-icon:hover {
  color: #333;
}
.ai-chat-edit-container {
  width: 100%;
  margin-left: auto;
}
.ai-chat-edit-textarea {
  border: 2px solid #5b9bd5 !important;
  border-radius: 6px;
  font-size: 0.95rem;
  resize: vertical;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.ai-chat-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
/* Tint the sparkles icon to brand pink (#e91e63) on link hover, matching
   how FA icons pick up currentColor on hover. */
a:hover .ai-sparkles-hover {
  filter: invert(27%) sepia(93%) saturate(4810%) hue-rotate(329deg)
          brightness(93%) contrast(97%);
}

.ai-chat-input-area {
  /* Vertical padding only — NO horizontal inset. Horizontal alignment is
     owned by each surface's container so the composer's left edge lines up
     with the message bubbles: the AI Console wraps this in .ai-chat-input-dock
     (1rem, matching .ai-chat-scroll), while the Closer panel lets it sit flush
     at 0 to match its zero-horizontal-padding message list. */
  padding: 0.5rem 0;
}
/* AI Console: re-supply the horizontal inset that .ai-chat-scroll uses (1rem)
   so the composer's left edge aligns with the response bubbles. */
.ai-chat-input-dock {
  padding: 0 1rem;
}
.ai-chat-input-box {
  border: 1px solid #ccc;
  border-radius: 1rem;
  background: #fff;   /* all white: a grey box round the white focused textarea read as two surfaces */
  padding: 0.75rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
}
.ai-chat-input-box:focus-within {
  border-color: #e91e63;   /* the focused-input standard */
}
/* Top-edge drag handle: drag UP to enlarge the composer (it grows upward,
   matching the bottom-docked layout). Height is applied inline in
   ChatInput.tsx. The grip is a centered pill at the very top of the box. */
.ai-chat-resize-handle {
  flex: 0 0 auto;
  height: 0.6rem;
  margin: -0.35rem 0 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  touch-action: none;
}
.ai-chat-resize-handle::before {
  content: "";
  width: 2rem;
  height: 3px;
  border-radius: 3px;
  background: #c7c7cc;
  transition: background 0.12s ease;
}
.ai-chat-resize-handle:hover::before {
  background: #8e8e93;
}
.ai-chat-input-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.25rem;
}
.ai-chat-toolbar-icon {
  background: none;
  border: none;
  color: #888;
  font-size: 1.1rem;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s;
}
.ai-chat-toolbar-icon:hover:not(:disabled) {
  color: #250d47;
}
.ai-chat-toolbar-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ai-chat-disclaimer {
  text-align: center;
  font-size: 14px;
  color: #999;
  padding: 0.35rem 0 0.15rem;
}
.ai-chat-attachments-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 0.25rem;
}
.ai-chat-attachment-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #f8f9fa;
}
.ai-chat-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-chat-attachment-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #999;
}
.ai-chat-attachment-uploading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  color: #555;
}
.ai-chat-attachment-error {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: #dc3545;
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.ai-chat-attachment-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-chat-attachment-remove:hover {
  background: rgba(0,0,0,0.8);
}
.ai-chat-bubble-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.ai-chat-bubble-attachment img {
  max-width: 240px;
  max-height: 240px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  display: block;
}
/* Composer highlight while a file is dragged over it. */
.ai-chat-input-box-dragover {
  border-color: #250d47;
  border-style: dashed;
  box-shadow: 0 0 0 2px rgba(37, 13, 71, 0.12);
  background: #f1edf8;
}
/* Non-image attachment chip: composer strip cells and bubble download
   links share this (AttachmentChip.tsx). */
.ai-chat-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 240px;
  padding: 0.3rem 0.55rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 12px;
  text-decoration: none;
}
a.ai-chat-attachment-chip:hover {
  border-color: #250d47;
  color: #250d47;
  text-decoration: none;
}
.ai-chat-attachment-chip-kind {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0 0.2rem;
}
.ai-chat-attachment-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Composer strip cell for non-image files: wider than the 64px square
   thumbnail so the filename chip fits. */
.ai-chat-attachment-thumb-file {
  width: auto;
  max-width: 260px;
  height: auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0.25rem 1.4rem 0.25rem 0.25rem;
  overflow: visible;
}
.ai-chat-attachment-thumb-file .ai-chat-attachment-chip {
  border: none;
  background: transparent;
}
.ai-chat-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  min-height: 2.5rem;
  /* Height is driven by the custom top drag-handle (.ai-chat-resize-handle),
     applied inline in ChatInput.tsx. Native resize is off — the box is
     bottom-docked, so the only intuitive manual grip is the top edge.
     Cap at 60vh so a tall box still leaves the transcript visible. */
  max-height: 60vh;
  font-size: 0.95rem;
  resize: none;
  overflow-y: auto;
  line-height: 1.5;
  padding: 0;
  width: 100%;
}
.ai-chat-input:focus {
  box-shadow: none !important;
}
.ai-chat-send-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  flex-shrink: 0;
  border: none;
  background: #250d47;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}
.ai-chat-send-btn:hover:not(:disabled) {
  background: #3a1a6e;
}
.ai-chat-send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
/* The queue arrow that sits beside Stop while a turn runs and text is typed. */
.ai-chat-send-btn-queue {
  margin-right: 0.35rem;
  opacity: 0.85;
}
.ai-chat-send-btn-stop {
  background: #dc3545;
}
.ai-chat-send-btn-stop:hover {
  background: #c82333;
}
/* In-flight state on no-queue surfaces (e.g. the Closer panel): keep the
   button at full opacity so the spinner reads as "working" rather than looking
   like a faintly-dimmed disabled control. */
.ai-chat-send-btn-busy:disabled {
  opacity: 1;
  cursor: default;
}

/* ============================================================
   Magic AI Reports — mai- prefix
   ============================================================ */

/* --- ResultsTable --- */
.fo-error-message {
  color: red;
  padding: 20px;
}
.fo-loading-wrapper {
  text-align: center;
  padding: 40px;
}
.fo-no-query-message {
  padding: 20px;
  color: #999;
}
.fo-results-wrapper {
  margin-top: 10px;
}
.fo-search-wrapper {
  margin-bottom: 8px;
}
.fo-search-input {
  font-size: 14px;
  padding-top: 4px;
  padding-bottom: 4px;
  width: 200px;
  border: 1px solid #ced4da !important;
  /* Explicit radius: the accruer page's stylesheet stack squares .form-control off */
  border-radius: 0.5rem !important;
}
.fo-table-scroll {
  overflow: auto;
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}
.fo-table-full-width {
  width: 100%;
  /* Bootstrap's .table margin-bottom leaves a gap under the sticky tfoot inside
     .fo-table-scroll, letting body rows show through beneath the totals row. */
  margin-bottom: 0;
}
.fo-table-thead-sticky {
  position: sticky;
  top: 0;
  z-index: 1;
  /* Cover the sub-pixel sliver of scrolled rows that can peek above the pinned header
     when the scrollport height is fractional. */
  box-shadow: 0 -2px 0 0 #250d47;
  /* Promote to a compositor layer: sticky table sections in a collapsed-border table
     otherwise reposition on the main thread and visibly lag (bleed) during fast scroll. */
  will-change: transform;
}
.fo-table-header-cell {
  background-color: #250d47;
  color: #fff;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}
.fo-sort-indicator {
  margin-left: 4px;
  font-size: 14px;
  opacity: 0.6;
}
.fo-sort-indicator-active {
  opacity: 1;
  color: #fff;
}
/* The whole header is the sort click. The one active triangle sits at the end of the column. */
.fo-th-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.fo-th-sort .fo-th-label {
  flex: 1;
  min-width: 0;
}
.fo-table-header-cell.text-end .fo-th-label {
  text-align: right;
}
.fo-th-sort .fo-sort-indicator {
  margin-left: 0;
  flex: none;
}
.fo-row-even {
  background-color: #f8f8f8;
}
.fo-row-odd {
  background-color: #ffffff;
}
.fo-table-cell {
  padding: 6px 8px;
  font-size: 14px;
  white-space: nowrap;
}
.fo-table-cell.wrapped-row-200 {
  min-width: 200px;
  overflow-wrap: anywhere;
  white-space: break-spaces;
}
.fo-table-cell-right {
  text-align: right;
}
.fo-table-cell-left {
  text-align: left;
}
/* Grouped header row (Accruer Roll-forward month groups / Schedule month-end labels) —
   sits above the sortable column header row and is not clickable. */
.fo-table-header-group {
  cursor: default;
}
.fo-table-cell-center {
  text-align: center;
}
/* Shaded body cells (Accruer Roll-forward "Ending" columns — legacy bg-light columnDef;
   #f0f2f5 is this theme's $light). */
.fo-table-scroll tbody td.fo-col-shaded {
  background-color: #f0f2f5;
}
/* Borderless variant (Accruer Roll-forward): no vertical cell borders in header/body/footer,
   soft prod-style bottom borders on body rows, and a month-group divider drawn on each
   "Beginning" column (legacy border-start columnDef). */
.fo-table-no-vborders {
  /* Collapsed borders don't stick with the sticky thead (white seams appear between
     header cells on scroll); separate borders paint per-cell and travel with it. */
  border-collapse: separate;
  border-spacing: 0;
}
.fo-table-no-vborders > :not(caption) > * > * {
  border-left: 0;
  border-right: 0;
}
/* Row dividers + striping ported from the original DataTables `display` table
   (cdn.datatables.net/1.13.1/css/jquery.dataTables.css): border-top rgba(0,0,0,.15)
   between rows, and 1st/3rd/... rows darkened by an inset shadow that also shades
   cell backgrounds (this is what makes the Ending columns alternate in prod). */
.fo-table-no-vborders > tbody > * > * {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 0;
}
.fo-table-no-vborders > tbody > tr:first-child > * {
  border-top: none;
}
.fo-table-no-vborders > tbody > .fo-row-even,
.fo-table-no-vborders > tbody > .fo-row-odd {
  background-color: #fff;
}
.fo-table-no-vborders > tbody > .fo-row-even > * {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.023);
}
/* Seamless header block: no border above the group row or between the two header rows */
.fo-table-no-vborders > thead > tr,
.fo-table-no-vborders > thead > * > * {
  border-top: 0;
  border-bottom: 0;
}
/* Prod-parity Accruer filter buttons: the legacy page renders these 35px tall
   (9px vertical padding) with no bottom margin between wrapped button rows. */
#accruer-reports-app .report-buttons-container .btn {
  padding-top: 9px;
  padding-bottom: 9px;
  margin-bottom: 0;
}
/* All Accruer report headers get the Roll-forward header treatment: #8b99a7 cell
   separators, and no horizontal border between stacked header rows (or above the header). */
#accruer-reports-app .fo-table-scroll thead tr,
#accruer-reports-app .fo-table-scroll thead th {
  border-top: 0;
  border-bottom: 0;
}
#accruer-reports-app .fo-table-scroll thead th {
  border-left-color: #8b99a7;
  border-right-color: #8b99a7;
}
.fo-table-no-vborders > :not(caption) > * > .fo-col-group-start {
  border-left: 1px solid #dee2e6;
}
.fo-table-no-vborders > thead > * > .fo-col-group-start,
.fo-table-no-vborders > tfoot > * > .fo-col-group-start {
  border-left: 1px solid #8b99a7; /* legacy header/footer divider color */
}
/* Fixed totals footer (Accruer Schedule/Roll-forward TOTAL row): a separate one-row table
   rendered OUTSIDE the scroll area — the DataTables scrollFoot approach — so scrolling can
   never lag or bleed under it. Widths/scroll are synced from the main table by ResultsTable. */
.fo-table-fixed-footer {
  overflow: hidden;
  background-color: #555050; /* matches table.dataTable tfoot tr in prod */
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}
.fo-table-fixed-footer table {
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
}
.fo-table-fixed-footer .fo-col-group-start {
  border-left: 1px solid #8b99a7;
}
.fo-table-footer-cell {
  background-color: #555050;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
}
/* Footer'd tables: hide the body's own horizontal scrollbar (it would cut the column
   dividers between body and footer) — a detached .fo-hscroll strip below the footer
   takes over. Styling ::-webkit-scrollbar replaces the native bars, so the vertical
   one is re-styled to look stock. */
.fo-hide-hscrollbar::-webkit-scrollbar {
  width: 14px;
}
.fo-hide-hscrollbar::-webkit-scrollbar:horizontal {
  display: none;
}
.fo-hide-hscrollbar::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 7px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.fo-hide-hscrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.fo-hscroll {
  overflow-x: auto;
  overflow-y: hidden;
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}
.fo-hscroll-spacer {
  height: 1px;
}
/* Bold rows (Accruer Activity/Track Details Parent + Reversal entries). */
.fo-row-bold {
  font-weight: bold;
}
.fo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  font-size: 14px;
  color: var(--bs-card-color);
}
.fo-footer-with-note { flex-wrap: wrap; }
.fo-footer-note { flex: 1 0 100%; padding-top: 4px; }
.fo-no-query-text {
  font-size: 14px;
}

/* Pagination — mirror DataTables (.dataTables_wrapper) styling so the
   refactored .fo-results-wrapper buttons stay 24x24 with subtle
   rounding, not Bootstrap's default round full-circle look. */
.fo-results-wrapper .dataTables_paginate .paginate_button {
  border: 0;
  background: unset;
  padding: 0;
}
.fo-results-wrapper .dataTables_paginate .paginate_button:hover {
  color: white !important;
  border: 0;
  background: unset;
  padding: 0;
}
.fo-results-wrapper .dataTables_paginate .paginate_button.disabled,
.fo-results-wrapper .dataTables_paginate .paginate_button.disabled:hover,
.fo-results-wrapper .dataTables_paginate .paginate_button.disabled:active {
  cursor: default;
  color: #666 !important;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}
.fo-results-wrapper .page-item .page-link {
  height: 24px;
  width: 24px;
  border-radius: 25% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
}
.fo-results-wrapper .page-item span {
  border-radius: 25% !important;
}
.fo-results-wrapper .dataTables_paginate .paginate_button.disabled .page-link,
.fo-results-wrapper .dataTables_paginate .paginate_button.disabled:hover .page-link,
.fo-results-wrapper .dataTables_paginate .paginate_button.disabled:active .page-link {
  background-color: var(--bs-pagination-hover-bg);
  border-color: var(--bs-pagination-hover-border-color);
}
/* Pager ellipsis: plain text spacer between the page window and the last page.
   Carries the same -1px/3px horizontal margins as .page-link so the whitespace
   on both sides of the dots stays symmetric. */
.fo-results-wrapper .fo-page-ellipsis span {
  display: flex;
  height: 24px;
  min-width: 16px;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
  padding: 0 2px;
  margin: 0 3px 0 -1px;
}
.fo-results-wrapper .page-link.active,
.fo-results-wrapper .active > .page-link {
  z-index: 3;
  color: white;
  background-color: var(--bs-pagination-active-bg);
  border-color: var(--bs-pagination-active-border-color);
  font-weight: bold;
}
.fo-results-wrapper .page-link:focus {
  z-index: 3;
  color: var(--bs-pagination-focus-color);
  background-color: var(--bs-pagination-focus-bg);
  outline: 0;
  box-shadow: var(--bs-pagination-focus-box-shadow);
}

/* --- EditSQLModal --- */
.mai-modal-overlay {
  z-index: 1030;
}
.mai-title-input {
  font-size: 1.25rem;
  width: 300px;
}
.mai-uuid-text {
  font-size: 14px;
}
.mai-conversation-panel {
  min-width: 0;
  overflow: hidden;
}
.mai-conversation-panel-half {
  flex: 1 1 50%;
}
.mai-conversation-panel-full {
  flex: 1 1 100%;
}
.mai-conversation-scroll {
  overflow: auto;
  flex: 1;
}
.mai-sql-panel {
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
}
.mai-sql-editor-scroll {
  flex: 1;
  overflow: auto;
}
.mai-sql-copy-icon {
  cursor: pointer;
  font-size: 1rem;
}
.mai-feedback-icon {
  filter: grayscale(1) opacity(0.5);
}
.mai-feedback-icon-active {
  filter: none;
}
.mai-down-comment-wrapper {
  width: 100%;
}
.mai-down-comment-textarea {
  font-size: 14px;
  border: 1px solid #ced4da;
}
.mai-enhance-box {
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
}
.mai-enhance-box-enhanced {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  cursor: pointer;
}
.mai-enhance-box-swapped {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  cursor: pointer;
}
.mai-enhance-box-loading {
  cursor: default;
}
.mai-enhance-label {
  font-size: 14px;
}
.mai-enhance-label-enhanced {
  color: #2e7d32;
}
.mai-enhance-label-swapped {
  color: #6c757d;
}
.mai-revert-icon {
  font-size: 14px;
}
.mai-enhance-preview-opacity {
  opacity: 0.5;
}
.mai-enhance-hint {
  font-size: 14px;
}
.mai-enhance-btn {
  background: #7c4dff;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}
.mai-enhance-btn-active {
  background: #dc3545;
}
.fo-footer-actions {
  position: relative;
  z-index: 1;
}

/* --- App.tsx --- */
.fo-tab-name {
  max-width: 180px;
}
.fo-close-tab-btn {
  border: none;
  font-size: 0.65rem;
  line-height: 1;
  padding: 0 !important;
  margin: 0 !important;
  align-self: flex-start;
  position: relative;
  top: -2px;
}

.mai-new-report-link {
  font-size: 18px;
  line-height: 1;
}
.mai-new-report-plus {
  font-size: 18px;
  font-weight: bold;
}
.mai-error-icon {
  font-size: 16px;
}
.mai-success-icon {
  font-size: 16px;
}
.mai-uuid-link {
  font-size: 14px;
  cursor: pointer;
}
.mai-view-feedback-icon {
  cursor: pointer;
  margin-left: 0.5rem;
}
.mai-down-comment-box {
  background-color: #fff;
  border: 1px solid #dee2e6;
}

/* --- HistoryList --- */
.mai-history-search-form {
  display: inline-block;
}
.mai-history-item-body {
  min-width: 0;
}
.mai-history-prompt {
  line-height: 1.5;
}
.mai-current-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: #4caf50;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 16px;
  width: auto;
}

/* --- SaveViewModal --- */
.mai-modal-backdrop {
  background-color: rgba(20, 20, 30, 0.55);
}
/* The site's global form styles add a left padding/indent that doesn't
   look right inside the centered SaveViewModal — !important is needed
   because the global rules are scoped to .form-control / .form-label
   directly and load after this stylesheet. */
.mai-modal-backdrop .form-control {
  padding-left: 0 !important;
}
.mai-modal-backdrop .form-label {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.mai-radio-nowrap {
  white-space: nowrap;
}

/* --- SQLEditor --- */
.mai-sql-editor-container {
  border-radius: 4px;
  overflow: hidden;
}

/* ==========================================================================
   Magic Reports (mr-*) — React-based QBO Lines/Objects Reports
   ========================================================================== */

/* AI Usage console: the dataset-caveat info popover on the sub-tab strip. */
.ai-usage-info {
    position: relative;
}

.ai-usage-info-btn {
    border: none;
    background: none;
    color: #250d47;
}

.ai-usage-info-pop {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    width: 26rem;
    max-width: 80vw;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(37, 13, 71, 0.18);
    color: #2d2c2f;
    text-align: left;
}

.ai-usage-info-pop p {
    margin: 0 0 0.5rem;
}

.ai-usage-info-pop ul {
    margin: 0.15rem 0 0.75rem;
    padding-left: 1.15rem;
}

.ai-usage-info-pop li {
    margin: 0.1rem 0;
}

.ai-usage-info-pop ul:last-child {
    margin-bottom: 0;
}

/* Customer AI usage page charts (assets/javascript/ai-usage/AIUsageCharts.tsx): headline
   tiles, cost by month, and the clients/people → products flow. Series colours are SVG fills
   set per product in the component; everything else is here. */
.aiu-charts { margin-bottom: 1.25rem; }
.aiu-link { color: #250d47; text-decoration: none; }
.aiu-link:hover { color: #e91e63; }
.aiu-drill { border: 0; padding: 0; background: none; color: #250d47; font: inherit; text-align: left; cursor: pointer; }
.aiu-drill:hover { color: #e91e63; }
.aiu-clickable { cursor: pointer; }
.aiu-drills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.aiu-drill-chip { display: inline-flex; align-items: center; gap: 6px; }
.aiu-drill-x { border: 0; padding: 0; background: none; color: inherit; line-height: 1; cursor: pointer; }
.ai-chat-cost { position: relative; display: inline-block; }
.ai-chat-cost-pop { position: absolute; top: 100%; right: 0; z-index: 1050; width: 20rem; max-width: 80vw;
                    margin-top: 4px; padding: 10px 12px; display: grid; gap: 6px; background: #fff;
                    border: 1px solid #dee2e6; border-radius: .5rem; box-shadow: 0 4px 16px rgba(37, 13, 71, .18); }
.aiu-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-bottom: 10px; }
.aiu-stats { display: flex; gap: 28px; }
.aiu-stat-value { font-size: 15px; font-weight: 600; color: #250d47; }
.aiu-usage { flex: 1 1 320px; min-width: 0; }
.aiu-usage-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; }
.aiu-progress { flex: 1 1 auto; height: 10px; background: #ece7f3; }
.aiu-progress-bar { background: #250d47; }
.aiu-progress-warn { background: #eda100; }
.aiu-progress-over { background: #dc3545; }
.aiu-usage-percent { font-size: 14px; font-weight: 600; color: #2d2c2f; white-space: nowrap; }
.aiu-usage-line { font-size: 14px; color: #495057; }
.aiu-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 10px; }
.aiu-card { background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; padding: 10px 14px; min-width: 0; }
.aiu-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.aiu-card-title { font-size: 14px; font-weight: 600; color: #2d2c2f; }
.aiu-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0; margin: 0 0 4px; font-size: 14px; color: #495057; }
.aiu-legend li { display: inline-flex; align-items: center; gap: 5px; }
.aiu-swatch { width: 10px; height: 10px; flex: none; }
.aiu-svg { display: block; width: 100%; height: auto; max-height: 230px; overflow: visible; }
.aiu-grid { stroke: #eef0f3; stroke-width: 1; }
.aiu-baseline { stroke: #adb5bd; stroke-width: 1; }
.aiu-axis { font-size: 14px; fill: #495057; }
.aiu-total { font-size: 14px; font-weight: 600; fill: #2d2c2f; }
.aiu-mark:hover { opacity: .85; }
.aiu-band { opacity: .38; transition: opacity .12s; }
.aiu-band:hover, .aiu-band-lit { opacity: .72; }
.aiu-band-dim { opacity: .08; }
.aiu-node { fill: #250d47; }
.aiu-label { font-size: 14px; fill: #2d2c2f; }
.aiu-label-value { fill: #495057; }
.aiu-note { font-size: 14px; color: #495057; margin-top: 2px; }
.aiu-empty { font-size: 14px; color: #495057; padding: 24px; text-align: center; }
.aiu-tip { position: fixed; z-index: 1060; pointer-events: none; max-width: 320px; padding: 6px 10px; font-size: 14px;
           color: #2d2c2f; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem;
           box-shadow: 0 4px 16px rgba(37, 13, 71, .18); }

.mr-app {
  width: 100%;
}



.mr-app .nav-link {
  font-size: 14px;
}

/* Tighter padding on saved view tabs row */
.mr-app .card-header:first-child .nav-link,
#magic-ai-reports .card-header:first-child .nav-link {
  padding: 8px 8px 8px 16px;
}

/* The AI Usage sub-tabs have no close ✕ filling the right side, so the
   saved-view-tab asymmetric padding above reads lopsided there — even out. */
.ai-usage-app .card-header:first-child .nav-link {
  padding: 8px 16px;
}

#magic-ai-reports .nav-link {
  font-size: 14px;
}


/* --- Filter components (used with production .report-filters classes) --- */
.mr-individual-filter {
  position: relative;
  margin: 0;
  margin-top: 4px;
  margin-left: 5px;
}

#magic-reports-app .mr-individual-filter > label {
  margin-left: 5px;
}

#magic-reports-app .report-buttons-container {
  margin-top: 4px;
}
#magic-reports-app .report-buttons-container button {
  margin-top: 20px;
  margin-bottom: 5px;
}

#magic-reports-app .modal .form-label {
  margin-left: 0;
  padding-left: 0;
}

.mr-multiselect-dropdown .form-control-sm {
  border: 1px solid #aaa !important;
  border-radius: 5px;
  font-size: 14px;
}

/* Select/dropdown button — matches prod Select2 styling */
.mr-select-btn {
  display: block;
  height: 35px;
  width: 160px;
  border-radius: .375rem;
  border: 1px solid lightgray;
  background-color: #fff;
  font-size: 12px;
  color: #666;
  padding: 0 8px;
  line-height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  appearance: auto;
}
/* Grayed-out state while a report fetch is in flight (matches disabled .btn opacity) */
.mr-select-btn:disabled,
.mr-search-filter-input:disabled {
  background-color: #e9ecef;
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}
.mr-select-btn-active {
  border-color: #0d6efd;
  color: #0d6efd;
  background-color: #e7f1ff;
}
.mr-select-btn-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-select-btn-arrow {
  margin-left: 4px;
  font-size: 10px;
}

/* Search filter text input */
.mr-search-filter-input {
  display: block;
  height: 35px;
  width: 160px;
  border-radius: .375rem;
  border: 1px solid lightgray;
  background-color: #fff;
  font-size: 14px;
  color: #666;
  padding: 0 8px;
}
/* Vertically center the text of native date inputs: Chrome's datetime-edit box fills the
   input's fixed 35px height and top-aligns its fields wrapper (display/flex overrides are
   ignored on this internal pseudo, but padding is honored). (33px content − 19.2px line) / 2. */
input[type="date"].mr-search-filter-input::-webkit-datetime-edit {
  padding-top: 2px; /* nudge the top-hugging text toward optical center (7px = exact line-box center reads too low) */
}

/* Multiselect dropdown panel */
.mr-multiselect-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
  min-width: 250px;
  /* Wide enough for a long account name on one line, never wider than the window. */
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 2px;
  padding: 0.5rem;
  white-space: nowrap;
}

.mr-multiselect-options {
  max-height: 250px;
  overflow-y: auto;
  font-size: 14px;
  padding-left: 5px;
  padding-right: 15px;
}

.mr-multiselect-option {
  padding: 2px 0;
  padding-left: 1.75rem;
}
.mr-multiselect-option .form-check-input {
  margin-left: -1.5em;
}
.mr-multiselect-option .form-check-label {
  font-size: 14px;
  /* Align the 12px label text vertically with the checkbox */
  padding-top: 2px;
  /* The theme's label margin made every option 33px tall; 25px fits a client's accounts on screen. */
  margin-bottom: 0;
}

.mr-multiselect-empty {
  padding: 0.5rem;
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}

.mr-multiselect-clear,
.fo-combobox-footer-clear {
  font-size: 14px;
  padding: 0.25rem 0;
}

.mr-multiselect-actions {
  padding-left: .4rem;
}
.mr-multiselect-actions .btn-link:first-child {
  padding-left: 0;
}



/* Single-select dropdown option */
.mr-dropdown-option {
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
}
.mr-dropdown-option:hover {
  background-color: #0d6efd;
  color: #fff;
}
.mr-dropdown-option-selected {
  background-color: #e7f1ff;
  font-weight: 600;
}

/* Canned date custom — number input for relative dates */
.mr-number-input {
  width: 160px !important;
}

/* --- Edit Columns Modal --- */
.mr-edit-columns-available {
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.5rem;
}

.mr-edit-columns-selected {
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.5rem;
}

.mr-edit-columns-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  margin-bottom: 4px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: grab;
}
.mr-edit-columns-item:active {
  cursor: grabbing;
}
.mr-edit-columns-item-dragging {
  opacity: 0.5;
}
.mr-edit-columns-item-dragover {
  border-color: #0d6efd;
  background: #e7f1ff;
}

.mr-edit-columns-grip {
  color: #adb5bd;
  font-size: 14px;
}

.mr-edit-columns-label {
  flex: 1;
  font-size: 14px;
}

.mr-edit-columns-remove {
  font-size: 1.2rem;
  line-height: 1;
}

/* --- Object Report Tab --- */
.mr-object-buttons-container {
  padding: 10px;
  white-space: nowrap;
}
.mr-object-buttons-container button {
  margin-top: 0;
  margin-bottom: 0 !important;
}

/* --- Subscription Usage Report filters --- */
/* Font Awesome renders these calendar icons as <svg> (svg-inline--fa), which
   the shared rules in site-accruer.css pin with a fixed `top` (8px for the
   svg form) that sits too high in these From/To inputs because .from-to
   carries a 10px top margin. Center the icon on the input instead. Matching
   .date-icon.fa-calendar covers both the svg and webfont (<i>) forms. Scoped
   to #usage-filters via the ID so it overrides the shared rules by
   specificity (regardless of stylesheet order) and affects only this page.
   The +5px compensates for half of the input's 10px top margin. */
#usage-filters .date-icon.fa-calendar {
  top: calc(50% + 5px);
  transform: translateY(-50%);
}

/* --- Closer (AI close-review) home --- */
/* Section header: title on the left, status badge pushed to the right. */
.closer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
/* "Monthly Close" / "Continuous Close" section titles — a touch smaller than
   the theme's default h3. (Note-card subjects use h4, so they're unaffected.) */
.closer-section-head h3 {
  font-size: 1.1rem;   /* was 1.4rem: under the desk-style tab strip it read oversized */
}

.closer-period {
  margin-bottom: 0.5rem;
  /* Match the review-summary markdown h1 (.ai-markdown h1) so the page's two
     headings are the same size. */
  font-size: 16px;
  color: #250d47;
}

/* Status badge + reopen button, grouped at the right of the section head. */
.closer-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Copy-link icon on a card title (task_card.html): quiet until the title is
   hovered, so the card header stays a one-liner; flashes brand red once the
   link is on the clipboard. */
.closer-copy-link {
  background: none;
  border: 0;
  padding: 0 0.25rem;
  margin-left: 0.25rem;
  font-size: 0.75em;
  color: #6a5a87;
  opacity: 0;
  vertical-align: middle;
  cursor: pointer;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.closer-note-subject:hover .closer-copy-link,
.closer-copy-link:focus-visible {
  opacity: 1;
}
.closer-copy-link:hover {
  color: #250d47;
}
.closer-copy-link.is-copied {
  opacity: 1;
  color: #e0245e;
}

/* The Skill card's Chats menu (closer_home.html): one link per chat that
   runs the skill, the start-a-run link last. */
.closer-skill-chats {
  min-width: 17rem;
  text-align: left;
}
.closer-skill-chat-link {
  display: block;
  padding: 0.3rem 0.6rem;
  border-radius: 0.35rem;
  font-size: 14px;
  color: #250d47;
  text-decoration: none;
  white-space: nowrap;
}
.closer-skill-chat-link:hover {
  background: #e7f1ff;
  color: #250d47;
}
.closer-skill-chat-kind {
  color: #6c757d;
  font-size: 14px;
}
/* The skill's kind chip ("Company skill 4") and the menu of rare actions
   behind it: an explanatory line, then Promote / Demote and Archive as the
   same pressable pills they were on the card, stacked and left-aligned. */
.closer-skill-kind-btn {
  cursor: pointer;
  list-style: none;
}
.closer-skill-kind-menu {
  min-width: 15rem;
  max-width: 20rem;
  text-align: left;
}
.closer-skill-kind-note {
  display: block;
  padding: 0.2rem 0.4rem 0.35rem;
  font-size: 14px;
  color: #495057;   /* the app's dark secondary grey, not the faded #6c757d (Christopher, 2026-11-12) */
  white-space: normal;
}
.closer-skill-kind-menu form {
  display: block;
}
.closer-skill-kind-menu .closer-skill-promote-btn {
  display: block;
  width: 100%;
  text-align: left;
}
/* A finished task on the skill card's Tasks line: still a link, but quieter. */
.closer-skill-link-done {
  opacity: 0.65;
}
.closer-skill-chat-new {
  border-top: 1px solid #ece9f1;
  border-radius: 0;
  margin-top: 0.15rem;
  padding-top: 0.45rem;
  color: #e0245e;
}

/* Delete under the Edit-schedule form (_task_schedule_strip.html): set off
   from Save so the destructive control isn't the next thing under the
   cursor. */
.closer-schedule-delete {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #ece9f1;
}

.closer-reopen-form {
  margin: 0;
}

/* "Saving the snapshot…" beside Reopen while a close's snapshot builds off the request. */
.closer-close-saving { color: #495057; white-space: nowrap; }

.closer-month-input {
  width: auto;
}

/* Closer ▸ Client questions (closer-client-questions.js). */
.fo-cq-filter {
  width: auto;
}

.fo-cq-table td:first-child {
  width: 2rem;
}

/* A long question or bank narrative wraps inside its cell instead of widening the table past the card
   (site-bootstrap.css sets .table td { white-space: nowrap }, so it has to be undone here). */
.fo-cq-table {
  table-layout: fixed;
  width: 100%;
}

.fo-cq-table td {
  overflow-wrap: anywhere;
  white-space: normal;
}

.fo-cq-table td.text-nowrap {
  white-space: nowrap;
}


.fo-cq-txns li {
  flex-wrap: wrap;
}

.fo-cq-txn-memo {
  flex-basis: 100%;
  color: #5b4a73;
  padding-left: 0.1rem;
}

/* Action buttons wrap inside their cell instead of running off the card (Jesse, 2026-10-04). */
.fo-cq-replied { color: #1b5e20; background: #e3f4e4; text-decoration: none; }

/* The count line carries the status and the actions, small, so the card's full width is the
   question, its transactions and its conversation (Jesse, 2026-10-05). */
.fo-cq-done-toggle { margin-top: 0.75rem; }
.fo-cq-done { opacity: 0.6; }
.fo-cq-done:hover { opacity: 0.9; }
.fo-cq-txns-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.fo-cq-meta { display: flex; align-items: center; flex: 1; flex-wrap: wrap; gap: 0.5rem; }
.fo-cq-permalink { font-size: 14px; font-weight: 600; color: #250d47; text-decoration: none; }   /* the site's link pair */
.fo-cq-permalink:hover, .fo-cq-permalink:focus-visible { color: #e91e63; }
.fo-cq-meta-status { display: inline-flex; align-items: center; gap: 0.35rem; }
.fo-cq-meta .closer-status-badge { font-size: 12px; padding: 0.1rem 0.5rem; }
.fo-cq-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-left: auto; }
.fo-cq-actions .btn { font-size: 0.68rem; padding: 0.15rem 0.55rem; }

/* To: the recipient suggestions, in the page's own light list (no browser datalist pop-out). */
.fo-cq-suggest-host { position: relative; }
.fo-cq-suggest {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    max-height: 16rem;
    overflow-y: auto;
    margin: 0.15rem 0 0;
    padding: 0.2rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}
.fo-cq-suggest-item { display: flex; flex-direction: column; padding: 0.3rem 0.6rem; cursor: pointer; }
.fo-cq-suggest-item:hover,
.fo-cq-suggest-item.active { background: #e7f1ff; }
.fo-cq-suggest-name { color: #250d47; font-size: 14px; }
.fo-cq-suggest-meta { color: #495057; font-size: 14px; }

.fo-cq-question-editable { cursor: text; border-radius: 0.25rem; }
.fo-cq-question-editable:hover,
.fo-cq-question-editable:focus { background: #e7f1ff; outline: none; }
.fo-cq-question-edit-actions { display: flex; gap: 0.35rem; margin-top: 0.3rem; }

.fo-cq-answer {
  border-left: 3px solid var(--bs-primary, #0d6efd);
  padding-left: 0.5rem;
}

/* A question's tag — the Closer pill shape, quieter than a status. */
.fo-cq-tag {
  margin-right: 0.25rem;
  font-size: 12px;
  font-weight: 500;
  background: #ece9f1;
  color: #250d47;
}

/* The transactions under one question. */
.fo-cq-txns {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 14px;
}

.fo-cq-txns li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.1rem 0;
}

.fo-cq-txn-remove {
  /* A small bordered button (the grey btn-outline-secondary ring), so the x
     reads as something to click. */
  border: 1px solid #c4c4c4;
  border-radius: .35rem;
  background: #fff;
  padding: 0 .3rem;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.fo-cq-txn-remove:hover {
  color: #c62828;
  border-color: #c62828;
}

/* A long transaction list zips behind its count line (the task-thread toggle's caret). */
.fo-cq-txns-toggle {
  border: 0;
  background: none;
  padding: 0;
  font-size: 14px;
  color: #495057;
}

.fo-cq-txns-toggle:hover {
  color: #250d47;
}

.fo-cq-txns-caret {
  width: 0.9rem;
  font-size: 0.65rem;
  transition: transform .15s ease;
}

.fo-cq-txns-toggle[aria-expanded="true"] .fo-cq-txns-caret {
  transform: rotate(90deg);
}

/* The status filter, labelled so it doesn't read as an action on the rows. */
.fo-cq-filter-label {
  white-space: nowrap;
}

/* Pill badge for review/note status, in the brand palette. Per-status
   color comes from the .closer-status-* modifier classes below. */
/* Shared pill shape + typography for the small rounded labels in Closer
   (status badges, the note-number handle). Color and any per-variant treatment
   are layered on by modifier classes (.closer-status-badge, .closer-note-number,
   and the .closer-status-* color classes) so every pill renders identically in
   size, padding and radius. */
.closer-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

/* Status badge = .closer-pill + an uppercase treatment; its color comes from
   the .closer-status-* class beside it. */
.closer-status-badge {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* All Closer pills match the same readable typography — was scoped to
   `.closer-head-actions` only, which left the firm-overview "Review
   Summary — all clients" totals and the per-row status pills rendering
   visibly smaller than the matching note-card header pills. Single global
   metric instead. The summary path keeps !important to beat the global
   `summary { font-size:14px !important; padding:5px !important; }` rule
   which would otherwise clip the left padding on a status dropdown.
   A pill is 12px by default (Christopher, 2026-11-10); a context that sizes its chips (the 10px chip
   standard) still wins over this. */
.closer-pill {
  font-size: 12px;
  padding: 0.3rem 0.75rem;
  line-height: 1.1;
}
summary.closer-pill {
  font-size: 12px !important;
  padding: 0.3rem 0.75rem !important;
}

.closer-status-new       { background: #ece9f1; color: #250d47; }
.closer-status-open      { background: #e3f2fd; color: #1A73E8; }
.closer-status-pending   { background: #fff3e0; color: #b26a00; }
.closer-status-hold      { background: #fff4d6; color: #a16207; }
.closer-status-closed    { background: #e6f4ea; color: #1b7a3d; }
.closer-status-resolved  { background: #e6f4ea; color: #1b7a3d; }
.closer-status-dismissed { background: #fce8e6; color: #c5221f; }
/* Waiting on another task (Jesse, 2026-10-05: "Waiting", not "Blocked", and not
   an alert colour) — calm slate with a dashed edge. Amber/red stay for action. */
.closer-status-waiting   { background: #eef0f4; color: #5b6679; border: 1px dashed #5b6679; }
/* A Write-tier skill applies entries by itself — hotter than Draft's blue. */
.closer-tier-write       { background: #ffe0c2; color: #c2410c; }

/* A scheduled skill's run strip on its card: cadence, last run cost, and a
   month's estimate. Informational, so neutral rather than a status color. */
.closer-skill-schedule {
  background: #f1f3f4;
  color: #3c4043;
  font-weight: 500;
}
.closer-skill-schedule-menu {
  min-width: 18rem;
  padding: 0.75rem;
}
.closer-skill-schedule-cost {
  margin: 0 0 0.5rem;
  font-size: 14px;
}
.closer-skill-schedule-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 14px;
}
.closer-skill-schedule-form label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.closer-skill-schedule-hours {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem 0.5rem;
  margin: 0;
}
.closer-skill-schedule-hours legend {
  grid-column: 1 / -1;
  font-size: 14px;
  margin-bottom: 0.25rem;
}
.closer-skill-schedule-form .closer-skill-schedule-hour {
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
/* The open-findings count on a check row. Blue read as benign — "it's fine,
   there are four" (Jesse, 2026-09-07) — but a finding is work nobody has done
   yet. Amber, the same family as .closer-status-pending, with a border so it
   holds its own against the pink DISMISS links beside it. */
.closer-findings-count {
  background: #fff3e0;
  color: #a14e00;
  border: 1px solid #f0b775;
  font-weight: 600;
}
a.closer-findings-count:hover,
a.closer-findings-count:focus {
  background: #ffe6c2;
  color: #8a4300;
}

/* "Last run: … N new" opens a menu of the checks the run raised them under
   (check_last_run.html, Amy 2026-10-12). The toggle is a "new" chip drawn like a check's findings
   count (the bordered chip with its caret), in the "new" purple-grey; the menu's rows are links to
   #check-<key>, each with its count chip. !important beats the global summary rule's 14px / 5px. */
.fo-last-run-new-toggle {
  display: inline-flex; align-items: center; gap: .3rem; height: 19px;
  font-size: 14px !important; padding: 1px 9.6px 0 !important;   /* 1px on top: caps ride ~.3px high in the box */
  border: 1px solid #d6cfe4; cursor: pointer;
}
.fo-last-run-new-toggle:hover { background: #e7f1ff; color: #250d47; }
.fo-last-run-new-menu { min-width: 14rem; text-align: left; }
.fo-last-run-new-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.15rem 0.35rem;
  font-size: 14px;
  font-weight: 400;
  color: #250d47;
  text-decoration: none;
  white-space: nowrap;
}
.fo-last-run-new-menu a:hover { color: #e91e63; }

/* A fluctuation finding's "Last month" notes (check_catalog_row.html): what was
   written about the same account last month, above its grid. */
.fo-flux-prior {
  margin: 0.15rem 0 0.35rem;
  padding: 0.35rem 0.5rem;
  border-left: 3px solid #250d47;
  background: #f8f7fa;
  font-size: 14px;
  font-weight: 400;
  color: #2d2c2f;
}
.fo-flux-prior-note { margin-top: 0.15rem; white-space: pre-line; }
.fo-flux-prior-by { font-weight: 600; color: #250d47; }

/* Agent-runnable marker on close-task cards (a bound Skill) — brand purple
   so it reads as "the AI can do this", distinct from the status palette. */
.closer-skill-badge      { background: #f3e8fd; color: #6b21a8; }
/* "Waiting on a DATE" (upcoming) reads differently from "waiting on
   another task" (closer-status-hold pink) — cool blue, not alarm pink. */
.closer-upcoming-badge   { background: #e8f0fe; color: #1a4b8c; }

/* Blocked task cards: the spawn-all model creates a period's whole task
   runway upfront, so not-yet-actionable (blocked) tasks render dimmed
   rather than hidden. Full opacity returns on hover/focus so the card
   stays readable when you go looking at what's holding it up. */
.closer-task-blocked { opacity: 0.55; }
.closer-task-blocked:hover,
.closer-task-blocked:focus-within { opacity: 1; }

/* Schedule strip + Edit popovers on task cards. The popover reuses the
   status-menu <details> shell (.closer-status-options panel); the form
   variant just needs width and labeled rows. */
/* Blocker pill in a collapsed task header. It names the blocking task rather
   than counting it, so it can get long — cap it and ellipsize instead of
   letting one pill push the status menu and Discuss button onto a second row.
   The full list is in the pill's title and on the expanded card. */
.closer-blocker-pill {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Inherit the pill's colour — an unstyled anchor here would read as a second,
   differently-coloured element inside one badge. */
.closer-blocker-pill a {
  color: inherit;
  text-decoration: underline;
}
.closer-schedule-strip { margin-bottom: 0.75rem; }
/* Team-only note on a task / recurring-line card. Visually separated from the
   client-facing body above it so nobody has to guess which text a client could
   ever see — the two were literally one blob of prose before closer migration
   0017 split them (Jesse 2026-07-27). */
.closer-internal-note {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #faf9fc;
  border-left: 3px solid #a4145a;
  border-radius: 0 0.35rem 0.35rem 0;
}
/* A task card's conversation, in place (closer/includes/task_card.html —
   Jesse, 2026-09-11). Same frame as the internal note it replaces; the
   thread and composer inside are the conversations app's own. */
.closer-task-thread,
.fo-cq-thread {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #faf9fc;
  border-left: 3px solid #a4145a;
  border-radius: 0 0.35rem 0.35rem 0;
}
.closer-task-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
/* The head's right side: the work's Harvest clock (harvest_item_timer.html), then the way out. */
.closer-task-thread-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.closer-task-thread-body { margin-top: 0.5rem; }
/* What the in-app spawn sweep just created (closer-task-sweep.js). */
.closer-task-sweep {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0 0 .5rem;
  padding: .45rem .75rem;
  border-radius: .35rem;
  background: #e8f5ec;
  color: #1c6b34;
  font-size: 14px;
}
/* A schedule date: the day count beside what it counts from. */
.closer-schedule-rule { display: flex; gap: .35rem; }
.closer-schedule-rule .closer-schedule-days { flex: 0 0 5.5rem; }
.closer-schedule-rule .closer-schedule-anchor { flex: 1 1 auto; min-width: 0; }
/* A conversation shown in place: the side rail sits beside the thread
   (conversations/includes/embed.html). */
.conversations-embed-side { border-left: 1px solid #ece8f4; padding-left: 1rem; }
@media (max-width: 991.98px) {
  .conversations-embed-side { border-left: 0; padding-left: calc(var(--bs-gutter-x) * .5); margin-top: 1rem; }
}
.closer-task-thread-body .conversations-msg-body code { font-size: 0.85em; }
/* Zipped by default; the toggle reads like the internal-note label. */
.closer-task-thread-toggle {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #250d47;
}
.closer-task-thread-caret { width: 0.9rem; font-size: 0.65rem; transition: transform .15s ease; }
.closer-task-thread-toggle[aria-expanded="true"] .closer-task-thread-caret { transform: rotate(90deg); }
.closer-task-thread-count { font-weight: 400; text-transform: none; letter-spacing: 0; color: #495057; margin-left: 0.25rem; }   /* the site's dark grey (was #8a8f98) */
/* Open, the thread's first message IS the internal note — say it once. */
.closer-task-thread-open .closer-internal-note { display: none; }
.closer-internal-note-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #250d47;
  margin-bottom: 0.25rem;
}
.closer-internal-note .ai-markdown > :first-child { margin-top: 0; }
.closer-internal-note .ai-markdown > :last-child { margin-bottom: 0; }
/* Skill <-> recurring-line cross-links (schedule strip -> #skill-N, skill card
   -> #template-N). These sit inside .text-muted runs, where an unstyled anchor
   reads as ordinary label text — users didn't realize the skill name was
   clickable (Jesse 2026-07-27). Underline on hover + the brand accent so it is
   unmistakably a link without shouting in a muted strip. */
.closer-skill-link {
  color: #250d47;
  text-decoration: none;
  font-weight: 600;
}
.closer-skill-link:hover,
.closer-skill-link:focus {
  color: #e91e63;
  text-decoration: none;
}
/* The edit popovers (Edit task, Edit schedule, New task) render their
   one-liner fields two-up; textareas, hints, checkbox rows, fieldsets and
   buttons span both columns (Jesse, 2026-09-01: the single column was "a
   giant tower"). form.* so this outranks .closer-status-options'
   display:flex below. */
form.closer-edit-form {
  display: grid;
  /* auto-fit: 2 columns at the 680px fallback width, 3-4 once the
     closer_home script widens the panel to ~80% of its card. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  column-gap: 1.1rem;
  row-gap: 0;
  width: min(680px, 92vw);
  padding: 0.75rem 0.9rem;
}
form.closer-edit-form > * { grid-column: 1 / -1; }
form.closer-edit-form > label { grid-column: auto; }
form.closer-edit-form > label:has(textarea),
form.closer-edit-form > label.d-flex,
form.closer-edit-form > label.closer-check-row,
form.closer-edit-form > label.closer-span-2 { grid-column: 1 / -1; }
/* The schedule strip's pill sits mid-card (unlike Edit task / New task,
   whose pills hug the card's right edge), so its popover grows RIGHT from
   the pill instead of left — a 680px panel anchored right:0 there would
   run off the viewport's left edge. */
.closer-schedule-strip .closer-status-options { left: 0; right: auto; }
/* Checkbox + label on one line inside an edit popover, where the surrounding
   `label` rule is display:block (which would otherwise stack the box above its
   own text). Matches the existing serialize/active rows. */
.closer-edit-form .closer-check-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
/* Sub-label explaining a field whose consequences aren't obvious from its
   name — e.g. that "client-facing" records intent rather than sending mail. */
/* Free-text bodies need room to read; the popover's other inputs are one-liners. */
.closer-edit-form textarea {
  margin-top: 0.15rem;
  min-height: 4.5rem;
  resize: vertical;
}
.closer-edit-form > label { display: block; font-size: 14px; margin-bottom: 0.4rem; }
.closer-edit-form input[type="text"],
.closer-edit-form input[type="number"],
.closer-edit-form input[type="date"],
.closer-edit-form select { margin-top: 0.15rem; }
/* Text inputs rendered borderless here, reading as static labels — users
   didn't realize Task name was editable (Jesse 2026-07-27). Make every
   field visibly a field. */
.closer-edit-form input[type="text"],
.closer-edit-form input[type="number"],
.closer-edit-form input[type="date"] {
  border: 1px solid #e3e0ea;
  background: #fff;
}
.closer-edit-deps { border: 0; padding: 0; margin: 0 0 0.4rem; }
/* Task links editor (closer/_link_fields.html): label + URL + remove per row,
   then "Add link" beside the team's workflow picker. */
.closer-link-fields { margin: 0 0 0.4rem; font-size: 14px; }
/* The links as chips in a card's summary (closer/_task_link_chips.html):
   visible on the collapsed card, indented under the subject. */
.closer-task-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0 1.6rem;
}
.closer-task-link {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border: 1px solid #e3e0ea;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  background: #fff;
}
.closer-task-link:hover { background: #e7f1ff; text-decoration: none; }
.closer-link-heading { display: block; margin-bottom: 0.25rem; }
.closer-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.3rem;
}
/* A picked workflow: name + remove, no URL box (the path is a hidden input). */
.closer-link-row.closer-link-row-app { grid-template-columns: minmax(0, 1fr) auto; }
.closer-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.closer-link-actions .closer-link-workflow-pick,
.closer-link-actions .fo-combobox { flex: 1 1 16rem; min-width: 12rem; max-width: 28rem; }

/* Status-badge dropdown — the pill itself is a <details><summary> trigger;
   picking a pill in the menu POSTs the transition (closer:note_status).
   Native <details> gives open/close for free; the click-away close lives in
   a small inline script on closer_home.html. */
.closer-status-menu {
  position: relative;
  display: inline-block;
}
.closer-status-menu > summary {
  cursor: pointer;
  list-style: none;            /* hide the default disclosure triangle */
}
.closer-status-menu > summary::-webkit-details-marker { display: none; }
.closer-status-caret {   /* a chip menu's chevron-down (the app's dropdown caret, as fo-combobox's), never a triangle */
  margin-left: 0.35rem;
  font-size: 0.7em;
  opacity: 0.7;
}
.closer-status-options {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid #e3e0ea;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 13, 71, 0.15);
}
/* The options are the same status pills, made pressable. */
.closer-status-option {
  border: 0;
  cursor: pointer;
  text-align: center;
}
.closer-status-option:hover {
  filter: brightness(0.94);
}

/* Recently-resolved logbook + past-closes archive — collapsed <details>
   so they're discoverable without crowding the open items. */
.closer-resolved-summary,
.closer-past-closes-summary {
  cursor: pointer;
  /* A step down from the Monthly/Continuous Close section h3s (1.4rem). Stays a
     <summary> (needed for the <details> toggle). !important overrides the
     global `summary { font-size: 14px !important }`. */
  font-size: 1.2rem !important;
  font-weight: 600;
  color: #250d47;
  list-style: none;
}
.closer-resolved-summary {
  padding: 0.75rem 0.25rem;       /* not a card-body anymore — give it room */
}
.closer-resolved-summary::-webkit-details-marker,
.closer-past-closes-summary::-webkit-details-marker { display: none; }
.closer-resolved-summary::before,
.closer-past-closes-summary::before {
  content: '\25B8';            /* ▸ */
  display: inline-block;
  margin-right: 0.4rem;
  transition: transform 0.15s ease;
}
details[open] > .closer-resolved-summary::before,
details[open] > .closer-past-closes-summary::before {
  transform: rotate(90deg);
}
/* Resolved note cards sit a touch muted vs. open ones. */
.closer-note-card-resolved { opacity: 0.92; }
/* opacity < 1 creates a stacking context, which traps a card's absolutely
   positioned dropdowns (z-index 30) UNDER later sibling cards — the Edit
   Schedule popover on a resolved card rendered behind the next card
   (.closer-task-blocked already escapes via its :hover/:focus-within
   rules above; the [open] selectors keep both classes covered even when
   focus leaves the summary while the menu stays open). Restoring full
   opacity while a menu is open also reads as "active while editing". */
.closer-note-card-resolved:focus-within,
.closer-note-card-resolved:has(.closer-status-menu[open]),
.closer-task-blocked:has(.closer-status-menu[open]) { opacity: 1; }
/* The recurrence rule on a Scheduled row ("monthly · created +6d · due
   +10d") is the row's primary information — legible next to the title,
   not a muted footnote (Jesse 2026-07-27). */
.closer-sched-rule {
  font-size: 14px;
  font-weight: 600;
  color: #250d47;
}
/* A line's next task, "Next: FY2026 · created Jan 1, 2027" (TM-2366), on the
   task card's schedule strip and atop Edit Schedule. */
.closer-sched-next {
  font-size: 14px;   /* "Next: FY2026 · created … · due …", in the edit dialogs too (Christopher, 2026-11-12) */
  font-weight: 400;
  color: #2d2c2f;
}

/* Collapsed note cards (Tom's "people don't read" ask, 2026-06-11). The card
   is a plain <div>: the .closer-note-summary div is the one-line header
   (subject + date + number + status menu + Discuss button) and the body +
   Discuss panel are hidden via [data-collapsed="true"] until the header is
   clicked. The closer bundle still mounts the markdown/chat into the (hidden)
   DOM at load, so expanding just reveals already-rendered content. Used to be
   a native <details>/<summary>, but that disallowed nesting interactive
   <details> dropdowns in the header (Jesse 2026-06-11, hoisted 2026-06-12). */
.closer-note-summary {
  cursor: pointer;
  /* The summary IS the card-body, so it carries the body padding; trim the
     bottom so a collapsed card is a tight one-liner. */
  padding-bottom: 0.75rem;
}
/* Expanded: trim the summary's bottom padding so the header sits close to
   the first body element (the resolution box / markdown). The
   .closer-note-detail card-body already had padding-top:0; this pair gives
   the body a single tight breathing strip (0.4rem) instead of the previous
   stack of summary-bottom + chat-aside flex gap + p-margin. */
.closer-note-card:not([data-collapsed="true"]) > .closer-note-summary {
  padding-bottom: 0.4rem;
}
/* Chevron on the left of the subject, rotating open like the resolved/past
   summaries do — same affordance, same brand glyph. */
.closer-note-summary .closer-note-subject::before {
  content: '\25B8';              /* ▸ */
  display: inline-block;
  margin-right: 0.5rem;
  color: #6a5a87;
  transition: transform 0.15s ease;
}
.closer-note-card:not([data-collapsed="true"]) > .closer-note-summary .closer-note-subject::before {
  transform: rotate(90deg);
}
/* Body hidden while the card is collapsed. The summary's padding-bottom
   already supplies breathing room so the collapsed card reads as a tight
   one-liner. */
.closer-note-card[data-collapsed="true"] > .closer-note-detail {
  display: none;
}
/* The note card AND the Monthly Review card hoist the Discuss toggle into
   their header row (the .closer-head-actions button with
   [data-closer-note-chat-toggle]) and pass externalToggle=1 to NoteChat so
   the component skips rendering its own button. As a belt-and-suspenders
   guard — for stale bundles that pre-date the externalToggle prop — also
   hide the in-panel toggle when it's inside one of those mounts. The
   firm-overview Discuss panels (different DOM, different markup) still
   show their toggle. */
.closer-note-card .closer-discuss-aside .closer-note-chat-toggle,
#cpane-monthly .closer-discuss-aside .closer-note-chat-toggle,
.closer-discuss-aside:has([data-external-toggle="1"]) .closer-note-chat-toggle {
  display: none;
}
/* Hide the aside ENTIRELY while the panel is collapsed on any card that
   has hoisted its Discuss toggle to the header row (data-external-toggle).
   Otherwise the aside (now an empty box, since its toggle moved out)
   still claims a row above the body via .closer-discuss-collapsed's
   column-reverse layout, which then pushes the body down by the split's
   1.25rem gap — reading as a phantom blank strip above the resolution /
   note markdown / review narrative / firm standing doc. Once the user
   opens Discuss, the aside re-appears beside the body in the normal row
   layout. Same `:has()` covers note cards, Monthly Review, Firm Overview,
   Firm SOPs, and any future hoist site without per-context selectors. */
.closer-discuss-collapsed:has([data-external-toggle="1"]) > .closer-discuss-aside {
  display: none;
}
/* Also zero the discuss-split's flex gap in the collapsed-aside case: with
   only the document column visible, leaving the 1.25rem row gap meant
   the body still sat a row-gap below where it could. The gap only earns
   its keep when both columns are visible side-by-side (open state). */
.closer-discuss-collapsed:has([data-external-toggle="1"]) {
  gap: 0;
}
/* The expanded body sits below the summary; the summary already supplied the
   top padding, so drop the detail's own top padding to avoid a double gap.
   Bottom padding stays on Bootstrap's default .card-body 1.5rem so the
   last markdown line has comfortable breathing room above the card border. */
.closer-note-detail {
  padding-top: 0;
}
/* Bottom-most note card in a tab pane: the cards stack via `mt-3` (top
   margin) so between-card spacing is handled, but the last card had no
   `mb-*`, so it sat flush against whatever followed (next tab section or
   page bottom). A 1rem trailing margin keeps the column visually balanced. */
.closer-note-card:last-child {
  margin-bottom: 1rem;
}
/* Two-column split: content on the LEFT, the Discuss (NoteChat) panel on the
   RIGHT, side-by-side on wide screens — "MUCH more usable" than the old
   stacked-below layout (Jesse, 2026-06-11). Used identically by the Monthly
   Review pane and all three note-card variants (open / snoozed / resolved).
   flex-wrap + flex-basis means it collapses to a single column (Discuss below
   the content) on narrow screens — no media query, no horizontal scroll.
   min-width: 0 on BOTH children is required so long markdown tables / the chat
   panel shrink within their column instead of forcing overflow. */
.closer-discuss-split {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}
.closer-discuss-main {
  flex: 1 1 22rem;   /* content column: gets the larger share when both fit */
  min-width: 0;
  /* Scroll a long note / monthly-review narrative WITHIN its column so the card
     doesn't grow unbounded and the Discuss column stays in view beside it
     (Jesse, 2026-06-11). Lifted back to natural height when columns stack. */
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 0.25rem;   /* keep text off the scrollbar */
}
/* The first markdown element sits flush at the column's top edge — the
   mt-2 on the .closer-discuss-split wrapper provides the breathing strip
   above it consistently across the open/closed states. Without zeroing
   the heading's natural margin, closed state would double-pad (mt-2 plus
   the heading's own margin-top) while open state's scroll-cap can eat
   that same margin in the same browser. */
.closer-discuss-main .ai-markdown > :first-child {
  margin-top: 0;
}
/* The per-note markdown body (.closer-note-md, rendered by react-markdown) can
   contain wide tables / code; in a min-width:0 column those would otherwise
   push horizontal scroll onto the whole page. Cap it to the column and let any
   genuinely-too-wide block scroll WITHIN the body, not the page. (The monthly
   .closer-summary also caps itself at an email's width.) */
.closer-discuss-main .closer-note-md {
  max-width: 100%;
  overflow-x: auto;
}
.closer-discuss-aside {
  flex: 1 1 20rem;   /* Discuss column: stacks below once it can't fit a row */
  min-width: 0;
  /* Read as its own card/panel beside the content (Jesse, 2026-06-11). The
     chat (.closer-note-chat) self-scrolls its messages area, so this column
     scrolls independently of the note body on the left. */
  background: #faf9fc;
  border: 1px solid #ece9f1;
  border-radius: 0.5rem;
  padding: 0.75rem;
}
/* The NoteChat root (.closer-note-chat) carries a top border + margin meant for
   the OLD stacked layout, where it separated the chat from the body above it.
   When the two columns sit side-by-side that separator is redundant (the gap +
   the aside column already delimit it), so drop it. The media query below
   restores it once the columns stack, so the chat still reads as a distinct
   section sitting beneath the content on narrow screens. */
.closer-discuss-aside .closer-note-chat {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
/* Collapsed Discuss: NoteChat toggles .closer-discuss-collapsed onto the split
   whenever its panel is closed (open === false). A flex ROW can't pin the lone
   "Discuss" button to the top-right while the document fills the full width —
   flex-basis:auto sizes the document to its CONTENT, so short docs sit at half
   (button beside) and long docs push the button to wrap below. So when collapsed
   we flip to a column whose order is REVERSED: the aside (DOM-last) rises to the
   TOP, right-aligned (just the toggle button, panel chrome dropped), and the
   document — DOM-first, now BELOW it — stretches to the FULL width and flows at
   natural height (no 75vh inner-scroll cap; that cap only earns its keep when a
   Discuss column sits beside it to keep in view). Refreshing into this state
   gives "button top-right, document full-width below" for ANY content length;
   opening the panel restores the side-by-side 50/50 row with independent scroll
   (Jesse, 2026-06-12). */
.closer-discuss-collapsed {
  flex-direction: column-reverse;
}
.closer-discuss-collapsed .closer-discuss-main {
  align-self: stretch;   /* full width (override the row's flex-start cross-align) */
  flex: 0 0 auto;
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
}
.closer-discuss-collapsed .closer-discuss-aside {
  align-self: flex-end;  /* button hugs the right edge, at the top of the card */
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  padding: 0;
}
/* Task / recurring-line Discuss cards: no inner-scroll cap on the content
   column. Two reasons the 75vh cap above doesn't suit them: their bodies are
   short (a schedule strip, a dependency list, a few metadata lines) rather
   than long narratives, and — the load-bearing one — they host the "Edit
   task" / "Edit schedule" popovers, which are position:absolute and would be
   CLIPPED open by an overflow-y:auto ancestor. Skill cards deliberately do
   NOT use this: a playbook can be long and has no popover to clip. */
.closer-discuss-natural:not(.closer-discuss-collapsed) .closer-discuss-main {
  max-height: none;
  overflow-y: visible;
}
/* Standing-doc cards (Firm Overview / Firm SOPs / Company Overview / Company
   SOPs): the card HUGS its content in both states — closed it ends where the
   markdown ends; open the split lays out side-by-side at the taller of the two
   columns' content height instead of forcing a viewport-fixed box (previous
   "fill when open" design was Jesse, 2026-06-12; pulled back per the
   consistent-card request — the chat panel still self-scrolls within whatever
   vertical space it has).

   Lifting .closer-discuss-main's 75vh cap here is also what keeps a
   .fo-overview-doc-fill doc — itself a scroller, sized by
   teams/_sop_fill_height.html — from being nested inside the column's own
   scroller. A standing-doc card that omits this class gets DOUBLE scrollbars.

   Layout only, and deliberately NOT keyed on .fo-firm-card: that class also
   paints the purple firm accent, which has no business on a company card.
   Still an opt-in class either way, so the per-note cards on the Closer home
   stay untouched. */
.fo-standing-card .closer-discuss-split:not(.closer-discuss-collapsed) {
  align-items: stretch;
}
.fo-standing-card .closer-discuss-split:not(.closer-discuss-collapsed) .closer-discuss-main {
  max-height: none;
  min-height: 0;
  overflow-y: visible;
}
/* Stacked layout: below this width the 22rem + 20rem bases can't share a row,
   so each child takes a full-width row of its own (Discuss below content).
   Restore the chat's top separator here — it's once again sitting under the
   body, not beside it. The threshold is set above 22rem + 20rem + gap so the
   wrap point and the separator-restore point coincide. */
@media (max-width: 47.5rem) {
  /* Stacked: the note body flows at natural height (the page scrolls), not a
     capped mini-pane — the within-column scroll only earns its keep when a
     Discuss column sits beside it to keep in view. */
  .closer-discuss-main {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  .closer-discuss-aside .closer-note-chat {
    margin-top: 1rem;
    border-top: 1px solid #ece9f1;
    padding-top: 0.75rem;
  }
}
/* Small count chip riding a tab label (open-notes / resolved counts) — a touch
   smaller and nudged off the text so it reads as a badge, not part of the word.
   Reuses .closer-pill + a status/number color class for the fill. */
.closer-tab-count {
  margin-left: 0.4rem;
  font-size: 12px;
  padding: 0.15rem 0.45rem;
  vertical-align: middle;
}
/* Closer home sub-tabs as two axes in one flat row (Jesse, 2026-06-12):
   "Monthly Review" stands alone; "Continuous / Snoozed / Recently resolved" are
   three STATES of the Continuous-Close logbook. A divider + uppercase group
   eyebrow convey the grouping without a second nav row. align-items: center so
   the non-interactive divider/eyebrow line up with the tab buttons. */
.closer-subtabs-grouped {
  align-items: center;
}
/* Thin vertical rule that walls off Monthly Review from the note-state group. */
.closer-subtabs-grouped .closer-subtabs-divider {
  align-self: stretch;
  width: 1px;
  margin: 0.25rem 0.75rem;
  background: #d9d2e3;
}
/* Small uppercase eyebrow that names the three note-state tabs as one set.
   Muted brand gray, slightly tracked-out, non-clickable — purely a label. */
.closer-subtabs-grouped .closer-subtabs-grouplabel {
  display: flex;
  align-items: center;
  margin-right: 0.25rem;
}
.closer-subtabs-grouped .closer-subtabs-grouplabel span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #250d47;
  white-space: nowrap;
  pointer-events: none;
}
/* The strip's right edge: the month being closed — eyebrow + the same
   dropdown the Monthly Review pane carries (ms-auto on the li). */
.closer-subtabs-grouped .closer-subtabs-month {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 0.75rem;
}
.closer-subtabs-grouped .closer-subtabs-month-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #250d47;
  white-space: nowrap;
}
/* Below this width the eyebrow + four items can't share a comfortable row;
   drop the long label and lean on the divider alone to keep the row clean. */
@media (max-width: 47.5rem) {
  .closer-subtabs-grouped .closer-subtabs-grouplabel,
  .closer-subtabs-grouped .closer-subtabs-month-eyebrow {
    display: none;
  }
}
/* Stable note handle (the DB id) shown on every card — the same number the
   assistant uses when it says "merged into note 4", so references are
   identifiable and the #note-<id> anchor is navigable. */
.closer-note-number {
  /* .closer-pill provides the shape/size; this only adds spacing + color so it
     renders identically to .closer-status-badge. */
  margin-right: 0.5rem;
  background: #ece9f1;
  color: #250d47;
}
.closer-resolution-reason {
  /* Green to echo the RESOLVED/Dismissed status — reads as the outcome,
     pulled from the note's resolution_reason in the DB. */
  font-size: 14px;
  color: #1b7a3d;
  background: #e6f4ea;
  border-left: 3px solid #1b7a3d;
  padding: 0.4rem 0.6rem;
  border-radius: 0.25rem;
  /* No top margin — the summary above already supplies the breathing room
     (its own padding when expanded), and a margin here read as a phantom
     gap between the header row and the resolution box. */
  margin: 0 0 0.6rem;
}
.closer-snapshot-download {
  margin-left: 0.5rem;
  font-weight: 600;
  color: #1A73E8;
  text-decoration: none;
}
.closer-snapshot-download:hover { text-decoration: none; }
.closer-past-closes { margin-top: 0.75rem; }
.closer-past-close-item {
  padding: 0.5rem 0;
  border-top: 1px solid #ece9f1;
}
.closer-past-close-detail > summary {
  cursor: pointer;
  margin-top: 0.25rem;
}

/* Top nav → Demo mode switch (web/demo_mode.py): sits left of the profile
   menu. When it's ON the switch itself is the indicator (Jesse, 2026-08-31 —
   a full-width banner was too loud; "make this light up a bit louder"
   instead): amber switch + bold amber label + a soft glow, unmissable on a
   recording, costs no vertical space. */
.fo-demo-mode-item {
  display: flex;
  align-items: center;
  padding-right: 1rem;
}
.fo-demo-mode-form .form-check {
  margin-bottom: 0;
  min-height: 0;
  /* A centred row, not Bootstrap's floated switch — the float pinned the
     toggle to the top of the box, above the bar's centre line that the
     user menu and the timer sit on (Jesse, 2026-09-25). */
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0;
}
.fo-demo-mode-form .form-check-input {
  float: none;
  margin: 0;
}
.fo-demo-mode-form .form-check-label {
  font-size: 14px;
  color: #6a5a87;
  cursor: pointer;
  line-height: 1.2;
  margin: 0;
}
.fo-demo-mode-form .form-check-input {
  cursor: pointer;
}
.fo-demo-mode-item.fo-demo-on .form-check-label {
  color: #b45309;
  font-weight: 700;
}
.fo-demo-mode-item.fo-demo-on .form-check-input {
  background-color: #f59e0b;
  border-color: #d97706;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.3);
}

/* Firm Overview → Close Summary: the all-clients close rollup table. Reuses
   the .closer-pill / .closer-status-* badges so a client's close status reads
   the same here as on its own Closer page. */
.fo-close-summary-totals {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.fo-close-summary-table td { vertical-align: middle; font-size: 14px; }   /* table data at 14px (Christopher, 2026-11-10) */
/* A client's name that opens its Closer, everywhere (Close Summary, Financial Summary, Firm Findings, the firm
   task calendar): dark purple, bold, after the Closer icon (icons.py "client_closer"; Christopher, 2026-11-12). */
.fo-close-summary-client {
  font-weight: 600;
  color: #250d47;
  text-decoration: none;
  /* As wide as its cell: a long name wraps only when the table has no room left, and a wrapped name hangs
     under its first word, not under the icon (Christopher, 2026-11-12: the old 16rem cap broke names early). */
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  white-space: normal;
}
.fo-close-summary-client > .svg-inline--fa { flex: none; }
.fo-close-summary-client:hover { text-decoration: none; }   /* links never underline, hover included (Christopher, 2026-11-12) */
/* Open-note count badge is a link into that client's Closer. */
a.fo-close-summary-notes, a.desk-board-chip-link { text-decoration: none; }
a.fo-close-summary-notes:hover, a.desk-board-chip-link:hover { filter: brightness(0.94); }
/* The Filters box body: the search and the two dropdowns in one row, labels above. */
.fo-close-summary-filterbar {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem;
}
/* Open tasks: the count, then the current close's tasks by name (14px table data, wrapping). */
.fo-close-summary-tasks { display: flex; align-items: flex-start; gap: 0.4rem; }
.fo-close-summary-holdups {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.3;
  max-width: 14rem;
  white-space: normal;
}
a.fo-close-summary-holdup { color: #250d47; text-decoration: none; }
a.fo-close-summary-holdup-more { color: #495057; text-decoration: none; }
a.fo-close-summary-holdup:hover, a.fo-close-summary-holdup-more:hover { color: #e91e63; }

/* Firm Close → Financial Summary: the all-clients five-line distillation, in the standard
   fo-check-table (dark purple head) that scrolls inside the card (Christopher, 2026-11-12).
   Click-to-sort headers; good/bad coloring on trend + signed figures. */
.fo-fin-summary-table thead th { white-space: nowrap; }
.fo-fin-summary-table td {
  vertical-align: middle;
  font-size: 14px;                      /* table data at 14px, as the Close Summary */
  font-variant-numeric: tabular-nums;   /* columns of numbers line up */
}
/* The row's "Closer →" link sits on its row's line: the card-foot margin it shares does not apply here. */
.fo-fin-summary-table td .fo-overview-foot { margin-top: 0; }
th.fo-sortable { cursor: pointer; user-select: none; }
th.fo-sortable:hover { color: #250d47; }
.fo-check-table th.fo-sortable:hover { color: #e91e63; }   /* on the dark purple head, hot pink like every other hover */
th.fo-sortable[data-sort-dir="asc"]::after  { content: ' \25B2'; font-size: 0.7em; }
th.fo-sortable[data-sort-dir="desc"]::after { content: ' \25BC'; font-size: 0.7em; }
.fo-fin-good { color: #1b7a3d; }   /* favorable move / positive figure */
.fo-fin-bad  { color: #c0392b; }   /* unfavorable move / negative figure */

/* Firm Reconciliations (Firm Close, 2026-09-04): the Reconciler across every client. Wears the
   APlus queue's filterbar (.aplus-queue-header / -chips) so the firm's list pages read alike. */
.fo-firm-recs-header {
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-bottom: 0;
  background: transparent;
}
/* Months / Bank feed / Divide: a segmented switch, the chosen side FILLED (Jesse, 2026-09-18:
   "unclear which is applied") — a Bootstrap btn-group since 2026-10-27, styled below. */

/* The client trail (static/js/client-trail.js): beside the firm's name on a firm page, the client this
   browser tab came from — "← Back to PBM Princess · Reconciler". Quiet, in the link ink: a page's own
   client is its header chip, never this (Jenn, 2026-10-28). */
.fo-client-trail { margin-left: 0; font-size: 14px; color: #495057; white-space: nowrap; }   /* the navigator's own gap is the room */
.fo-client-trail-link { color: #250d47; font-weight: 400; text-decoration: none; }
.fo-client-trail-link:hover { color: #e91e63; }
.fo-client-trail-page { color: #495057; font-weight: 400; }

/* Firm Rules (Firm Close, 2026-10-08): every client's Reconciler rules in the client grid, with the
   report filter dials on top (.report-filters) and a vendor card — four number tiles and one bar
   chart of where the firm's clients book the vendor (reconciler/FirmRules.tsx). One series, one
   hue (the brand purple); values sit in text ink, never the bar colour. */
.fo-frules-dials { gap: 0.25rem; }
.fo-frules-progress { margin-left: auto; padding: 0 0.75rem; color: #667085; font-size: 14px; white-space: nowrap; }
.fo-frules-vendor-search { position: relative; min-width: 16rem; }
.fo-frules-vendor-search-box { position: relative; display: block; }
.fo-frules-vendor-search .form-control { padding-left: 1.8rem; padding-right: 1.8rem; }
/* A picked vendor reads as the box's VALUE (dark, bold) — grey placeholder text looked like a hint you
   could not clear (Jesse, 2026-10-08). Typing replaces it; the × or Esc clears it. */
.fo-frules-vendor-picked::placeholder { color: #250d47; font-weight: 600; opacity: 1; }
.fo-frules-vendor-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 0.3rem;
  border: 0;
  background: transparent;
  color: #667085;
  line-height: 1;
  cursor: pointer;
}
.fo-frules-vendor-clear:hover { color: #c5221f; }
.fo-frules-vendor-search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 0.8rem;
  pointer-events: none;
}
.fo-vendors-suggest {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 30;
  min-width: 22rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
}
.fo-vendors-suggest li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0.75rem;
  font-size: 14px;
  cursor: pointer;
}
.fo-vendors-suggest li[aria-selected="true"],
.fo-vendors-suggest li:hover { background: #e7f1ff; }
.fo-vendors-suggest-meta { color: #667085; white-space: nowrap; }

.fo-frules-vendor {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid #e4e7ec;
  border-radius: 0.5rem;
  background: #fff;
}
.fo-frules-vendor-empty { color: #667085; font-size: 14px; }
.fo-frules-vendor-head { display: flex; align-items: center; justify-content: space-between; }
.fo-frules-vendor-name { margin: 0; font-size: 1.1rem; font-weight: 700; color: #250d47; }
.fo-frules-vendor-close { font-size: 14px; }
.fo-frules-vendor-body { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 0.6rem; }
.fo-frules-tiles { display: grid; grid-template-columns: repeat(2, minmax(7rem, auto)); gap: 0.5rem 1.5rem; align-content: start; }
.fo-frules-tile { display: flex; flex-direction: column; }
.fo-frules-tile-value { font-size: 1.35rem; font-weight: 700; color: #250d47; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fo-frules-tile-sep { margin: 0 0.2rem; color: #98a2b3; font-weight: 400; }
.fo-frules-tile-label { font-size: 14px; color: #667085; }
.fo-frules-chart { flex: 1 1 22rem; min-width: 0; max-width: 40rem; }
.fo-frules-chart-title { font-size: 14px; color: #667085; margin-bottom: 0.3rem; }
.fo-frules-bar-row {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr 2rem;
  align-items: center;
  gap: 0.5rem;
  padding: 2px 0;
  font-size: 14px;
  cursor: default;
}
.fo-frules-bar-row:hover .fo-frules-bar { background: #3f1d73; }
.fo-frules-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #344054; }
.fo-frules-bar-track { height: 10px; }
.fo-frules-bar { display: block; height: 10px; min-width: 2px; border-radius: 0 4px 4px 0; background: #5a2ca0; }
/* "Other" is many accounts, not one — a lighter step of the same hue, so it never reads as the
   firm's biggest single account. */
.fo-frules-bar-other, .fo-frules-bar-row:hover .fo-frules-bar-other { background: #c9b6e8; }
.fo-frules-bar-value { text-align: right; color: #344054; font-variant-numeric: tabular-nums; }
/* The footprint panel (no vendor picked): two ranked charts side by side, each bar opens its vendor. */
.fo-frules-footprint .fo-frules-vendor-body { gap: 2.5rem; }
.fo-frules-footprint .fo-frules-chart { flex: 1 1 26rem; max-width: 44rem; }
.fo-frules-footprint .fo-frules-bar-row { grid-template-columns: minmax(8rem, 13rem) 1fr 3.5rem; }
.fo-frules-bar-pick {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.fo-frules-bar-pick:hover { background: #e7f1ff; }
.fo-frules-bar-pick:focus-visible { outline: 2px solid #5a2ca0; outline-offset: 1px; }
.fo-frules-usual {
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 0.5rem;
  background: #f3eefb;
  color: #5a2ca0;
  font-size: 14px;
}
.fo-frules-unruled { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; margin-top: 0.75rem; font-size: 14px; }
.fo-frules-unruled-label { color: #667085; margin-right: 0.25rem; }
.fo-frules-unruled-more { color: #667085; }
.fo-frules-chip {
  padding: 0.05rem 0.5rem;
  border: 1px solid #d0d5dd;
  border-radius: 1rem;
  background: #fff;
  color: #344054;
  font-size: inherit;
  cursor: pointer;
}
.fo-frules-chip .fa-plus { font-size: 0.65rem; color: #98a2b3; }
.fo-frules-chip:hover { border-color: #5a2ca0; color: #5a2ca0; }
.fo-frules-chip-off { border-color: #f5c26b; background: #fff8e6; }
.fo-frules-col-client { white-space: nowrap; }
.fo-frules-col-vendor { white-space: nowrap; }
.fo-frules-vendor-link { font-weight: 600; color: #250d47; }
.fo-frules-off { margin-left: 0.4rem; }
.fo-frules-vendor-row { cursor: pointer; }

/* Firm Reconciliations ▸ Months: one row per client, one chip per month, the chip split into
   segments by account state (severity order left to right). Same colours as the client tab's
   chips — drift red, waiting amber, no-statement grey, reconciled green — so a firm cell and
   the client cells it summarises read as one system. */
.fo-recgrid-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.fo-recgrid-summary {
    color: #475467;
    font-size: 14px;
    font-weight: 600;
}

.fo-recgrid-scroll {
    max-height: calc(100vh - 22rem);
    min-height: 12rem;
}

.fo-recgrid-table { font-size: 14px; }
.fo-recgrid-table th,
.fo-recgrid-table td { white-space: nowrap; }

.fo-recgrid-table .fo-recgrid-client-head,
.fo-recgrid-table .fo-recgrid-client {
    background: #fff;
    left: 0;
    position: sticky;
    text-align: left;
    z-index: 2;
}

.fo-recgrid-table .fo-recgrid-month-head,
.fo-recgrid-table .fo-recgrid-cell { text-align: center; }

.fo-recgrid-month-head-bad { color: #B42318; }

.fo-recgrid-count { font-size: 12px; }

.fo-recgrid-row-attention td { background: #FFFBF3; }
.fo-recgrid-row-attention .fo-recgrid-client { background: #FFFBF3; }

/* The chip: a fixed-width bar; each account state is a segment grown by its count. */
.fo-recgrid-chip {
    border: 1px solid #E4E7EC;
    border-radius: 999px;
    display: inline-flex;
    height: 0.9rem;
    overflow: hidden;
    vertical-align: middle;
    width: 5.5rem;
}

.fo-recgrid-chip:hover,
.fo-recgrid-chip:focus-visible {
    box-shadow: 0 0 0 2px rgba(37, 13, 71, 0.18);
    outline: none;
}

.fo-recgrid-chip-empty {
    background: repeating-linear-gradient(135deg, #F8F9FC 0 4px, #fff 4px 8px);
    border-style: dashed;
}

.fo-recgrid-seg {
    display: block;
    flex-basis: 0;
    min-width: 3px;
}

.fo-recgrid-seg + .fo-recgrid-seg { border-left: 1px solid rgba(255, 255, 255, 0.8); }

.fo-recgrid-seg-reconciled { background: #86EFAC; }
.fo-recgrid-seg-drifted    { background: #F87171; }
.fo-recgrid-seg-waiting    { background: #FCD34D; }
.fo-recgrid-seg-open       { background: #D1D5DB; }
/* Activity census (2026-09-29): a statement whose month's bank activity isn't all there — a deeper
   amber than "waiting" — and a month with neither, hatched grey so it reads apart from "no statement
   yet" while the activity IS there. */
.fo-recgrid-seg-stmt-noact { background: #F59E0B; }
.fo-recgrid-seg-noact {
    background: repeating-linear-gradient(135deg, #D1D5DB 0 3px, #9CA3AF 3px 5px);
}

/* The client's Plaid feed: green = every linked connection synced within 48 h, amber = stale or
   erroring. No dot = no feed on any reconcilable account. */
.fo-recgrid-feed {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 0.35rem;
    vertical-align: middle;
}
.fo-recgrid-legend--inline {
    gap: 0.25rem 0.9rem;
    margin: 0 0 0 auto;
}

/* The Plaid dots' key, in the Client heading beside the names that carry the dots. */
.fo-recgrid-feed-key {
    display: inline-flex;
    gap: 0.75rem;
    margin-left: 0.75rem;
    font-weight: 400;
    font-size: 14px;
    color: #6B7280;
}

.fo-recgrid-feed-key > span {
    display: inline-flex;
    align-items: center;
}

.fo-recgrid-feed-key .fo-recgrid-feed {
    margin: 0 0.3rem 0 0;
}

.fo-recgrid-legend .fo-recgrid-feed {
    margin: 0 0.35rem 0 0;
}
.fo-recgrid-feed-ok    { background: #16A34A; }
.fo-recgrid-feed-stale { background: #F59E0B; }

.fo-recgrid-pop-activity {
    display: block;
    color: #667085;
    font-size: 14px;
    padding-left: 1rem;
}

.fo-recgrid-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 14px;
    color: #667085;
}

.fo-recgrid-swatch {
    border-radius: 2px;
    display: inline-block;
    height: 0.65rem;
    margin-right: 0.35rem;
    vertical-align: -1px;
    width: 0.65rem;
}

.fo-recgrid-legend {
    color: #6B7280;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 0.35rem 1.25rem;
    list-style: none;
    margin: 0.4rem 0 0.6rem;
    padding: 0;
}

/* The hover popover: the accounts behind a chip, worst first. One element, moved around. */
.fo-recgrid-pop {
    background: #fff;
    border: 1px solid #DEE2FE;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(37, 13, 71, 0.16);
    font-size: 14px;
    max-width: 30rem;
    padding: 0.5rem 0.65rem;
    position: absolute;
    z-index: 1080;
}

.fo-recgrid-pop-head {
    color: #250d47;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.fo-recgrid-pop-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fo-recgrid-pop-list li {
    align-items: baseline;
    display: flex;
    gap: 0.35rem;
    padding: 0.12rem 0;
    white-space: nowrap;
}

.fo-recgrid-pop-fqn { font-weight: 600; }
.fo-recgrid-pop-what { color: #475467; }

.fo-recgrid-pop-foot {
    color: #9aa0ad;
    font-size: 14px;
    margin-top: 0.35rem;
}
/* Firm Reconciliations ▸ Bank feed (static/js/firm-sources.js): the Months grid's shape — one
   row per client, the .fo-recgrid-chip split into one segment per account by its Plaid feed, then
   who reconciles the client. Green connected, amber stale, red error, purple needs
   re-auth, red-hatched not on Plaid, grey no feed needed. */
.fo-src-seg-ok     { background: #86EFAC; }
.fo-src-seg-stale  { background: #FCD34D; }
.fo-src-seg-error  { background: #F87171; }
.fo-src-seg-reauth { background: #A78BFA; }
.fo-src-seg-none   { background: repeating-linear-gradient(135deg, #FCA5A5 0 3px, #FEE2E2 3px 6px); }
.fo-src-seg-design { background: #E5E7EB; }
.fo-src-chip { width: 10rem; }
/* Its popover: an account's detail line wraps under it rather than running off the box. */
.fo-src-pop .fo-recgrid-pop-list li { flex-wrap: wrap; white-space: normal; }
.fo-src-pop .fo-recgrid-pop-activity { flex-basis: 100%; }
/* The key doubles as the filter: a state clicked on is ringed. */
.fo-src-legend { margin-bottom: 0.25rem; }
.fo-src-legend button {
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  font: inherit;
  padding: 0.05rem 0.5rem;
}
.fo-src-legend button:hover { border-color: #E4E7EC; }
.fo-src-legend button.fo-src-key-active {
  background: #e7f1ff;
  border-color: #5a2ca0;
  color: #250d47;
}
.fo-src-legend [data-role=src-count] { font-weight: 600; color: #344054; }

/* Rendered markdown narrative from react-markdown. Keep headings tight
   and aligned with the brand purple. */
/* Structural-only wrapper for the monthly review summary. Typography is
   inherited from `.ai-markdown` (always paired in the template). The review
   is written to read as an email (Jesse, 2026-10-06: "the review presented
   here is wider than we need ... should be able to fit into an email"), so
   the column stops at an email's width and the tiny tables hug their
   content instead of spreading a two-column table across the page. The very
   first heading drops its top margin so it sits flush under the header. */
.closer-summary {
  max-width: 46rem;
}
.closer-summary > :first-child {
  margin-top: 0;
}
.closer-summary table {
  width: auto;
  min-width: 22rem;
}
.closer-summary td:not(:first-child),
.closer-summary th:not(:first-child) {
  padding-left: 1.5rem;
}

/* Snapshot footer line under the narrative. */
.closer-snapshot {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ece9f1;
  font-size: 14px;
  color: #2d2c2f;   /* body ink (was the muted #6c757d) */
  /* A flex row, so its chip and links centre on the text line. */
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem;
}
.closer-snapshot > .closer-heading-chip { margin-left: 0; }
/* The leading icon of the Monthly Review heading and of the snapshot line under it:
   one fixed-width column, each glyph centred in it, so the two stack on one line. */
.closer-lead-icon { width: 1.25rem; text-align: center; flex: none; }

.closer-snapshot-path {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--bs-font-monospace, monospace);
  font-size: 14px;
  word-break: break-all;
}

/* Monthly-Review version selector: the Financials snapshot picker's look
   (Jesse, 2026-10-06: "the financials one just LOOKS a lot cleaner"). The menu
   carries .closer-snapver-menu for its four-column grid; rows are
   .closer-edver-row (not .closer-snapver-row, which the snapshot JS binds
   page-wide): name | status | saved | rename · delete. Lifted above the
   floated Discuss pill that shares the card's top-right corner. */
.closer-edver-menu { z-index: 1060; }
.closer-edver-row,
.closer-snapver-deleted-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
}
.closer-edver-row .closer-edver,
.closer-snapver-deleted-row .closer-edver {
  display: grid;
  grid-column: 1 / 4;
  grid-template-columns: subgrid;
  align-items: center;
  column-gap: 0.9rem;
  padding: 0.35rem 0.5rem 0.35rem 0.9rem;
  white-space: nowrap;
}
.closer-edver-row.active { background: #cfe2ff; }
.closer-edver-row .closer-edver.active,
.closer-edver-row .closer-edver.active:hover {
  background: transparent;
  color: #250d47;
}
.closer-edver-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 14px;
  color: #495057;
}
/* Small status dot leading the status — mirrors the month picker's marker.
   The dot carries a `.closer-status-*` class (whose saturated `color` is the
   status hue) and paints that hue via currentColor; declared AFTER the status
   classes so it wins their pale `background` on this element. */
.closer-version-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.closer-edver-row .closer-snapver-tools .closer-edver-delete:hover,
.closer-edver-row .closer-snapver-tools .closer-edver-delete.closer-snap-confirm {
  color: #fff;
  background: #dc3545;
}
/* Renaming: the input takes the name column; the row keeps the rest. */
.closer-edver-row.closer-edver-editing .closer-edver-name-input {
  grid-column: 1;
  grid-row: 1;
  margin-left: 0.6rem;
  height: 1.8rem;
  z-index: 1;
  border: 1px solid #b9a3e3;
  background: #fff;
}
.closer-edver-row.closer-edver-editing .closer-edver { grid-row: 1; }
.closer-edver-row.closer-edver-editing .closer-edver .closer-snapver-name { visibility: hidden; }
/* "Show N deleted" and the deleted rows under it: quiet, restorable. */
.closer-edver-deleted-toggle { grid-column: 1 / -1; border-top: 1px solid #ece9f1; margin-top: 0.25rem; }
.closer-edver-deleted-toggle .dropdown-item { font-size: 14px; color: #495057; }
.closer-edver-deleted .closer-edver { color: #9a94a6; }
/* While a run works, the top of the same menu (Jesse, 2026-10-19: one control
   for running the review and picking its version, Run as its left half): the
   name the new version takes, then the pass's progress. */
.closer-edver-run-row {
  grid-column: 1 / -1;
  padding: 0.3rem 0.9rem 0.45rem;
  border-bottom: 1px solid #ece9f1;
  margin-bottom: 0.25rem;
}
.closer-edver-run-name-row { display: flex; align-items: center; gap: 0.4rem; }
.closer-edver-run-name {
  flex: 1 1 auto;
  min-width: 12rem;
  height: 29px;
  font-size: 14px;
  background: #fff;
  border: 1px solid lightgray;
  border-radius: .375rem;
}
.closer-edver-run-progress { display: flex; align-items: center; margin-top: 0.35rem; font-size: 14px; color: #495057; }
/* The review's "Initial run" line stays put while the review scrolls inside
   its pane (Jesse, 2026-10-19: "Initial run should be frozen so it doesn't
   scroll away"), and carries "Changes since <the version below>". */
.closer-summary .closer-run-stamp-line {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0;
  background: #fff;
  border-bottom: 1px solid #ece9f1;
  font-weight: 400;
}
button.closer-review-changes-btn { border: 0; cursor: pointer; margin-left: 0.25rem; }
button.closer-review-changes-btn:hover { background: #1A73E8; color: #fff; }
/* Internal: never printed with the review. */
@media print { .closer-review-changes-btn { display: none !important; } }
/* "Changes since <previous version>" (#closer-review-changes-modal). */
.closer-changes { font-size: 14px; color: #2d2c2f; }
.closer-changes p { font-weight: 400; }
.closer-changes-window { font-size: 14px; color: #495057; margin-bottom: 0.5rem; }
.closer-changes-lead { font-weight: 600 !important; margin-bottom: 0.25rem; }
.closer-changes-head { display: flex; align-items: center; gap: 0.4rem; margin: 1rem 0 0.4rem; }
.closer-changes-note { font-size: 14px; color: #495057; margin: 0.35rem 0 0; }
.closer-changes-aside { color: #495057; }
.closer-changes-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.closer-changes-table th { background: #250d47; color: #fff; font-weight: 600; padding: 0.35rem 0.5rem; text-align: left; white-space: nowrap; }
.closer-changes-table td { padding: 0.3rem 0.5rem; border-bottom: 1px solid #dee2e6; }
/* Entries changed, by account (GL order): the account's band carries its net change. */
.closer-changes-ledger .closer-changes-group td { background: #efeaf6; color: #250d47; font-weight: 600; }
/* Each check's findings and each account's entries fold under their header (Jesse, 2026-10-19:
   "zippable"): folded by default, the chevron turns down when open. */
.closer-changes-caret { font-size: 10px; margin-right: 0.45rem; transition: transform 0.15s; }
.closer-changes-open > .closer-changes-fold-head .closer-changes-caret,
.closer-changes-open > .closer-changes-group .closer-changes-caret { transform: rotate(90deg); }
.closer-changes-group { cursor: pointer; }
.closer-changes-ledger tbody:not(.closer-changes-open) > tr:not(.closer-changes-group) { display: none; }
.closer-changes-fold { border-bottom: 1px solid #f0eef3; }
.closer-changes-fold-head { display: flex; align-items: center; gap: 0.4rem; width: 100%; padding: 0.35rem 0.25rem;
  border: 0; background: none; text-align: left; font-size: 14px; color: #2d2c2f; cursor: pointer; }
.closer-changes-fold-head:hover .closer-changes-fold-label { color: #e91e63; }
.closer-changes-fold-label { font-weight: 600; color: #250d47; margin-right: 0.25rem; }
.closer-changes-fold:not(.closer-changes-open) > .closer-changes-findings { display: none; }
.closer-changes-fold > .closer-changes-findings { padding-left: 1.4rem; }
/* The summary's modal resizes from its corner; its body scrolls inside it. */
.closer-changes-modal .modal-dialog { max-width: none; width: fit-content; margin: 1.75rem auto; }
.closer-changes-modal .modal-content { resize: both; overflow: hidden; width: min(1140px, 95vw); height: 80vh;
  min-width: 480px; min-height: 300px; max-width: 98vw; max-height: 94vh; }
.closer-changes-modal .modal-body { overflow: auto; min-height: 0; }
.closer-changes-table .closer-changes-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.closer-changes-table a,
.closer-changes-link { color: #250d47; text-decoration: none; }
.closer-changes-table a:hover,
.closer-changes-link:hover { color: #e91e63; }
.closer-changes-link { display: inline-block; margin-top: 0.5rem; font-weight: 600; font-size: 14px; }
.closer-changes-head .closer-changes-details { margin: 0 0 0 0.5rem; font-size: 14px; }
.closer-changes-findings { list-style: none; padding: 0; margin: 0; }
.closer-changes-findings li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.25rem 0; border-bottom: 1px solid #f0eef3; font-size: 14px; }
/* "(current)" tag riding the newest version's row — dimmed so it reads as a
   marker, not part of the timestamp. */
.closer-version-current-tag {
  font-size: 12px;
  opacity: 0.7;
}
/* Read-only banner shown above the narrative when a PAST version is selected,
   so it's unmistakable you're not looking at the current narrative. Reuses the
   brand's soft-purple panel fill (same family as .closer-discuss-aside). */
.closer-version-banner {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.75rem;
  background: #faf9fc;
  border: 1px solid #ece9f1;
  border-radius: 0.5rem;
  font-size: 14px;
  color: #495057;
}
.closer-version-banner strong {
  color: #250d47;
}

/* Continuous Close — open notes logbook. */
.closer-notes {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.closer-note {
  padding: 0.75rem 0;
  border-bottom: 1px solid #ece9f1;
}

.closer-note:last-child {
  border-bottom: none;
}

.closer-note-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.closer-note-subject {
  font-weight: 600;
  color: #250d47;
}

.closer-note-date {
  font-size: 14px;
  white-space: nowrap;
}

.closer-note-body {
  margin-top: 0.25rem;
  font-size: 14px;
}

/* Inline chat panel under each open note card. Compact by default;
   expands inline when the user clicks Discuss. Styled to feel like
   part of the card, not a modal — short scrollable message list with
   a textarea + send button below. */
.closer-note-chat {
  margin-top: 1rem;
  border-top: 1px solid #ece9f1;
  padding-top: 0.75rem;
}

.closer-note-chat-toggle {
  /* Match the default Bootstrap .btn-sm typography (0.75rem) used by Run
     now and the section-head dropdowns; was 0.85rem, which made the
     Discuss button visibly larger than every other action in the same
     row. */
  font-size: 14px;
  /* Vertically center the icon, label and count instead of baseline-aligning
     them (the count was a different size and sat off the label's baseline). */
  display: inline-flex;
  align-items: center;
}

/* Row holding the Discuss/Hide toggle and (once a conversation exists) the
   AI-Console link widget. Wraps on narrow cards so the id never clips the
   button. */
.closer-note-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
/* The open panel's own Hide (hoisted-toggle hosts only): the host's Discuss button
   sits in an action row that a long thread scrolls out of view, so the reader
   collapses the thread from where they are. Right-aligned off the header's flex. */
.closer-note-chat-hide {
  font-size: 14px;
  text-decoration: none;
}

/* Plain primary-pink count next to the Discuss label — no gray circle badge
   (its fixed dimensions caused awkward spacing). Inherits the toggle's
   font-size so the number and the "Discuss" label match and line up. */
.closer-note-chat-count {
  color: #e91e63;
  font-weight: 600;
}

/* Open-notes count next to the "Review Summary" sub-tab. Red pill that
   reads as a circle for 1 digit and stretches to a pill for 2+ digits.
   Defined here rather than reusing .badge because the repo-wide .badge
   rule (above) forces a fixed 25px width that clips 2-digit counts. */
.fo-overview-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.45em;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

/* The "↗ AI Console" pill + copy-id + conversation id, reusing the AI
   Console title widget's styling (.ai-chat-title-*) for visual parity. */
.closer-note-chat-convlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 14px;
  min-width: 0;
}
.closer-note-chat-convlink .ai-chat-title-id {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}

.closer-note-chat-panel {
  /* No top margin — the chat panel sits directly under the host card's
     header. Was 0.75rem when the panel lived BELOW an in-panel toggle
     button; now that the Discuss toggle has moved to the card header,
     that gap reads as wasted space above the TOOL CALLS toggle / chat
     messages. */
  margin-top: 0;
}

.closer-note-chat-messages {
  /* Size to content, capped — so a short exchange (or the lone "…"
     placeholder while waiting for the first reply) doesn't leave a big
     blank gap below it. Once the thread grows past the cap it scrolls.
     Still user-resizable: dragging the handle sets an explicit height
     that overrides the content-fit default. The cap is generous (most of
     the viewport) so the panel can be dragged to fill the page. */
  height: auto;
  min-height: 0;
  max-height: 85vh;
  resize: vertical;
  overflow-y: auto;
  padding: 0.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.closer-note-chat-messages-empty {
  /* No messages yet: don't reserve the full 380px scrollbox — that
     leaves a giant blank gap above the input on a fresh "Discuss".
     Collapse to nothing and let the input sit right under the hint;
     the box grows back to its resizable height once messages exist. */
  height: auto;
  min-height: 0;
  resize: none;
}

/* (The discussion now renders the AI Console's ChatMessage component, which
   uses .ai-chat-* bubble styling — the former .closer-chat-bubble* rules and
   their pulse keyframe were removed as dead code.) */

.closer-chat-error {
  margin: 0.5rem 0;
  font-size: 14px;
}

/* (The composer row — textarea + send + attach — now reuses the AI Console's
   shared ChatInput; its .closer-note-chat-input / .closer-chat-send rules were
   removed with that markup. The ChatInput's own .ai-chat-input-area padding
   already insets it within the panel.) */

/* ============================================================
   Company Overview tab (templates/teams/overview.html)
   Standing company-info + FinOptimal standing-info panels.
   Brand palette: deep purple #250d47, pink accent #e91e63.
   ============================================================ */
.fo-overview-heading {
    color: #250d47;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: .75rem;
}
/* When the heading lives on a <summary> (collapsible Company Overview /
   Financial Operations Overview panels) it gets caught by the global
   `summary { font-size: 14px !important }` rule above, which clamps it
   to 14px and breaks parity with the sibling <h4> headers + the
   .fo-overview-block-head anchor used by "Latest monthly review". Lift
   it explicitly with !important on the summary path. */
summary.fo-overview-heading {
    font-size: 1.5rem !important;
    padding: 0 !important;
}

/* Collapsible narrative panels on the Overview tab (native <details>). The
   <summary> carries .fo-overview-heading; make it read as a clickable header. */
.fo-overview-details > summary {
    cursor: pointer;
    margin-bottom: 0;
    list-style-position: inside;
}
.fo-overview-details[open] > summary {
    margin-bottom: .5rem;
}
/* Breathing space between the native disclosure marker (▶ / ▼) and the
   summary's leading icon — without this, the arrow lands flush against
   the icon and reads as one merged glyph. Targets `:first-child` (not
   `> i`) because Font Awesome's JS replaces `<i>` with inline `<svg>`
   in the live DOM, so the `i` selector doesn't match. */
.fo-overview-details > summary::marker {
    font-size: 0.85em;
}
.fo-overview-details > summary > :first-child {
    margin-left: 0.75rem;
}

/* Firm-wide baseline card — shown only to firm admins, sits above the
   company-specific overviews. A calm brand-purple accent + faint tint
   signals "inherited firm policy", distinct from the pink action accent. */
.fo-firm-card {
    border-left: 4px solid #250d47;
    background: #f7f5fb;
}

/* Right-aligned bar holding a card's "Discuss" toggle, below the heading rather
   than beside it. Used by the Firm SOPs card (teams/firm_overview.html) and by
   both company standing-doc cards (teams/overview.html) — on the Company
   Overview card it must stay OUTSIDE the <summary>, or clicking Discuss would
   toggle the disclosure. Name kept for continuity; the rule is not firm-only. */
.fo-firm-discuss-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}
/* Firm SOPs card drops the firm-baseline accent (purple left strip + tint) so it
   reads as a plain Company-SOPs-style card; the accent stays on the Firm Overview
   card above, which keeps the .fo-firm-card treatment without this modifier. */
.fo-firm-card.fo-firm-card-flush {
    border-left: 0;
    background: #fff;
}

/* Context chip in the page title — makes firm-vs-company unmistakable.
   Company = teal-ish, Firm = brand purple, so the two read differently
   at a glance even before you read the label. */
.fo-context-chip {
    display: inline-block;
    margin-left: .6rem;
    padding: .12rem .55rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    vertical-align: middle;
}
.fo-context-company {
    color: #0b6b5f;
    background: #e3f4f1;
}
/* Top bar: connected with the legacy Services token only, so no QuickBooks
   webhooks (fo_saas.qbo.token_context). Amber = needs changing, not broken. */
.fo-context-services-token {
    margin-left: 0;
    color: #7a4b00;
    background: #fdf0d5;
}
.fo-context-firm {
    color: #fff;
    background: #250d47;
}

/* Instructional / helper text — info-row at the bottom of cards,
   below-table explainers, empty-state lines, etc. Same color/weight as
   the AI-chat assistant body (`.ai-chat-bubble-assistant` /
   `.ai-markdown p`: #333, weight 400) so it reads as real prose, just
   at a smaller .9rem so it stays subordinate to the surrounding card
   headings + body content. The `.fo-overview-subtle-dark` modifier
   below resolves to the same metric — kept as an alias so templates
   that already tag it stay valid. */
.fo-overview-subtle {
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

/* Structural-only wrapper for rendered standing-overview markdown (firm/
   company overview, FinOps Overview, AI Memory file viewer). Typography
   lives on `.ai-markdown` (always paired in the template), so a paragraph
   here reads identically to a paragraph in a Closer note or chat bubble.
   This rule provides ONLY the within-card scrolling box so a long doc
   doesn't blow out page height. */
.fo-overview-doc {
    max-height: 22rem;
    overflow-y: auto;
}

/* Sub-sections within the FinOptimal standing-info card. */
.fo-overview-block {
    padding: .75rem 0;
    border-top: 1px solid #eceef1;
}
.fo-overview-block:first-of-type {
    padding-top: 0;
    border-top: none;
}

.fo-overview-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #250d47;
    margin-bottom: .5rem;
}

.fo-overview-link {
    font-size: 1rem;
    font-weight: 500;
    color: #e91e63;
    text-decoration: none;
}
.fo-overview-link:hover {
    text-decoration: underline;
}

/* "SOPs steer these reviews: THIS CLIENT'S | FIRM-WIDE" — render the two
   target links as a small uppercase eyebrow pair so they read as labels
   rather than mid-sentence prose. The pipe between them carries its own
   spacing and a muted colour so it separates without competing for the
   eye. The first link's left margin matches the pipe's per-side margin
   so the gap between "reviews:" and the first link reads the same as
   the gap on either side of the pipe. The prose leading into the links
   carries a darker colour than the default .fo-overview-subtle so it
   reads as a real label, not a passing comment. */
/* Match the standard AI-chat assistant body text (`.ai-chat-bubble-assistant`
   color + `.ai-markdown p` weight + size) — used as a modifier on
   `.fo-overview-subtle` paragraphs that should read as real prose, not as
   muted helper text. Applied to the Closer "Where to start" SOPs eyebrow,
   the firm Financial Summary intro paragraph, and the Review-Summary card's
   "No open review notes" / "Not yet reviewed" lines so the prose feels
   like a normal sentence next to its neighbouring chips. */
.fo-overview-subtle.fo-overview-subtle-dark,
.fo-overview-subtle:has(> .fo-sops-link) {
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

/* "Latest Review: <period>" label beside the all-clients Financial Summary
   heading. Bolded deep brand pink (Material pink 700) so it reads as the
   live period value, not a subtle aside, while still scanning darker than
   the brighter #e91e63 used for inline links. */
.fo-period-label {
    color: #ad1457;
    font-weight: 600;
    font-size: 14px;
}

/* Inline loading row (Bootstrap spinner + label) — brand-pink so it
   matches the live-period label and the pink-accented links elsewhere on
   the firm overview. The Bootstrap .spinner-border inherits the parent
   color via currentColor, so setting color here colours the ring too;
   no separate .text-* class needed on the spinner itself. */
.fo-loading-message {
    color: #e91e63;
    font-weight: 400;
}
.fo-sops-link {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fo-sops-link:first-of-type {
    margin-left: 0.4rem;
}
.fo-sops-sep {
    color: #b9b3c4;
    margin: 0 0.4rem;
}

/* A block-head that is itself a link (close review / notes -> Closer). */
a.fo-block-link {
    text-decoration: none;
    color: #250d47;
}
a.fo-block-link:hover {
    color: #250d47;
}
a.fo-block-link:hover span:first-child {
    text-decoration: underline;
}

/* Trailing-12-months financials table (Current Status, Memorializer shape).
   Scrolls horizontally on narrow screens; row labels stay pinned. */
/* Branded to echo the Closer "Financials" statements: purple header band,
   frozen row-labels + Total column, framed wrap, tabular figures. */
.fo-fin-table-wrap {
    overflow: auto;
    margin-bottom: .35rem;
    border: 1px solid #eceef1;
    border-radius: .4rem;
}
.fo-fin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.fo-fin-table th,
.fo-fin-table td {
    padding: .35rem .6rem;
    text-align: right;
    border-bottom: 1px solid #f1f0f5;
}
/* Purple header band (frozen), white bold — matches .closer-fin-table. */
.fo-fin-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #250d47;
    color: #fff;
    font-weight: 600;
    font-size: .72rem;
}
.fo-fin-table tbody tr:last-child th,
.fo-fin-table tbody tr:last-child td {
    border-bottom: none;
}
/* Faint zebra for readability across the wide month grid. */
.fo-fin-table tbody tr:nth-child(even) th,
.fo-fin-table tbody tr:nth-child(even) td {
    background: #faf9fc;
}
/* Frozen row labels (left). */
.fo-fin-rowhead {
    text-align: left !important;
    position: sticky;
    left: 0;
    z-index: 2;
    color: #250d47;
    font-weight: 600;
    background: #fff;
}
.fo-fin-table thead th.fo-fin-rowhead {
    z-index: 4;                /* header ∩ label corner above both */
    background: #250d47;
    color: #fff;
}
.fo-fin-table tbody tr:nth-child(even) th.fo-fin-rowhead {
    background: #faf9fc;
}
/* Frozen Total column (right), pinned like the Closer statements. */
.fo-fin-total-col {
    position: sticky;
    right: 0;
    z-index: 2;
    font-weight: 700;
    color: #250d47;
    background: #fff;
    border-left: 1px solid #d8dbe6;
    box-shadow: -6px 0 6px -6px rgba(31, 35, 48, .2);
}
.fo-fin-table thead th.fo-fin-total-col {
    z-index: 4;
    background: #250d47;
    color: #fff;
}
.fo-fin-table tbody tr:nth-child(even) td.fo-fin-total-col {
    background: #faf9fc;
}
/* Negative figures stay red, including in the frozen Total column (this rule
   follows .fo-fin-total-col, so it wins on source order). */
.fo-fin-neg {
    color: #dc3545;
}

/* ── Closer "Financials" tab ───────────────────────────────────────────────
   Full P&L / Balance Sheet / Cash Flow statements rendered from a snapshot's
   summary_json, styled to echo the downloadable QBO-style XLSX: frozen header
   band + account column, depth indentation, the four purple section/total
   shadings, and a collapsible account tree. Palette matches snapshots.py
   (FO_PURPLE #250d47 / #4f5fb7 / #b0b6ed / #dee2fe). */
.closer-fin-statement { margin-bottom: 1.75rem; }
.closer-fin-statement:last-child { margin-bottom: 0; }
.closer-fin-statement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .4rem;
}
.closer-fin-statement-title {
    font-size: 14px;
    font-weight: 700;
    color: #250d47;
    margin: 0;
}
.closer-fin-wrap {
    overflow: auto;
    /* Scrolling past the statement's last row must not hand the wheel to the page: that slid the
       box's header row under the pinned tab strip and left a blank band (Jesse, 2026-10-05). */
    overscroll-behavior: contain;
    /* On the Financials tab the JS sets --fin-wrap-max so the table ends at
       the window's bottom edge (one scrollbar, no dead band below). */
    max-height: var(--fin-wrap-max, 70vh);
    border: 1px solid #eceef1;
    border-radius: .4rem;
}
.closer-fin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.closer-fin-table th,
.closer-fin-table td {
    padding: .28rem .6rem;
    text-align: right;
    border-bottom: 1px solid #dee2e6;
}
/* Frozen header band (purple), pinned on vertical scroll. */
.closer-fin-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #250d47;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}
/* Frozen account column, pinned on horizontal scroll. */
.closer-fin-acct {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left !important;
    background: #fff;
    /* The column takes the width the names need — the table already
       scrolls horizontally (Account pinned left, Total pinned right), so
       squeezing names into three lines on a small display bought nothing
       (Jesse, 2026-08-24). Very deep fqns ellipsize at 30rem; the title
       tooltip carries the full name. */
    min-width: 13rem;
    max-width: 30rem;
    white-space: nowrap;
}
.closer-fin-table thead th.closer-fin-acct {
    z-index: 4;               /* header ∩ account corner sits above both */
    background: #250d47;
}
/* Specificity matters: Bootstrap's `.table > :not(caption) > * > *` padding
   rule (0,1,1) beat the single-class rule here, so NO row was indented —
   depth 1 and depth 2 sat flush (Jesse, 2026-08-23: "we need some
   indentation"). 1.5em per level, like the Wrangler reports' nesting. */
.closer-fin-table .closer-fin-acct.closer-fin-indent,
.table > :not(caption) > * > .closer-fin-indent { padding-left: calc(.6rem + var(--fin-indent, 0) * 1.5em) !important; }
/* Total column pinned to the right edge — always visible without scrolling,
   the way the Account column is pinned left (mirrors the XLSX frozen panes). */
.closer-fin-total {
    position: sticky;
    right: 0;
    z-index: 2;
    font-weight: 700;
    background: #fff;
    border-left: 1px solid #d8dbe6;
    box-shadow: -6px 0 6px -6px rgba(31, 35, 48, .25);
}
.closer-fin-table thead th.closer-fin-total {
    z-index: 4;               /* header ∩ total corner sits above both */
    background: #250d47;
}
.closer-fin-neg { color: #dc3545; }

/* Brand section/total shadings — mirror RULE_1..4 / the XLSX. */
.closer-fin-r1 td, .closer-fin-r1 .closer-fin-acct { background: #250d47; color: #fff; font-weight: 700; }
/* Totals (Total Income …) in Wrangler Reporting's totals grey (#555050, its
   .fo-table-footer-cell), section heads (Income, Cost of Goods Sold) a light
   grey, the level below lighter still (Christopher, 2026-10-06; they were the
   XLSX's blues). */
.closer-fin-r2 td, .closer-fin-r2 .closer-fin-acct { background: #555050; color: #fff; font-weight: 700; }
.closer-fin-r3 td, .closer-fin-r3 .closer-fin-acct { background: #e9ecef; color: #250d47; font-weight: 700; }
.closer-fin-r4 td, .closer-fin-r4 .closer-fin-acct { background: #f4f5f7; color: #250d47; font-weight: 700; }
/* Negatives stay legible on the dark shaded rows (no red on white text). */
.closer-fin-r1 .closer-fin-neg, .closer-fin-r2 .closer-fin-neg { color: #fff; }
/* Single accounting "rule" above section/total rows. */
.closer-fin-total-row td, .closer-fin-total-row .closer-fin-acct {
    border-top: 1px solid rgba(37, 13, 71, .35);
}

/* Flux highlighting — same palette as Wrangler's flux conditional format
   (FLUX_HIGHLIGHT_*_COLOR_DICT). Outranks the r1..r4 row shadings so a
   firing cell reads even inside a shaded section/total row. */
.closer-fin-table td.closer-fin-amt.closer-fin-flux {
    background: #e2edff;
    color: #4285f4;
    font-weight: 600;
}
.closer-fin-flux-ctl {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: nowrap;
}
/* Self-styled input pills: [figure %] AND [$ figure]. Deliberately not
   .form-control/.input-group — the site skins .input-group-text as an
   absolutely-positioned right-edge overlay, which scrambles a prefix
   symbol. The GROUP wears the box so the symbol sits inside it and the
   figure is unmistakably an editable input. */
.closer-fin-flux-group {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background: #fff;
    padding: 0 .45rem;
}
.closer-fin-flux-group:focus-within { border-color: #4f5fb7; }
.closer-fin-flux-input {
    width: 3.8rem;
    border: 0;
    outline: none;
    background: transparent;
    padding: .3rem .15rem;
    font-size: 14px;
    color: #250d47;
    -moz-appearance: textfield;
}
.closer-fin-flux-input::-webkit-outer-spin-button,
.closer-fin-flux-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.closer-fin-flux-sym {
    font-size: 14px;
    color: #495057;
    user-select: none;
}

/* Flux drill-down — click a statement cell, see the entries that moved it. */
/* A cell a click drills into (leaf × period, Total column, Total/subtotal and
   computed rows). The JS that decides drillability adds the class, so a cell
   that would drill nothing keeps the default cursor. The tint is an inset
   overlay so it reads over the r1–r4 row shading; the dark rows swap it light. */
.fo-drillable { cursor: pointer; }
.fo-drillable:hover {
    box-shadow: inset 0 0 0 100vmax var(--fo-drillable-tint, rgba(79, 95, 183, .12));
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.closer-fin-r1, .closer-fin-r2 { --fo-drillable-tint: rgba(255, 255, 255, .18); }
.closer-fin-drill-title { font-weight: 700; color: #250d47; }
.closer-fin-drill-totals { color: #495057; font-size: 14px; margin-bottom: .4rem; }
.closer-fin-drill-amt { text-align: right; white-space: nowrap; }
.closer-fin-drill-close {
    border: 0;
    background: transparent;
    padding: 0 .25rem;
    line-height: 1;
    font-size: 1rem;
    color: #6c757d;
}
.closer-fin-drill-close:hover { color: #e91e63; }

/* The drill look — an easy in-and-out modal (NOT full-page):
   configurable columns, account-lines vs whole-entries row inclusion,
   target lines colored apart from the lines that ride along. */
.closer-fin-drillx-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(20, 20, 30, .55);
    display: flex;
    align-items: center;
    justify-content: center;
}
.closer-fin-drillx {
    width: min(85rem, 96vw);
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: .6rem;
    box-shadow: 0 1rem 3rem rgba(37, 13, 71, .35);
    font-size: 14px;
}
.closer-fin-drillx-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid #e6e8f0;
    flex-wrap: wrap;
}
.closer-fin-drillx-head .closer-fin-drill-totals { margin-bottom: 0; }
.closer-fin-drillx-ctl {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}
.closer-fin-drillx-colswrap { position: relative; }
.closer-fin-drillx-colsmenu {
    position: absolute;
    right: 0;
    top: calc(100% + .25rem);
    z-index: 2;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .4rem;
    box-shadow: 0 .4rem 1rem rgba(37, 13, 71, .2);
    padding: .5rem .75rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    white-space: nowrap;
}
.closer-fin-drillx-colopt {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}
.closer-fin-drillx-body {
    overflow: auto;
    padding: .5rem 1rem .9rem;
}
/* The Closer line under the head, for a company without Closer (Accruer's entry links,
   Jesse 2026-10-26). Body text, dark purple link that turns hot pink. */
.closer-fin-drillx-promo {
    flex: none;
    padding: .4rem 1rem;
    border-bottom: 1px solid #e6e8f0;
    font-size: 14px;
    font-weight: 400;
    color: #2d2c2f;
}
.closer-fin-drillx-promo .fa-icon-host { color: #e91e63; }
.closer-fin-drillx-promo a { color: #250d47; font-weight: 600; text-decoration: none; }
.closer-fin-drillx-promo a:hover { color: #e91e63; }

/* The drill-down itself: as wide as its table and no wider, up to the
   window, and resizable from the corner grip (Jesse, 2026-10-01: "don't
   make the damn modal that wide"). A user size sets the card's height, so
   the body takes whatever is left under the head. */
.closer-fin-drillx-wide { position: relative; width: fit-content; min-width: min(60rem, 96vw); max-width: 96vw; max-height: 92vh; }
.closer-fin-drillx-wide .closer-fin-drillx-body { flex: 1 1 auto; min-height: 0; }
.closer-fin-drillx-grip {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    touch-action: none;
    z-index: 3;
    background: linear-gradient(135deg, transparent 45%, #9aa1ab 45%, #9aa1ab 52%, transparent 52%,
                                transparent 65%, #9aa1ab 65%, #9aa1ab 72%, transparent 72%);
}

/* Freeze the top (Jesse, 2026-10-01): with the entry edit grid in the body,
   the toolbar stays put and only the table scrolls, both ways. The grid's
   sticky thead pins to the nearest scroller, and .fo-edit-grid-scroll's
   overflow-x already makes that the table wrapper, so give it the height and
   the vertical scroll too. The table keeps a floor so an open New transaction
   draft cannot squeeze it away; past that the body scrolls as before. */
.closer-fin-drillx-body:has(> .closer-fin-drillx-grid) { display: flex; flex-direction: column; }
.closer-fin-drillx-grid,
.closer-fin-drillx-grid > .fo-edit-grid { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.closer-fin-drillx-grid .fo-edit-grid > * { flex: none; }
.closer-fin-drillx-grid .fo-edit-grid > .fo-edit-grid-viewport { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 12rem; }
.closer-fin-drillx-grid .fo-edit-grid-viewport > .fo-edit-grid-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
/* Its scrollbars stay drawn wherever the grid overflows: macOS hides an overlay bar until a trackpad
   swipe, so with a mouse a column past the right edge (the line's 💬) could not be reached. Styling
   ::-webkit-scrollbar swaps in classic bars, in the stock look of .fo-hide-hscrollbar's. */
.closer-fin-drillx-grid .fo-edit-grid-scroll::-webkit-scrollbar { width: 14px; height: 14px; }
.closer-fin-drillx-grid .fo-edit-grid-scroll::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 7px;
    border: 3px solid transparent;
    background-clip: content-box;
}
.closer-fin-drillx-grid .fo-edit-grid-scroll::-webkit-scrollbar-track,
.closer-fin-drillx-grid .fo-edit-grid-scroll::-webkit-scrollbar-corner { background: transparent; }
.closer-fin-drillx-table { width: 100%; border-collapse: collapse; }
.closer-fin-drillx-table thead th {
    position: sticky;
    top: 0;
    background: #250d47;
    text-align: left;
    font-size: 12px;
    color: #fff;
    padding: .3rem .4rem;
    border-bottom: 1px solid #ced4da;
    white-space: nowrap;
}
/* ONE ROW PER TRANSACTION (Jesse, 2026-08-21): nothing wraps — long
   text clips with a tooltip, a genuinely too-wide table scrolls
   sideways inside the modal body instead of stacking cells. */
.closer-fin-drillx-table td {
    padding: .22rem .4rem;
    border-top: 1px solid #dee2e6;
    vertical-align: top;
    white-space: nowrap;
}
.closer-fin-drillx-txntype {
    font-size: 14px;
    color: #495057;
    line-height: 1.2;
}

/* "Showing 25 of N" note under a capped findings drawer. */
.fo-finding-morenote { font-size: 14px; padding: .3rem 0 .1rem; }
/* A switched-off check's drawer (TM-2310): one line saying these predate the switch. */
.fo-check-off-note { font-size: 14px; font-weight: 400; color: #495057; padding: .2rem 0 .3rem; }
/* A capped check's count is a floor — loud, not muted (2026-10-07). */
.fo-finding-capnote { color: #b35c00; font-weight: 600; }

/* UDF write-off deposit — the udf_aging check's batch fix. */
.fo-udfwo-strip {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0 .6rem;
    font-size: 14px;
}
.fo-udfwo-offsets { margin: .4rem 0 .7rem; font-size: 14px; }
.fo-udfwo-offrow {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #eef0f4;
    padding: .15rem 0;
}
.fo-udfwo-chip {
    display: inline-block;
    margin-left: .4rem;
    padding: .05rem .4rem;
    border-radius: .6rem;
    background: #eef0f4;
    color: #495057;
    font-size: 12px;
    white-space: nowrap;
}
.fo-udfwo-chip-dc { background: #fff3cd; color: #7a5d00; }
.fo-udfwo-matchlink { display: block; font-size: 14px; }
.fo-udfwo-problems {
    background: #fff3cd;
    border-radius: .4rem;
    padding: .5rem .7rem;
    margin-bottom: .6rem;
    font-size: 14px;
}
.fo-udfwo-done { font-weight: 600; color: #198754; padding: .5rem 0; }
.fo-udfwo-foot {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    border-top: 1px solid #e6e8f0;
}
.fo-udfwo-foot .fo-udfwo-bank { max-width: 20rem; }
.fo-udfwo-foot .fo-udfwo-reason { flex: 1; }

/* Collapse tree. */
.closer-fin-hidden { display: none; }
.closer-fin-caret {
    border: 0;
    background: transparent;
    padding: 0;
    margin-right: .35rem;
    width: 1em;
    color: inherit;
    cursor: pointer;
    line-height: 1;
}
/* The caret points right when its section is zipped up (Jesse, 2026-10-12).
   Font Awesome's kit script swaps the <i> for an <svg> after load, so the rule
   names both; inline-block because a transform does nothing on an inline <i>. */
.closer-fin-caret > i,
.closer-fin-caret > svg { display: inline-block; transition: transform .12s ease; }
.closer-fin-caret.closer-fin-collapsed > i,
.closer-fin-caret.closer-fin-collapsed > svg { transform: rotate(-90deg); }
.closer-fin-caret-spacer { display: inline-block; width: 1em; margin-right: .35rem; }
/* An account line's drawer of names (closer-fin-names.js; Jesse, 2026-10-28): the chevron after
   the name is always there (Christopher, 2026-11-12: not only on hover), and turns 90° open; the
   name itself opens it too. */
.closer-fin-names-btn {
    border: 0;
    background: none;
    padding: 0 .3rem;
    margin-left: .15rem;
    color: #250d47;
    font-size: .65rem;
    line-height: 1;
    cursor: pointer;
}
.closer-fin-names-btn:hover { color: #e91e63; }
.closer-fin-names-btn > i,
.closer-fin-names-btn > svg { display: inline-block; transition: transform .12s ease; }
.closer-fin-names-btn[aria-expanded="true"] > i,
.closer-fin-names-btn[aria-expanded="true"] > svg { transform: rotate(90deg); }
.closer-fin-acct .closer-fin-names-label { cursor: pointer; }
.closer-fin-acct .closer-fin-names-label:hover { color: #e91e63; }
.closer-fin-acct.closer-fin-acct-named .closer-fin-acct-label { max-width: calc(100% - 4.6em); }
.closer-fin-namerow th.closer-fin-acct { font-weight: 400; color: #495057; }
.closer-fin-namerow .closer-fin-total { font-weight: 400; }
.closer-fin-namerow .closer-fin-names-link { color: #250d47; cursor: pointer; }
.closer-fin-namerow .closer-fin-names-link:hover { color: #e91e63; }
.closer-fin-namerow-note th.closer-fin-acct { font-style: italic; }
.closer-fin-namerow-folded { display: none; }
.closer-fin-namerow-msg th.closer-fin-acct { font-size: 12px; color: #495057; }
.closer-fin-namerow-msg th.closer-fin-acct { white-space: normal; }
/* The same drawer under a flux check finding's account row (TM-2329): its chevron always shows,
   since the row has no other way to say it opens, and the names sit indented in the secondary ink. */
.fo-vc-grid .closer-fin-names-btn { opacity: 1; }
.fo-vc-grid .closer-fin-namerow td.fo-vc-namecell { padding-left: 1.25rem; font-weight: 400; color: #495057; }
.fo-vc-grid .closer-fin-namerow-note td.fo-vc-namecell { font-style: italic; }
.fo-vc-grid .closer-fin-namerow-msg td.fo-vc-namecell { white-space: normal; }

/* Per-statement sub-tabs (P&L / Balance Sheet / Cash Flow). */
.closer-fin-stmt-tabs { margin-bottom: 1rem; }
.closer-fin-stmt-tabs .nav-link { color: #4f5fb7; font-weight: 600; }
.closer-fin-stmt-tabs .nav-link.active { color: #250d47; }
.closer-fin-stmt-content { margin-top: .25rem; }
.fo-fin-period {
    font-size: .9rem;
    color: #495057;
    margin-bottom: .25rem;
}


/* "Tell the AI" footer link under each standing-overview panel. */
.fo-overview-foot {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #e91e63;
    text-decoration: none;
}
.fo-overview-foot:hover {
    color: #e91e63;
    text-decoration: underline;
}

.fo-overview-excerpt {
    margin: .5rem 0 0;
    /* Match the AI-chat assistant body text: same color/weight/size as a
       paragraph in a Closer chat response, so the excerpt reads as live
       review prose rather than as muted helper text. */
    color: #333;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Close-review status badge (mirrors Closer's status vocabulary). */
.fo-status-badge {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 1rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #fff;
}
.fo-status-new     { background-color: #6c757d; }
.fo-status-open    { background-color: #0d6efd; }
.fo-status-pending { background-color: #f59e0b; color: #1a0933; }
.fo-status-hold    { background-color: #6f42c1; }
.fo-status-closed  { background-color: #16a34a; }

/* Workflow-inventory stat tiles. */
.fo-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: .6rem;
}

.fo-stat-tile {
    display: block;
    padding: .6rem .75rem;
    border: 1px solid #eceef1;
    border-radius: .5rem;
    text-decoration: none;
    color: #2d2c2f;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.fo-stat-tile:hover {
    border-color: #250d47;
    box-shadow: 0 1px 6px rgba(37, 13, 71, .12);
    color: #2d2c2f;
}

.fo-stat-tile-head {
    font-size: 14px;
    font-weight: 600;
    color: #250d47;
}
.fo-stat-count {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}
.fo-stat-meta {
    font-size: 14px;
    display: flex;
    flex-direction: column;
}
.fo-stat-error {
    color: #dc3545;
    font-weight: 600;
}

/* (The Closer Discussion composer + attachment thumbnails now reuse the AI
   Console's shared ChatInput and its .ai-chat-* styling — see ChatInput.tsx.
   The former .closer-chat-attachment* / .closer-chat-attach / file-input rules
   were removed when that markup was replaced.) */

/* ============================================================
   Company Overview tab (templates/teams/overview.html)
   Standing company-info + FinOptimal standing-info panels.
   Brand palette: deep purple #250d47, pink accent #e91e63.
   ============================================================ */
.fo-overview-heading {
    color: #250d47;
    font-weight: 600;
    margin-bottom: .75rem;
}

.fo-overview-subtle {
    color: #6c757d;
    font-size: 14px;
}

/* Rendered standing-overview markdown (Company / FinOps Overview panels).
   Scrolls within the card so a long doc doesn't blow out page height. */
.fo-overview-doc {
    font-size: .88rem;
    line-height: 1.5;
    color: #2d2c2f;
    max-height: 22rem;
    overflow-y: auto;
}
/* SOP docs (Company / Firm SOPs cards) fill the viewport vertically:
   teams/_sop_fill_height.html measures the available space and sets an exact
   inline max-height (recomputed on load, resize, and shown.bs.tab). This calc()
   is a pre-JS fallback so the doc renders near full height instead of flashing the
   static 22rem above; it must follow that rule to win on source order. */
.fo-overview-doc-fill {
    max-height: calc(100vh - 20rem);
}
.fo-overview-doc h5 {
    font-size: .95rem;
    font-weight: 700;
    color: #250d47;
    margin: .9rem 0 .35rem;
}
.fo-overview-doc h6 {
    font-size: 14px;
    font-weight: 600;
    color: #4a3a63;
    margin: .7rem 0 .3rem;
}
.fo-overview-doc h5:first-child,
.fo-overview-doc h6:first-child {
    margin-top: 0;
}
.fo-overview-doc p {
    margin: 0 0 .5rem;
}
.fo-overview-doc ul {
    margin: 0 0 .5rem;
    padding-left: 1.25rem;
}
.fo-overview-doc li {
    margin-bottom: .15rem;
}
.fo-overview-doc a {
    color: #e91e63;
}

/* Sub-sections within the FinOptimal standing-info card. */
.fo-overview-block {
    padding: .75rem 0;
    border-top: 1px solid #eceef1;
}
.fo-overview-block:first-of-type {
    padding-top: 0;
    border-top: none;
}

.fo-overview-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #250d47;
    margin-bottom: .5rem;
}

.fo-overview-link {
    font-size: 14px;
    font-weight: 500;
    color: #e91e63;
    text-decoration: none;
}
.fo-overview-link:hover {
    text-decoration: underline;
}

/* A block-head that is itself a link (close review / notes -> Closer). */
a.fo-block-link {
    text-decoration: none;
    color: #250d47;
}
a.fo-block-link:hover {
    color: #250d47;
}
a.fo-block-link:hover span:first-child {
    text-decoration: underline;
}

/* Trailing-12-months financials table (Current Status, Memorializer shape).
   Scrolls horizontally on narrow screens; row labels stay pinned. */
.fo-fin-table-wrap {
    overflow-x: auto;
    margin-bottom: .35rem;
}
.fo-fin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    white-space: nowrap;
}
.fo-fin-table th,
.fo-fin-table td {
    padding: .3rem .55rem;
    text-align: right;
}
.fo-fin-table thead th {
    color: #6c757d;
    font-weight: 600;
    font-size: .72rem;
    border-bottom: 1px solid #eceef1;
}
.fo-fin-table tbody tr {
    border-bottom: 1px solid #f4f4f6;
}
.fo-fin-table tbody tr:last-child {
    border-bottom: none;
}
.fo-fin-rowhead {
    text-align: left !important;
    color: #250d47;
    font-weight: 600;
    position: sticky;
    left: 0;
    background-color: #fff;
}
.fo-fin-total-col {
    font-weight: 700;
    color: #250d47;
    border-left: 1px solid #eceef1;
}
.fo-fin-neg {
    color: #dc3545;
}
.fo-fin-period {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: .25rem;
}


/* "Tell the AI" footer link under each standing-overview panel. */
.fo-overview-foot {
    display: inline-block;
    margin-top: .75rem;
    font-size: 14px;
    font-weight: 500;
    color: #e91e63;
    text-decoration: none;
}
.fo-overview-foot:hover {
    color: #e91e63;
    text-decoration: underline;
}

.fo-overview-excerpt {
    margin: .5rem 0 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
}

/* Close-review status badge (mirrors Closer's status vocabulary). */
.fo-status-badge {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 1rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #fff;
}
.fo-status-new     { background-color: #6c757d; }
.fo-status-open    { background-color: #0d6efd; }
.fo-status-pending { background-color: #f59e0b; color: #1a0933; }
.fo-status-hold    { background-color: #6f42c1; }
.fo-status-closed  { background-color: #16a34a; }

/* Workflow-inventory stat tiles. */
.fo-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: .6rem;
}

.fo-stat-tile {
    display: block;
    padding: .6rem .75rem;
    border: 1px solid #eceef1;
    border-radius: .5rem;
    text-decoration: none;
    color: #2d2c2f;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.fo-stat-tile:hover {
    border-color: #250d47;
    box-shadow: 0 1px 6px rgba(37, 13, 71, .12);
    color: #2d2c2f;
}

.fo-stat-tile-head {
    font-size: 14px;
    font-weight: 600;
    color: #250d47;
}
.fo-stat-count {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}
.fo-stat-meta {
    font-size: 14px;
    display: flex;
    flex-direction: column;
}
.fo-stat-error {
    color: #dc3545;
    font-weight: 600;
}

/* Subtle dotted divider between left-nav sections (top / apps / admin). The
   nav sits on a dark background, so a low-opacity white dotted rule reads as a
   very light separator without the heaviness of a solid <hr>. Kept short — it
   starts at the icon column and stops around the midpoint so it groups the
   sections without bisecting the whole rail. */
.nav-section-divider {
  border: 0;
  border-top: 1px dotted rgba(255, 255, 255, 0.22);
  opacity: 1;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  margin-left: 3.25rem;
  margin-right: 25%;
}

/* Collapsible sidebar section headers (Apps / Utilities). Styled to echo the
   uppercase h6 group labels, but clickable with a chevron that rotates when the
   group is collapsed. Bootstrap's collapse toggles aria-expanded on the <a>. */
.nav-section-header.nav-link {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-top: 0.4rem;
  padding-left: 1.5rem;
}
.nav-section-header .nav-section-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02rem;
  color: #fff;
  opacity: 0.8;
}
.nav-section-header .nav-section-chevron {
  font-size: 0.7rem;
  color: #fff;
  opacity: 0.55;
  transition: transform 0.15s ease;
}
.nav-section-header[aria-expanded="false"] .nav-section-chevron {
  transform: rotate(-90deg);
}
/* Suppress the material-dashboard theme's own auto caret on collapse toggles —
   we render our own .nav-section-chevron, so the theme ::after would double it. */
.nav-section-header.nav-link::after {
  display: none !important;
  content: none !important;
}
.nav-section-header:hover .nav-section-label,
.nav-section-header:hover .nav-section-chevron {
  opacity: 1;
}
/* Product "teaser" tiles — a grayed, non-clickable nav item shown for a product
   the team isn't flagged for yet (Coming soon / Available — ask your firm). It's
   a <span>, not a link, so it never navigates; the muted look signals it's not
   usable, and the tooltip carries the copy. */
.nav-teaser-link {
  opacity: 0.4;
  cursor: default;
  pointer-events: auto; /* keep hover so the tooltip still fires */
}
.nav-teaser-link:hover {
  opacity: 0.55;
  background: transparent;
}

/* Integration connector "teaser" card — the settings-page sibling of the nav
   teaser above: a grayed card with no interactive controls for a connector
   (e.g. Stripe) the firm isn't flagged for yet. Pointer events stay on (like
   .nav-teaser-link) so the tooltip carrying the copy still fires on hover. */
.integration-teaser-card {
  opacity: 0.45;
  filter: grayscale(1);
  cursor: default;
}

/* Connector credential input + its inline (X) button — shared chrome for the
   integration cards/pages. */
.integration-key-col {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.integration-key-input-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  flex: 1 1 auto;
}

.integration-key-hint {
  padding-top: 0.15rem;
  font-size: 14px;
  color: #6c757d;
}

.integration-key-input {
  padding-right: 30px;
}

.integration-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
}

.integration-clear-btn:hover {
  color: #dc3545;
}

/* One Stripe account per row on the company Integrations page: short label
   (modifier) input + the key input side by side. */
.integration-account-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.integration-modifier-input {
  flex: 0 0 9rem;
  width: 9rem;
}

/* Left-align the brand mark on integration cards (flex column centers it
   otherwise). */
.integration-brand-logo {
  align-self: flex-start;
  text-align: left;
}

/* Stripe wordmark (FontAwesome brand glyph) in Stripe's brand color, matching
   the logo-image treatment of the other connector cards. */
.stripe-brand-icon {
  color: #635bff;
}

.paypal-brand-icon {
  color: #003087;
}

.shopify-brand-icon {
  color: #5e8e3e;
}

.integration-account-row-stacked {
  align-items: flex-start;
}

.integration-account-fields {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.integration-account-row-stacked .integration-field {
  padding-top: 0;
}

/* Ramp has no FontAwesome glyph: a typeset wordmark in Ramp's brand yellow on
   black, sized to sit where the Stripe glyph sits. */
.ramp-brand-mark {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 0.3rem;
  background: #1a1a1a;
  color: #e4ff1a;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Harvest has no FontAwesome brand glyph — a wordmark in Harvest orange. */
.harvest-brand-wordmark {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f36c00;
  line-height: 1.2;
  padding-bottom: 0.25rem;
}

.whmcs-brand-wordmark {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1864ab;
  line-height: 1.2;
  padding-bottom: 0.25rem;
}

.integration-account-id-input {
  flex: 0 0 8rem;
  width: 8rem;
}

/* Connector cards sit side by side and wrap on narrow screens. */
.integration-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.integration-card {
  flex: 1 1 28rem;
  max-width: 40rem;
}

/* A labelled credential row on a connector card (label above the input). */
.integration-field {
  padding-top: 0.75rem;
}

.integration-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #67748e;
  margin-bottom: 0.25rem;
}

/* The stored-secret hint under the secret input. */
.integration-secret-hint {
  display: block;
  font-size: 14px;
  color: #67748e;
  padding-top: 0.25rem;
}

.integration-card-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
}

/* Firm / Company context chip on the left-nav section headers. A firm and its
   own books-company often share a display name ("FinOptimal, Inc." the firm vs
   the jlrww company), so the header alone can't tell you which context a
   section's links act on. */
.nav-context-chip {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.6rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
}

/* Closer home: a narrower, centered content column. The note/Discuss cards no
   longer span the full width, so the mouse wheel scrolls the PAGE in the
   left/right margins instead of being trapped inside a note's Discuss panel
   scroller. Caps out on wide screens; full width on small ones. */
.closer-home {
  /* Full-width like the blue "Where to start" box (which is ms-3 me-3): drop
     the max-width cap and inset the right edge 1rem to match that box's me-3,
     so the tab cards use the whole wide screen instead of stopping short
     (Jesse, 2026-06-12; was capped at 1600px, before that 1200px). */
  max-width: none;
  margin-left: 0;
  margin-right: 1rem;
}

/* Landing highlight: a deep link (#note-N — from the Overview action list,
   a chat back-pill, or a review citation) flashes the target note card so
   it's unmistakable which note you arrived at (Jonah typed into the wrong
   card's box, 2026-06-10). scroll-margin keeps it clear of the top chrome. */
.closer-note-card:target {
    scroll-margin-top: 5rem;
    animation: fo-note-arrive 2.5s ease-out 1;
}
@keyframes fo-note-arrive {
    0%   { box-shadow: 0 0 0 4px #e91e63; }
    70%  { box-shadow: 0 0 0 4px rgba(233, 30, 99, .35); }
    100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}

/* Links inside the blue instructional banners: the brand pink is illegible
   on alert-info blue (Jesse, 2026-06-10). White + underline keeps it
   unmistakably a link without fighting the background. */
.alert-info .fo-overview-link,
.alert-info a.fo-overview-foot {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.alert-info .fo-overview-link:hover,
.alert-info a.fo-overview-foot:hover {
    color: #fff;
    opacity: .85;
}

/* Data Stores list: keep delete buttons flush with the row height. */
.data-store-table .btn {
    margin-bottom: 0;
}

/* FinOptimal-staff-only "Verify / Heal Cache" result box (QBO management).
   Preserves the multi-line integrity summary returned by the run. */
.qbo-cache-result {
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------------------------------------------------------------------------
   Shared upload + status components
   Reusable file-dropzone uploader and status pill. Originally page-scoped under
   .plaid-connections-page in plaidconnection_list.html; promoted here (de-scoped)
   so the payroller source-file uploader reuses the exact same look (DRY). Both
   pages load site-brand.css via web/base.html.
   --------------------------------------------------------------------------- */
.status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;   /* a pill is 12px by default (Christopher, 2026-11-10) */
    font-weight: 600;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    white-space: nowrap;
}

.status-pill.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.status-pill.is-error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

/* Why a Bank Data upload was rejected, printed under the pill. It used to live only in the
   pill's title attribute, so a rejected row read as "Rejected" and nothing else unless you
   happened to hover (TM-1911). */
.bank-file-reject-reason {
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.3;
    margin-top: 0.25rem;
    /* Narrow on purpose: nowrap text would otherwise widen the Status COLUMN to its own length,
       trading a tall row for a wide table. Enough to read the first few words; the rest is a
       hover or a click away. */
    max-width: 11rem;
    /* ONE LINE until asked. The reason renders inside the narrow Status column, so the full
       sentence wrapped to twenty lines and made one rejected file taller than the ten good rows
       under it (Jesse, 2026-09-20 — cla-tech's scanned-PDF rejection). The whole text is on the
       element's title, and a click pins it open. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* Dotted underline, not a " why?" suffix: a suffix sits INSIDE the clamp, so the ellipsis ate
       the very affordance it was advertising. */
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 0.15em;
}

/* OPEN is a separate floating card, not the line itself repositioned: wrapping the sentence
   inside a ~190px column made a twenty-line block that pushed every row below it down (Jesse,
   2026-09-20: "when expanded, it's still tall and ugly as shit"), and lifting the line out of
   the flow instead shifted the table by its own height. The card is placed by JS in FIXED
   coordinates, the way fo-combobox places its panel, so the file tables' scroll containers
   cannot clip it and nothing in the table moves. */
.bank-file-reject-reason.is-open {
    text-decoration: none;
}

/* A balance check a FILED statement / PARSED rec failed (TM-1893): amber, not the rejection red —
   the row stands, the number on it is suspect. */
.bank-file-reject-reason.bank-file-balance-warning {
    color: #b45309;
}

.bank-file-reject-card {
    position: fixed;
    z-index: 1080;
    width: 26rem;
    max-width: calc(100vw - 2rem);
    padding: 0.5rem 0.65rem;
    border: 1px solid #f6c5c5;
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16);
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
}

/* A tab that leaves the page (Bank Data -> Reconciler): tab geometry, but the away-arrow and
   muted tone say "this one navigates". */
#workflows-tabs .plaid-tab-away {
    color: #6941c6;
}

#workflows-tabs .plaid-tab-away:hover {
    color: #53389e;
}

.status-pill.is-pending {
    /* Same amber as the Reconciler divide's pending hints — one color for "the bank hasn't
       posted this yet" everywhere it appears. */
    color: #93540b;
    background: #fffaeb;
    border: 1px solid #fedf89;
}

/* A pill that opens something (Bank Data's Drift pill -> the drift explainer modal). Same
   look; the button chrome goes and the pointer + underline-on-hover say it is clickable. */
.status-pill-btn {
    border: 0;
    cursor: pointer;
}

.status-pill-btn:hover,
.status-pill-btn:focus-visible {
    text-decoration: underline;
}

/* The divide's drift explainer inside that modal: the divide styles its text at the band's
   size; a modal body needs it set. */
.rec-drift-modal-body {
    font-size: 14px;
}

/* The change log can run long (every $0 edit unzipped); keep its column headers in view while the
   modal body scrolls (Jesse, 2026-10-03). Scoped to the modal: the inline Book/Bank panel scrolls
   the page, where a sticky header would slide under the top nav. The negative top cancels the
   modal body's padding — at top: 0 the rows scroll through a padding-high slit above the header. */
.rec-drift-modal-body .rec-divide-drift-changes th {
    position: sticky;
    top: calc(-1 * var(--bs-modal-padding, 1rem));
    z-index: 2;
    background: #fff;
    box-shadow: inset 0 -1px 0 #f2d8d7;
}

/* The history timeline's bullets hang left of the table, so paint a white strip over the body's side
   padding too, or they peek out beside "When" as the rows scroll under. A strip rather than an outer
   box-shadow: Chrome does not paint a collapsed-table cell's outer shadow over later rows. The
   scrollport clips whatever overshoots. */
.rec-drift-modal-body .rec-divide-drift-changes th:first-child::before,
.rec-drift-modal-body .rec-divide-drift-changes th:last-child::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2rem;
    background: #fff;
}

.rec-drift-modal-body .rec-divide-drift-changes th:first-child::before {
    right: 100%;
}

.rec-drift-modal-body .rec-divide-drift-changes th:last-child::after {
    left: 100%;
}

.status-pill.is-neutral {
    background: rgba(107, 114, 128, 0.12);
    color: #4b5563;
}

/* "We tried and could not tell" — distinct from is-neutral ("not looked at yet") and from
   is-error ("we looked and it is broken"). Same amber family as is-pending, bordered so the
   two read as one class of caution without claiming the pending meaning. */
.status-pill.is-warning {
    color: #93540b;
    background: #fffaeb;
    border: 1px solid #fedf89;
}

.empty-state {
    color: #6b7280;
    padding: 1rem 1.5rem 1.5rem;
}

.bank-files-upload {
    border-bottom: 1px solid #e5e7eb;
}

/* Filename cells (canonical + uploaded name) are the widest unbounded column
   in the uploader tables — let them wrap so the table fits the viewport
   instead of scrolling sideways. td-qualified to out-cascade site-bootstrap's
   `.table-responsive td { white-space: nowrap }` (equal specificity; this
   sheet loads later).

   The floor is load-bearing: `overflow-wrap: anywhere` lets the cell shrink to ONE character,
   and auto table layout then hands every bit of slack to the nowrap columns beside it, so the
   name comes out one letter per line. Seen on Payroller's files table (PHP, 2026-09-07) and
   again on Bank Data ▸ Reconciliations, whose twelve columns of dates and pills left the file
   name a 1ch strip (pbm-princess, 2026-09-08). Every uploader table shares this cell, so the
   floor lives here rather than per table. */
td.bank-file-name-cell {
    overflow-wrap: anywhere;
    white-space: normal;
    min-width: 18rem;
}

/* Payroller ▸ Files & mapping: the pay-run list beside the file name needs a ceiling too, or it
   takes the width the name's floor gave back. */
#payroll-source-table td:first-child {
    max-width: 26rem;
    white-space: normal;
}

/* The per-file Invert directive (Bank Data ▸ Activity files, 2026-08-30): the ⇄ button lights
   up while the directive is on, and the file name carries a small pill saying so. */
.bank-file-invert-btn--on {
    color: #b54708;
}

.bank-file-invert-pill {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0 0.4rem;
    border-radius: 0.7rem;
    border: 1px solid #f9dbaf;
    background: #fef6ee;
    color: #b54708;
    font-size: 12px;   /* a pill is 12px by default (Christopher, 2026-11-10) */
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

/* The account picker is an <input list=…> rather than a <select> so it can be
   filtered by typing. A theme reset zeroes borders on bare inputs (selects
   were exempt, which is why this only appeared on the swap), leaving the
   control looking like plain text -- so state the box explicitly. Values
   match .form-control in site-bootstrap.css. */
.bank-files-input {
    background-color: transparent;
    border: 1px solid #d2d6da;
    border-radius: 0.375rem;
    max-width: 320px;
    padding: 0.25rem 0.75rem;
}


/* Activity Files can't upload without an account, and the blocked state used
   to read as small grey text beside an unchanged dropdown -- indistinguishable
   from an upload that simply hadn't finished. These make the outstanding
   action unmissable: the control the user has to touch is the thing that
   moves. */
.bank-files-input-required {
    animation: bank-files-required-pulse 1.1s ease-in-out 3;
    border-color: #dc2626;
    box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.25);
}

.bank-files-status-required {
    color: #dc2626;
    font-weight: 600;
}

@keyframes bank-files-required-pulse {
    0%, 100% { box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.25); }
    50%      { box-shadow: 0 0 0 0.3rem rgba(220, 38, 38, 0.45); }
}

/* Respect the OS setting: keep the colour, drop the motion. */
@media (prefers-reduced-motion: reduce) {
    .bank-files-input-required {
        animation: none;
    }
}

/* Live "we're checking your files" banner. Deliberately full-width, green and
   moving: the thing it replaces was a few words of grey text that read as
   "nothing is happening" during a perfectly normal ten-second validation.
   Green rather than blue because this is work succeeding, not information —
   the user's read of a blue box was still "is anything happening?". */
.bank-data-progress {
    align-items: flex-start;
    animation: bank-data-progress-pulse 1.6s ease-in-out infinite;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    color: #065f46;
    display: flex;
    gap: 0.6rem;
    margin: 0.75rem 1rem;
    padding: 0.9rem 1rem;
}

.bank-data-progress-icon {
    font-size: 1.1em;
    margin-top: 0.15rem;
}

.bank-data-progress-hint {
    color: #047857;
    display: block;
    font-size: 0.85em;
}

@keyframes bank-data-progress-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
    50%      { box-shadow: 0 0 0 0.35rem rgba(16, 185, 129, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .bank-data-progress {
        animation: none;
    }
}

/* The Sync button while a sync is in flight: the fa-spin icon alone was
   invisible in practice — after a fresh Plaid link the user saw nothing
   until a toast ~10 seconds later. Shares the banner's pulse rhythm. */
.plaid-sync-running {
    animation: bank-data-progress-pulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .plaid-sync-running {
        animation: none;
    }
}

/* Per-file detail under the upload status line: which files were duplicates
   (and of what), which errored and why. Counts alone buried the one thing
   the user asked for. */
.bank-upload-detail-list {
    color: #6b7280;
    font-size: 0.85em;
    margin: 0.25rem 0 0;
    padding-left: 1.2rem;
}

/* A junk drop must be loud — red and unmissable, because grey text reading
   "nothing usable" is indistinguishable from "nothing happened". */
.bank-upload-drop-rejected {
    background: #fde8e8;
    border: 1px solid #f5b5b5;
    border-radius: 6px;
    color: #b42318;
    display: inline-block;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
}

/* A just-deleted row awaiting its Undo window. !important on purpose: the
   tabs' filter handlers reassign row.style.display wholesale and must not
   resurrect the row mid-countdown. */
.bank-file-row-deleted {
    display: none !important;
}

/* An UNDONE reconciliation — history, not trash: still listed, PDF still
   viewable, restorable. Greyed so the eye reads "not in force". */
.bank-file-row-undone td {
    opacity: 0.55;
}

.bank-file-row-undone .bank-file-restore-btn {
    opacity: 1;
}

/* The Undo strip: label left, button hard right — under the X the user just
   clicked, so the mouse doesn't have to travel. */
.bank-file-undo-inner {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

/* Accounts multi-select filter — the Reconciler "Rec Accounts" pattern: a
   compact button that opens a panel with a search box, a checkbox per
   account, and Select all / Clear all. Search filters the LIST; checks
   filter the TABLE. */
.bank-accounts-filter {
    display: inline-block;
    position: relative;
}

.bank-accounts-filter-toggle {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    min-width: 170px;
    padding: 0.35rem 0.75rem;
    text-align: left;
    white-space: nowrap;
}

.bank-accounts-filter-toggle-active {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
    font-weight: 600;
}

.bank-accounts-filter-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
    left: 0;
    min-width: 260px;
    padding: 0.6rem;
    position: absolute;
    top: calc(100% + 4px);
    z-index: 1050;
}

.bank-accounts-filter.open .bank-accounts-filter-panel {
    display: block;
}

.bank-accounts-filter-search {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 14px;
    margin-bottom: 0.4rem;
    outline: none;
    padding: 0.35rem 0.6rem;
    width: 100%;
}

.bank-accounts-filter-list {
    max-height: 260px;
    overflow-y: auto;
}

/* Bank Data's dropdowns run to the bottom of the window before they scroll, as the divide's
   pickers do (Jesse, 2026-10-19: "i dont' want to have to scroll here"). The Accounts list is
   sized on open (fitBankAccountsFilterList); fo-combobox's placePanel already caps a list to
   the room below it, so only its fixed 16rem has to go. */
.plaid-connections-page .fo-combobox-list {
    max-height: none;
}

.bank-accounts-filter-option {
    align-items: center;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0.3rem 0.35rem;
}

.bank-accounts-filter-option:hover {
    background: #f3f4f6;
}

.bank-accounts-filter-option input {
    margin: 0;
}

.bank-accounts-filter-hidden {
    display: none !important;
}

.bank-accounts-filter-actions {
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 1rem;
    margin-top: 0.4rem;
    padding-top: 0.45rem;
}

.bank-accounts-filter-action {
    background: none;
    border: none;
    color: #e0004d;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0;
    text-transform: uppercase;
}

/* Jump-to-Recent-Activity: an explicit little icon, NOT the account name
   itself — clicking a name and being teleported to another tab read as
   "we switched tabs inexplicably". */
.bank-file-activity-link {
    color: #9ca3af;
    font-size: 0.85em;
    margin-left: 0.25rem;
}

.bank-file-activity-link:hover {
    color: #374151;
}

.bank-data-result-icon-ok {
    color: #059669;
}

.bank-data-result-icon-bad {
    color: #dc2626;
}

/* Post-validation summary. Survives the reload the poller triggers, so the
   outcome -- above all the rejection REASON -- is stated in words instead of
   living in a tooltip on a pill in a table that just re-rendered. */
.bank-data-result {
    margin: 0.75rem 1rem;
    padding: 0.75rem 2.25rem 0.75rem 0.9rem;
    position: relative;
}

.bank-data-result-ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.bank-data-result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.bank-data-result-head {
    font-weight: 600;
}

.bank-data-result-list {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.bank-data-result-close {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
}

/* Delete is one click now, with no confirm step, so the row itself has to
   telegraph what is about to go. Hovering the X reddens the whole row. */
.bank-file-row-doomed > td {
    background: #fef2f2 !important;
    color: #991b1b;
}

/* Optimistic removal: the row fades the moment you click, instead of sitting
   there through the round-trip and then vanishing with no explanation. */
.bank-file-row-removing {
    opacity: 0.35;
    transition: opacity 0.15s ease;
}

/* Escape hatch for a wrong drop. Files stage on drop but only upload once the
   form is valid, so a bad selection previously had no way out but a reload. */
.bank-files-clear {
    background: none;
    border: none;
    color: #6941c6;
    cursor: pointer;
    font-size: 0.85em;
    padding: 0.1rem 0.3rem;
    text-decoration: underline;
}

.bank-files-clear:hover {
    color: #4b2a9c;
}

.bank-files-empty-row {
    color: #6b7280;
    padding: 1rem;
}

.bank-files-dropzone {
    align-items: center;
    background: #fafbff;
    border: 2px dashed #c5c5d2;
    border-radius: 10px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
    padding: 1.25rem;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bank-files-dropzone:hover {
    background: rgba(105, 65, 198, 0.03);
    border-color: #9b87d4;
}

.bank-files-dropzone.is-dragover {
    background: rgba(105, 65, 198, 0.08);
    border-color: #6941c6;
    color: #2b144b;
}

.bank-files-dropzone-icon {
    font-size: 1.5rem;
    color: #6941c6;
}

.bank-files-dropzone-prompt {
    font-size: 0.95rem;
    font-weight: 600;
}

.bank-files-dropzone-filename {
    color: #2b144b;
    font-size: 14px;
    font-weight: 600;
    margin-top: 0.25rem;
}

.bank-files-file-input {
    display: none;
}

.bank-files-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* The statement editor (correct / file / enter by hand), in #bank-statement-fix-modal: the app's
   field labels over 29px / 12px controls, 160px each as the Filters boxes, the account wider for
   its long names; the note in body ink. Save / Cancel sit in the modal footer. */
.bank-file-fix-form {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.bank-file-fix-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 160px;
    width: 160px;
}

.bank-file-fix-field:has(.bank-file-fix-account) {
    flex-basis: 320px;
    width: 320px;
}

.bank-file-fix-field label {
    color: #250d47;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

.bank-file-fix-field :is(input, .fo-combobox, .fo-combobox-display) {
    width: 100% !important;
}

.bank-file-fix-hint {
    flex-basis: 100%;
}

/* A statement someone corrected by hand — the tooltip says who, when, and what the reader read. */
.bank-file-corrected-mark {
    color: #b45309;
    font-size: 14px;
    margin-right: 0.3rem;
}

.bank-file-fix-status {
    color: #2d2c2f;
    font-size: 14px;
}

.bank-file-fix-status.is-error {
    color: #b91c1c;
}

.bank-file-fix-status.is-success {
    color: #15803d;
}

/* "FinOptimal staff" label next to internal-only section headings.
   NOT a Bootstrap .badge: the repo-wide .badge rule forces a fixed-width
   circle (see .fo-overview-tab-count) that clips multi-character text. */
.fo-staff-tag {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.4rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0.35rem;
    background-color: #6c757d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* ── Product Usage dashboard ─────────────────────────────────────────── */
.usage-dashboard { padding: 1.5rem 1.75rem; }
.usage-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; }
.usage-title { font-size: 1.5rem; font-weight: 600; margin: 0; }
.usage-subtitle { margin: 0.15rem 0 0; color: #6b7280; font-size: 0.9rem; }
.usage-control-label { font-size: 14px; color: #6b7280; }
.usage-select { margin-left: 0.4rem; padding: 0.25rem 0.5rem; border: 1px solid #d1d5db; border-radius: 6px; }
.usage-status { color: #6b7280; font-size: 0.9rem; padding: 0.5rem 0; }
.usage-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.usage-table th, .usage-table td { padding: 0.45rem 0.7rem; border-bottom: 1px solid #eef0f3; }
.usage-th-name { text-align: left; font-weight: 600; color: #374151; }
.usage-th-month { text-align: right; font-weight: 600; color: #374151; white-space: nowrap; }
.usage-td-name { text-align: left; }
.usage-td-product { text-transform: capitalize; color: #4b5563; }
.usage-cell { text-align: right; white-space: nowrap; }
.usage-cell-entries { font-weight: 600; }
.usage-cell-activity .usage-cell-entries { color: #111827; }
.usage-cell-historical { color: #9ca3af; font-style: italic; }
.usage-cell-historical .usage-cell-entries { font-weight: 500; }
.usage-cell-empty { color: #d1d5db; text-align: right; }
.usage-cell-lines { display: block; font-size: 14px; color: #9ca3af; font-weight: 400; }
.usage-legend { margin-top: 0.85rem; font-size: 14px; color: #9ca3af; }
/* firm pivot: one row per client, a column per product + Total */
.usage-table-caption { font-size: 14px; color: #6b7280; margin: 0.25rem 0 0.5rem; }
.usage-table-scroll { overflow-x: auto; }
.usage-table-pivot { min-width: 100%; }
.usage-table-pivot th, .usage-table-pivot td { white-space: nowrap; }
.usage-table-pivot tbody tr:hover { background: #f9fafb; }
/* keep Client (left) and Total (right) columns visible while the products scroll */
.usage-table-pivot th.usage-th-name, .usage-table-pivot td.usage-td-name {
  position: sticky; left: 0; background: #fff; z-index: 1; }
.usage-table-pivot tbody tr:hover td.usage-td-name { background: #f9fafb; }
.usage-th-total, .usage-cell-total { position: sticky; right: 0; background: #fff; z-index: 1; box-shadow: -1px 0 0 #eef0f3; }
.usage-table-pivot tbody tr:hover td.usage-cell-total { background: #f9fafb; }
.usage-th-total, .usage-td-total { font-weight: 700; color: #111827; }
.usage-cell-total .usage-cell-entries { color: #111827; font-weight: 700; }
.usage-table-pivot tfoot td { border-top: 2px solid #e5e7eb; font-weight: 600; background: #fff; }
.usage-table-pivot tfoot .usage-cell-entries { color: #111827; }
.usage-legend-swatch { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; vertical-align: middle; margin-right: 0.2rem; }
.usage-legend-activity { background: #111827; }
.usage-legend-historical { background: #d1d5db; }

/* ── Product Usage: company cards ────────────────────────────────────── */
.usage-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.usage-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem 1.15rem; background: #fff; }
.usage-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.3rem; }
.usage-card-product { font-weight: 600; font-size: 1.05rem; text-transform: capitalize; }
.usage-card-month { color: #9ca3af; font-size: 14px; }
.usage-card-metric { margin: 0.7rem 0; }
.usage-card-big { font-size: 1.55rem; font-weight: 700; line-height: 1.1; color: #111827; }
.usage-card-unit { color: #6b7280; font-size: 14px; margin-bottom: 0.35rem; }
.usage-card-breakdown { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 14px; color: #4b5563; }
.usage-card-breakdown b { color: #111827; font-weight: 600; }
.usage-card-note { font-size: 14px; color: #9ca3af; margin-top: 0.4rem; }
/* product color swatch, shared by cards / table / legend / tooltip */
.usage-swatch { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 3px; vertical-align: middle; margin-right: 0.4rem; }
.usage-card-product .usage-swatch { margin-right: 0.35rem; }
.usage-td-product .usage-swatch { margin-right: 0.3rem; }

/* multi-month activity trend chart */
.usage-chart-block { border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem 1.15rem 0.75rem; background: #fff; margin: 0.25rem 0 1.25rem; }
.usage-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.usage-chart-title { font-weight: 600; font-size: 1rem; color: #111827; }
.usage-chart-unit { font-size: 14px; color: #9ca3af; }
.usage-chart-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.5rem 0 0.25rem; }
.usage-legend-item { font-size: 14px; color: #4b5563; display: inline-flex; align-items: center; }
.usage-chart { position: relative; margin-top: 0.25rem; }
.usage-chart-svg { display: block; overflow: visible; }
.usage-grid { stroke: #eef0f3; stroke-width: 1; }
.usage-baseline { stroke: #d1d5db; stroke-width: 1; }
.usage-axis { fill: #9ca3af; font-size: 14px; font-variant-numeric: tabular-nums; }
.usage-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.usage-line-partial { stroke-dasharray: 4 3; opacity: 0.75; }
.usage-card-month-mtd { font-style: italic; }
.usage-dot { stroke: #fff; stroke-width: 1.5; }
.usage-line-label { font-size: 14px; font-weight: 600; }
.usage-crosshair { stroke: #9ca3af; stroke-width: 1; stroke-dasharray: 3 3; }
.usage-tip { position: absolute; display: none; z-index: 5; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 14px rgba(17,24,39,0.12); padding: 0.5rem 0.6rem; font-size: 14px; min-width: 130px; pointer-events: none; }
.usage-tip-head { font-weight: 600; color: #111827; margin-bottom: 0.3rem; }
.usage-tip-row { display: flex; align-items: center; gap: 0.4rem; line-height: 1.6; }
.usage-tip-name { color: #4b5563; }
.usage-tip-val { margin-left: auto; font-weight: 600; color: #111827; font-variant-numeric: tabular-nums; }

/* drill-down affordances */
.usage-client-link { color: #250d47; text-decoration: none; font-weight: 500; }
.usage-client-link:hover { text-decoration: none; }
.usage-clickable { cursor: pointer; }
.usage-clickable:hover { background: #e7f1ff; }
.usage-cell-activity.usage-clickable:hover .usage-cell-entries { color: #250d47; }
.usage-card.usage-clickable { transition: box-shadow 0.12s, border-color 0.12s; }
.usage-card.usage-clickable:hover { border-color: #c9bce6; box-shadow: 0 2px 10px rgba(37,13,71,0.08); background: #fff; }

/* drill-down modal */
.usage-modal-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.45); z-index: 1050; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; }
.usage-modal { background: #fff; border-radius: 12px; width: min(760px, 96vw); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(17,24,39,0.28); }
.usage-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.15rem; border-bottom: 1px solid #eef0f3; }
.usage-modal-title { font-weight: 600; font-size: 1.05rem; text-transform: capitalize; }
.usage-modal-close { border: none; background: none; font-size: 1.5rem; line-height: 1; color: #9ca3af; cursor: pointer; padding: 0 0.25rem; }
.usage-modal-close:hover { color: #111827; }
/* modal content scrolls (used by the entry-history timeline) */
.usage-modal-content { padding: 0.5rem 1.15rem 1rem; min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.usage-modal-loading, .usage-modal-empty { color: #6b7280; padding: 1.5rem 0; text-align: center; }
.usage-modal-summary { font-size: 14px; color: #4b5563; margin: 0.6rem 0 0.5rem; flex: 0 0 auto; }
.usage-modal-scroll { flex: 1 1 auto; overflow: auto; min-height: 0; }
.usage-modal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.usage-modal-table thead th { position: sticky; top: 0; z-index: 2; background: #fff; text-align: left; font-weight: 600; color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.35rem 0.6rem; box-shadow: inset 0 -1px 0 #e5e7eb; }
.usage-modal-table td { padding: 0.4rem 0.6rem; border-bottom: 1px solid #f3f4f6; white-space: nowrap; }
.usage-modal-date { color: #6b7280; }
.usage-modal-type { color: #4b5563; }
.usage-modal-id { color: #9ca3af; font-variant-numeric: tabular-nums; text-align: right; }
.usage-entry-row { cursor: pointer; }
.usage-entry-row:hover { background: #e7f1ff; }
.usage-entry-chevron { display: inline-block; width: 0.9em; margin-right: 0.15rem; color: #9ca3af; transition: transform 0.12s; }
.usage-entry-open .usage-entry-chevron { transform: rotate(90deg); }
.usage-modal-entry { color: #250d47; }
.usage-op { display: inline-block; font-size: 14px; font-weight: 600; padding: 0.05rem 0.4rem; border-radius: 999px; text-transform: capitalize; }
.usage-op-create { background: #e7f5ec; color: #0f7a3d; }
.usage-op-update { background: #e8effb; color: #1c5cab; }
.usage-op-delete { background: #fdecec; color: #b42318; }
/* The drift explainer's change rows unzip to the entry's history (same classes as Usage detail). */
.rec-divide-drift-row { cursor: pointer; }
.rec-divide-drift-row:hover td { background: #e7f1ff; }
.rec-divide-drift-caret { color: #667085; }
.rec-divide-drift-expanded > td { background: #fafafd; padding: 0.4rem 0.75rem 0.6rem 1.5rem; }
/* The divider between changes made AFTER the sign-off day (above: the ones that can have moved
   the signed register, with their total) and changes made on the sign-off day itself (below —
   QBO dates a sign-off but does not time it). */
.rec-divide-drift-signoff-row > td {
    background: #F1F2FB;
    color: #4B5563;
    font-size: 14px;
    font-style: italic;
    padding: 0.4rem 0.6rem;
    white-space: normal;
}
/* A change and the one that cancels it (a check deleted, the entry that replaced it): muted so
   the eye lands on what is left of the drift; the note names the partner. */
.rec-divide-drift-wash > td { opacity: 0.5; }
.rec-divide-drift-wash-note { font-style: italic; }
/* A pair sits together, bracketed by a dark purple bar down its left edge with no rule between its
   rows, and both light up while either is hovered. */
.rec-divide-drift-wash > td:first-child { box-shadow: inset 3px 0 0 #250d47; }
.rec-divide-drift-wash-top > td { border-bottom: 0 !important; }
.rec-divide-drift-wash-hover > td { opacity: 1; background: #e7f1ff; }
.rec-divide-drift-wash-note .closer-pill { font-style: normal; }
/* The Effect column's total, against the headline change: the report tables' footer row
   (.fo-table-footer-cell — dark grey, white 12px 600). */
.rec-divide-drift-total > td.fo-table-footer-cell { border-top: 0 !important; }
/* The list does not add up to the headline change: said, not left for the reader to find. */
.rec-divide-drift-gap > td {
    background: #fdecec;
    color: #2d2c2f;
    font-size: 14px;
    padding: 0.4rem 0.6rem;
    white-space: normal;
}
.rec-divide-drift-gap strong { color: #b42318; }

/* A reconciliation report previewed from inside the drift explainer: the modal is already the
   page's overlay, so the preview takes the modal body's width and a tall frame rather than a
   second dialog. ⌥-click on the link is the browser's own new tab. */
.rec-pdf-preview {
    border: 1px solid #DEE2FE;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
    overflow: hidden;
}

.rec-pdf-preview-bar {
    align-items: center;
    background: #F1F2FB;
    display: flex;
    font-size: 14px;
    gap: 0.75rem;
    padding: 0.35rem 0.6rem;
}

.rec-pdf-preview-frame {
    border: 0;
    display: block;
    height: 70vh;
    width: 100%;
}

.rec-divide-drift-signoff-link {
    font-size: 14px;
    margin-left: 0.5rem;
}
.rec-divide-drift-history { margin: 0; }
/* expanded per-entry record (from cdc_qbo_entry) */
.usage-entry-detail > td { background: #faf9fc; padding: 0.5rem 0.9rem 0.7rem; white-space: normal; }
.usage-record-meta { font-size: 14px; color: #6b7280; margin-bottom: 0.4rem; }
.usage-record-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.usage-record-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: #9ca3af; padding: 0.15rem 0.5rem; font-weight: 600; }
.usage-record-table td { padding: 0.2rem 0.5rem; border-top: 1px solid #efeef3; vertical-align: top; }
.usage-record-acct { font-weight: 500; color: #111827; }
.usage-record-memo { color: #6b7280; white-space: normal; max-width: 380px; }
.usage-record-amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage-record-amt.neg { color: #b42318; }
.usage-record-loading, .usage-record-empty { color: #9ca3af; font-size: 14px; padding: 0.4rem 0; }
.usage-modal-foot { font-size: 14px; color: #9ca3af; margin-top: 0.7rem; flex: 0 0 auto; }

/* ── full-page usage drill-down ─────────────────────────────────────────── */
.usage-back { display: inline-block; margin-bottom: 0.6rem; font-size: 14px; color: #250d47; text-decoration: none; }
.usage-back:hover { text-decoration: none; }
.usage-detail-summary { font-size: 0.9rem; color: #4b5563; margin: 0.25rem 0 0.75rem; }
.usage-detail-empty { color: #6b7280; padding: 2rem 0; }
.usage-detail-cta { margin: 0.1rem 0 1rem; font-size: 0.9rem; }
.usage-filter-bar { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin: 0.25rem 0 0.85rem; }
.usage-filter { font-size: 14px; color: #6b7280; }
.usage-filter-count { font-size: 12px; color: #9ca3af; margin-left: auto; font-variant-numeric: tabular-nums; }
.usage-filter-dates { margin-top: -0.35rem; }
.usage-date { padding: 0.2rem 0.4rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; color: #374151; }
.usage-date-sep { color: #9ca3af; font-size: 14px; }
.usage-filter-clear { border: 1px solid #d1d5db; background: #fff; color: #4b5563; font-size: 14px; padding: 0.25rem 0.6rem; border-radius: 6px; cursor: pointer; }
.usage-filter-clear:hover { background: #f3f4f6; }
/* searchable multi-select combobox */
.usage-combo-label { font-size: 14px; color: #6b7280; margin-right: 0.35rem; }
.usage-combo { position: relative; display: inline-block; vertical-align: middle; }
.usage-combo-box { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; min-width: 150px; max-width: 300px; border: 1px solid #d1d5db; border-radius: 6px; padding: 0.15rem 0.35rem; background: #fff; }
.usage-combo-box:focus-within { border-color: #e91e63; }   /* the focused-input standard */
.usage-combo-input { border: none; outline: none; font-size: 14px; min-width: 60px; flex: 1; padding: 0.1rem 0.05rem; background: transparent; }
.usage-combo-chip { display: inline-flex; align-items: center; gap: 0.2rem; background: #efe9f7; color: #250d47; border-radius: 4px; padding: 0.05rem 0.15rem 0.05rem 0.35rem; font-size: 12px; }
.usage-combo-chip-x { cursor: pointer; color: #7c6aa0; font-weight: 700; padding: 0 0.2rem; }
.usage-combo-chip-x:hover { color: #250d47; }
.usage-combo-menu { position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 3px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 6px 18px rgba(17,24,39,0.14); max-height: 260px; overflow-y: auto; min-width: 100%; }
.usage-combo-opt { padding: 0.3rem 0.6rem; font-size: 14px; cursor: pointer; white-space: nowrap; }
.usage-combo-opt:hover { background: #e7f1ff; }
.usage-combo-empty { padding: 0.4rem 0.6rem; font-size: 14px; color: #9ca3af; white-space: nowrap; }
.usage-detail-product { white-space: nowrap; }
.usage-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage-detail-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.usage-detail-table thead th { position: sticky; top: 0; z-index: 2; background: #f9f9f7; text-align: left; font-weight: 600; color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.4rem 0.7rem; box-shadow: inset 0 -1px 0 #e5e7eb; }
.usage-detail-table td { padding: 0.45rem 0.7rem; border-bottom: 1px solid #f3f4f6; }
.usage-detail-when { color: #6b7280; white-space: nowrap; }
.usage-detail-type { color: #4b5563; }
.usage-detail-entry { color: #250d47; }
.usage-entry-row { cursor: pointer; }
.usage-entry-row:hover { background: #e7f1ff; }
.usage-entry-open { background: #f3f0fa; }
/* expanded record on the detail page */
.usage-entry-detail > td { background: #faf9fc; padding: 0.6rem 1rem 0.85rem; border-bottom: 1px solid #eef0f3; }
.usage-record-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.usage-record-meta { font-size: 14px; color: #6b7280; }
.usage-audit-link { font-size: 14px; color: #250d47; text-decoration: none; white-space: nowrap; }
.usage-audit-link:hover { text-decoration: none; }
.usage-record-difftag { font-size: 0.75rem; color: #1c5cab; background: #eef4fd; display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; margin-bottom: 0.45rem; }
.usage-record-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid #eef0f3; border-radius: 8px; overflow: hidden; }
.usage-record-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: #9ca3af; padding: 0.3rem 0.6rem; font-weight: 600; background: #fbfbfa; border-bottom: 1px solid #eef0f3; }
.usage-record-table td { padding: 0.3rem 0.6rem; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.usage-record-table tr:last-child td { border-bottom: none; }
.usage-record-amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage-record-amt.neg { color: #b42318; }
.usage-record-loading, .usage-record-empty { color: #9ca3af; font-size: 14px; padding: 0.4rem 0; }
/* diff markers */
.usage-chg-col { width: 1.4rem; text-align: center; font-weight: 700; }
.usage-line-added .usage-chg-col { color: #0f7a3d; }
.usage-line-removed .usage-chg-col { color: #b42318; }
.usage-line-changed .usage-chg-col { color: #b26a00; }
.usage-line-added > td { background: #f2fbf5; }
.usage-line-removed > td { background: #fdf3f3; color: #9ca3af; text-decoration: line-through; }
.usage-line-changed > td { background: #fffaf0; }
.usage-line-unchanged > td { color: #9ca3af; }
.usage-prior { color: #9ca3af; text-decoration: line-through; }
.usage-arrow { color: #b26a00; }
.usage-newval { font-weight: 600; color: #111827; }
/* right-align numeric column HEADERS too (the thead rule sets left by default) */
.usage-detail-table thead th.usage-num, .usage-record-table th.usage-num { text-align: right; }
/* header-level changes on an update (e.g. memo/date/name edited, lines untouched) */
.usage-hdr-changes { margin: 0.1rem 0 0.6rem; }
.usage-hdr-change { font-size: 14px; padding: 0.12rem 0; white-space: normal; line-height: 1.5; }
.usage-hdr-field { display: inline-block; min-width: 6rem; font-weight: 600; color: #6b7280; }
.usage-record-nochange { font-size: 14px; color: #9ca3af; font-style: italic; margin-bottom: 0.4rem; }
/* entry history timeline (in the modal) */
.usage-hist-top { margin-bottom: 0.4rem; }
.usage-hist-sub { font-size: 14px; color: #6b7280; margin: 0.2rem 0 0.7rem; }
.usage-hist-timeline { list-style: none; margin: 0; padding: 0 0 0 0.9rem; border-left: 2px solid #eef0f3; }
.usage-hist-item { position: relative; padding: 0 0 1.1rem 0.9rem; }
.usage-hist-item::before { content: ''; position: absolute; left: calc(-0.9rem - 6px); top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #c9bce6; border: 2px solid #fff; }
.usage-hist-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.25rem; }
.usage-hist-when { font-size: 14px; color: #6b7280; }
.usage-hist-hdr { font-size: 14px; margin: 0.1rem 0; }
.usage-hist-lines { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 0.25rem; }
.usage-hist-lines td { padding: 0.2rem 0.5rem; border-top: 1px solid #f3f4f6; vertical-align: top; }
.usage-hist-acct { font-weight: 500; color: #111827; }
.usage-hist-nm { color: #6b7280; }
.usage-hist-noop { font-size: 14px; color: #9ca3af; font-style: italic; margin-top: 0.2rem; }
.usage-hist-link { color: #250d47; text-decoration: none; white-space: nowrap; }
.usage-hist-link:hover { text-decoration: none; }
/* ============================================================
   Universal client-page search ("quicknav") — top nav omnibox.
   Markup: templates/web/components/quicknav.html
   Logic:  static/js/quicknav.js
   ============================================================ */
.fo-quicknav {
    position: relative;
    flex: 1 1 auto;
    max-width: 30rem;
    margin: 0 1rem;
}

.fo-quicknav-field {
    position: relative;
    display: flex;
    align-items: center;
}

/* The input with its search icon and "/" hint, both positioned inside it; the buttons follow it. */
.fo-quicknav-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.fo-quicknav-search-icon {
    position: absolute;
    left: 0.75rem;
    color: #9a8fb0;
    font-size: 0.75rem;
    pointer-events: none;
}

.fo-quicknav-input {
    width: 100%;
    height: 29px;   /* the app's btn-sm height (was 2.25rem) */
    padding: 0 2.25rem 0 2rem;
    font-size: 14px;
    color: #250d47;
    background-color: #fff;
    border: 1px solid #e4def0;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.fo-quicknav-input::placeholder {
    color: #9a8fb0;
}


.fo-quicknav-kbd {
    position: absolute;
    right: 0.5rem;
    padding: 0 0.35rem;
    font-size: 12px;
    font-weight: 600;
    color: #9a8fb0;
    background-color: #fff;
    border: 1px solid #e4def0;
    border-radius: 0.35rem;
    pointer-events: none;
}

.fo-quicknav-results {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background-color: #fff;
    border: 1px solid #e4def0;
    border-radius: 0.6rem;
    box-shadow: 0 12px 32px rgba(37, 13, 71, 0.18);
    max-height: 24rem;
    overflow-y: auto;
    display: none;
}

.fo-quicknav.is-open .fo-quicknav-results {
    display: block;
}

/* Recent places (⌥L, static/js/recent-places.js): the quicknav's own panel, opened under the
   search box; its rows are .fo-quicknav-result. */
.fo-recent-places {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0.35rem;
    background-color: #fff;
    border: 1px solid #e4def0;
    border-radius: 0.6rem;
    box-shadow: 0 12px 32px rgba(37, 13, 71, 0.18);
    display: none;
}
.fo-recent-places.is-open { display: block; }
/* Wider than the search box it hangs from (Jesse, 2026-10-13: "we can make that wider"), centred on
   it, so the client, the page and its title all read. */
.fo-recent-places:not(.fo-recent-places-floating) { left: 50%; right: auto; width: 46rem; max-width: calc(100vw - 2rem); transform: translateX(-50%); }
.fo-recent-places .fo-quicknav-result-client { flex: 0 0 auto; max-width: 14rem; }
/* "This tab" / "Other tabs" over their rows. */
.fo-recent-places-group { padding: .5rem .6rem .2rem; }
.fo-recent-places-group:first-child { padding-top: .1rem; }
.fo-recent-places-floating { position: fixed; top: 4rem; left: 50%; width: 46rem; max-width: calc(100vw - 2rem); transform: translateX(-50%); }
/* Over an open modal (⌥L from the Desk modal), above it and its backdrop. */
.fo-recent-places-over-modal { z-index: 1060; }
.fo-recent-places-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .3rem .6rem .4rem; }
.fo-recent-places-keys { font-size: 14px; color: #495057; }
.fo-recent-places-list { list-style: none; margin: 0; padding: 0; max-height: 24rem; overflow-y: auto; }
.fo-recent-places-num {
    flex: 0 0 1.1rem; text-align: center; font-size: 14px; font-weight: 600; color: #495057;
    border: 1px solid #e4def0; border-radius: .35rem; line-height: 1.4;
}
.fo-recent-places-num:empty { border: 0; }
.fo-recent-places-title { color: #495057; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.fo-recent-places-ago { margin-left: auto; padding-left: .5rem; font-size: 14px; color: #495057; white-space: nowrap; flex: 0 0 auto; }
.fo-recent-places-empty { padding: .6rem; font-size: 14px; color: #2d2c2f; }
/* Dressed as the search box beside it (its pale border, white): with the outline button's dark grey
   border the two measured the same 29px but the button read as taller (Jesse, 2026-10-11). */
.fo-recent-places-btn { flex: 0 0 29px; width: 29px; height: 29px; margin-left: .4rem; padding: 0;
    border-color: #e4def0; background-color: #fff; color: #250d47; }
.fo-recent-places-btn:hover, .fo-recent-places-btn:focus { border-color: #250d47; background-color: #fff; color: #e91e63; }

.fo-quicknav-result {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.45rem;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    color: #250d47;
}

.fo-quicknav-result.is-active {
    background-color: #e7f1ff;
}

.fo-quicknav-result-icon {
    flex: 0 0 1.4rem;
    text-align: center;
    color: #7a6a95;
    font-size: 0.8rem;
}

.fo-quicknav-result.is-active .fo-quicknav-result-icon {
    color: #e91e63;
}

.fo-quicknav-result-client {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

.fo-quicknav-result-sep {
    color: #c4bad6;
    font-weight: 700;
    flex: 0 0 auto;
}

.fo-quicknav-result-page {
    color: #7a6a95;
    white-space: nowrap;
    flex: 0 0 auto;
}

.fo-quicknav-result-sub {
    color: #250d47;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
}

.fo-quicknav-result.is-active .fo-quicknav-result-sub {
    color: #e91e63;
}

/* Static footer advertising the open-in-new-tab gesture. Not a selectable
   option — muted, non-interactive, pinned under the result rows. */
.fo-quicknav-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
    padding: 0.4rem 0.6rem 0.15rem;
    border-top: 1px solid #efeaf6;
    font-size: 14px;
    color: #9b8fb3;
    cursor: default;
    user-select: none;
}

.fo-quicknav-hint-key {
    display: inline-block;
    padding: 0.05rem 0.3rem;
    border: 1px solid #e4def0;
    border-radius: 0.3rem;
    background-color: #f7f5fb;
    color: #7a6a95;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .fo-quicknav {
        display: none;
    }
}

/* ── Reconciler: read-only rules grid (TM-1336) ───────────────────────
   Renders through the shared magic-reports grid (ResultsTable), so these
   classes only style the CELL contents — the table chrome comes from the
   .fo-table-* / .fo-results-wrapper rules above.

   NOTE: these are NOT Bootstrap's `.badge`. The repo-wide `.badge` rule
   forces a fixed 25px orange circle that clips text (same reason
   .fo-overview-tab-count and .fo-staff-tag define their own pills). */
.rec-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.rec-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 0.35rem;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
}

/* key=value pills (match_criteria / classification): the key reads as a
   muted prefix chip, the value as the payload. */
.rec-badge-key {
    padding: 0.1rem 0.35rem;
    background-color: rgba(0, 0, 0, 0.06);
    color: #4b5563;
    font-weight: 500;
}

.rec-badge-val {
    padding: 0.1rem 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-badge-criteria {
    border: 1px solid #c7d2fe;
    background-color: #eef2ff;
    color: #3730a3;
}

.rec-badge-classification {
    border: 1px solid #bbf7d0;
    background-color: #f0fdf4;
    color: #166534;
}

/* The `*_id` pins the engine re-resolves to a live FQN each run. Kept
   visible for introspection, muted so the FQN badge reads first. */
.rec-badge-muted {
    border-color: #e5e7eb;
    background-color: #f9fafb;
    color: #9ca3af;
}

.rec-badge-muted .rec-badge-key {
    background-color: rgba(0, 0, 0, 0.03);
    color: #9ca3af;
}

/* Single-value enum pills (strategy / disposition / source). */
.rec-badge-strategy,
.rec-badge-disposition,
.rec-badge-source {
    padding: 0.1rem 0.45rem;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rec-badge-strategy-basic {
    border-color: #e5e7eb;
    background-color: #f3f4f6;
    color: #4b5563;
}

.rec-badge-strategy-transfer {
    border-color: #bfdbfe;
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* auto = the engine books it unattended; manual = parked for a human.
   The colour split is the point of the column. */
.rec-badge-disposition-auto {
    border-color: #bbf7d0;
    background-color: #f0fdf4;
    color: #166534;
}

.rec-badge-disposition-manual {
    border-color: #fde68a;
    background-color: #fffbeb;
    color: #92400e;
}

.rec-badge-source-ai {
    border-color: #e9d5ff;
    background-color: #faf5ff;
    color: #6b21a8;
}

.rec-badge-source-human {
    border-color: #e5e7eb;
    background-color: #f9fafb;
    color: #4b5563;
}

/* Deterministically synthesized from a "Discuss Rule" sheet directive (SOURCE_SHEET). Teal to read
   distinctly from ai (purple) and human (grey); without this the badge had no box. */
.rec-badge-source-sheet {
    border-color: #99f6e4;
    background-color: #f0fdfa;
    color: #0f766e;
}

/* Description cell: a regex, so render it monospaced. */
.rec-regex {
    color: #374151;
    font-size: 14px;
    word-break: break-all;
}

/* Semantic empties — an empty description and a NULL header_account are
   both meaningful defaults (matches everything / company-wide), not
   missing data. Italic-muted rather than a blank cell. */
.rec-catch-all,
.rec-company-wide,
.rec-never-fired {
    color: #9ca3af;
    font-style: italic;
}

.rec-fired {
    color: #b45309;
    font-weight: 600;
    white-space: nowrap;
}

/* The human's rationale / original Discuss-Rule directive — muted so the badges
   (criteria/classification) stay the visual anchor of the row. inline-block + a hard
   max-width makes a long directive WRAP inside its column instead of bleeding across the
   "Fired" cell (the table is auto-layout, so a bare span would otherwise run the text on
   one line and overflow the neighbour). */
.rec-reason {
    display: inline-block;
    max-width: 18rem;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
    color: #4b5563;
    font-size: 14px;
    font-style: italic;
}

.rec-col-reason {
    min-width: 10rem;
    max-width: 18rem;
    white-space: normal;
}

/* Column widths — the two JSON columns carry the bulk of the content. */
.rec-col-actions {
    width: 8.5rem;   /* edit + disposition + enable/disable + delete */
    white-space: nowrap;
}

/* The customer-facing rule number — a short identity column, tight against the description. */
.rec-col-rulenum {
    width: 3.5rem;
    white-space: nowrap;
    color: #667085;
}

.rec-col-description {
    min-width: 14rem;
    max-width: 22rem;
    /* Bank memos run long and carry unbroken tokens ("...#####2819 transacti0.096..."); wrap them
       inside the column instead of letting them bleed across amount/rec-account. */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rec-col-criteria,
.rec-col-classification {
    min-width: 12rem;
    max-width: 20rem;
}

.rec-col-enum {
    width: 6rem;
}

.rec-col-header-account {
    min-width: 9rem;
}

.rec-col-firing {
    width: 8rem;
    white-space: nowrap;
}

/* --- Rule edit action gutter -------------------------------------------------------------------- */
.rec-actions {
    display: inline-flex;
    gap: 0.25rem;
}

.rec-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 1px solid var(--fo-border-color, #d0d5dd);
    border-radius: 0.3rem;
    background: #fff;
    color: #667085;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.rec-action-btn:hover:not(:disabled) {
    background: #f2f4f7;
    color: #1d2939;
}

.rec-action-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.rec-action-delete:hover:not(:disabled) {
    background: #fef3f2;
    color: #d92d20;
    border-color: #fda29b;
}

/* A disabled (active=false) rule: still listed so it can be re-enabled, but visibly dimmed and
   struck so it reads as "off" at a glance. */
.rec-rule-disabled {
    opacity: 0.55;
}

.rec-rule-disabled .rec-regex,
.rec-rule-disabled .rec-badge-classification {
    text-decoration: line-through;
}

/* Rules tab "Show deleted" list: greyed, with a Restore button + "deleted <date>" in the gutter. */
.rec-rule-deleted {
    background: #f9fafb;
    opacity: 0.6;
}

.rec-rule-deleted:hover {
    opacity: 1;
}

.rec-rule-deleted-at {
    color: #667085;
    font-size: 14px;
    margin-left: 0.35rem;
    white-space: nowrap;
}

.rec-action-restore:hover:not(:disabled) {
    background: #ecfdf3;
    color: #067647;
    border-color: #75e0a7;
}

/* Names the disabled state on the row — dim-and-strike alone read as "deleted". Never struck. */
.rec-rule-paused-pill {
    background: #fef0c7;
    border-radius: 999px;
    color: #93370d;
    font-size: 12px;   /* a pill is 12px by default (Christopher, 2026-11-10) */
    font-weight: 600;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    text-decoration: none;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Firm Rules edits every client's rules in one modal; the title says whose (EditRuleModal clientName). */
.rec-modal-client { font-weight: 400; color: #667085; }

.rec-edit-error {
    margin-bottom: 0.5rem;
}

/* --- Edit/Add rule modal ------------------------------------------------------------------------ */
.rec-modal-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #667085;
    margin-bottom: 0.35rem;
}

.rec-modal-advanced-toggle {
    text-decoration: none;
    font-weight: 600;
}

.rec-modal-advanced {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--fo-border-color, #e4e7ec);
}

.rec-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
}

/* --- Suggest rules modal (AI proposals from recent unbooked activity) --------------------------- */
/* Icons here are NOT Font Awesome <i> on purpose: FA's JS replaces <i class="fa"> with <svg> after
   React renders it, and when React later removes a dynamically-mounted icon (the apply spinner, a row's
   status icon) the node it holds is gone → "removeChild: not a child" crashes the whole subtree (the
   divide went blank — Jesse, 2026-08-24). This CSS spinner is a plain <span> React owns end to end. */
.rec-inline-spin {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: rec-inline-spin 0.6s linear infinite;
    vertical-align: -0.1em;
    margin-right: 0.35em;
}

@keyframes rec-inline-spin {
    to { transform: rotate(360deg); }
}

.rec-suggest-intro {
    margin-bottom: 0.75rem;
}

/* Which accounts the pass read (the divide's filter, or all) — beside the title, quieter. */
.rec-suggest-scope {
    font-size: 14px;
    margin-left: 0.15rem;
}

/* The batch's disposition switch (Reconciler Activation call, 2026-09-16): Manual by default, Auto
   behind a switch whose text says what it does. The auto state reads as a warning. */
.rec-suggest-disposition {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.7rem;
    margin-bottom: 0.75rem;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #f9fafb;
    font-size: 14px;
}

.rec-suggest-disposition--auto {
    border-color: #fec84b;
    background: #fffaeb;
}

.rec-suggest-disposition-text {
    color: #344054;
}

.rec-suggest-disposition--auto .rec-suggest-disposition-text {
    color: #93370d;
}

/* "Show me what will book" (same call): the before / after count on top, one collapsible block per
   ticked rule beneath, each listing the open bank rows the rule would claim. */
.rec-suggest-preview-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #f9fafb;
}

.rec-suggest-preview-stat {
    min-width: 9rem;
}

.rec-suggest-preview-num {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: #344054;
}

.rec-suggest-preview-stat--claim .rec-suggest-preview-num {
    color: #067647;
}

.rec-suggest-preview-stat--after .rec-suggest-preview-num {
    color: #175cd3;
}

.rec-suggest-preview-label {
    font-size: 14px;
    color: #475467;
}

.rec-suggest-preview-arrow {
    font-size: 1.4rem;
    color: #98a2b3;
}

.rec-suggest-preview-transfer-warn {
    color: #b54708;
    background: #fffaeb;
    border: 1px solid #fec84b;
    border-radius: 6px;
    padding: 0.4rem 0.7rem;
    margin-bottom: 0.75rem;
    font-size: 14px;
}

.rec-suggest-preview-rule {
    border-bottom: 1px solid #eaecf0;
    padding: 0.35rem 0;
    font-size: 14px;
}

.rec-suggest-preview-rule > summary {
    cursor: pointer;
}

.rec-suggest-preview-rule code {
    color: #475467;
    background: #f2f4f7;
    border-radius: 3px;
    padding: 0 0.25rem;
    font-size: 14px;
}

.rec-suggest-preview-count {
    color: #475467;
}

.rec-suggest-preview-table {
    width: 100%;
    margin: 0.3rem 0 0.2rem 1rem;
    font-size: 14px;
}

.rec-suggest-preview-table td {
    padding: 0.1rem 0.5rem 0.1rem 0;
    vertical-align: top;
}

.rec-suggest-preview-date {
    white-space: nowrap;
    color: #475467;
}

.rec-suggest-preview-amount {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rec-suggest-preview-acct {
    color: #98a2b3;
    white-space: nowrap;
}

.rec-suggest-preview-flag {
    color: #b54708;
    white-space: nowrap;
}

/* Booked history: how the books coded the row, and who wrote the entry (linked to QuickBooks). */
.rec-suggest-preview-booked {
    color: #344054;
}

/* Its own column, set apart: "booked by IRec" describes the whole entry, not the class beside it. */
.rec-suggest-preview-table td.rec-suggest-preview-booked-by {
    color: #667085;
    white-space: nowrap;
    padding-left: 1.5rem;
    border-left: 1px solid #eaecf0;
}

.rec-suggest-preview-row--transfer td {
    background: #fffaeb;
}

/* The rule editor's own preview (2026-09-17): the same blocks as Suggest Rules' preview, for the one
   rule being authored — "will book" and "would have booked", then how the books coded the history. */
.rec-rule-preview .rec-suggest-preview-rule[open] {
    max-height: 18rem;
    overflow-y: auto;
}

/* The heading line stays put while its rows scroll beneath it (Jesse, 2026-09-17). */
.rec-rule-preview .rec-suggest-preview-rule[open] > summary {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #eaecf0;
}


.rec-rule-preview .rec-suggest-preview-table td,
.rec-suggest-preview-history .rec-suggest-preview-table td {
    white-space: nowrap;
}

.rec-suggest-preview-nested {
    margin: 0.25rem 0 0.4rem 1rem;
}

.rec-rule-preview-loading {
    margin-left: 0.5rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #98a2b3;
}

.rec-rule-preview-coded-block {
    padding: 0.4rem 0 0 0;
    font-size: 14px;
}

.rec-rule-preview-coded-label {
    display: inline-block;
    min-width: 4.5rem;
    color: #475467;
}

.rec-rule-preview-coded-value.is-pinned {
    font-weight: 700;
    color: #067647;
}

.rec-rule-preview-mismatch {
    color: #b54708;
}

/* Two lines per row so a vendor is no taller than its month cells (Jesse, 2026-09-16: "still
   taking up way too much vertical space"): the controls on line 1 (vendor → account, class), the
   evidence on line 2 (memos, the editable pattern); a warning, when any, is a third line. */
.rec-suggest-matrix-line1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.rec-suggest-matrix-line1 .rec-suggest-matrix-vendor .rec-combo {
    width: 13rem;
}

.rec-suggest-matrix-line1 .rec-suggest-matrix-coding .rec-combo {
    width: 12.5rem;
}

.rec-suggest-matrix-arrow {
    color: #98a2b3;
}

.rec-suggest-matrix-line2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
}

.rec-suggest-matrix-line2 .rec-suggest-matrix-memo,
.rec-suggest-matrix-line2 .rec-suggest-matrix-regex {
    margin-top: 0;
}

.rec-suggest-matrix-line2 .rec-suggest-matrix-regex {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    white-space: nowrap;
}

.rec-suggest-matrix-line2 .rec-suggest-matrix-regex-input {
    width: 20rem;
}

.rec-suggest-matrix-notes:empty {
    display: none;
}

/* The Auto-book switch itself: a pill track and a knob, drawn here because Bootstrap's
   form-switch renders as two bare circles under this theme. */
.rec-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.rec-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rec-toggle-track {
    position: relative;
    display: inline-block;
    width: 2.6rem;
    height: 1.4rem;
    border-radius: 1rem;
    background: #98a2b3;
    transition: background 0.15s ease;
    flex: 0 0 auto;
}

.rec-toggle-knob {
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.3);
    transition: transform 0.15s ease;
}

.rec-toggle-input:checked + .rec-toggle-track {
    background: #dc6803;
}

.rec-toggle-input:checked + .rec-toggle-track .rec-toggle-knob {
    transform: translateX(1.2rem);
}

.rec-toggle-input:focus-visible + .rec-toggle-track {
    outline: 2px solid #175cd3;
    outline-offset: 2px;
}

.rec-toggle-input:disabled + .rec-toggle-track {
    opacity: 0.5;
}

.rec-toggle-label {
    font-weight: 700;
}

/* The phase list while a Suggest pass runs — each phase as it lands, the current one spinning. */
.rec-suggest-progress {
    max-width: 40rem;
    margin: 1rem auto;
    font-size: 14px;
    color: #475467;
}

.rec-suggest-progress-step {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.rec-suggest-progress-step--done {
    color: #067647;
}

.rec-suggest-progress-at {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    color: #98a2b3;
    font-size: 14px;
}

.rec-suggest-progress-elapsed {
    margin-top: 0.4rem;
    font-size: 14px;
    color: #98a2b3;
}

.rec-suggest-matrix-notes:empty {
    display: none;
}

.rec-suggest-matrix td {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

/* The month headers stay put while the grid scrolls (Jesse, 2026-09-16: "need to freeze the
   headers"). The wrap must NOT be its own scroll container, or sticky would pin to it instead
   of the modal body. */
.rec-suggest-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    box-shadow: inset 0 -1px 0 #d0d5dd;
}

.rec-suggest-matrix-opinion-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #b54708;
    background: #fffaeb;
    border: 1px solid #fec84b;
    border-radius: 3px;
    padding: 0 0.3rem;
    margin-right: 0.25rem;
}

.rec-suggest-preview-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
    font-size: 14px;
}

/* The walkthrough's "already connected here" summary. */
.rec-get-started-sources {
    margin-top: 0.5rem;
}

.rec-get-started-sources-title {
    font-size: 14px;
    color: #475467;
    margin-top: 0.35rem;
}

.rec-get-started-sources-table {
    width: 100%;
    margin-top: 0.35rem;
    font-size: 14px;
}

.rec-get-started-sources-table th {
    font-weight: 600;
    color: #475467;
    border-bottom: 1px solid #d0d5dd;
    padding: 0.15rem 0.75rem 0.15rem 0;
    white-space: nowrap;
    /* Sticky so the scrolled list keeps its column names. */
    position: sticky;
    top: 0;
    background: #fff;
}

.rec-get-started-sources-table td {
    padding: 0.15rem 0.75rem 0.15rem 0;
    vertical-align: top;
    white-space: nowrap;
}

.rec-get-started-sources-table td.rec-get-started-accounts {
    white-space: normal;
}

/* Roughly ten rows, then the list scrolls on its own — the pop-up itself should never have to
   (Jesse, 2026-09-23). */
.rec-get-started-sources-scroll {
    max-height: 15rem;
    overflow: auto;
}

/* Wider than Bootstrap's modal-xl default so the steps read on one line each on a laptop. */
.rec-get-started-dialog {
    max-width: min(1400px, calc(100vw - 2rem));
}

/* The theme's .btn-close is a WHITE glyph at half opacity — invisible on this white header, so
   the pop-up read as having no way out but Esc (Jesse, 2026-09-23). Inverted to dark here. */
.rec-get-started-dialog .modal-header .btn-close,
.bank-colmap-dialog .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.6;
}

.rec-get-started-dialog .modal-header .btn-close:hover,
.bank-colmap-dialog .modal-header .btn-close:hover {
    opacity: 0.9;
}

/* "Where to start" toggle + Get started button, beside the Reconciler page title. */
.rec-intro-stub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.rec-get-started-steps > li {
    margin-bottom: 0.9rem;
}
/* The Edit pencil QuickBooks shows on a bank account's card, so the step reads like the screen
   (Theresa, 2026-09-17). */
.rec-get-started-glyph { font-size: 0.85em; margin: 0 0.15em; color: #6c757d; }

.rec-get-started-actions {
    margin-top: 0.35rem;
}

/* Vendor-consistency frequency matrix (Suggest rules, 2026-08-27): merchants down, months across,
   transaction counts in the cells. Neutral palette matching the rest of the rec-suggest block. */
.rec-suggest-matrix-wrap {
    /* No overflow here on purpose — see the sticky thead rule below. */
    overflow: visible;
}

.rec-suggest-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    /* Fixed layout so the MONTHS share the width evenly instead of the Rule column swallowing it and
       squeezing six months into the right margin (Jesse, 2026-08-27). */
    table-layout: fixed;
}

.rec-suggest-matrix thead th {
    position: sticky;
    /* The modal body scrolls with 1rem of padding, and a sticky top of 0 pins to its CONTENT
       edge — so rows scrolled through the padding band showed above the header (Jesse,
       2026-09-25: "why don't the header columns touch the top of the panel?"). Minus the
       padding puts the header flush under the title bar. */
    top: -1rem;
    background: #f9fafb;
    border-bottom: 2px solid var(--fo-border-color, #e4e7ec);
    padding: 0.35rem 0.5rem;
    font-weight: 600;
    color: #475467;
    white-space: nowrap;
    text-align: right;
}

.rec-suggest-matrix thead th.rec-suggest-matrix-check,
.rec-suggest-matrix thead th.rec-suggest-matrix-rule {
    text-align: left;
}

.rec-suggest-matrix-check {
    width: 1.75rem;
    text-align: center;
}

.rec-suggest-matrix-rule {
    text-align: left;
    width: 46%;
    overflow-wrap: anywhere;
}

.rec-suggest-matrix-month,
.rec-suggest-matrix-cell {
    text-align: right;
    white-space: nowrap;
}

.rec-suggest-matrix-total {
    text-align: right;
    font-weight: 700;
    width: 6rem;
    border-left: 1px solid var(--fo-border-color, #e4e7ec);
}

/* Dollars on top, "31 txns" beneath in small muted type. */
.rec-suggest-matrix-amount {
    font-variant-numeric: tabular-nums;
}

.rec-suggest-matrix-count {
    font-size: 12px;
    font-weight: 400;
    color: #98a2b3;
    line-height: 1.1;
}

.rec-suggest-matrix-row td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

/* A suggestion is TWO rows (2026-09-25): the controls and month figures, then the evidence on a
   full-width row beneath — the memos, the pattern and the QuickBooks line run out under the
   figures instead of wrapping four deep in the left cell. The pair reads as one: no rule between
   them, and they highlight together (the --hover class, set from React for both). */
.rec-suggest-matrix-row:has(+ .rec-suggest-matrix-row--detail) td {
    border-bottom: 0;
    padding-bottom: 0.1rem;
}

.rec-suggest-matrix-row--detail td {
    padding-top: 0.1rem;
}

.rec-suggest-matrix-row--detail .rec-suggest-matrix-line2 {
    gap: 0.25rem 1rem;
}

.rec-suggest-matrix-row--hover td {
    background: #e7f1ff;
}

.rec-suggest-matrix-row--applied {
    opacity: 0.55;
}

.rec-suggest-matrix-merchant {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #101828;
}

/* The vendor picker row: the divide's ComboBox, full cell width; the memo spellings beneath it in the
   feed's own uppercase, small and muted. An unresolved vendor's hint shares the picker's orange. */
.rec-suggest-matrix-vendor .rec-combo {
    width: 100%;
    max-width: 22rem;
}

.rec-suggest-matrix-memo {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #98a2b3;
    margin-top: 0.15rem;
}

.rec-suggest-novel-hint {
    color: #b54708;
    text-transform: none;
    letter-spacing: 0;
}

/* The bank's own words, in the case the bank sent them: the payee hides in mixed case
   ('From ChinaTalk via mercury.com; Merchant name: Shijie Wang'). */
.rec-suggest-matrix-memo-text {
    text-transform: none;
    letter-spacing: 0;
}

.rec-suggest-matrix-regex {
    font-size: 14px;
    color: #98a2b3;
    margin-top: 0.15rem;
}

.rec-suggest-matrix-regex code {
    font-size: 14px;
    color: #475467;
    background: var(--fo-surface-2, #f2f4f7);
    padding: 0 0.25rem;
    border-radius: 2px;
    word-break: break-all;
}

/* The pattern is EDITABLE in place (Jesse, 2026-08-31) — styled like the code chip it replaced,
   widening into the row; --changed marks a hand-edited pattern the Apply will use verbatim. */
.rec-suggest-matrix-regex-input {
    font-family: var(--bs-font-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 14px;
    color: #475467;
    background: var(--fo-surface-2, #f2f4f7);
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 0 0.25rem;
    width: min(34rem, 90%);
}


.rec-suggest-matrix-regex-input--changed {
    border-color: #7f56d9;
    color: #53389e;
}

/* The whole ROW toggles selection — on an extend row every picker is greyed (the rule's coding
   stays) and a click there felt dead (Jesse, 2026-08-31). Disabled controls pass clicks through
   to the row; live controls keep theirs. */
.rec-suggest-matrix-row {
    cursor: pointer;
}

.rec-suggest-matrix-row .rec-combo-trigger[disabled],
.rec-suggest-matrix-row input[disabled] {
    pointer-events: none;
}

/* Which QBO entity the row's name is — vendor (grey) vs customer (green), stated rather than
   assumed (Jesse, 2026-08-31: SwyftScripts is a recurring CUSTOMER a rule could want). */
.rec-suggest-matrix-enttype {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #667085;
    background: var(--fo-surface-2, #f2f4f7);
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
    margin-right: 0.35rem;
    white-space: nowrap;
}

.rec-suggest-matrix-enttype--customer {
    color: #067647;
    background: #e6f4ea;
}

/* A name QuickBooks does not have yet — "new vendor", in the orange the row's novel-name hint
   already uses, instead of a chip claiming "This name is a QBO Vendor" about a name that isn't
   (Theresa, 2026-09-24: "this is deceiving"). */
.rec-suggest-matrix-enttype--new {
    color: #b54708;
    background: #fff4e5;
}

/* Triage bar under the intro (Theresa, 2026-09-24: 719 suggestions): sort, and the folded
   dormant / one-off counts with a toggle each. */
.rec-suggest-triage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.6rem;
    font-size: 14px;
    color: #475467;
}

.rec-suggest-triage label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.rec-suggest-triage select {
    width: auto;
    display: inline-block;
}

.rec-suggest-triage-skipped {
    flex-basis: 100%;
    font-size: 14px;
    color: #667085;
}

.rec-suggest-matrix-coding {
    font-size: 14px;
    color: #475467;
    margin-top: 0.1rem;
}

.rec-suggest-matrix-class {
    color: #667085;
}

.rec-suggest-matrix-cell--empty {
    color: #d0d5dd;
}

.rec-suggest-matrix-rowerror {
    color: #b42318;
    font-size: 14px;
}

/* 2026-08-29 feedback: the matrix takes the screen (less height per row), the coding line is two
   small typeable pickers, money IN reads apart from money OUT, and a row can be dismissed with a
   reason and reviewed / undone below the grid. */
.rec-suggest-modal-dialog {
    max-width: min(96vw, 1800px);
}

.rec-suggest-matrix-vendor {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rec-suggest-matrix-coding {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.rec-suggest-matrix-coding .rec-combo {
    width: 13rem;
    max-width: 100%;
    font-size: 14px;
}

.rec-suggest-matrix-in {
    color: #067647;
    font-variant-numeric: tabular-nums;
}

.rec-suggest-matrix-mixed {
    color: #b54708;
    font-size: 14px;
}

.rec-suggest-matrix-extend {
    color: #175cd3;
    font-size: 14px;
}

.rec-suggest-matrix-extend-current {
    color: #475467;
    margin-top: 0.1rem;
}

.rec-suggest-matrix-extend-current code {
    color: #475467;
    background: #f2f4f7;
    border-radius: 3px;
    padding: 0 0.25rem;
    font-size: 14px;
    word-break: break-all;
}

.rec-suggest-dismiss-btn {
    background: none;
    border: none;
    padding: 0 0.25rem;
    color: #98a2b3;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.rec-suggest-dismiss-btn:hover {
    color: #b42318;
}

.rec-suggest-dismiss-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.3rem;
}

.rec-suggest-dismiss-form input {
    font-size: 14px;
    max-width: 22rem;
}

.rec-suggest-dismiss-form .btn {
    white-space: nowrap;    /* "Never suggest" / "cancel" wrapped to two lines beside the box */
}

.rec-suggest-dismissed {
    margin-top: 0.85rem;
    font-size: 14px;
}

.rec-suggest-dismissed summary {
    cursor: pointer;
    color: #475467;
    font-weight: 600;
}

.rec-suggest-dismissed-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--fo-border-color, #e4e7ec);
}

.rec-suggest-dismissed-row code {
    font-size: 14px;
    color: #475467;
    background: var(--fo-surface-2, #f2f4f7);
    padding: 0 0.25rem;
    border-radius: 2px;
}

.rec-suggest-dismissed-meta {
    color: #98a2b3;
    font-size: 14px;
    margin-left: auto;
    white-space: nowrap;
}

.rec-suggest-selectall {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 14px;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--fo-border-color, #e4e7ec);
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.rec-suggest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rec-suggest-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.6rem 0.25rem;
    border-bottom: 1px solid var(--fo-border-color, #e4e7ec);
}

.rec-suggest-item--applied {
    opacity: 0.55;
}

.rec-suggest-check {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.rec-suggest-body {
    flex: 1 1 auto;
    min-width: 0;
}

.rec-suggest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.rec-suggest-regex {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    color: #1d2939;
    background: #f2f4f7;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    word-break: break-all;
}

.rec-suggest-badge {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
}

.rec-suggest-badge--new {
    background: #d1fadf;
    color: #027a48;
}

.rec-suggest-badge--improve {
    background: #fef0c7;
    color: #b54708;
}

.rec-suggest-badge--auto {
    background: #d1e9ff;
    color: #175cd3;
}

.rec-suggest-badge--manual {
    background: #eaecf0;
    color: #475467;
}

.rec-suggest-status {
    font-size: 14px;
    font-weight: 600;
    color: #667085;
}

.rec-suggest-status--applied {
    color: #027a48;
}

.rec-suggest-coding {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.3rem 0.75rem;
    font-size: 14px;
    margin-top: 0.15rem;
}

.rec-suggest-code-seg {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    margin-bottom: 0;
}

.rec-suggest-code-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #98a2b3;
}

.rec-suggest-code-seg .rec-typeahead {
    width: 12rem;
}

.rec-suggest-code-seg--account .rec-typeahead {
    width: 20rem;
    max-width: 100%;
}

.rec-suggest-code-seg .rec-typeahead-input {
    font-size: 14px;
    font-weight: 600;
}

.rec-suggest-code-frozen {
    font-size: 14px;
    font-weight: 600;
    color: #1d2939;
}

.rec-typeahead-create {
    color: #027a48;
    font-weight: 600;
}

.rec-suggest-note {
    margin-top: 0.4rem;
    font-size: 14px;
    max-width: 32rem;
}

.rec-suggest-declinenote {
    margin-top: 0.3rem;
    font-size: 14px;
    color: #b54708;
    background: #fffaeb;
    border-radius: 0.25rem;
    padding: 0.2rem 0.45rem;
    display: inline-block;
}

.rec-suggest-rationale {
    font-size: 14px;
    color: #475467;
    margin-top: 0.1rem;
}

.rec-suggest-samples {
    font-size: 14px;
    color: #98a2b3;
    margin-top: 0.15rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
}

.rec-suggest-rowerror {
    font-size: 14px;
    color: #d92d20;
    margin-top: 0.2rem;
}

/* --- Typeahead FQN picker (self-contained; mirrors payroller's) --------------------------------- */
.rec-typeahead {
    position: relative;
}

/* The site's .form-control is the Material underline; a picker has to read as a DROPDOWN, boxed
   like .rec-combo-trigger and the modal's own <select>s beside it (Jesse, 2026-08-16: "the typeable
   ones need the outline on the dropdown too"). Class-doubled to outrank the base rule. */
.rec-typeahead .rec-typeahead-input.form-control {
    padding: 0.15rem 1.5rem 0.15rem 0.5rem;
    height: 29px;   /* the app's input: 29px, 12px, white, 1px lightgray, .375rem (UI standards) */
    font-size: 14px;
    color: #2d2c2f;
    background: #ffffff;
    border: 1px solid lightgray;
    border-radius: .375rem;
    box-shadow: none;
}

.rec-typeahead .rec-typeahead-input.form-control:hover {
    border-color: #98a2b3;
}


/* The rules modal's plain text inputs (amounts, Memo, Reason, the regex) read as BOXES like the
   pickers beside them — the site's underline form-control vanished into the modal's white card
   ("blank boxes instead of whitespace", Jesse, 2026-08-22). Class-doubled to outrank the base rule. */
.rec-boxed.form-control {
    padding: 0.15rem 0.5rem;
    height: 29px;   /* the app's input (UI standards) */
    font-size: 14px;
    color: #2d2c2f;
    background: #ffffff;
    border: 1px solid lightgray;
    border-radius: .375rem;
    box-shadow: none;
}

.rec-boxed.form-control:hover {
    border-color: #98a2b3;
}


.rec-typeahead-caret {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #98a2b3;
    font-size: 0.7rem;
}

.rec-typeahead-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 2px);
    left: 0;
    max-height: 14rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--fo-border-color, #d0d5dd);
    border-radius: 0.35rem;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}

/* A picker's OPEN menu is sized by its content, not by the field it hangs off. How wide the Account
   box is, is an accident of the form's column layout; how long "Fundraising & Cost of Revenue" is,
   is not — and a menu pinned to the field re-truncates the very names you opened it to read (Amy,
   2026-09-10: "the Account field is pretty narrow and in cases of subaccounts, we can't see the full
   account name"). `width: max-content` is what does the work: an absolutely-positioned box otherwise
   shrink-to-fits, which clamps it to the AVAILABLE width — the field's — and the ellipses come back.
   Options keep their title attribute, so a name past the cap is still readable on hover. */
.rec-typeahead-menu,
.rec-combo-panel {
    width: max-content;
    min-width: 100%;
    max-width: 34rem;
}

/* Reserve the scrollbar's column up front, on whichever box actually scrolls (the typeahead's menu
   is its own scroller; the combo's is the inner list). A classic, non-overlay scrollbar appearing
   inside a max-content box otherwise overlaps the widest row by its own width — putting the
   ellipsis back on exactly the longest name, which is the one this change exists to show. */
.rec-typeahead-menu,
.rec-combo-list {
    scrollbar-gutter: stable;
}

/* Grown rightward, a menu on the last control in a row runs off the window; useMenuFit measures it
   on open and hangs it off the field's RIGHT edge instead, so it grows back across the form. */
.rec-typeahead-menu.rec-menu-flip,
.rec-combo-panel.rec-menu-flip {
    left: auto;
    right: 0;
}

.rec-typeahead-item {
    padding: 0.3rem 0.6rem;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-typeahead-item:hover,
.rec-typeahead-item.is-active,
.rec-typeahead-item.is-cursor {
    background: #f2f4f7;
}

/* The keyboard cursor reads a shade stronger than hover, so ↓/↑ visibly move something. */
.rec-typeahead-item.is-cursor {
    background: #e4e7ec;
}

.rec-typeahead-clear {
    color: #98a2b3;
    border-bottom: 1px solid var(--fo-border-color, #e4e7ec);
}

/* --- Reconciler Outages view (Phase 1a) ------------------------------------------------------- */
.rec-outage-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 14px;
}

.rec-outage-summary-lead {
    color: var(--fo-text-muted, #475467);
    margin-right: 0.25rem;
}

/* Bucket pills — shared color modifiers apply to both the summary chips and the in-cell Status badge,
   so a bucket reads the same color in the strip and the table. Base shapes differ; colors are shared. */
.rec-outage-bucket,
.rec-outage-summary-chip {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    border: 1px solid transparent;
}

.rec-outage-bucket--rule-matched { background: #e7f6ec; color: #17663a; border-color: #b7e4c7; }
.rec-outage-bucket--confident    { background: #e8f0fe; color: #1a4b8c; border-color: #bcd3f7; }
.rec-outage-bucket--guess        { background: #fdf3e2; color: #8a5a12; border-color: #f3d9a6; }
.rec-outage-bucket--book-only    { background: #f1ecfb; color: #5b3ba6; border-color: #d9cbf3; }
.rec-outage-bucket--unclassified { background: #f2f4f7; color: #475467; border-color: #e4e7ec; }

.rec-outage-amount {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rec-col-amount { text-align: right; }

/* A source-confidence flag next to a proposed name/account. Base + the low-confidence variant. */
.rec-outage-source {
    font-size: 14px;
}

.rec-outage-source--guess {
    color: #b58a2b;
    font-style: italic;
}

/* The rule-id chip in the Rule cell — same id the sheet's `rule N ↗` link deep-links to. */
.rec-outage-rulechip {
    display: inline-block;
    padding: 0 0.35rem;
    margin-right: 0.25rem;
    border-radius: 8px;
    background: #eef2f6;
    color: #475467;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Outages view picker + Rec Accounts filter + Save/Delete row (1b-1.5). The MultiselectFilter is a
   label-over-dropdown stack, so bottom-align everything to sit level with its dropdown (not floating
   against the label above it). */
.rec-outage-account-filter {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.rec-outage-view-picker {
    width: auto;
    min-width: 9rem;
    max-width: 16rem;
}

.rec-outage-save-view,
.rec-outage-delete-view {
    white-space: nowrap;
    /* nudge to the dropdown's baseline (the multiselect control has a hair of bottom padding) */
    margin-bottom: 1px;
}

/* Outages toolbar: view picker + account filter + live date range (1b-1.5 / 1b-2 / date filter). */
.rec-outage-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 1rem;
}

.rec-outage-date-filter {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.4rem;
}

.rec-outage-date-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--fo-text-muted, #475467);
    margin-bottom: 0.35rem;
}

.rec-outage-date-input {
    width: auto;
    max-width: 9rem;
}

.rec-outage-date-sep {
    margin-bottom: 0.3rem;
    color: #98a2b3;
}

.rec-outage-date-clear {
    padding: 0 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 14px;
}

/* Subtle book/bank tint (1b-2 acclimation cue). Kept faint so it separates the sides without noise;
   the change-track / bucket colors still read over it. */
.rec-outage-row-book td { background-color: #f6f8fc; }   /* book side — cool tint */
.rec-outage-row-bank td { background-color: #f7fbf7; }   /* bank side — warm-neutral tint */

/* ================================================================================================
   Book / Bank DIVIDE (the in-app MatchUp) — the spreadsheet's left/right layout as a React view.
   ================================================================================================ */
.reconciler-divide {
    font-size: 14px;
}

.rec-divide-status {
    padding: 1.25rem 0.5rem;
    color: #667085;
}

.rec-divide-status--error {
    color: #b42318;
}

.rec-divide-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0.25rem 0 0.5rem;
}

/* Notices only since 2026-09-24 (the counts line went); with none to show it takes no room. */
.rec-divide-summary:empty {
    display: none;
    margin: 0;
}

.rec-divide-note {
    color: #8a5a12;
    background: #fdf3e2;
    border: 1px solid #f3d9a6;
    border-radius: 0.35rem;
    padding: 0.1rem 0.5rem;
    font-size: 14px;
}

/* flex-end so the labelled filters and the bare buttons/checkbox share one baseline. */
.rec-divide-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    /* Stay reachable while scrolled deep in the matchup — the filters, the search box and Run are
       the controls you want mid-list ("scrolling up to do that ... sucks", Jesse 2026-08-09). */
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 6px 8px -8px rgba(37, 13, 71, 0.35);
}

.rec-divide-toolbar .mr-individual-filter {
    margin-bottom: 0;
}

/* .btn carries a 1rem bottom margin in this theme, which under flex-end floats the buttons a row
   above the filter controls instead of sharing their baseline. */
.rec-divide-toolbar .btn {
    margin-bottom: 0;
}

/* The action buttons as ONE unit, last in the Filters box's wrapping row: beside Dates when they
   fit, together under the pickers when they don't (Jesse, 2026-10-11). Same 4px / 5px spacing as
   the box's own items. */
.rec-divide-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 4px 5px;
}

/* Opt-in columns on the bank side — the future edit surface, so they read as real cells. */
.rec-divide-extra-head {
    font-size: 14px;
    font-weight: 600;
    color: #98a2b3;
    border-bottom: 1px solid #e4e7ec;
    text-align: left;
}

.rec-divide-extra-cell {
    color: #475467;
    font-size: 14px;
}

.rec-divide-search {
    width: 15rem;
    max-width: 16rem;
    /* Explicit box — type=search inputs in this toolbar lost their border to the theme's
       flex-toolbar styling and rendered as bare text (Jesse, 2026-08-09). */
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
}

/* One-off Exclude — the "never book this" toggle beside Hold, and the muted row it produces. */
.rec-divide-exclude-btn {
    background: none;
    border: none;
    padding: 0 0.15rem;
    margin-left: 0.2rem;
    cursor: pointer;
    color: #B0B6ED;
    font-size: 0.9rem;
    line-height: 1;
    vertical-align: middle;
}

.rec-divide-exclude-btn:hover {
    color: #4F5FB7;
}

.rec-divide-exclude-btn--on {
    color: #B00020;
}

/* The per-row actions (R+ then Exclude) share one line under the Hold checkbox — two lines per
   cell, not three (Jesse, 2026-08-14). */
.rec-divide-rowacts {
    display: flex;
    align-items: center;
    gap: 0.05rem;
}

/* The buttons' standalone left-margins (from their pre-flex days) would double the gap here. */
.rec-divide-rowacts .rec-divide-mkrule-btn,
.rec-divide-rowacts .rec-divide-exclude-btn {
    margin-left: 0;
}

/* Rule-from-row — opens the Add-rule modal prefilled with the row's description + coding. Same
   quiet-until-hover treatment as Exclude beside it; text glyph, so it gets a bolder small face. */
.rec-divide-mkrule-btn {
    background: none;
    border: none;
    padding: 0 0.15rem;
    margin-left: 0.2rem;
    cursor: pointer;
    color: #B0B6ED;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    /* "R+" is one glyph-pair — the narrow Hold column wrapped the + under the R without this. */
    white-space: nowrap;
}

.rec-divide-mkrule-btn:hover {
    color: #4F5FB7;
}

/* Dim the CELLS, not the row: child opacity multiplies, so a row-level fade would also wash out
   the red --on toggle that signals the excluded state (and is the way back). (The row is a
   <tbody> of one or two <tr>s — see MatchupTable — so this reaches both lines.) */
.rec-divide-row--excluded td:not(.rec-divide-held) {
    opacity: 0.45;
}

.rec-divide-row--excluded .rec-divide-hold-box {
    opacity: 0.45;
    pointer-events: none;   /* excluded IS held — the checkbox is no longer the control */
}

/* A book-only row marked "no bank side expected": cleared for the reconciliation, still in the
   register. The book side's counterpart of the bank cell's ⃠ — quiet until hover, green once on,
   and the row reads settled (a green bar down the left) rather than excluded (faded). */
.rec-divide-row--nobank > tr > td:first-child {
    box-shadow: inset 4px 0 0 #1B7F3B;
}

/* Splits — one bank transaction booked across N offset lines, QBO-style inline rows: the +
   sits left of the Entry Type box, each added line is another <tr> of the same boxes, a trash
   can removes one. Quiet-until-hover treatment like R+/Exclude for the affordances. */
.rec-divide-account-wrap {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.rec-divide-account-wrap > :first-child {
    flex: 1 1 auto;
    /* The account picker keeps a readable width beside a split line's amount box — it was
       crushing to "S…" (Jesse, 2026-08-22). */
    min-width: 7.5rem;
}

.rec-divide-account-wrap > .rec-divide-split-amt {
    flex: 0 0 4.75rem;
    width: 4.75rem;
}

/* 🗑 under the book side's date — small, quiet until hovered; the confirm is inline. */
/* Wraps: the date column is narrow and nowrap clipped it to "deletes on Proces" (Jesse, 2026-08-30). */
.rec-divide-entry-del-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.25rem; white-space: normal; color: #b42318; }
.rec-divide-entry-del-msg { display: block; color: #475467; white-space: normal; }

/* WRAPPED extras — the opt-in columns as a labelled line under each booking line, flexing
   and wrapping so twenty dimensions fit a laptop (Jesse, 2026-08-22). */
/* WRAP layout: the opt-in columns as a labelled, wrapping line under each booking line; the
   Entry Type / Name / Account / Memo boxes carry the same label in their own cells. */
.rec-divide-row-extras > td.rec-divide-extras-cell {
    border-top: 0;
    padding: 0 0.5rem 0.4rem 0.5rem;
}
.rec-divide-row-extras > td.rec-divide-extras-pad { border-top: 0; }
/* Top-aligned: every label is one line, so the boxes' labels and controls line up across the row
   and whatever a box adds UNDER its control (the Name's "usually …" line) hangs below it. Bottom-
   aligned, that line lifted the Name dropdown above Entry Type / Account / Memo (Jesse, 2026-10-21). */
.rec-divide-extras-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.7rem;
    align-items: flex-start;
}
/* The divide is its own scroll FRAME (Jesse, 2026-08-23: "scroll WITHIN the divide frame"):
   the sticky toolbar, account bands and column headers pin to it vertically, and the frozen
   columns pin to it horizontally — the book side, the divider and the bank amount/date on the
   left, Hold and Note on the right — so only the booking boxes scroll. */
/* The frame scrolls (and freezes columns) ONLY in the column layout. Wrapped fits the viewport,
   so it never scrolls sideways — the frozen machinery would only get in the way (Jesse,
   2026-08-23: "IF wrapped, then NOT scrolling"). Both modes keep the sticky-TOP bands. */
/* Capped at the viewport MINUS what sits above and below the frame (both measured by
   MatchupTable off the document, so the cap does not depend on the frame's own height): the
   frame is the scroller and the toolbar pins to its top, so if the PAGE can scroll, the toolbar
   slides under the browser chrome — 40px of padding under the frame cost the toolbar its labels
   on a deep scroll (Jesse, 2026-09-27). With the cap the page has nothing to scroll. */
.rec-divide-frame {
    max-height: calc(100vh - var(--rec-frame-top, 1rem) - var(--rec-frame-below, 0px));
    overflow-y: auto;
}
/* ...and a FLOOR: the frame is also the clip box for the toolbar's dropdown panels (Rec
   Accounts, Additional Columns, views), which hang below their buttons at position:absolute.
   With nothing selected the divide renders no rows, the frame shrank to ~150px, and the Rec
   Accounts panel was cut off ABOVE its own Select all / Clear all row — Vyomesh (Loom
   2026-08-24) cleared every account and could not select one back. Tall enough for the
   toolbar plus the biggest panel (search + 250px option list + actions), never taller than
   the max-height above on a short viewport. */
.rec-divide-frame { min-height: min(34rem, calc(100vh - 1rem)); }
.rec-divide-frame--frozen { overflow: auto; }
/* The things at the TOP (summary, status banners, toolbar) and each account band pin to the
   frame's left edge and size to its visible width — they never ride along when the grid scrolls
   sideways (Jesse, 2026-08-23). The bands keep their sticky top; this adds the horizontal pin. */
.rec-divide-frame--frozen > .rec-divide-account {
    /* Sized to the GRID's measured width (--rec-table-w, published by the ResizeObserver), NOT
       max-content (which runs to 1,000,000px here) and NOT the frame width (which lets the band
       scroll off): the box spans the full horizontal scroll, so the sticky account band pins to
       the frame (Jesse, 2026-08-23; verified in-browser). */
    width: var(--rec-table-w, 100%);
    min-width: 100%;
}
/* The top bands stay pinned to the frame's left edge in the SCROLLING layout so they don't ride
   off with the grid; in the wrapped layout there is no sideways scroll, so they are just normal. */
.rec-divide-frame--frozen > .rec-divide-summary,
.rec-divide-frame--frozen > .rec-divide-status,
.rec-divide-frame--frozen > .rec-divide-toolbar,
.rec-divide-frame--frozen .rec-divide-account-head,
.rec-divide-frame--frozen .rec-divide-finalize-panel {
    position: sticky;
    left: 0;
    width: var(--rec-frame-w, auto);
    max-width: 100%;
    box-sizing: border-box;
}
/* WRAP layout: chips sit under amount/date; EVERY box flows in the elastic cell from the
   narrative's left edge to Hold. */
.rec-divide-table td.rec-divide-flowline {
    vertical-align: top;
    padding-top: 0.15rem;
    padding-bottom: 0.35rem;
}
.rec-divide-chips-flex--wrap { flex-wrap: wrap; align-items: flex-start; }
.rec-divide-extras-flex > .rec-divide-split-toggle,
.rec-divide-extras-flex > button { align-self: center; }
.rec-divide-extra-box--header_name { flex-basis: 12rem; }
.rec-divide-extra-box--line_account { flex-basis: 15rem; max-width: 20rem; }
.rec-divide-extra-box--entry_description { flex-basis: 11rem; }
/* Wide enough for the longest option, "BillPayment (default)" — at 9rem the native select rendered
   at its content width, overflowed the box and spilled left over the "pending edits →" chip
   (Jesse, 2026-08-28, optical/D6). The select is pinned to 100% of the box below so it can't overflow. */
.rec-divide-extra-box--entry_type { flex-basis: 10.5rem; min-width: 9.5rem; }
.rec-divide-type-select { width: 100%; max-width: 100%; }
.rec-divide-extra-box--line_amount, .rec-divide-amount-box { flex-basis: 7rem; min-width: 6rem; max-width: 9rem; }
/* An invisible spacer that keeps a split continuation line aligned under line 1. */
.rec-divide-extra-box--spacer { visibility: hidden; }
.rec-divide-frame--frozen .rec-frz {
    position: sticky;
    z-index: 2;
    /* Match the ROW's tint, not a hard white — a frozen white cell over a green matched row was
       the "colors all fucked up" (Jesse, 2026-08-23). Each section sets --rec-frz-bg below. */
    background-color: var(--rec-frz-bg, #ffffff);
}
.rec-divide-row { --rec-frz-bg: #ffffff; }
.rec-divide-row--matched { --rec-frz-bg: #edf7f0; }
.rec-divide-row--bank_only, .rec-divide-row--book_only { --rec-frz-bg: #fdf3f2; }
.rec-divide-row--waiting { --rec-frz-bg: #fff8e6; }
.rec-divide-row--offstmt { --rec-frz-bg: #e4f0ff; }
.rec-divide-row--carried { --rec-frz-bg: #ece8f8; }
.rec-divide-row--doomed { --rec-frz-bg: #fde8e8; }
.rec-divide-book-head.rec-frz { --rec-frz-bg: #f6f8fc; }
.rec-divide-bank-head.rec-frz { --rec-frz-bg: #f7fbf7; }
.rec-divide-col-head th.rec-frz { --rec-frz-bg: #ffffff; }
/* Header rows paint OVER frozen body cells (both are sticky; DOM order would let a later body
   cell cover "BANK (FEED)" while it sticks), and the account band over both. */
.rec-divide-frame--frozen .rec-divide-table thead th { z-index: 5; }
.rec-divide-frame--frozen .rec-divide-table thead .rec-frz { z-index: 6; }
.rec-divide-frame--frozen .rec-divide-account-head { z-index: 7; }
.rec-frz-bookdate { left: 0; }
.rec-frz-bookentry { left: 5rem; }
.rec-frz-bookamt { left: 21rem; }
.rec-frz-mid { left: 26.8rem; }
.rec-frz-bankamt { left: 28.3rem; }
.rec-frz-bankdate { left: 34.1rem; box-shadow: 2px 0 0 0 #e4e7ec; }
/* The BANK (FEED) band label pins just past the frozen book region so it never scrolls off. */
/* BANK (FEED): sticky-left:0 is the only offset the browser actually holds for this spanning
   header (a non-zero left drifts — verified in-browser). Pin at 0 BEHIND the opaque BOOK (GL) +
   divider headers (lower z) and pad its text past them, so "BANK (FEED)" stays put without
   covering "BOOK (GL)". */
.rec-frz-bankhead { left: 0; padding-left: 28.3rem; z-index: 4; }
.rec-frz-hold { right: var(--rec-note-w, 0rem); box-shadow: -2px 0 0 0 #e4e7ec; }
.rec-frz-note { right: 0; }
.rec-divide-extra-box {
    display: flex;
    flex-direction: column;
    flex: 0 1 11rem;
    min-width: 8.5rem;
    max-width: 16rem;
    padding: 0.1rem 0.25rem 0.15rem 0.25rem;
    border-radius: 0.25rem;
}
.rec-divide-extra-box.rec-divide-cell--wanted,
.rec-divide-extra-box.rec-divide-cell--warned,
.rec-divide-extra-box.rec-divide-cell--required { box-shadow: none; }
.rec-divide-extra-box.rec-divide-account-cell--implied { color: #98a2b3; font-style: italic; }
.rec-divide-extra-label {
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #667085;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-divide-extra-box-body { min-height: 1.6rem; }
.rec-divide-wrap-toggle { white-space: nowrap; }

/* Site-wide shortcut-leader hint (static/js/fo-shortcut-leader.js). */
.fo-leader-hint {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    padding: 0.3rem 0.6rem;
    font-size: 14px;
    font-weight: 600;
    color: #1d2939;
    background: #fff4cc;
    border: 1px solid #e0b400;
    border-radius: 0.3rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    display: none;
}
.fo-leader-hint.fo-leader-hint--on { display: block; }

/* ⌘K in a composer (static/js/composer-link.js): the URL + text popover
   under the selection. Positioned at runtime (top/left inline). */
.fo-composer-link-popover {
    position: fixed;
    z-index: 1085;
    width: 22rem;
    max-width: calc(100vw - 16px);
    padding: 0.4rem;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 0.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.fo-composer-link-input {
    width: 100%;
    padding: 0.3rem 0.45rem;
    font-size: 14px;
    border: 1px solid #d0d5dd;
    border-radius: 0.25rem;
}
/* The Text to display field under the URL (Amy, #mydesk 2026-10-04). */
.fo-composer-link-text { margin-top: 0.3rem; }
.fo-composer-link-note {
    font-size: 14px;
    color: #b42318;
}
.fo-composer-link-note:empty { display: none; }

/* Global chat modal (leader then C — chat-modal.js): the current team's AI
   Chat page in an overlay iframe, closable by Esc, the panel's ✕, or a
   backdrop click. The panel hosts the ✕ so it hugs the modal's own corner,
   and the loading line shows behind the iframe until it loads. */
.fo-chat-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 13, 71, 0.45);
}
/* Close hides via the hidden attribute — beat this rule's display:flex
   without leaning on the framework's [hidden] reset being loaded. */
.fo-chat-modal-backdrop[hidden] { display: none; }

/* Nearly the whole viewport (Jesse, 2026-09-07: "make the modal take up more of the screen").
   The old 1280×960 caps left a 2000px-wide monitor mostly backdrop; the chat page inside bounds
   its own transcript column, so the extra width is margin it manages, and the height is the
   part that matters — more of the thread on screen. The edges stay clear for the close button
   (-0.7rem) and the "open in Chat" link (-1.6rem) that sit just outside the panel. */
.fo-chat-modal-panel {
    position: relative;
    width: 96vw;
    height: 93vh;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 12px 40px rgba(37, 13, 71, 0.35);
}
.fo-chat-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0.75rem;
    position: relative;
    z-index: 1;
}
.fo-chat-modal-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b5b7f;
    font-size: 1rem;
}
.fo-chat-modal-close {
    position: absolute;
    top: -0.7rem;
    right: -0.7rem;
    z-index: 2;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    color: #fff;
    background: rgba(37, 13, 71, 0.75);
    box-shadow: 0 2px 8px rgba(37, 13, 71, 0.4);
    cursor: pointer;
}
.fo-chat-modal-close:hover { background: rgba(37, 13, 71, 0.95); }

/* The full-page escape hatch, top-left of the panel — carried over from the retired
   Reconciler chat drawer when Discuss moved onto this shared surface (2026-09-01). */
.fo-chat-modal-escape {
    position: absolute;
    top: -1.6rem;
    left: 0.2rem;
    z-index: 2;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.fo-chat-modal-escape:hover {
    color: #fff;
    text-decoration: underline;
    opacity: 1;
}

.rec-divide-readonly-chip {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.4rem;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
    background: #344054;
    border-radius: 0.2rem;
    vertical-align: middle;
}

/* A matched row flagged for deletion on the next Process reads red until then (Jesse, 2026-08-22). */
.rec-divide-row.rec-divide-row--doomed td:not(.rec-divide-held) { background-color: #fde8e8; }

/* The chips cell splits duty: engine chips at the left, the split + (and its "off by" chip)
   pushed right so it lands beside the first booking box. */
.rec-divide-chips-flex {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rec-divide-chips-flex .rec-divide-meta {
    flex: 1 1 auto;
    min-width: 0;
}

/* A chip that would not fit on the chips line takes a second, chip-sized line beneath instead of
   running over the neighbouring cells (Jesse, 2026-08-30: the #2331 strand reason covered "pending
   edits" and the Entry Type box). Only a single chip wider than the whole cell still ellipsizes —
   its full text is in the title. */
.rec-divide-meta > * {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-divide-split-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
    white-space: nowrap;
}


.rec-divide-split-add:disabled {
    opacity: 0.35;
    cursor: default;
}

/* An untied draft is going nowhere — say by how much, in the danger red, until it ties. */
.rec-divide-split-off {
    font-size: 14px;
    font-weight: 600;
}

.rec-divide-split-amt {
    flex: 0 0 6.5rem;
    text-align: right;
}

.rec-divide-row-splitline td {
    border-top: none;   /* the added lines read as part of their row, not new rows */
    padding-top: 0.1rem;
}

.rec-divide-splitline-lead {
    text-align: right;
    vertical-align: middle;
}

.rec-divide-split-trash:disabled {
    opacity: 0.25;
    cursor: default;
}

/* An entry-level value mirrored onto a lower split line (payee, memo, non-JE department):
   readable but visibly not a control — one value for the whole entry, edited on line 1. */
.rec-divide-split-mirror {
    display: block;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    padding: 0.25rem 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12rem;
}

/* Rules quick-look — a fixed right-side overlay so "do I already have a rule for this?" gets
   answered without leaving your place in the matchup (opened with R or the toolbar button). */
/* Centered, not pinned top-right (Jesse, 2026-08-11) — these are things you stop and read, and a
   panel hugging the corner reads as a toast. The backdrop below makes click-outside close it. */
.rec-rules-quicklook {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44rem;   /* wider: long rule patterns and "only on …" lines wrapped at 30rem (2026-10-09) */
    max-width: calc(100vw - 2rem);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #B0B6ED;
    border-radius: 0.5rem;
    box-shadow: 0 10px 28px rgba(37, 13, 71, 0.25);
    z-index: 1051;
}

/* Click-anywhere-outside dismissal: reaching for the ✕ in the corner is a trip the user
   shouldn't have to make (Jesse, 2026-08-11). Deliberately barely tinted — these panels are
   consulted WHILE reading the grid behind them, so blacking it out would hide the context. */
.rec-quicklook-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(37, 13, 71, 0.12);
    z-index: 1050;
}

.rec-rules-quicklook-head {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #DEE2FE;
}

.rec-rules-quicklook-body {
    overflow-y: auto;
    padding: 0.25rem;
}

.rec-rules-quicklook-row {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0.3rem;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
}

.rec-rules-quicklook-row:hover:not(:disabled) {
    background: #F5F6FE;
}

.rec-rules-quicklook-row:disabled {
    cursor: default;
}

.rec-rules-quicklook-desc {
    display: block;
    font-size: 14px;
    color: #1A1A1A;
}

.rec-rules-quicklook-target {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 0.1rem;
}

.rec-rules-broken {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 0.3rem;
    background: #fdecee;
    color: #B00020;
    font-size: 14px;
    font-weight: 600;
}

.rec-rules-quicklook-empty {
    padding: 1rem;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* No overflow clipping here — it would break the sticky account header below. */
.rec-divide-account {
    margin-bottom: 1.25rem;
    border: 1px solid #e4e7ec;
    border-radius: 0.4rem;
    /* Column layout scrolls, so the box is as wide as its grid (a sticky band can only pin
       within its containing block); wrapped fits the viewport, so it is just full width. */
    width: 100%;
}

/* Sticks to the top of the scroll so a long account never loses its name (opaque, or rows show through). */
.rec-divide-account-head {
    position: sticky;
    /* Pin BELOW the sticky toolbar, whose wrapped height varies — MatchupTable measures it and
       publishes --rec-toolbar-h on the component root. */
    top: var(--rec-toolbar-h, 0px);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.4rem 0.7rem;
    background: #eef1f6;
    border-bottom: 1px solid #d7dce5;
    border-radius: 0.35rem 0.35rem 0 0;
}

/* Chevron + name are ONE item on the band. The band is space-between, so anything added beside the
   name as a sibling re-spaces the row and walks the name into the coverage line pinned mid-band. */
.rec-divide-account-title {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    min-width: 0;
}

.rec-divide-account-name {
    font-size: 14px;   /* a section header in the card (UI standards) */
    font-weight: 600;
    color: #250d47;
}

.rec-divide-account-counts {
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rec-divide-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* The floor under the whole grid: below this the PAGE scrolls horizontally instead of the
       editable columns compressing into confetti on a laptop. Page-level X-overflow on purpose —
       an overflow-x wrapper would become the sticky band's scroll container and unstick it. */
    min-width: 64rem;
}

.rec-divide-table th,
.rec-divide-table td {
    padding: 0.28rem 0.5rem;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rec-divide-side-head th {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: #667085;
    padding-top: 0.35rem;
    padding-bottom: 0;
}

.rec-divide-book-head { text-align: left; background: #f6f8fc; }
.rec-divide-bank-head { text-align: left; background: #f7fbf7; }
/* The frozen "BANK (FEED)" cell only spans Amount/Date, so let its label overflow past them
   without clipping; the rest of the bank header is a plain green spacer. */
.rec-divide-bank-head.rec-frz-bankamt { overflow: visible; white-space: nowrap; }
.rec-divide-bank-head-rest { background: #f7fbf7; }

.rec-divide-col-head th {
    font-size: 0.72rem;
    font-weight: 600;
    color: #98a2b3;
    border-bottom: 1px solid #e4e7ec;
}

/* Sticky column headers — the thead rows pin below the account band, which pins below the toolbar,
   so mid-band you always know which column is which (Jesse, 2026-08-14). The band/side-row heights
   are measured and published beside --rec-toolbar-h (MatchupTable); the fallbacks approximate
   one-line headers. Sticky is per-cell: position on the th, and every th needs an opaque
   background or the rows scroll through it (book/bank/discuss side cells already carry theirs). */
.rec-divide-side-head th,
.rec-divide-col-head th {
    position: sticky;
    z-index: 2;
}

.rec-divide-side-head th {
    top: calc(var(--rec-toolbar-h, 0px) + var(--rec-band-h, 2.3rem) + var(--rec-finalize-h, 0px));
}

.rec-divide-side-head th.rec-divide-mid {
    background: #fff;
}

.rec-divide-col-head th {
    /* - 1px: the group row measures 24.8px against a whole-pixel --rec-side-h, and the sliver
       between the two pinned rows showed the scrolled rows as a white line under Book, Bank and
       Discuss (Christopher, 2026-11-12). The column row overlaps it instead. */
    top: calc(var(--rec-toolbar-h, 0px) + var(--rec-band-h, 2.3rem) + var(--rec-side-h, 1.5rem)
              + var(--rec-finalize-h, 0px) - 1px);
    background: #fff;
    /* border-collapse borders don't travel with sticky cells — the bottom rule rides along as an
       inset shadow instead. */
    box-shadow: inset 0 -1px 0 #e4e7ec;
}

/* Keep the Note header's own beige (from the base .rec-divide-note rule) rather than the white
   the sticky rule above would paint over it. */
.rec-divide-col-head th.rec-divide-note {
    background: #fdf3e2;
}

/* The center divider column — thin, holds the ═ on matched rows, and the match-group surface
   (pick-box / group chip) on unmatched ones. */
.rec-divide-mid {
    width: 1.4rem;
    text-align: center;
    color: #17663a;
    background: #fbfcfd;
    border-left: 1px solid #eaecf0;
    border-right: 1px solid #eaecf0;
}

/* Match-group pick-box: quiet until hovered/checked, so the mid column stays a thin seam. */
.rec-divide-group-box {
    cursor: pointer;
    opacity: 0.35;
}

.rec-divide-group-box:hover,
.rec-divide-group-box:checked,
.rec-divide-group-box:focus-visible {
    opacity: 1;
}

/* One grouped row's chip: Δ (amber) while the group doesn't net, ≈ (green) once it does.
   Click removes the row from its group. */
.rec-divide-group-chip {
    border: 1px solid #f2c94c;
    border-radius: 0.6rem;
    background: #fef7e6;
    color: #b54708;
    font-size: 12px;
    line-height: 1;
    padding: 0.1rem 0.3rem;
    cursor: pointer;
}

.rec-divide-group-chip--nets {
    border-color: #a6e6c3;
    background: #ecfdf3;
    color: #17663a;
}

/* The quieter second link beside a claim ("all statements" after the statement link, "open PDF"
   under the statement date): same link colour, smaller, so the primary reads first. */
.rec-divide-link--aside {
    font-size: 14px;
    opacity: 0.8;
}

/* A link-looking <button> (an action, not a navigation — "tie to statement"): no chrome, and none
   of .btn's uppercase, so it reads like the "open PDF" link beside it. */
.rec-divide-link-btn {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    text-transform: none;
    cursor: pointer;
}

/* A matched row a hand group still names: the members were grouped, then rebooked or matched
   1:1, and the tag outlived them. Reads as the plain "═" it replaces, just clickable — it only
   opens the group so the tag can be dissolved. */
/* The matched row's '═' as a button: inert-looking until hovered, so a page of good matches
   reads exactly as before; armed = the amber "are you sure" step; restore = the small '≠' left
   on the two rows a person unmatched. */
.rec-divide-unmatch {
    border: 1px solid transparent;
    border-radius: 0.25rem;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    padding: 0.05rem 0.2rem;
    cursor: pointer;
}

.rec-divide-unmatch:hover:not(:disabled),
.rec-divide-unmatch:focus-visible {
    border-color: #d9d9d9;
    background: #fff;
}

.rec-divide-unmatch--armed,
.rec-divide-unmatch--armed:hover:not(:disabled) {
    border-color: #d97706;
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.rec-divide-unmatch--restore {
    margin-left: 0.15rem;
    color: #92400e;
    font-size: 0.8em;
}

.rec-divide-group-chip--stale {
    border-color: #d9d9d9;
    background: transparent;
    color: #6b7280;
}

/* A chip picked into the current selection — same "I'm selected" weight as a checked box. */
/* A match that CROSSES the waiting statement's closing date: booked on or before it, cleared
   after. It is matched and it is outstanding as of that statement, both at once, and the eye
   has to be told so — Jenn read three of these as breaks and ungrouped good matches hunting for
   them (2026-09-03). The band tint says "look here"; the chip says why, and when it clears. */
/* A match that cleared after the statement / reconciled-through date: the hatch covers the WHOLE
   row, both sides and every line (Jesse, 2026-09-04: "fill the whole row on both sides"). The
   frozen cells paint their own background-color; the image layers over it. */
.rec-divide-row--crossmonth > tr > td {
    background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(91, 63, 140, .07) 6px 8px);
}

/* The REVERSE straddle — cleared by the statement, BOOKED after it. Not a timing footnote: the
   bank had it and the books did not, so the books stand above the bank at that statement by this
   row, and a rec cannot be signed off while it sits there. optical's 7/31 payroll (debited 7/30,
   booked 8/1) was matched, unshaded, and the reason July was 109,555.34 out; Jesse, 2026-09-10:
   "it'll represent a real outage and shouldn't be allowed to be there" — so it gets the break red
   at full strength, a bar down the left, and a chip in the same red, where the book-earlier
   straddle keeps its quiet lilac hatch. */
.rec-divide-row--latebooked > tr > td {
    background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(180, 35, 24, .14) 6px 8px);
}
.rec-divide-row-main--latebooked > td:first-child {
    box-shadow: inset 4px 0 0 #B42318;
}
/* Doubled selector: the base chip rule sits later in this file and would otherwise win the tie. */
.rec-divide-crossmonth-chip.rec-divide-crossmonth-chip--late {
    border-color: #B42318;
    background: #FEE4E2;
    color: #B42318;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* A read-only field value on a matched row: one line, ellipsis, full text on hover. */
.rec-divide-static {
    display: inline-block;
    max-width: 16rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    color: #667085;
}
/* The crossing chip leads the bank narrative (not the fixed-width date cell). */
.rec-divide-crossmonth-chip--lead { margin-left: 0; margin-right: 0.4rem; flex: 0 0 auto; }

/* Reconciler Settings tab: a number typed mid-sentence ("…dated up to [ 15 ] days apart"). */
.rec-settings-inline { display: block; }
.rec-settings-days {
    display: inline-block;
    width: 4.5rem;
    margin: 0 0.35rem;
    text-align: center;
    vertical-align: baseline;
    border: 1px solid #B9A3E3;
    background: #fff;
}

/* Same idea for a <select> typed mid-sentence ("Book money-in rows as a [journal entry] unless…"):
   without this Bootstrap's .form-select is a full-width block and the sentence breaks in three. */
.rec-settings-select {
    display: inline-block;
    width: auto;
    min-width: 11rem;
    margin: 0 0.35rem;
    vertical-align: baseline;
    border: 1px solid #B9A3E3;
    background-color: #fff;
}

.rec-divide-crossmonth-chip {
    display: inline-block;
    font-size: 12px;
    line-height: 1.3;
    padding: 0.02rem 0.45rem;
    margin-left: 0.35rem;
    border-radius: 8px;
    border: 1px solid #B9A3E3;
    background: #EBE4F5;
    color: #5B3F8C;
    white-space: nowrap;
    vertical-align: middle;
}

/* The group filter bar: the divide narrowed to ONE group's rows, every other filter suspended.
   Reads as a mode, so it sits across the top of the grid, not in the toolbar. */
.rec-divide-groupfilter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem;
    margin: 0.35rem 0;
    border: 1px solid #C7B8E0;
    border-left: 4px solid #5B3F8C;
    background: #F4F0FA;
    font-size: 14px;
}

.rec-divide-groupfilter strong {
    color: #5B3F8C;
}

.rec-divide-groupfilter .rec-divide-groupfilter-members {
    color: #6B7280;
}

.rec-divide-group-chip--selected {
    outline: 2px solid #444ce7;
    outline-offset: 1px;
}

/* An unactionable Group button must LOOK unactionable — bootstrap's default disabled fade was
   reading as solid pink ("why won't this let me group?"). */
.rec-divide-group-bar .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* The floating Group action bar — appears above the page chrome once rows are picked. */
.rec-divide-group-bar {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 0.6rem;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16);
    padding: 0.55rem 0.9rem;
}

.rec-divide-group-bar-summary {
    color: #2d2c2f;
    font-size: 14px;
    white-space: nowrap;
}

.rec-divide-group-bar-nets { color: #17663a; font-weight: 600; }
.rec-divide-group-bar-off { font-weight: 600; }
.rec-divide-group-bar-error { color: var(--bs-danger, #F44335); font-size: 14px; }

.rec-divide-group-tag {
    width: 11rem;
}
/* The group bar's tag box: the app's input (29px, 12px, white, lightgray border, .375rem). */
.rec-divide-group-bar .rec-divide-group-tag.form-control {
    height: 29px; font-size: 12px; padding: 0 .5rem; margin: 0;
    background: #fff; border: 1px solid lightgray !important; border-radius: .375rem;
}

.rec-divide-date { white-space: nowrap; color: #475467; }
.rec-divide-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rec-divide-held { text-align: center; color: #b54708; }
.rec-divide-desc { color: #1d2939; }

/* Column widths (table-layout: fixed reads them off the header row). The book side is a REFERENCE —
   what's already on the books — so it stays narrow; the bank side is the working surface where rows
   get named, classified and booked, so it takes roughly twice the room. */
/* Dates and amounts are FIXED-width: table-layout:fixed honors an absolute col width exactly and
   lets the percent columns absorb all the shrink. As percentages, a laptop viewport took the 6%
   date column below the nowrap date's own width, and — cell overflow being visible for the meta
   bleed — the date ran INTO the description ("8/14/202Schneps…", Gines screen share, 2026-08-14). */
/* REM widths throughout (mirror COL_REM in MatchupTable.tsx): percent columns scaled every box
   down as opt-in columns were added (Jesse, 2026-08-22). The description is the elastic one. */
.rec-w-bookdate { width: 5rem; }
.rec-w-bookentry { width: 16rem; }
.rec-w-bookamt { width: 5.8rem; }
.rec-w-mid { width: 1.5rem; }
.rec-w-bankdate { width: 5.75rem; }   /* MM/DD/YYYY with leading zeros fits (2026-10-08) */
.rec-w-bankdesc { width: 14rem; }
.rec-divide-frame:not(.rec-divide-frame--frozen) .rec-w-bankdesc { width: auto; }
.rec-w-type { width: 8rem; }
.rec-w-name { width: 11rem; }
.rec-w-account { width: 13rem; }
.rec-w-memo { width: 9rem; }
.rec-w-extra { width: 7.5rem; }
.rec-w-hold-edit { width: 3.5rem; }
.rec-w-hold-edit--wide { width: 6.5rem; }   /* every Hold icon on one line (TM-2114) */
.rec-w-note { width: 11rem; }
/* The bank description's width is computed per render (it shrinks as opt-in columns are added), so it
   is set inline in MatchupTable rather than here. */
.rec-w-bankamt { width: 5.8rem; }
.rec-w-held { width: 2rem; }
.rec-w-held--wide { width: 4rem; }

/* --- ComboBox: a searchable dropdown that reads as a dropdown when CLOSED ------------------------
   Shaped after the Accruer workflow form's select2 pickers — bordered box + caret, so the cell says
   "there are choices here" before you touch it. The old borderless input only revealed itself on
   hover, which also made a merely-hovered cell look edited. */
.rec-combo {
    position: relative;
}

.rec-combo-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.15rem 0.35rem;
    font-size: 14px;
    text-align: left;
    color: #1d2939;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 0.25rem;
    height: 1.9rem;    /* matches .rec-divide-edit-input — one height across the row's controls */
}

.rec-combo-trigger:hover:not(:disabled) {
    border-color: #98a2b3;
}

.rec-combo-trigger:focus,
.rec-combo-trigger:focus-visible {
    outline: none;
    border-color: var(--finoptimal-purple, #6b3fa0);
    box-shadow: 0 0 0 2px rgba(107, 63, 160, 0.15);
}

.rec-combo-trigger:disabled {
    background: #f9fafb;
    color: #98a2b3;
}

.rec-combo-value {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rec-combo-value--empty {
    color: #98a2b3;
}

.rec-combo-caret {
    flex: 0 0 auto;
    color: #667085;
    font-size: 0.7rem;
}

/* Above the sticky account header (z-index 3) and the submit bar (4), or the panel opens behind
   them — the divide is a long scroll and both sit over the rows. */
.rec-combo-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 2px);
    left: 0;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 0.3rem;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.14);
}

.rec-combo-search {
    margin: 0.3rem;
    width: calc(100% - 0.6rem);
    font-size: 14px;
}

.rec-combo-list {
    max-height: 15rem;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rec-combo-option {
    padding: 0.2rem 0.5rem;
    font-size: 14px;
    color: #1d2939;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* One highlight, driven by the keyboard cursor — mouseenter moves the cursor rather than adding a
   second hover style, so pointer and keyboard can't disagree about what Enter would pick. */
.rec-combo-option--cursor {
    background: #2f6fed;
    color: #ffffff;
}

.rec-combo-option--current {
    font-weight: 600;
}

/* The "Currently" row shows the value IN FULL — it exists because the trigger truncates and, being
   a button, can't be text-selected. Wrapping (not ellipsis) is the point. It carries the panel's
   current-value highlight (the keyboard cursor starts on NOTHING, so an open panel leads with what
   is already set instead of painting the first list option); clicking it copies the value. */
.rec-combo-option--copy {
    white-space: normal;
    word-break: break-word;
    color: #475467;
    background: #eef4ff;
    font-weight: 600;
    border-bottom: 1px solid #eaecf0;
}

.rec-combo-copy-value {
    color: #1d2939;
}

/* The revert row — visible only while a saved edit overrides the engine's suggestion. Amber to
   rhyme with the "changed" treatment it undoes. */
.rec-combo-option--revert {
    white-space: normal;
    word-break: break-word;
    color: #b54708;
    border-bottom: 1px solid #eaecf0;
}

/* The "＋ Create «typed»" row: the brand purple so it reads as an action, not a list entry. */
.rec-combo-option--create {
    white-space: normal;
    word-break: break-word;
    color: #4f46e5;
    font-weight: 600;
    border-bottom: 1px solid #eaecf0;
}

/* Why "Create … in QBO now" failed, under the row that asked. */
.rec-combo-create-error {
    color: #b91c1c;
    font-size: 14px;
    font-weight: 400;
    margin-top: 0.15rem;
}

.rec-combo-empty,
.rec-combo-more {
    padding: 0.3rem 0.5rem;
    font-size: 14px;
    color: #667085;
}

.rec-combo-more {
    border-top: 1px solid #eaecf0;
}

/* --- Editable bank-side cells (account / memo / optional columns / Hold) -------------------------
   The bank side is the working surface, so its inputs sit flush in the cell rather than looking like
   a form dropped into a table — borderless until you touch them, so a screen of rows reads as a grid
   and not as fifty text boxes. */
/* Bordered at REST, not only on hover. A borderless cell is invisible as a control — you can't tell
   Memo / Line Description / Comment are fillable until you happen to mouse over them, and hovering
   one then looked like it had been edited. Matches .rec-combo-trigger so a row's controls read as
   one family. */
.rec-divide-edit-input {
    font-size: 14px;
    padding: 0.15rem 0.35rem;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 0.25rem;
    /* ONE height for the whole row family (text inputs, the native entry-type select, and the
       combo triggers below) — each otherwise derives its own from different UA/Bootstrap box
       math and the row reads ragged. */
    height: 1.9rem;
}

.rec-divide-edit-input:hover:not(:disabled) {
    border-color: #98a2b3;
}


/* Per-account bank-side source picker on the Reconcilable Accounts tab. Sits right of the account
   name, narrow — it's a rarely-touched exception control, not a primary one. */
.rec-accounts-source {
    width: auto;
    min-width: 12rem;
    margin-left: auto;
    font-size: 14px;
    padding: 0.1rem 1.4rem 0.1rem 0.4rem;
}

/* "will book" — the consequence chip. Green because it is the one state on this grid that ends in a
   posting to QBO, and a reviewer scanning for what a run will DO should find them without reading. */
.rec-divide-willbook {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    border-radius: 0.7rem;
    font-size: 14px;
    font-weight: 600;
    color: #05603a;
    background: #d1fadf;
    border: 1px solid #a6f4c5;
}

/* CHANGED THIS SESSION. A reviewer works a hundred rows and needs to see their own footprints — an
   edit that happens to match the engine's proposal is otherwise invisible the moment focus leaves the
   cell, and there is no way to tell "I set this" from "it came that way".

   AMBER, not the brand purple: purple reads as "focused/active" everywhere else in this grid. Amber is
   the one hue on this surface that means "changed, look at me" without also meaning "wrong" (red) or
   "settled" (green). */
/* MODIFIED THIS SESSION — deliberately BLUE, not amber.
   Amber/orange is the warning hue everywhere else in this app (the `no account` flag, the
   bank_rec_behind chips), so an amber fill on a perfectly good account read as "something is wrong
   with this value" rather than "you changed this" (Jesse, 2026-07-31). Blue carries no verdict: it
   is the same family as the focus ring and the dropdown's highlight, i.e. "active/yours". The left
   accent bar does the actual signalling so the fill can stay pale enough to read normally. */
.rec-divide-edit-input--changed,
.rec-combo-trigger--changed {
    background: #eff4ff;
    border-color: #84adff;
    /* The left accent is an inset shadow, NOT a wider border: a border-left of 3px grows the box
       2px every time the class toggles, so each save made the whole row wiggle. */
    box-shadow: inset 3px 0 0 #2f6fed;
    color: #1d2939;
    font-weight: 600;
}


/* NOVEL — a value QuickBooks doesn't have yet: booking CREATES it (names) or refuses it
   (chart-checked fields). Its own color (orange, as IRec used) because "new to QBO" and
   "edited this session" are different facts, and the blue was wearing both. Declared after
   --changed so a value that is both reads novel, which is the fact that costs money. */
.rec-combo-trigger--novel {
    background: #fff6ec;
    border-color: #f0a04b;
    box-shadow: inset 3px 0 0 #e07b00;
    color: #7a3f00;
}

.rec-combo-trigger--novel:focus {
    background: #ffffff;
    border-color: #e07b00;
}

/* The row carries a spine so a change is findable while scrolling, not only when you land on it.
   The FIRST line's first cell only — it spans both lines (rowSpan), so the spine already runs the
   row's full height; the second line's first cell is the chips cell mid-row. */
.rec-divide-row--changed > tr:first-child > td:first-child {
    box-shadow: inset 4px 0 0 #2f6fed;
}

.rec-divide-account-cell,
.rec-divide-memo-cell {
    font-size: 14px;
    color: #475467;
}

/* Hold checkboxes — per row, and one master in each account header. */
.rec-divide-account-hold {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.75rem;
    font-size: 14px;
    color: #475467;
    white-space: nowrap;
    cursor: pointer;
}

/* Hold-box base sizing/focus lives with the red-hand rules further down (one block, one look). */

/* Save-view visibility (Private/Team) — one compact row in the save panel. */
.rec-divide-saveview-visibility {
    display: flex;
    gap: 0.9rem;
    margin: 0.35rem 0 0.1rem;
    font-size: 14px;
    color: #475467;
}

.rec-divide-saveview-vis-option {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    margin-bottom: 0;
}

/* The account band's one info line: "feed source: X · reconciled through … · activity through …"
   — absolutely pinned at the MEASURED left edge of the Bank (feed) column beneath (the inline
   left is a runtime measurement; the one place a dynamic inline style is the right tool). Right-
   bounded so it ELLIPSIZES on laptop widths instead of running under the counts. */
.rec-divide-feed-source {
    white-space: nowrap;
    color: #667085;
}

/* The background match-only refresh, said quietly in the summary strip — it never locks the grid. */
.rec-divide-refreshing {
    color: #667085;
    font-size: 14px;
    font-style: italic;
    white-space: nowrap;
}

/* --- Row notes: the divide's write surface ------------------------------------------------------
   A third zone after Book and Bank — what the REVIEWER wants done, as opposed to what either side
   says. Neutral (not red/green) so it reads as an input rather than a verdict. */
.rec-divide-discuss-head { text-align: left; background: #faf7fd; }

.rec-divide-note { color: #475467; }

.rec-divide-note-input {
    font-size: 14px;
    padding: 0.15rem 0.4rem;
    height: 1.9rem;    /* same height as the edit family — the note sits in the same row */
}

/* A typed-in note has to stay legible against the row tint it sits on — but the pending-note
   tint (--changed) owns the colours once it applies: this rule fired under the SAME condition at
   higher specificity, which silently overrode the blue and left "pending notes light up" half-
   landed (1811 round-4 finding 1). */
.rec-divide-note-input:not(:placeholder-shown):not(.rec-divide-edit-input--changed) {
    background: #ffffff;
    border-color: var(--finoptimal-purple, #6b3fa0);
}

/* Sticky to the bottom of the viewport: the grid is long, and a submit that scrolls away means
   typing forty notes and then hunting for the button. Appears only once a note exists. */
.rec-divide-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: #ffffff;
    border: 1px solid #d7dce5;
    border-radius: 0.4rem;
    box-shadow: 0 -2px 8px rgba(16, 24, 40, 0.08);
}

.rec-divide-submit-bar .btn {
    margin-bottom: 0;
}

.rec-divide-submit-count {
    margin-right: auto;
    color: #475467;
    font-size: 12px;
}

.rec-divide-submit-warn {
    color: #b54708;
    font-size: 14px;
}

/* Bank memos are paragraph-length ACH blobs. The narrative gets ONE line of its own, running from
   the date column to the Hold column (the cell spans the booking columns; the booking itself sits on
   the row's second line) — the whole blob is readable at a glance and ellipsized past the edge, full
   text on hover and one click away on the copy button (Jesse, 2026-08-16). */
.rec-divide-desc-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* One-click copy of the FULL bank narrative (the clamp makes it un-selectable in place). Quiet until
   the row is hovered — via opacity, NOT visibility/display, so it stays in the tab order for
   keyboard users (revealed on :focus-visible) and clickable on touch (no hover state). */
.rec-divide-copy {
    border: none;
    background: transparent;
    color: #98a2b3;
    font-size: 14px;
    line-height: 1;
    padding: 0 0.2rem;
    cursor: pointer;
    opacity: 0;
}
.rec-divide-row:hover .rec-divide-copy,
.rec-divide-copy:focus-visible {
    opacity: 1;
}
.rec-divide-copy:hover { color: #1a4b8c; }

/* The foot of the mount window: what is on screen out of what matched, and the way to have it all.
   Quiet and centred like a status line, not a control bar — it is the end of the register, and most
   of the time the reader scrolls straight past it into more rows. */
.rec-divide-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 0 1.25rem;
    color: #667085;
    font-size: 14px;
}

.rec-divide-more-btn {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #1a4b8c;
    font-size: 0.75rem;
}

.rec-divide-more-btn:hover {
    border-color: #1a4b8c;
    background: #f5f8fd;
}

/* The zip control on an account band: a bare chevron ahead of the name, sized to the name's own
   line so adding it moves nothing. Quiet until the band is hovered or it has focus, like the row's
   copy control — it is navigation, not a thing to read. */
.rec-divide-zip {
    border: none;
    background: transparent;
    color: #667085;
    font-size: 14px;
    line-height: 1;
    padding: 0 0.3rem 0 0;
    cursor: pointer;
}
.rec-divide-zip:hover { color: #1a4b8c; }
.rec-divide-zip:focus-visible { outline: 2px solid #1a4b8c; outline-offset: 2px; }

/* What a shut card shows where its grid was. Full width and clickable, so the way back is the whole
   line rather than only the chevron on the band above it. */
.rec-divide-zipped {
    display: block;
    width: 100%;
    border: none;
    border-top: 1px solid #eaecf0;
    background: repeating-linear-gradient(45deg, #fcfcfd, #fcfcfd 6px, #f7f8fa 6px, #f7f8fa 12px);
    color: #667085;
    font-size: 14px;
    text-align: center;
    padding: 0.6rem 0;
    cursor: pointer;
}
.rec-divide-zipped:hover { color: #1a4b8c; }
/* An OPEN band with nothing to show — same quiet line, not a control. */
.rec-divide-zipped--empty { cursor: default; }
.rec-divide-zipped--empty:hover { color: #667085; }

/* A parent account and its sub-accounts reconcile together, so their cards nest: the children
   sit tucked under the parent, a step in and a shade lighter, joined to it by a left rule — enough
   to read as one family when every account is on the page, not enough to shout (Jesse,
   2026-09-27: "subtle but help reduce clutter"). The fold chip on the parent's band puts them
   away. Flat DOM on purpose: the frozen layout sizes and pins cards as DIRECT children of the
   frame, so a wrapper element would break the sticky bands. */
.rec-divide-account--parent { margin-bottom: 0.45rem; }
.rec-divide-account--sub {
    margin-left: 1.5rem;
    margin-bottom: 0.45rem;
    border-left: 3px solid #d7dce5;
}
.rec-divide-account--sub + .rec-divide-account:not(.rec-divide-account--sub) { margin-top: 1.25rem; }
.rec-divide-account--sub > .rec-divide-account-head { background: #f4f6fa; }
/* Every band is at least as tall as the measured one: the sticky side-heads pin at --rec-band-h,
   measured off the FIRST band, and a sub-account band — no Reconcile… button, so a pixel shorter
   — left a slit above its side-heads that the rows scrolled through. The chip below sits inside
   the text line for the same reason. */
.rec-divide-account-head { min-height: var(--rec-band-h, auto); box-sizing: border-box; }
.rec-divide-frame--frozen > .rec-divide-account--sub {
    width: calc(var(--rec-table-w, 100%) - 1.5rem);
    min-width: calc(100% - 1.5rem);
}
.rec-divide-frame--frozen .rec-divide-account--sub .rec-divide-account-head {
    width: calc(var(--rec-frame-w, auto) - 1.5rem);
}
.rec-divide-family-chip {
    margin-left: 0.5rem;
    padding: 0 0.45rem;
    border: 1px solid #d7dce5;
    border-radius: 999px;
    background: #fff;
    color: #667085;
    font-size: 12px;
    line-height: 1.05rem;
    white-space: nowrap;
    cursor: pointer;
}
.rec-divide-family-chip:hover { color: #1a4b8c; border-color: #1a4b8c; }
.rec-divide-family-chip:focus-visible { outline: 2px solid #1a4b8c; outline-offset: 2px; }

/* The bank row's fo_act_id, at the tail of the same line as the narrative. Quiet (mid-grey,
   0.7rem, monospace so hex reads as hex) and `flex: 0 0 auto` — the description beside it is the
   elastic box, so printing the id costs the row width, never a line of height. `user-select: all`
   makes one click select the whole id, the way the book side's entry label already behaves. */
.rec-divide-foact {
    flex: 0 0 auto;
    color: #98a2b3;
    font-size: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: nowrap;
    user-select: all;
    letter-spacing: -0.01em;
}

/* The chips (readiness bucket, will book, strand, rule-saved …) live on the row's SECOND line,
   in a cell spanning Amount + Date + Description — to the left of where the narrative runs above
   them and under the amount/date (Jesse, 2026-08-16). Nowrap chips; the cell doesn't clip, so a
   crowded line bleeds toward the booking columns rather than growing the row. NEVER display:flex
   on the td itself: a flexed td stops being a table cell, which deformed the whole fixed layout
   when it shipped (2026-08-14). */
.rec-divide-meta {
    display: flex;
    flex-wrap: wrap;            /* overflowing chips drop to a chip-sized row beneath (2026-08-30) */
    align-items: baseline;
    gap: 0.15rem 0.3rem;
}

/* No chip squeezes or wraps internally under nowrap — each keeps its natural width and the LINE
   overflows instead (that's the bleed). Only the rule tag's own ellipsis gives (via its cap). */
.rec-divide-meta > * {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Except the strand chip and the rule-saved chip: each is a sentence a person must READ, and
   ellipsized they said "more than one possible cou…" and "rule #6 saved ✓ — applies n…" with the
   rest only on hover (Amy and Theresa, 2026-10-15 and 10-21). Each wraps inside its own chip. */
.rec-divide-meta > .rec-divide-strand,
.rec-divide-meta > .rec-divide-rulechip-btn--saved {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.rec-divide-meta > .rec-divide-rulechip-btn--saved { text-align: left; }

/* The chips cell rides the second line's booking controls; the split's first line loses its
   bottom rule so the two lines read as one row. Cells that span both lines (book side, mid,
   Hold, Note) keep the rule — they ARE the row's bottom. */
.rec-divide-row-main--split > td:not([rowspan]) {
    border-bottom: 0;
    padding-bottom: 0.1rem;
}

.rec-divide-row-sub > td {
    padding-top: 0.1rem;
}

/* Chips centre on the booking controls beside them (`.rec-divide-table td` sets top, so the
   selector has to outrank it). */
.rec-divide-table td.rec-divide-chips {
    vertical-align: middle;
}

/* ONE chip geometry on the meta line — the four chip families grew four different heights and
   radii, which reads as clutter when they finally share a line (Jesse, 2026-08-14). Scoped to the
   divide's meta so the Outages grid keeps its own look; each family keeps its colors. */
.rec-divide-meta .rec-outage-bucket,
.rec-divide-meta .rec-divide-willbook,
.rec-divide-meta .rec-divide-heldedit,
.rec-divide-meta .rec-outage-rulechip {
    font-size: 12px;
    line-height: 1.4;
    padding: 0.05rem 0.5rem;
    border-radius: 10px;
}

/* WHO booked it: the entry_magic family (Booker, Reconciler, Gopher…) as a quiet chip under the
   book entry, beside the CLASS tag — so the book side says which product put an entry there, not
   just that it is there (Jesse, 2026-09-03). Human-booked entries carry no chip at all. */
.rec-divide-magic {
    display: inline-block;
    font-size: 12px;
    line-height: 1.3;
    padding: 0.02rem 0.4rem;
    border-radius: 8px;
    border: 1px solid #C7B8E0;
    color: #5B3F8C;
    background: #F4F0FA;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* WHAT it is: the entry's QBO kind (Payment, Deposit, Expense, Check…) as the same quiet chip
   shape in neutral grey, ahead of the WHO chip — a received payment used to be told apart from
   a deposit only by its url (Jesse, 2026-09-24). */
.rec-divide-kind {
    display: inline-block;
    font-size: 12px;
    line-height: 1.3;
    padding: 0.02rem 0.4rem;
    border-radius: 8px;
    border: 1px solid #CFD4DC;
    color: #4B5563;
    background: #F3F4F6;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Chipless rows (every conditional inside rendered null) must not pay for an empty flex box. */
.rec-divide-meta:empty {
    display: none;
    margin: 0;
}

/* The one-line description and its copy button share the line — the ellipsis box is block-level,
   so without this the button wrapped below the text and every row carried an extra line. */
.rec-divide-desc-line {
    display: flex;
    align-items: flex-start;
    gap: 0.15rem;
}

.rec-divide-desc-line .rec-divide-desc-text {
    flex: 1;
    min-width: 0;
}
.rec-divide-empty { background: repeating-linear-gradient(45deg, #fcfcfd, #fcfcfd 6px, #f7f8fa 6px, #f7f8fa 12px); }

.rec-divide-link { color: #1a4b8c; text-decoration: none; }
.rec-divide-link:hover { text-decoration: none; }

/* The proposed booking (Name → Account) under a bank description — muted, beside the bucket chip. */
.rec-divide-proposal {
    color: #667085;
    font-size: 14px;
}

/* The entry's non-cash account under its header name — the "what it hit" line. */
.rec-divide-account-line {
    display: block;
    color: #475467;
    font-size: 14px;
    margin-top: 0.1rem;
}

/* The entry label (QBO's doc number) beside the headline — the searchable identifier.
   user-select: all so a double-click grabs EXACTLY the identifier: the browser's word
   selection otherwise swept up the adjacent header-name link with it (R8 Loom 2:17). */
.rec-divide-entry-label {
    color: #667085;
    font-size: 14px;
    margin-left: 0.35rem;
    white-space: nowrap;
    user-select: all;
}

/* Hold, as a STOP sign rather than an approval: a checked blue box read as "go ahead and book"
   (R8 Loom 3:32). Held = red hand; un-held = empty box the hand can return to. */
.rec-divide-hold-box {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    border: 1px solid #d0d5dd;
    border-radius: 0.25rem;
    background: #fff;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

.rec-divide-hold-box:checked {
    border-color: #f04438;
    background: #fef3f2;
}

.rec-divide-hold-box:checked::before {
    content: "\f256";
    /* v4 face ("FontAwesome"), NOT "Font Awesome 6 Free": base.html loads FA as the SVG+JS build,
       which installs no webfonts — the only @font-face on the page is v4-font-face.min.css. The
       FA6 name only worked on machines with FA installed as a system font; everyone else got a
       missing-glyph box (1813 round-1 finding 2). \f256 is the same open hand in v4. */
    font-family: "FontAwesome";
    color: #b42318;
    font-size: 0.7rem;
}

.rec-divide-hold-box:indeterminate {
    border-color: #f04438;
    background: #fef3f2;
}

.rec-divide-hold-box:indeterminate::before {
    content: "−";
    color: #b42318;
    font-weight: 700;
}

.rec-divide-hold-box:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* BOTH selectors on purpose: appearance:none strips the native focus treatment entirely, and
   Safari doesn't reliably match :focus-visible on click-focused checkboxes — without the plain
   :focus a clicked Hold box gives no evidence it took focus at all. */
.rec-divide-hold-box:focus,
.rec-divide-hold-box:focus-visible {
    outline: 2px solid #98a2b3;
    outline-offset: 1px;
}

/* A rule chip that opens the inline rule editor — the chip look on a real button. flex-shrink 0 so
   the one-line .rec-divide-rule row ellipsizes the TAG beside it, never the chip itself. */
.rec-divide-rulechip-btn {
    border: 0;
    cursor: pointer;
    line-height: inherit;
    font-family: inherit;
    flex: 0 0 auto;
    white-space: nowrap;
}

.rec-divide-rulechip-btn:hover {
    background: #e4e7ec;
    color: #1d2939;
}

/* Opt-in extra columns (Class, Department, …) ride as compact chips under their side's description. */
.rec-divide-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin-top: 0.2rem;
}

.rec-divide-extra {
    font-size: 14px;
    color: #475467;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #e4e7ec;
    border-radius: 0.25rem;
    padding: 0 0.3rem;
}

.rec-divide-extra-label {
    color: #98a2b3;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.03em;
}

/* Rule provenance carried over from the Outages grid — ONE line under the bank description: chip,
   then the tag ellipsized beside it. The tag runs to sentence length ([manual] reasons especially),
   and letting it wrap made short transactions several lines taller than their neighbours; the full
   text stays on the line's hover title, and the chip opens the rule editor. */
.rec-divide-rule {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    min-width: 0;
    color: #667085;
    font-size: 14px;
    margin-top: 0.15rem;
}

.rec-divide-rule-tag {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The plain-label chip variant (no edit endpoints) must not shrink either — only the tag gives. */
.rec-divide-rule > .rec-outage-rulechip {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* On the divide's chips line (unbooked rows) the rule rides BESIDE the readiness chips as the
   chip ALONE (MatchupTable ruleChip(row, false)) — the tag used to bleed past the cell toward the
   booking columns (Jesse, 2026-08-14) until the Type / Name / Account editors moved onto that same
   line and the text ran over them (Vyomesh, 2026-08-26); the tag is the hover now. On the BOOK
   side (booked rows) it is a line of its own under the entry's account, ellipsized to that column. */
.rec-divide-meta .rec-divide-rule {
    flex: 0 0 auto;
    margin-top: 0;
}

/* A row inside QBO's closed period — no action is possible there without reopening the books. */
.rec-divide-locked {
    font-size: 14px;
    color: #475467;
    background: #f2f4f7;
    border: 1px solid #d0d5dd;
    border-radius: 0.7rem;
    padding: 0 0.4rem;
    white-space: nowrap;
}

.rec-divide-note--locked {
    color: #475467;
    background: #f2f4f7;
    border-color: #d0d5dd;
}

/* "no account" — the bucket grades the NAME, so an unbookable row has to say so on its own. */
.rec-divide-noaccount {
    font-size: 14px;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fda29b;
    border-radius: 0.7rem;
    padding: 0 0.4rem;
    white-space: nowrap;
}

.rec-divide-view-picker {
    width: auto;
    max-width: 12rem;
}

/* Reconcilable Accounts (its own tab) — a two-column checklist of the client's Bank/CC chart. */
.rec-accounts-list {
    columns: 2;
    margin-top: 0.5rem;
}

.rec-accounts-reason {
    color: #98a2b3;
    font-size: 14px;
    font-style: italic;
}

.rec-divide-account-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 14px;
    margin-bottom: 0.15rem;
    break-inside: avoid;
}

.rec-divide-account-off {
    color: #98a2b3;
    text-decoration: line-through;
}

/* The QBO account type beside an account's name on Reconcilable Accounts. A footnote, not a
   column: muted, a notch smaller than the name, and never wrapped, so the list still reads as a
   checklist of accounts. */
/* Reconcilable Accounts: the row a tick just moved between the two lists, and the line that says so
   (Amy, 2026-09-28 — a checked set-aside row jumped out of sight with no sign it had worked). */
.rec-accounts-moved-note {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: #ecfdf3;
    color: #067647;
    font-size: 14px;
}

.rec-accounts-row--moved {
    animation: rec-accounts-row-moved 2.4s ease-out;
    border-radius: 4px;
}

@keyframes rec-accounts-row-moved {
    0%, 40% { background: #d1fadf; }
    100% { background: transparent; }
}

.rec-accounts-type {
    color: #98a2b3;
    font-size: 14px;
    white-space: nowrap;
}

.rec-divide-note--warn {
    color: #b42318;
    background: #fef3f2;
    border-color: #fda29b;
}

.rec-divide-dates {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rec-divide-date-mode {
    width: auto;
}

.rec-divide-date-input {
    width: 9rem;
}

.rec-divide-dates-dash {
    color: #98a2b3;
}

.rec-divide-toggle {
    margin: 0;
    font-size: 14px;
    color: #344054;
    white-space: nowrap;
}

/* Section tints: OUTAGES are the work, so both unmatched sides read lightly red; matched pairs are
   settled and recede into green. */
.rec-divide-row--matched td { background-color: #edf7f0; }

/* ⏭ "not on this statement" — DEFERRED (the excluded statement is still open) reads amber;
   CARRIED (that period is reconciled, the item belongs to the next statement) reads slate, so
   an item from an earlier period looks like one (Jesse, 2026-08-22). Outranks the section tint. */
.rec-divide-row.rec-divide-row--offstmt td:not(.rec-divide-held) { background-color: #e4f0ff; }
.rec-divide-row.rec-divide-row--carried td:not(.rec-divide-held) { background-color: #ece8f8; }

/* The leader-armed hint: one-shot, bottom-right, out of the way (Jesse, 2026-08-22). */
.rec-divide-leader-hint {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    padding: 0.3rem 0.6rem;
    font-size: 14px;
    font-weight: 600;
    color: #1d2939;
    background: #fff4cc;
    border: 1px solid #e0b400;
    border-radius: 0.3rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* A real dropdown, not an underline: the finalize panel's statement picker (Jesse, 2026-08-22)
   and Closer's Client questions filter (2026-10-03). The caret sits inside the box, clear of the text. */
.rec-divide-stmt-select.form-select,
.fo-cq-filter.form-select {
    display: inline-block;
    width: auto;
    min-width: 14rem;
    padding: 0.15rem 1.75rem 0.15rem 0.5rem;
    font-size: 14px;
    color: #1d2939;
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 0.25rem;
    box-shadow: none;
    background-position: right 0.5rem center;
}

.rec-divide-stmt-select.form-select:hover,
.fo-cq-filter.form-select:hover { border-color: #98a2b3; }
.rec-divide-stmt-select.form-select:focus,
.fo-cq-filter.form-select:focus { border-color: #2f6fed; box-shadow: none; }
.rec-divide-row--bank_only td { background-color: #fdf3f2; }
.rec-divide-row--book_only td { background-color: #fdf3f2; }

/* WILL PROCESS: the next run writes this row (create or in-place update) — the bank side wears
   the PROCESS button's orange family, so "what happens when I click that?" is answerable by
   color alone. Deliberately peach-orange, NOT the amber #fff8e6 the pending/waiting rows use.
   Declared AFTER the section tints so it wins at equal specificity; the striped empty book
   cell and the mid seam keep their own paint (the promise is about the bank side). */
.rec-divide-row--will-process td:not(.rec-divide-empty):not(.rec-divide-mid) {
    background-color: #ffe8d2;
}
.rec-divide-row--bank_only .rec-divide-empty,
.rec-divide-row--book_only .rec-divide-empty {
    background: repeating-linear-gradient(45deg, #fdf3f2, #fdf3f2 6px, #fbe9e7 6px, #fbe9e7 12px);
}
/* WAITING, not missing: a book-only row whose bank side is known to be coming — the bank still
   marks it pending, or the account reads downloaded activity and the file hasn't reached the
   entry's date yet. Amber across the WHOLE row (book side included), so it stops reading as an
   outage red you have to remember the story behind (Jesse, 2026-08-16). */
.rec-divide-row--waiting td { background-color: #fff8e6; }
.rec-divide-row td { border-bottom: 1px solid #dee2e6; }

/* ---------------------------------------------------------------------------
   Check catalog — "What Closer checks on these books" (teams/overview.html,
   Company SOPs pane). A read-only list of the deterministic checks the
   continuous scan runs, with the ones a team's SOPs switched off shown greyed
   rather than hidden: the point of the surface is that a user can see what is
   NOT happening, which is exactly what a hidden row would conceal.
   --------------------------------------------------------------------------- */
.fo-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fo-check-item {
  padding: .7rem 0;
  border-top: 1px solid #eceef1;
}
.fo-check-item:first-child {
  border-top: 0;
}
.fo-check-head {
  display: flex;
  align-items: center;   /* baseline left the status icon riding off the title */
  gap: .35rem;
  flex-wrap: wrap;
}
.fo-check-label {
  font-weight: 600;
  font-size: .9rem;
  color: #2d2c2f;
}
.fo-check-on-icon {
  color: #1f9d55;
}
.fo-check-off-icon {
  color: #9aa1ab;
}
/* Phase chip: which run picks this check up. Deliberately quiet — it matters
   when you're reasoning about timing, not when you're skimming the list. */
.fo-check-phase {
  margin-left: auto;
  padding: .05rem .45rem;
  border-radius: 999px;
  background: #f1f0f5;
  color: #495057;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
.fo-check-desc {
  margin: .2rem 0 0 1.35rem;   /* clears the status icon */
  font-size: 14px;
  line-height: 1.45;
  color: #2d2c2f;
}
.fo-check-reason {
  margin: .3rem 0 0 1.35rem;
  font-size: 14px;
  color: #dc3545;      /* Bootstrap danger red: why a check is off / won't run (the theme's text-danger is Material's orange-red) */
  font-weight: 400;    /* a <p>: not the theme's 300 */
}
/* An off check keeps its description readable — it's the thing the user needs
   to understand in order to decide whether switching it off was right. */
.fo-check-item-off .fo-check-label {
  color: #6b7280;
}
/* Collapsed-by-default wrapper for the check list. It sits ABOVE the SOP doc,
   which is viewport-filling, so closed it must cost one line — the summary row
   states the count and nothing else. */
.fo-check-card > summary.fo-check-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  cursor: pointer;
  list-style: none;          /* hide the default disclosure triangle... */
}
.fo-check-card > summary.fo-check-summary::-webkit-details-marker {
  display: none;             /* ...in WebKit too */
}
/* Our own marker, so the affordance survives hiding the native one. */
.fo-check-card > summary.fo-check-summary::before {
  content: "\25B8";          /* ▸ */
  margin-right: .5rem;
  color: #6b7280;
  font-size: .8rem;
}
.fo-check-card[open] > summary.fo-check-summary::before {
  content: "\25BE";          /* ▾ */
}
.fo-check-summary-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #250d47;
}
.fo-check-summary-count {
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}
/* Inline exclusion reason on the Reconcilable Accounts tab. Replaces a window.prompt that blocked
   every toggle — the reason is now optional, editable any time, and visible for every excluded
   account at a glance instead of hidden behind a re-toggle. */
.rec-accounts-reason-input {
    flex: 1 1 18rem;
    max-width: 28rem;
    margin-left: 0.75rem;
    font-size: 14px;
    padding: 0.1rem 0.4rem;
}

/* "Your change hasn't been applied yet" — informational blue, matching the modified-cell hue, so it
   reads as a state of play rather than as the warn/locked notes beside it. */
.rec-divide-note--pending {
    color: #175cd3;
    background: #eff4ff;
    border: 1px solid #b2ccff;
}

/* The payee editor inside the bank row's meta line. Narrower than a full cell — it sits beside the
   readiness chip, not in a column of its own — and it must not push the description text around. */

/* Name (payee) column — same control geometry as Account, so the two dropdowns sit on one line. */
.rec-divide-name-cell {
  vertical-align: middle;
}

/* The "no account" chip in the Hold cell: it sits above the locked checkbox and must not widen the
   narrowest column in the table. */

/* Why a row can't be un-held, said on the columns responsible rather than in a chip — the Hold
   column is the narrowest in the table and a chip there does not survive a laptop screen.
   REQUIRED (red): no account, so the row cannot be booked at all.
   WANTED (orange): no payee, so it would book with an empty Payee in QBO.
   WARNED (louder orange): no Class on a company whose Settings say "Require a Class" — QuickBooks
   would warn on this booking; it still books (Jesse + Vyomesh, 2026-08-26). Never red: red means
   the row CANNOT book, and this one can. */
.rec-divide-cell--required { background: rgba(220, 53, 69, 0.10); box-shadow: inset 2px 0 0 #dc3545; }
.rec-divide-cell--wanted   { background: rgba(253, 126, 20, 0.10); box-shadow: inset 2px 0 0 #fd7e14; }
.rec-divide-cell--warned   { background: rgba(253, 126, 20, 0.24); box-shadow: inset 4px 0 0 #fd7e14; }

/* A Payment row's Account is IMPLIED (A/R, applied to the customer's open invoices at book time) —
   the cell says so in the muted voice of a fact rather than offering a picker. */
.rec-divide-account-cell--implied {
    color: #667085;
    font-style: italic;
    padding-top: 0.55rem;
}

/* The application preview can run long ("#8776 600.00 · #8845 400.00 of 600.00 (partial)") — up
   to two lines (the split/underpay words are the point), then ellipsis; the whole story on hover. */
.rec-divide-payment-plan {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

.rec-divide-account-cell--implied:has(.rec-divide-payment-plan) {
    padding-top: 0.35rem;
}

/* The divide LOCKS while a reconcile runs. The banner carries the engine's live phase
   ("Matching · 45s elapsed") so a long run reads as working rather than hung; the grid dims and
   stops taking clicks so a mid-run edit isn't something the user has to worry survived. */
.rec-divide-runlock {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  background: rgba(13, 110, 253, 0.08);
  box-shadow: inset 3px 0 0 #0d6efd;
  font-weight: 500;
}

.reconciler-divide--running .rec-divide-table,
.reconciler-divide--running .rec-divide-toolbar,
.reconciler-divide--running .rec-divide-submit-bar .btn {
  pointer-events: none;
}

/* Discuss stays CLICKABLE during a run: it only navigates to a chat built from SAVED drafts —
   the run never consumes those, so freezing it just makes a working link look broken. Editing
   (inputs, Run itself) stays locked by the rules above. */
.reconciler-divide--running .rec-divide-submit-bar .rec-divide-discuss-go {
  pointer-events: auto;
}

.reconciler-divide--running .rec-divide-table {
  opacity: 0.55;
}

/* The account header's coverage line: reconciled-through and activity-through, muted — context,
   not data. */
.rec-divide-account-coverage {
    position: absolute;
    left: 32%;              /* fallback until the runtime measurement lands */
    bottom: 0.35rem;
    /* Stop where the outstanding/matched counts begin: their width is measured onto the band
       (--rec-counts-w, MatchupTable) because they carry dollars now; 14rem until it lands. The
       0.7rem is the band's own right padding, the 1rem a gap. */
    right: calc(var(--rec-counts-w, 14rem) + 1.7rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #475467;
}

/* The save-view popover: an inline panel under its button — the browser prompt() it replaces is
   banned outright. */
.rec-divide-saveview {
  position: relative;
  display: inline-block;
}

.rec-divide-saveview-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(33, 37, 41, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rec-divide-saveview-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Edits staged on a still-held row: saved, going nowhere until the Hold clears. Amber — a state
   worth noticing, not an error. */
.rec-divide-heldedit {
  display: inline-block;
  padding: 0 0.35rem;
  border-radius: 3px;
  background: rgba(253, 126, 20, 0.12);
  color: #b35900;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* The Hold column header: label + the account-wide master checkbox on one line, checkbox aligned
   to the text baseline — it used to float in the band above the column headers. */
.rec-divide-hold-head {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.rec-divide-hold-head .rec-divide-hold-box {
  margin: 0;
  vertical-align: middle;
}

/* Check-catalog settings controls (Checks tab on the Closer page). The form
   is a quiet inline strip under the row's description — the row stays a list
   item first, an editor second. */
.fo-check-settings-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .4rem 0 0 1.35rem;   /* aligns under the description, clears the icon */
}
.fo-check-toggle-btn {
  font-size: .72rem;
  padding: .1rem .55rem;
}
.fo-check-clear-btn {
  font-size: .72rem;
  padding: .1rem .25rem;
  text-decoration: none;
}
/* An explicit user override in play — the row no longer follows the SOPs. */
/* Drag handle on check rows (reorder without a settings page). */
.fo-check-handle {
  cursor: grab;
  color: #6c74d8;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -.22em;
  margin-right: .45rem;
  padding: .1rem .25rem .1rem .1rem;
  border-radius: .25rem;
  user-select: none;
  opacity: .75;
  flex: none; box-sizing: border-box; width: .8rem;   /* a fixed width, so a row's note can line up under its title */
}
.fo-check-handle:hover { opacity: 1; background: rgba(108, 116, 216, .12); }
.fo-check-handle:active { cursor: grabbing; }
.fo-check-dragging { opacity: .45; }
tbody[data-check-key] { will-change: transform; }
/* Closer intro banner: dismiss × + restore link. */
#closer-intro-banner { position: relative; }
.closer-intro-dismiss {
  position: absolute;
  top: .35rem;
  right: .6rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  opacity: .8;
}
/* Financials "More reports" sub-tab. */
.closer-fin-pkg-count {
  display: inline-block;
  min-width: 1.3em;
  padding: 0 .4em;
  border-radius: 999px;
  background: #eef0fb;
  color: #4f5fb7;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.closer-fin-pkg-table th { position: sticky; top: 0; background: #250d47; color: #fff; }
.closer-fin-pkg-table td { white-space: nowrap; }
/* The balance sheet roll-forward (package_tree.html, TM-2250): bold accounts, names folded under them. */
.closer-fin-rf-tabs { margin-bottom: .75rem; flex-wrap: wrap; }
.closer-fin-rf-tabs .nav-link { background: #fff; color: #250d47; font-size: 12px; font-weight: 600; }
.closer-fin-rf-tabs .nav-link:hover { color: #e91e63; }
/* As the statement tabs do (.closer-fin-stmt-tabs): at the bare .nav-link.active's weight, the selected tab drew white
   on white, a blank box where "By account" should be (jlrww, 2026-11-09). */
.closer-fin-rf-tabs li.nav-item .nav-link.active,
.closer-fin-rf-tabs li.nav-item .nav-link.active:hover { background: #250d47; border-color: #250d47; color: #fff; }
.closer-fin-rf-table td { font-size: 14px; color: #2d2c2f; }
.closer-fin-rf-table td.text-danger { color: var(--bs-danger) !important; }
.closer-fin-rf-table td.fo-table-footer-cell { color: #fff; }
.closer-fin-rf-num { text-align: right; font-variant-numeric: tabular-nums; }
.closer-fin-rf-account td { font-weight: 600; }
.closer-fin-rf-fold td { color: #495057; font-style: italic; }
.closer-fin-rf-flag { font-weight: 600; }
.closer-fin-rf-tablink { background: none; border: 0; color: #250d47; font: inherit; padding: 0; }
.closer-fin-rf-tablink:hover { color: #e91e63; }
/* A roll-forward figure that opens its lines keeps its cell's colour until hovered. */
.closer-fin-rf-drill { color: inherit; }
/* Why a comment post was refused, under the box that sent it (closer-fin-comments.js). */
.closer-fin-post-error { font-size: 14px; margin-top: .25rem; }
/* The drill grid's "reactivate this inactive account for the edit" offer (EntryEditGrid ReactivateButton). */
.fo-edit-grid-lock-note .fo-edit-grid-reactivate { display: block; margin-top: .35rem; }
.fo-edit-grid-note .fo-edit-grid-reactivate { margin-left: .5rem; }

/* Drill drift vs the viewed snapshot (cdc-backed). */
.closer-fin-drillx-drift {
  margin: .3rem 1rem 0;
  padding: .35rem .6rem;
  border-radius: .4rem;
  background: #fff3cd;
  color: #7a5d00;
  font-size: 14px;
}
.closer-fin-drillx-drift-link { color: inherit; font-weight: 600; text-decoration: underline; }
/* How many lines changed since the snapshot: the pink of the changed rows
   (and of the Financials grid's changed cells), not the notes' yellow. */
.closer-fin-drillx-drift-changed {
  background: #fce4ec;
  color: #2d2c2f;
  box-shadow: inset 3px 0 0 #e91e63;
}
.closer-fin-drillx-changed td { background: #fffbea; }
.closer-fin-drillx-chg {
  display: inline-block;
  margin-left: .35rem;
  padding: 0 .4rem;
  border-radius: .6rem;
  font-size: 14px;
  background: #fff3cd;
  color: #7a5d00;
  vertical-align: middle;
}
.closer-fin-drillx-chg-delete { background: #fde2e1; color: #8a1c13; text-decoration: none; }
.closer-fin-drillx-chg-create { background: #e3f4ea; color: #1a7f4e; }

/* Check ownership chip — brand-purple sibling of the override chip. */
.fo-check-assignee-chip {
  padding: .05rem .45rem;
  border-radius: 999px;
  background: #eef0fb;
  color: #4f5fb7;
  font-size: 12px;
  font-weight: 600;
  margin-left: .35rem;
  white-space: nowrap;
}
.fo-check-assignee-select { width: auto; display: inline-block; }

.fo-check-override-chip {
  padding: .05rem .45rem;
  border-radius: 999px;
  background: #fdf0f7;
  color: #c2186e;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
/* The FIRM's default deciding a row — quieter than the client's own manual
   chip. Must follow .fo-check-override-chip: same specificity, and the chip
   carries both classes. */
.fo-check-override-chip.fo-check-firm-chip {
  background: #f1f0f5;
  color: #4c4762;
}
/* Param entry as a boxed label-over-input group (Jesse, 2026-08-13 —
   "small and/or too hard to see"): the box gives the knob a visible home,
   the input gets a real border and readable size, the placeholder carries
   the inherited/default value. Shared by the client drawer and the Firm
   Checks console. */
.fo-check-param {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  margin: 0;
  padding: .45rem .6rem;
  background: #fbfafc;
  border: 1px solid #e5e1ea;
  border-radius: .5rem;
}
/* One card in the flatten skill's "Leave these cards alone" list (TM-1992). */
.closer-builtin-skipcard-option {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #2d2c2f;
}

.fo-check-param-label {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  white-space: normal;
  max-width: 20rem;
  line-height: 1.25;
}
.fo-check-param-input {
  width: 8rem;
  font-size: .95rem;
  padding: .25rem .5rem;
  border: 1px solid #cfd4dc;
}
.fo-check-param-select {
  width: auto;
  font-size: 14px;
  border: 1px solid #cfd4dc;
}
/* Check-setting help line: type is .fo-form-hint (10px body grey); this only caps its width. */
.fo-check-param-note { max-width: 20rem; }
.fo-check-settings-form { align-items: flex-end; }
/* Inline fixer under a missing-payee/class finding: the offending lines
   with payee/class pickers. */
.fo-fix-panel { display: block; padding: .35rem 0 .5rem 2rem; border-top: 0 !important; }
.fo-fix-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.fo-fix-table th, .fo-fix-table td {
  padding: .28rem .45rem;
  border-top: 1px dashed #eceef1;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}
.fo-fix-table thead th { border-top: 0; border-bottom: 1px solid #e5e1ea; }
/* The text columns (why it flagged, account, payee, a tax-code group's title) wrap onto more lines
   instead of ending in an ellipsis, and take the table's spare width rather than leaving it as gaps
   between the short columns (Amy and Jesse, products meeting 2026-10-22: "what's the rest of that
   sentence?", "it should have less white space"). */
.fo-fix-table :is(.fo-fix-memo, .fo-taxcode-subject) { white-space: normal; overflow-wrap: break-word; }
.fo-fix-table input { min-width: 11rem; }
/* The Discuss pick checkbox must stay a checkbox — form-check-input inside
   a table cell otherwise stretches into a bar. */
.fo-fix-table input.fo-finding-pick {
  min-width: 0;
  width: 1rem;
  height: 1rem;
  flex: none;
}
.fo-rec-amt { text-align: right !important; }
.fo-fix-done td { background: #f0f9f1; }
.fo-fix-done .fo-fix-memo, .fo-fix-done td:first-child { text-decoration: line-through; opacity: .75; }
/* Period chips: month-keyed hue, so a June task and a July task read as
   different vintages at a glance. Twelve fixed pastels (text stays dark
   for contrast); the YEAR disambiguates in text, the hue is for scanning.
   NO reds/oranges/pinks anywhere in this palette — red is reserved for
   overdue (Jesse, 2026-08-11), so the wheel runs yellow-green -> green ->
   teal -> blue -> indigo -> violet and back. */
.closer-period-chip { font-weight: 600; }
.closer-period-m1,  .btn.closer-period-m1 { background: #e3f2fd; color: #175cd3; }
.closer-period-m2,  .btn.closer-period-m2 { background: #e0f2fe; color: #0369a1; }
.closer-period-m3,  .btn.closer-period-m3 { background: #dff7f9; color: #0e7490; }
.closer-period-m4,  .btn.closer-period-m4 { background: #e0f7f4; color: #0f766e; }
.closer-period-m5,  .btn.closer-period-m5 { background: #e8f5e9; color: #1f7a3d; }
.closer-period-m6,  .btn.closer-period-m6 { background: #f1f8e9; color: #4d7c0f; }
.closer-period-m7,  .btn.closer-period-m7 { background: #fef9c3; color: #854d0e; }
.closer-period-m8,  .btn.closer-period-m8 { background: #eef2d8; color: #5f6b1f; }
.closer-period-m9,  .btn.closer-period-m9 { background: #e8eaf6; color: #3730a3; }
.closer-period-m10, .btn.closer-period-m10 { background: #ede7f6; color: #5b21b6; }
.closer-period-m11, .btn.closer-period-m11 { background: #f3e8fd; color: #7e22ce; }
.closer-period-m12, .btn.closer-period-m12 { background: #eceff1; color: #334155; }

/* Due chip: the words carry the pressure ("Due in 3 days" big, the date
   small below), and the color turns up as the date closes in. */
.closer-due-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  padding: .15rem .55rem;
  background: #f1f0f5;
  color: #4c4762;
}
.closer-due-headline { font-weight: 700; font-size: 14px; }
.closer-due-date { font-size: 14px; opacity: .75; }
.closer-due-soon { background: #fff8e1; color: #a16207; }
.closer-due-imminent { background: #ffe9d6; color: #c2410c; }
.closer-due-overdue { background: #fdecea; color: #c62828; }

/* One height for every chip in a card header, matched to the Discuss
   button (btn-sm ≈ 31px), so the header reads as one row of equals. */
.closer-head-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.closer-head-actions > .closer-pill,
.closer-head-actions > details > summary.closer-pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
}
.closer-head-actions > .closer-due-chip {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
/* Inline optional-reason row in a status popover (replaces window.prompt). */
.closer-reason-row {
  display: flex;
  gap: .35rem;
  margin-top: .35rem;
}
.closer-reason-row input { min-width: 12rem; }
.closer-reason-row button { white-space: nowrap; flex: 0 0 auto; }
/* Abbreviations render uppercase everywhere they appear — the input agrees. */
.closer-abbrev-input { text-transform: uppercase; }

.closer-status-since {
  font-size: 14px;
  font-weight: 500;
  opacity: .75;
  margin-left: .35rem;
  text-transform: none;
}

/* The Checks tab as a table: Check | Findings | Run. Rows stay quiet;
   the findings count is the loudest thing on the row because it's the
   thing to click. */
/* Frozen while the Checks list scrolls (Jesse, 2026-09-20): the Closer tab
   strip, so every tab stays one click away, then the filter box and the
   column header. Deliberately NOT the page title, the getting-started tips or
   the "What Closer checks" card head — those scroll away and give the rows
   back their height. The tab strip wraps to two lines at narrower widths, so
   the offsets are measured (--closer-tabs-h / --fo-check-search-h, set in
   check_catalog_list.html) rather than guessed. Explicit backgrounds: all
   three are transparent otherwise and the rows would show through. */
#closer-home-subtabs.closer-subtabs-grouped {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f0f2f5;
}
.fo-check-search {
  position: sticky;
  top: var(--closer-tabs-h, 44px);
  z-index: 25;
  background: #fff;
}
/* A deep link (#check-<key>, a chat citation's openCheckDrawer scrollIntoView)
   puts the row at the TOP of the viewport — which is now under the frozen tab
   strip + filter + header. Leave it that much room (#3120 review). */
.fo-check-table .fo-check-row,
.fo-check-table .fo-check-expand {
  scroll-margin-top: calc(var(--closer-tabs-h, 44px) + var(--fo-check-search-h, 32px) + 2.5rem);
}
/* The table's OWN head row only (child combinators). A descendant selector
   also pinned the head of every grid nested in a finding drawer (vendor /
   customer coding grids, flux drawer): each slid down its small table as the
   page scrolled, leaving a blank band where it belonged and sitting on top of
   the last row, so the months read as the bottom row and a one-row flux grid
   showed no amounts at all (Jesse's demo, 2026-09-22). :where(tr) keeps the
   old (0,1,2) specificity, so .fo-roles-matrix's later top: 0 still wins. */
.fo-check-table > thead > :where(tr) > th {
  position: sticky;
  top: calc(var(--closer-tabs-h, 44px) + var(--fo-check-search-h, 32px));
  z-index: 24;
  background: #fff;
  /* border-collapse drops a sticky cell's own border as it scrolls. */
  box-shadow: inset 0 -1px 0 #e5e1ea;
}
.fo-check-table {
  width: 100%;
  border-collapse: collapse;
}
.fo-check-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
  padding: .35rem .5rem;
  border-bottom: 2px solid #e5e1ea;
  text-align: left;
}
.fo-check-table td {
  padding: .55rem .5rem;
  border-top: 1px solid #eceef1;
  vertical-align: top;
}
.fo-check-col-cadence, .fo-check-col-findings, .fo-check-col-run,
.fo-check-col-settings { white-space: nowrap; width: 1%; }
.fo-check-expand > td {
  border-top: 0;
  padding-top: 0;
  background: #fbfafc;
}
.fo-findings-toggle {
  border: 0;
  cursor: pointer;
  font-size: 14px;
}
/* An open drawer's collapse chevron: in the gutter under the row's drag handle, on the drawer's first
   line (Include all / Assigned to), dark purple, hot pink on hover (Christopher, 2026-10-22). */
/* The chevron and the drawer's title are ONE button (Christopher, 2026-10-22): they hover hot pink
   together and either collapses the drawer. The chevron sits in the gutter under the drag handle (an
   18px box from the td's edge), the title under the check (1.6rem in). */
.fo-findings-toggle.fo-check-collapse {
  display: inline-flex; align-items: center; gap: calc(1.6rem - 18px - .55rem + 8px);
  margin: .2rem 0 0 calc(.55rem - 8px); padding: 0; border: 0;
  background: transparent; color: #250d47; line-height: 1;
}
.fo-check-collapse-caret { width: 18px; font-size: 14px; text-align: center; flex: none; }   /* the title's 14px */
.fo-findings-toggle.fo-check-collapse:is(:hover, :focus-visible) { color: #e91e63; }
.fo-findings-none { color: #495057; font-size: 14px; }
.fo-check-gear-btn { color: #250d47; padding: 0 .3rem; line-height: 1; }   /* no taller than the check's name: the row's padding stays even */
.fo-check-gear-btn:hover, .fo-check-gear-btn:focus-visible { color: #e91e63; }
/* The chip and button cells: one 22px line, the check name's, not the page's 16px x 1.6 line box,
   which left the row taller below its name than above it. */
.fo-check-row > td:not(.fo-check-col-check) { font-size: 14px; line-height: 22px; }

/* Findings under a check row — the dashboard layer. Quiet list; the
   severity dot is the only color, the subject is the content. */
.fo-finding-list {
  list-style: none;
  margin: .35rem 0 0 1.35rem;
  padding: 0;
}
/* li ONLY: the fix table reuses .fo-finding-row on <tr>s, and display:flex
   on a tr rips it out of table layout — the header row then computes its
   own column grid and nothing lines up (Jesse, 2026-08-13). */
li.fo-finding-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .22rem 0;
  border-top: 1px dashed #eceef1;
  font-size: 14px;
}
li.fo-finding-row:first-child { border-top: 0; }
tr.fo-finding-row { font-size: 14px; }
.fo-finding-dot {
  flex: 0 0 auto;
  width: 9px;    /* whole pixels: .55rem (8.8px) rounded to 9x8 ovals on a 1x screen */
  height: 9px;
  border-radius: 50%;
  align-self: center;
}
.fo-finding-low { background: #9aa1ab; }
.fo-finding-medium { background: #fd7e14; }
.fo-finding-high { background: #dc3545; }
.fo-finding-subject { flex: 1 1 auto; cursor: pointer; margin: 0; }
/* A finding about one transaction: its subject opens the drill-down, so it reads as a link. */
.fo-finding-subject-drill:hover { color: #e91e63; }
/* A name or account a finding names opens its drill-down (closer/includes/finding_drill_link.html):
   the General Ledger's name link (.closer-gl-name-open) at the findings' 12px. After a subject it
   shrinks and wraps with it, so a long account name never pushes the row past the drawer. */
.fo-finding-list .fo-finding-drill { font-size: 14px; overflow-wrap: break-word; }
li.fo-finding-row > .fo-finding-drill { flex: 0 1 auto; min-width: 0; }
/* A finding's own detail (an unapplied credit's open items) on a line of its own under the subject
   and its buttons: inline, the table squeezed the name link to a letter a line (Jesse, 2026-10-26). */
li.fo-finding-row:has(> .fo-finding-detail) { flex-wrap: wrap; }
li.fo-finding-row > .fo-finding-detail { order: 99; flex: 0 0 100%; padding-left: 3.25rem; }
/* Origin chip on a finding row (findings in both places): "review" marks a
   row a monthly close first raised; continuous-scan rows carry no chip.
   Two classes so it beats the global .closer-pill metric. */
.closer-pill.closer-pill-origin {
  flex: 0 0 auto;
  align-self: center;
  padding: .05rem .45rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .02em;
  background: #ece9f1;
  color: #250d47;
}
.fo-finding-pick { flex: 0 0 auto; margin: 0; align-self: center; }
.fo-finding-note {
  flex: 0 1 14rem;
  font-size: 14px;
  padding: .1rem .4rem;
}
/* The bulk bar under a check's findings: one instruction, one Discuss. */
.fo-finding-bulkbar {
  display: flex;
  gap: .5rem;
  margin: .5rem 0 .2rem 1.35rem;
  align-items: center;
}
.fo-finding-bulkbar .fo-finding-instruction { flex: 1 1 auto; max-width: 34rem; }
/* Who has a check's findings (closer-fin-comments.js paintCheckThreads). */
.fo-finding-threads { margin: .5rem 0 0 1.35rem; font-size: 14px; color: #2d2c2f; }
.fo-finding-thread { padding: .15rem 0; }
.fo-finding-thread .fa { color: #250d47; }
.fo-finding-thread a { color: #250d47; text-decoration: none; }
.fo-finding-thread a:hover { color: #e91e63; }
.fo-finding-bulkbar .fo-finding-discuss-btn { white-space: nowrap; flex: 0 0 auto; }
.fo-finding-actions { margin: 0; }
.fo-check-phase-select {
  width: auto;
  font-size: 14px;
  padding: .1rem 1.6rem .1rem .4rem;
}
/* Flash strip above the checks table for fetch results. */
/* Fixed toast — the feedback must be visible from ANYWHERE in the list
   (Jesse, 2026-08-19: a Dismiss failure flashed above the fold and read
   as nothing happening). */
#fo-check-flash, #fo-map-flash {
  position: fixed;
  top: 4.5rem;
  right: 1.25rem;
  z-index: 2000;
  max-width: 26rem;
}
#fo-check-flash .alert { font-size: 14px; box-shadow: 0 6px 18px rgba(16, 24, 40, .18); }
/* The Cadence column's chip dropdown (same pattern as a note's status chip).
   The chip states the effective cadence; a client override tints it. */
.fo-cadence-chip { background: #eef0f3; color: #4b5563; }
.fo-cadence-chip-override { background: #e7e2f4; color: #4F5FB7; }
/* Monthly-review sections: same chip, no menu — cadence is a fact there. */
.fo-cadence-chip-static { cursor: default; }
.fo-cadence-menu .closer-status-options .closer-pill { white-space: nowrap; }
/* A missing_workflow_memory finding's fix IS the Map — the link takes the
   row to its chip there. */
.fo-finding-maplink { flex: 0 0 auto; font-size: 14px; white-space: nowrap; }

/* ---------------------------------------------------------------------------
   System map (closer/includes/system_map.html) — the constellation. The
   ledger is the sun at the centre of the SKY; data stores orbit on an inner
   ring, integrations/deliveries on an outer ring; workflows are curved SVG
   wires between the stars (positions + paths computed by the Map script in
   closer_home.html from measured geometry). Clicking a star shows its
   workflows in the side panel as CHIPS (dot = explained state: green has
   memory, amber is waiting for someone to say what the workflow does).
   --------------------------------------------------------------------------- */
#fo-map-flash .alert { font-size: 14px; box-shadow: 0 6px 18px rgba(16, 24, 40, .18); }
.fo-map-summary {
  font-size: 14px;
  color: #2d2c2f;
  margin: 0 0 .75rem;
}
.fo-map-summary .fo-map-dot { display: inline-block; vertical-align: middle; }
.fo-map-hint {
  display: block;
  margin-top: .2rem;
  color: #495057;
  font-size: 14px;
}
/* Sky left, side panel right; the panel sticks while the sky scrolls. */
.fo-map-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .fo-map-body { grid-template-columns: 1fr; }
}
.fo-map-sky-wrap {
  overflow: auto;
  max-height: 84vh;
  border: 1px solid #eceef1;
  border-radius: .5rem;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0, #fbfbfd 45%, #f6f6fa 100%);
}
.fo-map-sky { position: relative; min-height: 24rem; }
.fo-map-wires {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.fo-map-wire {
  fill: none;
  stroke-linecap: round;
  pointer-events: stroke;
  transition: stroke .12s ease, opacity .12s ease;
  opacity: .8;
}
/* Directionality, artery/vein (Jesse, 2026-08-17): RED wires BOOK the
   ledger (the color Editor uses for "Edit Data"); BLUE wires read data out
   or deliver it. Editors keep the dashed stroke on top of the red. Orange
   is thereby freed up to mean exactly one thing on this surface: an
   unanswered question (the ? on unexplained workflows). */
.fo-map-wire-read { stroke: #8babd6; }
.fo-map-wire-write { stroke: #dc8f8f; }
.fo-map-wire-bidi { stroke-dasharray: 5 4; }
/* Selection/hover DARKENS the flow color instead of swapping to indigo —
   the read/write story survives highlight mode. */
.fo-map-wire-hot, .fo-map-wire-chip { opacity: 1; }
.fo-map-wire-hot.fo-map-wire-read, .fo-map-wire-chip.fo-map-wire-read { stroke: #2f6db3; }
.fo-map-wire-hot.fo-map-wire-write, .fo-map-wire-chip.fo-map-wire-write { stroke: #c0392b; }
.fo-map-wire-dim { opacity: .12; }
#fo-map-arrow-read path { fill: #8babd6; }
#fo-map-arrow-write path { fill: #dc8f8f; }
/* The hint's legend swatches — little wire samples. */
.fo-map-legend-swatch {
  display: inline-block;
  width: 1.1rem;
  height: 0;
  border-top: 2.5px solid;
  vertical-align: middle;
  border-radius: 2px;
}
.fo-map-legend-write { border-top-color: #dc8f8f; }
.fo-map-legend-read { border-top-color: #8babd6; }
.fo-map-legend-bidi { border-top-color: #dc8f8f; border-top-style: dashed; }
/* A star: one node card, absolutely placed by the script. */
.fo-map-star {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 150px;
  padding: .28rem .55rem;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #2d2c2f;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
  transition: box-shadow .12s ease, border-color .12s ease, opacity .12s ease;
}
.fo-map-star:hover { border-color: #b8bfca; box-shadow: 0 2px 6px rgba(16, 24, 40, .12); }
.fo-map-star-icon { color: #6b7280; font-size: .72rem; flex: 0 0 auto; }
.fo-map-star-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
/* Integrations/services read as a DIFFERENT SPECIES from data stores
   (Jesse, 2026-08-19: too easy to confuse) — warm amber card, square
   corners, amber glyph; sheets stay white pills with the table icon. */
.fo-map-star-external {
  border-radius: .3rem;
  background: #fdf4e3;
  border-color: #e3c98f;
  box-shadow: 0 1px 2px rgba(146, 104, 21, .12);
}
.fo-map-star-external .fo-map-star-icon { color: #b45309; }
.fo-map-star-external .fo-map-star-label { color: #6b4e16; }
.fo-map-star-external:hover { border-color: #c9a75a; }
.fo-map-star-external.fo-map-star-hot,
.fo-map-star-external.fo-map-star-selected { border-color: #4F5FB7; }
/* One height for every control on the strip, so the box, the dropdown, the date and the buttons share
   a centre line: the standard 29px. */
.fo-finding-bulkbar .btn,
.fo-finding-bulkbar .form-select,
.fo-finding-bulkbar .form-control,
.fo-finding-bulkbar .fo-combobox-display {
  height: 29px; min-height: 0;
}
.fo-finding-bulkbar > * { align-self: center; }

/* A FinOptimal PRODUCT working these books — Accruer, Allocator, Inter,
   Payroller, Reconciler. A third species again: brand purple, so it reads as
   "this is us" against the amber integrations and the white spreadsheets
   (Jesse, 2026-09-07: "FinOptimal products that don't use spreadsheets should
   somehow just be nodes"). */
.fo-map-star-product {
  border-radius: .55rem;
  background: #f2f3fb;
  border-color: #b9c0e6;
  box-shadow: 0 1px 2px rgba(79, 95, 183, .12);
}
.fo-map-star-product .fo-map-star-icon { color: #4F5FB7; }
.fo-map-star-product .fo-map-star-label { color: #2f3a72; }
.fo-map-star-product:hover { border-color: #8e99d6; }
.fo-map-star-product.fo-map-star-hot,
.fo-map-star-product.fo-map-star-selected { border-color: #4F5FB7; }

/* The sun. */
.fo-map-star-gl {
  flex-direction: column;
  gap: 0;
  max-width: none;
  padding: .7rem 1.1rem;
  border: 2px solid #4F5FB7;
  border-radius: 999px;
  background: #eef0fa;
  box-shadow: 0 0 0 10px rgba(79, 95, 183, .07), 0 0 0 22px rgba(79, 95, 183, .035);
  font-size: 14px;
}
.fo-map-star-gl .fo-map-star-icon { color: #4F5FB7; font-size: 1rem; margin-bottom: .1rem; }
.fo-map-star-gl .fo-map-star-label { white-space: nowrap; }
.fo-map-star-sub { font-size: 14px; color: #6b7280; font-weight: 400; }
.fo-map-star-warn {
  flex: 0 0 auto;
  min-width: 1.1rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: #fd7e14;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}
/* How many workflows run through this node. The map's header counts every
   workflow, but a LEDGER-INTERNAL one (an Accruer, an Allocator) draws no
   arrow — it lives inside the General ledger circle and was invisible until
   you clicked it, so the map read as though the Accruer weren't there
   (Jesse, 2026-09-07: "Would Accruer show up in the map if it weren't on
   hold? It should."). Quiet grey, so the orange warn badge still owns the
   eye. */
.fo-map-star-count {
  flex: 0 0 auto;
  min-width: 1.1rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: #e9ecef;
  color: #495057;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1rem;
  text-align: center;
}
/* The ledger circle's own line — it stacks, so the count is a phrase there
   rather than a pill (a bare digit under "QuickBooks Online" reads as noise). */
.fo-map-star-inline {
  font-size: 14px;
  font-weight: 600;
  color: #4F5FB7;
  white-space: nowrap;
}
.fo-map-star-selected { border-color: #4F5FB7; box-shadow: 0 0 0 3px rgba(79, 95, 183, .22); }
.fo-map-star-hot { border-color: #4F5FB7; }
.fo-map-star-dim { opacity: .35; }
/* Side panel: one node's workflows. */
.fo-map-details {
  position: sticky;
  top: .5rem;
  max-height: calc(100vh - 1rem);
  overflow: auto;
  border: 1px solid #eceef1;
  border-radius: .5rem;
  padding: .6rem .7rem;
  background: #fff;
}
.fo-map-details-empty { margin: 0; font-size: 14px; }
.fo-map-detail-head {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  flex-wrap: wrap;
}
.fo-map-detail-close { margin-left: auto; padding: 0 .2rem; color: #9aa1ab; line-height: 1; }
.fo-map-detail-close:hover { color: #2d2c2f; }
.fo-map-node-icon { color: #6b7280; font-size: .8rem; }
.fo-map-node-label {
  font-weight: 600;
  font-size: 14px;
  color: #250d47;
  overflow-wrap: anywhere;
}
a.fo-map-node-label:hover { text-decoration: none; }   /* links: hot pink on hover, never underlined (Christopher, 2026-10-26) */
.fo-map-ext-icon { font-size: .68rem; color: #9aa1ab; }
.fo-map-node-sub { font-size: 14px; color: #495057; }
.fo-map-node-traffic { font-size: 14px; color: #495057; white-space: nowrap; }
.fo-map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .3rem;
}
.fo-map-tab {
  font-size: 10px;
  padding: 0 .4rem;
  border-radius: 999px;
  background: #f1f0f5;
  color: #4c4762;
  text-decoration: none;
  white-space: nowrap;
}
a.fo-map-tab:hover { color: #e91e63; }   /* hot pink, no fill (Christopher, 2026-11-11) */
.fo-map-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #250d47;
  margin: 0 0 .5rem;
}
.fo-map-group { margin-top: .45rem; }
.fo-map-group-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #250d47;
  margin-bottom: .15rem;
}
/* One workflow. A <details>: the summary is the chip, the body is where it
   runs + the Explain form. */
.fo-map-chip {
  border: 1px solid #eceef1;
  border-radius: .35rem;
  margin: .2rem 0;
  background: #fff;
}
.fo-map-chip[open] { border-color: #d0d5dd; }
.fo-map-chip-summary {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .45rem;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
.fo-map-chip-summary::-webkit-details-marker { display: none; }
.fo-map-chip-summary:hover { background: #f7f8fc; }
.fo-map-chip-icon { color: #6b7280; font-size: .74rem; flex: 0 0 auto; }
.fo-map-chip-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2d2c2f;
}
.fo-map-chip-unexplained .fo-map-chip-name { color: #495057; }
.fo-map-chip-bidi { color: #495057; font-size: 12px; flex: 0 0 auto; }
.fo-map-dot {
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
}
.fo-map-dot-ok { background: #1f9d55; }
/* An unexplained workflow is a QUESTION, not a status light. */
.fo-map-q { flex: 0 0 auto; color: #fd7e14; font-size: 14px; }
/* Self-evident editors: nothing owed, nothing amber. */
.fo-map-dot-se { background: #c6cbd3; }
/* Frequency on the collapsed chip row — Auto-Daily vs On-demand vs Hold is
   meaningful here; Hold reads amber (the workflow is parked). */
.fo-map-chip-freq { flex: 0 0 auto; font-size: 12px; color: #495057; white-space: nowrap; }
.fo-map-chip-freq-hold { color: #b45309; font-weight: 600; }
.fo-map-chip-body {
  padding: .35rem .5rem .5rem;
  border-top: 1px dashed #eceef1;
}
.fo-map-chip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .7rem;
  font-size: 12px;
  color: #495057;
  margin-bottom: .35rem;
}
.fo-map-chip-product { color: #4c4762; font-weight: 600; }
.fo-map-explain-text { font-size: 14px; }
.fo-map-explain-actions { margin-top: .3rem; display: flex; justify-content: flex-end; }
.fo-map-unplaced { margin-top: 1rem; }
/* Scope picker — solo sky vs a whole TeamSet. */
.fo-map-scope {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .6rem;
}
.fo-map-scope-btn { border: 0; cursor: pointer; background: #f1f0f5; color: #4c4762; }
.fo-map-scope-btn:hover { background: #e7f1ff; }
.fo-map-scope-active { background: #4F5FB7; color: #fff; cursor: default; }
.fo-map-scope-active .closer-note-number { background: rgba(255, 255, 255, .25); color: #fff; }
.fo-map-chip-memory {
  margin: 0;
  font-size: 12px;
  color: #2d2c2f;
  white-space: pre-wrap;
}

/* ---------------------------------------------------------------------------
   Closer footnotes (TM-2363): an evergreen note on an account (the row's bookmark,
   beside its comment bubble) or on one month of it (a dog-ear in that cell's
   corner). static/js/closer-fin-footnotes.js paints both; the list is
   closer/includes/footnotes_modal.html.
   --------------------------------------------------------------------------- */
/* Always there, dark purple like the comment bubble beside it, hot pink on hover (Christopher,
   2026-11-12: "it should not require a hover to expose it"). */
.closer-fin-footnote-btn {
  border: 0;
  background: none;
  padding: 0 .2rem;
  color: #250d47;
  font-size: .68rem;
  cursor: pointer;
  transition: color .1s ease;
}
.closer-fin-footnote-btn.closer-fin-has-footnote { opacity: 1; color: #250d47; }
.closer-fin-footnote-btn:hover { color: #e91e63; }
.closer-fin-footnote-btn .closer-fin-footnote-full,
.closer-fin-footnote-btn.closer-fin-has-footnote .closer-fin-footnote-empty { display: none; }
.closer-fin-footnote-btn.closer-fin-has-footnote .closer-fin-footnote-full { display: inline-block; }
td.closer-fin-footnoted { position: relative; }
.closer-fin-earmark {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  padding: 0;
  border-style: solid;
  border-width: 0 9px 9px 0;
  border-color: transparent #e91e63 transparent transparent;
  background: none;
  cursor: pointer;
}
.closer-fin-earmark:hover,
.closer-fin-earmark:focus-visible { border-width: 0 12px 12px 0; outline: none; }
/* Several notes on one chip (TM-2413): how many, in the chip's hot pink just left of it. The account
   cell's chip (a whole-account note) sits in its sticky th, which already anchors it. */
.closer-fin-earmark[data-count]::after {
  content: attr(data-count);
  position: absolute;
  top: -1px;
  right: 1px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  color: #e91e63;
}
.closer-footnotes .closer-footnote-body { font-size: 12px; }
.closer-footnotes-table td { vertical-align: top; }
.closer-footnotes-table .closer-footnote-text { white-space: pre-wrap; }
.closer-footnotes-table .closer-footnote-by,
.closer-footnotes-table .closer-footnote-seen { white-space: nowrap; color: #495057; }
.closer-footnotes-table .closer-footnote-actions { white-space: nowrap; text-align: right; }
.closer-footnote-msg,
.closer-footnote-hint,
.closer-footnotes-empty { font-size: 12px; color: #495057; }

/* ---------------------------------------------------------------------------
   Financials line commentary (Wendy pinned notes + B&J flux commentary,
   2026-08-18): per-row comment buttons, the floating timeline panel, and
   the orphan strip for threads whose account left the statements.
   --------------------------------------------------------------------------- */
.closer-fin-comment-btn {
  border: 0;
  background: none;
  padding: 0 .3rem;
  margin-left: .3rem;
  color: #c6cbd3;
  font-size: .72rem;
  cursor: pointer;
  transition: opacity .1s ease, color .1s ease;
}
.closer-fin-comment-btn.closer-fin-has-comments { opacity: 1; color: #6b7280; }
.closer-fin-comment-btn.closer-fin-has-open { color: #e91e63; }
/* Waiting on the viewer (assigned to them, or The Magic asking its assigner): red. */
.closer-fin-comment-btn.closer-fin-has-open.closer-fin-waiting-me { color: #b02a37; }
/* …and pulses once when it first turns red while the page is open. */
.closer-fin-comment-btn.closer-fin-pulse { animation: closer-fin-pulse 1.4s ease-out 2; }
@keyframes closer-fin-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); filter: drop-shadow(0 0 4px rgba(176, 42, 55, .6)); }
    100% { transform: scale(1); }
}
.closer-fin-comment-count {
  margin-left: .15rem;
  font-size: 12px;
  font-weight: 700;
}
/* An account row's count of comments on transaction lines inside it (the
   General Ledger / drill-down 💬s), apart from the row's own bubble. */
.closer-fin-line-comments {
  margin-left: .1rem;
  color: #495057;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.closer-fin-line-comments .fa { margin-right: .15rem; }
.closer-fin-line-comments.closer-fin-line-comments-open { color: #4F5FB7; }
.closer-fin-line-comments[role="button"] { cursor: pointer; }
.closer-fin-line-comments[role="button"]:hover { color: #e91e63; }
/* The row panel's "On transaction lines in this account" heading over its line threads. */
.closer-fin-line-threads-label { margin: .5rem 0 .25rem; }
/* The drill-down grid's per-line 💬, in its own last column at the row's right
   edge (like the General Ledger's). With no thread it shows on the row's hover,
   as the General Ledger's does (TM-2303); solid with a count once the line has one. */
.fo-edit-grid-comment-col { width: 2.5rem; text-align: center; white-space: nowrap; }
.fo-edit-grid-comment-col .closer-fin-comment-btn { margin-left: 0; font-size: .85rem; }
.closer-fin-panel {
  position: absolute;
  /* Above the drill-down modal (1070): a GL transaction's 💬 opens it there. */
  z-index: 1075;
  width: 26rem;
  max-width: calc(100vw - 24px);
  max-height: 60vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: .5rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .16);
  padding: .6rem .7rem;
}
/* Clicked open (not a hover preview): as big as the thread needs, up to
   the viewport (Jesse, 2026-09-29: "big enough ... to show me the whole thing"). */
.closer-fin-panel.closer-fin-panel--pinned { width: 36rem; max-height: calc(100vh - 16px); }
/* The drag-to-resize corner; sticky so it stays put while the panel scrolls. */
.closer-fin-panel-grip {
  position: sticky;
  bottom: -.6rem;
  margin: .25rem -.7rem -.6rem auto;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  touch-action: none;
  background: linear-gradient(135deg, transparent 45%, #9aa1ab 45%, #9aa1ab 52%, transparent 52%,
                              transparent 65%, #9aa1ab 65%, #9aa1ab 72%, transparent 72%);
}
.closer-fin-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  /* Stays at the top while the thread scrolls under it (Jesse, 2026-09-29). */
  position: sticky;
  top: -.6rem;
  z-index: 2;
  margin: -.6rem -.7rem 0;
  padding: .6rem .7rem .35rem;
  background: #fff;
  border-bottom: 1px solid #e4e7ec;
}
/* The statement line the comment popover is open for. */
.closer-fin-row.closer-fin-row-active > th,
.closer-fin-row.closer-fin-row-active > td {
  box-shadow: inset 0 2px 0 #4F5FB7, inset 0 -2px 0 #4F5FB7;
}
.closer-fin-row.closer-fin-row-active > th { box-shadow: inset 3px 0 0 #4F5FB7, inset 0 2px 0 #4F5FB7, inset 0 -2px 0 #4F5FB7; }
.closer-fin-panel-title { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; color: #250d47; }   /* the brand's dark purple, as modal titles */
.closer-fin-panel-close { padding: 0 .2rem; color: #9aa1ab; line-height: 1; }
.closer-fin-thread {
  border-top: 1px solid #f0f1f3;
  padding-top: .45rem;
  margin-top: .45rem;
}
.closer-fin-thread-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; flex-wrap: wrap; }
/* The thread's conversation (an assigned comment IS one) — pushed to the
   right of the head so status/assignee keep their place. */
.closer-fin-conv { margin-left: auto; white-space: nowrap; color: #4F5FB7; text-decoration: none; }
.closer-fin-conv:hover { text-decoration: none; }
.closer-fin-conv + .closer-fin-conv { margin-left: 12px; }
.closer-fin-event { display: flex; gap: .45rem; margin: .3rem 0; }
.closer-fin-event-icon { color: #9aa1ab; font-size: .72rem; margin-top: .2rem; flex: 0 0 auto; }
.closer-fin-event-meta { font-size: 14px; color: #495057; }
/* The version an event was said ON — distinct from the event's own time;
   the one you're looking at gets the highlight. */
.closer-fin-ver { white-space: nowrap; }
.closer-fin-ver-current {
  background: #eef0fa;
  color: #4F5FB7;
  border-radius: 999px;
  padding: 0 .4rem;
  font-weight: 700;
}
.closer-fin-event-body { font-size: 14px; color: #2d2c2f; white-space: pre-wrap; }
/* A long report of The Magic's shows its first lines until Show all (closer-fin-comments.js, TM-2290). */
.closer-fin-event-body.closer-fin-event-folded { max-height: 12em; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.closer-fin-event-showall { color: #250d47; text-decoration: none; }
.closer-fin-event-showall:hover { color: #e91e63; }
/* The Magic on a thread: its name in the head, its reports tinted. */
.closer-fin-magic-who { color: #4F5FB7; font-weight: 600; }
.closer-fin-event-magic { background: #f3f4fd; border-radius: 6px; padding: .25rem .4rem; }
/* The Magic is working the thread: a live row above the reply box, and a
   gentle breathe on the line's bubble. */
/* The Magic's run died: say so above the reply box, with a retry. */
.closer-fin-magic-stopped { font-size: 14px; color: #9a3412; margin: .35rem 0; }
.closer-fin-magic-working {
  margin-top: .4rem;
  padding: .35rem .5rem;
  border-radius: 6px;
  background: #f3f4fd;
  color: #4F5FB7;
  font-size: 14px;
  font-weight: 600;
}
.closer-fin-magic-working .fa { animation: closer-fin-magic-spin 2.4s linear infinite; }
.closer-fin-magic-dots span { animation: closer-fin-magic-dot 1.2s infinite; opacity: 0; }
.closer-fin-magic-dots span:nth-child(2) { animation-delay: .2s; }
.closer-fin-magic-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes closer-fin-magic-dot { 0%, 20% { opacity: 0; } 40%, 100% { opacity: 1; } }
@keyframes closer-fin-magic-spin { 0%, 70% { transform: rotate(0); } 85% { transform: rotate(-15deg); } 100% { transform: rotate(0); } }
.closer-fin-comment-btn.closer-fin-magic-busy { animation: closer-fin-magic-breathe 1.8s ease-in-out infinite; }
@keyframes closer-fin-magic-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* The Magic working the thread: brand purple while it breathes; red again once the ball is back
   in the viewer's court — red wins on a line where both are true (Jesse, 2026-10-11). */
.closer-fin-comment-btn.closer-fin-has-open.closer-fin-magic-busy:not(.closer-fin-waiting-me) { color: #250d47; }
/* Files pasted into a comment or reply, waiting under the box to go with it. */
.closer-fin-pending { flex: 1 1 100%; margin-top: .25rem; }
.closer-fin-reassign-label { display: flex; align-items: center; gap: .4rem; margin-top: .35rem; }
/* The bar's controls share one centre line — .btn's theme margin-bottom pushed Assign up. */
.fo-finding-bulkbar .btn { margin-bottom: 0; }
/* A finding's 💬: the Financials bubble, always in view (Christopher, 2026-11-11); the comment
   window moves by its header (2026-10-01). */
.fo-finding-comment-btn { margin-left: .3rem; vertical-align: middle; }
.closer-fin-panel-head { cursor: move; }
/* Include all / none: a box in the Include header (or above a headerless
   list), in the same style as the rows' own boxes. th inputs are full-width
   elsewhere (column filters) — pin it to the rows' 16px box. */
.fo-finding-include-th .fo-finding-pick-all { width: 16px; min-width: 0; height: 16px; margin: .3rem 0 0; flex: none; }
.fo-finding-include-all { margin: 0 0 .35rem; font-size: 14px; color: #6c757d; }
/* A bare .form-check-input outside .form-check is white with no border in this
   theme — an unticked finding was invisible. Give unticked boxes an edge. */
.fo-finding-pick:not(:checked):not(:indeterminate),
.fo-finding-pick-all:not(:checked):not(:indeterminate) { border: 1px solid #b8bcc8; background-color: #fff; }
.fo-finding-include-all label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.closer-fin-reassign { width: auto; max-width: 16rem; }
.closer-fin-thread-actions {
  display: flex;
  gap: .35rem;
  margin-top: .3rem;
}
.closer-fin-thread-actions .closer-fin-reply { flex: 1 1 auto; }
.closer-fin-panel-new { border-top: 1px solid #e4e7ec; margin-top: .5rem; padding-top: .5rem; }
/* A line with no comments yet: the blank box sits right under the title (closer_home renderPanel). */
.closer-fin-panel--empty .closer-fin-panel-new { border-top: 0; margin-top: 0; padding-top: 0; }
.closer-fin-panel--empty .closer-fin-panel-new-label { display: none; }
.closer-fin-panel-actions {
  display: flex;
  gap: .35rem;
  margin-top: .3rem;
  justify-content: flex-end;
}
.closer-fin-panel-actions .closer-fin-assign { max-width: 14rem; }
.closer-adoptable-list { display: flex; flex-direction: column; gap: .4rem; }
.closer-adoptable-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .5rem;
  border: 1px solid #eceef1;
  border-radius: .4rem;
}
.closer-adoptable-name { font-weight: 600; font-size: .88rem; }
.closer-skill-new-name { max-width: 16rem; }
.closer-skill-parent-md {
  border-left: 3px solid #e7e2f4;
  padding-left: .75rem;
  margin-bottom: .5rem;
}
.closer-fin-orphans-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.closer-fin-orphan { border: 0; cursor: pointer; }
/* Panel geometry (Jesse, 2026-08-18): label OUTSIDE the assignee select,
   select and Comment button the same height, actions centred. */
.closer-fin-thread-actions { justify-content: center; }
/* The reply box is a full-width, growing textarea with the buttons under it
   (Jesse, 2026-09-29: "the reply space is too small"). */
.closer-fin-thread-actions { flex-wrap: wrap; justify-content: flex-end; }
.closer-fin-thread-actions .closer-fin-reply { flex: 1 1 100%; min-height: 3.4rem; resize: vertical; }
.closer-fin-thread-actions .btn, .closer-fin-panel-actions .btn,
.closer-fin-panel-actions .form-select {
  height: 31px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* The version dropdown's right-hand status caption must not bleed past the
   menu edge — clamp with an ellipsis. */
.closer-fin-snapshot-dd .dropdown-item small {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Inline snapshot-rename editor: enough width for a short version name
   without pushing the toolbar onto a second line. */
.closer-snap-name-input {
  width: 12rem;
}
/* Monthly-package designation select: don't stretch across the cell. */
.closer-package-designation {
  max-width: 16rem;
}
/* Conversations: message rail. Internal notes get the amber offset —
   the Zendesk yellow-note idiom, kept because every accountant already
   reads it as "the client cannot see this." */
.conversations-msg {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: var(--bs-body-bg, #fff);
}
.conversations-msg-internal {
  background: #fff8e1;
  border-color: #f0e0a0;
}
.conversations-msg-badge {
  margin-left: 0.5rem;
}
.conversations-msg-body {
  margin-top: 0.25rem;
}
/* A member forwarded this mail in; the author is the original sender. The
   wrapper is a strip to the message's edges, above the email's author line. */
.conversations-msg-forwarded {
  margin: -0.5rem -0.75rem 0.5rem;
  padding: 0.375rem 0.75rem;
  background: #e9ecef;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem 0.375rem 0 0;
}
.conversations-msg-forwarded .closer-eyebrow { white-space: normal; }
.conversations-msg-forwarded-note {
  margin-top: 0.125rem;
  white-space: pre-line;
  font-size: 14px;
  font-weight: 400;
  color: #2d2c2f;
}
/* A forwarded email that came with no words of its own, usually just a file. */
.conversations-msg-no-text { color: #495057; }
/* People a client's reply copied that it did not add: each with Add as CC. */
.conversations-msg-copied {
  margin-top: 0.15rem;
  font-size: 14px;
  color: #495057;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}
.conversations-msg-copied-person {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
/* A ## line that was not used. */
.conversations-msg-unapplied {
  margin-top: 0.15rem;
  font-size: 14px;
  color: #495057;
}
/* message_text renders a message's Markdown links (a task's internal note
   opens its thread) — they should read as links, same pink as notes. */
.conversations-msg-body a { color: #e91e63; }
.conversations-msg-body p:last-child {
  margin-bottom: 0;
}
/* My Desk's heading at the Close Summary / Usage size (1.5rem, 600) — a
   bare <h1> read twice the size of every other page title (Jesse,
   2026-09-16), and the New conversation <details> sat above its midline. */
.conversations-panel h1.fo-title,
.desk-board h1.fo-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
/* My Desk's title row: .card-header's padding without its grey band,
   which belongs to the filter bar only. */
.desk-title-row {
  padding: 0.5rem 1rem;
}
.conversations-new {
  display: flex;
  align-items: center;
  /* Optical: the boxes centre exactly, but the 24px heading's glyphs sit low
     in their line box, so the 29px button read high beside "My Desk". */
  margin-top: 3px;
}


.conversations-participant-add {
  max-width: 20rem;
}
.conversations-side-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color, #6c757d);
}
/* Zendesk's auxiliary fields (conversations/aux_fields.py): the rails' Fields
   (a native conversation's, a Zendesk ticket's), a link's open icon beside its
   box, and the read-only ticket JSON. */
.conversations-aux-row { display: flex; align-items: center; gap: .375rem; }
.conversations-aux-row .form-control { flex: 1 1 auto; min-width: 0; }
.conversations-side .conversations-aux-row textarea.form-control { height: auto; padding: .3rem .5rem; resize: vertical; }
/* A box edited but not yet submitted / posted: the subject's Pending amber. */
.conversations-side .conversations-aux-row .form-control.is-staged { background: #fff3e0; border-color: #b26a00; }
/* Assignee / Due picked without Update: pending until Submit, in the same amber (TM-2066). */
.conversations-side .fo-combobox:has(> select.is-staged) .fo-combobox-display,
.conversations-side .conversations-due-row input.is-staged { background: #fff3e0; border-color: #b26a00; }
/* The requester stands out in the rail: the brand pink, a size up (Jesse, 2026-10-28). */
.conversations-side .conversations-requester .conversations-requester-name { color: #e91e63; font-size: 14px; text-decoration: none; }
.conversations-side .conversations-requester a.conversations-requester-name:hover { text-decoration: underline; }
/* A Zendesk ticket's rail (ticket_rail.html): CC, Followers and Tags as their
   chips above the box that adds one. */
.desk-ticket-rail-chips { display: flex; flex-direction: column; align-items: stretch; gap: .35rem; }
.desk-ticket-rail-chips > .aplus-people-chips:empty { display: none; }
.desk-ticket-rail-note { font-size: 14px; color: #495057; }
.conversations-aux-open { color: #250d47; text-decoration: none; }
.conversations-aux-open:hover { color: #e91e63; }
.conversations-ticket-json > summary,
.payroller-raw-config > summary { cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: #250d47; }
.conversations-ticket-json > summary::-webkit-details-marker,
.payroller-raw-config > summary::-webkit-details-marker { display: none; }
.conversations-ticket-json > summary:hover,
.payroller-raw-config > summary:hover { color: #e91e63; }
.conversations-ticket-json[open] > summary .closer-task-section-caret,
.payroller-raw-config[open] > summary .closer-task-section-caret { transform: rotate(90deg); }
.conversations-ticket-json pre {
  max-height: 20rem;
  overflow: auto;
  margin: .375rem 0 0;
  padding: .5rem;
  font-size: 14px;
  color: #2d2c2f;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  white-space: pre;
}
/* Which client a firm page is narrowed to, with the way back out. */
.conversations-scope-chip {
  background: #f0ecfa;
  border-radius: 1rem;
  padding: 0.1rem 0.6rem;
  font-size: 12px;
}
.conversations-scope-chip a {
  text-decoration: none;
  margin-left: 0.25rem;
}
/* Composer: the internal/external choice is the highest-stakes control
   on the page, so it reads as tabs rather than a checkbox. */
.conversations-composer-tabs {
  margin-bottom: 0.5rem;
}
.conversations-composer-tabs .nav-link {
  border: 1px solid transparent;
  background: none;
  /* My Desk's tab strip (.desk-tab): its size, purple ink, and the
     selected tab in solid dark purple with white text. */
  font-size: 14px;
  line-height: 1.2;
  padding: 0.3rem 0.55rem;
  color: #250d47;
}
/* li.nav-item .nav-link.active (app-wide) paints the active tab white. */
.conversations-composer-tabs li.nav-item .nav-link.active,
.conversations-composer-tabs li.nav-item .nav-link.active:hover {
  background: #250d47;
  border-color: #250d47;
  color: #fff;
}
.conversations-mail-pref {
  margin-top: 0.25rem;
  font-size: 14px;
}
.conversations-mail-history {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0;
  font-size: 14px;   /* the rail's 12px, not the theme label's .875rem */
  flex-basis: 100%;  /* its own line, so Save mail starts the next */
}
.conv-mail-domain-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.conv-mail-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  max-width: 20rem;
}
.conv-mail-domain-form .form-label {
  margin: 0;
}
.conv-mail-domain-form .form-control,
.conv-mail-domain-form .form-select {
  width: 100%;
}
.conv-mail-records {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.conv-mail-dns-intro {
  margin: 1rem 0 0;
}
.conv-mail-dns-intro + .conv-mail-records {
  margin-top: 0.5rem;
}
.conv-mail-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}
.conv-mail-record-kind {
  font-weight: 600;
  min-width: 6rem;
}
.conv-mail-record-name,
.conv-mail-record-value {
  word-break: break-all;
}
.conv-mail-dns-record {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}
.conv-mail-dns-record:last-child {
  border-bottom: none;
}
.conv-mail-dns-head {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.15rem;
}
.conv-mail-dns-head .conv-mail-record-kind {
  min-width: 0;
}
.conv-mail-dns-field {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: baseline;
  margin-top: 0;
}
.conv-mail-dns-label {
  color: #6b7280;
  font-size: 14px;
}
.conv-mail-dns-field code,
.conv-mail-dns-head .conv-mail-record-valid {
  word-break: break-all;
  font-size: 14px;
  margin: 0;
}
.conv-mail-status-verified {
  color: #157347;
}
.conv-mail-status-waiting {
  color: #997404;
}
.conv-mail-status-failed {
  color: #b02a37;
}
.conv-mail-field {
  position: relative;
  width: 100%;
}
.conv-mail-field .form-control {
  padding-right: 1.75rem;
}
.conv-mail-field-clear {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  border: 0;
  background: none;
  padding: 0;
  color: #888;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.conv-mail-field-clear:hover {
  color: #333;
}
.conv-mail-intake-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}
.conv-mail-intake-row .conv-mail-field {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.conv-mail-intake-host {
  white-space: nowrap;
}
.conv-mail-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.conv-mail-actions .btn {
  white-space: nowrap;
}
.conv-mail-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.conv-mail-check .form-check-input {
  margin: 0;
  flex: none;
}
.conv-mail-check .form-check-input[type=checkbox] { width: 16px; height: 16px; margin: 0 !important; flex: none; }
/* Firm Settings → Email: every client's default address (Jesse, 2026-10-26), a long roster
   scrolling inside its own box with the header pinned to the box's top. */
.conv-mail-defaults-search { max-width: 26rem; margin-bottom: .5rem; }
.conv-mail-defaults-scroll { max-height: 22rem; overflow-y: auto; border-bottom: 1px solid #dee2e6; }
.conv-mail-defaults-scroll .fo-check-table > thead > :where(tr) > th { top: 0; }
.conv-mail-defaults td { vertical-align: middle; font-size: 14px; color: #2d2c2f; }
.conversations-recipients {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: #fbfaff;
}
.conversations-recipient {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}
.conversations-recipient-field {
  width: 5.5rem;
  flex: 0 0 auto;
}
.conversations-recipient-note {
  font-size: 14px;
  color: #6c757d !important;   /* the composer placeholder's grey; .text-muted (#7b809a) read too faint */
  margin-top: 0.25rem;
}
/* Zendesk-familiar status colours: the vocabulary is theirs, so the
   colour coding should be too — people read these before the words.
   New stays ZD's yellow-orange (the status dot's #f5a623 family), not a
   purple of our own (Jesse, 2026-09-02). Pending is the dot's blue
   (#1f73b7); it used to be a second amber, so Pending and New read as
   the same chip (TM-2488). Open is the dot's red so it doesn't take
   that blue. */
.conversations-status-new     { background: #fdeed6; color: #8a4b00; }
.conversations-status-open    { background: #fde8e7; color: #a3201c; }
.conversations-status-pending { background: #e5f1fb; color: #1f73b7; }
.conversations-status-hold    { background: #eceff1; color: #455a64; }
.conversations-status-solved  { background: #dbf3e0; color: #1c6b34; }

/* Due dates: red past, yellow today, green ahead, with the day count
   under it so "Aug 21" doesn't need mental arithmetic. */
.conversations-due-overdue { color: var(--bs-danger); font-weight: 600; }
.conversations-due-today   { color: #7a5600; font-weight: 600; }
.conversations-due-ahead   { color: #1c6b34; }
.conversations-due-past    { color: #98a2b3; }
.conversations-due-days {
  font-size: 14px;
  color: var(--bs-secondary-color, #6c757d);
}

/* Panel filterbar + chips — the APlus queue shape, so the two products
   read the same way. */
/* The Wrangler filter body's inset: its filters sit 4px down / 5px in, and
   the box pads 6px bottom / right (.mr-individual-filter + .top-table). */
.conversations-queue-header {
  padding: 4px 6px 6px 5px;
}
.conversations-queue-header > :last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
.conversations-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.conversations-search-wrap {
  position: relative;
  flex: 1 1 18rem;
  max-width: 20rem;   /* Conversations' width wherever the filter row has room to spare (My Meetings) */
}
/* The filter row's controls at the btn-sm buttons' height (29px, 12px type), on every page that
   uses it (Conversations, Desk, My Meetings), so the row reads as one line. */
.conversations-search {
  width: 100%;
  height: 29px;
  padding: 0 0.5rem 0 1.85rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem;
  font-size: 14px;
}
.conversations-search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-secondary-color, #6c757d);
  font-size: 12px;
}
.conversations-select {
  height: 29px;
  padding: 0 0.5rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem;
  font-size: 14px;
  min-width: 11rem;
}
.conversations-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
}
.conversations-chip {
  border: 1px solid transparent;
  border-radius: 1rem;
  padding: 0.1rem 0.65rem;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.75;
}
.conversations-chip-active {
  opacity: 1;
  border-color: currentColor;
  font-weight: 600;
}
.conversations-chip-count {
  margin-left: 0.3rem;
  font-weight: 600;
}
.conversations-count {
  font-size: 12px;
}
.conversations-empty {
  margin: 2rem 0;
  text-align: center;
}
/* Chips must read as pressable. Flat tinted text looked like a legend. */
.conversations-chip {
  background: var(--bs-tertiary-bg, #f1f0f5);
}
.conversations-chip:hover {
  filter: brightness(0.96);
}
.conversations-chip-active {
  box-shadow: inset 0 0 0 1px currentColor;
}
/* Participants read as one line: name, role, email, remove. */
.conversations-participant {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.2rem 0;
}
.conversations-participant-name summary {
  display: inline;
}
.conversations-participant-email {
  font-size: 14px;
  color: var(--bs-secondary-color, #6c757d);
}
.conversations-participant .conversations-inline-form {
  flex-basis: 100%;
}
/* The composer body had no visible box — it read as broken. */
.conversations-composer-body {
  border: 1px solid var(--bs-border-color, #dee2e6);
  background: var(--bs-body-bg, #fff);
}
.conversations-new[open] > summary {
  margin-bottom: 0.5rem;
}
/* The site's .form-control is borderless, which made every input on
   these forms read as disabled grey placeholder text rather than
   something you can type in (seen in the browser, 2026-08-24). Give the
   conversations forms real boxes. */
.conversations-new-form .form-control,
.conversations-participant-add .form-control,
.conversations-inline-form .form-control,
.conversations-composer .form-control,
.desk-bulk-edit-form .form-control {
  border: 1px solid var(--bs-border-color, #dee2e6);
  background: #fff;   /* not --bs-body-bg: that is #fafafa, which reads as disabled */
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
}
/* The row count sat next to the title as an all-but-invisible number. */
.conversations-count {
  background: var(--bs-tertiary-bg, #f1f0f5);
  border-radius: 1rem;
  padding: 0.1rem 0.55rem;
  font-size: 12px;
}
/* My Desk's "N of M SHOWN": the filter chips' 10px bold type (the caps are
   in the text itself — the "of" stays lower case), in the selected scope
   chip's dark purple. */
.conversations-panel .conversations-count,
.desk-board .conversations-count,
.fathom-meetings .conversations-count { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: #250d47; }
/* The Hide / Show Filters pill (the Wrangler .fo-filters-chip): less room
   before the arrow, a little more between it and the label. */
.desk-filters-toggle { padding-left: 0.4rem; }
.desk-filters-arrow { margin-right: 0.3rem; }
.conversations-filterbar .mr-select-btn,
.aplus-queue-filterbar .mr-select-btn { height: 29px; line-height: 27px; }
/* Beside "Filters" in the dark header bar. */
.desk-filters-count { margin-left: 0.5rem; vertical-align: middle; }
/* Label-to-count gap on every filter chip: the markup's space is enough. */
.conversations-panel .conversations-chip-count { margin-left: 0.1rem; }
/* Client email on/off. Off is the resting state and reads neutral;
   ON is deliberately loud, because it means real mail leaves here. */
.conversations-email-btn {
  border: 1px solid var(--bs-border-color, #dee2e6);
  background: var(--bs-body-bg, #fff);
  border-radius: 1rem;
  padding: 0.15rem 0.7rem;
  font-size: 0.8125rem;
  color: var(--bs-secondary-color, #6c757d);
  cursor: pointer;
}
.conversations-email-btn.is-on {
  background: #dbf3e0;
  border-color: #1c6b34;
  color: #1c6b34;
  font-weight: 600;
}
.conversations-remove-error {
  flex-basis: 100%;
  font-size: 14px;
  color: #b3261e;
}
/* "Your unsent reply, kept from before" under a restored composer box
   (composer-draft.js). */
.composer-draft-note {
  font-size: 14px;
  color: #6c757d;
  margin: 0.25rem 0;
}
.composer-draft-note .composer-draft-chip {
  font-size: 12px;
  margin-right: 6px;
}
.composer-draft-discard {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  font-size: inherit;
}
/* Zendesk: an internal note's writing box is the amber, and the field
   around it (Send to, the composer chrome) stays white. A public reply's
   box is white too. */
.conversations-composer-internal .conversations-composer-body,
.desk-bulk-edit-internal .desk-bulk-edit-body,
.desk-bulk-note {
  background: #fff8e1;
  border-color: #f0e0a0;
}
.conversations-composer-internal .conversations-recipients,
.conversations-composer-external .conversations-composer-body,
.conversations-composer-external .conversations-recipients {
  background: #fff;
  border-color: #dee2e6;
}
/* External participants on an internal reply: shown, greyed, and
   unselectable — so it's visible WHY they aren't getting it. */
.conversations-recipient.is-blocked {
  opacity: 0.45;
}
.conversations-recipient.is-blocked span {
  text-decoration: line-through;
}
.conversations-self-copy {
  gap: 0.4rem;
  margin-top: 0.35rem;
}
/* Split submit: posts AND moves the status, Zendesk's shape. */
.conversations-submit {
  position: relative;
  display: inline-flex;
}
.conversations-submit-main,
.conversations-submit-caret {
  background: #2f3437;
  color: #fff;
  border: none;
  height: 32px;   /* Zendesk's small button, not the rail's 2.1rem */
  padding: 0 12px;
  font-size: 14px;   /* sentence case, so the app's 14px text (Christopher, 2026-11-13) */
  cursor: pointer;
}
.conversations-submit-main {
  border-radius: 4px 0 0 4px;
}
.conversations-submit-caret {
  border-radius: 0 4px 4px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-inline: 8px;
}
.conversations-submit-main:hover,
.conversations-submit-caret:hover {
  background: #1f2426;
}
/* The press, however it came (click, ⌘/Ctrl+Enter, ctrl+option+O/P/S —
   thread-panel.js flashes .is-pressed), then .is-posting until it lands. */
.conversations-submit-main {
  transition: transform 80ms ease, background-color 80ms ease;
}
.conversations-submit-main:active,
.conversations-submit-main.is-pressed {
  transform: scale(0.96);
  background: #0f1213;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}
.conversations-submit-main.is-posting {
  opacity: 0.7;
  cursor: progress;
}
.conversations-status-menu {
  position: absolute;
  bottom: calc(100% + 0.35rem);
  right: 0;
  min-width: 12rem;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  z-index: 20;
}
.conversations-status-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: none;
  background: none;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}
.conversations-status-menu button:hover {
  background: var(--bs-tertiary-bg, #f1f0f5);
}
.conversations-status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.15rem;
  display: inline-block;
}
/* Saturated, not the pills' pastel fills — at 11px a tint reads as grey.
   Zendesk's own coding, which is what everyone here already scans for. */
.conversations-status-dot.conversations-status-new     { background: #f5a623; }
.conversations-status-dot.conversations-status-open    { background: #e02b27; }
.conversations-status-dot.conversations-status-pending { background: #1f73b7; }
.conversations-status-dot.conversations-status-hold    { background: #2f3437; }
.conversations-status-dot.conversations-status-solved  { background: #87929d; }
.conversations-status-dot.conversations-status-closed  { background: #c4cbd2; }

/* Tags. Inherited ones (team, requester) render quieter and carry a
   source icon instead of a remove control — they aren't this
   conversation's to give away. */
.conversations-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.conversations-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: #e7e2f4;
  color: #3b2f63;
  border-radius: 1rem;
  padding: 0.05rem 0.55rem;
  font-size: 0.75rem;
}
.conversations-tag form {
  display: inline;
}
.conversations-tag button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
/* The x's stand-in while a removal saves (conversations-composer.js). */
.conversations-tag-spinner { width: .6rem; height: .6rem; border-width: .1em; vertical-align: middle; }
.conversations-tag-inherited {
  background: var(--bs-tertiary-bg, #f1f0f5);
  color: var(--bs-secondary-color, #6c757d);
}
.conversations-tag-row {
  margin-left: 0.35rem;
}
.conversations-tag-add input {
  min-width: 12rem;
}





/* Inline requester/CC editing: the field IS the control. */
.conversations-inline-edit summary {
  cursor: pointer;
  list-style: none;
}
.conversations-inline-edit summary::-webkit-details-marker {
  display: none;
}
.conversations-inline-edit summary:hover {
  text-decoration: underline dotted;
}
.conversations-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.conversations-inline-form input {
  flex: 1 1 10rem;
  min-width: 0;
}

/* Events sit quieter than messages — they're what happened, not what
   someone said. */
.conversations-event {
  font-size: 14px;
  color: #495057;   /* was the secondary grey, too faint to read */
  padding: 0.25rem 0.25rem 0.25rem 0.5rem;
  margin-bottom: 0.25rem;
}
.conversations-event-val { color: #1f2430; }   /* the message body's ink */
.conversations-event .text-muted,
.conversations-msg-head .text-muted { color: #495057 !important; }   /* a message's date too: dark, not muted */
/* A status event's sides as the status chips, at the table's 10px. */
.conversations-event-chip { font-size: 12px; padding: .2rem .5rem; }
/* A tag event's names as the rail's tag chips. */
.conversations-event-tag { font-size: 12px; }
/* The event's and a message's date at 11px, under the line's text. */
.conversations-event [data-localtime],
.conversations-msg-head [data-localtime] { font-size: 14px; }

.conversations-participant-remove {
  display: inline;
}
.conversations-participant-remove button {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  color: #495057;
  cursor: pointer;
  line-height: 1;
}
.conversations-participant-remove button:hover { color: #e91e63; }
.closer-fin-panel-actions { justify-content: center; align-items: flex-end; }
.closer-fin-assign-label {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #250d47;
  margin: 0;
  flex: 1 1 auto;
  max-width: 16rem;
}
.closer-fin-assign-label .form-select { font-weight: 400; width: 100%; }
.closer-fin-assign-label :is(.form-select, .fo-combobox) { text-transform: none; letter-spacing: normal; }

/* Sticky Close Tasks header: strip + toggle survive the scroll. */
.closer-task-header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(16, 24, 40, .06);
}
/* Collapsed Scheduled / Recently completed sections. */
.closer-task-section > .closer-task-section-summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  list-style: none;
  padding: .35rem .25rem;
}
.closer-task-section-summary::-webkit-details-marker { display: none; }
.closer-task-section-caret { color: #9aa1ab; transition: transform .12s ease; }
.closer-task-section[open] > summary .closer-task-section-caret { transform: rotate(90deg); }
/* Why the Closer moved a task (closer/_task_closer_why.html): 12px body ink, weight 400. */
.closer-task-why > .closer-task-section-summary { padding: .15rem 0; font-size: 14px; color: #495057; }
.closer-task-why-body { font-size: 14px; font-weight: 400; color: #2d2c2f; padding: 0 0 .25rem 1.1rem; }
.closer-task-why-body p, .closer-task-why-body li { font-size: 14px; font-weight: 400; }
.closer-task-why-body ul { padding-left: 1rem; }
/* Popover selects kept visibly boxed — the browser default was rendering
   borderless intermittently inside the edit popovers. */
.closer-edit-form select.form-select,
.closer-edit-form input.form-control {
  border: 1px solid #d0d5dd;
}

/* ---------------------------------------------------------------------------
   Close Tasks: the status strip, the Cards ⇄ Checklist toggle, and the
   CHECKLIST table (B&J preparer/reviewer + status views, 2026-08-18).
   --------------------------------------------------------------------------- */
.closer-task-statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}
.closer-statusbar-chip { border: 0; cursor: pointer; }
.closer-statusbar-chip .closer-note-number { margin-left: .25rem; }
/* The lit filter chip: a dark purple ring, and the other chips step back (Jesse, 2026-10-13:
   "if one is active, it needs to be more obvious"). A box-shadow, not an outline: the focus
   reset drops a mouse-focused button's outline, so the old ring vanished on the very click
   that lit it and came back on the next click elsewhere — the flicker. */
#closer-task-statusbar .closer-statusbar-chip.closer-statusbar-active { box-shadow: 0 0 0 2px #250d47; outline: none; }
#closer-task-statusbar:has(.closer-statusbar-active) .closer-statusbar-chip:not(.closer-statusbar-active) { opacity: .45; }
#closer-task-statusbar .closer-statusbar-chip:focus:not(:focus-visible) { outline: none; }

/* Firm Findings group chips + the group-header rows they inject
   (closer/includes/firm_findings.html — Jesse, 2026-08-31: group by
   client or by check). */
.fo-firm-findings-groupbar { display: inline-flex; gap: .25rem; margin-bottom: .5rem; }
.fo-firm-findings-grouphead td {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6a5a87;
  background: #f7f5fb;
  padding: 0.45rem 0.5rem 0.3rem;
  border-top: 1px solid #e4def2;
}
/* Toolbar: search at left, the view chips beside it; sortable headers; the
   # column; the product chips a drawer's summary line carries (Jesse,
   2026-09-11). Grouped views collapse each (client, check) pair with 2+
   findings into one summary row that opens to its lines. */
.fo-firm-findings-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.fo-firm-findings-toolbar .fo-firm-findings-groupbar { margin-bottom: 0; }
.fo-firm-findings-searchbox { width: 18rem; max-width: 100%; }
.fo-firm-findings-sort {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}
/* :is(i, svg): Font Awesome swaps the <i> for an <svg>, which an `i` rule never reached, so the marker sat
   against its label (Christopher, 2026-11-12). */
.fo-firm-findings-sort :is(i, svg) { margin-left: .4rem; opacity: .45; }
th[aria-sort="ascending"] .fo-firm-findings-sort :is(i, svg),
th[aria-sort="descending"] .fo-firm-findings-sort :is(i, svg) { opacity: 1; }
/* The Checks tab's Findings header (TM-2478): one of its two icons shows, by the sort, and the
   button hovers hot pink on the dark purple head. */
th[aria-sort="descending"] .fo-sort-icon-off,
th:not([aria-sort="descending"]) .fo-sort-icon-on { display: none; }
.fo-check-table th .fo-check-findings-sort { cursor: pointer; }
.fo-check-table th .fo-check-findings-sort:hover { color: #e91e63; }
/* The Reconciler's bank Description / Amount headers (TM-2482): the same button, hot pink on hover. */
.rec-divide-col-head .rec-divide-sort { cursor: pointer; }
.rec-divide-col-head .rec-divide-sort:hover { color: #e91e63; }
.fo-firm-findings-count { width: 3.5rem; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.closer-pill.fo-firm-findings-product {
  margin-right: .3rem;
  padding: .05rem .5rem;
  font-size: 12px;
  background: #efedf7;
  color: #4c4762;
}
.fo-firm-findings-drawer { cursor: pointer; }
.fo-firm-findings-drawer:hover td { background: #faf9fd; }
.fo-firm-findings-drawer-toggle {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.fo-firm-findings-caret {
  width: .9rem;
  font-size: .7rem;
  color: #6a5a87;
  transition: transform .15s ease;
}
.fo-firm-findings-drawer[aria-expanded="true"] .fo-firm-findings-caret { transform: rotate(90deg); }
.closer-pill.fo-firm-findings-drawer-count { padding: .05rem .45rem; font-size: 12px; }
.fo-firm-findings-drawer-summary { color: #495057; }
.fo-firm-findings-drawer-summary .fo-finding-dot { display: inline-block; margin-right: .35rem; }
.fo-firm-findings-drawer-row > td:first-child { padding-left: 1.6rem; }
.fo-firm-findings-age { white-space: nowrap; }
/* How long a finding has been open (closer/includes/finding_age_chip.html);
   amber once it has sat a month (findings_store.STALE_FINDING_DAYS). */
.fo-finding-age {
  flex: 0 0 auto;
  font-size: 14px;
  color: #495057;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fo-finding-age-stale { color: #a14e00; font-weight: 600; }
.closer-view-btn { border: 0; cursor: pointer; background: #f1f0f5; color: #4c4762; }
.closer-view-btn:hover { background: #e7f1ff; }
.closer-view-active { background: #4F5FB7; color: #fff; cursor: default; }
.closer-checklist-table { width: 100%; }
.closer-checklist-table th {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #250d47;
  padding: .3rem .5rem;
  border-bottom: 0;
  text-align: left;
}
.closer-checklist-table td {
  font-size: 14px;
  color: #2d2c2f;
  padding: .32rem .5rem;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
}
.closer-checklist-table tbody tr:hover > td { background: #e7f1ff; }
.closer-checklist-row.closer-checklist-done td { opacity: .55; }
.closer-checklist-link { color: #250d47; font-weight: 600; text-decoration: none; }
.closer-checklist-link:hover { color: #e91e63; }
.closer-checklist-skill { color: #4F5FB7; font-size: 14px; }

/* Per-account finalize — mark reconciled right in the divide; the PDF lands on Bank Data. */
.rec-divide-finalize-btn {
    margin-left: 0.6rem;
    padding: 0.05rem 0.5rem;
    border: 1px solid #4F5FB7;
    border-radius: 0.3rem;
    background: #fff;
    color: #4F5FB7;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.rec-divide-finalize-btn:hover {
    background: #DEE2FE;
}

/* Everything on one centre line. This was flex-end, which lined a label's text up with its input's
   baseline but left every OTHER control sitting lower than the bare text beside it — "Ending
   balance" hung below "Statement through 8/7/2026" (Jesse, 2026-08-11). Centring the whole panel
   fixes the mismatch at its source instead of exempting one element type at a time. */
.rec-divide-finalize-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    padding: 0.5rem 0.7rem;
    background: #F5F6FE;
    border-bottom: 1px solid #DEE2FE;
    font-size: 14px;
    /* Pins under the account band while the rows scroll, so unticking a row and reading the
       Difference never needs a scroll up and back (Vyomesh, 2026-09-11: "freeze this reconciler
       box"). Its height is published on its own card as --rec-finalize-h (MatchupTable) so that
       card's column headers pin below it. Above the headers (2), level with the band (3). */
    position: sticky;
    top: calc(var(--rec-toolbar-h, 0px) + var(--rec-band-h, 2.3rem));
    z-index: 3;
}

.rec-divide-finalize-panel .form-control {
    display: inline-block;
    width: auto;
}

.rec-divide-finalize-msg {
    font-size: 14px;
    color: #250D47;
}

/* The finalize arithmetic, stacked like a grade-school subtraction: statement over ledger, a rule,
   then the difference (Jesse, 2026-08-11). Answers "am I in or out" before Reconcile is clicked.
   Fixed-width label column so the two amounts line up on their right edge. */
.rec-divide-finalize-math {
    display: inline-block;
    min-width: 21rem;
}

/* Labels flush left, amounts flush right — one grid, so all three rows share both edges. */
.rec-divide-finalize-math-row {
    display: grid;
    grid-template-columns: 1fr 8rem;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 0.05rem 0;
}

/* A statement-only account's Cleared line: nothing is matched line by line, so it is greyed like the
   band's "statement-only account" text (Jesse, 2026-11-01). */
#reconciler-workflow-tab .rec-divide-finalize-math-row--no-lines { color: #495057; opacity: .65; }

/* The amount column. MONOSPACE so the two operands and the difference align digit-for-digit —
   proportional figures drift by a pixel or two per glyph and the column reads crooked (Jesse,
   2026-08-11). The editable statement balance and the read-only ledger balance must land on the
   SAME right edge, so the input's border+padding is cancelled to match the plain span. */
.rec-divide-finalize-math-amt,
.rec-divide-finalize-math-row .form-control {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
    padding-right: 0.4rem;
}

.rec-divide-finalize-math-amt {
    padding-right: calc(0.4rem + 1px);   /* +1px for the input's border, so the edges agree */
}

/* The reconciling items, under the difference: what was booked by the closing date but had not
   cleared it. Collapsed by default — the COUNT and net are the answer most of the time, and the
   list is there for the times they aren't (Amy's marketcheck #0234, four August entries against a
   statement no bank activity had reached). Same grid columns as the math rows above so the
   amounts stay on the one right edge. */
.rec-divide-finalize-outstanding {
    margin-top: 0.3rem;
    font-size: 14px;
}

.rec-divide-finalize-outstanding > summary {
    display: grid;
    grid-template-columns: 1fr 8rem;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #250D47;
}

.rec-divide-finalize-outstanding-body {
    margin-top: 0.2rem;
    max-height: 14rem;
    overflow-y: auto;
}

.rec-divide-finalize-outstanding-group em {
    display: block;
    color: #6B7280;
    font-style: normal;
    margin: 0.2rem 0 0.1rem;
}

/* "clears 8/06" beside an uncleared item that later hit the bank — a footnote, not a category. */
.rec-divide-finalize-clears {
    margin-left: 0.4rem;
    font-size: 14px;
    color: #5B3F8C;
    background: #EBE4F5;
    border-radius: 8px;
    padding: 0 0.4rem;
    white-space: nowrap;
}

/* date · payee · amount. The payee column takes the slack so long names truncate, not the date. */
.rec-divide-finalize-outstanding-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr 6rem;
    gap: 0.4rem;
    align-items: baseline;
}

.rec-divide-finalize-outstanding-row > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The rule under the two operands. */
.rec-divide-finalize-math-total {
    border-top: 1px solid #250D47;
    margin-top: 0.15rem;
    padding-top: 0.15rem;
}

.rec-divide-finalize-gl--out {
    color: #B42318;
    font-weight: 600;
}

.rec-divide-finalize-gl--in {
    color: #067647;
    font-weight: 600;
}

/* Jumping to an account must land ON its header, not under the sticky toolbar. Without this the
   band scrolls to y=0 and the toolbar covers the header, so you arrive at anonymous rows and think
   the jump missed (Jesse, 2026-08-11). Tracks the toolbar's height plus a little air. */
.rec-divide-account {
    scroll-margin-top: 7rem;
}


.rec-statuses-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.rec-statuses-table th {
    text-align: left;
    font-weight: 600;
    color: #6B7280;
    border-bottom: 1px solid #DEE2FE;
    padding: 0.25rem 0.4rem;
    white-space: nowrap;
}

.rec-statuses-table td {
    padding: 0.25rem 0.4rem;
    border-bottom: 1px solid #F1F2FB;
    white-space: nowrap;
}

/* A statement on file that nothing has signed off yet — the reason to visit that account. */
.rec-statuses-waiting {
    color: #B42318;
    font-weight: 600;
}

/* A non-zero Drift / Difference. Same red as Waiting: both mean "this account needs you". */
/* Statuses on the Bank Data strip is an ACTION (it opens a panel over whatever is showing), so
   it never takes the active-tab treatment its neighbours do. */
.rec-statuses-break {
    color: #B42318;
    font-weight: 600;
}

/* Rec Status tab: accounts × months. The glyph colours are the ONLY signal, so they are the same
   three the rest of Reconciler uses — the panel's #B42318 red for "needs you" (drift), an amber
   for a statement waiting (work, not a break), and a muted green for reconciled-and-ties so a
   clean year reads as a quiet field rather than a wall of colour. */
.rec-status-grid {
    padding-bottom: 0.5rem;
}

.rec-status-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.25rem 0 0.5rem;
}

.rec-status-summary {
    display: flex;
    gap: 0.75rem;
    color: #6B7280;
}

.rec-status-scroll {
    overflow-x: auto;
    scrollbar-gutter: stable;
}

.rec-status-table {
    border-collapse: collapse;
    font-size: 14px;
    width: 100%;
}

.rec-status-table th {
    border-bottom: 1px solid #DEE2FE;
    color: #6B7280;
    font-weight: 600;
    padding: 0.3rem 0.35rem;
    text-align: center;
    white-space: nowrap;
}

.rec-status-table td {
    border-bottom: 1px solid #F1F2FB;
    padding: 0.15rem 0.35rem;
    text-align: center;
    white-space: nowrap;
}

/* The account column stays put while two years of months scroll under it. */
.rec-status-table .rec-status-account-head,
.rec-status-table .rec-status-account {
    background: #FFFFFF;
    left: 0;
    position: sticky;
    text-align: left;
    z-index: 1;
}

.rec-status-cell {
    min-width: 6.5rem;
}

/* The chip. One family for the cells, the summary line, the legend and the drill-down's Status
   column, so a state reads identically wherever it appears. Colours: the panel's #B42318 red for
   drift, amber for a statement waiting (work, not a break), a pale green for Ready (good news,
   still work), the full green for Reconciled, grey for nothing on file. */
.rec-status-chip {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.15rem 0.5rem;
    position: relative;
    white-space: nowrap;
}

.rec-status-chip-btn {
    cursor: pointer;
}

.rec-status-chip-btn:hover,
.rec-status-chip-btn:focus-visible {
    box-shadow: 0 0 0 1px currentColor;   /* a 1px ring in the chip's own text colour (2026-10-09) */
    outline: none;
}

.rec-status-chip-selected {
    box-shadow: 0 0 0 2px #250d47;
}

/* The same chip on the divide's account band, sized to the counts line it sits in. */
.rec-divide-rec-light {
    margin-left: 0.6rem;
    padding: 0 0.45rem;
    font-size: 14px;
    line-height: 1.1rem;
    vertical-align: baseline;
    cursor: default;
}

.rec-status-chip-reconciled   { background: #DCFCE7; border-color: #86EFAC; color: #15803D; }
.rec-status-chip-ready        { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.rec-status-chip-unreconciled,
.rec-status-chip-waiting      { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.rec-status-chip-drifted      { background: #FEE2E2; border-color: #FCA5A5; color: #B42318; }
.rec-status-chip-open         { background: #F3F4F6; border-color: #E5E7EB; color: #6B7280; }
/* The activity census (2026-09-29), the firm Months grid's two marks: a statement whose month's
   bank activity isn't all there (a deeper amber), and a month with neither (hatched grey). A month
   reconciled through a statement that closed before month end, with rows after it unbooked
   (status_grid UNBOOKED, 2026-10-23), wears the same deeper amber: the month's activity isn't done. */
.rec-status-chip-stmt-noact,
.rec-status-chip-unbooked     { background: #FDE68A; border-color: #F59E0B; color: #92400E; }
.rec-status-chip-noact {
    background: repeating-linear-gradient(135deg, #F3F4F6 0 4px, #E5E7EB 4px 7px);
    border-color: #D1D5DB;
    color: #4B5563;
}

/* A month inside a reconciled range with nothing of its own: a quiet dash, not a chip. */
.rec-status-quiet {
    color: #C7CBD9;
}

/* A statement waiting BEHIND a reconciled month (mid-month rec, month-end statement not yet
   signed off): the month stays Reconciled, and this small amber dot says there is more to do. */
.rec-status-waiting-dot {
    background: #B45309;
    border: 1px solid #fff;
    border-radius: 50%;
    height: 0.5rem;
    position: absolute;
    right: -0.15rem;
    top: -0.15rem;
    width: 0.5rem;
}

/* Rows that need something get a faint wash so the eye finds them before reading chips. */
.rec-status-row-drifted td      { background: #FFF5F4; }
.rec-status-row-unreconciled td,
.rec-status-row-waiting td      { background: #FFFBF3; }
.rec-status-row-selected td     { background: #cfe2ff; }

.rec-status-legend {
    color: #6B7280;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0;
}

/* The key, in the toolbar's spare width (Jesse, 2026-09-29) rather than under the grid. */
.rec-status-legend--inline {
    gap: 0.35rem 0.5rem;
    margin: 0 0 0 auto;
}

.rec-status-legend li {
    align-items: center;
    display: flex;
    gap: 0.35rem;
}

/* The drill-down: the old statuses panel's columns, for ONE account, under the grid. */
.rec-status-detail {
    border-top: 1px solid #DEE2FE;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.rec-status-detail-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rec-status-detail-facts {
    margin-left: 0.5rem;
}

.rec-status-detail-table {
    width: auto;
    min-width: 60%;
}

.rec-status-detail-selected td {
    background: #cfe2ff;
}

.rec-status-detail-actions {
    white-space: nowrap;
}

.rec-status-detail-actions .btn + .btn {
    margin-left: 0.75rem;
}

.rec-status-superseded {
    color: #6B7280;
    font-style: italic;
    margin-left: 0.4rem;
}

/* A sub-account's read-only source, on Reconcilable Accounts: it reads the parent's setting and
   says so, rather than offering a control that would mean nothing here. */
.rec-accounts-source-inherited {
    color: #6B7280;
    font-size: 14px;
    font-style: italic;
}

/* "↓ also set N sub-accounts" beside a parent's source dropdown — a link-styled button, quiet
   next to the dropdown it acts from, so the per-card pickers still read as the primary control. */
.rec-accounts-cascade {
    background: none;
    border: 0;
    padding: 0 0.2rem;
    color: #2563EB;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.rec-accounts-cascade:hover {
    text-decoration: underline;
}

.rec-accounts-cascade:disabled {
    color: #98a2b3;
    cursor: default;
    text-decoration: none;
}

/* A sub-account band's one-line provenance: "sub-account of <parent>". Deliberately quiet — it
   replaces the feed source and rec status, which belong to the parent, not this card. */
.rec-divide-subaccount {
    color: #6B7280;
}

/* A link that acts on the page (scroll to an account) rather than navigating — <button> for the
   semantics, styled as the link it reads as. */
.rec-divide-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

/* The inline PDF preview under the finalize panel — the report itself, not a digest. */
.rec-divide-finalize-preview {
    padding: 0.5rem 0.7rem 0.7rem;
    background: #F5F6FE;
    border-bottom: 1px solid #DEE2FE;
}

/* Tie to statement: the chosen statement's own lines against the walk's cleared rows, under the
   (sticky) finalize panel so a long list scrolls with the grid instead of pinning over it. */
.rec-tie {
    position: relative;
    padding: 0.5rem 2rem 0.7rem 0.7rem;
    background: #F5F6FE;
    border-bottom: 1px solid #DEE2FE;
    font-size: 14px;
}

.rec-tie-close {
    position: absolute;
    top: 0.2rem;
    right: 0.4rem;
    font-size: 1rem;
    line-height: 1;
}

.rec-tie-proof--ok {
    color: #1E7B4F;
}

.rec-tie-proof--warn {
    color: #A3261E;
}

.rec-tie-summary {
    margin-top: 0.25rem;
}

.rec-tie-group {
    margin-top: 0.5rem;
}

.rec-tie-group-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
    cursor: pointer;
}

.rec-tie-row {
    display: grid;
    grid-template-columns: 6rem 9rem minmax(0, 1fr) 7rem;
    gap: 0.6rem;
    padding: 0.1rem 0;
    border-top: 1px solid #E7E9FB;
}

.rec-tie-acct {
    color: #5A6072;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rec-tie-amt {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rec-tie-hint {
    margin-left: 0.4rem;
    font-size: 14px;
    color: #5B3F8C;
    background: #EBE4F5;
    border-radius: 8px;
    padding: 0 0.4rem;
}

/* An ACTIVE search must announce itself — rows quietly vanishing behind a forgotten filter reads
   as data loss (Jesse, 2026-08-09). Pulses only while text is in the box. */
.rec-divide-search--active {
    border-color: #4F5FB7;
    animation: rec-search-pulse 2s ease-in-out infinite;
}

@keyframes rec-search-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 95, 183, 0.45); }
    50% { box-shadow: 0 0 0 5px rgba(79, 95, 183, 0.12); }
}

/* Show/Hide Matched wears the SECTION colors it controls: off = matched-green ("show me the
   green rows"), on = outstanding-pink ("hide them; back to the work"). Jesse, 2026-08-09. */
.rec-divide-toggle-btn {
    align-self: flex-end;
    margin-bottom: 0;
    border: 1px solid #cfe5d6;
    background: #edf7f0;
    color: #1e5631;
}

/* Generic .btn:hover strips the section colors (Jesse, 2026-08-09: outline and shading vanish
   on mouseover) — restate them, one shade deeper so hover still registers. Doubled with .btn:
   Bootstrap's bundle loads AFTER this file, so its bare-.btn hover (transparent bg + border)
   outranked the single-class form at equal specificity — the first fix changed nothing. */
.btn.rec-divide-toggle-btn:hover,
.btn.rec-divide-toggle-btn:focus {
    border-color: #b9d9c3;
    background: #e2f1e7;
    color: #1e5631;
}

.btn.rec-divide-toggle-btn--hiding {
    border-color: #ecd5d2;
    background: #fdf3f2;
    color: #8a2f27;
}

/* The Will-Process filter while ACTIVE — the SAME peach-orange the will-process rows wear
   (#ffe8d2), so the button and the rows it reveals read as one system. Distinct from the green
   showing / red hiding pair and from the amber pending tint. */
.btn.rec-divide-toggle-btn--only {
    border-color: #f2c398;
    background: #ffe8d2;
    color: #8a4b0f;
}

.btn.rec-divide-toggle-btn--only:hover,
.btn.rec-divide-toggle-btn--only:focus {
    border-color: #ecb27c;
    background: #ffdfc0;
    color: #8a4b0f;
}

.btn.rec-divide-toggle-btn--hiding:hover,
.btn.rec-divide-toggle-btn--hiding:focus {
    border-color: #e0bfbb;
    background: #fbe9e7;
    color: #8a2f27;
}

/* The Discuss/Process submit bar rides the toolbar's baseline instead of floating above it.
   NO chrome of its own here: the white card padding+border made Process visibly taller than the
   bare buttons beside it (Jesse, 2026-08-09) — on the toolbar, the buttons ARE the surface. */
.rec-divide-toolbar .rec-divide-submit-bar {
    align-self: flex-end;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}


/* The statement waiting to be reconciled, announced on the account ribbon before the panel
   opens — the anchor should be visible from the Reconcile… button, not discovered behind it. */
.rec-divide-stmt-hint {
    color: #4F5FB7;
    font-weight: 600;
}

/* Label-as-button file input for the finalize panel's own statement upload. */
.rec-divide-stmt-upload {
    margin-bottom: 0;
    cursor: pointer;
}

.rec-divide-stmt-upload.disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Bank Data's dropzone, sized for a toolbar row rather than a page section: this one sits inline
   in the finalize panel next to prose and buttons, so it can't take that zone's full-width block
   padding. Everything else — border, hover, is-dragover — is inherited unchanged, which is the
   point of reusing the classes. */
.rec-divide-stmt-dropzone {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    margin-bottom: 0;
    min-width: 22rem;
}


.rec-divide-stmt-dropzone.disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Stacked over three short lines so it stops eating the width the arithmetic needs. Centred, not
   ragged-right: the three lines are a single caption for the block beside them, and centring is
   what makes them read as one label rather than three fragments (Jesse, 2026-08-11). */
.rec-divide-finalize-stmt {
    font-weight: 600;
    color: #250D47;
    align-self: center;
    line-height: 1.15;
    text-align: center;
}

/* "Register moved" — the reconciled period no longer adds up to its own reconciliation. Red on
   the ribbon because it invalidates the green claim sitting right next to it. */
.rec-divide-drift-warn {
    margin-left: 0.45rem;
    padding: 0 0.4rem;
    border: 1px solid #e5484d;
    border-radius: 0.3rem;
    background: #fff0f0;
    color: #b3261e;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* The cache-incomplete variant: our copy of the ledger is short of QuickBooks' balance sheet
   (QuickBooks Payroll never reaches the API), so the register sum is not a drift verdict.
   Amber — a caveat, not an alarm — unless the nightly balance-sheet check itself found the
   register moved, in which case it goes red like a real break. */
.rec-divide-drift-warn--incomplete {
    border-color: #d9a400;
    background: #fff8e1;
    color: #7a5b00;
    font-weight: 600;
}

.rec-divide-drift-warn--incomplete.rec-divide-drift-warn--broken {
    border-color: #e5484d;
    background: #fff0f0;
    color: #b3261e;
}

/* The Statuses panel's marker under a Drift figure that came from the nightly balance-sheet
   verdict rather than a live cache sum. */
.rec-statuses-cache-incomplete {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #7a5b00;
    white-space: nowrap;
}

/* Undo reconciliation — the ↩ beside "reconciled through". Quiet until hovered:
   it sits in every reconciled account's ribbon, and a loud control there would
   read as a suggestion. */
/* The Undo of a reconciliation and its confirm: the smallest buttons (fo-check-toggle-btn) — red Undo,
   grey Cancel — set apart from the link before them (Christopher, 2026-10-27). */
.rec-divide-undo-rec, .rec-divide-undo-rec-yes, .rec-divide-undo-rec-no { margin-left: 0.35rem; }
.rec-divide-undo-rec-confirm { color: #b3261e; font-size: 14px; font-weight: 600; }

/* A book line's reconciled mark (TM-2123) opens the rec that cleared it: the green chip stays
   a chip, not a link, until hovered. */
a.rec-chip-link.closer-status-closed, a.rec-chip-link.closer-status-closed:visited { color: #1b7a3d; text-decoration: none; }
a.rec-chip-link.closer-status-closed:hover { color: #e91e63; text-decoration: none; }

.rec-divide-undo-rec-msg {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.rec-divide-drift-warn:hover {
    background: #ffe1e1;
}

/* The explainer: what changed since the rec, with links to the transactions themselves. */
.rec-divide-drift-panel {
    padding: 0.5rem 0.7rem;
    background: #fff7f7;
    border-bottom: 1px solid #f2c4c2;
    font-size: 14px;
    color: #250D47;
}

.rec-divide-drift-summary {
    margin-bottom: 0.4rem;
}

.rec-divide-drift-table {
    width: 100%;
    font-size: 14px;
    color: #2d2c2f;
    border-collapse: collapse;
}

.rec-divide-drift-table th,
.rec-divide-drift-table td {
    text-align: left;
    padding: 0.3rem 8px;   /* the header cell's 8px sides, so the columns line up */
    border-top: 1px solid #dee2e6;
    vertical-align: top;
}

.rec-divide-drift-table th {
    border-top: none;
    color: #6b7280;
    font-weight: 600;
}

.rec-divide-drift-amt {
    text-align: right !important;
    white-space: nowrap;
}

/* The sign-off inside an entry's own history: the one place it divides something, since every
   row of the change table is newer than the rec by construction. Brand purple, and a filled
   node on the timeline's rail rather than the pale dot the version items get, because it is
   the fixed point the versions are read against — not another thing that happened. */
.rec-divide-drift-signoff-item::before {
    background: #250d47 !important;
    width: 11px !important;
    height: 11px !important;
    left: calc(-0.9rem - 7px) !important;
}

.rec-divide-drift-signoff-op {
    background: #ede9f6;
    color: #250d47;
    border: 1px solid #250d47;
}

.rec-divide-drift-signoff-note {
    font-size: 14px;
    font-style: italic;
    color: #250d47;
}

/* The drift replay can take seconds — a spinner and a breathing ellipsis so the modal reads as
   working rather than hung. */
.rec-divide-drift-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0.25rem;
    color: #667085;
    font-size: 0.9rem;
}

.rec-divide-drift-loading .rec-inline-spin {
    width: 1em;
    height: 1em;
    color: #e91e63;
}

.rec-divide-drift-ellipsis::after {
    content: '…';
    display: inline-block;
    width: 1.1em;
    text-align: left;
    animation: rec-divide-drift-ellipsis 1.4s steps(4, end) infinite;
    clip-path: inset(0 100% 0 0);
}

@keyframes rec-divide-drift-ellipsis {
    to { clip-path: inset(0 0 0 0); }
}

.usage-modal-loading .rec-inline-spin {
    margin-right: 0.4em;
}

/* The per-period breakdown sits above the change table with its own breathing room. */
.rec-divide-drift-periods {
    margin-bottom: 0.5rem;
    max-width: 34rem;
}

.rec-divide-drift-fix {
    margin-left: 0.6rem;
}

.rec-divide-drift-diff del {
    color: #b3261e;
}

/* A link-styled button: dismissing the inline PDF preview matches the open-in-tab link. */
.rec-divide-preview-close {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

/* ============================================================ *
 * APlus review screen (templates/aplus2/review.html)
 * Two panes: document viewer left, proposal panel right; the
 * action buttons sit on the RIGHT next to the fields (Vyomesh:
 * BDC/Ramp muscle memory).
 * ============================================================ */

.aplus-review-header {
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* The ticket's name: an active tab in the header strip, before BACK, bold dark purple. */
.nav-link.active.aplus-review-title {
    font-size: .875rem;
    font-weight: 700;
    color: #250d47;
}

.aplus-ticket-link {
    white-space: nowrap;
    font-size: 14px;
}

.aplus-header-spacer {
    flex: 1;
}

/* Harvest timer (harvest-timer.js): a clock button that shows the running
   clock while it times this page's work, plus (APlus) a tiny auto toggle. */
.fo-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.fo-timer-btn {
    gap: 0.35rem;
    font-variant-numeric: tabular-nums;
}

/* Idle = icon only; the label carries text only while a timer runs. */
.fo-timer-label:empty {
    display: none;
}

.fo-timer-btn.fo-timer-running {
    background: #ede9f5;
    color: #5a2ca0;
    border-color: #c9bde3;
}

.fo-timer-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.fo-timer-icon {
    display: inline-flex;   /* the box harvest-timer.js redraws the icon in */
    font-size: 0.8rem;
}

.fo-timer-auto {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    margin: 0;
}

.fo-timer-auto input {
    margin: 0;
    flex: none;
}


/* The top bar's copy (web/components/harvest_timer.html): dressed like the
   Demo mode switch beside it — no outline, same muted purple, centered in
   the bar — and a soft pill while it runs. */
.fo-timer-nav-item {
    display: flex;
    align-items: center;
    padding-right: 1rem;
}

.fo-timer-btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    color: #6a5a87;
    font-size: 0.85rem;
    line-height: 1.2;
    cursor: pointer;
}

.fo-timer-btn-nav:hover:not(:disabled) {
    background: #e7f1ff;
}

.fo-timer-btn-nav .fo-timer-icon {
    font-size: 0.95rem;
}

.fo-timer-nav-item .fo-timer-auto {
    font-size: 14px;
    color: #6a5a87;
    line-height: 1;
    padding-top: 1px;   /* "auto" on the same line as "Demo mode" beside it, not 1px above */
}

/* The task menu beside the clock. The closed control stays short; the open
   list (desk-combobox, body-appended) is as wide as the task names. */
.fo-timer-task,
.fo-timer .fo-combobox {
    width: 8.5rem;
    flex: none;
}

.fo-timer .fo-combobox-display {
    height: 29px;
    padding: 2px 6px 0;
}

.fo-timer .fo-combobox-display-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bill.com cluster picker (aplus2-bdc-host.js). */
.aplus-bdc-host {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}

/* Prev/next/help — quiet square buttons in the header. */
.aplus-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid #d7d2e0;
    border-radius: 0.4rem;
    background: #fff;
    color: #250D47;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

.aplus-nav-btn:hover {
    background: #e7f1ff;
}

/* The J/K arrows name their target: the ticket number in small type
   beside the chevron, the rest in the tooltip (APlus meeting 2026-09-25). */
.aplus-nav-peek {
    gap: 0.3rem;
}

.aplus-nav-peek-id {
    font-size: 14px;
    color: #6c6684;
    letter-spacing: 0.01em;
}

.aplus-ticket-summary {
    font-size: 14px;
    color: #495057;
}

/* Ticket-context cards now live in the right pane (Jesse, 2026-08-17), so
   they need their own chrome — they used to borrow card-header's. */
.aplus-summary-card {
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.6rem;
    background: #faf9fc;
    border: 1px solid #ede9f5;
    border-radius: 0.4rem;
}

.aplus-review-layout {
    display: grid;
    /* --aplus-docs-col is set by the drag handle (aplus2-review.js); the
       fallback is the original split. */
    grid-template-columns: var(--aplus-docs-col, minmax(320px, 5fr)) 8px minmax(380px, 6fr);
    gap: 0.5rem;
    align-items: start;
}

/* The drag handle between the invoice and the proposal (Jenn, 2026-08-27). */
.aplus-pane-resize {
    position: sticky;
    top: 0.5rem;
    align-self: start;
    height: var(--fo-check-scroll-h, calc(100dvh - 112px));   /* measured by fo-check-scroll.js */
    width: 8px;
    border-radius: 4px;
    cursor: col-resize;
    background: transparent;
    transition: background-color 120ms ease;
}

.aplus-pane-resize::before {
    content: "";
    display: block;
    width: 2px;
    height: 100%;
    margin: 0 auto;
    border-radius: 2px;
    background: #dfe1ef;
}

.aplus-pane-resize:hover,
.aplus-review-layout.aplus-resizing .aplus-pane-resize {
    background: #eceef8;
}

.aplus-review-layout.aplus-resizing {
    user-select: none;
}

/* The PDF <object> swallows mouse events mid-drag; freeze the pane. */
.aplus-review-layout.aplus-resizing .aplus-docs-pane {
    pointer-events: none;
}



.aplus-desc-to-lines {
    white-space: nowrap;
}

.aplus-terms-pick {
    font-size: 14px;
    max-width: 9.5rem;
    padding: 0.1rem 0.3rem;
}

/* Marked Duplicate from the status menu (aplus-group-done palette + this). */
.aplus-status-duplicate {
    text-decoration: underline;
    text-decoration-color: #b45309;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Each pane sticks and scrolls on its own instead of the whole page scrolling
   as one crunchy column (Jesse, 2026-08-17). Sticky + internal overflow works
   regardless of the app-shell's own scroll container. */
.aplus-docs-pane,
.aplus-units-pane {
    position: sticky;
    top: 0.5rem;
    align-self: start;
    min-height: 0;
}

.aplus-docs-pane {
    max-height: var(--fo-check-scroll-h, calc(100dvh - 112px));   /* measured by fo-check-scroll.js */
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* Right pane needs a DEFINITE height (not max-height) so the flex column can
   split it — with max-height the proposal collapsed to a sliver while the
   conversation took the whole pane (Jesse, 2026-08-17). */
.aplus-units-pane {
    height: var(--fo-check-scroll-h, calc(100dvh - 112px));   /* measured by fo-check-scroll.js */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Proposal takes its natural height (scrolls if taller) but is CAPPED so the
   conversation below always keeps room for its composer — without the cap a
   tall proposal squeezed the conversation until the Post button fell off the
   bottom of the pane (Jesse, 2026-08-18: "can't get to the post button at all
   without collapsing"). Press C to give the proposal the whole pane.
   40%, not 56%: at 56% a laptop left the conversation too short to show a
   message under the reply box (Valentin, TM-2496). The divider still moves it. */
.aplus-proposal-region {
    flex: 0 1 auto;
    max-height: 40%;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* Slim header bar over the proposal — carries the collapse toggle and, when
   collapsed, stays put so a click brings the proposal back (Jesse, 2026-08-17). */
.aplus-proposal-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    margin-bottom: 0.5rem;
    background: #faf9fc;
    border: 1px solid #ede9f5;
    border-radius: 0.5rem;
}

.aplus-proposal-bar-title {
    font-weight: 650;
    font-size: 0.9rem;
    color: #250d47;
}

/* Press C / the ⤢: collapse the proposal to just its bar so the conversation
   takes the rest of the pane. The bar itself stays visible. */
.aplus-units-pane.aplus-reading .aplus-proposal-region {
    display: none;
}

/* Ticket conversation (the Zendesk thread) at the bottom of the right pane —
   its own scroll region, capped to ~45% of the pane so the proposal keeps room,
   and grows to fill when the proposal is collapsed (Jesse, 2026-08-17). */
.aplus-conversation {
    /* basis 0 (not auto): grow into the leftover space below the proposal
       instead of competing on its own tall content, which squished the
       proposal to a sliver (Jesse, 2026-08-17). */
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    margin-top: 0.8rem;
    border: 1px solid #ede9f5;
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.aplus-units-pane.aplus-reading .aplus-conversation {
    max-height: 100%;
    margin-top: 0;
}

/* The collapse toggle sits at the right of the conversation header, next to
   the Zendesk link (press C also works). */
.aplus-conversation-head-right {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.aplus-conversation-collapse {
    border: 1px solid #ede9f5;
    background: #fff;
    color: #5a2ca0;
    border-radius: 0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex: none;
}

.aplus-conversation-collapse:hover {
    background: #e7f1ff;
}

.aplus-conversation-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: #faf9fc;
    border-bottom: 1px solid #ede9f5;
}

.aplus-conversation-title {
    font-weight: 650;
    font-size: 0.9rem;
    color: #250d47;
}

.aplus-conversation-zd { white-space: nowrap; }

/* The ticket's people (requester / assignee / CC / followers), read-only. */
.aplus-people {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
    padding: 0.4rem 0.7rem;
    border-bottom: 1px solid #ede9f5;
    background: #faf9fc;
    font-size: 14px;
    color: #1f2430;
}

.aplus-people-label {
    color: #495057;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.06em;
    margin-right: 0.1rem;
}

/* Live Zendesk ticket status in the review header — ZD's own status colours so
   an already-solved ticket reads at a glance (Jesse, 2026-08-19). */
/* The 10px caps chip in the Desk's Zendesk status fills (.conversations-status-*). */
.aplus-zd-status {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #455a64;
    background: #eceff1;   /* default / closed */
    white-space: nowrap;
}

/* Parked booking failure, surfaced at the TOP of the unit card in red so it
   isn't buried at the bottom of the proposal (Jesse, 2026-08-19). */
.aplus-booking-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e6b3ad;
    border-left: 4px solid #c0392b;
    border-radius: 0.4rem;
    background: #fdecea;
    color: #7a1c12;
    font-size: 14px;
}


.aplus-zd-status-new { background: #fdeed6; color: #8a4b00; }
.aplus-zd-status-open { background: #d9ecff; color: #14487a; }
.aplus-zd-status-pending { background: #fdf0d0; color: #7a5600; }
.aplus-zd-status-hold { background: #eceff1; color: #455a64; }
.aplus-zd-status-solved,
.aplus-zd-status-closed { background: #dbf3e0; color: #1c6b34; }

/* Queue header: the filter box left-aligned above the tab strip, like every
   other list search. ⌘⇧K focuses it (aplus2-queue.js). */
.aplus-queue-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-bottom: 0.6rem !important;
}

/* Search + client/assignee dropdowns on one row. */
.aplus-queue-filterbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.aplus-queue-select {
    max-width: 13rem;
    font-size: 14px;
}

/* Saved views picker + inline "name it" form (AJ/Jesse, 2026-08-26). */
.aplus-queue-views {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}




/* The Clients multi-select sits in the filterbar at the other controls' height. */
.aplus-queue-filterbar .desk-multi {
    margin: 0;
}

.desk-multi-exclude {
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

/* An EXCLUDING filter reads apart from an including one at a glance. */
.mr-select-btn-active.mr-select-btn-exclude {
    border-color: #b91c1c;
    color: #b91c1c;
}

.aplus-queue-view-select {
    max-width: 10rem;
}

.aplus-queue-view-name-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.aplus-queue-view-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}
.aplus-queue-view-share label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    cursor: pointer;
}

/* The whole row opens the review page (aplus2-queue.js), so it reads as a
   target — the far-right Review link is just the canonical href. */
.aplus-queue-table tbody tr {
    cursor: pointer;
}

.aplus-queue-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* The former sub-tabs as toggleable filter chips (union semantics). */
.aplus-queue-chips {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* Turnaround strip under the queue's filter chips (_queue_table.html):
   how long A/P is actually taking, quotable to a client. */
.aplus-queue-stats {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0.4rem 0 0.15rem;
    padding-top: 0.4rem;
    font-size: 14px;
}

.aplus-queue-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
}

.aplus-queue-stat-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.aplus-queue-stat-label {
    color: #495057;
}

/* Metric histograms (aplus2-metrics.js): hover a stat tile for its
   histogram, click to pin the by-client / by-preparer panel. */
.aplus-queue-stats {
    position: relative;
}

.aplus-queue-stat[data-metric] {
    cursor: pointer;
    border-radius: 4px;
    padding: 0 0.2rem;
}

.aplus-queue-stat[data-metric]:hover,
.aplus-queue-stat[data-metric]:focus,
.aplus-queue-stat-pinned {
    background: #e7f1ff;
    outline: none;
}

.aplus-metrics-excluding {
    text-decoration: underline dotted;
}

.aplus-metrics-popover {
    position: absolute;
    z-index: 30;
    background: #fff;
    border: 1px solid #d9d2ea;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    padding: 0.4rem 0.5rem;
    width: 280px;
}

.aplus-metrics-popover-caption,
.aplus-metrics-hint {
    color: #495057;
    font-size: 14px;
    margin: 0 0 0.25rem;
}

.aplus-metrics-svg {
    display: block;
    width: 100%;
    height: 72px;
}

.aplus-metrics-overall .aplus-metrics-svg {
    height: 214px;
}

.aplus-metrics-row .aplus-metrics-svg {
    height: 14px;
}

.aplus-metrics-bar {
    fill: #7c5cc4;
}

.aplus-metrics-bar-outlier {
    stroke: #c2410c;
    stroke-width: 1.5;
}

.aplus-metrics-bar-clickable {
    cursor: pointer;
}

.aplus-metrics-bar-clickable:hover {
    fill: #5a2ca0;
}

.aplus-metrics-axis {
    font-size: 7px;
    fill: #6b7280;
    text-anchor: middle;
}

.aplus-metrics-panel {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0 0.25rem;
    font-size: 14px;
    /* Its own scroll box — the queue stays where it is underneath. */
    max-height: 70vh;
    overflow-y: auto;
}

.aplus-metrics-bell {
    fill: none;
    stroke: #c2410c;
    stroke-width: 1.5;
}

.aplus-metrics-mark {
    stroke: #1f2937;
    stroke-width: 1;
}

.aplus-metrics-mark-sd {
    stroke-dasharray: 3 2;
    stroke: #6b7280;
}


.aplus-metrics-row-value {
    font-variant-numeric: tabular-nums;
    color: #374151;
    text-align: right;
}

.aplus-metrics-bar-weekend {
    opacity: 0.45;
}

.aplus-metrics-rows {
    /* The height of the overall chart beside it; the rest scrolls. */
    max-height: 214px;
    overflow-y: auto;
}

.aplus-metrics-ticket-scroll {
    max-height: 40vh;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}

/* Dark purple like every .aplus-subtable header: a light one here left their
   white text unreadable. */
.aplus-metrics-ticket-scroll thead th {
    position: sticky;
    top: 0;
    background: #250d47;
    z-index: 1;
}

.aplus-metrics-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.aplus-metrics-panel-header .aplus-queue-chip {
    margin-left: auto;
}

.aplus-metrics-toggle {
    margin: 0;
    color: #495057;
    cursor: pointer;
}

.aplus-metrics-panel-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem 1.5rem;
}

.aplus-metrics-section {
    min-width: 0;
}

.aplus-metrics-section h6 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.aplus-metrics-row {
    display: grid;
    grid-template-columns: 11rem 1fr 5rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
    cursor: pointer;
    border-radius: 3px;
}

.aplus-metrics-row:hover,
.aplus-metrics-row:focus {
    background: #e7f1ff;
    outline: none;
}

.aplus-metrics-row-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
}

.aplus-metrics-tickets {
    margin-top: 0.6rem;
}

.aplus-metrics-outlier-row td {
    color: #c2410c;
}

.aplus-metrics-trend {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.aplus-metrics-trend .aplus-metrics-panel-header h6 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.aplus-metrics-trend-cut {
    font-size: 14px;
    max-width: 16rem;
}

.aplus-metrics-trend-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    font-size: 14px;
    color: #374151;
    margin-bottom: 0.4rem;
}

.aplus-metrics-trend-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.aplus-metrics-trend-swatch {
    display: inline-block;
    width: 26px;
    height: 0;
    border-top: 3px solid #7c5cc4;
}

.aplus-metrics-trend-swatch-p90 {
    border-top: 3px dashed #c2410c;
}

.aplus-metrics-trend-swatch-bars {
    width: 12px;
    height: 12px;
    border: 0;
    background: #7c5cc4;
}

.aplus-metrics-trend-body {
    /* Chart full width, the week table under it — side by side the table's
       nine columns got clipped (Jesse, 2026-10-09). */
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.aplus-metrics-trend-plot {
    min-width: 0;
}

.aplus-metrics-trend-svg {
    display: block;
}

.aplus-metrics-trend-table {
    max-height: 260px;
    max-width: 60rem;
}

.aplus-metrics-trend-label {
    font-size: 14px;
    fill: #4b5563;
    text-anchor: middle;
}

.aplus-metrics-trend-ylabel {
    text-anchor: end;
}

.aplus-metrics-trend-endlabel {
    text-anchor: start;
    font-weight: 700;
    stroke: none;
}

.aplus-metrics-trend-line {
    fill: none;
    stroke-width: 2.25;
}

.aplus-metrics-trend-median {
    stroke: #7c5cc4;
    fill: #7c5cc4;
}

.aplus-metrics-trend-p90 {
    stroke: #c2410c;
    fill: #c2410c;
}

polyline.aplus-metrics-trend-median,
polyline.aplus-metrics-trend-p90 {
    fill: none;
}

polyline.aplus-metrics-trend-p90 {
    stroke-dasharray: 6 4;
}

.aplus-metrics-trend-dot,
.aplus-metrics-trend-endlabel {
    stroke: none;
}

.aplus-metrics-timing {
    margin-top: 0.75rem;
    max-width: 52rem;
}

.aplus-metrics-timing h6 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.aplus-metrics-timing-low td {
    color: #c2410c;
}

.aplus-metrics-auto {
    display: inline-block;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.aplus-metrics-auto-on {
    background: #dcfce7;
    color: #166534;
}

.aplus-metrics-auto-off {
    background: #fee2e2;
    color: #991b1b;
}

.aplus-metrics-auto-unknown {
    color: #495057;
}

/* Time per ticket: one colour per line (8, cycling). */
.aplus-metrics-tt-0 {
    stroke: #7c5cc4;
    fill: #7c5cc4;
    color: #7c5cc4;
}

.aplus-metrics-tt-bg-0 {
    background: #7c5cc4;
}

.aplus-metrics-tt-1 {
    stroke: #c2410c;
    fill: #c2410c;
    color: #c2410c;
}

.aplus-metrics-tt-bg-1 {
    background: #c2410c;
}

.aplus-metrics-tt-2 {
    stroke: #0f766e;
    fill: #0f766e;
    color: #0f766e;
}

.aplus-metrics-tt-bg-2 {
    background: #0f766e;
}

.aplus-metrics-tt-3 {
    stroke: #2563eb;
    fill: #2563eb;
    color: #2563eb;
}

.aplus-metrics-tt-bg-3 {
    background: #2563eb;
}

.aplus-metrics-tt-4 {
    stroke: #b45309;
    fill: #b45309;
    color: #b45309;
}

.aplus-metrics-tt-bg-4 {
    background: #b45309;
}

.aplus-metrics-tt-5 {
    stroke: #be185d;
    fill: #be185d;
    color: #be185d;
}

.aplus-metrics-tt-bg-5 {
    background: #be185d;
}

.aplus-metrics-tt-6 {
    stroke: #4d7c0f;
    fill: #4d7c0f;
    color: #4d7c0f;
}

.aplus-metrics-tt-bg-6 {
    background: #4d7c0f;
}

.aplus-metrics-tt-7 {
    stroke: #475569;
    fill: #475569;
    color: #475569;
}

.aplus-metrics-tt-bg-7 {
    background: #475569;
}

polyline.aplus-metrics-tt-line {
    fill: none;
    stroke-width: 2.25;
}

polyline.aplus-metrics-tt-before {
    stroke-dasharray: 5 4;
    stroke-width: 1.75;
    opacity: 0.8;
}

/* The rolling trendline: bold over the line's points, which fade behind it. */
polyline.aplus-metrics-tt-trend {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

polyline.aplus-metrics-tt-trend.aplus-metrics-tt-before {
    stroke-dasharray: 8 6;
    stroke-width: 3;
}

.aplus-metrics-trend-svg .aplus-metrics-tt-faint {
    opacity: 0.35;
}

.aplus-metrics-tt-dot {
    stroke: none;
}

.aplus-metrics-tt-golive {
    stroke: #1f2937;
    stroke-width: 1;
    stroke-dasharray: 2 3;
}

.aplus-metrics-tt-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    padding: 0.05rem 0.55rem;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
}

.aplus-metrics-tt-filter {
    width: 16rem;
}

.aplus-metrics-tt-bg-off {
    background: #d1d5db;
}

.aplus-metrics-tt-chip-off {
    opacity: 0.45;
}

.aplus-metrics-tt-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.aplus-metrics-tt-key {
    font-size: 14px;
    color: #495057;
    margin: 0 0 0.3rem;
}

.aplus-metrics-tt-table {
    max-width: 100%;
    overflow-x: auto;
}

.aplus-metrics-tt-table table {
    width: auto;
}

.aplus-metrics-tt-table td,
.aplus-metrics-tt-table th {
    padding-right: 1.25rem;
}

.aplus-metrics-tt-table th.aplus-amt {
    white-space: nowrap;
}

.aplus-metrics-tt-pre {
    color: #495057;
    font-style: italic;
}

.aplus-metrics-trend-grid {
    stroke: rgba(0, 0, 0, 0.08);
    stroke-width: 1;
}

/* "APlus 2 vs old way": the 100% line, each client's own baseline. */
.aplus-metrics-trend-grid.aplus-metrics-tt-baseline {
    stroke: rgba(0, 0, 0, 0.35);
}

.aplus-queue-stats-by-client summary {
    cursor: pointer;
    color: #495057;
}

.aplus-queue-stats-by-client[open] {
    /* Own the full row once expanded, so the table is not squeezed
       between two stat tiles. */
    flex-basis: 100%;
}

.aplus-queue-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid #d9d3e8;
    border-radius: 1rem;
    background: #fff;
    color: #4b4763;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

.aplus-queue-chip:hover {
    border-color: #5a2ca0;
    color: #5a2ca0;
    text-decoration: none;
}

/* An ACTIVE chip keeps its lifecycle color and gains a ring + weight —
   the color IS the identity, so the fill never changes (Jesse,
   2026-08-20: chips and Status pills share one palette). */
.aplus-queue-chip-active {
    outline: 2px solid currentColor;
    outline-offset: 1px;
    font-weight: 600;
}

.aplus-chip-count {
    padding: 0 0.35rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.75rem;
}

/* The queue's Client column: name, then the slug small to its RIGHT on the
   same baseline (stacking it beneath lifted the name off the row's line —
   Jesse, 2026-08-28). */
.aplus-client-cell {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    white-space: nowrap;
}

.aplus-client-slug {
    font-size: 14px;
    color: #495057;
}

/* One palette for the request lifecycle, shared by the queue's filter
   chips and its Status pills (and anything else that names a group). */
.aplus-group-processing { background: #ede9fe; color: #6d28d9; border-color: #ddd3f8; }
.aplus-group-needs_review { background: #fef3c7; color: #b45309; border-color: #f3dea1; }
.aplus-group-proposed { background: #dbeafe; color: #1d4ed8; border-color: #bcd5f8; }
.aplus-group-approved { background: #cff5ef; color: #0f766e; border-color: #a8e7dd; }
.aplus-group-booked { background: #dcfce7; color: #15803d; border-color: #b6ecc8; }
.aplus-group-failed { background: #fee2e2; color: #b91c1c; border-color: #f6c5c5; }
.aplus-group-no_bill { background: #e2e8f0; color: #475569; border-color: #cbd5e1; }
/* Waiting: parked on a pending / on-hold ticket, off the desk (2026-08-28). */
.aplus-group-waiting { background: #fce7f3; color: #be185d; border-color: #f5c2dc; }
/* Finishing: booked, a follow-up still out (dimensions, a Ramp payment date). */
.aplus-group-finishing { background: #fff3e0; color: #b26a00; border-color: #f3dea1; }
.aplus-group-done { background: #e9ebef; color: #6b7280; border-color: #d5d9df; }

.aplus-queue-search-wrap {
    position: relative;
    align-self: flex-start;
    width: 100%;
    max-width: 24rem;
}

.aplus-queue-search {
    width: 100%;
    padding: 0.3rem 2.8rem 0.3rem 2rem;   /* room for the icon (left) + kbd hint (right) */
    border: 1px solid #d9d3e8;
    border-radius: 0.4rem;
    font-size: 14px;
}


.aplus-queue-search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a7fa8;
    font-size: 0.8rem;
    pointer-events: none;
}

.aplus-queue-search-kbd {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #6b7280;
    background: #f0ecf7;
    border: 1px solid #d9d3e8;
    border-radius: 0.3rem;
    padding: 0.05rem 0.3rem;
    pointer-events: none;
}

/* Letter-key hint on each queue tab (aplus2-queue.js), a compact muted
   parenthetical so it doesn't compete with the count badge (Jesse, 2026-08-18). */
.aplus-tab-key {
    margin-left: 0.3rem;
    color: #495057;
    font-size: 12px;
    font-weight: 500;
    vertical-align: baseline;
}

/* Subject spans the full width above the inline people fields. */
.aplus-people-field-wide {
    flex: 1 1 100%;
}

.aplus-people-field-wide .aplus-people-input {
    flex: 1 1 auto;
}

.aplus-people-readonly {
    font-size: 14px;
    color: #1f2430;
}

.aplus-people-field {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.aplus-people-input {
    font-size: 14px;
    border: 1px solid #d9d3e8;
    border-radius: 0.3rem;
    padding: 0.12rem 0.35rem;
    min-width: 9rem;
}

.aplus-people-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.aplus-people-chip {
    font-size: 12px;
    background: #ede9f5;
    color: #5a2ca0;
    border-radius: 999px;
    padding: 0.05rem 0.15rem 0.05rem 0.45rem;
    display: inline-flex;
    align-items: center;
}

/* The live-refresh wrapper (aplus2-review.js swaps its innerHTML) must
   not be a box of its own: it sat between .aplus-conversation (column
   flex) and the thread, so the thread never got flex-sized and could not
   scroll in the split pane (Jesse, 2026-08-25). display: contents lets
   the thread stay a direct flex item. */
.aplus-conversation-thread-wrap { display: contents; }

.aplus-conversation-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.6rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* .btn sets overflow:hidden, which makes this flex item's minimum height 0.
   A full screen of comments then shrinks the button and clips its label. */
.aplus-conversation-thread > [data-role="earlier-comments"] {
    flex: none;
    white-space: nowrap;
}

.aplus-comment {
    border: 1px solid #eceaf2;
    border-radius: 0.4rem;
    padding: 0.45rem 0.6rem;
    background: #fff;
}

/* Internal notes read like Zendesk's — a warm tint, set apart from client-facing. */
.aplus-comment-internal {
    background: #fdf7e8;
    border-color: #f2e6c7;
}

.aplus-comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 14px;
    color: #495057;
}

.aplus-comment-author {
    font-weight: 600;
    color: #250d47;
}

.aplus-comment-email {
    font-weight: 400;
    color: #495057;
}

.aplus-comment-badge {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
}

.aplus-comment-public {
    background: #ede9f5;
    color: #5a2ca0;
}

.aplus-comment-note {
    background: #f2e6c7;
    color: #855c0b;
}

.aplus-comment-time {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.aplus-comment-link {
    color: #495057;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}

.aplus-comment-link:hover {
    color: #e91e63;
}

.aplus-comment:target {
    border-color: #250d47;
}

.aplus-comment-body {
    font-size: 14px;
    color: #1f2430;
    line-height: 1.5;
    word-break: break-word;
}
/* A link in a ticket comment reads as one — the native thread's colour
   (.conversations-msg-body a); it was body-black, so a ⌘K link looked like
   plain text once the poll swapped in the server's copy (2026-09-30). */
.aplus-comment-body a { color: #e91e63; }

/* A note's paragraphs (a Zendesk html_body <p> per blank-line-separated
   block, TM-2129): one line's gap between them, the comment's own type. */
.aplus-comment-body p {
    margin: 0 0 0.75em;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}
.aplus-comment-body p:last-child { margin-bottom: 0; }

/* A comment's code block, boxed and monospaced like Zendesk's, so a pasted
   fixed-width table stays aligned; wide ones scroll inside the box rather
   than wrapping. */
.aplus-comment-body pre {
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.45;
    background: #f6f7f9;
    border: 1px solid #e4e7ec;
    border-radius: 0.3rem;
    padding: 0.5rem 0.65rem;
    margin: 0.35rem 0;
    /* Wraps instead of scrolling: a busy ticket was a stack of sideways
       scrollers inside the thread's own scroll (Amy, #mydesk 2026-10-05:
       "i'd rather not have the individual posts scroll"). */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.aplus-comment-body code {
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    background: #f6f7f9;
    border-radius: 0.2rem;
    padding: 0 0.2rem;
}

.aplus-comment-body pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

/* Rendered email body — the actual HTML in a sandboxed iframe (full ZD-style
   fidelity, isolated from our page; no scripts run). Sized to content by JS. */
.aplus-comment-iframe {
    width: 100%;
    min-height: 60px;
    border: none;
    display: block;
    background: #fff;
    border-radius: 0.3rem;
}

/* A long update zipped to a preview: its top under a fade into the card,
   opened in the page flow by the chip below it — never a scrollbar inside
   the update (Jesse, 2026-10-12). thread-panel.js adds the class only when
   the update runs past the preview; keep the height in step with its
   ZIP_PREVIEW_PX. */
.aplus-comment-content-zipped {
    position: relative;
    max-height: 200px;
    overflow: hidden;
}
.aplus-comment-content-zipped::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3rem;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}
.aplus-comment-internal .aplus-comment-content-zipped::after {
    background: linear-gradient(rgba(253, 247, 232, 0), #fdf7e8);   /* .aplus-comment-internal's tint */
}
/* The zip chip: the one chip style (closer-status-new) at the chip size,
   the standard chevron turning down when open. */
.aplus-comment-zip {
    display: block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.aplus-comment-zip:hover { color: #e91e63; }
.aplus-comment-zip .closer-task-section-caret { color: inherit; margin-right: 0.3rem; }
.aplus-comment-zip-open .closer-task-section-caret { transform: rotate(90deg); }

.aplus-comment-attachment {
    display: inline-block;
    margin-top: 0.35rem;
    margin-right: 0.5rem;
    font-size: 14px;
    color: #5a2ca0;
}

.aplus-comment-image {
    display: block;
    max-width: 100%;
    max-height: 240px;
    margin-top: 0.35rem;
    border-radius: 0.3rem;
}

/* Reply composer, pinned at the bottom of the conversation panel — its height
   is dragged with the grip on top (like ZD), so it can take most of the pane.
   The dragged size is --fo-ticket-composer-h, kept in the browser
   (fo-grip-resize.js); 16rem until then, room to write (Jesse, TM-2177). */
.aplus-composer {
    flex: 0 0 auto;
    height: var(--fo-ticket-composer-h, 16rem);
    min-height: 5rem;
    max-height: 88%;
    border-top: 1px solid #ede9f5;
    /* The field around the box stays white. An internal note's writing box
       is the amber (below); a public reply adds the blue accent. */
    background: #fff;
    padding: 0 0.6rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.aplus-composer.aplus-composer-public {
    background: #ffffff;
    border-top: 2px solid #2f6f9e;
}

/* Collapsing the proposal (C) frees the whole pane for the ticket — give the
   composer a tall default so replying gets real room, not a 9rem sliver
   (Jesse, 2026-08-18). A size you dragged still wins. */
.aplus-units-pane.aplus-reading .aplus-composer {
    height: var(--fo-ticket-composer-h, 60%);
}

/* APlus's conversation shares its pane with the proposal, so the reply box
   defaults to at most 45% of it (never under four lines) and the messages
   keep at least 4rem: a box dragged tall on My Desk gives way here instead
   of hiding the messages or clipping the Post button (Valentin, TM-2496). */
.aplus-units-pane .aplus-composer {
    height: var(--fo-ticket-composer-h, min(16rem, 45%));
    min-height: 9rem;
    flex-shrink: 1;
}

/* Basis 0: the messages take what the fields and the reply box leave. */
.aplus-units-pane .aplus-conversation-thread {
    flex: 1 1 0;
    min-height: 4rem;
}

/* The ticket's fields fold under one line in APlus (thread_panel.html's
   fields_fold; aplus2-review.js opens it and remembers). Open, they scroll
   past 40% of the conversation and shrink on a short screen, so the messages
   and Post stay on it. */
.aplus-people-fold {
    flex: 0 1 auto;
    min-height: 2rem;
    max-height: 40%;
    overflow-y: auto;
    background: #faf9fc;
    border-bottom: 1px solid #ede9f5;
}

.aplus-people-fold-summary {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #faf9fc;
    cursor: pointer;
    user-select: none;
}

.aplus-people-fold[open] { min-height: 5rem; }
.aplus-people-fold-summary:hover { color: #e91e63; }
.aplus-people-fold > .aplus-people { border-bottom: 0; padding-top: 0; }

/* The one drag grip on top of a reply box (fo-grip-resize.js): the Zendesk
   ticket's composer and the conversation composer's editor. A short bar at
   rest, hot pink while hovered or dragged, like the column bars. */
.fo-grip-resize {
    flex: 0 0 auto;
    height: 0.7rem;
    cursor: row-resize;
    position: relative;
    touch-action: none;
}

.fo-grip-resize::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.2rem;
    height: 3px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: #c7bfe0;
}

.fo-grip-resize:hover::before,
body.fo-row-resizing .fo-grip-resize::before { width: 3rem; background: #e91e63; }
body.fo-row-resizing { user-select: none; }
body.fo-row-resizing * { cursor: row-resize !important; }

/* The ticket composer's grip runs to its edges, over the composer's padding. */
.aplus-composer-resize {
    margin: 0 -0.6rem 0.15rem;
}

.aplus-composer-body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    border: 1px solid #d9d3e8;
    border-radius: 0.4rem;
    padding: 0.4rem 0.55rem;
    font-size: 14px;
    resize: none;   /* the top grip resizes the whole composer instead */
}
/* Internal note: the writing box itself is the amber an internal note
   already wears (#fff8e1), and the field around it stays white (TM-2498).
   A public reply leaves the box white. The editable box copies this class. */
.aplus-composer:not(.aplus-composer-public) .aplus-composer-body {
    background: #fff8e1;
    border-color: #f0e0a0;
}
.aplus-composer:not(.aplus-composer-public) .aplus-composer-editor:focus {
    border-color: #e91e63;   /* the focused-input standard; the fill stays amber */
    background: #fff8e1;
}

.aplus-composer-status {
    font-size: 14px;
    border: 1px solid #d9d3e8;
    border-radius: 0.35rem;
    padding: 0.1rem 0.3rem;
    background: #fff;
    color: #495057;
}

/* Echo ZD's status colors in the picker (Chrome renders option colors). */
.aplus-composer-status option[value="open"] { color: #c0392b; }
.aplus-composer-status option[value="pending"] { color: #2f6f9e; }
.aplus-composer-status option[value="hold"] { color: #1c2230; }
.aplus-composer-status option[value="solved"] { color: #6b7280; }

/* Discarded is off-the-desk, not a happy "resolved" — a muted chip, not green
   (Jesse, 2026-08-18). */
.closer-status-badge.aplus-status-discarded {
    background: #e9ebef;
    color: #6b7280;
}

/* A rejected UNIT reads as struck, not merely "open" — red-grey pill to
   match its card wash (Jesse, 2026-08-20). */
.closer-status-badge.aplus-status-rejected {
    background: #f0dcd8;
    color: #8a3b30;
}

.aplus-composer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.aplus-composer-chip {
    font-size: 0.75rem;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    display: inline-flex;
    align-items: center;
}

.aplus-composer-chip-x {
    border: none;
    background: none;
    cursor: pointer;
    color: #9aa5b4;
    margin-left: 0.2rem;
    font-size: 0.9rem;
    line-height: 1;
}

/* Pasted/attached images show a thumbnail so you see what you're sending. */
.aplus-composer-chip-img {
    padding: 0.15rem;
}

.aplus-composer-thumb {
    max-height: 2.6rem;
    max-width: 5rem;
    border-radius: 0.25rem;
    display: block;
}

.aplus-composer-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.aplus-composer-attach {
    cursor: pointer;
    color: #5a2ca0;
}

.aplus-composer-toggle {
    font-size: 14px;
    color: #495057;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.aplus-composer-note {
    margin-left: auto;
    font-size: 14px;
    color: #495057;
}

@media (max-width: 992px) {
    .aplus-review-layout {
        grid-template-columns: 1fr;
    }

    .aplus-pane-resize {
        display: none;
    }
}

/* --- Left: documents --- */

/* Keep the PDFs in view while the (longer) proposal pane scrolls. */
.aplus-docs-pane {
    position: sticky;
    top: 1rem;
    align-self: start;
}

@media (max-width: 992px) {
    .aplus-docs-pane {
        position: static;
    }
}

.aplus-doc-card {
    border: 1px solid #e5e1ec;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.aplus-doc-card-hidden {
    display: none;
}

/* Queue PO chips — the "this request has PO touchpoints" signal (2026-09-01). */
.aplus-po-chip {
    display: inline-block;
    margin: 0 0.15rem;
    padding: 0.05rem 0.45rem;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    color: #250D47;
    background: #faf9fc;
    border: 1px solid #e5e1ec;
    border-radius: 0.6rem;
    white-space: nowrap;
}

.aplus-po-chip-procurify {
    background: #ede9f5;
    border-color: #b9a8dd;
    font-weight: 600;
}

/* Bill.com-style attachment tabs — visible only with 2+ documents. */
.aplus-doc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.aplus-doc-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 16rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    color: #250D47;
    background: #faf9fc;
    border: 1px solid #e5e1ec;
    border-radius: 0.4rem;
    cursor: pointer;
}

.aplus-doc-tab:hover {
    background: transparent; color: #e91e63;
}

.aplus-doc-tab-active {
    background: #e7f1ff;
    border-color: #250D47;
    font-weight: 600;
}

.aplus-doc-tab-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.aplus-doc-tab-kind {
    font-size: 0.68rem;
    color: #6c6684;
    white-space: nowrap;
}

.aplus-doc-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: #faf9fc;
    border-bottom: 1px solid #e5e1ec;
}

.aplus-doc-name {
    font-size: 14px;
    font-weight: 600;
    color: #250D47;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.aplus-doc-type {
    background: #ede9f5;
    color: #250D47;
}

.aplus-doc-download {
    font-size: 14px;
}

.aplus-pdf-embed {
    display: block;
    width: 100%;
    /* The document IS the workspace — fill the viewport minus the card
     * chrome instead of stranding white space under a 70vh embed. */
    height: calc(100vh - 9rem);
    min-height: 34rem;
    border: none;
}

/* Populated paid-offline mark: draws the eye (Jesse, 2026-08-16). */
.aplus-paid-toggle-on {
    background: #fff4e5;
    border: 1px solid #f0b429;
    border-radius: 0.4rem;
    padding: 0.3rem 0.4rem;
    font-weight: 600;
}

.aplus-paid-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 14px;
    color: #250d47;
    cursor: pointer;
    line-height: 1.3;
    margin-top: 0.2rem;
}

/* Offline-payment details revealed under the paid toggle (date, txn #,
   amount, memo) — captured with the mark; the payment-booking slice
   consumes them. */
.aplus-paid-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.aplus-paid-input {
    font-size: 14px;
    padding: 0.25rem 0.4rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.35rem;
    color: #250d47;
    background: #fff;
}

/* A value the bank feed proposed rather than a human typing it — tinted so
   the reviewer can see at a glance what they are about to approve on trust
   (Jesse, 2026-08-18: suggest the payment from the feed, including the
   Txn/Check #). Cleared as soon as they edit the field. */
.aplus-paid-input-suggested {
    border-color: #7c3aed;
    background: #faf5ff;
}

/* What the feed matched (or why it couldn't), under the payment fields. */
.aplus-paid-suggestion {
    font-size: 14px;
    color: #52525b;
}

/* A parked booking failure, or a bill nothing will enter — loud where the
   reviewer works. Doubled with .aplus-action-note so the later "help lines
   at body text" rule (.aplus-action-note color) can't turn it grey. */
.aplus-booking-error,
.aplus-action-note.aplus-booking-error {
    color: #b42318;
}

/* A/P SOP editors (templates/aplus2/company_home.html + the Firm SOPs card
   in teams/firm_overview.html) and the company Settings tab. */
.aplus-sop-editor {
    border: 1px solid #e4e4e7;
    border-radius: 0.5rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    background: #fff;
}

.aplus-sop-saved {
    border-color: #2f855a;
}

.aplus-sop-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.aplus-sop-title {
    font-weight: 600;
    color: #250d47;
}

.aplus-sop-meta {
    font-size: 14px;
    color: #495057;
}

.aplus-sop-saved-note {
    color: #2f855a;
    font-weight: 600;
}

.aplus-sop-text {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    line-height: 1.45;
    padding: 0.5rem 0.6rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.35rem;
    color: #250d47;
    background: #fff;
    resize: vertical;
    white-space: pre-wrap;
}

.aplus-sop-readonly {
    background: #fafafa;
    margin: 0;
}

/* Settings sit SIDE BY SIDE — three short stacked cards wasted the whole
   right half of the page (Jesse, 2026-08-23: "use all that space to the
   right and be less tall"). Each row is a column: label on top, control,
   help text under. Narrow screens fall back to stacking. */
.aplus-settings-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 24rem));
    gap: 0.5rem 2rem;
    align-items: start;
}

.aplus-setting-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}

.aplus-settings-form .aplus-lines-actions,
.aplus-settings-form > .aplus-sop-meta {
    grid-column: 1 / -1;
}

.aplus-setting-label {
    font-weight: 600;
    color: #250d47;
    font-size: 14px;
}

/* Re-propose panel under the unit actions, and the "add to SOP?" banner. */
.aplus-repropose {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.aplus-repropose-text {
    font-size: 14px;
}

.aplus-sop-suggestion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: #f4f1fa;
}

/* The editable variant: same look as the code chip, but a full-width
   textarea the reviewer can trim before "Add to SOP". */
.aplus-sop-suggestion-edit {
    display: block;
    width: 100%;
    font-family: var(--bs-font-monospace, monospace);
    resize: vertical;
}

.aplus-sop-suggestion-bullet {
    font-size: 14px;
    color: #250d47;
    background: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    border: 1px solid #e4e4e7;
}

/* AI-suggested provenance chip (account picked from the client's chart). */
.aplus-chip-ai {
    background: #ede9f5;
    color: #250d47;
}

/* Display-only field values (AI notes): the model's output, not an input. */
.aplus-field-readonly {
    background: #faf9fc;
    border-radius: 0.35rem;
    padding: 0.15rem 0.4rem;
    cursor: default;
}

/* --- Right: proposal panel --- */

.aplus-unit-card {
    border: 1px solid #e5e1ec;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
}

.aplus-unit-resolved {
    background: #f7fbf8;
    border-color: #cde8d5;
}

/* A REJECTED unit is struck from the batch — the WHOLE card goes red-grey,
   not just the status pill (Jesse, 2026-08-20; the resolved green read as
   "fine" at a glance). data-status is kept current by aplus2-review.js, so
   reject/un-reject restyles live without a reload. */
.aplus-unit-card[data-status="rejected"] {
    background: #f9f1f0;
    border-color: #e3c8c3;
}

.aplus-unit-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.aplus-kind-pill {
    background: #ede9f5;
    color: #250D47;
}

.aplus-unit-source {
    font-size: 14px;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Checks row: hard signals warn, advisory badges stay muted. */
.aplus-checks-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.aplus-check {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 14px;
    width: fit-content;
}

.aplus-check-hard {
    background: #fff7ed;
    border: 1px solid #f5d3a5;
    color: #b45309;
}

/* Hard DUPLICATE verdicts render as a full-width red banner, not an amber
   chip — a possible dupe is the one thing the reviewer must not scroll past
   (Jesse, 2026-08-20: earth INV-2026-13 was already in Bill.com and the
   card whispered). Matches .aplus-booking-alert's palette. */
.aplus-check-dupe-loud {
    display: block;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e6b3ad;
    border-left: 4px solid #c0392b;
    border-radius: 0.4rem;
    background: #fdecea;
    color: #7a1c12;
    font-size: 14px;
}

.aplus-check-advisory {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: #495057;
}

/* Review warnings (aplus2/review_warnings.py, Jesse 2026-10-07): the
   mistakes reviewers kept catching after entry — a statement's unpaid prior
   balance, the client's named amount or "it's paid", a sibling company, an
   open credit, an off-history account. Amber, full width, above the fields:
   Approve holds until each is ticked and a reason given. */
.aplus-review-warnings {
    margin: 0.4rem 0 0.6rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #f5d3a5;
    border-left: 4px solid #d97706;
    border-radius: 0.4rem;
    background: #fff7ed;
    color: #7c2d12;
    font-size: 14px;
}

.aplus-review-warnings[hidden] {
    display: none;
}

.aplus-review-warnings-head {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.aplus-review-warnings-list {
    list-style: none;
    margin: 0 0 0.4rem;
    padding: 0;
}

.aplus-review-warning + .aplus-review-warning {
    margin-top: 0.35rem;
}

.aplus-review-warning-label {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.aplus-review-warning-label input {
    margin-top: 0.2rem;
}

.aplus-review-warning-quote {
    margin: 0.15rem 0 0 1.4rem;
    color: #92400e;
    font-style: italic;
}

.aplus-review-warnings-reason {
    width: 100%;
    font-size: 14px;
    border: 1px solid #f5d3a5;
    border-radius: 0.3rem;
    padding: 0.3rem 0.45rem;
}

.aplus-review-warning-acked {
    display: inline-block;
    margin: 0.2rem 0.3rem 0 0;
}

/* A DELETED Bill.com bill with the unit's invoice number (#654507, Jesse
   2026-09-30): not a duplicate — booking creates a new bill — but the grey
   advisory chip was missed on the card. Full-width amber, between the red
   dupe banner and the blue statement notice. */
.aplus-check-deleted {
    display: block;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #f5d3a5;
    border-left: 4px solid #d97706;
    border-radius: 0.4rem;
    background: #fff7ed;
    color: #7c2d12;
    font-size: 14px;
}

/* A vendor STATEMENT is neither a defect nor a duplicate — it is a DECISION
   the operator has to make (enter the whole statement as one bill, or reject
   it and enter the invoices it lists from their own documents; Jesse,
   2026-09-02). So it reads as informational blue: full width like the dupe
   banner because it must not be scrolled past, but never alarm-coloured. */
.aplus-check-statement {
    display: block;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #b9d6e6;
    border-left: 4px solid #0b6e99;
    border-radius: 0.4rem;
    background: #eef6fa;
    color: #12475e;
    font-size: 14px;
}

.aplus-check-statement code {
    background: #dcebf3;
    color: inherit;
    padding: 0.05em 0.3em;
    border-radius: 0.25rem;
}

/* The kind pill is the first signal that the document is a statement — give
   that one kind the same blue as its notice, so the two read as one thing. */
.aplus-kind-pill-statement {
    background: #dcebf3;
    color: #12475e;
}

/* Ledger-derived checks deep-link to the matched bill (Bill.com/QBO) so
   the reviewer can see the thing the chip claims is a duplicate. Inherit
   the chip's color; underline signals the link. */
.aplus-check-link,
a.aplus-check-queue {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aplus-check-link:hover,
a.aplus-check-queue:hover {
    color: inherit;
    text-decoration-thickness: 2px;
}

/* QBO-derived checks are stored at sweep time — the label tells the
   reviewer that half can lag the mirror (sibling checks are live). */
.aplus-check-asof {
    margin-left: 0.35rem;
    font-size: 14px;
    font-style: italic;
    color: #495057;
}

/* Fields on the left, action rail on the right of the SAME panel. */
.aplus-unit-body {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.aplus-fields {
    flex: 1;
    min-width: 0;
}

.aplus-field-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0;
    border-bottom: 1px solid #f2f0f7;
}

/* A date never breaks mid-number ("10/26/2 026") when a pick + revert crowd its row. */
.aplus-field-row[data-kind="date"] .aplus-field-value {
    white-space: nowrap;
    flex-shrink: 0;
}

/* A Ramp payment date's status line, or what the ledger does with a bill in
   another currency, under its row and aligned with the value. */
.aplus-ramp-date-note,
.aplus-currency-note {
    display: block;
    margin: 0.15rem 0 0.25rem 7rem;
}

.aplus-field-label {
    width: 6.5rem;
    flex-shrink: 0;
    font-size: 14px;
    color: #495057;
}

.aplus-field-value {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #250D47;
    padding: 0.15rem 0.3rem;
    border-radius: 0.3rem;
    cursor: text;
    overflow-wrap: anywhere;
}

.aplus-unit-resolved .aplus-field-value {
    cursor: default;
}

/* Only an editable value lights up (a read-only one, AI notes, stays plain). */
.aplus-field-row .aplus-field-value:not(.aplus-field-readonly):hover,
.aplus-field-row .aplus-field-value:not(.aplus-field-readonly):focus-visible {   /* not :focus: a closed editor hands focus back, and the fill stayed */
    background: #e7f1ff;
    outline: none;
}

.aplus-unit-resolved .aplus-field-value:hover {
    background: transparent;
}

.aplus-field-empty {
    color: #b9b3c6;
}

.aplus-field-input {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    padding: 0.15rem 0.3rem;
    border: 1px solid #1A73E8;
    border-radius: 0.3rem;
}

/* Provenance chips: where each proposed value came from. */
.aplus-chip {
    flex-shrink: 0;
    min-width: 4.6rem;
    text-align: center;
    padding: 0.1rem 0.4rem;
    border-radius: 0.6rem;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.aplus-chip-document {
    background: #e3f2fd;
    color: #1A73E8;
}

.aplus-chip-precedent {
    background: #ede9f5;
    color: #250D47;
}

.aplus-chip-edited {
    background: #fef3c7;
    color: #92400e;
}

/* A description the A/P SOP said to leave blank — the rule, not an
   omission, so it reads apart from an empty chip. */
.aplus-chip-sop {
    background: #f1f5f9;
    color: #334155;
}

/* Coding placed by a per-vendor settings row — a firm instruction, teal to
   set it apart from precedent's inferred violet. */
.aplus-chip-vendor-default {
    background: #ccfbf1;
    color: #115e59;
}

/* A value placed by a LEARNED vendor rule (what operators taught APlus) —
   green, the accumulated half of the SOP. */
.aplus-chip-learned {
    background: #dcfce7;
    color: #166534;
}

/* The vendor name replaced by the matched ledger vendor's spelling (the
   vendor the bill actually books to). */
.aplus-chip-ledger {
    background: #e0f2fe;
    color: #075985;
}

/* Company page → What APlus has learned: a vetoed (forgotten) rule. */
.aplus-rule-vetoed td {
    opacity: 0.55;
}

.aplus-rule-vetoed .aplus-rule-text {
    text-decoration: line-through;
}

/* A statement's Invoice # is COMPOSED by APlus from the statement date, not
   read off the page (logic.statement_ref) — the chip has to say so rather
   than imply the vendor printed it. Same blue as the statement notice. */
.aplus-chip-statement_date {
    background: #dcebf3;
    color: #12475e;
}

.aplus-chip-none {
    background: transparent;
}

/* Collapsible sub-panels (service lines, history). */
.aplus-subpanel {
    margin-top: 0.6rem;
    font-size: 14px;
}

.aplus-subpanel > summary {
    cursor: pointer;
    color: #250D47;
    font-weight: 600;
    font-size: 14px;
}

.aplus-subtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 0.4rem;
}

.aplus-subtable th,
.aplus-subtable td {
    text-align: left;
    padding: 0.15rem 0.5rem 0.15rem 0;
    border-top: 1px solid #f2f0f7;
    vertical-align: top;
}

.aplus-subtable th {
    border-top: none;
    color: #495057;
    font-weight: 600;
}

.aplus-amt {
    text-align: right !important;
    white-space: nowrap;
}

/* "Pay together with other bills" on the review card's paid-offline block
   (APPaymentGroup): one payment, several bills. */
.aplus-paygroup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex-basis: 100%;
    margin-top: 0.3rem;
    font-size: 14px;
}

.aplus-paygroup-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: #495057;
}

.aplus-paygroup-pick,
.aplus-paygroup-name {
    max-width: 22rem;
}

/* A Procurify PO line short of fully received — only received-passed cost
   may be billed, so "not received"/"partially received" is the reason a
   bill may have to wait (aplus2-review.js renderPoPanel). */
.aplus-po-unreceived {
    color: #b45309;
    font-weight: 600;
    white-space: nowrap;
}

/* Open vendor credits block on the review card (review.html u.credits). */
.aplus-credits-table {
    border-collapse: collapse;
    font-size: 14px;
    margin: 0.25rem 0;
}
.aplus-credits-table th,
.aplus-credits-table td {
    padding: 0.15rem 0.6rem 0.15rem 0;
    text-align: left;
    vertical-align: middle;
}
.aplus-credits-table th { font-weight: 600; color: #495057; }
.aplus-credit-amount { width: 6.5rem; }
.aplus-history-scroll {
    overflow-x: auto;
}

/* The Entered column: ledger create date (+ who, when APlus2 booked it). */
.aplus-history-entered {
    white-space: nowrap;
    color: #71717a;
}

/* A setting that doesn't apply under the current ledger choice (e.g. "Sync
   offline payments" when the ledger is QBO) greys out live. */
.aplus-setting-muted {
    opacity: 0.45;
}

/* Headings freeze while the table scrolls (Jesse, 2026-08-22) WITHOUT the
   page ever scrolling sideways on a laptop (Jesse, 2026-08-24): the table
   lives in .aplus-table-scroll, which owns BOTH axes — position:sticky
   sticks against the nearest scroll container, so the thead pins to the
   wrapper's top while wide columns pan inside it. */
.aplus-table-scroll {
    overflow: auto;
    /* Tall enough to feel like the page scrolling, short enough that the
       pinned header is always the wrapper's own edge. */
    max-height: max(20rem, calc(100vh - 240px));
}

.aplus-sticky-thead {
    /* The whole head sticks as one layer: stuck cells each snap their own
       fractional edges, and the table shows through the seams between them. */
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
}

.aplus-sticky-thead th {
    /* border-collapse borders don't travel with a stuck header — draw the
       separator as an inset shadow instead. */
    box-shadow: inset 0 -1px 0 #e5e1ec;
}

.aplus-companies-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

/* fo-combobox — the site-wide searchable dropdown (vanilla port of the
   Reconciler ComboBox; see static/js/fo-combobox.js). The original control
   keeps carrying the form value; only the display button is visible. */
.fo-combobox {
    position: relative;
    display: inline-block;
    min-width: 8rem;
}

/* The native control behind a dropdown never shows, whatever display utility it was written with
   (Accruer's month pickers carry .d-inline-block, which is !important). The inline search box keeps
   its input: it is the control. */
.fo-combobox:not(.fo-combobox-inline) > .fo-combobox-control {
    display: none !important;
}

/* Inline mode: the input IS the search box (top-nav Find-a-client) — it
   stays visible and the results panel opens beneath it. */
.fo-combobox-inline {
    display: block;
}

.fo-combobox-inline .fo-combobox-control {
    display: block;
    width: 100%;
}

.fo-combobox-option-label {
    display: block;
    font-weight: 500;
}

.fo-combobox-option-value {
    display: block;
    font-size: 14px;
    color: #6c6684;
}

.fo-combobox-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    padding: 0.3rem 0.5rem;
    border: 1px solid #d9d4e3;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

/* Company Settings > Responsibilities: one person per role, beside its label, not
   a bar across the card (Jesse, 2026-10-13). */
.fo-combobox.fo-roles-combobox {
    width: 20rem;
    max-width: 100%;
}
/* The firm grid's cells are a column, not a 20rem field. */
.fo-roles-matrix .fo-combobox.fo-roles-combobox {
    width: 100%;
    min-width: 9rem;
}
.fo-roles-combobox .fo-combobox-option-value { display: none; }   /* the option value is a user id */

/* A field's help as an ⓘ beside its label (closer/_hint_icon.html), in place of a hint
   line under the field (Jesse, 2026-10-13: "we gotta declutter"). Hover or focus shows it. */
.fo-hint-icon {
    margin-left: 4px;
    color: #495057;
    font-size: 10px;
    cursor: default;   /* the plain arrow: "help" draws a ? that reads as a question (Jesse, 2026-10-13) */
    text-transform: none;
    vertical-align: baseline;
}
.fo-hint-icon:hover, .fo-hint-icon:focus { color: #250d47; outline: none; }
.fo-hint-tooltip .tooltip-inner { max-width: 360px; text-align: left; font-size: 14px; }
/* Every title="…" (fo-title-tip.js): the same tip, placed by hand rather than by Popper. Its lines
   are the title's own lines. */
.fo-title-tip { position: absolute; pointer-events: none; }
.fo-title-tip .tooltip-inner { white-space: pre-line; }
/* Its arrow drawn here, on the tip's edge that faces what was hovered (the theme left it static, so it
   floated above the tip; Christopher, 2026-11-12). */
.fo-title-tip .tooltip-arrow { position: absolute; width: 12px; height: 6px; }
.fo-title-tip .tooltip-arrow::before { content: ""; position: absolute; left: 0; border: 0 solid transparent; }
.fo-title-tip.bs-tooltip-top .tooltip-arrow { top: auto; bottom: 0; }
.fo-title-tip.bs-tooltip-top .tooltip-arrow::before { top: 0; bottom: auto; border-width: 6px 6px 0; border-top-color: #000; }
.fo-title-tip.bs-tooltip-bottom .tooltip-arrow { top: 0; bottom: auto; }
.fo-title-tip.bs-tooltip-bottom .tooltip-arrow::before { top: auto; bottom: 0; border-width: 0 6px 6px; border-bottom-color: #000; }
/* Under the Google Drive button when Google no longer takes the stored token (oauth.google.google_drive_status). */
.fo-google-lapsed { clear: both; font-size: 14px; font-weight: 400; padding-top: .25rem; }

.fo-combobox-display:focus-visible {
    outline: 2px solid #250d47;
    outline-offset: 1px;
}

.fo-combobox-display:disabled {
    opacity: 0.55;
    cursor: default;
}

.fo-combobox-display-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fo-combobox-placeholder {
    color: #9a93ad;
}

.fo-combobox-caret {
    color: #6c6684;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Positioned FIXED by JS from the anchor's viewport rect — absolute
   positioning clipped inside overflow wrappers (vendor table, dropdowns). */
.fo-combobox-panel {
    z-index: 1090;
    max-width: 24rem;
    background: #fff;
    border: 1px solid #e5e1ec;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(37, 13, 71, 0.18);
    padding: 0.4rem;
}

/* Ordered multi-value chips (approvers). */
.fo-combobox-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    min-height: 1.9rem;
}

.fo-combobox-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.45rem;
    border: 1px solid #d9d4e3;
    border-radius: 999px;
    background: #f6f4fa;
    font-size: 12px;
    cursor: grab;
    white-space: nowrap;
}

.fo-combobox-chip-ord {
    font-size: 12px;
    font-weight: 700;
    color: #6d28d9;
}

.fo-combobox-chip-x {
    border: 0;
    background: none;
    padding: 0 0.1rem;
    color: #6c6684;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.fo-combobox-chip-x:hover {
    color: #b91c1c;
}

.fo-combobox-add {
    border: 1px dashed #d9d4e3;
    border-radius: 999px;
    background: #fff;
    color: #6c6684;
    font-size: 14px;
    padding: 0.15rem 0.55rem;
    cursor: pointer;
}

.fo-combobox-add:hover:not(:disabled) {
    border-color: #6d28d9;
    color: #6d28d9;
}

.fo-combobox-search {
    width: 100%;
    padding: 0.3rem 0.5rem;
    border: 1px solid #d9d4e3;
    border-radius: 4px;
    font-size: 14px;
}

.fo-combobox-list {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0;
    max-height: 16rem;
    overflow-y: auto;
}

.fo-combobox-option {
    padding: 0.3rem 0.45rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fo-combobox-option:hover,
.fo-combobox-active {
    background: #e7f1ff;
}

.fo-combobox-current {
    font-weight: 600;
}

.fo-combobox-footer {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.4rem 0;
}

.fo-combobox-empty {
    padding: 0.3rem 0.45rem;
    color: #6c6684;
    font-size: 14px;
}

/* Per-vendor defaults table (A/P SOP & Settings) — the APCentral
   Configuration port. Wide charts scroll inside the wrapper, never the page. */
.aplus-vendor-settings {
    overflow-x: auto;
}

.aplus-vendor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.aplus-vendor-table th {
    text-align: left;
    font-weight: 600;
    color: #6c6684;
    padding: 0.3rem 0.45rem;
    border-bottom: 1px solid #e5e1ec;
    white-space: nowrap;
}

.aplus-vendor-table td {
    padding: 0.3rem 0.45rem;
    border-bottom: 1px solid #f0edf5;
    vertical-align: middle;
    min-width: 8rem;
}

.aplus-vendor-table td.aplus-vendor-name {
    font-weight: 600;
    white-space: nowrap;
}

.aplus-vendor-table .aplus-paid-input {
    width: 100%;
}

.aplus-vendor-actions {
    white-space: nowrap;
}

.aplus-vendor-actions .aplus-btn + .aplus-btn {
    margin-left: 0.35rem;
}

.aplus-vendor-settings-error {
    color: #b91c1c;
    font-size: 14px;
    margin: 0 0 0.4rem;
}

.aplus-row-saved td {
    animation: aplus-row-saved-fade 1.6s ease-out;
}

/* A/P Central vendor tax panel. */
.aplus-1099-undecided {
    background: #fee2e2;
    color: #b91c1c;
}

.aplus-1099-gets {
    background: #d1fae5;
    color: #065f46;
}

.aplus-1099-no {
    background: #eceaf1;
    color: #6c6684;
}

.aplus-taxyear-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.aplus-w9-tin-only {
    background: #fef3c7;
    color: #92400e;
}

.aplus-tax-chip {
    border: 0;
    cursor: pointer;
}

.aplus-tax-chip:disabled {
    cursor: default;
}

.aplus-tax-menu {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: 0.35rem;
}

.aplus-tax-menu .aplus-approval-chip {
    border: 1px solid transparent;
    cursor: pointer;
}

.aplus-tax-menu .aplus-approval-chip:hover {
    border-color: #250d47;
}

.aplus-tax-cell {
    cursor: text;
}

.aplus-tax-input {
    width: 100%;
    min-width: 9rem;
}

.aplus-tax-reason-derived {
    font-style: italic;
    opacity: 0.85;
}

.aplus-row-pending td {
    opacity: 0.55;
}

.aplus-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.aplus-sortable::after {
    content: "";
    display: inline-block;
    width: 0.6rem;
    margin-left: 0.25rem;
    opacity: 0.5;
}

.aplus-sort-asc::after {
    content: "▲";
    font-size: 0.6rem;
}

.aplus-sort-desc::after {
    content: "▼";
    font-size: 0.6rem;
}

.aplus-taxyear-form .aplus-paid-input {
    width: auto;
}

.aplus-tin {
    border: 0;
    background: #f6f4fa;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    cursor: pointer;
}

.aplus-tin:hover {
    background: #e7f1ff;
}

.aplus-tin-missing {
    color: #b45309;
    font-size: 14px;
}

/* In-app client approvals (QBO-ledger clients). */
.aplus-approvals-panel {
    border: 1px solid #fcd34d;
    background: #fffbeb;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.75rem;
}

.aplus-approvals-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.aplus-approvals-table {
    margin-bottom: 0;
}

.aplus-approval-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: flex-end;
}

.aplus-approval-note {
    max-width: 14rem;
}

.aplus-approval-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.aplus-approval-state-ok {
    border-color: #6ee7b7;
    background: #ecfdf5;
}

.aplus-approval-chip {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.aplus-approval-pending {
    background: #fef3c7;
    color: #92400e;
}

.aplus-approval-approved {
    background: #d1fae5;
    color: #065f46;
}

.aplus-approval-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

@keyframes aplus-row-saved-fade {
    from { background: #d1fae5; }
    to { background: transparent; }
}

/* The Procurify PO panel (filled async by the PO check): summary line,
   ordered/received lines table, loud verdicts on top. */
.aplus-po-panel {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e5e1ec;
    border-radius: 0.4rem;
    background: #faf9fc;
}

.aplus-po-head {
    margin: 0;
    font-size: 14px;
    color: #4b4763;
}

/* The status pill's manual-done menu. The pill itself is a <button> so it
   stays keyboard-reachable; disabled = not manually movable. */
.aplus-status-menu-wrap {
    position: relative;
    display: inline-flex;
}

.aplus-status-pill-btn {
    border: 0;
    cursor: pointer;
}

.aplus-status-pill-btn:disabled {
    cursor: default;
}

/* A re-propose / SPLIT in flight: the pill says so the instant it is chosen
   and keeps pulsing until the page reloads with the outcome (hebrew-php
   #654169, 2026-09-28: nothing changed near the pill, so it was clicked
   three times and three splits ran). */
.aplus-status-pill-btn.aplus-status-pill-busy,
.aplus-status-pill-btn.aplus-status-pill-busy:disabled {
    cursor: progress;
    animation: aplus-pill-busy-pulse 1.4s ease-in-out infinite;
}

@keyframes aplus-pill-busy-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.aplus-status-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    min-width: 20rem;
    padding: 0.25rem;
    border: 1px solid #d9d3e8;
    border-radius: 0.4rem;
    background: #fff;
    box-shadow: 0 6px 18px rgba(37, 13, 71, 0.12);
}

/* The menu's own rows only. A Bootstrap .btn in a menu (the "Wrong entity…" confirm's Move &
   re-propose and Cancel) keeps its fill: stripping it left Move white-on-white once focused
   (TM-2102, abacus #666937). */
.aplus-status-menu button:not(.btn) {
    border: 0;
    background: none;
    text-align: left;
    padding: 0.4rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.82rem;
    color: #250d47;
    cursor: pointer;
}

.aplus-status-menu button:not(.btn):hover {
    background: #e7f1ff;
}

/* Menu rows = a status chip + its explanation (Jesse, 2026-08-23). */
.aplus-status-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aplus-status-menu-item .closer-pill {
    flex-shrink: 0;
    min-width: 6.5rem;
    text-align: center;
}

.aplus-status-menu-label {
    color: #6c6684;
    font-size: 14px;
}

/* The actions-panel copy floats on body (position:fixed set by JS) so the
   units pane's overflow:hidden can't clip it. */
.aplus-status-menu-floating {
    z-index: 1090;
}

/* "Wrong entity…" picker (APlus meeting 2026-09-25): a searchable company
   list in the status-menu shell, then a confirm row — it writes Zendesk. */
.aplus-entity-menu {
    min-width: 22rem;
    max-width: 28rem;
}

.aplus-entity-confirm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
}

.aplus-entity-confirm-text {
    flex-basis: 100%;
    font-size: 14px;
    color: #250d47;
}

/* Spam reads apart from the other grey done states: red underline. */
.aplus-status-spam {
    text-decoration: underline;
    text-decoration-color: #b91c1c;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.aplus-info {
    position: relative;
    color: #6c6684;
    cursor: help;
    font-size: 0.9rem;
}

/* Instant tooltip — the native title's OS delay read as "not working"
   (Jesse, 2026-08-23). */
.aplus-info::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 26rem;
    max-width: 60vw;
    background: #250d47;
    color: #fff;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.1s;
    z-index: 1100;
}

.aplus-info:hover::after,
.aplus-info:focus::after {
    opacity: 1;
    visibility: visible;
}

.aplus-flag-chip {
    text-decoration: none;
    font-size: 12px;
}

/* A zero-sum reclass line (an earlier bill's pro-rata split corrected on
   this bill — aplus2 PO matching, 2026-09-15): tinted so the reviewer sees
   at a glance which lines are the invoice's and which are corrections. */
.aplus-line-reclass td {
    background: #fbf7ff;
}

.aplus-setting-textarea {
    width: 100%;
    max-width: 40rem;
    font-family: inherit;
    resize: vertical;
}

.aplus-doc-w9-btn {
    font-size: 0.72rem;
    padding: 0.1rem 0.5rem;
}

.aplus-doc-w9-filed {
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.aplus-qbo-sync {
    margin-left: 0.3rem;
    font-size: 14px;
}

/* The Reason picker: one-word chips + Other… (free text). */
.aplus-reason-menu {
    background: #fff;
    border: 1px solid #d9d3e8;
    border-radius: 0.4rem;
    box-shadow: 0 6px 18px rgba(37, 13, 71, 0.12);
    padding: 0.5rem;
    max-width: 24rem;
}

.aplus-reason-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.aplus-reason-chips .aplus-approval-chip {
    border: 1px solid transparent;
    cursor: pointer;
}

.aplus-reason-chips .aplus-approval-chip:hover {
    border-color: #250d47;
}

.aplus-reason-current {
    outline: 2px solid #250d47;
    outline-offset: 1px;
}

.aplus-reason-menu .aplus-reason-other {
    display: block;
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    padding: 0.3rem 0.2rem;
    cursor: pointer;
}

.aplus-reason-menu .aplus-reason-other:hover {
    background: #e7f1ff;
}

.aplus-reason-other {
    font-style: italic;
    color: #6c6684;
    border-top: 1px solid #eceaf1 !important;
    border-radius: 0 !important;
}

/* The review header's async dupe-check narration: neutral while running,
   then a PERSISTENT green (clean) or red (hit) verdict. */
.aplus-dupe-check-status {
    font-size: 14px;
    padding: 0.15rem 0.55rem;
    border-radius: 1rem;
    white-space: nowrap;
}

.aplus-dupe-check-running {
    background: #f4f4f5;
    color: #495057;
}

.aplus-dupe-check-clear {
    background: #e7f4ec;
    color: #1e7a3d;
}

.aplus-dupe-check-hit {
    background: #fdecea;
    color: #b02a1c;
    font-weight: 600;
}

.aplus-dupe-check-deleted {
    background: #fff7ed;
    color: #b45309;
    font-weight: 600;
}

.aplus-dupe-check-error {
    background: #fff7ed;
    color: #b45309;
}

/* The line editor grows a column per coding dimension the client uses
 * (account/class/location/customer/item) — scroll inside the panel, never
 * the page. min-widths keep dropdown inputs usable when several render. */
.aplus-lines-scroll {
    overflow-x: auto;
}

/* Description is a one-row textarea that grows with its text
 * (aplus2-review.js autosizeLineDesc) — the whole line description reads
 * in place instead of clipping in a short input (Jenn, 2026-08-25). */
.aplus-lines-table [data-role="line-desc"] {
    min-width: 16rem;
    width: 100%;
    resize: none;
    overflow: hidden;
    line-height: 1.35;
    font: inherit;
}

.aplus-lines-table .aplus-line-desc-cell {
    width: 40%;
}

/* Growing line cells (description + every coding cell): one row that the
   JS autosizes to the content; no manual resize handle, no inner scroll. */
.aplus-line-grow {
    resize: none;
    overflow: hidden;
    line-height: 1.3;
    min-height: 1.7rem;
    font-family: inherit;
}

/* Unsaved line edits: the note turns amber until Save lines / Enter /
 * Approve (which flushes them) — Jenn approved 634957 with her class,
 * location and description typed but never saved. */
.aplus-lines-note.aplus-lines-unsaved {
    color: #b45309;
    font-weight: 600;
}

/* An image document (payment-confirmation screenshot, photographed
 * receipt) in the documents pane. */
.aplus-img-embed {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.aplus-lines-table .aplus-line-coding {
    min-width: 8rem;
}

.aplus-line-qty {
    max-width: 4.5rem;
    text-align: right;
}

/* Searchable combobox (aplus2-review.js attachCombo) — the repo-standard
 * picker: type-to-filter panel with "(clear)", "Currently …", and a capped
 * list. Mirrors .fathom-client-menu / .fo-quicknav-* so every picker in the
 * app reads as one control. NEVER a native datalist/select. */
/* The field editors' suggestion panel (aplus2-review.js attachCombo): the standard dropdown
   panel (.fo-combobox-panel); this only places it, on <body> from the input's rect, since a
   scroll-container ancestor would clip an in-place panel to a sliver. */
.aplus-combo-menu.fo-combobox-panel {
    position: absolute;
    width: max-content;
    max-width: 24rem;
    z-index: 1050;
}

.aplus-line-input {
    width: 100%;
    font-size: 14px;
    padding: 0.1rem 0.3rem;
    border: 1px solid #e5e1ec;
    border-radius: 0.3rem;
}

.aplus-line-amount {
    min-width: 6rem;
    max-width: 7rem;
    text-align: right;
}

/* The per-line Billable checkbox, centred under its header. */
.aplus-line-billable-cell {
    text-align: center;
    vertical-align: middle;
}

.aplus-line-billable-cell .form-check-input {
    float: none;
    margin: 0;
}

/* Lines / history / credits / PO panel under the fields + actions row, full
   card width (Jesse, 2026-09-24). */
.aplus-unit-wide {
    min-width: 0;
}

.aplus-line-remove {
    border: none;
    background: none;
    color: #b3261e;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 0.3rem;
}

.aplus-lines-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.aplus-lines-note {
    font-size: 14px;
    color: #495057;
}

/* Re-propose action stack: the status note reads ABOVE the button, so the
   explanation of what's happening sits over the control instead of crammed
   into a narrow column beside it (Jesse, 2026-08-17). */
.aplus-repropose-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.aplus-repropose-actions .aplus-lines-note:empty {
    display: none;
}

.aplus-repropose-actions .aplus-btn {
    align-self: flex-start;
}

/* Action rail (right of the fields — Vyomesh feedback). */
.aplus-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 10.5rem;
    flex-shrink: 0;
}

/* The units-pane fallback (a request with no units) — full width, centered. */
.aplus-actions-inline {
    width: auto;
    max-width: 32rem;
    margin: 0 auto 1rem;
}

/* APlus's buttons are the app's small Bootstrap buttons (btn btn-sm text-xs
   mb-0 + an icon, Christopher 2026-10-20); .aplus-btn only lays out the icon,
   label and kbd hint on one centred line. */
.aplus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* The empty units pane's "re-propose and say so" hint — under the
   "No bill units" line, reads as a footnote to it. */
.aplus-empty-hint {
    font-size: 14px;
    max-width: 40rem;
    margin: -0.75rem auto 1rem;
}

/* A button living inside a card's action note (the booked bill's "Attach
   PDF"): full rail width under the note, like the buttons above it,
   not an underlined link wrapping mid-phrase (Jesse, 2026-09-04). */
.aplus-action-note .aplus-btn-note {
    display: flex;
    width: 100%;
    margin-top: 0.45rem;
}

/* Wrapper so a disabled button still shows its tooltip. */
.aplus-tooltip-wrap {
    display: inline-flex;
}

.aplus-tooltip-wrap .aplus-btn {
    width: 100%;
}

.aplus-action-note {
    font-size: 14px;
    color: #495057;
    margin: 0.2rem 0 0;
}

.aplus-kbd {
    font-size: 12px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 0.25rem;
    padding: 0 0.3rem;
}

.aplus-empty-note {
    font-size: 14px;
    color: #495057;
    margin: 0.4rem 0 0;
}

.aplus-error-note {
    font-size: 14px;
    color: var(--bs-danger, #F44335);
    margin-top: 0.2rem;
}

/* A blur/mis-click discarded an in-progress edit — flash the row so the
   lost typing isn't silent. */
.aplus-row-flash {
    animation: aplus-discard-flash 0.6s ease-out;
}

@keyframes aplus-discard-flash {
    from { background: #fde8e8; }
    to { background: transparent; }
}

/* Draws the eye to the "Add to SOP?" bullet a re-propose just parked — it
   sits in the right pane and was being missed (Jesse, 2026-08-17). */
.aplus-sop-flash {
    animation: aplus-sop-flash 0.8s ease-out 3;
}

@keyframes aplus-sop-flash {
    0% { box-shadow: 0 0 0 0 rgba(90, 44, 160, 0.55); }
    100% { box-shadow: 0 0 0 8px rgba(90, 44, 160, 0); }
}

/* Help overlay (the "?" shortcut). */
.aplus-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(37, 13, 71, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1080;
}

/* The author display:flex above would defeat the hidden attribute (author
   rules beat the UA's [hidden] { display: none }) — restore it explicitly. */
.aplus-help-overlay[hidden] {
    display: none;
}

.aplus-help-panel {
    background: #fff;
    border-radius: 0.6rem;
    padding: 1.2rem 1.5rem;
    max-width: 26rem;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.aplus-help-title {
    font-size: 1rem;
    color: #250D47;
    margin-bottom: 0.5rem;
}

/* Create-vendor form (review page). Reuses the help overlay's panel chrome and
   only widens it for the two-column field grid. Unlike the shortcuts dialog
   it drops the scrim and lets clicks fall through to the page: the form is
   filled in FROM the W-9 behind it, which the scrim was hiding and blocking
   (Jenn, 2026-09-15). The panel itself still takes pointer events, and the
   translate is the drag offset aplus2-review.js sets on its header. */
.aplus-help-overlay[data-role=vendor-overlay] {
    background: transparent;
    pointer-events: none;
}

.aplus-vendor-panel {
    max-width: 40rem;
    max-height: 88vh;
    overflow-y: auto;
    pointer-events: auto;
    transform: translate(var(--aplus-vendor-dx, 0px), var(--aplus-vendor-dy, 0px));
}

.aplus-vendor-drag {
    cursor: move;
    user-select: none;
}

.aplus-vendor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    margin: 0.75rem 0;
}

.aplus-vendor-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 14px;
    color: #5a5a66;
}

.aplus-vendor-grid input,
.aplus-vendor-grid select {
    border: 1px solid #d9d9e0;
    border-radius: 0.3rem;
    padding: 0.3rem 0.4rem;
    font-size: 14px;
    color: #250D47;
    width: 100%;
}

.aplus-vendor-wide {
    grid-column: 1 / -1;
}

/* The duplicate guard. Amber, not red: a near miss is a question, and the
   answer is often "yes, this really is a new vendor". */
.aplus-vendor-warn {
    border: 1px solid #e8c66a;
    background: #fdf6e3;
    border-radius: 0.4rem;
    padding: 0.5rem 0.7rem;
    font-size: 14px;
    color: #5a4600;
}

.aplus-vendor-warn ul {
    margin: 0.35rem 0 0.35rem 1.1rem;
}

.aplus-vendor-confirm {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.aplus-vendor-error {
    color: #b3261e;
    font-size: 14px;
    margin: 0.35rem 0;
}

/* The intro line while the paperwork read (one Claude call) is still out:
   the form is already usable on what A/P Central holds. */
.aplus-vendor-reading {
    color: #2f6f9e;
    animation: aplus-vendor-reading-pulse 1.4s ease-in-out infinite;
}

@keyframes aplus-vendor-reading-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* The button on the Vendor field row when the ledger has no such vendor. */
.aplus-vendor-new-btn {
    padding: 0.05rem 0.4rem;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* Queue page: hard-dupe chips replacing the bare warning triangle — the
   chip names the matched ref; the hover title carries the full match. */
.aplus-check-queue {
    padding: 0.05rem 0.35rem;
    font-size: 14px;
    white-space: nowrap;
}

/* Queue page: advisory near-ref badge (never a status change). */
.aplus-advisory-badge {
    display: inline-block;
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: #495057;
    font-size: 12px;
    white-space: nowrap;
}

/* Queue page: demoted secondary admin link. */
.aplus-admin-link {
    font-size: 14px;
    color: #495057;
    margin-left: 0.5rem;
}

/* Reconciler divide: pending-feed hints. The bank cell of a book-only row whose bank twin is
   still PENDING gets amber stripes — same hatch geometry as the outage red, different claim:
   "coming", not "missing". The band count inherits the band's muted text and dots itself in. */
.rec-divide-row--book_only .rec-divide-empty.rec-divide-empty--pending {
    background: repeating-linear-gradient(45deg, #fffaeb, #fffaeb 6px, #fef0c7 6px, #fef0c7 12px);
    text-align: center;
    vertical-align: middle;
}

/* The unpacked halves of a pending bank row: date + narrative on SOLID pale amber (legible),
   the bookless remainder striped. Both sit in a book_only row whose default td paint is the
   outage pink, so the amber must be explicit. */
.rec-divide-row--book_only .rec-divide-pending-cell {
    background-color: #fffaeb;
    color: #93540b;
}

.rec-divide-pending-label {
    font-size: 14px;
    color: #93540b;
    background: #fffaeb;
    border: 1px solid #fedf89;
    border-radius: 0.7rem;
    padding: 0 0.4rem;
    white-space: nowrap;
}

/* The pending row's ONE wide narrative cell (colSpan over the bookless columns): the full ACH blob
   flows across the width that used to sit striped-and-empty, so the row stays short WITHOUT
   truncating the narrative; the label rides the right edge. Solid pale amber like the other
   unpacked pending halves — text over the stripes read as clutter. Flex lives on an inner wrapper,
   never the td (display:flex unsets the table-cell box). */
.rec-divide-pending-flex {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.rec-divide-pending-desc {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.rec-divide-pending-flex .rec-divide-pending-label {
    flex: 0 0 auto;
    margin-left: auto;
}

.rec-rules-quicklook-debug {
    margin-top: 0.5rem;
    font-size: 14px;
    color: #98a2b3;
}

.rec-divide-pending-count {
    white-space: nowrap;
}


/* ============================================================================
   EXPENSER — in-app expense coding (assets/javascript/expenser/)
   The table look leans on the divide's edit-input classes; everything Expenser-
   specific is .exp-*. Bulk bar is the one genuinely new pattern (floating,
   appears with a selection).
   ========================================================================== */

.expenser-app {
    /* Room so the floating bulk bar never covers the last rows. */
    padding-bottom: 4.5rem;
}

.exp-tabs {
    display: inline-flex;
    gap: 0.35rem;
}

.exp-tab {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #250d47;
    border-radius: 1rem;
    font-size: 0.78rem;
    padding: 0.2rem 0.75rem;
    cursor: pointer;
}

.exp-tab--active {
    background: #250d47;
    border-color: #250d47;
    color: #fff;
}

.exp-search {
    min-width: 16rem;
    font-size: 14px;
}

.exp-empty {
    padding: 1.5rem 0.25rem;
}

.exp-card-group {
    margin-top: 1.1rem;
}

.exp-card-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.25rem;
}

.exp-card-name {
    font-weight: 700;
    color: #250d47;
    font-size: 14px;
}

.exp-card-count {
    font-size: 12px;
    color: #667085;
    background: #f2f4f7;
    border-radius: 0.7rem;
    padding: 0 0.5rem;
}

.exp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.exp-table th {
    text-align: left;
    color: #667085;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.45rem;
    border-bottom: 1px solid #eaecf0;
    white-space: nowrap;
}

.exp-table td {
    padding: 0.28rem 0.45rem;
    border-bottom: 1px solid #f2f4f7;
    vertical-align: middle;
}

.exp-row--selected td {
    background: #cfe2ff;
}

.exp-row--booked td {
    color: #667085;
}

.exp-col-check {
    width: 2rem;
}

.exp-col-date {
    width: 6.2rem;
    white-space: nowrap;
}

.exp-col-amount {
    width: 6.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.exp-col-picker {
    width: 15rem;
}

.exp-col-status {
    width: 7.5rem;
    white-space: nowrap;
}

.exp-check {
    cursor: pointer;
}

.exp-cell-description {
    max-width: 24rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exp-receipt-chip {
    margin-left: 0.4rem;
    font-size: 12px;
    color: #250d47;
    background: #f6f2fb;
    border-radius: 0.7rem;
    padding: 0 0.4rem;
    white-space: nowrap;
}

.exp-status {
    font-size: 14px;
    border-radius: 0.7rem;
    padding: 0.1rem 0.55rem;
    white-space: nowrap;
}

.exp-status--booked {
    color: #027a48;
    background: #ecfdf3;
}

.exp-status--booked a {
    color: #027a48;
}

.exp-status--coded {
    color: #250d47;
    background: #f6f2fb;
}

.exp-status--suggested {
    color: #93540b;
    background: #fffaeb;
}

.exp-status--needs-coding {
    color: #b42318;
    background: #fef3f2;
}

.exp-bulk-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #250d47;
    color: #fff;
    border-radius: 0.6rem;
    padding: 0.5rem 0.9rem;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.35);
    max-width: min(96vw, 68rem);
    flex-wrap: wrap;
}

.exp-bulk-count {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.exp-bulk-field {
    min-width: 11rem;
    background: #fff;
    border-radius: 0.35rem;
}

.exp-bulk-memo {
    min-width: 12rem;
}

/* The memo input must FILL its white wrapper — at its natural width the wrapper's
   background peeks out beside it and reads as a second, empty field. */
.exp-bulk-field .rec-divide-edit-input {
    width: 100%;
    margin: 0;
}

.exp-bulk-btn {
    white-space: nowrap;
}

.exp-bulk-clear {
    color: #d6bbfb;
    text-decoration: none;
    font-size: 14px;
}

/* Expenser: receipt pane (right drawer, APlus2 document-beside-the-form),
   out-of-pocket section, receipt chips/attach. */

.exp-receipt-pane {
    position: fixed;
    top: 4.5rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(34rem, 45vw);
    z-index: 1035;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 0.6rem;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.25);
    display: flex;
    flex-direction: column;
}

.exp-receipt-pane-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid #eaecf0;
}

.exp-receipt-pane-name {
    font-weight: 700;
    color: #250d47;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exp-receipt-pane-dl {
    font-size: 14px;
}

.exp-receipt-pane-del {
    color: #b42318;
    font-size: 14px;
    text-decoration: none;
}

.exp-receipt-pane-body {
    flex: 1;
    overflow: auto;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0 0 0.6rem 0.6rem;
}

.exp-receipt-embed {
    width: 100%;
    height: 100%;
    min-height: 24rem;
    border: 0;
}

.exp-receipt-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Keep rows readable while the drawer is open. */
.expenser-app--pane-open {
    padding-right: min(35rem, 46vw);
}

.exp-oop-add {
    margin-left: auto;
    font-size: 14px;
}

.exp-oop-dropzone {
    margin: 0.35rem 0 0.5rem;
    padding: 0.55rem 0.9rem;
    font-size: 14px;
}

.exp-receipt-chip--btn {
    border: 0;
    cursor: pointer;
}

.exp-attach-btn {
    text-decoration: none;
    padding: 0 0.25rem;
    font-size: 0.85rem;
}

.exp-row-del {
    color: #b42318;
    text-decoration: none;
    padding: 0 0.25rem;
}

.exp-col-reimb {
    width: 6rem;
    text-align: center;
}

.exp-col-receipts {
    width: 6.5rem;
    white-space: nowrap;
}

.exp-col-rowactions {
    width: 2.2rem;
}

.exp-amount-input {
    text-align: right;
}

.exp-status--draft {
    color: #475467;
    background: #f2f4f7;
}

/* Expenser: reports list (submitter history + approver inbox). */

.exp-report-list {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
}

.exp-report-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0.45rem;
    border-bottom: 1px solid #f2f4f7;
    font-size: 14px;
    flex-wrap: wrap;
}

.exp-report-title {
    font-weight: 700;
    color: #250d47;
}

.exp-report-meta {
    color: #667085;
}

.exp-report-reason {
    color: #b42318;
    font-style: italic;
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exp-report-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.exp-reject-reason {
    min-width: 16rem;
}

.exp-status--report-submitted,
.exp-status--report-business_approved {
    color: #93540b;
    background: #fffaeb;
}

.exp-status--report-approved {
    color: #027a48;
    background: #ecfdf3;
}

.exp-status--report-rejected {
    color: #b42318;
    background: #fef3f2;
}

.exp-status--report-booked {
    color: #027a48;
    background: #ecfdf3;
}

.exp-status--report-draft {
    color: #475467;
    background: #f2f4f7;
}

/* ---------------------------------------------------------------------------
   Report drill-down (in-app alternative to a QBO qzurl deep link).
   Mirrors the .usage-* table treatment so the two detail pages read as one.
   --------------------------------------------------------------------------- */
/* Wide enough for the Dimensions view's columns without stranding Amount;
   the table still scrolls inside .drilldown-table-scroll on a narrow window. */
.drilldown { max-width: 92rem; }

.drilldown-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.drilldown-title { margin: 0; }

.drilldown-context {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 600;
    margin: 0.35rem 0 0;
}

.drilldown-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0.25rem 0 0;
}

.drilldown-qbo-link {
    white-space: nowrap;
    font-size: 14px;
}

.drilldown-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.drilldown-links {
    display: flex;
    gap: 0.9rem;
}

.drilldown-views {
    display: flex;
    gap: 0.25rem;
}

.drilldown-view {
    font-size: 14px;
    padding: 0.15rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    color: #4b5563;
    white-space: nowrap;
}

.drilldown-view:hover { background: #f3f4f6; }

.drilldown-view-on {
    background: #2b1747;
    border-color: #2b1747;
    color: #fff;
}

.drilldown-view-on:hover { background: #2b1747; }

/* QBO-style account grouping: a header per account, its own total, collapsible. */
.drilldown-group-head th {
    text-align: left;
    background: #f3f4f6;
    font-weight: 600;
    padding: 0;
}

.drilldown-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 0.3rem 0.6rem;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.drilldown-caret { display: inline-block; width: 0.9rem; }

.drilldown-collapsed .drilldown-caret { transform: rotate(-90deg); }

.drilldown-collapsed .drilldown-row,
.drilldown-collapsed .drilldown-group-total { display: none; }

.drilldown-group-total td {
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
}

.drilldown-table-scroll { overflow-x: auto; }

.drilldown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.drilldown-table th,
.drilldown-table td {
    padding: 0.2rem 0.6rem;
    border-bottom: 1px solid #eef0f3;
    white-space: nowrap;
}

.drilldown-table tbody tr:hover { background: #f9fafb; }

.drilldown-table tfoot td {
    border-top: 2px solid #e5e7eb;
    font-weight: 600;
    background: #fff;
}

.drilldown-num { text-align: right; }

/* Descriptions run long (Stripe line text especially); let one column absorb
   the slack and ellipsize rather than pushing Amount off the row. */
.drilldown-desc {
    max-width: 20rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drilldown-empty {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Company/firm Report Formatting (white-label) WYSIWYG editor: the preview is the control
   surface — color inputs sit beside each band row and repaint it live via --wl-bg-N /
   --wl-text-N CSS variables set on .wl-preview. Colors are applied to the TDs (not just the
   TRs) so they beat any global td color rules. */
.wl-branding {
    max-width: 880px;
}

.wl-switch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    margin-bottom: 4px;
}

.wl-preview-sheet {
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.wl-preview-sheet td {
    border: 1px solid #d9d9d9;
    padding: 4px 10px;
    white-space: nowrap;
}

.wl-preview .wl-preview-sheet td.wl-picker-cell {
    border: none;
    background: #ffffff;
    color: #344054;
    width: 64px;
    padding: 2px 0 2px 12px;
}

.wl-num {
    text-align: right;
    min-width: 78px;
}

.wl-preview-sheet td.wl-indent-1 {
    padding-left: 24px;
}

.wl-preview-sheet td.wl-indent-2 {
    padding-left: 40px;
}

.wl-preview .wl-region-5 > td {
    background: var(--wl-bg-5, #250D47);
    color: var(--wl-text-5, #FFFFFF);
    font-weight: 700;
}

.wl-preview .wl-region-1 > td {
    background: var(--wl-bg-1, #250D47);
    color: var(--wl-text-1, #FFFFFF);
    font-weight: 700;
}

.wl-preview .wl-region-2 > td {
    background: var(--wl-bg-2, #4F5FB7);
    color: var(--wl-text-2, #FFFFFF);
    font-weight: 700;
}

.wl-preview .wl-region-3 > td {
    background: var(--wl-bg-3, #B0B6ED);
    color: var(--wl-text-3, #000000);
    font-weight: 700;
}

.wl-preview .wl-region-4 > td {
    background: var(--wl-bg-4, #DEE2FE);
    color: var(--wl-text-4, #000000);
    font-weight: 700;
}

.wl-preview .wl-preview-detail > td {
    background: #ffffff;
    color: #202124;
    font-weight: 400;
}

/* Collapsed utility columns: shown as a gray stub between Account and the data columns. */
.wl-preview .wl-preview-sheet td.wl-utility-col {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    padding: 2px 4px;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.wl-preview--no-utility .wl-utility-col {
    display: none;
}

.wl-preview-logo {
    height: 22px;
    vertical-align: middle;
}

/* Client-facing mode swaps the logo image for the company + workflow name; the cell keeps
   the same primary background and text color as the rest of the run-button row. */
.wl-preview-client-title {
    display: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
}

.wl-preview--no-logo .wl-preview-logo-cell .wl-image-slot {
    display: none;
}

.wl-preview--no-logo .wl-preview-client-title {
    display: inline-block;
}

.wl-preview-logo-cell,
.wl-preview-run-button-cell {
    text-align: center;
}

/* The WRANGLE button is a green image in the real sheet, independent of the
   whitelabel colors. Click the preview image to replace it. */
.wl-preview .wl-preview-run-button {
    height: 26px;
    vertical-align: middle;
    display: inline-block;
}

.wl-image-slot {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.wl-image-upload {
    cursor: pointer;
    display: inline-block;
    margin: 0;
}

.wl-image-upload:hover img {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.wl-image-upload.is-uploading {
    opacity: 0.55;
}

.wl-image-clear {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 1px 6px;
    cursor: pointer;
}

.wl-image-clear:hover {
    background: rgba(255, 255, 255, 0.15);
}

.wl-image-clear:disabled {
    opacity: 0.45;
    cursor: default;
}

.wl-preview--no-button .wl-preview-run-button-cell .wl-image-slot {
    display: none;
}

.wl-preview .wl-preview-sheet td.wl-preview-status-cell,
.wl-preview .wl-preview-sheet td.wl-preview-config-cell {
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    font-weight: 700;
}

.wl-preview .wl-preview-sheet td.wl-preview-config-cell {
    font-family: "Ubuntu Mono", Menlo, monospace;
    font-weight: 400;
}

.wl-status-no-name {
    display: none;
}

.wl-preview--no-logo .wl-status-with-name {
    display: none;
}

.wl-preview--no-logo .wl-status-no-name {
    display: inline;
}

.wl-preview--no-status .wl-preview-status-text {
    display: none;
}

.wl-picker input[type="color"] {
    width: 24px;
    height: 24px;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
    padding: 0;
    background: none;
    cursor: pointer;
}

.wl-picker + .wl-picker {
    margin-left: 4px;
}

.wl-branding-actions {
    display: flex;
    gap: 10px;
}

/* Review page: once every unit is resolved, draw the eye to the way back
   to the queue — approve-and-move-on is the intended rhythm. */
.aplus-back-link-pulse {
    animation: aplus-back-pulse 1.2s ease-in-out 3;
    border-radius: 4px;
}

@keyframes aplus-back-pulse {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(107, 79, 187, 0.18); }
}

/* Parked booking failure: the headline is bold; the raw error reads as
   secondary detail under it. */
.aplus-booking-error-detail {
    font-weight: 400;
    opacity: 0.85;
    word-break: break-word;
}

/* After a Retry booking click: unmistakably positive, not a gray button. */
.aplus-booking-redispatched {
    color: var(--fo-success, #1a7f4b);
    background: rgba(26, 127, 75, 0.08);
    border-radius: 6px;
    padding: 8px 10px;
}

/* A service line that carries an amount but no coding at all (no account and
   no item) — nothing tells the ledger what it's for. Flag it amber so a bare
   line can't be approved unnoticed (Jesse, 2026-08-17). */
.aplus-lines-table tr.aplus-line-incomplete td {
    background: #fff7e6;
}

.aplus-lines-table tr.aplus-line-incomplete .aplus-line-coding,
.aplus-lines-table tr.aplus-line-incomplete .aplus-line-amount {
    box-shadow: inset 0 0 0 1px #e0a44a;
}

/* ---------------------------------------------------------------------------
   Payroller: the standing exception strip under a workflow row. The table it
   sits in inherits white-space: nowrap, so a long blocking message (a file-
   layout failure lists every expected AND found column) rendered as ONE line
   and ballooned the whole table sideways (6000px+ against a 1400px viewport,
   Jesse 2026-09-01). Wrap the text; keep the action buttons on one line.
   --------------------------------------------------------------------------- */
.payroll-issues-row td,
.payroll-issues-alert {
    white-space: normal;
}

.payroll-issues-text {
    min-width: 0;               /* let the flex item shrink so text wraps */
    overflow-wrap: anywhere;    /* filenames and quoted column lists have no spaces to break on */
}

/* ---------------------------------------------------------------------------
   Payroller: the "Files to book" cell is the upload landing pad; the files
   themselves are listed once, in the row below it. Splitting the pending files
   into chips up here and everything else down there put one list in two places.
   --------------------------------------------------------------------------- */
.payroll-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: 1px dashed #c9c9d4;
    border-radius: 8px;
    padding: 10px 12px;
    /* The cell it sits in is capped (.wider-column max-width: 200px); a fixed min-width wider than
       that pushed the hint text through both borders. Fill the cell instead, and let the hint wrap. */
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.payroll-dropzone:hover {
    border-color: #7b5cd6;
    background-color: #e7f1ff;
}

.payroll-dropzone.payroll-dropzone--active {
    border-color: #7b5cd6;
    border-style: solid;
    background-color: #e7f1ff;
}

.payroll-dropzone__icon {
    color: #7b5cd6;
    font-size: 1.1rem;
}

/* Both texts must WRAP inside the dashed box: the table cell they live in is nowrap, and a
   column-flex child with align-items:center is otherwise free to grow past its parent. */
.payroll-dropzone__hint,
.payroll-dropzone__ready {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.payroll-dropzone__hint {
    color: #8a8a99;
    font-size: 14px;
}

.payroll-dropzone__ready {
    color: #3b2f66;
    background-color: #f1ecff;
    border-radius: 12px;
    padding: 1px 10px;
    font-size: 14px;
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Payroller: THE file list (payroller/includes/file_list.html) — one component,
   collapsed behind its strip under each workflow-list row and open on the
   workflow page's Files tab. Files are grouped by pay run: a band (Waiting /
   Booked / Rejected), then a header per pay run, then its files. Chips are the
   app's closer-pill; buttons the app's btn-sm set (.claude/rules/frontend.md).
   --------------------------------------------------------------------------- */
.payroll-files {
    background: #fbfafc;
    border-top: 1px solid #e9e7ee;
    font-size: 14px;
    color: #2d2c2f;
    text-align: left;
}

.payroll-files-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 12px;
}

.payroll-files-toggle {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: #250d47;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.payroll-files-toggle:hover {
    color: #e91e63;
}

.payroll-files--open .payroll-files-toggle .closer-task-section-caret {
    transform: rotate(90deg);
}

.payroll-files-strip-text {
    color: #495057;
}

.payroll-files-spacer {
    flex: 1;
}

.payroll-files .closer-pill.closer-status-badge {
    font-size: 12px;
    padding: 0.2rem 0.55rem;
}

.payroll-files .closer-pill.closer-note-number {
    font-size: 12px;
    padding: 0.15rem 0.5rem;
    margin-right: 0;
}

.payroll-files-table {
    font-size: 14px;
    color: #2d2c2f;
}

.payroll-files-table > thead > tr > th {
    background: #250d47;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border: 0;
    padding: 6px 8px;
    white-space: nowrap;
    /* Pinned while the list scrolls inside .payroll-files-scroll (fo-check-scroll.js sizes it to
       the window on wide screens), as the checks tables' headers are (Jesse, 2026-10-12). */
    position: sticky;
    top: 0;
    z-index: 5;
}

/* The pay-run tick boxes (the site checkbox, 14px) and the header's tick-all. */
.payroll-files-select,
.payroll-files-select-all {
    width: 14px;
    height: 14px;
    margin: 0;
    flex: none;
    vertical-align: middle;
    cursor: pointer;
}

.payroll-files-select-all {
    margin-right: 4px;
    background-color: #fff;
}

.payroll-files-col-payrun .payroll-files-select {
    margin-right: 4px;
}

.payroll-files-clear {
    color: #495057;
}

.payroll-files-table td {
    padding: 5px 8px;
    vertical-align: middle;
    border-color: #dee2e6;
    background: #fff;
}

.payroll-files-band td {
    background: #f3f1f7;
}

.payroll-files-band--booked td {
    background: #eef5f0;
}

.payroll-files-band--rejected td {
    background: #fbeeed;
}

.payroll-files-band-head,
.payroll-files-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.payroll-files-group td {
    border-top: 2px solid #e9e7ee;
}

.payroll-files-group-head {
    padding-left: 8px;
}

.payroll-files-group-name {
    color: #250d47;
}

.payroll-files-sub,
.payroll-files-muted {
    color: #495057;
    font-weight: 400;
}

.payroll-file-row--grouped td:first-child {
    border-left: 3px solid #e9e7ee;
}

.payroll-file-name {
    font-weight: 500;
}

.payroll-file-tag {
    margin-left: 6px;
}

.payroll-files-empty {
    color: #495057;
    padding: 12px;
}

/* The Files tab's landing pad is the page-wide one; the list row's stays small. */
.payroll-dropzone--page {
    padding: 22px 16px;
}

/* The preview modal's cash tie-out, grouped by pay run: one header row per payroll. */
.payroller-tie-out-payrun td {
    background: #f3f1f7;
    padding-top: 6px;
}

.payroll-file-remove {
    border: 0;
    background: none;
    color: #98a2b3;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 6px;
    cursor: pointer;
}

.payroll-file-remove:hover {
    color: #c0392b;
}

.payroll-file-row--deleted {
    background-color: #f2f4f7;
    color: #667085;
}

.payroll-file-undo {
    font-weight: 600;
}

/* Payroll preview modal: ONE scroll region, and a visible cue that there is more
   below it. The entries table used to have its own max-height scroller nested
   inside the modal's, so expanding a paycheck pushed the rest into a second,
   invisible scrollbar — the content looked like it had vanished. */
.payroller-modal-dialog {
    max-width: 95vw;
    width: 95vw;
    height: 92vh;
    margin-left: auto;
    margin-right: auto;
}

.payroller-modal-dialog .modal-content {
    position: relative;
    max-height: 92vh;
}

.payroller-modal-fade {
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 66px;
    height: 34px;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
    pointer-events: none;
}

/* Payroller "File layout" panel (assets/javascript/payroller/ParseConfigPanel.tsx) */
.payroller-layout-summary {
    margin-top: 0.25rem;
}

.payroller-layout-grid {
    display: grid;
    grid-template-columns: max-content minmax(12rem, 28rem);
    gap: 0.35rem 0.75rem;
    align-items: center;
}

.payroller-layout-label {
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
}

.payroller-layout-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

/* A held-out column: the one chip (closer-status-new, at the chip size above), its name in the
   file's own case because mapping rules match it exactly, and a × that makes it a pay item. */
.payroller-layout-chip {
    gap: 0.35rem;
    text-transform: none;
}

.payroller-layout-chip-x {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    cursor: pointer;
}

.payroller-layout-chip-x:hover {
    color: #e91e63;
}

.payroller-layout-help {
    color: #495057;
}

/* The read-only Mapping page (payroller/payroller_mapping.html): two fo-check-tables whose cells
   wrap, so the page fits the window. Not in .table-responsive: the theme sets its cells nowrap,
   which pushed the long descriptions and notes off the right edge. Its tables are short, so their
   heads pin at the top. */
.payroller-mapping-scroll {
    overflow-x: auto;
}

.payroller-mapping-title {
    font-size: 14px;
    font-weight: 600;
    color: #250d47;
    margin-bottom: 0.25rem;
}

.payroller-mapping-intro {
    font-size: 14px;
    font-weight: 400;
    color: #495057;
    margin-bottom: 0.5rem;
}

.payroller-mapping .fo-check-table > thead > :where(tr) > th {
    top: 0;
    white-space: nowrap;
}

.payroller-mapping .fo-check-table td {
    font-size: 14px;
    color: #2d2c2f;
}

.payroller-mapping .fo-check-table > tbody > tr:hover > td {
    background: #e7f1ff;
}

/* A match condition, a class or a name under the cell's main line. */
.payroller-mapping-sub {
    color: #495057;
    font-weight: 400;
}

/* A saved regex no plain wording fits, shown as it is. */
.payroller-mapping-pattern {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

/* Long free text (a group's description, a rule's note) takes the width and wraps. */
.payroller-mapping-wide {
    min-width: 16rem;
}

.payroller-mapping-nowrap {
    white-space: nowrap;
}

/* The Payroll preview's "Booking updates N entries already in QuickBooks ..." line. */
.payroller-book-changes {
    font-size: 14px;
    color: #2d2c2f;
}

/* "The last verify did not book" banner in the mapping editor. */
.payroller-issue-items {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.payroller-issue-item {
    font-weight: normal;
}

/* Setup | Files & mapping sub-tabs on the workflow page. */
.payroller-subtabs .nav-link {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Workflow page action row: Analyze + Discuss are the same .btn-sm size, on one baseline. */
/* File pop-up (web/components/file_preview_modal.html): a raw grid or a transformed frame
   is wide (a claims report runs 20+ columns), so it scrolls inside the modal with a sticky
   header; a workbook's sheets are pills above the table.

   The dialog takes the screen it is given rather than `modal-xl`'s 1140px (Jesse, 2026-09-20:
   "use more of the screen instead of making me scroll") — on a wide monitor that is most of a
   sheet's columns at once. Height is capped off the viewport, not a flat 65vh, so the grid
   grows with the window; a short sheet still makes a short modal, because these are maxima. */
.fo-file-preview-dialog {
  max-width: min(1900px, 96vw);
}
.fo-file-preview-body {
  padding-top: 0.5rem;
}
/* The sheet strip. "Which tab am I looking at?" had no good answer (Jesse, 2026-09-20): the
   theme paints an active pill WHITE with purple text (`.nav.nav-pills .nav-link.active`), so
   the selected sheet differed from the others by a barely-there tint. Here the selected sheet
   is a filled brand-purple pill with white text — the same purple as the grid header below, so
   the pill reads as that grid's tab — the rest are outlined and muted, and a "SHEET" label says
   what the strip is.

   Every selector below carries `.nav.nav-pills` for specificity: the theme's rules are 0,3,0,
   so a plain `.fo-file-preview-sheets .nav-link` (0,2,1) loses and the pill stays white. */
.nav.nav-pills.fo-file-preview-sheets {
  margin-bottom: 0.5rem;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.4rem;
}
.fo-file-preview-sheets-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  margin-right: 0.35rem;
}
.nav.nav-pills.fo-file-preview-sheets .nav-link {
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  color: #250d47;
  border: 1px solid #d5d0dd;
  background-color: var(--bs-white);
}
.nav.nav-pills.fo-file-preview-sheets .nav-link:hover:not(.active) {
  border-color: #250d47;
  background: transparent; color: #e91e63;
}
.nav.nav-pills.fo-file-preview-sheets .nav-link.active {
  background-color: #250d47;
  border-color: #250d47;
  color: var(--bs-white);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(37, 13, 71, 0.35);
}
/* The sheet name repeated beside the row/column count, so the answer is also in the footer
   the eye lands on after reading the grid. */
.fo-file-preview-sheet-name {
  font-weight: 700;
  color: #250d47;
}
.fo-file-preview-scroll {
  max-height: calc(100vh - 14rem);
  overflow: auto;
}
.fo-file-preview-viewport {
  position: relative;
}
/* A PDF chip's file, shown in the pop-up rather than downloaded: as tall as the grid may be. */
.fo-file-preview-pdf {
  display: block;
  width: 100%;
  height: calc(100vh - 14rem);
  border: 0;
}
.fo-file-preview-pdf[hidden] {
  display: none;
}
.fo-file-preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
/* Row numbers, the spreadsheet's gutter: the same strip as the column letters (Jesse,
   2026-09-07), right-aligned, never wrapping, and sticky so a wide grid keeps its numbers.
   !important on the body cell for the same reason as the thead rule above: .table-striped's
   body colour is !important too. */
.fo-file-preview-table .fo-file-preview-rownum {
  background-color: #250d47;
  color: var(--bs-white) !important;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  width: 1%;
  position: sticky;
  left: 0;
  z-index: 1;
  user-select: none;
}
.fo-file-preview-table thead th.fo-file-preview-rownum {
  z-index: 2;
}
.payroller-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Workflow page (TM-2529): the sub-tab row carries Discuss with AI at its right end, so the thread
   is reachable from Setup, Files and Mapping. */
.payroller-subtab-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payroller-subtab-spacer {
    flex: 1 1 auto;
}

.payroller-hint {
    color: #495057;
}

/* The workflow page's step strip (TM-2554): 1 Upload, 2 Mapping / Analyze, 3 Verify, 4 Book. The
   desk tabs' dress: white steps, the one to do next solid dark purple, hot pink on hover. A done
   step carries the green check, a step that needs fixing the red warning. */
.payroller-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.payroller-steps > li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.payroller-step-arrow {
    color: #495057;
    font-size: 10px;
}

.payroller-step {
    display: inline-flex;
    align-items: center;
    height: 29px;
    padding: 0 0.6rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    color: #250d47;
    font-size: 12px;
    white-space: nowrap;
}

.payroller-step:hover,
.payroller-step:focus-visible {
    color: #e91e63;
}

.payroller-step-n {
    font-weight: 600;
    margin-right: 0.35rem;
}

.payroller-step--current,
.payroller-step--current:hover,
.payroller-step--current:focus-visible {
    background: #250d47;
    border-color: #250d47;
    color: #fff;
}

.payroller-step--todo {
    color: #495057;
}

.payroller-steps-next {
    display: flex;
    align-items: center;
    margin-top: 0.35rem;
    font-size: 12px;
    color: #2d2c2f;
}

/* Under Discuss with AI on the sub-tab row: the button and New thread on one line, its hint below. */
.payroller-discuss-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.payroller-discuss-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Analyze's result. Ready: a plain bordered box under a green chip. Needs review: an amber call-out
   (the pending chip's family) whose head band says what to do next (Theresa, 2026-11-16). */
.payroller-analysis {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 12px;
    color: #2d2c2f;
}

.payroller-analysis-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #dee2e6;
}

.payroller-analysis-title {
    font-size: 14px;
    font-weight: 600;
    color: #250d47;
}

.payroller-analysis-lead {
    flex-basis: 100%;
    font-size: 12px;
    font-weight: 600;
}

.payroller-analysis-body {
    padding: 0.75rem 0.9rem;
}

.payroller-analysis-body .text-sm {
    font-weight: 400;
}

.payroller-analysis--needs-review {
    border: 2px solid #fedf89;
}

.payroller-analysis--needs-review .payroller-analysis-head {
    background: #fff3e0;
    color: #b26a00;
    border-bottom-color: #fedf89;
    border-radius: 0.4rem 0.4rem 0 0;
}

.payroller-analysis--needs-review .payroller-analysis-head > i {
    font-size: 16px;
}

.payroller-analysis-gaps ul {
    padding-left: 1.25rem;
}

.payroller-analyze-loading {
    padding: 24px;
}

/* The Mapping tab's "The last verify did not book" box (MappingEditor.tsx): the theme's alert-warning
   is a solid orange with the muted lines in peach on it, which nobody could read (TM-2529). Drawn as
   the amber call-out above instead: light amber ground, amber edge, body-ink text. */
.payroller-last-issues.alert-warning {
    background: #fff3e0;
    background-image: none;
    border: 2px solid #fedf89;
    color: #2d2c2f;
    font-size: 12px;
}

.payroller-last-issues.alert-warning .fw-bold {
    color: #b26a00;
}

.payroller-last-issues.alert-warning .text-muted {
    color: #495057 !important;
}

/* The box's links: "+N more" / "Show fewer" and "Discuss with AI" (TM-2547). Buttons drawn as the app's
   links, inline in the sentence: dark purple, hot pink on hover, no underline, no button caps. */
.payroller-last-issues .btn-link.payroller-issue-link {
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    letter-spacing: normal;
    text-transform: none;
    vertical-align: baseline;
    color: #250d47;
    text-decoration: none;
    box-shadow: none;
}

.payroller-last-issues .btn-link.payroller-issue-link:hover,
.payroller-last-issues .btn-link.payroller-issue-link:focus-visible {
    color: #e91e63;
}

/* Discuss with AI as a drawer on the right (TM-2548). It used to open inline above the sub-tabs and
   push the page down, so after a chat you scrolled a long way back to Analyze. Fixed to the window, it
   opens where you are; on a wide screen the page makes room for it instead of sitting under it.
   Same NoteChat as Closer's Discuss; the thread fills the drawer between its header and composer. */
.payroller-discuss-drawer:not(.closer-discuss-collapsed) > .closer-discuss-aside {
    position: fixed;
    top: 4.5rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(32rem, calc(100vw - 1.5rem));
    z-index: 1035;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #faf9fc;
    border: 1px solid #ece9f1;
    border-radius: 0.5rem;
    box-shadow: 0 12px 32px rgba(37, 13, 71, 0.25);
}

.payroller-discuss-drawer:not(.closer-discuss-collapsed) > .closer-discuss-aside
    :is(.payroller-workflow-chat-mount, .closer-note-chat, .closer-note-chat-panel) {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.payroller-discuss-drawer:not(.closer-discuss-collapsed) > .closer-discuss-aside .closer-note-chat-messages {
    flex: 1 1 auto;
    min-height: 6rem;
    max-height: none;
    resize: none;
}

@media (min-width: 992px) {
    .payroller-discuss-drawer:not(.closer-discuss-collapsed) > .closer-discuss-aside {
        width: min(32rem, 38vw);
    }

    #payroller-workflows:has(.payroller-discuss-drawer:not(.closer-discuss-collapsed)) :is(.payroller-steps-wrap, .payroller-subtab-row, .payroller-subtab-content) {
        margin-right: calc(min(32rem, 38vw) + 0.5rem);
    }

    /* The Mapping tab's rule and cash-group tables are wider than the page the drawer leaves, so
       they scroll sideways in their own box rather than running under it. Only while it is open:
       the box would pin their sticky heads to itself and clip a picker's menu at its bottom edge. */
    #payroller-workflows:has(.payroller-discuss-drawer:not(.closer-discuss-collapsed)) .payroller-wide-table {
        overflow-x: auto;
    }
}

/* The Guidance box: the app's input (white, 1px lightgray, .375rem), so it reads as a place to type.
   When the result above it asks for answers, it takes the hot pink edge until it is answered. */
.payroller-guidance-input.form-control {
    font-size: 12px;
    background-color: #fff;
    border: 1px solid lightgray;
    border-radius: 0.375rem;
    padding: 0.4rem 0.6rem;
    min-height: 4.5rem;
    resize: vertical;
}

.payroller-guidance--wanted .payroller-guidance-input.form-control {
    border: 2px solid #e91e63;
}

.payroller-layout-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
}

.payroller-layout-check .form-check-input.fo-check-bare { margin: 0; flex: none; }

/* Workflows page ▸ a file's Pay run cell: a multi-run file lists a dozen pay-run ids in one
   cell; wrap them at a sane width instead of scrolling the whole page (Jesse, 2026-09-07). */
.payroll-files-table td.payroll-files-col-payrun {
    max-width: 14rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Queue "Booked / Updated" cell: the per-bill ledger deep links sit small and
   muted under the booked time (Jesse, 2026-08-17). */
.aplus-queue-bill-links {
    display: inline-flex;
    gap: 0.4rem;
    margin-left: 0.4rem;
    font-size: 14px;
}

.aplus-queue-bill-links a {
    color: #495057;
    text-decoration: underline;
}

/* The Bank Data neighbors on the Reconciler tab strip — links that leave, not
   tab-panes, so they render quieter than the real tabs and never look active. */
.rec-bankdata-links-label {
    color: #6c757d;
    font-weight: 600;
    cursor: default;
}

/* .card-header-tabs pulls the row's right edge out by half the card's cap padding — correct for
   a bare card header, but the template overrides only the MIRRORED left margin (ms-3), so the
   right stayed negative and Connections hung off the card once the row grew wide enough to reach
   the edge (Jesse, 2026-09-05). Match ms-3 on the right, and wrap rather than overflow when the
   viewport cannot hold both groups plus the button. */
#workflows-tabs.card-header-tabs {
    flex-wrap: wrap;
    margin-right: 1rem;
}

#workflows-tabs .rec-bankdata-link {
    color: #6c757d;
}

#workflows-tabs .rec-bankdata-link:hover {
    color: #344767;
}

/* "Not on this statement" — the Amex post-dating toggle on matched rows. Quiet
   until on; on = the amber of a deliberate exception, not an error. */
.rec-divide-offstmt-btn {
    background: none;
    border: none;
    padding: 0 0.2rem;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.45;
}

.rec-divide-offstmt-btn:hover {
    opacity: 1;
}

.rec-divide-offstmt-btn--on {
    opacity: 1;
    filter: none;
    background: #e4f0ff;
    border: 1px solid #5b9cf6;
    border-radius: 0.2rem;
}

/* Bank Data embedded inside Reconciler — the pane IS the Bank Data page in a
   same-origin frame (?embed=1 renders it content-only). Tall enough that the
   inner page scrolls like a page, not a porthole. */
.rec-bankdata-pane {
    position: relative;
}

/* Laid out while hidden: Bootstrap's display:none would size the pre-warmed frame at width 0,
   and the Bank Data page inside would measure its tables against nothing — the squashed
   "S t a t u s" header on first open (Jesse, 2026-08-30). Zero height + hidden keeps it out of
   sight and out of the tab order while the frame renders at the real width. */
.tab-content > .rec-bankdata-pane:not(.active) {
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.rec-bankdata-frame {
    width: 100%;
    min-height: calc(100vh - 220px);
    border: none;
    display: block;
}

/* Shown in a Bank Data pane until its frame fires load (the page takes seconds to render). */
.rec-bankdata-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 4rem 1rem;
    color: #667085;
    font-size: 0.9rem;
}

.rec-bankdata-loading .rec-inline-spin {
    width: 1em;
    height: 1em;
}

/* Framed Chat page: the drawer head already says "Chat"; don't spend the strip's first
   60px on the page title too. */
.fo-embedded #ai-tabs {
    display: none;
}
/* Closer live lights + snapshot picker (2026-08-22) */
/* Three-lamp traffic lights, the lit lamp = the state (Jesse, 2026-08-28).
   Since 2026-09-17 they sit above the tab strip, over the month picker, rather
   than in the Monthly Review pane, so they read as one compact row: lamp,
   name, and a clipped detail line whose full text rides the hover popover. */
/* 2026-10-02 (Jesse): IN the tab strip now — label on top, lamp under it, no
   detail line (that rides the hover), the pair no taller than the tabs. */
.closer-review-lights { display: flex; align-items: center; gap: 1rem; }
.closer-light { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: 14px; color: inherit; text-decoration: none; line-height: 1.1; white-space: nowrap; }
.closer-light:hover { color: inherit; }
.closer-light-name { font-weight: 600; color: #3d3550; }
.closer-light-count { font-variant-numeric: tabular-nums; }
.closer-light-pop-detail { margin-bottom: .4rem; }
.closer-light-dot { display: inline-flex; gap: .18rem; align-self: center; flex: 0 0 auto; padding: .16rem .26rem; border-radius: 999px; background: #2f3437; }
.closer-light-dot i { width: .52rem; height: .52rem; border-radius: 50%; background: #6c757d; opacity: .28; }
.closer-light-ok .closer-light-dot i:nth-child(3) { background: #28a745; opacity: 1; box-shadow: 0 0 .35rem #28a745; }
.closer-light-warn .closer-light-dot i:nth-child(2) { background: #ffc107; opacity: 1; box-shadow: 0 0 .35rem #ffc107; }
.closer-light-fail .closer-light-dot i:nth-child(1) { background: #dc3545; opacity: 1; box-shadow: 0 0 .35rem #dc3545; }
.closer-light-pending .closer-light-dot i { animation: closer-light-pulse 1.2s ease-in-out infinite; }
@keyframes closer-light-pulse { 0%, 100% { opacity: .2; } 50% { opacity: .7; } }
/* Built-in skill card: the ? that opens the description; the gear folds
   out Turn off / Runs / Months to look back as boxed fo-check-param
   fields, the same shape as a check's settings. */
.closer-builtin-help { color: var(--bs-secondary-color, #6c757d); line-height: 1; }
.closer-builtin-helptext { margin: .15rem 0 .4rem; max-width: 60rem; }
.closer-builtin-settings { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin: .25rem 0 .5rem; }
.closer-builtin-settings .closer-builtin-trailing { width: 5rem; }
.closer-builtin-settings .closer-builtin-cadence { min-width: 17rem; }
/* Built-in skill draft as a grid: accounts down, statement dates across
   (flatten, 2026-09-18). Scrolls sideways inside itself when an open
   period has many statement dates; booked columns recede. */
.closer-builtin-grid-wrap { overflow-x: auto; max-width: 100%; margin: .25rem 0 .75rem; }
.closer-builtin-grid { font-size: 14px; border-collapse: collapse; }
.closer-builtin-grid th, .closer-builtin-grid td { padding: .2rem .6rem; border-bottom: 1px solid #dee2e6; white-space: nowrap; }
.closer-builtin-grid th { font-weight: 600; text-align: right; vertical-align: bottom; }
.closer-builtin-grid th .closer-pill { font-size: 12px; }
.closer-builtin-grid-acct { position: sticky; left: 0; background: var(--bs-body-bg, #fff); }
.closer-builtin-grid td.closer-builtin-grid-booked, .closer-builtin-grid td.closer-builtin-grid-clean { color: var(--bs-secondary-color, #6c757d); }
.closer-review-snap-select { width: auto; max-width: 16rem; display: inline-block; }

/* Closer Monthly Review lights: hover popovers; empty months in the period picker */
.closer-light-pop { max-width: 22rem; font-size: 14px; }
.closer-light-pop-list { list-style: none; margin: 0 0 .4rem; padding: 0; max-height: 16rem; overflow-y: auto; }
.closer-light-pop-list li { padding: .1rem 0; }
.closer-light-pop-prod { font-weight: 600; color: #6c74d8; }
.closer-light-maplink { font-weight: 600; }
.closer-finperiod-empty { color: #495057; }

/* Closer Financials: empty month, change history under drill rows, popover links */
.closer-snap-null { color: #8a8f98 !important; border-style: dashed !important; }
.closer-fin-empty { padding: 1.25rem 1rem; margin: .5rem 0 1rem; border: 1px dashed #c9cbe6; border-radius: .4rem; color: #5a5f6d; background: #fafaff; }
.closer-fin-drillx-chg { border: 0; background: #fff3cd; color: #6b5600; font-size: 14px; padding: .05rem .35rem; border-radius: .25rem; cursor: pointer; }
.closer-fin-drillx-chg:hover { background: #ffe69c; }
.closer-light-pop-err { font-weight: 600; }
.closer-light-pop-errtext { font-weight: 400; font-size: 14px; color: #495057; padding-left: .5rem; }
.closer-light-pop-link, .closer-light-pop-sheet { color: inherit; text-decoration: underline dotted; }
.closer-light-pop-sheet { color: #6c74d8; margin-left: .15rem; }

/* Checks tab: quick filter box */
/* Bottom space is PADDING, not margin: the box is sticky with its own
   background, and a margin would leave a see-through strip above the frozen
   column header. Its measured height includes it. */
.fo-check-search { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .35rem 0 .5rem; }
.fo-check-search .fa-search { color: #8a8f98; }
.fo-check-search-input { max-width: 22rem; }
.fo-check-search-count { font-size: 14px; }

/* Wrapped account names keep their hanging indent: the label is its own box
   after the caret/spacer, so a second line starts under the first line's
   text, not at the cell's padding edge (Jesse, 2026-08-23, Cash Flow). */
.closer-fin-acct .closer-fin-acct-label { display: inline-block; vertical-align: top; max-width: calc(100% - 3.2em); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Financials comment panel: settled / nearby-month groups */
.closer-fin-group-toggle { padding: 0; font-size: 14px; text-decoration: none; text-transform: none; letter-spacing: 0; }
.closer-fin-group-toggle::before { content: "\25B8"; display: inline-block; margin-right: .3rem; transition: transform .12s ease; }
.closer-fin-group-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.closer-fin-group { border-left: 2px solid #e4e5f3; margin: .25rem 0 .5rem; padding-left: .5rem; }
.closer-fin-thread-month { margin-left: .4rem; }

/* missing_service_period fix: the two date inputs stack tight */
.fo-svcper-cell { min-width: 9.5rem; }
.fo-svcper-cell input { margin-bottom: .25rem; }

/* Findings bulk bar: assign-to-conversation controls; per-row thread chip */
.fo-finding-bulkbar .fo-finding-assignee { max-width: 12rem; }

/* Built-in deterministic skills (Skills tab) */
.closer-builtin-row { padding: .5rem 0; border-top: 1px solid #eef0f6; }
.closer-builtin-row:first-of-type { border-top: 0; }
.closer-builtin-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.closer-builtin-draft { margin: .5rem 0 0 1rem; }
.closer-builtin-je { margin-bottom: .75rem; }
.closer-builtin-je-head { font-size: 14px; margin-bottom: .25rem; }
.closer-builtin-je-table { font-size: 14px; border-collapse: collapse; }
.closer-builtin-je-table td { padding: .1rem .75rem .1rem 0; border-bottom: 1px solid #dee2e6; }
.closer-builtin-je-table td.closer-fin-amt { text-align: right; font-variant-numeric: tabular-nums; }

.closer-builtin-cadence { width: auto; display: inline-block; }
/* Per-skill Configure disclosure (bs_debris): ONE scrollable table — a sticky
   account column (dark red = liability, dark green = asset), the settable
   mode chip, the trailing months as most of the width, "Off target" last
   (Jesse, 2026-09-25). Rows are deliberately taller. */
.closer-builtin-config { margin: .5rem 0 0 1rem; }
.closer-builtin-cfg-wrap { overflow-x: auto; margin-top: .35rem; }
.closer-builtin-cfg-table { font-size: 14px; border-collapse: separate; border-spacing: 0; min-width: max-content; }
.closer-builtin-cfg-table th { font-weight: 600; color: #6b6f8a; text-align: left; padding: .3rem .55rem; border-bottom: 1px solid #e4e5f3; white-space: nowrap; background: #fff; }
.closer-builtin-cfg-table th.closer-fin-amt { text-align: right; }
.closer-builtin-cfg-table td { padding: .5rem .55rem; border-bottom: 1px solid #dee2e6; vertical-align: middle; }
.closer-builtin-cfg-sticky { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 17rem; max-width: 22rem; box-shadow: 1px 0 0 #e4e5f3; }
thead .closer-builtin-cfg-sticky { z-index: 3; }
.closer-builtin-cfg-acct { font-weight: 600; line-height: 1.2; display: flex; align-items: flex-start; gap: .35rem; }
.closer-builtin-cfg-acct-text { min-width: 0; }
/* The kind chip: a narrow L / A beside the name, white on dark red / dark
   green (red TEXT read as an error — Jesse, 2026-09-25). */
.closer-builtin-kind-chip { display: inline-block; flex: 0 0 auto; min-width: 1.15rem; padding: 0 .3rem; border-radius: 3px; font-size: 12px; font-weight: 700; line-height: 1.15rem; text-align: center; color: #fff; background: #9aa1ab; }
.closer-builtin-kind-chip.is-liability { background: #8b1e2d; }
.closer-builtin-kind-chip.is-asset { background: #1e6b3a; }
.closer-builtin-cfg-sub { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.closer-builtin-cfg-sub .form-select-sm { max-width: 12rem; font-size: 14px; padding-top: .1rem; padding-bottom: .1rem; }
.closer-builtin-cfg-sub .closer-builtin-cfg-note { flex: 1 1 8rem; max-width: 9rem; font-size: 14px; padding-top: .2rem; padding-bottom: .2rem; resize: none; overflow: hidden; line-height: 1.25; white-space: nowrap; }
/* While a note is being edited it takes the whole cell and shows every line. */
.closer-builtin-cfg-sub.is-editing .closer-builtin-cfg-note { flex: 1 1 100%; max-width: none; white-space: normal; overflow: auto; }
.closer-builtin-cfg-status { font-size: 14px; color: #b8860b; font-weight: 600; white-space: normal; }
.closer-builtin-kind-key { margin-right: .75rem; }
.closer-builtin-kind-key .closer-builtin-kind-chip { margin-right: .3rem; }
.closer-builtin-mode-cell { white-space: nowrap; }
.closer-builtin-mode-chip { cursor: pointer; }
.closer-builtin-ledger-says { font-size: 14px; color: #495057; margin-top: .15rem; }
.closer-builtin-ledger-says .closer-builtin-ledger-use { font-size: 14px; vertical-align: baseline; }
.closer-builtin-shape-cell { cursor: pointer; }
.closer-builtin-shape-cell:hover { background: #e7f1ff; }
.closer-shape-bal { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.closer-shape-flow { color: #495057; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.closer-builtin-shape-off { white-space: nowrap; }
/* The current month to date: shown, muted, never a vote. */
.closer-builtin-cfg-table .closer-builtin-shape-todate { color: #8a8f98; }
.closer-builtin-cfg-table td.closer-builtin-shape-todate .closer-shape-bal { font-weight: 500; }
.closer-shape-off-hot { color: #b23a48; }
.closer-builtin-config-dirty .closer-builtin-config-save { font-weight: 600; }
.closer-builtin-config-dirty .closer-builtin-config-msg { color: #b8860b !important; font-weight: 600; }
.closer-builtin-discuss-bar { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; max-width: 46rem; }
.closer-builtin-discuss-bar .closer-builtin-discuss-note { flex: 1 1 auto; }
/* Financials → More reports: the delivery banner is a caption, not a header row */
.closer-fin-pkg-banner { font-size: 14px; color: #495057; margin: 0 0 .4rem; }
/* A package report's run: as of when, how much has changed since, and its Re-run (closer-fin-package.js). */
.closer-fin-pkg-asof { font-size: 14px; color: #495057; }
/* A package-only report (no spreadsheet) in the Monthly Package modal. */
.closer-package-only-note { font-size: 14px; color: #495057; }
.closer-fin-pkg-run-status { font-size: 14px; color: #495057; }
/* .closer-pill's display beats the UA's [hidden] (PR #3867 review round 1): an empty chip stays hidden. */
.closer-fin-pkg-changes[hidden] { display: none; }
/* The chip opens the transactions it counts in the drill. */
.closer-fin-pkg-changes { border: 0; cursor: pointer; }
.closer-fin-missing-report { margin: 0 0 .6rem; }
/* Checks tab: the status icon is the on/off switch; dismissed rows read as history */
.fo-check-onoff-form { display: inline; margin: 0 .5rem 0 0; }
.fo-check-onoff { background: none; border: 0; padding: 0; line-height: 1; cursor: pointer; }
.fo-check-onoff:hover i { filter: brightness(.85); }
.fo-dismissed-toggle, .fo-addressed-toggle, .fo-assigned-toggle, .fo-later-toggle, .fo-off-toggle { display: block; font-size: 14px; color: #e91e63; text-decoration: none; margin-top: .15rem; white-space: nowrap; }
.fo-dismissed-toggle:hover, .fo-dismissed-toggle:focus-visible,
.fo-addressed-toggle:hover, .fo-addressed-toggle:focus-visible,
.fo-assigned-toggle:hover, .fo-assigned-toggle:focus-visible,
.fo-later-toggle:hover, .fo-later-toggle:focus-visible,
.fo-off-toggle:hover, .fo-off-toggle:focus-visible { color: #250d47; }   /* hot pink, dark purple on hover (Christopher, 2026-10-12): the link pair inverted, so "n dismissed" stands out */
.closer-edit-modal [data-role="adopt-what"] { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.fo-roles-contact { max-width: 320px; margin-bottom: 1rem; }
.fo-roles-contact .form-control-sm { height: 29px; font-size: 14px; background-color: #fff; border: 1px solid lightgray; border-radius: .375rem; padding: 0 .5rem; }
.fo-roles-contact-note { font-size: 14px; color: #2d2c2f; margin-top: .25rem; }
.fo-assigned-toggle[hidden] { display: none; }   /* the block rule above beats the hidden attribute: "n assigned" stays in the row at zero, for the page to recount */
.fo-finding-dismissed .fo-finding-subject { color: #8a8f98; text-decoration: line-through; text-decoration-color: #cfd2df; cursor: default; }   /* no pick box to toggle: not clickable, so no hand */
/* Addressed (2026-10-22): fixed from the drawer, waiting on the next run. Muted, still in the list after the open ones; its chip says why. */
.fo-finding-addressed, .fo-finding-addressed > td, .fo-finding-addressed .fo-finding-subject { color: #8a8f98; }
.fo-finding-addressed-chip { margin-left: .25rem; }
.fo-dismiss-note { font-size: 14px; color: #8a8f98; font-style: italic; margin-left: .5rem; }   /* the dismissed subject's grey: one grey per dismissed row */
.closer-builtin-cfg-empty { margin-top: .35rem; }
.closer-builtin-cfg-status { font-size: 14px; color: #b8860b; font-weight: 600; }
.closer-builtin-cfg-addwrap { margin: 0; }
.closer-builtin-config-actions { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; flex-wrap: wrap; }
.closer-builtin-skipped { margin: .5rem 0 .6rem; }
.closer-builtin-skipped > summary { cursor: pointer; }
/* Preview: the entries as one line each, then the per-account fix table
   (balance now → true-up → balance after; Jesse, 2026-09-25). */
/* A running draft/book: unmistakable, not a muted line (Jesse, 2026-09-25). */
.closer-builtin-wait { display: flex; align-items: center; gap: .25rem; padding: .6rem .8rem; margin: .25rem 0 .5rem; border: 1px solid #e4e5f3; border-left: 3px solid #e83e8c; border-radius: 4px; background: #fbf7fb; font-size: 14px; color: #250d47; }
.closer-builtin-wait .spinner-border { color: #e83e8c; }
.closer-builtin-entry-strip { display: flex; flex-direction: column; gap: .25rem; margin: .25rem 0 .6rem; font-size: 14px; }
.closer-builtin-entry-row .closer-pill { margin-right: .25rem; }
.closer-pill.closer-status-badge.closer-builtin-action-delete { background: #f8d7da; color: #8b1e2d; }
.closer-builtin-fix-table { margin-bottom: .6rem; }
/* The Preview timeline: two columns per month, sticky account column. */
.closer-builtin-tl-wrap { margin-bottom: .6rem; overflow-x: auto; max-width: 100%; padding-bottom: .25rem; }
.closer-builtin-tl-table { font-size: 14px; border-collapse: separate; border-spacing: 0; min-width: max-content; }
.closer-builtin-tl-table th { font-weight: 600; color: #6b6f8a; padding: .25rem .5rem; border-bottom: 1px solid #e4e5f3; white-space: nowrap; background: #fff; text-align: left; }
.closer-builtin-tl-table th.closer-builtin-tl-month { text-align: center; border-left: 1px solid #e4e5f3; }
.closer-builtin-tl-table th.closer-builtin-tl-sub { font-weight: 500; font-size: 12px; text-align: right; }
.closer-builtin-tl-table td { padding: .4rem .5rem; border-bottom: 1px solid #dee2e6; vertical-align: middle; white-space: nowrap; }
.closer-builtin-tl-table td.closer-fin-amt, .closer-builtin-tl-table th.closer-fin-amt { text-align: right; font-variant-numeric: tabular-nums; }
.closer-builtin-tl-table td.closer-builtin-tl-entry { border-left: 1px solid #e4e5f3; }
/* The account cell wraps inside a fixed width so it never overflows onto the
   "before the range" column (Jesse, 2026-09-25: "too crowded"). */
.closer-builtin-tl-sticky { position: sticky; left: 0; z-index: 2; background: #fff; width: 17rem; min-width: 17rem; max-width: 17rem; white-space: normal; overflow: hidden; box-shadow: 1px 0 0 #e4e5f3; }
.closer-builtin-tl-table td.closer-builtin-tl-entry { min-width: 8rem; }
thead .closer-builtin-tl-sticky { z-index: 3; }
.closer-builtin-tl-acct { font-weight: 600; }
.closer-builtin-tl-before { color: #6b6f8a; }
.closer-builtin-tl-old { color: #9aa1ab; font-weight: 400; margin-right: .15rem; }
.closer-builtin-tl-new { font-weight: 600; }
.closer-builtin-tl-new.is-up { color: #1e6b3a; }
.closer-builtin-tl-new.is-down { color: #8b1e2d; }
.closer-builtin-tl-after { font-weight: 700; color: #250d47; }
.closer-builtin-tl-same { color: #4a4a68; }
.closer-builtin-tl-none { color: #c5c8d4; }
.closer-builtin-tl-label { font-size: 14px; color: #495057; margin-top: .15rem; white-space: nowrap; font-weight: 400; }
.closer-builtin-tl-table th.closer-builtin-tl-month { vertical-align: top; }
.closer-builtin-tl-label .closer-builtin-delete { font-size: 14px; vertical-align: baseline; }
.closer-builtin-tl-entry .closer-shape-flow { text-align: right; }
.closer-builtin-fix-table th.closer-fin-amt, .closer-builtin-fix-table td.closer-fin-amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.closer-builtin-fix-table tr.closer-builtin-fix-same td:first-child { border-top: 0; }
.closer-builtin-fix-delta.is-up { color: #1e6b3a; font-weight: 600; }
.closer-builtin-fix-delta.is-down { color: #8b1e2d; font-weight: 600; }

/* APlus line editor: the Item / Qty / Price cluster collapses when unused
   (Jesse, 2026-08-24) — the toggle button un-slims the table; a unit whose
   lines carry values renders un-slim from the server. */
.aplus-lines-slim .aplus-col-extra { display: none; }
.aplus-cols-toggle { opacity: .75; }

/* APlus vendor field when the typed name is NOT a ledger vendor — the
   Reconciler orange, so "you are about to introduce a new vendor" is
   unmissable before Approve. */
.aplus-line-input.aplus-vendor-new,
input.aplus-vendor-new { border-color: #f0813c; background: #fff7f0; }
.aplus-field-row.aplus-vendor-new-row { background: #fff7f0; box-shadow: inset 3px 0 0 #f0813c; }

/* Closer Monthly Review lights: hover popovers; empty months in the period picker */
.closer-light-pop { max-width: 22rem; font-size: 14px; }
.closer-light-pop-list { list-style: none; margin: 0 0 .4rem; padding: 0; max-height: 16rem; overflow-y: auto; }
.closer-light-pop-list li { padding: .1rem 0; }
.closer-light-pop-prod { font-weight: 600; color: #6c74d8; }
.closer-light-maplink { font-weight: 600; }
.closer-finperiod-empty { color: #495057; }

/* Closer Financials: empty month, change history under drill rows, popover links */
.closer-snap-null { color: #8a8f98 !important; border-style: dashed !important; }
.closer-fin-empty { padding: 1.25rem 1rem; margin: .5rem 0 1rem; border: 1px dashed #c9cbe6; border-radius: .4rem; color: #5a5f6d; background: #fafaff; }
#closer-fin-statements.closer-fin-waiting { display: none; }
.closer-fin-drillx-chg { border: 0; background: #fff3cd; color: #6b5600; font-size: 14px; padding: .05rem .35rem; border-radius: .25rem; cursor: pointer; }
.closer-fin-drillx-chg:hover { background: #ffe69c; }
.closer-light-pop-err { font-weight: 600; }
.closer-light-pop-errtext { font-weight: 400; font-size: 14px; color: #495057; padding-left: .5rem; }
.closer-light-pop-link, .closer-light-pop-sheet { color: inherit; text-decoration: underline dotted; }
.closer-light-pop-sheet { color: #6c74d8; margin-left: .15rem; }

/* Checks tab: quick filter box */
/* Bottom space is PADDING, not margin: the box is sticky with its own
   background, and a margin would leave a see-through strip above the frozen
   column header. Its measured height includes it. */
.fo-check-search { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .35rem 0 .5rem; }
.fo-check-search .fa-search { color: #8a8f98; }
.fo-check-search-input { max-width: 22rem; }
.fo-check-search-count { font-size: 14px; }

/* Wrapped account names keep their hanging indent: the label is its own box
   after the caret/spacer, so a second line starts under the first line's
   text, not at the cell's padding edge (Jesse, 2026-08-23, Cash Flow). */
.closer-fin-acct .closer-fin-acct-label { display: inline-block; vertical-align: top; max-width: calc(100% - 3.2em); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Financials comment panel: settled / nearby-month groups */
.closer-fin-group-toggle { padding: 0; font-size: 14px; text-decoration: none; text-transform: none; letter-spacing: 0; }
.closer-fin-group-toggle::before { content: "\25B8"; display: inline-block; margin-right: .3rem; transition: transform .12s ease; }
.closer-fin-group-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.closer-fin-group { border-left: 2px solid #e4e5f3; margin: .25rem 0 .5rem; padding-left: .5rem; }
.closer-fin-thread-month { margin-left: .4rem; }

/* missing_service_period fix: the two date inputs stack tight */
.fo-svcper-cell { min-width: 9.5rem; }
.fo-svcper-cell input { margin-bottom: .25rem; }

/* Findings bulk bar: assign-to-conversation controls; per-row thread chip */
.fo-finding-bulkbar .fo-finding-assignee { max-width: 12rem; }

/* Built-in deterministic skills (Skills tab) */
.closer-builtin-row { padding: .5rem 0; border-top: 1px solid #eef0f6; }
.closer-builtin-row:first-of-type { border-top: 0; }
.closer-builtin-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.closer-builtin-draft { margin: .5rem 0 0 1rem; }
.closer-builtin-je { margin-bottom: .75rem; }
.closer-builtin-je-head { font-size: 14px; margin-bottom: .25rem; }
.closer-builtin-je-table { font-size: 14px; border-collapse: collapse; }
.closer-builtin-je-table td { padding: .1rem .75rem .1rem 0; border-bottom: 1px solid #dee2e6; }
.closer-builtin-je-table td.closer-fin-amt { text-align: right; font-variant-numeric: tabular-nums; }

.closer-builtin-cadence { width: auto; display: inline-block; }

/* APlus line editor: the Item / Qty / Price cluster collapses when unused
   (Jesse, 2026-08-24) — the toggle button un-slims the table; a unit whose
   lines carry values renders un-slim from the server. */
.aplus-lines-slim .aplus-col-extra { display: none; }
.aplus-cols-toggle { opacity: .75; }

/* APlus vendor field when the typed name is NOT a ledger vendor — the
   Reconciler orange, so "you are about to introduce a new vendor" is
   unmissable before Approve. */
.aplus-line-input.aplus-vendor-new,
input.aplus-vendor-new { border-color: #f0813c; background: #fff7f0; }
.aplus-field-row.aplus-vendor-new-row { background: #fff7f0; box-shadow: inset 3px 0 0 #f0813c; }


/* A page loaded inside one of our own iframes (Reconciler's Bank Data panes) — the
   host page already wears the app chrome, so the framed copy renders content-only.
   Set by the framed-detection script at the top of web/base.html; !important because
   main.main-content carries its margin as an inline style. */
.fo-embedded aside.sidenav,
.fo-embedded nav.navbar-main {
    display: none !important;
}

/* Bank Data framed inside Reconciler (2026-08-30): Reconciler's own "Bank Data:" tabs choose the
   pane (the frame reads its tab from the hash), so the page's title, blurb, explainer and inner
   tab bar are one structure too many. Only the Sync button survives, right-aligned. */
/* html.fo-embedded + .plaid-connections-page: outranks the page's own inline <style> block, which
   styles these under `.plaid-connections-page .…` and loads after this sheet. */
html.fo-embedded .plaid-connections-page .plaid-page-title,
html.fo-embedded .plaid-connections-page .plaid-page-subtitle,
html.fo-embedded .plaid-connections-page #bank-data-explainer,
html.fo-embedded .plaid-connections-page #bank-data-explainer-show,
html.fo-embedded .plaid-connections-page .plaid-page-tabbar {
    display: none;
}

/* A Bank Data load whose hash names another tab: Connections is the server's active pane, so it
   stays hidden until the script after the panes activates the hash's one (TM-2099: every upload's
   reload flashed Connections, then jumped back). */
html[data-bd-initial-tab] .plaid-table-wrap > #plaid-connections-tab {
    display: none;
}

/* Sync moves down beside New Connection once the table renders, so the header holds nothing —
   zero its padding to kill the dead band above the table (Jesse, 2026-08-30: "too much white
   space at the top"). The empty state still shows the Sync button here, right-aligned. */
html.fo-embedded .plaid-connections-page .plaid-page-header {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    border: 0;
}

.fo-embedded main.main-content {
    margin-left: 0 !important;
}

/* APlus2 composer: split submit + 10s undo, sharing the Conversations
   composer's classes (conversations-submit*, -status-menu, -status-dot,
   -undo). A public reply mid-hold PULSES so "this is going to the client"
   is unmissable; "leave as is" gets a hollow dot. */
.aplus-composer-submit { margin-left: auto; }
.aplus-composer-undo { margin: 0 0 .4rem; }
.aplus-composer-sending .aplus-composer-body { opacity: .6; }
/* Undo send: the people header is shut while its reply waits (thread-panel.js). */
.aplus-people-held { pointer-events: none; opacity: .6; }
.aplus-composer-public.aplus-composer-sending { animation: aplus-composer-pulse 1s ease-in-out infinite; }
@keyframes aplus-composer-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 43, 39, 0); }
  50% { box-shadow: 0 0 0 3px rgba(224, 43, 39, .35); }
}
/* Vendor Consistency grid (Nelson, 2026-08-24) */
.fo-vc-subject { font-size: .88rem; }
.fo-vc-grid, .fo-vc-entries { font-size: 14px; border-collapse: collapse; margin: .25rem 0 .5rem; }
.fo-vc-grid th, .fo-vc-grid td, .fo-vc-entries th, .fo-vc-entries td { padding: .15rem .5rem; border-bottom: 1px dotted #e4e5f3; }
/* Headers and amounts on one line; a coding, a name or an account wraps instead of widening the
   grid past its card (products meeting 2026-10-22: "can you just wrap everything?"). normal, not
   just unset: these grids sit inside a .fo-fix-table, whose cells are nowrap. */
.fo-vc-grid td, .fo-vc-entries td { white-space: normal; overflow-wrap: break-word; }
.fo-vc-grid th, .fo-vc-entries th, .fo-vc-grid td.fo-rec-amt, .fo-vc-entries td.fo-rec-amt { white-space: nowrap; }
.fo-vc-grid td.fo-rec-amt, .fo-vc-entries td.fo-rec-amt { text-align: right; font-variant-numeric: tabular-nums; }
.fo-vc-new td { background: #fff8e6; }
.fo-vc-new-badge { background: #ffc107; color: #4a3b00; font-size: 12px; font-weight: 700; border-radius: .25rem; padding: 0 .3rem; margin-left: .3rem; }
/* Off-pattern: a coding the name HAS used before, just not where its money
   usually goes — quieter than NEW, same row treatment. */
.fo-vc-off td { background: #eef3ff; }
.fo-vc-off-badge { background: #b9bce0; color: #1d1f4a; font-size: 12px; font-weight: 700; border-radius: .25rem; padding: 0 .3rem; margin-left: .3rem; }
.fo-vc-grid-row > td { padding-left: 1.25rem; }
/* The month under review is always the LAST grid column; ring it so the
   reader can see at a glance which column the NEW badge is judging. */
.fo-vc-grid th.fo-vc-review-col, .fo-vc-grid td.fo-vc-review-col { border-left: 2px solid #b9bce0; font-weight: 600; }
.fo-vc-truncated { font-size: 14px; margin: 0 0 .35rem; }

/* Keep the twelve-month grid INSIDE its card (Jesse, 2026-08-27: "geometry
   on the outside"). The markup wrapped it in .tbl-wrap, but that class has
   no rule anywhere in the stylesheet — it was inert, so a thirteen-column
   grid widened its cell, widened the finding table, and scrolled the whole
   PAGE sideways, cutting the sidebar and every row label off the left edge.

   A scroll container inside a <td> only works once the cell has a definite
   width, which auto table-layout will never give it — hence table-layout:
   fixed, scoped to .fo-vc-list so no other check's fix table is touched.
   Fixed layout takes its columns from the first row, so the head row's
   checkbox and Dismiss cells are pinned and the subject takes the rest. */
.fo-vc-list { table-layout: fixed; width: 100%; }
.fo-vc-list .fo-vc-head > td:first-child { width: 2.5rem; }
.fo-vc-list .fo-vc-head > td:last-child { width: 6rem; }
.fo-vc-list .tbl-wrap { max-width: 100%; overflow-x: auto; }
.fo-vc-list .fo-vc-subject { white-space: normal; word-break: break-word; }
/* The account column stays put while the months scroll — a row label that
   scrolls away leaves twelve anonymous numbers. */
.fo-vc-grid th:first-child, .fo-vc-grid td:first-child {
    position: sticky; left: 0; z-index: 1; background: #fff;
}
.fo-vc-grid tr.fo-vc-new td:first-child { background: #fff8e6; }
.fo-vc-grid tr.fo-vc-off td:first-child { background: #eef3ff; }
/* Location fluctuations drawer (Amy, Mangomint, 2026-09): reuses the
   vendor grid's classes; these add only the head row's note column (pinned,
   like the checkbox cell, because .fo-vc-list is fixed-layout; the vendor / customer
   consistency rows carry the same note since 2026-10-26) and the caption over the entries. */
.fo-vc-list .fo-vc-head > td.fo-lf-note-cell { width: 15rem; }   /* the note over Dismiss + Always skip (.fo-finding-note-grid, 220px) and the cell's padding */
/* "Biggest entries in …" is the caps label (.closer-eyebrow in the markup), as "Last month" above
   the grid; this only spaces it. */
.fo-lf-entries-caption { margin: .35rem 0 0; }

/* APlus queue bulk actions: the select column and the bar that appears
   once rows are ticked. */
.aplus-bulk-col { width: 2rem; text-align: center; }
.aplus-bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .25rem 0 .5rem; padding: .4rem .6rem; border: 1px dashed #c9cbe6; border-radius: .4rem; background: #fafaff; }
.aplus-bulk-count { font-weight: 600; margin-right: .25rem; }
/* Toasts live top-RIGHT, not across the top (Jesse, 2026-08-25) */
.floating-alerts { position: fixed; top: 4.25rem; right: 1rem; left: auto; width: auto; max-width: 26rem; z-index: 2000; }
.floating-alerts .alert { box-shadow: 0 4px 14px rgba(20, 10, 60, .18); }
/* Checks filter presents as THE search box, chorded like APlus */
.fo-check-search-box { position: relative; display: flex; align-items: center; flex: 0 1 26rem; }
.fo-check-search-box .fa-search { position: absolute; left: .6rem; color: #8a8f98; z-index: 1; }
.fo-check-search-box .fo-check-search-input { padding-left: 2rem; padding-right: 3.4rem; max-width: none; }
.fo-check-search-kbd { position: absolute; right: .5rem; font-size: 12px; color: #8a8f98; background: #f1f2f8; border: 1px solid #dfe1ef; border-radius: .25rem; padding: 0 .3rem; }
/* Built-in skills drawer chips + auto note */
.closer-builtin-chip { margin-left: .5rem; }
.closer-builtin-autonote { margin: .15rem 0 0 .1rem; }
/* Skill accountability — the Recent-entries panel on every skill card (built-in
   and LLM). The write-log lifecycle status rides on each row so a stranded
   INTENDED write never reads as a booked entry. Colours mirror the
   .closer-status-* badges: succeeded=closed, failed=dismissed, intended=pending. */
.closer-skill-entries-wrap { margin: .25rem 0 .75rem; }
.closer-skill-entries-wrap .closer-builtin-draft { margin-left: 0; }
.closer-write-status { font-size: 14px; padding: .05rem .4rem; text-transform: capitalize; white-space: nowrap; }
.closer-write-status-succeeded { background: #e6f4ea; color: #1b7a3d; }
.closer-write-status-failed    { background: #fce8e6; color: #c5221f; }
.closer-write-status-intended  { background: #fff3e0; color: #b26a00; }
.closer-write-status-unknown   { background: #fff4d6; color: #a16207; }
.closer-builtin-je-table td.closer-write-tool { font-family: var(--bs-font-monospace, monospace); font-size: 14px; }
/* Conversations rail: Due input beside its label */
.conversations-due-row { display: flex; align-items: center; gap: .5rem; }
.conversations-due-row input { width: auto; }
/* Check settings: unsaved changes read BLUE until saved (Reconciler pattern) */

/* The desk table scrolls inside its own container (wide-table rule) —
   nine nowrap-heavy columns can outgrow the card. */
.conversations-table-scroll { max-width: 100%; overflow-x: auto; }
/* Conversations list: dense rows, whole-row click, keyed chips (2026-08-25) */
.conversations-table td { padding-top: .3rem !important; padding-bottom: .3rem !important; font-size: 14px; }
.conversations-row-clickable { cursor: pointer; }
.conversations-row-clickable:hover td { background: #f7f7fd; }
.conversations-chip { border-radius: 999px; border-width: 1px; font-weight: 600; }

/* Per-team conversation numbers */
.conversations-num-col { width: 3.5rem; font-variant-numeric: tabular-nums; }
.conversations-num { font-size: .7em; font-weight: 500; }
/* Detail header: the number is a chip beside the subject, not a smaller word in the
   same sentence (Jesse, 2026-08-28: "#12 is a different font size than the topic") */
.conversations-title { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.conversations-title .conversations-num { font-size: .55em; font-weight: 700; font-variant-numeric: tabular-nums; color: #4f5fb7; background: #eef0fb; border: 1px solid #dfe1ef; border-radius: 999px; padding: .1em .6em; line-height: 1.5; }
/* The subject at the NUMBER's size — the page is a desk, not a headline
   (Jesse, 2026-09-15: "make the subject font-size the same as the
   number's"). */
.conversations-title .conversations-subject { font-weight: 700; font-size: .55em; }

/* C: the built-in drawer advertises that it opens */
.closer-builtin-section > summary { cursor: pointer; list-style: none; }
.closer-builtin-section > summary::before { content: "\25B8"; display: inline-block; margin-right: .4rem; color: #6c74d8; transition: transform .12s ease; }
.closer-builtin-section[open] > summary::before { transform: rotate(90deg); }
/* L: the reply BODY is the content — full-strength ink, not caption grey. */
:root { --conv-text-size: 14px; }   /* the app's 14px text; Large is 16px (Christopher, 2026-11-13) */
html[data-conv-text="large"] { --conv-text-size: 16px; }
.conversations-msg-body { color: #1f2430 !important; font-size: var(--conv-text-size, 14px); }
/* A client's email brings its own font-size (inline, or a pasted table at
   14px). The reading size wins on every element of the message. */
.conversations-msg-body * { font-size: inherit !important; }
/* The original-email page's plain-text body: the mail's own line breaks, wrapping. */
.conversations-original-text { white-space: pre-wrap; font-family: inherit; }
/* The body renders as <p>s (linebreaks); the theme sets every p to 1rem
   at weight 300, which read faint on the amber and grey message fills. */
.conversations-msg-body p { font-size: inherit; font-weight: 400; }
/* The message head is the app's 14px text; the composer matches the
   reading size. The head's Internal / Client-visible badges keep the chips' 12px. */
.conversations-msg-head { font-size: 14px; }
/* .form-control transitions every property, so the reading-size change eased
   in the reply box. Keep the border and fill ease; the size snaps. */
.conversations-composer-body {
    font-size: var(--conv-text-size, 14px);
    transition-property: background-color, border-color, box-shadow, color, opacity;
}
/* Caps sit high in a normal line box; trim it to the cap height so equal
   padding centres the word (Chrome 133+; others get line-height 1). */
.conversations-msg-head .closer-pill { font-size: 12px; line-height: 1; padding: .25rem .5rem; text-box: trim-both cap alphabetic; }
/* On the amber internal message the Internal pill's fill all but vanished:
   outline every message badge in its own text colour, as a selected desk
   status chip is (.desk-status-chip.conversations-chip-active). */
.conversations-msg-head .closer-pill { border: 1px solid currentColor; }
/* 4/5: tighter rows, bigger numbers, unmistakable hover */
.conversations-table td { padding-top: .22rem !important; padding-bottom: .22rem !important; line-height: 1.25; }
.conversations-table td .conversations-due-days { font-size: 14px; }
.conversations-num-col { font-size: 1rem; font-weight: 700; color: #4f5fb7 !important; }
.conversations-row-clickable:hover td { background: #eef0fb !important; }

/* Email notifications: two equal columns (the trigger form and view emails). */
.conversations-prefs-columns { display: flex; align-items: flex-start; gap: 1.75rem; font-size: 14px; }
/* Equal halves: min-width 0 so neither column's content widens it. */
.conversations-prefs-columns > .conversations-prefs-form,
.conversations-prefs-views { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
/* Everything in the body at the columns' 12px (the theme gives labels,
   legends and selects their own larger sizes; the borrowed Closer schedule
   form sets .875rem). */
.conversations-prefs-columns label,
.conversations-prefs-columns legend,
.conversations-prefs-columns .form-select,
.conversations-prefs-columns .closer-skill-schedule-form,
.conversations-prefs-columns .closer-skill-schedule-hours legend { font-size: inherit; }
/* A saved view's name row: the global summary rule is 14px !important. */
.conversations-prefs-columns .conversations-prefs-view-name { font-size: 14px !important; font-weight: 600; color: #250d47; padding: 0 !important; }   /* a saved view's name, bold dark purple at the body's 12px; the global summary rule is 14px !important */   /* the box's 10px is all the room */
/* One left edge for a view's name, its labels and the hours legend: the
   theme insets every label .25rem, and summary carries 5px of padding. */
.conversations-prefs-columns label { margin-left: 0; }
/* The borrowed Closer schedule form stacks its labels (flex column); the
   checkbox rows and the hour picks sit on one line, left-aligned, with the
   site's checkbox. */
.conversations-prefs-columns .closer-skill-schedule-form .conversations-prefs-row { flex-direction: row; align-items: center; align-self: flex-start; }
.conversations-prefs-columns .closer-skill-schedule-hour .form-check-input { margin: 0; flex: none; }
/* Every checkbox on the page sits the same .5rem from its words (the hours and "Also send" rows had
   their own 4.8px / 2.4px). */
.conversations-prefs-columns :is(.conversations-prefs-row, .closer-skill-schedule-hour) { display: flex; align-items: center; gap: .5rem; }
.conversations-self-copy .form-check-input,
.conversations-mail-history .form-check-input { margin: 0; flex: none; }
/* The composer's Public reply: the site checkbox, set beside its label. */
.aplus-composer-toggle .form-check-input { margin: 0; flex: none; }   /* the toggle's own .3rem gap spaces it */
.conversations-prefs-title { font-size: 14px; font-weight: 600; color: #250d47; }   /* the sub-header: 14px, bold, dark purple (Christopher, 2026-10-20) */
.conversations-prefs-section { padding-top: .55rem; border-top: 1px solid #eef0f5; }
.conversations-prefs-hint { margin: 0; color: inherit; font-size: inherit; font-weight: 400; }   /* the checkbox rows' type, not the theme's light p */
.conversations-prefs-row { display: flex; align-items: center; gap: .5rem; margin: 0; }
.conversations-prefs-row .form-check-input { margin: 0; flex: none; }
/* View emails: one collapsible schedule form per saved view (same form as a
   Closer skill's autopilot — .closer-skill-schedule-form). */
/* Closed or open it is one box with 10px inside its border all round, the chevron and the form included
   (Christopher, 2026-10-20). !important: the global `details` rule zeroes it. */
.conversations-prefs-view { border: 1px solid #eef0f5; border-radius: .4rem; padding: 10px !important; }
.conversations-prefs-view-name { cursor: pointer; }
/* Its state after the name (Off / Weekdays 9 AM + new rows) is a 10px status chip: green on, red off
   (Christopher, 2026-10-20). */
.conversations-prefs-columns .conversations-prefs-view-state { font-size: 14px; padding: .25rem .6rem; margin-left: .35rem; vertical-align: middle; }
/* No focus ring round the name row once it is clicked (Christopher, 2026-10-20). */
.conversations-prefs-view-name:focus { outline: 0; box-shadow: none; }
.conversations-prefs-view .closer-skill-schedule-form { margin-top: .5rem; }
.conversations-prefs-lines { align-self: flex-start; padding: 0; font-size: inherit; text-decoration: none; }
.conv-email-lines { width: 100%; border-collapse: collapse; margin: .75rem 0 0; }
.conv-email-lines td { vertical-align: top; padding: .4rem .75rem .4rem 0; border-top: 1px solid #eef0f5; }
.conv-email-lines td:first-child { white-space: nowrap; }
.conv-email-lines code { font-size: 14px; }

/* APlus queue: sortable headers (click / shift-click for multi-sort) and
   the split-lineage chip + children list on the review page. */
.aplus-queue-table thead th[data-sort] { cursor: pointer; user-select: none; }
.aplus-queue-table thead th[data-sort]:hover { text-decoration: underline; }
.aplus-queue-table thead th.aplus-sorted[data-sort-dir="asc"]::after { content: " ▲"; font-size: .7em; }
.aplus-queue-table thead th.aplus-sorted[data-sort-dir="desc"]::after { content: " ▼"; font-size: .7em; }
.aplus-queue-table thead th.aplus-sorted[data-sort-rank]:not([data-sort-rank=""])::before { content: attr(data-sort-rank) " "; font-size: .7em; color: #8a8f98; }
.aplus-split-chip { text-decoration: none; }
.aplus-lineage-link { font-size: 14px; margin-left: .35rem; }
.aplus-split-children { margin: .35rem 0 0; padding-left: 1.4rem; }
.aplus-split-children li { padding: .1rem 0; }
.aplus-split-file { margin-top: .5rem; font-weight: 600; overflow-wrap: anywhere; }

/* APlus approved-unit lock: the pill's badge and the booking-failed
   banner's explanation of WHY the fields are read-only and how to unlock
   (Jesse, 2026-08-25: "Fix it" made none of that clear). */
.aplus-lock-badge { margin-left: .35rem; cursor: help; font-size: .9em; }
.aplus-booking-alert-hint { font-weight: 400; font-size: 14px; margin-top: .25rem; color: #6b2a27; }
.aplus-booking-alert-actions { display: flex; flex-direction: column; gap: .35rem; flex: 0 0 auto; }


/* My Work fold-in rows (Conversations panel + /my-work/): each row carries
   its own dispatch — status chip menu, assignee select, dismiss/reopen —
   posting to the row's team endpoints and swapping itself in place. */
.conversations-work-list { margin: 0; }
.conversations-work-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; padding: .3rem 0; border-bottom: 1px solid #f0f0f6; font-size: 14px; }
.conversations-work-row:last-child { border-bottom: 0; }
.conversations-work-main { flex: 1 1 18rem; min-width: 0; }
.conversations-work-controls { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.conversations-work-status, .conversations-work-assign { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.conversations-work-row .closer-pill { font-size: 12px; }
.conversations-work-row summary.closer-pill { padding: .15rem .55rem !important; }
.conversations-work-select { font-size: 14px; padding: .1rem .3rem; border: 1px solid #dfe1ef; border-radius: .3rem; background: #fff; max-width: 13rem; }
.conversations-work-reason { display: flex; align-items: center; gap: .4rem; flex-basis: 100%; }
.conversations-work-reason-input { flex: 1 1 14rem; max-width: 28rem; }
.conversations-work-error { flex-basis: 100%; font-size: 14px; margin: 0; }
.conversations-work-folded { font-size: 14px; white-space: nowrap; }
.conversations-work-busy { opacity: .55; pointer-events: none; }
.conversations-work-alert { padding: .4rem .75rem; font-size: 14px; margin-bottom: .75rem; }
/* APlus review: ↺ revert on an edited header field, the Approve undo
   countdown, and the queue's "booking failed" pill. */
.aplus-field-revert { border: none; background: none; cursor: pointer; color: #6c74d8; font-size: .9rem; padding: 0 .25rem; margin-left: .2rem; }
.aplus-field-revert:hover { color: #3f47b8; }
.aplus-approve-undo { margin-left: .4rem; padding: .05rem .5rem; font-size: 14px; }
.aplus-status-booking-failed { background: #fdecea !important; color: #7a1c12 !important; }

/* Horizontal divider between the proposal and the ticket conversation
   (drag to resize; the vertical one is .aplus-pane-resize). */
.aplus-pane-resize-h {
    flex: 0 0 8px;
    height: 8px;
    margin: 0.2rem 0 0;
    border-radius: 4px;
    cursor: row-resize;
    background: transparent;
    transition: background-color 120ms ease;
}
.aplus-pane-resize-h::before {
    /* A visible grip, not a hairline: the 2px line vanished on a laptop
       (Jesse, 2026-08-29: "what happened to the draggable border?"). */
    content: "";
    display: block;
    height: 4px;
    width: 64px;
    margin: 2px auto;
    border-radius: 2px;
    background: #c9cde0;
}
.aplus-pane-resize-h:hover::before,
.aplus-units-pane.aplus-resizing .aplus-pane-resize-h::before { background: #7c83a8; }
.aplus-pane-resize-h:hover,
.aplus-units-pane.aplus-resizing .aplus-pane-resize-h { background: #eceef8; }
.aplus-units-pane.aplus-resizing { user-select: none; }
.aplus-units-pane.aplus-resizing iframe { pointer-events: none; }
/* Reading mode gives the conversation the whole pane: no divider, and the
   remembered drag height (an inline style) must not cap it. */
.aplus-units-pane.aplus-reading .aplus-pane-resize-h { display: none; }
.aplus-units-pane.aplus-reading .aplus-conversation {
    flex: 1 1 0 !important;
    max-height: 100% !important;
}

/* Three-column layout — invoice | proposal | ticket side by side (APlus
   meeting 2026-09-18 @18:15, Jesse: "divide it into three, and it's invoice,
   proposal, ticket"; Jenn @18:34: "especially if I can move the columns as I
   need them"). Opt-in per browser; the split layout above stays the default.
   Mechanics: .aplus-proposal-pane / .aplus-ticket-pane are display:contents
   in the split layout, so the bar, region, divider and conversation remain
   direct flex children of .aplus-units-pane exactly as before. In columns
   mode the two wrappers become the grid items and .aplus-units-pane is the
   one that dissolves. Column ORDER is CSS `order` on the three panes (0/2/4,
   set by aplus2-review.js) with the two dividers fixed at 1/3, and the
   grid-template-columns is written inline by the script, so a remembered
   width belongs to a POSITION (left / right column), not to a pane. */
.aplus-proposal-pane,
.aplus-ticket-pane {
    display: contents;
}

.aplus-layout-columns .aplus-units-pane {
    display: contents;
}

.aplus-layout-columns .aplus-proposal-pane,
.aplus-layout-columns .aplus-ticket-pane {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0.5rem;
    align-self: start;
    height: var(--fo-check-scroll-h, calc(100dvh - 112px));   /* measured by fo-check-scroll.js */
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

/* Each column is its own scroll region; the 56% cap only made sense with
   the conversation stacked underneath. */
.aplus-layout-columns .aplus-proposal-region {
    flex: 1 1 0;
    max-height: none;
}

.aplus-layout-columns .aplus-conversation {
    flex: 1 1 0 !important;
    max-height: 100% !important;
    margin-top: 0;
}

/* The proposal/conversation divider stands up between the columns. It must
   stay in the grid even while the proposal is collapsed (C), or the columns
   to its right slide one track over. */
.aplus-layout-columns .aplus-pane-resize-h {
    display: block;
    position: sticky;
    top: 0.5rem;
    align-self: start;
    height: var(--fo-check-scroll-h, calc(100dvh - 112px));   /* measured by fo-check-scroll.js */
    width: 8px;
    margin: 0;
    cursor: col-resize;
}

.aplus-layout-columns .aplus-pane-resize-h::before {
    width: 2px;
    height: 100%;
    margin: 0 auto;
    background: #dfe1ef;
}

.aplus-layout-columns .aplus-pane-resize-h:hover::before,
.aplus-layout-columns.aplus-resizing .aplus-pane-resize-h::before {
    background: #7c83a8;
}

.aplus-layout-columns .aplus-pane-resize {
    order: 1;
}

.aplus-layout-columns .aplus-pane-resize-h {
    order: 3;
}

.aplus-nav-btn-active {
    background: #e7f1ff;
    color: #5a2ca0;
}

/* V cycles what shows beside the invoice. "Conversation only" is the old C
   reading mode in the split layout (proposal collapses to its bar); in
   columns mode the hidden pane leaves the grid entirely and the script drops
   its track, so the two that remain fill the width (Jesse, 2026-09-24:
   "when I collapse, we should fill the empty space"). "Proposal only" hides
   the conversation the same way. */
.aplus-units-pane.aplus-focus-proposal .aplus-conversation,
.aplus-units-pane.aplus-focus-proposal .aplus-pane-resize-h {
    display: none;
}

.aplus-units-pane.aplus-focus-proposal .aplus-proposal-region {
    flex: 1 1 0;
    max-height: none;
}

.aplus-layout-columns .aplus-units-pane.aplus-reading .aplus-proposal-pane,
.aplus-layout-columns .aplus-units-pane.aplus-reading .aplus-pane-resize-h,
.aplus-layout-columns .aplus-units-pane.aplus-focus-proposal .aplus-ticket-pane,
.aplus-layout-columns .aplus-units-pane.aplus-focus-proposal .aplus-pane-resize-h {
    display: none;
}

.aplus-layout-columns .aplus-units-pane.aplus-reading .aplus-proposal-region {
    display: block;
}

/* Explicit way out of the popover, besides Esc and clicking outside. */
.aplus-help-panel {
    position: relative;
}

.aplus-panel-close {
    position: absolute;
    top: 0.5rem;
    right: 0.7rem;
    border: 0;
    background: transparent;
    color: #495057;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
}

.aplus-panel-close:hover {
    color: #250d47;
}

.aplus-layout-views {
    margin-top: 0.2rem;
}

/* The layout popover (header ⫼ button / L). */
.aplus-layout-panel {
    max-width: 30rem;
}

.aplus-layout-modes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.aplus-layout-mode {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 14px;
    color: #250d47;
    cursor: pointer;
}

.aplus-layout-mode input {
    margin-top: 0.2rem;
}

.aplus-layout-order[hidden] {
    display: none;
}

.aplus-layout-chips {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0.9rem;
}

.aplus-layout-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.35rem 0.25rem 0.6rem;
    border: 1px solid #ede9f5;
    border-radius: 0.4rem;
    background: #faf9fc;
    font-size: 12px;
    font-weight: 600;
    color: #250d47;
}

.aplus-layout-chip button {
    border: 0;
    background: transparent;
    color: #5a2ca0;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
}

.aplus-layout-chip button:disabled {
    color: #c9cde0;
    cursor: default;
}

/* Queue: the small Zendesk-status chip beside a Waiting row's status pill. */
.aplus-zd-status-queue { margin-left: 0.35rem; }

/* Queue: dimension-stamp state beside an Entered row's status pill —
   pending clears itself once the bill syncs to QBO and the stamp lands. */
.aplus-dims-chip {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    font-size: 12px;
    border-radius: 0.6rem;
    white-space: nowrap;
}

.aplus-dims-chip-pending {
    color: #6b5900;
    background: #fdf6dd;
    border: 1px solid #e8d98a;
}

.aplus-dims-chip-error {
    color: #8a1f2d;
    background: #fbeaec;
    border: 1px solid #e5b3ba;
}

/* Review: the dupe banner's adopt action ("It's this bill — mark Entered"). */
.aplus-match-existing {
    margin-left: 0.5rem;
    font-weight: 600;
}

/* Review: the dupe banner's "last time this vendor's invoice was LINKED to
   the bill already in Bill.com" line (#657216) — sits under the banner text,
   above the suggested action. */
.aplus-adopt-precedent {
    display: block;
    margin: 0.35rem 0;
    font-size: 14px;
    font-weight: 400;
    color: #2d2c2f;
}

/* Review: documents arrived after APlus read the ticket — Re-propose reads them. */
.aplus-unseen-attachments {
    margin: 0 0 0.6rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #f3dea1;
    border-left: 4px solid #d97706;
    border-radius: 0.4rem;
    background: #fffbeb;
    color: #92400e;
    font-size: 14px;
}
.aplus-unseen-attachments .fa { margin-right: 0.3rem; }
/* The sweep re-proposed a ticket after a reply landed (review.html
   thread_followups): informational blue; the replaced-edits part inside it
   wears the unseen-attachments amber, because that is the part to read. */
.aplus-followup-notice {
    margin: 0 0 0.6rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #1d4ed8;
    border-radius: 0.4rem;
    background: #eff6ff;
    font-size: 14px;
}
.aplus-followup-notice .fa { margin-right: 0.3rem; }
/* Every re-proposed notice on the page, together: never taller than a third
   of the pane, so the proposal under it stays in view however many notices
   or changes pile up (Jenn, 2026-10-01; Jesse, 2026-10-02). */
.aplus-followup-group {
    flex: 0 0 auto;
    max-height: 33%;
    overflow-y: auto;
    margin: 0 0 0.6rem;
}
.aplus-followup-group .aplus-followup-notice:last-child { margin-bottom: 0; }
.aplus-followup-group-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-size: 14px;
    color: #495057;
}
.aplus-followup-group-bar .aplus-link-btn { font-weight: 600; }
.aplus-followup-earlier > summary {
    cursor: pointer;
    margin-bottom: 0.4rem;
    font-size: 14px;
    color: #1d4ed8;
}
.aplus-followup-dismiss { float: right; margin-left: 0.75rem; font-weight: 600; }
.aplus-followup-details { margin-top: 0.3rem; }
.aplus-followup-details > summary { cursor: pointer; color: #1d4ed8; }
/* The page's proposal is stale (aplus2-review.js watchForNewerProposal): same
   notice, amber — it is a warning about THIS page, not news about the ticket. */
.aplus-stale-notice {
    border-color: #fcd34d;
    border-left-color: #b45309;
    background: #fffbeb;
}
.aplus-followup-changes {
    margin: 0.4rem 0 0;
    font-size: 14px;
    border-collapse: collapse;
}
.aplus-followup-changes th,
.aplus-followup-changes td {
    padding: 0.1rem 0.6rem 0.1rem 0;
    text-align: left;
    vertical-align: top;
}
.aplus-followup-changes th { font-weight: 600; color: #495057; }
.aplus-followup-unchanged { margin-top: 0.3rem; color: #495057; }
.aplus-followup-overwrite {
    margin-top: 0.45rem;
    padding: 0.35rem 0.5rem;
    border-left: 3px solid #d97706;
    background: #fffbeb;
    border-radius: 0.3rem;
}
.aplus-unseen-name { font-family: var(--font-mono, ui-monospace, monospace); font-size: 14px; }
.aplus-link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: #1d4ed8;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

/* ── My Desk (conversations/desk.py): the open-tab strip, kind chips, and
   hosting the shared thread panel on a page of its own (2026-08-30). ── */
.desk-tabs {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    overflow-x: auto;
    /* When it DOES overflow, say so — the bare clip read as a layout bug. */
    scrollbar-width: thin;
    scrollbar-color: #cfc6e2 transparent;
    /* No bottom padding or border: a white tab runs straight into the white
       panel below it, the way a folder tab joins its page (Christopher,
       2026-09-29). An overflow scrollbar, when there is one, sits between. */
    padding: 0.4rem 0.75rem 0;
    background: #faf9fc;
}

.desk-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 16rem;
    /* Shrink-to-fit before overflowing (Jesse, 2026-09-01: eight open tabs
       blew past the card edge and hard-clipped mid-label — a flex item's
       default min-width:auto refuses to shrink below its content). Labels
       ellipsize; only past ~10 tabs does the strip actually scroll. */
    flex: 0 1 auto;
    min-width: 6.5rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid #ede9f5;
    border-bottom: none;
    border-radius: 0.45rem 0.45rem 0 0;
    background: #fff;
    color: #250d47;
    font-size: 14px;   /* the app's regular text (Christopher, 2026-11-13) */
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.desk-tab:hover { color: #e91e63; text-decoration: none; }   /* hot pink, no fill (Christopher, 2026-11-11) */
.desk-tab-active, .desk-tab-active:hover { background: #250d47; border-color: #250d47; color: #fff; }
.desk-tab-home { padding: 0.3rem 0.55rem; min-width: auto; }
.desk-tab-label { overflow: hidden; text-overflow: ellipsis; }
.desk-tab-kind { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; opacity: 0.7; }
/* Zendesk's status dot on each tab — looked up live when the strip renders. */
.desk-tab-status { width: 0.5rem; height: 0.5rem; flex: 0 0 auto; margin: 0; }
.desk-tab-active .desk-tab-status { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
.desk-tab-dragging { opacity: 0.4; }

.desk-tabs::-webkit-scrollbar { height: 5px; }

.desk-tabs::-webkit-scrollbar-thumb { background: #cfc6e2; border-radius: 3px; }

.desk-tab-close {
    margin-left: 0.15rem;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
    opacity: 0.55;
    cursor: pointer;
    line-height: 1;
}

.desk-tab-close:hover, .desk-tab-close:focus-visible { opacity: 1; background: rgba(0, 0, 0, 0.1); }

/* Close all: at the strip's right end, and pinned there when the tabs
   scroll under it, on the strip's own background (Jesse, 2026-10-14). */
.desk-tabs-actions {
    position: sticky;
    right: 0;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0 0 0.3rem 0.5rem;
    background: #faf9fc;
}

.desk-tabs-actions .btn { white-space: nowrap; }

.desk-kind {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.05rem 0.3rem;
    border-radius: 0.25rem;
    background: #efeaf7;
    color: #5a2ca0;
    vertical-align: middle;
}

/* The ZD badge (table # column, ticket header): Zendesk green. */
.desk-kind-zendesk { background: #dcefe3; color: #1f7a4d; }
.desk-kind-chips { display: inline-flex; gap: 0.25rem; }

/* The queue's Due chips: a labelled group after the status chips, the
   overdue one in the due column's red. */
/* A rule between the status chips and the Due group. */
.desk-due-chips { align-items: center; margin-left: 0.25rem; padding-left: 0.6rem; border-left: 1px solid #d9d4e3; }
.desk-due-chips-label {
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.desk-due-chip-overdue { color: var(--bs-danger); }
/* The status pills' type: 10px caps, a touch of tracking — and, like them,
   full strength when off (.conversations-chip fades to .75); the ring
   alone marks the selected one. Due and Priority chips share it. */
.desk-due-chips :is(.desk-due-chip, .desk-priority-chip) { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; opacity: 1; }

/* Priority: Urgent and High rows carry a tint and a left rule instead of a
   badge, so a normal queue stays quiet (Jesse, 2026-09-30). */
.desk-priority-chip-urgent { color: #b3261e; }
.desk-priority-chip-high { color: #9a6700; }
.desk-table tr.desk-priority-row-urgent > td,
.desk-board-table tr.desk-priority-row-urgent > td { background-color: #fdf0ee; }
.desk-table tr.desk-priority-row-high > td,
.desk-board-table tr.desk-priority-row-high > td { background-color: #fdf8e8; }
.desk-table tr.desk-priority-row-urgent > td:first-child,
.desk-board-table tr.desk-priority-row-urgent > td:first-child { box-shadow: inset 3px 0 0 #b3261e; }
.desk-table tr.desk-priority-row-high > td:first-child,
.desk-board-table tr.desk-priority-row-high > td:first-child { box-shadow: inset 3px 0 0 #d4a72c; }
/* The priority pill in a conversation's sidebar: normal/low grey. */
.desk-priority-pill { background: #eef0f3; color: #475467; }
.desk-priority-pill-urgent { background: #fdecea; color: #b3261e; }
.desk-priority-pill-high { background: #fdf3d8; color: #8a5a00; }

/* The thread panel expects a flex column to fill (it was born inside the
   APlus review pane); on My Desk's ticket page the thread's column, beside
   the rail (zendesk_detail.html), is that column. */
.desk-thread-host {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 200px);
    min-height: 420px;
}

.desk-thread-host .aplus-conversation { margin-top: 0; }
/* ZD - ZENDESK / FO - CONVERSATIONS are .desk-status-chip pills; the fill is
   the kind's: Zendesk in the SOLVED pill's green, FinOptimal purple. */
.desk-kind-chip-zendesk { background: #dbf3e0; color: #1c6b34; }
/* "Open in Zendesk": a btn-sm in the ZENDESK pill's green. */
.btn.btn-zendesk { background: #dbf3e0; color: #1c6b34; border-color: #dbf3e0; }
.btn.btn-zendesk:hover, .btn.btn-zendesk:focus-visible { background: #c6ead0; color: #145128; border-color: #c6ead0; }

/* ── My Desk detail pages (Zendesk ticket, FO conversation) ──────────────
   The header bar at a working size: the status and ref pills as the desk
   table draws them (10px caps), the subject at 1rem. */
/* Room inside the bar, and a gap before the box under it. */
.desk-detail-head { padding: .5rem; margin-bottom: 5px; }
.desk-detail-head .closer-pill { font-size: 12px; }
/* The back arrow: an icon, so narrower at the sides than btn-sm's 16px. */
.desk-detail-head .desk-back-btn { padding: 5px 10px; display: inline-flex; align-items: center; }   /* arrow centred vertically */
.desk-detail-head .conversations-title { font-size: 1rem; color: #250d47; }   /* text-finoptimal-purple */
.desk-detail-head .conversations-title .conversations-subject { font-size: inherit; }
/* The subject IS the field (Jesse, 2026-10-13): title type, no box until you point at it.
   Staged (edited, not yet submitted) it wears the Pending amber. */
.conversations-subject-form { display: contents; }
.desk-detail-head .conversations-subject-input {
    font: inherit; font-weight: 700; color: inherit; background: transparent;
    border: 1px solid transparent; border-radius: .375rem; padding: 0 .3rem; margin-left: -.3rem;
    field-sizing: content; min-width: 12ch; max-width: 100%;
}
/* An empty subject reads "No subject" in the composer's placeholder grey, not as a title. */
.desk-detail-head .conversations-subject-input::placeholder {
    color: #6c757d; font-weight: 400; opacity: 1;
}
.desk-detail-head .conversations-subject-input:hover { border-color: lightgray; }
.desk-detail-head .conversations-subject-input.is-staged { background: #fff3e0; border-color: #b26a00; }
/* Rail edits waiting on Submit: added chips/rows in amber, removals struck through. */
.conversations-tag.conversations-tag-staged { background: #fff3e0 !important; color: #b26a00 !important; }
.conversations-tag.is-staged-remove,
.conversations-participant.is-staged-remove .conversations-participant-name,
.conversations-participant.is-staged-remove .conversations-participant-email { text-decoration: line-through; opacity: .6; }
.conversations-staged-pill { margin-left: .35rem; }
.conversations-unstage { border: 0; background: transparent; color: inherit; padding: 0 0 0 .25rem; cursor: pointer; }
.conversations-requester-staged { margin-top: .25rem; color: #2d2c2f; }
/* The requester's change box, laid out as the CC box under the current one (TM-2471: the
   pencil's editor sat on top of the name). Its Name box shows once an address is typed. */
.conversations-requester-change { margin-top: .35rem; }
.conversations-requester-change input[name='email']:placeholder-shown ~ input[name='name'] { display: none; }
/* An address typed in the rail but not an address yet, said under its box. */
.conversations-typed-error { font-size: 14px; margin-top: .25rem; }
/* Send to's "Everyone" row: a control, not a person. */
.conversations-send-all-label { font-weight: 600; color: #250d47; }
/* Who a message was emailed to (Jesse, 2026-10-14): body ink, 12px, under its header. */
.conversations-msg-audience { font-size: 14px; color: #495057; margin: .1rem 0 .35rem; }
.conversations-msg-audience-state { font-weight: 600; color: #2d2c2f; margin-right: .35rem; }
.conversations-msg-audience-field { font-weight: 600; margin-left: .15rem; }
.conversations-msg-audience-missed { text-decoration: line-through; }
/* What each recipient's mail server did with it, from Mailgun's events (2026-10-22). */
.conversations-msg-audience-outcome { margin-left: .2rem; }
.conversations-staged-note { display: flex; align-items: center; gap: .4rem; font-size: 14px; color: #2d2c2f; margin: .25rem 0 .4rem; }

/* The ticket's thread panel as the Filters box: dark bar, light body in a
   plain border (scoped to the desk — APlus's review page keeps its own). */
.desk-thread-host .aplus-conversation { border: 1px solid #dee2e6; border-radius: 0; background: #f0f2f5; }
.desk-thread-host .aplus-conversation-head { background: #250d47; border-bottom: 0; padding: .5rem; }
.desk-thread-host .aplus-conversation-title,
.desk-thread-host .aplus-conversation-zd { color: #fff; font-size: 14px; font-weight: 600; }
/* The comment-count chip beside Ticket Conversation: My Desk's dark bar
   only (the light APlus head has no place for a white-on-white pill). */
.aplus-conversation-count { display: none; }
.desk-thread-host .aplus-conversation-count { display: inline-block; margin-right: auto; }
.desk-thread-host .aplus-people { background: #f0f2f5; border-bottom: 1px solid #dee2e6; padding: .5rem; align-items: center; }
/* Subject / Requester / Assignee are <label> wrappers, the rest <div>s: the
   theme's label margins (.25rem left, .5rem below) lifted and indented those
   three. One baseline and one left edge for every field. */
.desk-thread-host .aplus-people-field { margin: 0; }
/* The chat on the same light grey; the comment cards stay white on it. */
.desk-thread-host .aplus-conversation-thread { background: #f0f2f5; }
/* A public reply keeps the composer's usual hairline, not the 2px blue
   accent (the white background already says "public"). */
.desk-thread-host .aplus-composer.aplus-composer-public { border-top: 1px solid #ede9f5; }
/* Its field labels as the Wrangler filter labels (text-finoptimal-purple
   fw-bold) at 12px — not the panel's pale uppercase caption. */
.desk-thread-host .aplus-people-label { color: #250d47; font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: normal; margin-right: .25rem; }
/* Its fields as the desk's filter inputs: 29px, light grey border, white. */
.desk-thread-host .aplus-people-input { height: 29px; font-size: 14px; background: #fff; border: 1px solid lightgray; border-radius: .375rem; padding: 0 .5rem; }
/* A ticket comment's time as the native thread's: right after the author
   ("Tom O'Hara · 9/29/2026 16:47"), then the badge; 11px, dark grey. */
.desk-thread-host .aplus-comment-meta { gap: .35rem; }
.desk-thread-host .aplus-comment-time { margin-left: 0; order: 1; font-size: 14px; color: #495057; }
.desk-thread-host .aplus-comment-time::before { content: "\00b7  "; white-space: pre; }
.desk-thread-host .aplus-comment-badge { order: 2; margin-left: .25rem; }
/* The ticket composer's row in the FO composer's dress: the paperclip a
   bordered 2.1rem square, the toggle at the rail's 12px body ink. Both are
   <label>s, so the theme's bare-label margins (.25rem left, .5rem bottom)
   are what knocked them off the row. */
.desk-thread-host .aplus-composer-actions > label { margin: 0; }
.desk-thread-host .aplus-composer-attach {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; flex: none;
    border: 1px solid #d9d3e8; border-radius: .5rem; background: #fff; color: #5a2ca0;
}
.desk-thread-host .aplus-composer-attach:hover { border-color: #5a2ca0; }
.desk-thread-host .aplus-composer-toggle { font-size: 14px; color: #2d2c2f; }
/* The ticket page's Post button sits right after the Public reply toggle
   (APlus keeps it at the far right); the note follows it. */
.desk-thread-host .aplus-composer-submit { margin-left: 0; }
.desk-thread-host .aplus-composer-note { margin-left: 0; order: 1; }
/* A ticket comment's text at the reading size (was 12px), as the native thread's.
   A client's note carries its own sizes; they follow the reading size too.
   A rich email is a frame — conversations-composer.js sets the same size there. */
.desk-thread-host .aplus-comment-body,
.desk-thread-host .aplus-comment-body p { font-size: var(--conv-text-size, 14px); font-weight: 400; color: #1f2430; }   /* the theme's p is 1rem at weight 300 */
.desk-thread-host .aplus-comment-body * { font-size: inherit !important; }
.desk-thread-host .aplus-composer-body { font-size: var(--conv-text-size, 14px); }
/* The conversation detail page's side rail, in the same vocabulary:
   field labels bold dark purple at 12px, values 12px, inputs as the filters,
   every pill (tags, status/task menus, roles) the table's 10px. The global
   `summary` rule (14px, 5px padding, both !important) is what indented the
   requester and swelled the menu pills. */
.conversations-side .conversations-side-label,
.conversations-side .form-label,
.conversations-composer .conversations-recipients .conversations-side-label {
    color: #250d47; font-size: 14px; font-weight: 700;
    text-transform: none; letter-spacing: normal; margin-left: 0;
}
.conversations-side .conversations-requester,
.conversations-side .conversations-requester summary,
.conversations-side .conversations-links,
.conversations-side .conversations-participants { font-size: 14px !important; }
.conversations-side .conversations-inline-edit summary { padding: 0 !important; }
/* The name opens every conversation for that client or requester. The pencil changes it. */
.conversations-pivot-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .35rem; }
/* An open editor takes its own line under the name, never over it. */
.conversations-pivot-line > .conversations-inline-edit[open] { flex: 1 1 100%; }
.conversations-pivot-line > a { min-width: 0; }
.conversations-pivot-line > .conversations-inline-edit { flex: 0 0 auto; }
a.desk-pivot { color: #250d47; font-weight: 700; text-decoration: none; }
a.desk-pivot:hover { color: #e91e63; }
a.desk-pivot-chip { text-decoration: none; }
a.desk-pivot-chip:hover { text-decoration: none; color: #e91e63; }
.conversations-edit-cue { font-size: 11px; color: #6c757d; }
.conversations-inline-edit summary:hover .conversations-edit-cue { color: #250d47; }
/* The requester's email and the reply default are values, not captions:
   body ink (#2d2c2f), not .text-muted. */
.conversations-side .conversations-requester .text-muted { color: #2d2c2f !important; }
/* The open requester editor ends in a gray rule under Save, setting it off
   from Replies default to below. (Participants get a rule between people
   instead — see below.) */
.conversations-requester .conversations-inline-edit[open] > .conversations-inline-form {
    border-bottom: 1px solid #dee2e6; padding-bottom: .5rem; margin-bottom: .25rem;
}
/* Its own line above Save, in body ink at regular weight (the theme's p is 300). */
.conversations-requester-note { flex-basis: 100%; color: #2d2c2f !important; font-weight: 400; }
/* Section bars (Details, Tags, About, Fields; the thread's Messages & Events): the dark Filters bar
   (as the ticket page's Ticket Conversation head), each one a <details>
   that collapses its section. A class, not a page scope: the task card's
   embed renders the same rail. */
summary.conversations-side-head {
    display: flex; align-items: center; justify-content: flex-start;
    background: #250d47; color: #fff; font-weight: 600; letter-spacing: normal;
    font-size: 14px !important; padding: .3rem .5rem !important;   /* over the global summary rule */
    cursor: pointer; list-style: none;
}
summary.conversations-side-head::-webkit-details-marker { display: none; }
/* A count chip beside a bar's title (Messages 7 & Events 3, Tags 4): a
   light pill on the dark bar. */
.conversations-side-head-chip {
    margin: 0 .35rem; padding: .1rem .5rem; border-radius: 999px;
    background: rgba(255, 255, 255, .18); color: #fff; font-size: 12px; font-weight: 600;
}
/* Open/closed chevron on the bar's right. The v4 face ("FontAwesome"):
   base.html's FA6 is the SVG+JS build, which installs no webfont. */
summary.conversations-side-head::after {
    margin-left: auto;   /* the chevron keeps the right edge, after any chips */
    content: "\f078"; font-family: "FontAwesome"; font-weight: normal;
    font-size: .65rem; transition: transform .12s ease;
}
/* Text size on the dark bar (TM-2384): a label, then 12px | 14px, the
   chosen one filled white. The control takes the bar's free space and the
   chevron sits just after it. A bar without the control keeps the chevron at
   the right edge. The APlus review head is light, so the control stays off
   there; the desk's ticket bar is this same purple. */
.conversations-text-size {
    display: inline-flex; flex: 0 0 auto; align-items: center; gap: .4rem;
    margin-left: .5rem;
}
.conversations-text-size-label {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: #fff; line-height: 1; white-space: nowrap;
}
.conversations-text-size-options {
    display: inline-flex; align-items: stretch;
    border: 1px solid rgba(255, 255, 255, .45); border-radius: .375rem; overflow: hidden;
}
summary.conversations-side-head > .conversations-text-size { margin-left: auto; }
summary.conversations-side-head:has(> .conversations-text-size)::after { margin-left: .4rem; }
.aplus-conversation-head > .conversations-text-size { display: none; }
.desk-thread-host .aplus-conversation-head > .conversations-text-size { display: inline-flex; align-self: center; }
.conversations-text-size button {
    border: 0; border-left: 1px solid rgba(255, 255, 255, .35);
    background: transparent; color: #fff; cursor: pointer;
    font-size: 12px; font-weight: 600; line-height: 1; padding: 0 .45rem; height: 20px;
}
.conversations-text-size-options button:first-child { border-left: 0; }
.conversations-text-size button:hover { background: rgba(255, 255, 255, .16); }
.conversations-text-size button.is-on,
.conversations-text-size button.is-on:hover { background: #fff; color: #250d47; }
:is(.conversations-side-section, .conversations-reply-section):not([open]) > summary.conversations-side-head::after { transform: rotate(-90deg); }
/* The reply's drag grip lives in the bar, centered, instead of a second strip
   under it. The pill is the handle; the rest of the bar still collapses. */
.conversations-reply-section > summary.conversations-side-head { position: relative; }
.conversations-reply-section .conversations-composer-grip {
    display: block;
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 0;
    width: 4.5rem;
    height: 100%;
    transform: translateX(-50%);
}
.conversations-reply-section .conversations-composer-grip::before { background: #d9d3e8; }
.conversations-reply-section .conversations-composer-grip:hover::before,
body.fo-row-resizing .conversations-reply-section .conversations-composer-grip::before { background: #e91e63; }
.conversations-side-section { margin-bottom: .25rem; }
/* Inside a <details> now, so the History rules (`details li`: a lightgray
   top rule, 14px, 5px padding, 25px right margin, all !important) landed on
   every participant and About row. Undo them for the rail's lists. */
.conversations-side-section li {
    border-top: 0 !important; font-size: inherit !important;
    padding: .2rem 0 !important; margin-right: 0 !important;
}
/* The reply block is a <details> too, so those History rules would stripe its
   tabs and status menu. The buttons keep their own padding. */
.conversations-reply-section li {
    border-top: 0 !important; font-size: inherit !important;
    padding: 0 !important; margin-right: 0 !important;
}
/* A participant's Mail setting on its own line, its toggle at the rail's 12px. */
.conversations-side-section .conversations-mail-pref { flex-basis: 100%; margin-top: 0; }
/* …and the participant's email on its own line under the name. The row
   wraps, so the remove-participant x (last in the markup) would land on a
   line of its own under Mail, reading as a stray empty tag: keep it on the
   name's line, at the right edge. */
/* Participant names bold, one size: an editable name is a <summary>, which
   the global summary rule set at 14px with padding — the requester's plain
   span sat at the rail's 12px beside it. */
.conversations-side-section .conversations-participant-name,
.conversations-side-section .conversations-participant-name > summary {
    font-size: 14px !important; font-weight: 700; padding: 0 !important;
}
.conversations-side-section .conversations-participant-email { flex-basis: 100%; order: 2; }
.conversations-side-section .conversations-mail-pref { order: 3; }
.conversations-side-section .conversations-participant-remove,
.conversations-side-section .conversations-participant > .conversations-unstage { order: 1; margin-left: auto; }
.conversations-side-section .conversations-participant > .conversations-unstage { color: #495057; font-size: 14px; line-height: 1; }
.conversations-side-section .conversations-participant > .conversations-unstage:hover { color: #e91e63; }
/* A gray rule between participants (over the History reset's border-top: 0). */
.conversations-side-section .conversations-participant + .conversations-participant {
    border-top: 1px solid #dee2e6 !important;
}
/* Participants in two lines (Jesse, TM-2166: "a lot of white space"): the
   name and its x; then the email and Mail, with Mail at the right. The field
   above says CC or Followers, so a row has no role chip. A zero-height break
   after the x starts the second line; an open Mail menu takes the full width. */
.conversations-side-section .conversations-participant { row-gap: 0; padding: .2rem 0 !important; }
.conversations-side-section .conversations-participant::after { content: ""; flex-basis: 100%; height: 0; order: 1; }
.conversations-side-section .conversations-participant-email { flex: 0 0 auto; max-width: 100%; overflow-wrap: anywhere; }
.conversations-side-section .conversations-mail-pref { flex-basis: auto; margin-left: auto; }
.conversations-side-section .conversations-mail-pref[open] { flex-basis: 100%; }
/* The rail's actions as 12px text links, the way Jira draws them (TM-2399):
   Assign to me, Add me as a CC or follower, Add, Update, Change, Save mail. */
.conversations-side button.conversations-text-action,
.conversations-side-section .conversations-mail-pref > summary {
    display: inline-block; margin: .25rem .75rem 0 0; padding: 0 !important;
    border: 0; background: none; cursor: pointer; list-style: none;
    color: #250d47; font-size: 12px !important; font-weight: 400; line-height: 1.2;
}
.conversations-side-section .conversations-mail-pref > summary { margin: 0; }
/* Assign to me and Add me as a follower sit right under their picker. */
.conversations-side .fo-combobox:has(+ :is([data-role='conv-assign-me'], [data-role='conv-cc-me'])) { margin-bottom: 0; }
.conversations-side .fo-combobox + button.conversations-text-action { display: block; width: fit-content; margin-top: .25rem; }
.conversations-side-section .conversations-mail-pref > summary::-webkit-details-marker { display: none; }
.conversations-side button.conversations-text-action:hover,
.conversations-side-section .conversations-mail-pref > summary:hover { color: #e91e63; }
:is(.conversations-side-section, .conversations-reply-section)[open] > summary.conversations-side-head { margin-bottom: .35rem; }
/* The detail page's rail sat flush against the card's top edge (on wide
   screens the scroll panes' padding below sets it, level with the thread). */
.conversations-side { padding-top: 1rem; }
/* Side by side, the card ends inside the window (the ticket page's
   .desk-thread-host height) and the thread and the rail scroll on their
   own. Stacked (below lg) the page scrolls as before. */
@media (min-width: 992px) {
    .conversations-detail {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - 200px);
        min-height: 420px;
    }
    .conversations-detail > .row { flex: 1 1 0; min-height: 0; }
    /* contain: a touch at the end of a pane was scrolling the page (iPad, TM-2380). */
    .conversations-detail > .row > [class*="col-"] {
        height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    }
    /* The thread scrolls in its own box and the reply stays at the foot of the pane. A short
       thread used to leave the composer in normal flow with an empty region under Submit that
       the grip could not fill (Jesse, 2026-11-10: the draft window would not resize). */
    .conversations-detail > .row > .col-lg-8 {
        display: flex; flex-direction: column; overflow: hidden; min-height: 0;
    }
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section {
        flex: 1 1 0; min-height: 0; margin-bottom: 0;
    }
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section[open] {
        display: flex; flex-direction: column; overflow: hidden;
    }
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section[open] > summary { flex: 0 0 auto; }
    /* Chrome wraps the open body in ::details-content; without a shrinkable flex item the
       messages clip instead of scrolling. The entries rule covers a browser that doesn't.
       No overscroll-behavior here: in Chrome the entries box is a scroll container that never
       overflows, and contain on it swallowed the wheel, so the thread would not scroll (TM-2538).
       The column's contain above already keeps a scroll at the end of the thread off the page. */
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section[open]::details-content,
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section[open] > .conversations-thread-entries {
        flex: 1 1 auto; min-height: 0; overflow-y: auto;
    }
    /* The reply collapses on its own bar (TM-2356). The section is the flex item
       (content-sized, so closing it hands the room to the thread); the form inside
       it is not. The drag handle is the pill in that bar. */
    .conversations-detail > .row > .col-lg-8 > .conversations-reply-section {
        flex: 0 0 auto;
        margin-bottom: 0;
    }
    /* Closing Messages leaves its bar only. The reply takes the room the thread
       had, and the editor grows into it; the saved grip height applies again
       once Messages is open. */
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section:not([open]) {
        flex: 0 0 auto;
    }
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section:not([open]) + .conversations-reply-section[open] {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section:not([open]) + .conversations-reply-section[open]::details-content {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section:not([open]) + .conversations-reply-section[open] .conversations-composer {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section:not([open]) + .conversations-reply-section[open] .conversations-composer > * {
        flex: 0 0 auto;
    }
    .conversations-detail > .row > .col-lg-8 > .conversations-side-section:not([open]) + .conversations-reply-section[open] .conversations-composer-editor {
        flex: 1 1 0;
        height: auto;
        min-height: 0;
        max-height: none;
    }
    .conversations-detail .conversations-composer {
        position: static; z-index: 3;
        background: #fff; padding-bottom: .5rem;
        box-shadow: 0 -2px 6px rgba(37, 13, 71, .12);
    }
    /* The 60vh cap stays for a composer in a task card. Here the box can grow with the pane,
       but not so far that the grip, the tabs and Submit slide out the bottom.
       The floor keeps a saved short grip from leaving a one-line reply under an open
       Send to. The list scrolls once it reaches that floor, so it cannot outgrow the reply. */
    .conversations-detail .conversations-composer .conversations-composer-editor {
        height: var(--fo-reply-editor-h, 16rem);
        min-height: min(12rem, 28vh);
        max-height: max(12rem, min(70vh, calc(100dvh - 22rem)));
    }
    html.fo-send-to-open .conversations-detail .conversations-composer .conversations-recipients {
        max-height: 12rem;
    }
    /* The gap under the header bar (its 5px margin + the card body's top
       padding) moves INTO the scroll panes, so a scrolled thread runs up to
       the bar instead of stopping short of a white strip. */
    .desk-detail-head:has(+ .conversations-detail) { margin-bottom: 0; }
    .desk-detail-head + .conversations-detail { padding-top: 0; }
    .conversations-detail > .row > [class*="col-"] { padding-top: calc((5px + var(--bs-card-spacer-y, 1rem)) / 2); }   /* half the old gap */
    /* The rail's section bars run to the card's left edge: no card-body
       left padding, no column gutter. The thread is the right column. */
    .conversations-detail { padding-left: 0; }
    .conversations-detail > .row { margin-left: 0; }   /* the row's negative gutter would push past the card */
    .conversations-detail > .row > .conversations-side { padding-left: 0; padding-right: 0; }
    /* The thread's left gutter (beside the rail) down to 5px. */
    .conversations-detail > .row > .col-lg-8 { padding-left: 5px; }
    /* The rail is as wide as you drag it (desk-rail-resize.js; Jesse, 2026-11-02), a third of the
       row until you do. The limits here are the script's too: it keeps the same 200px and 560px. */
    .conversations-detail > .row:has(> .desk-rail-resize) > .col-lg-8 { flex: 1 1 0; width: auto; min-width: 0; }
    .conversations-detail > .row:has(> .desk-rail-resize) > .conversations-side {
        flex: 0 0 auto; width: var(--desk-rail-width, 33.33333333%); min-width: 200px; max-width: calc(100% - 560px);
    }
    /* Takes no room of its own: it straddles the line between the rail and the thread. */
    .conversations-detail > .row > .desk-rail-resize {
        display: block; position: relative; z-index: 3; flex: 0 0 8px; width: 8px; height: 100%;
        margin: 0 -4px; padding: 0; cursor: col-resize; touch-action: none;
    }
    /* The column bars' look: a faint line at rest, hot pink while hovered or dragged. */
    .desk-rail-resize::after {
        content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
        transform: translateX(-50%); background: #dee2e6; pointer-events: none;
    }
    .desk-rail-resize:hover::after,
    body.fo-col-resizing .desk-rail-resize::after { width: 3px; background: #e91e63; }
}
.desk-rail-resize { display: none; }   /* Stacked (below lg) there is no edge to drag. */
/* The sections' labels and controls inset by the bar's .5rem, so their left
   edge lines up with the bar's title (Details, Tags, …). */
/* (The second selector out-ranks `.conversations-side .form-label`'s
   margin-left: 0, which had left Status and Task flush against the edge.) */
.conversations-side-section > :not(summary),
.conversations-side .conversations-side-section > :not(summary) { margin-left: .5rem; margin-right: .5rem; }
/* …but the thread's messages and events run the bar's full width. */
.conversations-side-section[data-side-section="messages"] > .conversations-thread-entries { margin-left: 0; margin-right: 0; }
/* A status/task chip sits at the rail's left edge: open its menu rightward,
   or the scrolling column clips it. */
.conversations-side .closer-status-options { left: 0; right: auto; }
/* The rail's action buttons in the composer's Submit ink. */
.btn.btn-ink { background: #2f3437; border-color: #2f3437; color: #fff;
    /* Submit's 2.1rem height; the .btn caps and bold, a size down (12px)
       so they don't read bigger than Submit's 14px sentence case. */
    height: 2.1rem; line-height: 2.1rem; padding: 0 0.9rem; font-size: 12px; border: 0; }
/* .btn-sm keeps Bootstrap's small box (My Desk's My Email Settings, beside
   Save view): the size vars, not Submit's fixed 2.1rem. */
.btn.btn-ink.btn-sm {
    height: auto; line-height: 1.25;   /* .text-xs's, which Save view gets */
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x); font-size: var(--bs-btn-font-size);
    border: var(--bs-btn-border-width) solid #2f3437;   /* Save view's 1px border box */
}
.btn.btn-ink:hover, .btn.btn-ink:focus-visible { background: #1f2426; border-color: #1f2426; color: #fff; }
/* About's links read as plain text in the purple — the brand pink, and an
   underline on hover, says they go somewhere. */
.conversations-links a { color: #e91e63; }
.conversations-links a:hover, .conversations-links a:focus-visible { color: #c2185b; text-decoration: none; }
/* Status | Task: Task starts about a third of the way across. */
.conversations-status-pair { display: grid; grid-template-columns: 1fr 2fr; column-gap: .5rem; }
.conversations-status-pair .conversations-status-row { margin-bottom: 0 !important; }
/* Label above its control, as Assignee is. */
.conversations-side .conversations-status-row,
.conversations-side .conversations-due-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.conversations-side .form-label.mb-1 { margin-bottom: 2px !important; }
.conversations-side .closer-pill,
.conversations-side summary.closer-pill,
.conversations-side .conversations-tag {
    font-size: 12px !important; line-height: 1.1; padding: .25rem .6rem !important;
}
.conversations-side .conversations-tag-add { flex-basis: 100%; }
.conversations-side .form-control,
.conversations-side .conversations-role-select,
.conversations-composer .conversations-recipient-field {
    height: 29px; font-size: 14px; background-color: #fff;
    border: 1px solid lightgray; border-radius: .375rem; padding: 0 .5rem;
}
/* Sized to their options (—/To/Cc/Bcc, CC/Requester), room kept on the
   right for the caret. */
.conversations-side .conversations-role-select,
.conversations-composer .conversations-recipient-field {
    width: auto; padding-right: 1.75rem; background-position: right .5rem center;
}
/* The rail's dropdowns fill the column like the inputs around them (the
   widget is inline-block, so a long assignee label pushed it past the edge),
   ellipsize a long label, and keep the select's mb-2 the widget replaced. */
.conversations-side .fo-combobox.desk-combobox { display: block; width: 100%; margin-bottom: .5rem; }
/* …except a participant's role, sized to CC / Requester like the To picker. */
.conversations-side .fo-combobox.desk-combobox:has(.conversations-role-select) { display: inline-block; width: auto; margin-bottom: 0; }
.conversations-side .desk-combobox .fo-combobox-display,
.conversations-recipients .desk-combobox .fo-combobox-display { justify-content: space-between; }
/* The To / Cc / Bcc picker: sized to "Bcc" and its caret, not the widget's 8rem. */
.conversations-recipients .fo-combobox.desk-combobox { min-width: 0; width: 4.75rem; flex: none; }
.conversations-side .desk-combobox .fo-combobox-display-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* One line box the button's full inner height (29px less its borders), so
   the label sits dead centre whatever line-height it inherits (the mail
   picker's, inside a participant row, rode high). */
.conversations-side .desk-combobox .fo-combobox-display-text { line-height: 27px; }
.conversations-composer .conversations-recipient { font-size: 14px; margin-left: 0; }   /* every composer: My Desk's page and an embedded thread alike */
.desk-kind-chip-conversation { background: #e9ddfb; color: #5b21b6; }

/* ── My Desk round 2 (2026-08-30): frozen header, kind-tinted hover,
   two-row tag clamp, multi-select filter chips, saved views. ── */
.desk-sticky {
    position: sticky;
    top: 0;
    z-index: 25;   /* over a .fo-check-table's pinned head (24), or a filter's open panel draws under it (My Meetings) */
    background: #fff;
    border-radius: .5em .5em 0 0;
}

.conversations-when { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Mouse-over says which kind before the # column does: ZD a greenish
   grey, FO purple (Jesse, 2026-08-30). */
/* Collapsed borders don't travel with the sticky thead — scrolled rows showed
   through as white seams between header cells (the .fo-table-no-vborders fix,
   for a bordered table). Separate borders paint per cell, so each cell draws
   its own right + bottom edge; the scroll box supplies the outer left/right. */
.desk-table { border-collapse: separate; border-spacing: 0; }
.desk-table > :not(caption) > * > * { border-width: 0 1px 1px 0; }
.desk-table > :not(caption) > * > :last-child { border-right-width: 0; }
/* "Showing 1 to N of M records" at the table's 12px, not the shared 14px. */
[data-role="desk-table"] .fo-footer { font-size: 14px; }
/* Less card below that footer than .app-card's 1.5em — the footer's own 10px
   top padding, so the line sits evenly between the table and the card edge. */
.app-card.conversations-panel { padding-bottom: 10px; }
/* Rows are DeskTable.tsx's (the shared ResultsTable) since 2026-09-29. */
.desk-table .desk-row { cursor: pointer; }
/* Tag chips at the ticket page's tag-chip size (.aplus-people-chip). */
.desk-table .conversations-tag-row { font-size: 12px; line-height: 1.5; padding: 0.05rem 0.45rem; }
/* Two chip rows exactly, at the chips' own metrics — the base 2.9em was
   sized for smaller chips and clipped the second row. */
.desk-table .conversations-row-tags { max-height: calc(2 * (12px * 1.5 + 0.1rem) + 0.15rem); column-gap: 0; }
/* Flush left under the subject; a right margin alone spaces them. */
.desk-table .conversations-row-tags .conversations-tag-row { margin-left: 0; margin-right: 0.25rem; }
.desk-table .desk-row-zendesk:hover > td { background: #e9efec; }
.desk-table .desk-row-conversation:hover > td { background: #e7f1ff; }
.desk-table .conversations-due-days { font-size: 14px; }
/* A solved row's past due date: plain text, not the faded grey. */
.desk-table .conversations-due-past { color: inherit; }
/* The desk table's text at 12px — cells and the # refs; the secondary
   lines (10px above) stay smaller. Status pills keep the Closer badge's
   caps, at 10px so the caps sit under the 12px text. */
.desk-table .fo-table-cell { font-size: 14px; }
.desk-table .conversations-status { font-size: 12px; }
/* The Client and the subject link are what a person scans the list for (Jenn,
   #conversations 2026-10-30); the tag and Draft chips beside them stay as they are. */
.desk-table .desk-row-bold { font-weight: 700; }
/* One line a row where it can be, so about twice as many fit (Jesse, 2026-11-02). Tags have their
   own column, on one line: chips past its width are cut off and hovering lists them all, and a
   column dragged wider shows more. The requester's email is on hover, with a copy icon on the row
   you're on. The due date's day count sits on its line; a column too narrow for it keeps the date
   and leaves the count on hover, rather than making the row two lines. The note columns have no
   minimum: they are mostly empty, and the subject can use that room. */
.desk-table .fo-table-cell { padding-top: 3px; padding-bottom: 3px; }
.desk-table td.desk-tags-cell .conversations-row-tags { flex-wrap: nowrap; max-width: 180px; max-height: none; margin-top: 0; }
.desk-table.fo-table-resizable-pinned td.desk-tags-cell .conversations-row-tags { max-width: none; }
.desk-table .conversations-tag-row { flex: none; white-space: nowrap; }
.desk-table a.desk-requester { color: #250d47; }
.desk-table a.desk-requester:hover { color: #e91e63; }
.desk-table .desk-requester-copy { font-size: 14px; opacity: 0; }
.desk-table tr:hover .desk-requester-copy, .desk-table .desk-requester-copy:focus-visible, .desk-table .desk-requester-copy.is-copied { opacity: 1; }
.desk-table .desk-due { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; height: 1.5em; overflow: hidden; }
.desk-table .desk-due > span { white-space: nowrap; }
.desk-table td.desk-note-cell { white-space: normal; overflow-wrap: anywhere; }
/* A long client or requester wraps in its own row instead of taking the subject's width in every row. */
.desk-table td.desk-wrap-cell { white-space: normal; }
.desk-table td.desk-due-cell { min-width: 104px; }
/* A date stays on its line in a column narrowed below it: cut off, the whole date on hover. */
.desk-table td.desk-date-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The status filter chips ARE the table's status pills (10px caps, the
   conversations-status-* fill); a transparent border keeps "on" — the same
   border in the text colour — from shifting the row. */
.desk-status-chip {
    align-self: center;   /* not stretched to the Due group's height */
    font-size: 12px;
    border: 1px solid transparent;
    cursor: pointer;
}
.desk-status-chip.conversations-chip-active { border-color: currentColor; }
/* On My Desk a selected chip (scope, status, due) is ringed by its 1px
   border alone — the extra 1px inset shadow read heavy. */
.conversations-panel .conversations-chip-active { box-shadow: none; }
/* The # column's ref pills (DeskTable.tsx): the kind filter pills' look —
   .desk-kind-chip-* fill — at their 10px. */
.desk-table .desk-ref-pill { font-size: 12px; }
/* A thread with a saved, unsent reply (conversations.drafts), and one raised
   from a close task (closer.conversation_glue). The Task chip is a link. */
.desk-table .desk-draft-chip,
.desk-table .desk-task-chip { font-size: 12px; margin-left: 6px; vertical-align: middle; }
/* Under the subject while a search matched a message's words (TM-2159): secondary
   text, regular weight, two lines at most. */
.desk-table .desk-match-snippet {
  color: #495057;
  font-size: 14px;
  font-weight: 400;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
a.desk-task-chip,
a.conversations-task-chip,
a.desk-task-chip:hover,
a.conversations-task-chip:hover { text-decoration: none; }

/* The ticket's own tags, wrapped and clamped to two chip rows. */
.conversations-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.25rem;
    max-height: 2.9em;
    overflow: hidden;
    margin-top: 0.15rem;
}

/* My Desk multi-select filters reuse the Accruer / Magic Reports .mr-*
   filter; only the fit into the desk's filter bar lives here. */
.conversations-filterbar .desk-multi { margin: 0; }
.desk-multi .mr-multiselect-option { display: block; margin-bottom: 0; cursor: pointer; }
/* Conversations' hide rules (Jesse, 2026-10-27): each option's eye-slash at the
   row's right, faint until the row is hovered; a hidden option is struck through
   in red, its eye-slash red too. */
.desk-multi-hideable .mr-multiselect-option { display: flex; align-items: center; gap: .5rem; }
.desk-multi-hideable .mr-multiselect-option .form-check-label { flex: 1 1 auto; }
.desk-multi-hide { border: 0; background: transparent; padding: 0 .25rem; font-size: 14px; line-height: 1; color: #495057; opacity: .35; cursor: pointer; }
.mr-multiselect-option:hover .desk-multi-hide, .desk-multi-hide:focus-visible { opacity: 1; }
.desk-multi-hide:hover { color: #e91e63; opacity: 1; }
.desk-multi-hide.active { color: var(--bs-danger); opacity: 1; }
.desk-multi-option-hidden .form-check-label { text-decoration: line-through; color: var(--bs-danger); }
.desk-rule-chips[hidden] { display: none !important; }
/* The AI box over the filter row: as wide as the search row's controls allow, and
   what it read on the same line. */
.desk-ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin-bottom: .5rem; }
.desk-ai-box { flex: 0 1 40rem; min-width: 16rem; }
.desk-ai-status { font-size: 14px; }
/* The whole filter written out as a query, under the chips. */
.desk-query-row { display: flex; align-items: baseline; gap: .5rem; margin-top: .35rem; font-size: 14px; color: #2d2c2f; }
.desk-query-row[hidden] { display: none !important; }
.desk-query-text { font-weight: 400; overflow-wrap: anywhere; }

.desk-views { display: inline-flex; align-items: center; gap: 0.3rem; }
.desk-views .conversations-select { max-width: 11rem; }

/* My Desk's fo-combobox dropdowns (the Views picker, the New conversation
   form's client + visibility) dressed as the .mr-* multi-select filters
   (Clients / Assignees …) so the page reads as one set. Values mirror
   .mr-select-btn / .mr-multiselect-dropdown. The panel is body-appended,
   hence data-combobox-class="desk-combobox" rather than a page scope. */
.fo-combobox.desk-views-combobox { width: 160px; }
.desk-combobox .fo-combobox-display {
    justify-content: center;
    gap: 4px;
    height: 29px;   /* the btn-sm buttons' height */
    padding: 2px 8px 0;   /* the dropdown standard's: 0 sat the text ~1px high in the box (2026-10-22) */
    border: 1px solid lightgray;
    border-radius: .375rem;
    font-size: 14px;
    color: #666;
}
.desk-combobox .fo-combobox-placeholder,
.desk-combobox .fo-combobox-caret { color: inherit; }
.desk-combobox .fo-combobox-caret { font-size: 10px; }
/* Wide enough for its options (the visibility labels are long); the JS
   floors it at the button's width, the Views picker pins the filters' 250px
   (after this rule: same specificity). */
.fo-combobox-panel.desk-combobox {
    width: max-content;
    border-color: #dee2e6;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}
.fo-combobox-panel.desk-views-combobox { width: 250px; }
.desk-combobox .fo-combobox-search {
    padding: 0.25rem 0.5rem;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 14px;
}
.desk-combobox .fo-combobox-search:focus { outline: 0; }
.desk-combobox .fo-combobox-list { margin-top: 0.25rem; }
/* data-combobox-plain: the search box is there for the keyboard only. */
.fo-combobox-panel .fo-combobox-search.fo-combobox-search-offscreen {
    position: absolute; width: 1px; height: 1px; padding: 0; border: 0;
    opacity: 0; pointer-events: none;
}
.fo-combobox-panel .fo-combobox-search-offscreen + .fo-combobox-list { margin-top: 0; }
/* data-combobox-option-pill: listed options as the rail's 10px chips. */
.fo-combobox-panel .fo-combobox-option .closer-pill { font-size: 12px; padding: .25rem .6rem; }
.desk-combobox .fo-combobox-option { padding: 2px 5px; font-size: 14px; }
/* The option's value (a view pk, 'internal') isn't what anyone picks by. */
.desk-combobox .fo-combobox-option-label { font-weight: normal; }
.desk-combobox .fo-combobox-option-value { display: none; }

/* ── Master-only blocks preserved across the 2026-08-31 consolidation ──
   (union merge: beta's file is the base; these selectors exist only on
   master — the conversations 10s undo bar from the APlus back-port, and
   the review light's n/a state — so they ride along verbatim.) */
/* Undo send's countdown bar (conversations.outbound): a reply to the client
   waiting out its sender's delay, with Undo, Send now and the delay's link. */
.conversations-undo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
  background: #2f3437;
  color: #fff;
  font-size: 0.875rem;
}
.conversations-undo button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: none;
  color: #fff;
  border-radius: 0.25rem;
  padding: 0.1rem 0.6rem;
  cursor: pointer;
}
.conversations-undo button[disabled] {
  opacity: 0.5;
  cursor: default;
}
.conversations-undo-setting {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-decoration: none;
}
.conversations-undo-setting:hover {
  color: #e91e63;
  text-decoration: none;
}
.conversations-sending .conversations-composer-body,
.conversations-sending .conversations-recipients {
  opacity: 0.6;
}
.closer-light-na .closer-light-dot { background: #ced4da; }

/* The statement itself, inside the hand-filing editor. The operator is being
   asked to read a closing date and balance off the document, so the document
   has to be on screen — and for a consolidated statement, seeing it is how
   they tell which account the row is for (Jesse, 2026-09-02). */
.bank-file-fix-preview {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
    min-width: 0;
    /* Full row width, not the width of whatever grid track it landed in — at ~300px the PDF was
       unreadable, and reading it is the whole point of the fix (Jesse, 2026-09-23). */
    width: 100%;
    flex: 1 1 100%;
    align-self: stretch;
}

.bank-file-fix-frame {
    width: 100%;
    height: 65vh;
    border: 1px solid #d5dedf;
    border-radius: 0.25rem;
    background: #ffffff;
}

.bank-file-fix-popout {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #250d47;
    text-decoration: none;
}

.bank-file-fix-popout:hover {
    color: #e91e63;
}

/* Spreadsheet run pages -- countdown while the tab closes itself.
   Rendered hidden and unhidden by the script in web/_run_auto_close.html, so a browser
   running no JS never shows a promise that nothing is going to keep. */
.run-auto-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--fo-text-muted, #475467);
}

.run-auto-close-cancel {
    padding: 0.15rem 0.6rem;
    font-size: inherit;
    color: inherit;
    background: none;
    border: 1px solid var(--fo-border-color, #d0d5dd);
    border-radius: 0.375rem;
    cursor: pointer;
}

.run-auto-close-cancel:hover {
    background: var(--fo-surface-2, #f2f4f7);
}

/* Payroller mapping editor (MappingEditor.tsx): typeahead menus, the Roll back menu, sticky
   headers, the narrow numeric columns. Introduced in 80f13c4dd6, lost in a later sync from beta
   (6951514012); without them the Roll back menu rendered unstyled inside the table (2026-09-08). */
/* Payroller mapping editor — extracted from inline styles in MappingEditor.tsx so the grid conforms
   to the brand and styling lives in one place (per the repo CSS rule). Dynamic-only values (the
   criteria-driven column count) stay in the component; everything static lives here. */
.payroller-sticky-th { position: sticky; top: 0; z-index: 10; }

/* Typeahead (account/payee/entity pickers) */
.payroller-typeahead { position: relative; min-width: 160px; }
.payroller-typeahead-input { padding-right: 18px; cursor: pointer; background-color: #fff; }
.payroller-typeahead-caret {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: #888; font-size: 10px;
}

/* Floating menus (typeahead results + rollback list) share one card look */
.payroller-menu {
    position: absolute; z-index: 50; background: #fff; border: 1px solid #c5c5d2;
    border-radius: 6px; max-height: 280px; overflow-y: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.payroller-menu--typeahead { width: max(100%, 360px); }
.payroller-menu--rollback { z-index: 60; min-width: 320px; max-height: 320px; }
.payroller-menu-item { cursor: pointer; }
.payroller-menu-item.is-active { background: #e7f1ff; }
.payroller-menu-item--clear { cursor: pointer; color: #b91c1c; }
.payroller-rollback-row { gap: 8px; cursor: pointer; }
.payroller-meta-xs { font-size: 14px; }

/* Grid inputs */
.payroller-col-num { width: 70px; }
.payroller-criteria-add { gap: 4px; }
.payroller-criteria-add-input { width: 130px; }
.payroller-criteria-remove { font-size: 14px; }
.payroller-item-input { min-width: 220px; }
.payroller-criteria-cell-input { min-width: 90px; }

/* Drag-reorder drop indicator (applied conditionally to the hovered row) */
.payroller-drop-target { box-shadow: inset 0 2px 0 #e83e8c; }


/* ── QuickBooks Connection card: settings tabs (teams_qbo_form.html) ──
   Label left, value right, one settings list per Bootstrap tab pane. Value colour
   is NOT set here: on/off rows carry Bootstrap's .text-success / .text-danger, and
   anything that isn't a true/false setting carries no class and inherits the body
   colour. Capped width so the value doesn't drift a screen away from its label. */
.fo-qbo-pane {
    max-width: 44rem;
}

/* Join the active tab to the pane below it.
   Bootstrap connects tabs by giving the active one a bottom border the colour of the
   panel and a -1px bottom margin, so it sits on top of the <ul>'s rule and hides the
   1px under itself. `li.nav-item .nav-link.active` above (line ~146, app-wide) sets
   `border-bottom: 0`, which removes the very thing doing the hiding -- the tab then
   stops 1px short and the rule runs straight through underneath.
   So put the border back, in the card's white, for THESE tabs only. The selector
   needs `li.nav-item` to out-specify that rule (0,4,1 vs 0,3,1); a plain
   `.fo-qbo-tabs .nav-link.active` is 0,3,0 and silently loses. */
.fo-qbo-tabs li.nav-item .nav-link.active {
    position: relative;
    z-index: 1;
    margin-bottom: -1px;
    background-color: #fff;
    border-bottom: 1px solid #fff;
}

/* One setting = one bordered item. The rule sits on the item, not the label/value
   row, so an explanatory note stays inside its own setting's band instead of
   appearing below the divider and reading as part of the next one. */
.fo-qbo-item {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f1f1f4;
}

.fo-qbo-item:last-child {
    border-bottom: none;
}

/* Two columns rather than a flex push-apart: values line up on a shared left edge
   near the end of the row, instead of each drifting to the right rule. The value
   track is capped (15rem, enough for "QuickBooks Connected") and the label takes
   1fr, so widening the row grows the label and leaves the values where they are. */
.fo-qbo-row {
    display: grid;
    grid-template-columns: 1fr minmax(0, 15rem);
    align-items: baseline;
    /* Column gap only: the note wraps onto a second grid row, and a row gap would
       push it away from the label it belongs to. */
    gap: 0 1rem;
}

.fo-qbo-label {
    color: #495057;
}

/* min-width: 0 overrides the grid automatic-minimum-size, which would otherwise
   floor this item at its content width. The label (1fr, min-width auto) shrinks
   first and floors at its own min-content; past that point this is the track with
   room left to give. Measured at a 240px pane: label 95px floored, value 129px. */
.fo-qbo-value {
    min-width: 0;
}

/* Explanatory line under settings whose effect on our automation isn't obvious
   from the label alone (e.g. QBO auto-emailing invoices we create). It sits INSIDE
   the row grid and is pinned to the label column, so it wraps under its own label
   instead of running the full width of the row and past the value. */
.fo-qbo-note {
    grid-column: 1;
    margin-top: 0.1rem;
    font-size: 14px;
    line-height: 1.35;
    color: #6c757d;
}

/* Bank Data ▸ Activity ▸ map columns pop-up: the separator box sits mid-sentence in the
   Description slot; the preview columns read like a register line. */
.bank-column-map-sep {
    width: 5rem;
    margin: 0 0.35rem;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.bank-column-map-table td {
    vertical-align: middle;
}

/* The pop-up is a working surface (search a row, drag headers onto slots): wider than modal-xl. */
@media (min-width: 1200px) {
    .bank-colmap-dialog {
        max-width: min(1400px, 94vw);
    }
}

/* Slots: Date · Amount — or — Debit + Credit · the ordered Description. Drop targets. */
.bank-colmap-slots {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.bank-colmap-slot {
    flex: 0 1 11rem;
    min-width: 9rem;
    padding: 0.4rem 0.5rem;
    border: 1px dashed #c4bfd0;
    border-radius: 0.5rem;
    background: #faf9fc;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.bank-colmap-slot--description {
    flex: 1 1 22rem;
}

.bank-colmap-slot--filled {
    border-style: solid;
    background: #fff;
}

.bank-colmap-slot--over {
    border-color: #4f46e5;
    background: #eef2ff;
}

/* The amount and the debit/credit pair exclude each other — the unused side recedes. */
.bank-colmap-slots--pair .bank-colmap-slot[data-role="amount"],
.bank-colmap-slots--amount .bank-colmap-slot[data-role="debit"],
.bank-colmap-slots--amount .bank-colmap-slot[data-role="credit"] {
    opacity: 0.5;
}

.bank-colmap-slot-or {
    align-self: center;
}

.bank-colmap-slot-label {
    font-size: 14px;
    font-weight: 600;
    color: #250D47;
    margin-bottom: 0.3rem;
}

.bank-colmap-sep-label {
    font-weight: 400;
    margin: 0 0 0 0.5rem;
}

/* The theme's form-control is borderless on white, and the default separator is a single space —
   together an invisible box (Jesse, 2026-09-23). Outlined, and wide enough to read " / ". */
.bank-colmap-sep {
    width: 4.5rem;
    border: 1px solid #98a2b3;
    border-radius: 4px;
    padding: 0 0.35rem;
    font-family: monospace;
    background: #fff;
}

.bank-colmap-slot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    min-height: 1.6rem;
    align-items: center;
}

.bank-colmap-slot-hint {
    font-size: 14px;
    color: #98a2b3;
    font-style: italic;
}

.bank-colmap-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.2rem 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    cursor: grab;
    user-select: none;
    border: 1px solid transparent;
}

.bank-colmap-chip--date,
.bank-colmap-col--date {
    background: #e0f2fe;
}

.bank-colmap-chip--amount,
.bank-colmap-chip--debit,
.bank-colmap-chip--credit,
.bank-colmap-col--amount,
.bank-colmap-col--debit,
.bank-colmap-col--credit {
    background: #dcfce7;
}

.bank-colmap-chip--description,
.bank-colmap-col--description {
    background: #ede9fe;
}

.bank-colmap-chip-order {
    font-weight: 700;
    color: #250D47;
}

.bank-colmap-chip-btn {
    border: 0;
    background: transparent;
    padding: 0 0.3rem;
    line-height: 1.2;
    color: #475467;
    border-radius: 999px;
}

.bank-colmap-chip-btn:hover:not(:disabled) {
    background: rgba(37, 13, 71, 0.1);
}

.bank-colmap-chip-btn:disabled {
    opacity: 0.3;
}

.bank-colmap-search-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.bank-colmap-search {
    max-width: 24rem;
}

/* The rows scroll under a sticky header, so the drag handles stay in reach. */
.bank-colmap-table-wrap {
    max-height: 55vh;
    overflow: auto;
    border: 1px solid #e5e1ea;
    border-radius: 0.375rem;
}

.bank-colmap-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    vertical-align: bottom;
}

.bank-colmap-table-wrap td {
    white-space: nowrap;
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bank-colmap-table-wrap thead th.bank-colmap-col--date {
    background: #e0f2fe;
}

.bank-colmap-table-wrap thead th.bank-colmap-col--amount,
.bank-colmap-table-wrap thead th.bank-colmap-col--debit,
.bank-colmap-table-wrap thead th.bank-colmap-col--credit {
    background: #dcfce7;
}

.bank-colmap-table-wrap thead th.bank-colmap-col--description {
    background: #ede9fe;
}

.bank-colmap-col-head {
    min-width: 8rem;
}

.bank-colmap-col-name {
    white-space: nowrap;
    margin-bottom: 0.25rem;
    cursor: grab;
}

.bank-colmap-grip {
    color: #98a2b3;
    margin-right: 0.35rem;
}

.bank-colmap-role-select {
    font-size: 14px;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

/* A cell the search matched: the answer to "which column holds 4091.78?". */
.bank-column-map-table td.bank-colmap-hit {
    background: #fef08a;
    font-weight: 600;
}

/* The two preview columns lead the table: what each row becomes under the map. */
.bank-colmap-table-wrap thead th.bank-colmap-preview-head {
    color: #250D47;
    background: #faf9fc;
}

.bank-colmap-table-wrap thead th.bank-colmap-preview-head--amount {
    text-align: right;
}

.bank-column-map-table td.bank-colmap-preview {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    color: #250D47;
    background: #faf9fc;
}

.bank-column-map-table td.bank-colmap-preview--amount {
    text-align: right;
}

.bank-colmap-table-wrap td.bank-colmap-preview--description {
    white-space: normal;
    min-width: 18rem;
    max-width: 26rem;
    border-right: 2px solid #c4bfd0;
}

/* Bank Data ▸ Statements ▸ checks: the button lights up when images are on file, with the count
   beside the icon; the gallery is a grid of check-shaped cards. */
.bank-file-checks-btn--on {
    color: #4f46e5;
}

.bank-file-checks-count {
    font-size: 12px;
    font-weight: 600;
    margin-left: 0.15rem;
    vertical-align: super;
}

.bank-checks-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
    gap: 0.9rem;
}

.bank-check-card {
    margin: 0;
    border: 1px solid #e4e7ec;
    border-radius: 0.4rem;
    padding: 0.4rem;
    background: #fff;
}

.bank-check-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.2rem;
}

.bank-check-card figcaption {
    font-size: 14px;
    color: #250D47;
    margin-top: 0.35rem;
}

/* The divide's "check 620" chip on a bank row whose check is pictured in a statement. */
.rec-divide-check-chip {
    display: inline-block;
    font-size: 12px;
    line-height: 1.2;
    padding: 0.05rem 0.4rem;
    margin-left: 0.4rem;
    border-radius: 0.6rem;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
}

.rec-divide-check-chip:hover {
    background: #e0e7ff;
    color: #312e81;
    text-decoration: none;
}

/* Supporting documents on a divide bank row: ONE 📎 chip, the file list on click. In QBO: the
   check chip's indigo. Any file held (waiting for the row to have an entry): amber. */
.rec-divide-attach-wrap {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.rec-divide-attach-chip {
    font-size: 12px;
    line-height: 1.2;
    padding: 0.05rem 0.4rem;
    margin-left: 0.4rem;
    border-radius: 0.6rem;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    white-space: nowrap;
    cursor: pointer;
}

.rec-divide-attach-chip--held {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

/* A dropped file on its way (grey, pulsing) or refused (red, reason in the tooltip, × dismisses).
   Capped so a long name or reason cannot crowd the narrative out. */
.rec-divide-attach-chip--uploading,
.rec-divide-attach-chip--failed {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

.rec-divide-attach-chip--uploading {
    border-color: #d0d5dd;
    background: #f2f4f7;
    color: #475467;
    animation: rec-divide-attach-pulse 1.2s ease-in-out infinite;
}

.rec-divide-attach-chip--failed {
    border-color: #fda29b;
    background: #fef3f2;
    color: #b42318;
}

@keyframes rec-divide-attach-pulse {
    50% { opacity: 0.55; }
}

.rec-divide-attach-menu {
    position: fixed;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 14rem;
    max-width: 24rem;
    padding: 0.35rem 0.5rem;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 0.4rem;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}

.rec-divide-attach-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    white-space: nowrap;
}

.rec-divide-attach-item a {
    color: #3730a3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-divide-attach-state {
    margin-left: auto;
    color: #667085;
    font-size: 14px;
}

.rec-divide-attach-remove {
    border: none;
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    color: #92400e;
    cursor: pointer;
}

/* The 📎 beside the Hold hand. The whole row takes a dropped file; this is the click-to-browse
   fallback and shows the row's file count. Borderless: the 3.5rem Hold column has no room for a box. */
.rec-divide-attach-add {
    display: inline-block;
    margin: 0 0 0 0.15rem;
    padding: 0 0.1rem;
    font-size: 14px;
    line-height: 1.3;
    border-radius: 0.3rem;
    color: #6366f1;
    cursor: pointer;
    opacity: 0.5;
    white-space: nowrap;
    vertical-align: middle;
}

.rec-divide-attach-add:hover,
.rec-divide-attach-add--has {
    opacity: 1;
}

.rec-divide-attach-add--drop {
    opacity: 1;
    background: #e0e7ff;
    font-weight: 600;
}

/* Line one of the Hold cell: the hand and the 📎, never wrapped apart. */
.rec-divide-hold-line {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.rec-divide-attach-count {
    font-size: 0.55rem;
    font-weight: 600;
    margin-left: 0.05rem;
}

/* A file dragged over a bank row: the row is the drop target. */
.rec-divide-row--droptarget td {
    box-shadow: inset 0 0 0 9999px rgba(99, 102, 241, 0.08);
}

.rec-divide-attach-input {
    display: none;
}

/* Composer upload status. Reads out how many attachments are still uploading,
   and whether a send is already promised for when they land — a bulk drop used
   to leave the box empty and silent for a minute (chinatalk, 2026-09-11). */
.ai-chat-attachments-status {
  font-size: 14px;
  color: #6b7280;
  padding: 0.25rem 0.5rem 0;
}

/* Firm Settings → Roles: the grid scrolls inside the card so the settings
   tab strip, the heading, the search box and the column heads (with their
   per-role filters) stay on screen (Jesse, 2026-09-14). */
.fo-roles-scroll {
  max-height: calc(100vh - 17rem);
  overflow: auto;
}
.fo-roles-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  vertical-align: top;
}
.fo-roles-matrix td {
  vertical-align: middle;
}
/* Toolbar under the heading: search at the LEFT (every other page's
   convention), then the Client chip filter, the count, Clear. */
.fo-roles-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: .25rem 0 .75rem;
}
#fo-roles-search {
  width: 18rem;
}
/* Typeable multi-select: chips + a text input over a <datalist>, styled as
   one input. Compact variant lives inside the column heads. */
.fo-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  min-height: 2rem;
  padding: .15rem .4rem;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  background: #fff;
  cursor: text;
}
.fo-chips:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .25);
}
.fo-chips-active {
  border-color: #4F5FB7;
}
.fo-chips-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
  margin-right: .15rem;
}
.fo-chips-list {
  display: contents;
}
.fo-chips-input {
  flex: 1 1 5rem;
  min-width: 5rem;
  border: 0;
  outline: 0;
  font-size: 12px;
  background: transparent;
}
.fo-chip {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: 0 .1rem 0 .45rem;
  border-radius: 999px;
  background: #eef0fb;
  color: #2f3b8f;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.fo-chip-x {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 0 .3rem;
  cursor: pointer;
}
.fo-chips-compact {
  margin-top: .25rem;
  min-width: 9rem;
  font-weight: 400;
  text-transform: none;
}
.fo-chips-compact .fo-chips-input {
  font-size: 12px;
  min-width: 3rem;
}

/* ── Conversations: files on messages (Jesse, 2026-09-15) ──────────────────
   A picked file is a chip under the message; a pasted image shows inline in
   the body where it was pasted (the Zendesk inline kind). */
.conversations-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.conversations-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  font-size: 14px;
  color: #5a2ca0;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.4rem;
  padding: 0.2rem 0.5rem;
  text-decoration: none;
}
.conversations-attachment:hover { border-color: #c7bfe0; text-decoration: none; }
.conversations-attachment-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 18rem;
}
.conversations-attachment-size { color: #9aa5b4; }
.conversations-attachment-thumb {
  max-height: 3.2rem;
  max-width: 6rem;
  border-radius: 0.25rem;
  display: block;
}
.conversations-msg-inline-img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin: 0.35rem 0;
  border: 1px solid #e4e4e7;
  border-radius: 0.3rem;
}
.conversations-composer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: -0.25rem 0 0.5rem;
}
.conversations-composer-chip {
  font-size: 0.75rem;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.conversations-composer-chip-img { padding: 0.15rem 0.5rem 0.15rem 0.15rem; }
.conversations-composer-thumb {
  max-height: 2.6rem;
  max-width: 5rem;
  border-radius: 0.25rem;
  display: block;
}
.conversations-composer-chip-x {
  border: none;
  background: none;
  cursor: pointer;
  color: #9aa5b4;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0 0.1rem;
}
.conversations-composer-chip-x:hover { color: #c0392b; }
/* The footer is Stay-on-ticket and Submit, on the right. The tools live in the composer bar. */
.conversations-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.conversations-submit-row .desk-combobox .fo-combobox-display {
  height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  border-color: #d1d5db;
  font-size: 14px;
  color: #2d2c2f;
}
/* The attach button before composer-format.js moves it into the toolbar. */
.conversations-composer-attach {
  border: 1px solid #d9d3e8;
  background: #fff;
  color: #5a2ca0;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.conversations-composer-attach:hover { border-color: #5a2ca0; }
/* Grey, not purple, at rest (Christopher, 2026-10-06); a selected toggle
   (.is-on, below) keeps its purple. */
.conversations-composer-attach:not(.is-on) { color: #6c757d; border-color: #d1d5db; }
.conversations-composer-attach:not(.is-on):hover { color: #495057; border-color: #6c757d; }
/* The composer's editable box (conversations-composer.js): text and the
   pasted images themselves, in place — the textarea underneath stays the
   form field. */
.conversations-composer-textarea-hidden { display: none !important; }
/* One height, internal or to the client: 12rem until the grip above the tabs
   is dragged (fo-grip-resize.js keeps --fo-reply-editor-h in the browser).
   A fixed box that scrolls, so the drag always takes (Jesse, TM-2177: the
   corner drag on a box that also grew with its text took two tries). */
.conversations-composer .conversations-composer-editor {
  height: var(--fo-reply-editor-h, 12rem);
  min-height: 3rem;
  max-height: 60vh;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;
  resize: none;
}
.conversations-composer-editor:focus {
  border-color: #e91e63;   /* the focused-input standard */
  outline: none;
}
.conversations-composer-editor:empty::before {
  content: attr(data-placeholder);
  color: #6c757d;
  pointer-events: none;
}
.conversations-composer-inline-img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  margin: 0.3rem 0;
  border: 1px solid #e4e4e7;
  border-radius: 0.3rem;
}
/* The composer's formatting toolbar (composer-format.js): Zendesk's groups —
   text | lists | blocks — and the insert tools (emoji, attach, link, dictate). */
.conversations-format-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
  padding: 0.2rem 0.25rem;
  margin-bottom: 0.25rem;
  border: 1px solid #e4e0ef;
  border-radius: 0.5rem;
  background: #fbfaff;
}
.conversations-format-bar[hidden],
.conversations-format-menu[hidden] { display: none !important; }
.conversations-format-group {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.conversations-format-group + .conversations-format-group {
  padding-left: 0.6rem;
  border-left: 1px solid #e4e0ef;
}
.conversations-format-group[hidden] { display: none !important; }
.conversations-format-btn {
  border: 1px solid transparent;
  background: none;
  color: #4a4458;
  width: 1.85rem;
  height: 1.75rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
}
.conversations-format-btn:hover { background: #e7f1ff; color: #5a2ca0; }
.conversations-format-btn:disabled,
.conversations-format-btn:disabled:hover {
  opacity: 0.35;
  background: none;
  color: #4a4458;
  cursor: default;
}
.conversations-format-btn-label {
  width: auto;
  padding: 0 0.45rem;
  gap: 0.28rem;
  font-size: 0.75rem;
}
.conversations-format-btn.is-on { background: #ede5fb; color: #5a2ca0; border-color: #d9d3e8; }
.conversations-format-menu-wrap { position: relative; display: inline-flex; }
.conversations-format-menu {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 4px);
  left: 0;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.conversations-format-menu-item {
  border: none;
  background: none;
  border-radius: 0.3rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  text-align: left;
}
.conversations-format-menu-item:hover { background: #e7f1ff; }
.conversations-format-headings { display: flex; flex-direction: column; min-width: 10rem; }
.conversations-format-heading-h1 { font-size: 1.3rem; font-weight: 600; }
.conversations-format-heading-h2 { font-size: 1.1rem; font-weight: 600; }
.conversations-format-heading-h3 { font-size: 0.95rem; font-weight: 600; }
.conversations-format-heading-div { font-size: 14px; }
.conversations-format-colors { display: flex; gap: 0.1rem; }
.conversations-format-swatch {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
/* Kept in step with message_text.COLORS / composer-format.js COLORS. */
.conversations-format-swatch-red { background: #c0392b; }
.conversations-format-swatch-orange { background: #d35400; }
.conversations-format-swatch-green { background: #1e8449; }
.conversations-format-swatch-blue { background: #2471a3; }
.conversations-format-swatch-purple { background: #7d3c98; }
.conversations-format-swatch-gray { background: #717d7e; }
.conversations-format-swatch-default { background: linear-gradient(135deg, #fff 45%, #c0392b 47%, #c0392b 53%, #fff 55%); }
.conversations-format-emoji {
  display: grid;
  grid-template-columns: repeat(8, 1.9rem);
  gap: 0.1rem;
  font-size: 1.05rem;
}
.conversations-format-emoji .conversations-format-menu-item { padding: 0.1rem; text-align: center; }
.conversations-format-mic.is-on { background: #fdecea; color: #c0392b; border-color: #c0392b; }
/* Formatting inside the box reads as the thread will show it (message_text._STYLE). */
.conversations-composer-editor blockquote {
  margin: 4px 0 8px;
  padding: 2px 0 2px 12px;
  border-left: 3px solid #ccc;
  color: #555;
}
.conversations-composer-editor h1 { font-size: 1.45em; font-weight: 600; margin: 8px 0 6px; }
.conversations-composer-editor h2 { font-size: 1.25em; font-weight: 600; margin: 8px 0 6px; }
.conversations-composer-editor h3 { font-size: 1.1em; font-weight: 600; margin: 8px 0 4px; }
.conversations-composer-editor ul,
.conversations-composer-editor ol { margin: 4px 0 8px; padding-left: 24px; white-space: normal; }
/* The paragraphs' 1.625 line height: the box's own is twice its 12px, which
   spread a wrapped list item out next to the paragraphs around it. */
.conversations-composer-editor li { margin: 0 0 2px; display: list-item; line-height: 1.625; }
.conversations-composer-editor pre {
  margin: 4px 0 8px;
  padding: 8px 10px;
  background: #f6f8fa;
  border-radius: 4px;
  font-size: 0.92em;
  white-space: pre-wrap;
}
.conversations-composer-editor code { background: #f2f0f7; padding: 0 3px; border-radius: 3px; }
.conversations-composer-editor pre code { background: none; padding: 0; }
.conversations-composer-editor hr { border: 0; border-top: 1px solid #ddd; margin: 12px 0; opacity: 1; }
/* At the box's reading size and weight 400, like .conversations-msg-body p: the
   theme's 1rem / 300 p made paragraphs larger than the list items. */
.conversations-composer-editor p { margin: 0 0 8px; font-size: inherit; font-weight: 400; }
/* Quote: floats over text selected in a message (composer-format.js). */
.conversations-quote-pop {
  position: fixed;
  z-index: 1085;
  padding: 0.2rem 0.6rem;
  font-size: 14px;
  color: #fff;
  background: #5a2ca0;
  border: none;
  border-radius: 0.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.conversations-quote-pop:hover { background: #47207f; }
/* The Zendesk thread panel's composer box (thread-panel.js): same editable
   box as the native composer, pasted images in place. */
.aplus-composer-editor {
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff;
  cursor: text;
}
.aplus-composer-editor:focus { border-color: #e91e63; outline: none; }   /* the focused-input standard */
.aplus-composer-editor:empty::before {
  content: attr(data-placeholder);
  color: #6c757d;
  pointer-events: none;
}
.aplus-composer-inline-img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  margin: 0.3rem 0;
  border: 1px solid #e4e4e7;
  border-radius: 0.3rem;
}

/* Magic AI Report unstack: the before/after preview under the Pivot Column select. */
.fo-unstack-preview-pair {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.fo-unstack-preview {
  max-width: 100%;
  overflow-x: auto;
}

.fo-unstack-preview-caption {
  font-weight: 600;
  margin-bottom: 2px;
}

.fo-unstack-preview-arrow {
  align-self: center;
  font-size: 18px;
}

.fo-unstack-preview-table {
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.fo-unstack-preview-table th,
.fo-unstack-preview-table td {
  border: 1px solid #ddd;
  padding: 1px 6px;
  text-align: left;
}

.fo-unstack-preview-table th {
  background: #f3f0f8;
}

/* A tool call that failed (ai/ChatMessage.tsx `error`): red rail + the error
   text under the label. Until 2026-09-10 a failed call was indistinguishable
   from a good one in the transcript. */
.ai-chat-tool-call-error {
  border-left-color: #b00020;
  background: #fff6f6;
}
.ai-chat-tool-call-error-text {
  font-family: inherit;
  font-size: 14px;
  font-style: normal;
  color: #8a1c1c;
  padding-left: 0.75rem;
}
/* "Working…" — the in-flight marker once a streaming bubble already holds
   prose or chips (the "Thinking..." placeholder only covers an empty one). */
.ai-chat-working {
  margin-top: 0.35rem;
  padding: 0.2rem 0.5rem;
  background: transparent;
  border-left-color: #a090c0;
  color: #9a8fb0;
}

/* =========================================================================
   Current bank balances — the Bank Data ▸ Balances pane, and the ever-present
   cash chip in the app's top nav (2026-09-17).

   ONE LINE PER ACCOUNT is the constraint the whole pane is built around: a
   client has thirty of these and the question is "how much have we got".
   Anything that would wrap — the staleness sentence, the institution, the
   source — is a tooltip or lives in the row's disclosure panel instead.
   ========================================================================= */

.bank-balances {
    padding: 0.5rem 0.25rem 0.25rem;
}

.bank-balances-refreshing {
    font-style: italic;
}

.bank-balances-caveat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--fo-text-muted, #475467);
    background: var(--fo-surface-2, #f2f4f7);
    border-radius: 0.375rem;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.5rem;
}

/* The scroll container is what makes the header freeze: position:sticky resolves
   against the nearest scrolling ancestor, so the table needs its own rather than
   riding the page's. */
.bank-balances-scroll {
    max-height: calc(100vh - 20rem);
    min-height: 16rem;
    overflow: auto;
}

.bank-balances-table {
    margin-bottom: 0;
}

/* `> thead > tr > th`, not `thead th`: an unzipped row nests the activity table INSIDE this one,
   and the descendant selector made ITS header sticky too — it pinned itself over this header and
   the Total row as the pane scrolled. */
.bank-balances-table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #344767;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 0.4rem 0.5rem;
}

/* Compact by default: a row is one line, and the cell padding is what decides
   how many fit on a screen. */
.bank-balances-table > tbody > tr > td {
    padding: 0.25rem 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
    border-bottom: 1px solid var(--fo-border-color, #e4e7ec);
}

.bank-balances-table .text-end {
    font-variant-numeric: tabular-nums;
}

.bank-balances-account {
    max-width: 28rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The totals, first in the table rather than a headline figure on its own. Sticks under
   the header so it stays in view down a long list. */
.bank-balances-total-row td {
    position: sticky;
    top: 1.65rem;
    z-index: 1;
    background: #e9edf5;
    font-weight: 700;
    border-bottom: 2px solid #344767;
}

.bank-balances-variance-link {
    color: inherit;
    text-decoration: underline dotted;
    text-underline-offset: 0.2em;
}

.bank-balances-variance-link:hover {
    color: var(--fo-primary, #e91e63);
}

/* ---- the Source traffic light: three lamps side by side, one lit ---------- */

.bank-balances-col-source {
    width: 4.5rem;
    text-align: center;
}

.bank-balances-light {
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.15rem 0.3rem;
    border-radius: 0.6rem;
    background: #2b2f36;
    vertical-align: middle;
}

.bank-balances-lamp {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    opacity: 0.22;
}

.bank-balances-lamp-red {
    background: #f04438;
}

.bank-balances-lamp-yellow {
    background: #fdb022;
}

.bank-balances-lamp-green {
    background: #12b76a;
}

.bank-balances-light-red .bank-balances-lamp-red,
.bank-balances-light-yellow .bank-balances-lamp-yellow,
.bank-balances-light-green .bank-balances-lamp-green {
    opacity: 1;
}

.bank-balances-subcount {
    margin-left: 0.4rem;
    font-size: 14px;
    color: var(--fo-text-muted, #475467);
}

.bank-balances-row-stale td {
    background: var(--fo-surface-2, #f2f4f7);
}

.bank-balances-col-toggle {
    width: 1.75rem;
}

.bank-balances-toggle {
    border: 0;
    background: none;
    padding: 0 0.2rem;
    color: var(--fo-text-muted, #475467);
    line-height: 1;
}

/* Open points DOWN. `> *`, not `i`: Font Awesome's JS swaps the <i> for an <svg>, which the
   old `i` selector never matched — so the chevron stayed pointing right on an open row. */
.bank-balances-toggle > * {
    transition: transform 0.12s ease-in-out;
}

.bank-balances-toggle-open > * {
    transform: rotate(90deg);
}

.bank-balances-mask {
    margin-left: 0.35rem;
    color: var(--fo-text-muted, #475467);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

.bank-balances-col-asof {
    font-size: 14px;
    color: var(--fo-text-muted, #475467);
}

.bank-balances-asof-value {
    white-space: nowrap;
}

.bank-balances-secondary {
    color: var(--fo-text-muted, #475467);
}

.bank-balances-variance {
    font-weight: 600;
}

/* ---- a row, unzipped ---------------------------------------------------- */

.bank-balances-panel {
    background: var(--fo-surface-2, #f2f4f7);
    white-space: normal;
    padding: 0.5rem 0.75rem 0.75rem 2.25rem;
}

.bank-balances-panel-facts {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--fo-text-muted, #475467);
    margin-bottom: 0.4rem;
}

.bank-balances-feed-link {
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
}

.bank-balances-sort {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 14px;
    color: var(--fo-text-muted, #475467);
    margin-bottom: 0.3rem;
}

.bank-balances-sort-btn {
    border: 1px solid var(--fo-border-color, #e4e7ec);
    background: #fff;
    border-radius: 0.25rem;
    padding: 0.05rem 0.5rem;
    font-size: 0.75rem;
    color: var(--fo-text-muted, #475467);
}

.bank-balances-sort-active {
    border-color: #344767;
    color: #344767;
    font-weight: 600;
}

.bank-balances-act-holder {
    width: 12rem;
}

.bank-balances-activity {
    margin-bottom: 0.25rem;
    background: #fff;
    /* Fixed, so a 200-character ACH description truncates instead of shoving Amount off the
       right edge of the pane — which is exactly what it did. */
    table-layout: fixed;
    width: 100%;
}

.bank-balances-act-date {
    width: 6.5rem;
}

.bank-balances-act-status {
    width: 5rem;
}

.bank-balances-act-amount {
    width: 8rem;
}

.bank-balances-act-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bank-balances-activity th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--fo-text-muted, #475467);
}

.bank-balances-activity td,
.bank-balances-activity th {
    padding: 0.2rem 0.45rem;
}

.bank-balances-activity .text-end {
    font-variant-numeric: tabular-nums;
}

/* Pending has not cleared: it is the difference between the balance and the
   money, which is the reason this panel exists. */
.bank-balances-pending td {
    background: #fff8ec;
}

.bank-balances-pending-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--fo-orange, #f5820d);
    font-weight: 600;
}

.bank-balances-activity-more {
    font-size: 14px;
    color: var(--fo-text-muted, #475467);
    margin: 0.25rem 0 0;
}

/* ---- the cash chip (beside the Reconciler page title) -------------------- */

.fo-cash-chip {
    position: relative;
    display: flex;
    align-items: center;
}

.fo-cash-chip-button {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    background: var(--fo-surface-2, #f2f4f7);
    border: 1px solid var(--fo-border-color, #e4e7ec);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: inherit;
}

.fo-cash-chip-button:hover {
    border-color: var(--fo-orange, #f5820d);
}

.fo-cash-chip-total {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fo-cash-chip-negative {
    color: var(--fo-orange, #f5820d);
}

.fo-cash-chip-asof {
    font-size: 12px;
    color: var(--fo-text-muted, #475467);
    white-space: nowrap;
}

.fo-cash-chip-refreshing .fo-cash-chip-asof {
    font-style: italic;
}

.fo-cash-chip-panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    z-index: 1030;
    min-width: 22rem;
    max-width: 30rem;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--fo-border-color, #e4e7ec);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    padding: 0.5rem 0;
}

.fo-cash-chip-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.75rem;
    padding: 0.35rem 0.9rem;
    font-size: 12px;
}

.fo-cash-chip-row-stale {
    background: var(--fo-surface-2, #f2f4f7);
}

.fo-cash-chip-account {
    overflow-wrap: anywhere;
}

.fo-cash-chip-mask {
    margin-left: 0.35rem;
    color: var(--fo-text-muted, #475467);
    font-variant-numeric: tabular-nums;
}

.fo-cash-chip-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* The note spans both columns beneath its row — it is a sentence, not a value. */
.fo-cash-chip-note {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--fo-text-muted, #475467);
}

.fo-cash-chip-link {
    display: block;
    padding: 0.5rem 0.9rem 0.25rem;
    border-top: 1px solid var(--fo-border-color, #e4e7ec);
    margin-top: 0.35rem;
    font-size: 12px;
}

/* Allocator lifecycle (Spreads tab drill-down): one card per spread JE, nested
   under the In leg that fed it, so a chain reads top-down like the ledger. */
.allocation-origin {
  border-left: 3px solid var(--fo-purple, #5b3a9b);
  padding-left: 12px;
  margin-bottom: 16px;
}

.allocation-node {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #fff;
}

.allocation-node-current {
  border-color: var(--fo-purple, #5b3a9b);
  box-shadow: 0 0 0 2px rgba(91, 58, 155, 0.15);
}

.allocation-node-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.allocation-node-group {
  font-weight: 600;
}

.allocation-node-label {
  font-family: monospace;
}

.allocation-node-open { align-self: center; }

.allocation-node-meta {
  color: #6c757d;
  font-size: 0.85em;
}

.allocation-legs {
  margin-bottom: 4px;
}

/* A lifecycle spread's "Split by": the basis rows that matched its line (allocator/includes/lifecycle_node.html). */
.allocation-basis { margin: 0.25rem 0 0.75rem; font-size: 14px; color: #2d2c2f; }
/* The lifecycle's filter box, and the footer row adding up just the rows it leaves (editors/openLifecycle.ts). */
.allocation-filter { margin-bottom: 0.75rem; max-width: 32rem; }
.allocation-filter-shown td { font-weight: 600; color: #495057; border-top: 1px solid #dee2e6; }
/* The lifecycle pop-up: the drill-downs' overlay at the width the lifecycle reads at, not its widest line. */
.closer-fin-drillx-wide.fo-lifecycle-card { width: min(75rem, 96vw); min-width: 0; }
.allocation-basis a { color: #250d47; text-decoration: none; }
.allocation-basis a:hover { color: #e91e63; }
.allocation-basis-table { margin: 0.35rem 0 0; width: auto; min-width: 50%; }
.allocation-basis-table th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; }

.allocation-leg-out td {
  color: #6c757d;
  font-style: italic;
}

/* Allocator ▸ Flow (static/js/allocator/flow.js): the workflows' spreads as a sankey. Nodes in the brand
   purple, each workflow's bands in its colour, the part a spread leaves in place grey, whatever the
   pointer is on traced in the brand purple (hot pink sat too close to the pink and red slots). */
.allocator-flow-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin-bottom: 0.75rem; }
.allocator-flow-filters > div:not(.allocator-flow-totals) { min-width: 240px; }
.allocator-flow-filters > .allocator-flow-months { min-width: 330px; }
.allocator-flow-range { display: flex; align-items: center; gap: 0.4rem; }
.allocator-flow-range > * { flex: 1 1 0; min-width: 0; }
.allocator-flow-range > .allocator-flow-range-to { flex: 0 0 auto; font-size: 14px; color: #495057; }
/* The workflow list is the legend: each workflow's checkbox, ticked in the workflow's own colour with a white
   check (white when it's off), its name and what it moved (Jesse, 2026-10-19: the house pink check beside a
   colour swatch read as two squares, and the theme draws its tick only inside a .form-check). */
.allocator-flow-workflows-row { margin-bottom: 0.75rem; }
.allocator-flow-workflows { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.1rem; }
.allocator-flow-wf { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 400;
                     color: #2d2c2f; cursor: pointer; }
.allocator-flow-wf .form-check-input[type=checkbox] { width: 14px; height: 14px; margin: 0; flex: none; }
.allocator-flow-wf .form-check-input[type=checkbox]:checked {
    border-color: var(--allocator-flow-colour);
    background-color: var(--allocator-flow-colour);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m5.5 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 11px 11px;
    background-position: center;
    background-repeat: no-repeat;
}
.allocator-flow-wf-amount { color: #495057; }
/* Workflow colours: the data-viz categorical palette in its validated order (the AI usage charts' hues),
   one fixed slot per workflow (fo_saas/allocator/flow.py COLOUR_SLOTS); past eight, the grey. The slot class
   sits on the workflow's checkbox label and on each of its bands. */
.allocator-flow-s0 { --allocator-flow-colour: #2a78d6; }
.allocator-flow-s1 { --allocator-flow-colour: #eb6834; }
.allocator-flow-s2 { --allocator-flow-colour: #1baf7a; }
.allocator-flow-s3 { --allocator-flow-colour: #eda100; }
.allocator-flow-s4 { --allocator-flow-colour: #e87ba4; }
.allocator-flow-s5 { --allocator-flow-colour: #008300; }
.allocator-flow-s6 { --allocator-flow-colour: #6250d6; }
.allocator-flow-s7 { --allocator-flow-colour: #e34948; }
.allocator-flow-s-other { --allocator-flow-colour: #898781; }
.allocator-flow-totals { font-size: 14px; color: #495057; padding-bottom: 0.4rem; }
/* The Spreads tab's Filters body: the boxed search and the dropdowns on one row. */
.allocator-spreads-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; padding: 0.6rem 0.75rem; }
.allocator-spreads-filters > div:not(.fo-check-search-box) { min-width: 200px; }
.allocator-flow-chart { overflow-x: auto; }
.allocator-flow-svg { display: block; }
.allocator-flow-heading { font-size: 12px; font-weight: 600; letter-spacing: .06em; fill: #250d47; }
.allocator-flow-node { fill: #250d47; cursor: default; }
.allocator-flow-node-stays { fill: #adb5bd; }
.allocator-flow-link { fill: none; stroke: var(--allocator-flow-colour, #250d47); stroke-opacity: .38; }
.allocator-flow-link-stays { stroke: #adb5bd; stroke-opacity: .4; }
.allocator-flow-trace-band { fill: none; stroke: #250d47; stroke-opacity: .6; pointer-events: none; }
.allocator-flow-label { font-size: 14px; fill: #2d2c2f; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.allocator-flow-amount { fill: #495057; }
.allocator-flow-tip { position: fixed; z-index: 1080; pointer-events: none; max-width: 380px; padding: 0.35rem 0.5rem;
                      font-size: 14px; color: #2d2c2f; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem;
                      box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
/* A column's "N others" opens the list of what it holds. */
.allocator-flow-node-others, .allocator-flow-label-others { cursor: pointer; }
.allocator-flow-members-note { font-size: 14px; color: #495057; margin-bottom: 0.5rem; }
.allocator-flow-members-scroll { max-height: 60vh; overflow-y: auto; border: 1px solid #dee2e6; }
.allocator-flow-members-scroll .fo-check-table > thead > :where(tr) > th { top: 0; padding: 6px 8px; }
.allocator-flow-members-scroll .fo-check-table td { font-size: 14px; color: #2d2c2f; padding: 6px 8px; }
.allocator-flow-members-scroll .allocator-flow-members-amount { text-align: right; white-space: nowrap; }
.allocator-flow-members-scroll a { color: #250d47; text-decoration: none; }
.allocator-flow-members-scroll a:hover { color: #e91e63; }

/* Closer ▸ Bookkeeping system ▸ Flow (static/js/closer-bookkeeping-flow.js): Who -> What -> Coded to.
   A band wears its What's colour, a fixed slot per product (finoptimal.closer.bookkeeping_flow
   PRODUCT_SLOTS): the dataviz reference palette, as Allocator's flow; the rest of FinOptimal in the
   brand purple, QuickBooks grey. */
.fo-flow-s0 { --fo-flow-colour: #2a78d6; }
.fo-flow-s1 { --fo-flow-colour: #eb6834; }
.fo-flow-s2 { --fo-flow-colour: #1baf7a; }
.fo-flow-s3 { --fo-flow-colour: #eda100; }
.fo-flow-s4 { --fo-flow-colour: #e87ba4; }
.fo-flow-s5 { --fo-flow-colour: #008300; }
.fo-flow-s6 { --fo-flow-colour: #6250d6; }
.fo-flow-s7 { --fo-flow-colour: #e34948; }
.fo-flow-sfo { --fo-flow-colour: #250d47; }
.fo-flow-sqb { --fo-flow-colour: #898781; }
.fo-flow-sother { --fo-flow-colour: #adb5bd; }
.fo-flow-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin-bottom: 0.75rem; }
.fo-flow-filter { display: flex; flex-direction: column; gap: 4px; }
.fo-flow-summary { font-size: 14px; font-weight: 400; color: #2d2c2f; margin-bottom: 0.25rem; }
.fo-flow-note, .fo-flow-hint { font-size: 14px; font-weight: 400; color: #495057; margin-bottom: 0.5rem; }
.fo-flow-hint { margin: 0.5rem 0 0; }
.fo-flow-kind { white-space: nowrap; }
.fo-flow-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px;
                  vertical-align: -1px; background: var(--fo-flow-colour, #adb5bd); }
.fo-flow-chart { overflow-x: auto; }
.fo-flow-svg { display: block; }
.fo-flow-heading { font-size: 12px; font-weight: 600; letter-spacing: .06em; fill: #250d47; }
.fo-flow-node { fill: #250d47; cursor: pointer; }
.fo-flow-node[class*="fo-flow-s"] { fill: var(--fo-flow-colour, #250d47); }
.fo-flow-node-others, .fo-flow-node-others[class*="fo-flow-s"] { fill: #adb5bd; }
.fo-flow-link { fill: none; stroke: var(--fo-flow-colour, #250d47); stroke-opacity: .38; cursor: pointer;
                transition: stroke-opacity .12s; }
.fo-flow-link:hover, .fo-flow-link.fo-flow-hot { stroke-opacity: .62; }
.fo-flow-link.fo-flow-dim { stroke-opacity: .08; }
.fo-flow-label { font-size: 14px; fill: #2d2c2f; paint-order: stroke; stroke: #fff; stroke-width: 3px;
                 stroke-linejoin: round; cursor: pointer; }
.fo-flow-label:hover { fill: #e91e63; }
.fo-flow-amount { fill: #495057; }
.fo-flow-tip { position: fixed; z-index: 1080; pointer-events: none; max-width: 380px; padding: 0.35rem 0.5rem;
               font-size: 14px; color: #2d2c2f; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem;
               box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.fo-flow-tip-hint { color: #495057; margin-top: 2px; }
.fo-flow-tip-members { margin: 4px 0 0; padding-left: 1rem; }
.fo-flow-message { font-size: 14px; }
.fo-flow-grid-scroll { max-height: var(--fo-check-scroll-h, 60vh); overflow-y: auto; border: 1px solid #dee2e6; }   /* fitted to the window by fo-check-scroll.js */
.fo-flow-grid-scroll .fo-check-table > thead > :where(tr) > th { top: 0; padding: 6px 8px; }
.fo-flow-grid-scroll .fo-check-table td { font-size: 14px; color: #2d2c2f; padding: 6px 8px; }
.fo-flow-grid-row { cursor: pointer; }
.fo-flow-section { font-size: 12px; font-weight: 600; letter-spacing: .06em; fill: #250d47; }
.fo-flow-label-dim { opacity: .35; }
.fo-flow-label-hot { font-weight: 600; }
/* The Map's lines booked: the window picker over the map, the count on a star and on a chip. */
.fo-map-lines-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.5rem; }
/* The label, the dropdown and the status on one centred line: the eyebrow's own margins dropped (Christopher, 2026-11-12). */
.fo-map-lines-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.fo-map-lines-ctl[hidden] { display: none; }
.fo-map-lines-ctl > label.closer-eyebrow { margin: 0; line-height: 1; font-size: 12px; }   /* "Lines booked" at 12px (Christopher, 2026-11-12) */
.fo-map-lines-status { font-size: 14px; color: #495057; }
.fo-map-star-lines { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 3px;
                     font-size: 14px; font-weight: 400; color: #495057; white-space: nowrap; pointer-events: none; }
.fo-map-chip-lines { font-size: 12px; color: #495057; margin-left: 0.35rem; white-space: nowrap; }

/* Closer ▸ Financials ▸ Visual P&L (static/js/closer-fin-visual.js): one band per P&L parent account,
   a block per name sized by its dollars. A name's colour is its kind, from the same dataviz palette
   as the Flow beside it: customer blue, vendor orange, employee green, other names grey. */
.closer-visual-customer { --closer-visual-ink: #2a78d6; --closer-visual-fill: #dfeafa; }
.closer-visual-vendor { --closer-visual-ink: #eb6834; --closer-visual-fill: #fce4da; }
.closer-visual-employee { --closer-visual-ink: #1baf7a; --closer-visual-fill: #d8f1e7; }
.closer-visual-other, .closer-visual-none { --closer-visual-ink: #8a8985; --closer-visual-fill: #ecebe8; }
.closer-visual-others { --closer-visual-ink: #a3a29c; --closer-visual-fill: #e6e5e1; }
.closer-visual { font-size: 14px; color: #2d2c2f; }
.closer-visual-stats { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1.5rem; margin-bottom: 0.75rem; }
.closer-visual-stat-value { font-size: 16px; font-weight: 600; color: #2d2c2f; font-variant-numeric: tabular-nums; }
.closer-visual-stat-period { color: #495057; padding-bottom: 2px; }
.closer-visual-tie { display: inline-flex; align-items: center; padding-bottom: 2px; }
.closer-visual-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-bottom: 0.5rem; color: #495057; }
.closer-visual-key { display: inline-flex; align-items: center; gap: 6px; }
.closer-visual-swatch { width: 18px; height: 12px; border-radius: 3px; border: 1.5px solid var(--closer-visual-ink, #8a8985);
                        background: var(--closer-visual-fill, #ecebe8); }
.closer-visual-swatch.closer-visual-none { background: repeating-linear-gradient(135deg, #ecebe8 0 4px, #fff 4px 6px); }
.closer-visual-swatch.closer-visual-contra-key { border-style: dashed; border-color: #dc3545; background: #fff; }
.closer-visual-section { display: flex; align-items: baseline; gap: 10px; padding: 8px 0 4px; border-bottom: 1px solid #dee2e6; margin-bottom: 6px; }
.closer-visual-section-major { border-bottom: 2px solid #250d47; margin-top: 6px; }
.closer-visual-section-amt { color: #495057; font-variant-numeric: tabular-nums; }
.closer-visual-axis { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; }
.closer-visual-axis-net { font-weight: 600; font-variant-numeric: tabular-nums; }
.closer-visual-axis-line { flex: 1; border-top: 2px dashed #dee2e6; }
.closer-visual-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; align-items: start; padding: 5px 0; }
.closer-visual-row-label { min-width: 0; }
.closer-visual-row-name { display: block; font-weight: 600; color: #250d47; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.closer-visual-row-meta { color: #495057; font-variant-numeric: tabular-nums; }
.closer-visual-row-credit { font-size: 14px; }
.closer-visual-row-body { position: relative; min-width: 0; }
.closer-visual-strip { display: flex; gap: 2px; height: 44px; }
.closer-visual-band { position: relative; }
.closer-visual-tile { flex: none; height: 100%; overflow: hidden; cursor: pointer; border-radius: 6px; padding: 3px 6px 0;
                      border: 1.5px solid var(--closer-visual-ink, #8a8985); border-top-width: 4px;
                      background: var(--closer-visual-fill, #ecebe8); }
.closer-visual-band .closer-visual-tile { position: absolute; padding: 4px 7px 0; }
.closer-visual-tile:hover, .closer-visual-tile:focus-visible { outline: 2px solid #e91e63; outline-offset: 1px; filter: brightness(.96); }
.closer-visual-tile.closer-visual-none { background: repeating-linear-gradient(135deg, #ecebe8 0 6px, #fff 6px 9px); }
.closer-visual-tile.closer-visual-thin { padding: 0; border-width: 1px; border-top-width: 3px; }
.closer-visual-t1 { display: block; font-weight: 600; color: #2d2c2f; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.closer-visual-t2 { display: block; color: #495057; line-height: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.closer-visual-band .closer-visual-t1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.closer-visual-band .closer-visual-small .closer-visual-t1 { -webkit-line-clamp: 1; }
.closer-visual-contra { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 10px;
                        overflow: hidden; white-space: nowrap; cursor: pointer; color: #495057; border: 1.5px dashed #dc3545;
                        border-radius: 6px; background: repeating-linear-gradient(45deg, #fff 0 6px, #fbe9eb 6px 9px); }
.closer-visual-contra strong { font-variant-numeric: tabular-nums; }
.closer-visual-contra:hover, .closer-visual-contra:focus-visible { outline: 2px solid #e91e63; }
.closer-visual-empty { margin: 1rem 0; color: #495057; }
.closer-visual-tip { position: fixed; z-index: 1080; pointer-events: none; max-width: 340px; padding: 10px 12px; font-size: 14px;
                     color: #2d2c2f; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem;
                     box-shadow: 0 6px 24px rgba(37, 13, 71, .16); }
.closer-visual-tip-amt { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.closer-visual-tip-name { font-weight: 600; color: #250d47; }
.closer-visual-tip-key { display: inline-block; width: 14px; margin-right: 6px; vertical-align: middle;
                         border-top: 3px solid var(--closer-visual-ink, #8a8985); border-radius: 2px; }
.closer-visual-tip-meta, .closer-visual-tip-hint { color: #495057; }
.closer-visual-tip-hint { margin-top: 6px; }
.closer-visual-tip-list { margin: 6px 0 0; padding: 0; list-style: none; }
.closer-visual-tip-list li { display: flex; justify-content: space-between; gap: 14px; white-space: nowrap; }
.closer-visual-tip-list li span:first-child { overflow: hidden; text-overflow: ellipsis; }
.closer-visual-tip-list li span:last-child { color: #495057; font-variant-numeric: tabular-nums; }
.closer-visual-spark { display: block; margin-top: 6px; }
.closer-visual-spark-window { fill: #e7f1ff; }
.closer-visual-spark-bar { fill: var(--closer-visual-ink, #8a8985); }
.closer-visual-spark-neg { fill: #dc3545; }
.closer-visual-spark-label { font-size: 14px; fill: #495057; }
/* An "N others" block's list: a panel on the right, under the drill-down it opens (z-index 1070). */
.closer-visual-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1060; display: flex; flex-direction: column;
                       width: min(420px, 100vw); font-size: 14px; color: #2d2c2f; background: #fff;
                       box-shadow: 0 6px 24px rgba(37, 13, 71, .16); }
.closer-visual-panel[hidden] { display: none; }
.closer-visual-panel-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 0; }
.closer-visual-panel-title { flex: 1; margin: 0; font-size: 14px; font-weight: 600; color: #250d47; }
.closer-visual-panel-sub { margin: 2px 16px 0; color: #495057; }
.closer-visual-panel-search { flex: none; margin: 10px 16px; }
.closer-visual-panel-list { flex: 1; overflow-y: auto; border-top: 1px solid #dee2e6; }
.closer-visual-panel-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 6px 16px;
                            cursor: pointer; border-bottom: 1px solid #dee2e6; }
.closer-visual-panel-item:hover, .closer-visual-panel-item:focus-visible { background: #e7f1ff; outline: none; }
.closer-visual-panel-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.closer-visual-panel-amt { text-align: right; font-variant-numeric: tabular-nums; }
.closer-visual-panel-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--closer-visual-ink, #8a8985); }
.closer-visual-acct { border-bottom: 1px solid #dee2e6; }
.closer-visual-acct summary { display: flex; align-items: baseline; gap: 10px; padding: 8px 2px; cursor: pointer; list-style: none; }
.closer-visual-acct summary::-webkit-details-marker { display: none; }
.closer-visual-caret { color: #250d47; transition: transform .15s; }
.closer-visual-acct[open] .closer-visual-caret { transform: rotate(90deg); }
.closer-visual-acct-name { font-weight: 600; color: #250d47; }
.closer-visual-acct-meta { color: #495057; }
.closer-visual-acct-amt { margin-left: auto; font-variant-numeric: tabular-nums; }
.closer-visual-names { margin: 4px 0 10px; }
.closer-visual-names td { font-size: 14px; color: #2d2c2f; }
.closer-visual-num, .closer-visual-names th.closer-visual-num { text-align: right; font-variant-numeric: tabular-nums; }
.closer-visual-name-row { cursor: pointer; }
@media (max-width: 720px) {
    .closer-visual-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.allocation-node-child {
  margin: 4px 0 4px 24px;
  border-left: 2px dashed #ccc;
  padding-left: 12px;
}

.allocation-node-edge {
  color: #6c757d;
  font-size: 0.85em;
  margin: 2px 0 6px;
}

.allocation-leaves {
  margin-top: 20px;
}

/* Inter workflow list: long workflow / report-view names (e.g. "Friends of Hebrew Language Academy 2
   (FOHLA2) Charter Schools, Inc.") wrap inside their capped cell instead of running into the next.
   `.table td` (site-bootstrap.css) sets nowrap at (0,1,1), so a bare class loses. */
.table td.inter-wrap-cell {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Inter › Tracks / Tie-Out tabs (templates/intercompany/includes/reports/, js/intercompany/reports.js) */
.inter-report-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}
.inter-report-controls label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.inter-report-table td,
.inter-report-table th {
    white-space: nowrap;
}
.inter-status {
    border-radius: 0.25rem;
    padding: 0.05rem 0.35rem;
}
.inter-status-booked {
    color: #16a34a;
}
.inter-status-pending {
    color: #6c757d;
}
.inter-status-problem {
    color: #b91c1c;
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Entry edit grid (assets/javascript/editors/EntryEditGrid.tsx) — staged edits
   to QBO transactions: the Closer drill-down, the Sheetless Editor.
   --------------------------------------------------------------------------- */
.fo-edit-grid-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.4rem;
    background: #f5f4fb;
    border: 1px solid #e4e1f2;
    border-radius: 0.4rem;
    font-size: 14px;
}

.fo-edit-grid-bulk { display: flex; align-items: center; gap: 0.4rem; margin: 0; }
.fo-edit-grid-bulk-label { color: #55596a; white-space: nowrap; }
.fo-edit-grid-bulk .form-select { width: auto; }
.fo-edit-grid-bulk-value { min-width: 14rem; }
.fo-edit-grid-bulk-column { min-width: 12rem; }
/* One height and one centre line across the bar (Jesse, 2026-10-04): the column picker, the search
   box and every button sit on the same 29px track (the standard small button and input) — the theme's
   .btn margins and padding pushed the buttons taller and the search text low. */
.fo-edit-grid-bar .btn,
.fo-edit-grid-bar .fo-edit-grid-search,
.fo-edit-grid-bar .fo-edit-grid-bulk-value.form-control,
.fo-edit-grid-bulk-column .rec-combo-trigger {
    height: 29px;
    margin: 0;
}
.fo-edit-grid-bar .btn:not(.btn-link) {
    display: inline-flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}
.fo-edit-grid-bar .fo-edit-grid-search { padding-top: 0; padding-bottom: 0; line-height: 29px; }

/* Flag for client: the selected rows onto a Closer client question (Jesse, 2026-10-04). */
.fo-edit-grid-flag-panel {
    margin: 0.4rem 0;
    padding: 0.6rem 0.75rem;
    background: #f7f5fb;
    border: 1px solid #ddd6ea;
    border-radius: 0.4rem;
    font-size: 14px;
}
.fo-edit-grid-flag-head { font-weight: 600; color: #250d47; margin-bottom: 0.35rem; }
.fo-edit-grid-flag-choice { display: flex; align-items: baseline; gap: 0.45rem; margin: 0.15rem 0; cursor: pointer; }
.fo-edit-grid-flag-text { margin: 0.25rem 0 0.4rem 1.4rem; width: calc(100% - 1.4rem); }
.fo-edit-grid-flag-count { display: inline; margin-left: 0.4rem; }
.fo-edit-grid-flag-actions { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.45rem; }

/* A locked line's 🔒 opens its why and the Booker sheet to change instead (Jesse, 2026-10-04). */
.fo-edit-grid-lock { position: relative; display: inline-block; }
.fo-edit-grid-lock .fo-edit-grid-lock-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.fo-edit-grid-lock .fo-edit-grid-lock-btn:has(.fa-lock) { color: #495057; }   /* locked is a fact, not an error; the red stays on the cannot-delete ban */
.fo-edit-grid-lock-note {
    position: absolute;
    right: 0;
    top: 1.4rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 20rem;
    padding: 0.55rem 0.7rem;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    color: #250d47;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.14);
}
.fo-edit-grid-lock-links a { font-weight: 600; }

/* A row already on a live client question: its number, by status. */
.fo-edit-grid-cq {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.02rem 0.35rem;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0.3rem;
    color: #250d47;
    background: #ece9f1;
    white-space: nowrap;
}
.fo-edit-grid-cq-asked { color: #7a5b00; background: #fff4d6; }
.fo-edit-grid-cq-answered { color: #1b5e20; background: #e3f4e4; }
.fo-edit-grid-cq:hover { text-decoration: none; filter: brightness(0.95); }

/* Each transaction starts under a rule; its lines share one stripe (see entryGroups). */
.fo-edit-grid-table tr.fo-edit-grid-entry-start > td { border-top: 2px solid #b9b0d3; }
.fo-edit-grid-spacer { flex: 1; }
.fo-edit-grid-count { color: #3d2c6b; font-weight: 600; white-space: nowrap; }

.fo-edit-grid-note { font-size: 14px; padding: 0.25rem 0.6rem 0.45rem; }
.fo-edit-grid-note-ok { color: #1f7a3a; }
.fo-edit-grid-note-bad { color: #b42318; }

.fo-edit-grid-table { font-size: 14px; }
.fo-edit-grid-pick { width: 1.6rem; }
.fo-edit-grid-del { width: 2rem; text-align: center; }
.fo-edit-grid-sub { display: block; font-size: 14px; color: #495057; }
/* What happened to a changed line ("new", "changed", "moved to …"): words under
   its ID, hot pink like the row's highlight — not a chip (Jesse, 2026-10-14:
   the yellow one was too small and read as the Reconciler chip). */
.fo-edit-grid-flag {
    display: block;
    margin-top: 0.15rem;
    font-size: 14px;
    font-weight: 600;
    color: #e91e63;
}
.fo-edit-grid-err { font-size: 14px; color: #b42318; margin-top: 0.15rem; }
.fo-edit-grid-cell-moved { background: #f3f7ff; }
.fo-edit-grid-flag-more { font-weight: 600; }
.fo-edit-grid-was { color: #c2410c; }   /* what it was: orange */
.fo-edit-grid-now { color: #1f7a3a; }   /* what it is now: green */
.fo-edit-grid-textarea { min-height: 1.9rem; resize: vertical; }
.fo-edit-grid-table td, .fo-edit-grid-table th { padding: 0.25rem 0.4rem; vertical-align: top; line-height: 1.25; }
/* The table standard: rules between rows only (#dee2e6), no frame or column rules. */
.fo-edit-grid-table > :not(caption) > * > * { border-width: 0 0 1px; border-color: #dee2e6; }
.fo-edit-grid-flag { margin-top: 0.05rem; }
.fo-edit-grid-total { color: #3d2c6b; font-weight: 600; }
.fo-edit-grid-cell-was { color: #55596a; background: #f7f7fa; }
.fo-edit-grid-asof .btn { font-size: 0.72rem; padding: 0.15rem 0.55rem; }

.fo-edit-grid-badge {
    display: inline-block;
    padding: 0.05rem 0.45rem;
    font-size: 12px;
    border-radius: 0.3rem;
    white-space: nowrap;
}
.fo-edit-grid-badge-warn { color: #5b4a00; background: #fbefc7; }
.fo-edit-grid-badge-locked { color: #7a1f1f; background: #fde2e2; }
/* Booked by FinOptimal, free to edit (a chat, a skill, an MCP call): the chip set's neutral
   (closer-status-new). A long name ("Skill: Book Amex & UMB Activity") ends in an ellipsis;
   the cell's hover line has it whole. */
.fo-edit-grid-badge-free { color: #250d47; background: #ece9f1; }
.fo-edit-grid-owner .fo-edit-grid-badge {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
/* A chip that opens what booked the entry: the app's link hover. */
a.fo-edit-grid-badge-link { text-decoration: none; cursor: pointer; }
a.fo-edit-grid-badge-link:hover { color: #e91e63; text-decoration: none; }

.fo-edit-grid-cell { cursor: pointer; }
.fo-edit-grid-cell:hover { background: #e7f1ff; }
.fo-edit-grid-cell-blocked { cursor: not-allowed; color: #8a8f9c; }
.fo-edit-grid-cell-blocked:hover { background: transparent; }
/* No edit permission: the same table, nothing to click. */
.fo-edit-grid-cell-readonly { cursor: default; }
.fo-edit-grid-cell-readonly:hover { background: transparent; }
/* The Amount total sits under the header label on the brand-purple head. */
.fo-edit-grid-table thead .fo-edit-grid-total { color: #fff; opacity: 0.85; }
.fo-edit-grid-cell-editing { cursor: default; padding: 0.1rem; min-width: 12rem; }
/* The cell being edited must not clip: its pick list opens below it, and the
   one-line truncation every other cell uses (.fo-edit-grid-cell) hid all of
   the list but the search box. */
.fo-edit-grid-table .fo-edit-grid-cell.fo-edit-grid-cell-editing { overflow: visible; max-width: none; }
.fo-edit-grid-cell-staged { background: #fff9e6; }
/* A cell wraps within its width rather than clipping: every row is already three
   lines tall (the Transaction cell's type and ID lines), so a description clipped
   to one line wasted that room (Jesse, 2026-10-23, reversing the one-line clip of
   2026-09-22). Money and dates keep text-nowrap; nothing overruns its neighbour.
   Scoped to the table to outrank the theme's `.table td { white-space: nowrap }`. */
.fo-edit-grid-cell { max-width: 20rem; }
.fo-edit-grid-table .fo-edit-grid-cell { white-space: normal; overflow-wrap: anywhere; }
.fo-edit-grid-cell > .fo-edit-grid-sub,
.fo-edit-grid-cell > .fo-edit-grid-clip > .fo-edit-grid-sub { overflow: hidden; text-overflow: ellipsis; }
.fo-edit-grid-table { width: 100%; }
.fo-edit-grid-scroll { overflow-x: auto; }
/* Transaction Views: the filters fold to one line (2026-09-25). */
.fo-filters-chip { float: right; background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff; border-radius: 1rem; font-size: 12px; padding: 0.05rem 0.6rem; }
.fo-filters-collapsed { display: flex; align-items: center; gap: 0.75rem; }
.fo-filters-collapsed .fo-filters-summary { flex: 1; padding: 0.4rem 0.75rem; font-size: 14px; color: #55596a; }
.fo-filters-collapsed .report-buttons-container { flex: 1 1 auto; width: auto; max-width: none; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.25rem; padding: 0.35rem 0.5rem; }
/* One row, no 20px tops: the folded bar is there to give the rows the room. */
#magic-reports-app .fo-filters-collapsed .report-buttons-container button { margin-top: 0; margin-bottom: 0; }
/* Search, review / results, deleted accounts (2026-09-25). */
.fo-edit-grid-search { width: 14rem; border: 1px solid #d2d6da; background-color: #fff; }
.fo-edit-grid-count.btn-link { text-decoration: none; padding: 0; }
.fo-edit-grid-review { border: 1px solid #e3e1ee; border-radius: 0.375rem; background: #fbfaff; padding: 0.4rem 0.6rem; margin: 0.3rem 0 0.5rem; font-size: 14px; max-height: 18rem; overflow-y: auto; }
.fo-edit-grid-review-block + .fo-edit-grid-review-block { margin-top: 0.5rem; border-top: 1px solid #e3e1ee; padding-top: 0.4rem; }
.fo-edit-grid-review-head { font-weight: 600; color: #3d2c6b; display: flex; align-items: center; gap: 0.5rem; }
.fo-edit-grid-review-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; padding: 0.15rem 0; }
.fo-edit-grid-review-mark { width: 1rem; text-align: center; }
.fo-edit-grid-review-title { font-weight: 600; }
.fo-edit-grid-review-origin { font-weight: 400; color: #495057; }
.fo-edit-grid-review-detail { color: #55596a; }
.fo-edit-grid-review-error { color: #b42318; flex-basis: 100%; padding-left: 1.5rem; }
.fo-edit-grid-review-applied .fo-edit-grid-review-mark { color: #1f7a3a; }
.fo-edit-grid-review-refused .fo-edit-grid-review-mark { color: #b42318; }
.fo-edit-grid-hidden-staged { font-size: 14px; color: #3d2c6b; margin-top: 0.1rem; white-space: normal; }
.fo-edit-grid-table .fo-edit-grid-cell-inactive { color: #b42318; text-decoration: line-through dotted; }
/* Nothing on this transaction can change (a deleted paid-from account, a Booker-owned row): muted, reason on hover. */
.fo-edit-grid-table .fo-edit-grid-row-locked td { color: #495057; }   /* locked reads by its lock icon; the text stays legible */
.fo-edit-grid-trash-blocked { color: #b42318; opacity: 0.7; cursor: help; }
.fo-edit-grid-before { color: #8a8f9c; }
.fo-edit-grid-after { color: #3d2c6b; font-weight: 600; }
.fo-edit-grid-undo {
    margin-left: 0.3rem;
    padding: 0 0.3rem;
    font-size: 14px;
    line-height: 1;
    color: #495057;
    background: transparent;
    border: 0;
}
.fo-edit-grid-undo:hover { color: #b42318; }
/* Amount and number edits (2026-10-13): what the transaction adds up to after them — out of
   balance, money applied to it, a number another transaction has. Amber, the pending family. */
.fo-edit-grid-warn { font-size: 14px; color: #b26a00; margin-top: 0.15rem; white-space: normal; }
/* An editable cell at rest leads with a pencil, so it reads as editable; the control it opens has none
   (Christopher, 2026-10-22). */
.fo-edit-grid-cell-pencil { margin-right: .35rem; font-size: 14px; color: #495057; }
.fo-edit-grid-cell:hover .fo-edit-grid-cell-pencil { color: #e91e63; }
/* The drill's Description cell edits two columns (TM-2540): the part under the pointer turns hot pink, and
   the column neither part shows (a memo to add, a line description not written yet) is offered on hover only. */
.fo-edit-grid-cell:not(.fo-edit-grid-cell-readonly) .fo-edit-grid-desc-part:hover { color: #e91e63; }
.fo-edit-grid-cell:not(:hover) .fo-edit-grid-desc-add { display: none !important; }
/* The number's pencil shows on the row under the pointer; a disabled one says why on hover. */
.fo-edit-grid-pen {
    margin-left: 0.25rem;
    padding: 0 0.2rem;
    font-size: 14px;
    line-height: 1;
    color: #8a8f9c;
    background: transparent;
    border: 0;
    visibility: hidden;
}
.fo-edit-grid-table tr:hover .fo-edit-grid-pen { visibility: visible; }
.fo-edit-grid-pen:hover:not(:disabled) { color: #e91e63; }
.fo-edit-grid-pen:disabled { opacity: 0.45; cursor: help; pointer-events: auto; }
.fo-edit-grid-amount-input { text-align: right; min-width: 7.5rem; }
.fo-edit-grid-number-input { min-width: 8rem; }
.fo-edit-grid-date-input { min-width: 8.5rem; }

.fo-edit-grid-trash { background: transparent; border: 0; opacity: 0.35; font-size: 0.9rem; }
.fo-edit-grid-trash:hover, .fo-edit-grid-trash-on { opacity: 1; }
.fo-edit-grid-row-del td { text-decoration: line-through; color: #8a8f9c; }
.fo-edit-grid-row-del td.fo-edit-grid-del { text-decoration: none; }
.fo-edit-grid-row-err td { background: #fff5f5; }
/* "+ New transaction": the Reconciler booking row's boxes, above the staged-creates box. */
.fo-new-entry { border: 1px solid #c9e7d2; background: #f4fbf6; border-radius: 0.375rem; padding: 0.5rem 0.6rem; margin: 0.4rem 0; }
.fo-new-entry-head { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; margin-bottom: 0.4rem; }
.fo-new-entry-box { display: flex; flex-direction: column; gap: 0.1rem; margin: 0; min-width: 8rem; }
.fo-new-entry-box > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; }   /* the caps label, above its control */
.fo-new-entry-box-wide { min-width: 16rem; }
.fo-new-entry-lines { font-size: 14px; margin-bottom: 0.3rem; background: #fff; }
/* The table standard: the dark purple head with white 12px text, rules between rows only. */
.fo-new-entry-lines thead th { font-size: 12px; font-weight: 600; color: #fff; background: #250d47; border: 0; padding: .35rem .3rem; }
.fo-new-entry-lines > tbody > tr > td { border-width: 0 0 1px; border-color: #dee2e6; }
.fo-new-entry-lines td { padding: 0.2rem 0.3rem; vertical-align: middle; }
.fo-new-entry-lines td .rec-combo { min-width: 9rem; }
.fo-new-entry-account { min-width: 16rem; }
.fo-new-entry-amount { width: 9rem; }
.fo-new-entry-foot { display: flex; align-items: center; gap: 0.5rem; }
.fo-new-entry-total { color: #250d47; font-weight: 600; font-size: 14px; }
.fo-new-entry-hint { color: #495057; font-size: 14px; }
/* In the footer, the note's uneven grid padding lifted it 1.7px off STAGE and CANCEL's centre line (Christopher, 2026-10-26). */
.fo-new-entry-foot > .fo-edit-grid-note { padding-top: 0; padding-bottom: 0; }
/* Members tables: the Notify / Can-edit checkbox columns keep their label on one line. */
.fo-member-check { white-space: nowrap; min-width: 6.5rem; }
.fo-member-check .form-check { display: flex; align-items: center; gap: 0.3rem; margin: 0; }
/* Client Members: each header centred over its column of boxes (Jesse, 2026-10-18). */
#client-members-table .fo-member-check { text-align: center; }
#client-members-table .fo-member-check .form-check { justify-content: center; }
/* The theme's form-check gives the box a -1.73em left margin that outranks m-0: it pulled every box
   27px left of its header. */
#client-members-table .fo-member-check .form-check-input { margin-left: 0 !important; }
.fo-member-check .form-check-input { float: none; margin: 0 !important; }
/* Members page access switches: a box an admin changed from the role's default (teams/roles.access_cells). */
.fo-access-chosen .form-check-input { outline: 2px solid #e91e63; outline-offset: 1px; }
.fo-invite-open { margin: 0 0 0.6rem; }
.fo-new-entry-hint-line { font-size: 14px; color: #495057; margin: 0 0 0.25rem; }
/* The report page draws its own inputs borderless; the draft's boxes need to read as boxes. */
/* The input standard: 29px, 12px, white, light grey border; the ComboBoxes match. */
.fo-new-entry .form-control, .fo-new-entry .form-select { height: 29px; font-size: 14px; border: 1px solid lightgray; border-radius: .375rem; background-color: #fff; color: #2d2c2f; }
.fo-new-entry .rec-combo-trigger { height: 29px; font-size: 14px; border: 1px solid lightgray; border-radius: .375rem; background: #fff; color: #2d2c2f; padding: 0 8px; }
/* A ticked row: the selected light blue (the armed / staged-delete / error rows below keep theirs). */
.fo-edit-grid-table tr:has(> td.fo-edit-grid-pick input:checked):not(.fo-edit-grid-row-armed):not(.fo-edit-grid-row-del):not(.fo-edit-grid-row-err):not(.closer-fin-live-changed) > td:not(.fo-edit-grid-cell-staged) { background: #cfe2ff; }
/* Closer's check rows: the light blue hover. */
.fo-check-table > tbody > tr.fo-check-row:hover > td { background: #e7f1ff; }
/* First trash click: every line of the transaction goes red until the
   second click (stage the delete), Esc, or a click elsewhere. */
.fo-edit-grid-row-armed td { background: #fde2e2; color: #7a1f1f; }
.fo-edit-grid-trash-armed { opacity: 1; color: #fff; background: #b42318; border-radius: 0.25rem;
  font-size: 14px; font-weight: 600; padding: 0.1rem 0.4rem; white-space: nowrap; }
/* A staged delete: every line of the transaction, struck and tinted. */
.fo-edit-grid-row-del td { background: #fff1f1; }
.fo-edit-grid-row-ghost td { color: #8a8f9c; font-style: italic; }
/* The marker past the drawn rows of a long drill-down: scrolling to it draws more. */
.fo-edit-grid-more td { text-align: center; color: #495057; font-size: 14px; }
/* The drill's Balance / Running total column and its Beginning / Ending
   balance rows (Jesse, 2026-10-15). */
td.fo-edit-grid-running { color: #495057; }
.fo-edit-grid-balance-row > td { background: #f8f9fa; color: #2d2c2f; font-weight: 600; }
.fo-edit-grid-balance-begin > td { border-bottom: 1px solid #dee2e6; }
.fo-edit-grid-balance-end > td { border-top: 1px solid #dee2e6; }
/* The fixed footer under the scroller with the "draw them all" control (the marker
   row inside the table runs away as it draws, so it can't hold the button). */
.fo-edit-grid-drawn { flex: 0 0 auto; text-align: center; padding: .2rem 0; border-top: 1px solid #dee2e6; background: #fff; }
.fo-edit-grid-drawn .fo-edit-grid-drawn-all { font-size: 14px; color: #250d47; text-decoration: none; }
.fo-edit-grid-drawn .fo-edit-grid-drawn-all:hover { color: #e91e63; }
/* A drill row's transaction number opens that transaction by itself (a link, or a button
   styled as one when QuickBooks gave no deep link). */
.fo-edit-grid-open-entry { cursor: pointer; display: block; }
a.fo-edit-grid-open-entry:hover { text-decoration: none; }
button.fo-edit-grid-open-entry { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font: inherit; }
/* A Name cell's way into the name (its entries + details panel): the brand link colours. */
.fo-edit-grid-open-name { border: 0; background: none; padding: 0 5px 0 0; color: #250d47; font-size: 14px; line-height: 1; cursor: pointer; vertical-align: baseline; }
.fo-edit-grid-open-name:hover, .fo-edit-grid-open-name:focus-visible { color: #e91e63; }
/* The single-transaction modal sizes to the transaction (Jesse, 2026-10-07: "the modal shouldn't
   be that big if the transaction isn't that big"): no width floor past the table's own, no
   viewport floor, up to 90% of the window with the rows scrolling inside. */
.closer-fin-drillx-wide.closer-fin-drillx-fit { min-width: min(40rem, 96vw); max-height: 90vh; }
.closer-fin-drillx-fit .closer-fin-drillx-grid .fo-edit-grid > .fo-edit-grid-viewport { min-height: 0; }
/* Every list drill opens compact, a month's figure and a Total's alike, at a width set before it reads
   anything, so it doesn't open blank at one size and jump to another (Jesse, 2026-11-10, TM-2290). Its
   height follows its lines, up to the window; Full size (the dragged size) is a click away. */
.closer-fin-drillx-wide.closer-fin-drillx-short { width: min(85rem, 96vw); min-width: 0; }
.closer-fin-drillx-short .closer-fin-drillx-grid .fo-edit-grid > .fo-edit-grid-viewport { min-height: 0; }
/* An aging cell's open transactions (2026-10-15): the drill grid's table, read-only. */
.closer-fin-aging-drill { font-size: 14px; margin-bottom: 0; }
.closer-fin-aging-drill td { color: #2d2c2f; }
.closer-fin-aging-drill th { white-space: nowrap; }
/* The drill's window, From / to a month (Jesse, 2026-10-15). */
/* The From / to month pickers (static/js/closer-fin-range.js): the drill's window, the period control's range. */
.closer-fin-range { display: inline-flex; align-items: center; gap: .35rem; }
/* A drill's error (the drill-down, a name's card): one size and one red, wherever it lands. */
.closer-fin-drill-error { font-size: 14px; color: #dc3545; }
.closer-fin-range .fo-combobox,
.closer-fin-range .rec-combo { min-width: 6.5rem; }
.closer-fin-range .rec-combo-trigger { height: 29px; font-size: 14px; border: 1px solid lightgray; border-radius: .375rem; background: #fff; color: #2d2c2f; padding: 0 8px; }
.closer-fin-drillx-qbo { white-space: nowrap; }
.closer-fin-drillx-back { margin-right: 8px; white-space: nowrap; }

/* The drill's Linked column (Jesse, 2026-10-13): a line's linked QuickBooks transactions, as
   links; one pulls out in the drawer under the drill, and its link reads as the open one. */
/* Every link stays reachable: the cell wraps (an invoice can bill a dozen expenses), where every
   other cell truncates to one line. */
.fo-edit-grid-table .fo-edit-grid-cell.fo-edit-grid-linked-cell { white-space: normal; text-overflow: clip; }
.fo-edit-grid-linked { display: inline-block; margin-right: .5rem; color: #250d47; text-decoration: none; white-space: nowrap; }
a.fo-edit-grid-linked:hover, button.fo-edit-grid-linked:hover { color: #e91e63; text-decoration: none; }
button.fo-edit-grid-linked { border: 0; background: none; padding: 0; font: inherit; }
.fo-edit-grid-linked-missing { color: #495057; cursor: default; }
.fo-edit-grid-linked.fo-edit-grid-linked-active { color: #e91e63; font-weight: 600; }

/* The drill's Attachments column (Jesse, 2026-10-27): a transaction's QuickBooks files, as links
   that open in the preview pop-up below; a long file name ends in an ellipsis (its title has it). */
.fo-edit-grid-linked.fo-edit-grid-attachment { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
/* The preview pop-up (editors/openAttachmentPreview.ts): a drill card the file fills. */
.closer-fin-drillx-wide.fo-attachment-card { width: min(64rem, 96vw); height: 88vh; max-height: 88vh; }
.fo-attachment-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fo-attachment-meta { color: #495057; white-space: nowrap; }
.closer-fin-drillx-wide .closer-fin-drillx-body.fo-attachment-body {
    position: relative; padding: 0; background: #f8f9fa; border-radius: 0 0 .6rem .6rem;
}
.fo-attachment-frame { display: block; width: 100%; height: 100%; border: 0; }
.fo-attachment-img { display: block; max-width: 100%; height: auto; margin: 1rem auto; background: #fff; }
.fo-attachment-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #fff; }
.fo-attachment-none { margin: 2rem 1rem; text-align: center; font-weight: 400; color: #2d2c2f; }

/* The linked-transaction drawers (Jesse, 2026-10-13: "a drawer that comes out of the bottom of
   this", then "a FURTHER drawer ... so I see the WHOLE chain of events"): the drill card grows
   downward, one drawer per hop under the transaction it was opened from, each at its own height.
   Past 92% of the window the card scrolls, its head pinned; a drawer's table scrolls inside it
   past 40% of the window, or at whatever height its pink top edge is dragged to. */
.closer-fin-drillx.closer-fin-drillx-split { max-height: 92vh; overflow-y: auto; }
.closer-fin-drillx.closer-fin-drillx-split > .closer-fin-drillx-head { position: sticky; top: 0; z-index: 4; background: #fff; }
.closer-fin-drillx.closer-fin-drillx-split > .closer-fin-drillx-body { flex: none; }
.closer-fin-drillx.closer-fin-drillx-split .fo-edit-grid-viewport { min-height: 0; }
.closer-fin-drillx.closer-fin-drillx-split .closer-fin-drillx-grid .fo-edit-grid-viewport > .fo-edit-grid-scroll { max-height: 40vh; }
.closer-fin-drillx.closer-fin-drillx-split .fo-linked-drawer-sized .closer-fin-drillx-grid .fo-edit-grid-viewport > .fo-edit-grid-scroll { max-height: none; }
.fo-linked-drawer {
    flex: none;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 3px solid #e91e63;
    background: #fff;
    box-shadow: 0 -.5rem 1rem rgba(37, 13, 71, .08);
    animation: fo-linked-drawer-out .22s ease-out;
}
@keyframes fo-linked-drawer-out {
    from { clip-path: inset(0 0 100% 0); transform: translateY(-.75rem); opacity: .4; }
    to { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .fo-linked-drawer { animation: none; }
}
.fo-linked-drawer-grip {
    position: absolute;
    top: -9px;
    left: 0;
    right: 0;
    height: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: ns-resize;
    touch-action: none;
    z-index: 3;
}
.fo-linked-drawer-handle {
    width: 2.75rem;
    height: 5px;
    border-radius: 3px;
    background: #e91e63;
    box-shadow: 0 0 0 2px #fff;
}
.fo-linked-drawer-head { background: #f8f9fa; }
/* Its HISTORY label (10px), title (14px) and "5 versions" (12px) share a baseline: centred, the three
   sizes' baselines sat at three heights (Christopher, 2026-10-22). The close control stays centred. */
.closer-fin-drillx-head.fo-linked-drawer-head { align-items: baseline; }
.closer-fin-drillx-head.fo-linked-drawer-head > .closer-fin-drillx-ctl { align-self: center; }
.closer-eyebrow.fo-linked-drawer-eyebrow { color: #e91e63; }
.fo-linked-drawer-from { font-size: 14px; color: #495057; }
.fo-linked-drawer .closer-fin-drillx-body { flex: 1 1 auto; min-height: 0; }

/* ── Closer Financials: snapshot DIFF mode (Eric Cohen, 2026-09-23) ──────
   The tables are newer − older of two captures, read like a statement:
   dashes where nothing moved, the cells that did move highlighted. The
   mode has to be unmistakable, so the header band and pinned corners turn
   teal, the statement region gets a dashed teal frame, and the version
   tools that only make sense for one capture (flux thresholds, XLSX,
   rename / delete) step aside. */
.closer-fin-diff-dd { display: inline-block; }
/* Compare menu: another month's capture names its month (the label is the
   capture time — July's close taken on Aug 27 read as an August version). */
.closer-diffpick-month { font-weight: 600; color: #e91e63; }

.closer-fin-diff-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .2rem .35rem .2rem .65rem;
    border-radius: .4rem;
    background: #e3f2fd;   /* compare mode in Bootstrap's blue (was teal) */
    color: #2d2c2f;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.closer-fin-diff-pill[hidden] { display: none; }
/* The LIVE edition (Jesse, 2026-10-08): the version button wears the bolt and
   the latest QuickBooks change; the change chip beside it (and the GL pane's
   twin) walks pulling → ready (click to show) → gone, or error. */
.btn.closer-fin-live-btn,
.btn.closer-fin-live-btn:hover,
.btn.closer-fin-live-btn:focus,
.btn.closer-fin-live-btn.show {
    background: #dff3e6;
    color: #156a3c;
    border-color: #9fd8b4;
    font-weight: 600;
}
.btn.closer-fin-live-btn small { font-weight: 400; opacity: .85; font-size: 12px; }   /* "QUICKBOOKS AS OF …" at 12px (Christopher, 2026-11-12) */
.closer-snapver-row.closer-snapver-live .dropdown-item { color: #156a3c; font-weight: 600; }
.closer-snapver-row.closer-snapver-live .dropdown-item.active,
.closer-snapver-row.closer-snapver-live.active { background: #dff3e6; }
.closer-snapver-live-asof { font-weight: 400; color: #4a4257; }
/* "Save new snapshot", the version menu's row under Live (Jesse, 2026-10-13). */
.closer-snapver-save-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem 0.45rem;
    border-bottom: 1px solid #ece9f1;
    margin-bottom: 0.25rem;
}
/* Save new snapshot on one line: the menu widens to hold it rather than wrap the button. */
.closer-snapver-save-row .closer-snapver-save { flex: none; white-space: nowrap; }
/* Optional name for the new snapshot, typed before Save (Jesse, 2026-10-14). */
.closer-snapver-save-name {
    flex: 1 1 auto;
    min-width: 12rem;
    height: 29px;
    font-size: 14px;
    background: #fff;
    border: 1px solid lightgray;
    border-radius: .375rem;
}
/* Named / All toggle row in the version menu (Jesse, 2026-10-15). Named only
   hides the unnamed scheduled captures, never the shown version. */
.closer-snapver-filter-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.9rem 0.35rem;
}
.closer-snapver-filter-note { font-size: 14px; color: #495057; }
.closer-snapver-menu.closer-snapver-named-only .closer-snapver-row.closer-snapver-unnamed:not(.active) { display: none; }
/* A capture's progress beside the version menu, only while one runs. */
.closer-fin-capture-status {
    display: inline-flex;
    align-items: center;
    height: 29px;
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}
.closer-fin-capture-status[hidden] { display: none; }
/* The chip is ONE fixed-width status slot (Jesse, 2026-10-12: the toolbar
   bounced as its words changed — the Find box jumped from the far right to the
   middle, Save / month / Live / Diff shifted with it). The slot keeps the same
   width through every state, so nothing beside it moves while a pull runs:
   idle ("Up to date · checked 11:04 AM", quiet) · pulling (amber, the stage on
   hover) · ready (hot pink, pulsing, "Show" as a button — click swaps the held
   statement in) · error (red, "Retry"). Hidden only when the edition on screen
   is a capture or a diff. Words past the slot ellipsize; the hover has them all. */
.closer-fin-live-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
    width: 16.5rem;
    height: 29px;
    padding: 0 .4rem 0 .7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
}
.closer-fin-live-chip[hidden] { display: none; }
.closer-fin-live-chip > .fa,
.closer-fin-live-chip > .spinner-border { flex: 0 0 auto; }
.closer-fin-live-chip > .spinner-border { width: .8rem; height: .8rem; border-width: .14em; }
.closer-fin-live-chip-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The button-ish word at the slot's right edge: Show / Retry. */
.closer-fin-live-chip-act {
    flex: 0 0 auto;
    margin-left: auto;
    padding: .12rem .6rem;
    border-radius: 999px;
    background: #fff;
    color: #e91e63;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}
.closer-fin-live-chip-idle { color: #495057; font-weight: 500; }
.closer-fin-live-chip-idle > .fa { color: #2e9e5c; }
.closer-fin-live-chip-pulling { background: #fff1cf; color: #7a5200; border-color: #f0cf6e; }
.closer-fin-live-chip-ready {
    background: #e91e63;
    color: #fff;
    border-color: #e91e63;
    cursor: pointer;
    /* A ring that radiates six times, then a slow breathe until clicked. */
    animation: closer-live-pulse 1.5s ease-out 6, closer-live-breathe 2.4s ease-in-out 9s infinite;
}
.closer-fin-live-chip-ready:hover { background: #c2185b; border-color: #c2185b; animation: none; }
.closer-fin-live-chip-ready > .fa { font-size: .55rem; }
.closer-fin-live-chip-error { background: #fbe3e5; color: #a3222c; border-color: #f0a0a6; cursor: pointer; }
/* The same pink chip on a thread's bar (conversations.thread_version): someone
   else changed the conversation or ticket, and Show loads it. Sized for the bar.
   One animation: the fill fades. The label and Show stay solid, and there is
   no ring — the shared ready chip pulses and then breathes. */
.fo-thread-updated-chip { width: auto; height: 22px; margin-left: auto; padding: 0 .2rem 0 .55rem; font-size: 12px; }
.fo-thread-updated-chip.closer-fin-live-chip-ready {
    position: relative;
    overflow: visible;
    background: transparent;
    border-color: transparent;
    animation: none;
}
.fo-thread-updated-chip.closer-fin-live-chip-ready::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: #e91e63;
    z-index: 0;
    pointer-events: none;
    animation: closer-live-breathe 2.4s ease-in-out infinite;
}
.fo-thread-updated-chip.closer-fin-live-chip-ready > * { position: relative; z-index: 1; }
/* APlus's ticket head is light. A floor under the fading fill keeps the white
   label on pink there. On the desk the head is the dark bar, so the fill
   fades into that instead. */
.aplus-conversation-head .fo-thread-updated-chip.closer-fin-live-chip-ready { background: #c2185b; }
.desk-thread-host .fo-thread-updated-chip.closer-fin-live-chip-ready { background: transparent; }
.fo-thread-updated-chip.closer-fin-live-chip-ready:hover { background: transparent; border-color: transparent; }
.fo-thread-updated-chip.closer-fin-live-chip-ready:hover::before {
    background: #c2185b;
    opacity: 1;
    animation: none;
}
/* A work item's thread names its conversation on the bar (native_thread.html, embedded). */
.conversations-embed-ref { margin-right: .5rem; text-decoration: none; }
.conversations-embed-ref:hover { color: #e91e63; }
.fo-thread-updated-chip .closer-fin-live-chip-act { font-size: 12px; padding: .05rem .5rem; }
.closer-fin-live-chip-error .closer-fin-live-chip-act { background: #a3222c; color: #fff; }
@keyframes closer-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(233, 30, 99, .65); }
    70% { box-shadow: 0 0 0 .6rem rgba(233, 30, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}
@keyframes closer-live-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
    .closer-fin-live-chip-ready,
    .fo-thread-updated-chip.closer-fin-live-chip-ready,
    .fo-thread-updated-chip.closer-fin-live-chip-ready::before { animation: none; }
}
/* The cells the last live swap moved (Jesse, 2026-10-12: "highlight in pink
   which cells have changed"): pink, with the old figure on hover, until the
   pane is swapped again. */
.closer-fin-table td.closer-fin-amt.closer-fin-live-changed {
    background: #fce4ec !important;
    box-shadow: inset 0 -2px 0 #e91e63;
}
/* The drill wears the same pink on the WHOLE row of a line that changed since
   the snapshot (Jesse, 2026-10-14) — every drill host renders EntryEditGrid, so
   they all highlight alike. What the user is doing to the row outranks it: an
   armed or staged delete, an error, a staged cell keep their own colour; the
   hot-pink rule under the row stays. */
.fo-edit-grid-table tr.closer-fin-live-changed > td { box-shadow: inset 0 -2px 0 #e91e63; }
.fo-edit-grid-table tr.closer-fin-live-changed:not(.fo-edit-grid-row-armed):not(.fo-edit-grid-row-del):not(.fo-edit-grid-row-err) > td:not(.fo-edit-grid-cell-staged) {
    background: #fce4ec;
}
/* Comparing against now while the statements are still being pulled live. */
.closer-fin-diff-pill-pending { background: #f3f0f8; color: #4a4257; }
.closer-fin-diff-pill-pending .closer-fin-diff-only { display: none; }

/* Copy link (closer-fin-permalink.js): the task title's link icon, always
   shown in the Financials toolbar; it flashes like a task's (.is-copied). */
.closer-copy-link.closer-copy-link-bar {
    opacity: 1;
    font-size: .95rem;
    padding: .2rem .35rem;
    margin-left: .1rem;
}
.closer-copy-link.is-copy-failed { opacity: 1; color: #8a2a20; }
.closer-fin-copylink-scratch { position: fixed; top: -1000px; left: -1000px; opacity: 0; }
.closer-fin-diff-pill-text strong { color: #2d2c2f; }
.closer-fin-diff-only {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}
.closer-fin-diff-only input { margin: 0; }
.closer-fin-diffmode .closer-fin-flux-ctl,
.closer-fin-diffmode #closer-fin-xlsx,
.closer-fin-diffmode .closer-snap-tools,
.forecaster-diffmode #fc-accrual-mode,
.forecaster-diffmode #fc-pl-chart-mode { display: none !important; }
/* The Forecaster diffs two forecasts the same way (Forecaster ▸ Diff, 2026-10-25). */
.closer-fin-diffmode .closer-fin-table thead th,
.closer-fin-diffmode .closer-fin-table thead th.closer-fin-acct,
.closer-fin-diffmode .closer-fin-table thead th.closer-fin-total,
.forecaster-diffmode .forecaster-table th,
.forecaster-diffmode .forecaster-table th.forecaster-th-budget,
.forecaster-diffmode .forecaster-table th.forecaster-th-group { background: #1A73E8; }
/* Unchanged cells on plain rows fade to a quiet dash; changed cells pop. */
.closer-fin-diffmode tr.closer-fin-row:not(.closer-fin-r1):not(.closer-fin-r2):not(.closer-fin-r3):not(.closer-fin-r4) td.closer-fin-amt:not(.closer-fin-diff-hit),
.forecaster-diffmode .forecaster-table td.forecaster-diff-still { color: #b3b7c2; }
.closer-fin-diffmode .closer-fin-table td.closer-fin-amt.closer-fin-diff-hit,
.forecaster-diffmode .forecaster-table td.forecaster-diff-hit.forecaster-explainable {
    background: #e3f2fd;   /* a changed cell: compare mode's blue, not yellow */
    font-weight: 700;
    color: #0d47a1;
}
.closer-fin-diffmode .closer-fin-table td.closer-fin-amt.closer-fin-diff-hit.closer-fin-neg,
.forecaster-diffmode .forecaster-table td.forecaster-diff-hit.forecaster-explainable.forecaster-cell-neg { color: #b02a37; }
/* Shaded section/total rows keep their band; a moved cell wears a ring. */
.closer-fin-diffmode .closer-fin-r1 td.closer-fin-diff-hit,
.closer-fin-diffmode .closer-fin-r2 td.closer-fin-diff-hit {
    background: inherit;
    color: #bbdefb;
    box-shadow: inset 0 0 0 2px #64b5f6;
}
.closer-fin-diffmode .closer-fin-r3 td.closer-fin-diff-hit,
.closer-fin-diffmode .closer-fin-r4 td.closer-fin-diff-hit {
    background: #e3f2fd;
    color: #0d47a1;
    box-shadow: inset 0 0 0 2px #64b5f6;
}
/* Changed lines only: hide every row that neither moved nor holds one that did. */
.closer-fin-onlychanged tr.closer-fin-row:not([data-changed]) { display: none; }

/* The diff drill: read-only — what moved this cell between the two captures. */
.closer-fin-diffx .closer-fin-drill-totals { color: #2d2c2f; font-weight: 600; }
.closer-fin-diffx-note { margin: .5rem 1rem 0; }
.closer-fin-diff-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    margin: .5rem 0 0;
}
.closer-fin-diff-table th,
.closer-fin-diff-table td { padding: .3rem .6rem; border-bottom: 1px solid #dee2e6; vertical-align: top; }
.closer-fin-diff-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #1A73E8;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    text-align: left;
}
.closer-fin-diff-table th.closer-fin-amt, .closer-fin-diff-table td.closer-fin-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.closer-fin-diff-table td.closer-fin-diff-delta { font-weight: 700; color: #0d47a1; background: #e3f2fd; }
.closer-fin-diff-table td.closer-fin-diff-delta.closer-fin-neg { color: #b02a37; }
.closer-fin-diff-table td.closer-fin-diff-memo { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The transaction number opens the shared drill; its type and "N changes" stay on its line. */
.closer-fin-diff-table .fo-edit-grid-open-entry { display: inline; }
.closer-fin-diff-kind {
    display: inline-block;
    padding: .05rem .4rem;
    border-radius: .3rem;
    font-size: 14px;
    font-weight: 600;
    background: #e3f2fd;
    color: #1A73E8;
    margin-right: .35rem;
}
.closer-fin-diff-kind-deleted { background: #fde2e4; color: #b02a37; }
.closer-fin-diff-kind-created { background: #dcf5e6; color: #146c43; }
.closer-fin-diff-when { color: #495057; font-size: 14px; white-space: nowrap; }
.closer-fin-diff-table tfoot td { font-weight: 700; border-top: 2px solid #1A73E8; background: #f5f9ff; }

/* Reconcilable accounts: the set-aside accounts zipped up under the reconciled ones (Jesse,
   2026-09-24: "too busy … tuck away things that are NOT reconcilable"). */
.rec-accounts-set-aside {
    margin-top: 1rem;
}

.rec-accounts-set-aside > summary {
    cursor: pointer;
    color: #667085;
    font-size: 0.9rem;
    list-style: revert;
}

.rec-accounts-set-aside[open] > summary {
    margin-bottom: 0.25rem;
}
/* ---------------------------------------------------------------------------
   Transaction Views in edit mode (assets/javascript/editors/ViewEditGrid.tsx)
   --------------------------------------------------------------------------- */
.fo-view-edit { margin-top: 0.5rem; }

/* Staged NEW transactions — no row in any view until they exist. */
.fo-edit-grid-creates {
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.6rem;
    background: #f1f8f3;
    border: 1px solid #cfe7d6;
    border-radius: 0.4rem;
    font-size: 14px;
}
.fo-edit-grid-creates-head { font-weight: 600; color: #1f5f33; margin-bottom: 0.2rem; }
.fo-edit-grid-create { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.1rem 0; }
.fo-edit-grid-create-date { width: 6.5rem; white-space: nowrap; }
.fo-edit-grid-create-type { flex: 0 1 16rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-edit-grid-create-what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-edit-grid-create-amt { width: 7rem; text-align: right; white-space: nowrap; }
.fo-view-edit-meta { font-size: 14px; color: #55596a; margin-bottom: 0.35rem; min-height: 1.1rem; }

/* The Payment row's invoice picker (Vyomesh, 2026-09-24): a small panel under the A/R preview
   listing the customer's open invoices with a tick each. Absolute, so the clamped preview line
   above it never clips it, and above the grid's sticky heads. */
.rec-divide-payment-wrap {
    position: relative;
    display: block;
}

.rec-divide-payment-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
    font-size: 14px;
}

.rec-divide-apply-picker {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 40;
    min-width: 20rem;
    margin-top: 0.25rem;
    padding: 0.5rem 0.6rem;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 14px;
    line-height: 1.3;
}

.rec-divide-apply-picker-head {
    color: #475467;
    margin-bottom: 0.15rem;
}

.rec-divide-apply-picker {
    min-width: 30rem;
}

.rec-divide-apply-invoice {
    display: grid;
    grid-template-columns: 1fr 7.5rem;
    gap: 0.6rem;
    align-items: center;
}

.rec-divide-apply-invoice-pick {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.rec-divide-apply-invoice-bal {
    font-variant-numeric: tabular-nums;
}

.rec-divide-apply-amount {
    width: 100%;
    padding: 0.1rem 0.35rem;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rec-divide-apply-amount:disabled {
    background: #f2f4f7;
}

.rec-divide-apply-totals {
    margin-top: 0.2rem;
    padding-top: 0.3rem;
    border-top: 1px solid #eaecf0;
    color: #475467;
    font-variant-numeric: tabular-nums;
}

.rec-divide-apply-problem {
    color: #b42318;
}

.rec-divide-apply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.35rem;
}

/* One line per button: the picker's width, not the label, decides when they wrap. */
.rec-divide-apply-actions .btn {
    white-space: nowrap;
}

/* Resolve the difference (TM-2167): what the picks leave over, booked to an account or left as a
   customer credit — under the totals, inside the picker. */
.rec-divide-difference {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid #eaecf0;
}

.rec-divide-difference-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
}

.rec-divide-difference-hint {
    color: #495057;
    font-size: 12px;
}

/* Get started ▸ the QBO rules landing strip: a drop zone that also opens the file chooser. */
.rec-get-started-drop {
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
    border: 2px dashed #c7d2fe;
    border-radius: 8px;
    background: #f8faff;
    color: #3730a3;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
}

.rec-get-started-drop:hover,
.rec-get-started-drop:focus-visible,
.rec-get-started-drop.is-over {
    background: #eef2ff;
    border-color: #6366f1;
    outline: none;
}

.rec-get-started-choice {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.5rem 0 0.25rem;
}

.rec-get-started-choice label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.rec-get-started-branch {
    margin-top: 0.5rem;
}

.rec-get-started-drop.is-busy {
    cursor: progress;
    color: #475467;
    border-style: solid;
}

/* Import mode: the row's own Auto / Manual, inline in the QuickBooks-rule line. */
.rec-suggest-disposition-pick {
    font-size: 14px;
    padding: 0 1.2rem 0 0.3rem;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: #fff;
    color: #344054;
}

/* Wrapped layout: the Account box may grow — an account name like "Immediate Payroll
   Liabilities:Workers' Comp" was ellipsised at 11rem (Jesse, 2026-09-25: "make the account
   column wide enough to show the whole account"). The box takes the room the line has. */
.rec-divide-extra-box--line_account {
    flex: 1 1 22rem;
    max-width: 40rem;
}

.rec-divide-extra-box--line_account .rec-combo {
    width: 100%;
}

/* DEMO spotlights (Jesse, 2026-09-25): in demo mode, hovering a side header gently lights its
   zone — the book columns, the match column, or the bank columns. An inset shadow, so the
   tint sits over each cell's own section colour and fades in and out. */
.rec-divide-table td,
.rec-divide-table th {
    transition: box-shadow 0.25s ease;
}

.rec-divide-table--spot-book .rec-frz-bookdate,
.rec-divide-table--spot-book .rec-frz-bookentry,
.rec-divide-table--spot-book .rec-frz-bookamt,
.rec-divide-table--spot-mid .rec-frz-mid,
.rec-divide-table--spot-bank .rec-divide-bank-head,
.rec-divide-table--spot-bank .rec-divide-bank-head-rest,
.rec-divide-table--spot-bank tr > td:not(.rec-frz-bookdate):not(.rec-frz-bookentry):not(.rec-frz-bookamt):not(.rec-frz-mid):not(.rec-frz-note),
.rec-divide-table--spot-bank .rec-divide-col-head > th:not(.rec-frz-bookdate):not(.rec-frz-bookentry):not(.rec-frz-bookamt):not(.rec-frz-mid):not(.rec-frz-note) {
    box-shadow: inset 0 0 0 999px rgba(255, 196, 0, 0.18);
}

/* Firm Reconciliations ▸ Divide (static/js/firm-divide.js): its filter row, totals strip and
   loading line. */
.fo-bankfeed-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.6rem;
}

.fo-bankfeed-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 14px;
    color: #475467;
}

.fo-bankfeed-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.6rem;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 0.9rem;
    color: #344054;
    font-variant-numeric: tabular-nums;
}

.fo-bankfeed-total-muted {
    color: #98a2b3;
    font-size: 14px;
}

.fo-bankfeed-loading {
    padding: 0.5rem 0;
    color: #667085;
    font-size: 14px;
}

/* Firm Reconciliations ▸ Divide (static/js/firm-divide.js): ONE divide in firm mode — a header per
   client (MatchupTable's renderClientHead) above that client's account bands. */
.rec-divide-client {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    background: #f9fafb;
}

.rec-divide-client--open {
    border-color: #d0d5dd;
    background: #f2f4f7;
}

.rec-divide-client-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    font-weight: 600;
    color: #101828;
}

.rec-divide-client-counts,
.rec-divide-client-asof {
    font-size: 14px;
    color: #667085;
}

.rec-divide-client-bank {
    color: #b54708;
}

.rec-divide-client-book {
    color: #175cd3;
}

.rec-divide-client-loading {
    font-size: 14px;
    color: #175cd3;
}

.rec-divide-client-open {
    margin-left: auto;
}

/* Firm Reconciler ▸ Divide: the firm view bar (a view = one client view per client) and its
   clients panel. */
.fo-divide-viewbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.fo-divide-clients-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
    gap: 0.25rem 1.5rem;
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #eaecf0;
    border-radius: 6px;
    background: #f9fafb;
}

.fo-divide-clients-bulk {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.75rem;
    font-size: 14px;
}

.fo-divide-client-pick {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

.fo-divide-client-pick-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fo-divide-client-pick select {
    max-width: 11rem;
}

/* Firm Reconciler ▸ Divide: the firm Process (a queue of each expanded client's own Process) —
   its confirm and the per-client progress chip in the client header. */
.rec-divide-firm-process {
    position: relative;
    align-self: flex-end;
}

.rec-divide-firm-confirm {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 24rem;
    max-width: 34rem;
    padding: 0.75rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    font-size: 14px;
}

.rec-divide-firm-confirm ul {
    margin: 0.5rem 0;
    padding-left: 1.1rem;
    max-height: 16rem;
    overflow-y: auto;
}

.rec-divide-firm-confirm-head {
    color: #475467;
}

.rec-divide-client-run {
    font-size: 14px;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    color: #475467;
}

.rec-divide-client-run--running { border-color: #84adff; color: #175cd3; }
.rec-divide-client-run--done    { border-color: #75e0a7; color: #067647; }
.rec-divide-client-run--error   { border-color: #fda29b; color: #b42318; }

/* Firm mode's combined Rules list: which client each rule belongs to, and its sort. */
.rec-rules-quicklook-client {
    display: inline-block;
    margin-right: 0.4rem;
    padding: 0 0.4rem;
    border-radius: 4px;
    background: #f2f4f7;
    color: #344054;
    font-size: 14px;
}

.rec-rules-quicklook-sort {
    width: auto;
    flex: 0 0 auto;
}
/* Entry edit grid: drag a chosen column's header to move it (2026-10-01). */
.fo-edit-grid-col-drag { cursor: grab; }
.fo-edit-grid-col-dragging { opacity: 0.45; }
.fo-edit-grid-col-drop-before { box-shadow: inset 3px 0 0 #f0b429; }
.fo-edit-grid-col-drop-after { box-shadow: inset -3px 0 0 #f0b429; }
/* Entry edit grid: drag a header's right edge to resize (2026-10-01). Once a
   width is saved the table is fixed-layout, so every cell clips to its column. */
.fo-edit-grid-table thead th { position: relative; }
.fo-edit-grid-col-resize { position: absolute; top: 0; right: 0; width: 6px; height: 100%; cursor: col-resize; z-index: 2; }
/* A column's resize bar shows at rest: a faint divider down the header's edge, so it reads as
   draggable before the pointer finds it; hot pink while hovered or dragged (Christopher, 2026-10-22).
   Shared with the General Ledger's .closer-gl-col-resize. */
:is(.fo-edit-grid-col-resize, .closer-gl-col-resize)::after {
    content: ""; position: absolute; top: 20%; bottom: 20%; left: 50%; width: 1px;
    transform: translateX(-50%); background: rgba(255, 255, 255, .45); pointer-events: none;
}
.fo-edit-grid-col-resize:hover,
.closer-gl-col-resize:hover { background: transparent; }
/* The Desk board's edges take the keyboard (Left / Right): focused, the bar is pink, as hovered. */
.closer-gl-col-resize:focus-visible { outline: none; }
:is(.fo-edit-grid-col-resize, .closer-gl-col-resize):is(:hover, :active, :focus-visible)::after {
    top: 0; bottom: 0; width: 3px; background: #e91e63;
}
/* My Desk's list already draws a border between columns. The grip's resting hairline sat
   beside that border, so each header read as two lines. The pink bar still shows on the edge
   while it is hovered or dragged. The edit grid and the General Ledger have no column border,
   so their hairline stays. */
.fo-table-resizable .fo-edit-grid-col-resize::after { content: none; }
/* Center the grip on the column's 1px border, so the pink bar (centered in the grip) lands
   on the divider instead of a few pixels inside the header. right: 0 puts the grip inside
   the cell; -3.5px shifts its middle onto the middle of that border. */
.fo-table-resizable .fo-edit-grid-col-resize { right: -3.5px; }
.fo-table-resizable .fo-edit-grid-col-resize:is(:hover, :active, :focus-visible)::after {
    content: ""; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: #e91e63;
}
/* The bar hangs a pixel into the next header. Keep that header under it while the edge is hot,
   or the next cell's background covers the bar. */
.fo-table-resizable thead th:hover,
.fo-table-resizable thead th:has(.fo-edit-grid-col-resize:active) { z-index: 3; }
/* ResultsTable's resizable columns (My Desk's list; Jesse, 2026-11-02). Pinned, a cell's text wraps
   inside its column rather than being cut off. The table stays as wide as the box: its last column
   has no width of its own and takes the room left over (ResultsTable.tsx). */
.fo-table-resizable thead th { position: relative; }
.fo-table-resizable-pinned { table-layout: fixed; min-width: 100%; }
/* Ellipsis lives on the label, sortable or not. overflow:hidden on the th clips the bar
   where it crosses the border. A bare label is a block so it takes the cell's width;
   inside .fo-th-sort the flex item already does. */
.fo-table-resizable-pinned .fo-th-label { overflow: hidden; text-overflow: ellipsis; }
.fo-table-resizable-pinned thead th > .fo-th-label { display: block; }
.fo-table-resizable-pinned td { overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
/* A header being dragged to move its column: a hot pink bar marks where it will land. */
body.fo-col-moving { user-select: none; }
body.fo-col-moving * { cursor: grabbing !important; }
.fo-table-header-cell.fo-col-moving-head { opacity: .55; }
.fo-table-header-cell.fo-col-drop-before { box-shadow: inset 3px 0 0 #e91e63; }
.fo-table-header-cell.fo-col-drop-after { box-shadow: inset -3px 0 0 #e91e63; }
/* While a column or panel edge is being dragged. Email bodies are iframes, which would swallow the pointer. */
body.fo-col-resizing { user-select: none; }
body.fo-col-resizing * { cursor: col-resize !important; }
body.fo-col-resizing iframe { pointer-events: none; }
.fo-edit-grid-table-fixed { table-layout: fixed; }
.fo-edit-grid-table-fixed th,
.fo-edit-grid-table-fixed td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-edit-grid-table-fixed .fo-edit-grid-cell { max-width: none; }
/* The drill-down's row height (Jesse, 2026-11-16: "far to hard to have a LOT of stuff fit vertically").
   One line / Two lines clip each text cell to that many lines with an ellipsis. The whole text stays in
   the cell, so its hover, a copy and the search keep every word. One line also sets the Date's type and
   the Transaction's ID beside them rather than under, or every row stays two lines tall (why the one-line
   clip of 2026-09-22 was undone on 10-23). A row's arrow (.fo-edit-grid-row-open) shows it in full. */
.fo-edit-grid-dense .fo-edit-grid-clip { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.fo-edit-grid-dense-line .fo-edit-grid-clip { -webkit-line-clamp: 1; }
.fo-edit-grid-dense-two .fo-edit-grid-clip { -webkit-line-clamp: 2; }
.fo-edit-grid-dense tr:not(.fo-edit-grid-row-open) .fo-edit-grid-clip .fo-edit-grid-sub { display: inline; margin-left: .35rem; }
.fo-edit-grid-dense-line tr:not(.fo-edit-grid-row-open) > :is(.fo-edit-grid-datecell, .fo-edit-grid-txncell) { white-space: nowrap; }
.fo-edit-grid-dense-line tr:not(.fo-edit-grid-row-open) > :is(.fo-edit-grid-datecell, .fo-edit-grid-txncell) :is(.fo-edit-grid-sub, .fo-edit-grid-flag) {
    display: inline; margin-left: .35rem;
}
.fo-edit-grid-dense-line tr:not(.fo-edit-grid-row-open) > .fo-edit-grid-txncell .fo-edit-grid-numline { display: inline-flex; }
.fo-edit-grid-dense-line tr:not(.fo-edit-grid-row-open) > td.text-end > .fo-edit-grid-sub { display: inline; margin-left: .35rem; }
.fo-edit-grid-dense-line tr:not(.fo-edit-grid-row-open) :is(.fo-edit-grid-kind-line, .fo-edit-grid-idline:not(.fo-edit-grid-idline-only) .fo-edit-grid-idtext) { display: none; }
.fo-edit-grid-dense-line tr:not(.fo-edit-grid-row-open) .fo-edit-grid-idline:not(.fo-edit-grid-idline-only) .fo-edit-grid-history-wrap { margin-left: 0; }
/* Two lines: the number on the first, its ID and what changed on the second. */
.fo-edit-grid-dense-two tr:not(.fo-edit-grid-row-open) > .fo-edit-grid-txncell :is(.fo-edit-grid-idline, .fo-edit-grid-flag) {
    display: inline; margin-left: .35rem;
}
.fo-edit-grid-dense-two tr:not(.fo-edit-grid-row-open) > .fo-edit-grid-txncell .fo-edit-grid-idline { margin-left: 0; }
/* A staging error or warning is never clipped. */
.fo-edit-grid-dense .fo-edit-grid-txncell :is(.fo-edit-grid-err, .fo-edit-grid-warn, .fo-edit-grid-hidden-staged) { white-space: normal; }
.fo-edit-grid-dense .fo-edit-grid-row-open .fo-edit-grid-clip { display: inline; overflow: visible; }
/* An Accruer memo's few words in a clipped row; the whole memo in an open row and in Full text. */
.fo-edit-grid-short { display: none; }
.fo-edit-grid-dense tr:not(.fo-edit-grid-row-open) .fo-edit-grid-short { display: inline; }
.fo-edit-grid-dense tr:not(.fo-edit-grid-row-open) .fo-edit-grid-long { display: none; }
/* Clipped, a text column keeps enough width to read (a narrow window squeezed every one to its header's
   width, and the descriptions to a word); names and dimensions take less, the descriptions more. Booked by,
   Linked and Attachments end in an ellipsis rather than set the width. */
.fo-edit-grid-dense:not(.fo-edit-grid-table-fixed) td.fo-edit-grid-cell[data-col] { min-width: 9rem; }
.fo-edit-grid-dense:not(.fo-edit-grid-table-fixed) td.fo-edit-grid-cell:is([data-col="header_name"], [data-col="line_name"], [data-col="line_item"]) { max-width: 16rem; }
.fo-edit-grid-dense:not(.fo-edit-grid-table-fixed) td.fo-edit-grid-cell:is([data-col="line_class"], [data-col="line_department"], [data-col="line_ref_t"]) { min-width: 6rem; max-width: 10rem; }
.fo-edit-grid-dense:not(.fo-edit-grid-table-fixed) td.fo-edit-grid-cell:is([data-col="line_description"], [data-col="entry_description"], [data-col="bank_narrative"]) { min-width: 14rem; }
.fo-edit-grid-dense .fo-edit-grid-owner .fo-edit-grid-badge { max-width: 9rem; }
.fo-edit-grid-dense .fo-edit-grid-linked-cell .fo-edit-grid-linked { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
/* The row's arrow, before its date: it shows with the row's pencils and stays while the row is open. */
.fo-edit-grid-row-caret {
    margin-right: .35rem; padding: 0; border: 0; background: none;
    font-size: 14px; line-height: 1; color: #495057; visibility: hidden;
}
.fo-edit-grid-table tr:hover .fo-edit-grid-row-caret,
.fo-edit-grid-row-caret.fo-edit-grid-row-caret-open,
.fo-edit-grid-row-caret:focus-visible { visibility: visible; }
.fo-edit-grid-row-caret:hover { color: #e91e63; }
.fo-edit-grid-row-caret > .fa-icon-host { display: inline-block; transition: transform .12s ease; }
.fo-edit-grid-row-caret-open > .fa-icon-host { transform: rotate(90deg); }
.fo-edit-grid-viewport { position: relative; }

/* ── Closer: the Financials tab gets the screen (Jesse, 2026-10-02) ─────── */
/* The title row: Get started + the firm's check layer as buttons beside the
   title (Reconciler's pattern), not rows of their own. */
.closer-title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-left: 0.75rem;
}
/* On Financials only the tab strip stays above the statements. */
body.closer-fin-focus #product-tabs,
body.closer-fin-focus #closer-intro-banner {
  display: none !important;
}
body.closer-fin-focus #closer-home-subtabs {
  margin-top: 0.25rem !important;
}
/* A link to another Closer tab, or to a statement its script draws (the GL, Visual, A/P, A/R):
   hidden until the linked one is shown, so the page doesn't paint Checks or the P&L first
   (Jesse, 2026-10-30). The statement strip waits too, or it lights P&L first; a script moves it
   out of #closer-fin-statements into the tab slot, hence the :has. Should no script get to it,
   it shows after a few seconds anyway. */
html.closer-tab-pending .closer-home > .tab-pane,
#cpane-financials:has(#closer-fin-statements.closer-fin-stmt-pending) .closer-fin-stmt-tabs,
#closer-fin-statements.closer-fin-stmt-pending .closer-fin-stmt-content {
  visibility: hidden;
  animation: closer-pending-reveal 0s linear 4s forwards;
}
@keyframes closer-pending-reveal {
  to { visibility: visible; }
}
/* The lights' slot in the strip, left of the Closing picker. */
.closer-subtabs-grouped .closer-subtabs-lights {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
}
/* The month a snapshot belongs to: one chip colour shared by the period
   picker and the version menu's month column. */
/* Colour comes from Tasks' closer-period-m<N> month palette. */
.btn.closer-month-chip-btn { border: 1px solid rgba(0, 0, 0, 0.08); }
.closer-month-chip {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn.closer-month-chip-btn:hover,
.btn.closer-month-chip-btn:focus,
.btn.closer-month-chip-btn.show {
  filter: brightness(0.95);
  border-color: rgba(0, 0, 0, 0.16);
}
/* The version menu: name | month | captured | rename · delete, aligned across
   rows (subgrid), never wider than the viewport. */
.closer-snapver-menu.show { display: grid; }
.closer-snapver-menu {
  grid-template-columns: max-content max-content max-content max-content;
  max-width: calc(100vw - 24px);
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.35rem 0;
}
.closer-snapver-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
}
.closer-snapver-row .closer-snapver {
  display: grid;
  grid-column: 1 / 4;
  grid-template-columns: subgrid;
  align-items: center;
  column-gap: 0.9rem;
  padding: 0.35rem 0.5rem 0.35rem 0.9rem;
  white-space: nowrap;
}
.closer-snapver-name {
  font-weight: 600;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.closer-snapver-when {
  font-size: 14px;
  color: #495057;
  font-variant-numeric: tabular-nums;
}
/* The shown version: a quiet tint across the whole row (tools included),
   not Bootstrap's solid active fill, so the chip and date stay legible. */
.closer-snapver-row.active { background: #cfe2ff; }
.closer-snapver-row .closer-snapver.active,
.closer-snapver-row .closer-snapver.active:hover {
  background: transparent;
  color: #250d47;
}
.closer-snapver-tools {
  display: flex;
  gap: 0.15rem;
  padding-right: 0.5rem;
}
.closer-snapver-tools button {
  border: 0;
  background: transparent;
  color: #8a8496;
  padding: 0.2rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 12px;
  line-height: 1;
}
.closer-snapver-tools button:hover { background: #e7f1ff; color: #250d47; }
.closer-snapver-tools .closer-snapver-delete:hover,
.closer-snapver-tools .closer-snapver-delete.closer-snap-confirm {
  color: #fff;
  background: #dc3545;
}
/* A version an agent signed: a lock where the trash would be. */
.closer-snapver-signed {
  color: #250d47;
  padding: 0.2rem 0.35rem;
  font-size: 14px;
  line-height: 1;
}
/* Renaming: the input takes the name column; the link keeps the rest. */
.closer-snapver-row.closer-snapver-editing .closer-snapver-name-input {
  grid-column: 1;
  grid-row: 1;
  margin-left: 0.6rem;
  height: 1.8rem;
  z-index: 1;
  border: 1px solid #b9a3e3;
  background: #fff;
}
.closer-snapver-row.closer-snapver-editing .closer-snapver { grid-row: 1; }
.closer-snapver-row.closer-snapver-editing .closer-snapver-name { visibility: hidden; }
/* One row: statement tabs + M/Y on the left, snapshot controls on the right. */
/* The tabs and the Find box are anchored on the LEFT and the controls sit on
   the right (margin-left: auto, below); the tab slot no longer grows, so the
   Find box stays put whatever the controls' width (Jesse, 2026-10-12). */
.closer-fin-head { flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; }
/* The tabs keep one line whenever the card is as wide as they are; narrower than that (a
   small window with the sidebar open) they wrap inside the card rather than run past it
   (2026-10-20). */
.closer-fin-tabslot { flex: 0 1 auto; min-width: 0; }
.closer-fin-tabslot .closer-fin-stmt-tabs { margin-bottom: 0; flex-wrap: wrap; }
/* M|Y sits on the tabs' text midline (Jesse, 2026-10-05: "we HAVE to
   vertically align that"): centered in the row, sized to the tab text
   rather than the theme's 34px small button, which hung from the tab tops. */
.closer-fin-stmt-tabs .closer-fin-basis-item {
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
}
.closer-fin-basis .btn {
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  line-height: 1.2;
}
/* Expand / collapse all: a + and − in the Account header cell. */
.closer-fin-allbtns { display: inline-flex; gap: 0.15rem; margin-right: 0.45rem; vertical-align: middle; }
.closer-fin-allbtns button {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.2rem;
  background: transparent;
  color: #fff;
}
.closer-fin-allbtns button:hover { background: rgba(255, 255, 255, 0.18); }
/* The lines' sort, largest first / A–Z (Jesse, 2026-10-15): the same small
   buttons after "Account", the chosen one filled. */
.closer-fin-allbtns.closer-fin-sortbtns { margin-right: 0; margin-left: 0.45rem; }
.closer-fin-sortbtns button { font-size: 0.62rem; font-weight: 400; }
.closer-fin-sortbtns button.active,
.closer-fin-sortbtns button.active:hover { background: #fff; color: #250d47; }
/* VIEW BY: the layer button after the sort, on a P&L or Balance Sheet, for a company with a
   bucket list or anyone who can make one (its menu ends in the way to the Bucket Lists page);
   filled while a list is on screen (Jesse, 2026-10-20: off the toolbar). */
.closer-fin-allbtns.closer-fin-viewbtns { margin-right: 0; margin-left: 0.3rem; }
.closer-fin-viewbtns button { font-size: 0.62rem; font-weight: 400; }
#cpane-financials:not([data-fin-view-sets]):not([data-fin-view-edit-url]) .closer-fin-viewbtns { display: none; }
#cpane-financials:not([data-fin-view="qb"]) .closer-fin-viewbtns button { background: #fff; color: #250d47; }
.closer-fin-viewmenu { position: fixed; z-index: 1080; min-width: 12rem; }
/* One look for Financials' menus (the layout menu, More): 12px body text, a light purple-grey under the
   pointer and on the current one, which is dark purple and bold — as the snapshot menus, not a dark fill. */
:is(.closer-fin-viewmenu, .closer-fin-more .dropdown-menu) .dropdown-item { color: #2d2c2f; font-size: 14px; font-weight: 400; padding: .35rem 1rem; }
:is(.closer-fin-viewmenu, .closer-fin-more .dropdown-menu) .dropdown-item:hover,
:is(.closer-fin-viewmenu, .closer-fin-more .dropdown-menu) .dropdown-item:focus { background: #e7f1ff; color: #250d47; }
:is(.closer-fin-viewmenu, .closer-fin-more .dropdown-menu) .dropdown-item.active,
:is(.closer-fin-viewmenu, .closer-fin-more .dropdown-menu) .dropdown-item.active:hover { background: #e7f1ff; color: #250d47; font-weight: 700; }
/* An A/P or A/R Aging's day, after "Vendor" / "Customer" (2026-10-15). */
.closer-fin-asof { font-weight: 400; }
/* A comment just posted: it renders at the top of the panel; a brief tint
   says where it went. */
.closer-fin-thread-new { animation: closer-fin-thread-new 2.4s ease-out; }
@keyframes closer-fin-thread-new {
  0%, 30% { background: #fff4c2; }
  100% { background: transparent; }
}

/* Package designations, one colour each wherever they show (Jesse,
   2026-10-02): client package green, viewable-in-app blue, none plain. */
.closer-package-row--package > td { background: #e8f5e9; }
.closer-package-row--app > td { background: #e3f2fd; }
.closer-package-row--package .closer-package-designation { border-color: #9ccfa8; color: #1f7a3d; font-weight: 600; }
.closer-package-row--app .closer-package-designation { border-color: #9ec5f0; color: #175cd3; font-weight: 600; }
.closer-package-tag {
  display: inline-block;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.closer-package-tag--package { background: #e8f5e9; color: #1f7a3d; }
.closer-package-tag--app { background: #e3f2fd; color: #175cd3; }
/* Settled-only orphan strip: a single quiet link, not a card's worth. */
#closer-fin-orphans.closer-fin-orphans--settled-only .card-body { padding: 0.3rem 1rem; }
#closer-fin-orphans.closer-fin-orphans--settled-only h6 { display: none; }
.closer-fin-orphans-settled { padding: 0.1rem 0.25rem; font-size: 14px; color: #6c6477; text-decoration: none; }

/* ── Close tasks on a calendar: the Tasks tab's Calendar view and Firm Close's Task Calendar
   (closer/includes/task_calendar.html, closer.task_calendar). Days run across; the template
   gives every item day offsets (--x start, --w width, --lane, --tail late days) and this turns
   them into pixels. A client bar wears its close period's closer-period-m<N> colours; a firm chip
   holds the Reconciler firm grid's multi-segment bar. Red appears only for lateness. ────────── */
.closer-cal {
    --cal-day: 24px;
    --cal-lane: 22px;
    --cal-gap: 5px;
    --cal-head: 0px;
    --cal-weekend: #f4f2f8;
    --cal-line: #E4E7EC;
    --cal-late: #c8323c;
    --cal-today: #d99a00;
    display: grid;
    gap: 0.5rem;
    /* The timeline is wider than the card: it scrolls inside, the page never widens. */
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    min-width: 0;
}

.closer-cal--firm { --cal-lane: 34px; --cal-head: 11rem; }
.closer-cal.closer-cal-loading { opacity: 0.55; pointer-events: none; }

.closer-cal-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.closer-cal-title { color: #250d47; font-weight: 700; margin-right: auto; }
.closer-cal-who { width: auto; min-width: 9rem; }
.closer-cal-hide-done { align-items: center; display: inline-flex; gap: 0.35rem; font-size: 14px; margin: 0; }

.closer-cal-legend {
    color: #495057;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 0.35rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.closer-cal-legend li { align-items: center; display: inline-flex; gap: 0.35rem; }
.closer-cal-swatch { border-radius: 3px; display: inline-block; height: 10px; width: 18px; }
/* The closer-period-m<N> chip tints are pale for a bar: a hairline in the period's own ink. */
.closer-cal-swatch[class*="closer-period-m"],
.closer-cal-bar[class*="closer-period-m"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 40%, transparent); }
.closer-cal-bar--late[class*="closer-period-m"] {
    box-shadow: inset 3px 0 0 var(--cal-late), inset 0 0 0 1px color-mix(in srgb, currentColor 40%, transparent);
}
.closer-cal-swatch--projected { outline: 1.5px dashed #9CA3AF; outline-offset: -1.5px; }
.closer-cal-swatch--late { background: repeating-linear-gradient(135deg, transparent 0 3px, #c8323c 3px 4px); }
.closer-cal-skill { color: #6b35ad; font-size: 0.75em; }

.closer-cal-scroll { overflow-x: auto; }

.closer-cal-timeline {
    font-variant-numeric: tabular-nums;
    position: relative;
    /* Exactly its days: no spare 160px after the last one (Christopher, 2026-10-26). A label riding past
       a late bar still widens the scroll area on its own, as positioned overflow does. */
    width: calc(var(--cal-head) + var(--cal-span) * var(--cal-day));
}

.closer-cal-head,
.closer-cal-row { display: flex; }
.closer-cal-head { border-bottom: 1px solid var(--cal-line); height: 40px; }
.closer-cal-row { border-bottom: 1px solid var(--cal-line); }

/* The firm view's client column stays put while the days scroll. */
.closer-cal-rowhead {
    background: #fff;
    flex: none;
    left: 0;
    padding: 4px 10px 4px 0;
    position: sticky;
    width: var(--cal-head);
    z-index: 4;
}

.closer-cal-rowhead a { color: #250d47; font-size: 14px; font-weight: 600; }
.closer-cal-rowhead small { color: #495057; display: block; font-size: 14px; }
/* Its "· 1 late" at the same 12px: 10px is for chips and caps labels (TM-2360). */
.closer-cal-rowhead small .closer-cal-late-words { font-size: 14px; }
.closer-cal-corner { color: #495057; font-size: 14px; font-weight: 600; padding-top: 12px; }

/* Weekends shaded and a hairline each Monday, repeating every 7 days from the first Monday. */
.closer-cal-lane-area {
    background:
        linear-gradient(90deg, var(--cal-line) 0 1px, transparent 1px) 0 0 / calc(7 * var(--cal-day)) 100%,
        linear-gradient(90deg, transparent 0 calc(5 * var(--cal-day)), var(--cal-weekend) calc(5 * var(--cal-day))) 0 0 / calc(7 * var(--cal-day)) 100%;
    background-position-x: calc(var(--cal-monday) * var(--cal-day));
    flex: none;
    height: calc(var(--lanes, 1) * (var(--cal-lane) + var(--cal-gap)) + var(--cal-gap));
    position: relative;
    width: calc(var(--cal-span) * var(--cal-day));
}

.closer-cal-days { height: 40px; }

.closer-cal-month,
.closer-cal-day {
    color: #495057;
    left: calc(var(--x) * var(--cal-day));
    position: absolute;
}

.closer-cal-month {
    border-left: 1px solid #9CA3AF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding-left: 4px;
    text-transform: uppercase;
    top: 0;
}

.closer-cal-day { font-size: 12px; text-align: center; top: 20px; width: var(--cal-day); }
.closer-cal-day--weekend { opacity: 0.6; }
.closer-cal-day--today { color: var(--cal-today); font-weight: 700; }

.closer-cal-body { position: relative; }

.closer-cal-today {
    background: var(--cal-today);
    bottom: 0;
    left: calc(var(--cal-head) + (var(--x) + 0.5) * var(--cal-day));
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 2px;
    z-index: 3;
}

/* A bar spans open → due exactly; its key sits inside. */
.closer-cal-bar,
.closer-cal-tail,
.closer-cal-tail-label {
    height: var(--cal-lane);
    position: absolute;
    top: calc(var(--cal-gap) + var(--lane) * (var(--cal-lane) + var(--cal-gap)));
}

.closer-cal-bar {
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: calc(var(--x) * var(--cal-day) + 1px);
    overflow: hidden;
    padding: 0 5px;
    text-decoration: none;
    width: calc(var(--w) * var(--cal-day) - 2px);
    z-index: 1;
}

.closer-cal-bar:hover,
.closer-cal-bar:focus-visible { box-shadow: 0 0 0 2px rgba(37, 13, 71, 0.35); text-decoration: none; z-index: 2; }

.closer-cal-label { background: transparent; display: block; min-width: 0; }

.closer-cal-key {
    display: block;
    font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
    font-size: 12px;   /* the bars' caps task keys (Christopher, 2026-11-12) */
    font-weight: 600;
    line-height: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.closer-cal-bar--waiting .closer-cal-key::before { content: "⏸ "; color: #5b6679; }
.closer-cal-bar--done { opacity: 0.45; }
.closer-cal-bar--done .closer-cal-key { text-decoration: line-through; }
.closer-cal-bar--projected { background: transparent !important; outline: 1.5px dashed currentColor; outline-offset: -1.5px; }
.closer-cal-bar--late { box-shadow: inset 3px 0 0 var(--cal-late); }
.closer-cal-bar--cont-left { border-bottom-left-radius: 0; border-top-left-radius: 0; }
.closer-cal-bar--cont-left .closer-cal-key::before { content: "‹ "; }
.closer-cal-bar--cont-left.closer-cal-bar--waiting .closer-cal-key::before { content: "‹ ⏸ "; }
.closer-cal-bar--cont-right { border-bottom-right-radius: 0; border-top-right-radius: 0; }

/* Too short to hold its key: the key rides just past the bar (and its late tail). */
.closer-cal-bar--narrow { overflow: visible; }
.closer-cal-bar--narrow .closer-cal-label {
    background: transparent;
    left: calc(100% + 4px + var(--tail) * var(--cal-day));
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.closer-cal-bar--narrow .closer-cal-key { overflow: visible; }

/* Past due and still open: a red hatched tail from the due date through today. */
.closer-cal-tail {
    background: repeating-linear-gradient(135deg, transparent 0 4px, var(--cal-late) 4px 5px);
    border-radius: 0 4px 4px 0;
    left: calc((var(--x) + var(--w)) * var(--cal-day));
    opacity: 0.55;
    pointer-events: none;
    width: calc(var(--tail) * var(--cal-day));
}

.closer-cal-tail-label {
    align-items: center;
    display: flex;
    left: calc((var(--x) + var(--w) + var(--tail)) * var(--cal-day) + 4px);
    pointer-events: none;
    white-space: nowrap;
}

.closer-cal-tail-label,
.closer-cal-late-words { color: var(--cal-late); font-family: inherit; font-size: 12px; font-weight: 700; }
.closer-cal-bar--done .closer-cal-late-words { text-decoration: none; }

/* Firm chips: a run of one client's tasks — the label over the segmented status bar. */
.closer-cal-chip {
    background: #f4f1fa;
    border: 1px solid #ddd6ea;
    color: #250d47;
    gap: 3px;
}

.closer-cal-chip .closer-cal-key { font-family: inherit; font-size: 12px; }
.closer-cal-chip .closer-cal-segments { height: 6px; width: 100%; }
.closer-cal-chip.closer-cal-bar--narrow .closer-cal-segments { min-width: 0; }
.closer-cal-chip.closer-cal-bar--projected { border: 0; }

.closer-cal-empty { font-size: 14px; padding: 0.75rem 0; }
.closer-cal-hint { font-size: 14px; }

/* The firm chips' segment colours (closer.task_calendar.BAR_SEGMENTS); done is Reconciler's. */
.closer-tboard-seg-wip       { background: #3b6fd8; }
.closer-tboard-seg-waiting   { background: #aab2c0; }
.closer-tboard-seg-todo      { background: #fff; box-shadow: inset 0 0 0 1px #9CA3AF; }
.closer-tboard-seg-scheduled {
    background: repeating-linear-gradient(135deg, #fff 0 3px, #D1D5DB 3px 5px);
}

/* Firm Users > Own Books: one compact row (select + Save) instead of a full-width stretch. */
.own-books-card { max-width: 560px; }
.own-books-select { flex: 1 1 auto; min-width: 0; }
/* A drafted pipe table in the composer (conversations-composer.js), drawn as the table the thread
   and the email show; its cells stay editable and write back as the Markdown table. */
.conversations-composer-table {
  border-collapse: collapse;
  margin: 0.25rem 0 0.5rem;
  white-space: normal;
}
.conversations-composer-table th,
.conversations-composer-table td {
  padding: 0.2rem 0.75rem 0.2rem 0;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  /* The editor breaks anywhere (overflow-wrap: anywhere); a cell breaks between words only, and
     short cells (a date, an amount) never break at all. */
  overflow-wrap: normal;
}
.conversations-composer-cell-empty { min-width: 6rem; }
.conversations-composer-table td:nth-child(-n+2) { white-space: nowrap; }
.conversations-composer-table th {
  border-bottom: 2px solid #ddd;
  color: #555;
  font-weight: 600;
  white-space: nowrap;
}
.conversations-composer-cell-left { text-align: left; }
.conversations-composer-cell-right { text-align: right; }
.conversations-composer-cell-center { text-align: center; }

/* My Desk people autofill + @-mentions (static/js/people-suggest.js) — the
   fo-combobox panel's look, positioned under the field or the caret. */
.fo-people-suggest {
    position: fixed;
    z-index: 1090;
    max-width: 26rem;
    max-height: 16rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.3rem;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e1ec;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(37, 13, 71, 0.18);
}

.fo-people-suggest-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.3rem 0.45rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.fo-people-suggest-item:hover,
.fo-people-suggest-item-active {
    background: #e7f1ff;
}

.fo-people-suggest-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fo-people-suggest-email {
    color: #6c6684;
    font-size: 0.85em;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* An @-mentioned firm member waiting in Send to (conversations-composer.js):
   CC'd and mailed when the reply posts; × takes them back off. */
.conversations-mention-recipient { display: flex; align-items: center; gap: 0.25rem; }
/* Monthly Review ▸ Directives (staff only): the review prompt, read-only. */
.closer-review-directives-text {
  white-space: pre-wrap;
  font-size: 14px;
  background: #faf9fc;
  border: 1px solid #ece9f1;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-bottom: 0;
}

/* ── Closer ▸ Financials ▸ General Ledger (closer-general-ledger.js) ───── */
.closer-gl-head { flex-wrap: wrap; }
.closer-gl-tools {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.closer-gl-search { width: 22rem; max-width: 100%; }
.closer-gl-count { font-size: 14px; color: #495057; white-space: nowrap; }
.closer-gl-col-opt { display: flex; align-items: center; gap: .4rem; cursor: pointer; font-size: 14px; }
.closer-gl-commented-only {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0 .75rem 0 0;
    font-size: 14px;
    color: #4F5FB7;
    white-space: nowrap;
    cursor: pointer;
}
.closer-gl-commented-only .form-check-input { margin: 0; }
/* Fixed layout: the widths are the columns' own (picked, dragged), every row is one
   line tall — which is what lets the body draw only the rows in view. */
.closer-gl-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.closer-gl-table th,
.closer-gl-table td {
    padding: .26rem .6rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.closer-gl-table tbody td { height: 1.7rem; line-height: 1.2; }
.closer-gl-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #250d47;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}
.closer-gl-table .closer-gl-amt { text-align: right; }
.closer-gl-table .closer-gl-neg { color: #dc3545; }
/* Header cells drag to reorder; the right edge drags to widen. */
.closer-gl-th { cursor: grab; }
.closer-gl-th-drop,
.fo-check-table > thead > :where(tr) > th.closer-gl-th-drop { box-shadow: inset 3px 0 0 #b9a3e3; }   /* the Desk board's header is a .fo-check-table's */
.closer-gl-col-resize {
    position: absolute;
    top: 0;
    right: -4px;
    width: 12px;
    z-index: 1;
    height: 100%;
    cursor: col-resize;
    touch-action: none;
}
.closer-gl-table .closer-gl-pick { padding-left: 0; padding-right: 0; text-align: center; }
.closer-gl-tick,
.closer-gl-tick-all { float: none; margin: 0; vertical-align: middle; cursor: pointer; }
.closer-gl-table .closer-gl-mark { padding-left: .2rem; padding-right: .3rem; text-align: right; }
.closer-gl-mark .fo-edit-grid-cq { margin-left: .15rem; }
/* QuickBooks' nesting: the account header and its total at the account's depth,
   the beginning balance and the lines one level in (the JS sets --gl-depth). */
.closer-gl-table .closer-gl-indent { padding-left: calc(.6rem + var(--gl-depth, 0) * 1.25em); }
.closer-gl-acct td { font-weight: 700; color: #250d47; background: #f7f5fb; cursor: pointer; }
.closer-gl-caret { width: 1em; margin-right: .3rem; transition: transform .12s ease; }
.closer-gl-collapsed .closer-gl-caret { transform: rotate(-90deg); }
.closer-gl-beg td { color: #495057; }
/* A rule above the total, drawn as a shadow so the row stays one line tall. */
.closer-gl-total td { font-weight: 700; color: #250d47; box-shadow: inset 0 1px 0 #6c6477; }
.closer-gl-line { cursor: pointer; }
.closer-gl-line:hover td,
.closer-gl-line:focus td { background: #e7f1ff; }
.closer-gl-line:focus { outline: 2px solid #250d47; outline-offset: -2px; }
.closer-gl-sel td { background: #cfe2ff; }
/* A commented line wears the comment bubble's colour (Jesse, 2026-10-06). */
.closer-gl-commented td { background: #f3f4f7; }
.closer-gl-commented-open td { background: #edf0fb; }
.closer-gl-commented-open td.closer-gl-pick { box-shadow: inset 3px 0 0 #4F5FB7; }
.closer-gl-commented-mine td { background: #fbeef0; }
.closer-gl-commented-mine td.closer-gl-pick { box-shadow: inset 3px 0 0 #b02a37; }
.closer-gl-line.closer-fin-row-active > td { box-shadow: inset 0 2px 0 #4F5FB7, inset 0 -2px 0 #4F5FB7; }
.closer-gl-spacer td { height: auto; padding: 0; border: 0; }
.closer-gl-flag-host .fo-edit-grid-flag-panel { margin: 0 0 .5rem; }
.closer-gl-qbo { color: inherit; text-decoration: underline dotted; }
.closer-gl-qbo:hover { color: #e91e63; }

/* No yearly general ledger: the M / Y toggle greys out while the GL is shown. */
.closer-fin-basis.closer-fin-basis-off { opacity: .4; }
.closer-fin-flux-ctl.closer-fin-basis-off { opacity: .4; }
/* The transaction (the flux drill's one-entry mode): its GL line's 💬, and
   accounts that use the width instead of cutting off. */
.closer-fin-drillx-comment { opacity: 1; font-size: 14px; margin-right: .5rem; color: #495057; }
.closer-fin-drillx-grid .fo-edit-grid-cell { max-width: 34rem; }

/* The printed General Ledger (Print, or Ctrl+P on the GL): only the report,
   QuickBooks' layout, the column header repeating on every page. */
.closer-gl-print-root { display: none; }
@media print {
  @page { margin: 0.5in; }
  body.closer-gl-printing { background: #fff; }
  body.closer-gl-printing > *:not(.closer-gl-print-root) { display: none !important; }
  body.closer-gl-printing > .closer-gl-print-root { display: block; color: #000; }
  .closer-gl-print-title { text-align: center; margin-bottom: 12pt; }
  .closer-gl-print-company { font-size: 13pt; font-weight: 700; }
  .closer-gl-print-report { font-size: 11pt; font-weight: 700; }
  .closer-gl-print-period { font-size: 9pt; }
  .closer-gl-print-filter,
  .closer-gl-print-note { font-size: 8pt; color: #444; }
  .closer-gl-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 7.5pt;
    font-variant-numeric: tabular-nums;
  }
  .closer-gl-print-table thead { display: table-header-group; }
  .closer-gl-print-table th {
    padding: 2pt 4pt;
    border-bottom: 1px solid #000;
    text-align: left;
    font-weight: 700;
  }
  /* The on-screen GL's cell rules share these classes; none of them print (Jesse, 2026-10-15:
     "look at those stray lines"). */
  .closer-gl-print-table td { padding: 1.5pt 4pt; vertical-align: top; border: 0 !important; box-shadow: none !important; background: none !important; }
  .closer-gl-print-table tr { break-inside: avoid; }
  .closer-gl-print-table .closer-gl-amt { text-align: right; white-space: nowrap; }
  .closer-gl-print-table .closer-gl-date,
  .closer-gl-print-table .closer-gl-num { white-space: nowrap; }
  .closer-gl-print-table .closer-gl-indent { padding-left: calc(4pt + var(--gl-depth, 0) * 12pt); }
  .closer-gl-print-table .closer-gl-acct td { padding-top: 5pt; font-weight: 700; }
  /* QuickBooks' total: bold, one rule over the figure it adds up, nothing across the row. */
  .closer-gl-print-table .closer-gl-total td { font-weight: 700; }
  .closer-gl-print-table .closer-gl-total td.closer-gl-amt:not(:empty) { border-top: 1px solid #000 !important; }
  .closer-gl-print-table .closer-gl-acct,
  .closer-gl-print-table .closer-gl-beg { break-after: avoid; }
}

/* Review tables (page + the review drafted into a conversation): ruled cells and
   alternating rows (Jesse, 2026-10-06). */
.closer-summary table { border: 1px solid #ddd6e8; }
.closer-summary th { background: #efeaf6; color: #250d47; }
.closer-summary td, .closer-summary th { border: 1px solid #e6e0ef; }
.closer-summary tbody tr:nth-child(even) td { background: #f8f6fb; }

/* General Ledger ▸ snapshot Compare (closer-general-ledger-compare.js; Jesse,
   2026-10-06: the statements' teal is "obviously terrible"). Calm tints on the
   brand's lavender neutrals, told apart three ways so a grey printout still
   reads: a left rule (solid = added, double = changed, dashed = removed), a
   leading mark (+ / ~ / −), and removed lines struck through. Old values sit
   under the new one, small and struck. */
.closer-gl-cmp-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .9rem;
    margin: .1rem 0 .55rem;
    font-size: 14px;
    color: #4a4257;
}
.closer-gl-cmp-bar.closer-gl-cmp-on {
    padding: .4rem .6rem;
    border: 1px solid #e3ddec;
    border-radius: .4rem;
    background: #faf9fc;
}
.closer-gl-cmp-bar[hidden] { display: none; }

/* Which ledger the GL shows (closer-general-ledger.js paintMode): the snapshot's
   (default) or the Compare's changes — the page's snapshot picker and Compare
   menu pick it; this tag in the title only names it. The refresh button beside
   the search shows while the ledger is the live one. */
.closer-gl-refresh[hidden] { display: none; }
.closer-gl-mode-tag {
    display: inline-block;
    margin-left: .5rem;
    padding: .1rem .5rem;
    border-radius: .3rem;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
    background: #efecf5;
    color: #250d47;
}
.closer-gl-mode-tag:empty { display: none; }
.closer-gl-mode-tag-live { background: #e8f1fb; color: #1d4f86; }
.closer-gl-mode-tag-diff { background: #fbf5e6; color: #7a5a17; }
.closer-gl-mode-tag-warn { background: #fdecea; color: #8a2a20; }
.closer-gl-mode-note { margin: .1rem 0 .45rem; font-size: 14px; }
.closer-gl-cmp-title strong { color: #250d47; }
.closer-gl-cmp-summary { color: #495057; }
.closer-gl-cmp-legend { display: inline-flex; gap: .35rem; }
.closer-gl-cmp-chip {
    padding: .05rem .45rem;
    border-radius: .25rem;
    border-left: 3px solid transparent;
    font-size: 12px;
}
.closer-gl-cmp-chip-added { background: #eef5ef; border-left-color: #4f7f5a; }
.closer-gl-cmp-chip-changed { background: #fbf5e6; border-left: 3px double #b8892b; }
.closer-gl-cmp-chip-removed { background: #f4f2f7; border-left: 3px dashed #9d95ad; color: #8b8496; text-decoration: line-through; }
.closer-gl-cmp-only { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; margin: 0; }
.closer-gl-cmp-note { flex-basis: 100%; margin: 0; font-size: 14px; }
.closer-gl-table tr.closer-gl-cmp-row td:first-child::before {
    display: inline-block;
    width: .7em;
    margin-left: -.7em;
    font-weight: 700;
}
.closer-gl-table tr.closer-gl-cmp-added td { background: #eef5ef; }
.closer-gl-table tr.closer-gl-cmp-added td:first-child { border-left: 3px solid #4f7f5a; }
.closer-gl-table tr.closer-gl-cmp-added td:first-child::before { content: "+"; color: #4f7f5a; }
.closer-gl-table tr.closer-gl-cmp-changed td { background: #fbf5e6; }
.closer-gl-table tr.closer-gl-cmp-changed td:first-child { border-left: 3px double #b8892b; }
.closer-gl-table tr.closer-gl-cmp-changed td:first-child::before { content: "~"; color: #9a7020; }
.closer-gl-table tr.closer-gl-cmp-changed td.closer-gl-cmp-cell { background: #f6ebcf; }
.closer-gl-table tr.closer-gl-cmp-removed td {
    background: #f4f2f7;
    color: #8b8496;
    text-decoration: line-through;
    text-decoration-color: #a79fb6;
}
.closer-gl-table tr.closer-gl-cmp-removed td:first-child { border-left: 3px dashed #9d95ad; }
.closer-gl-table tr.closer-gl-cmp-removed td:first-child::before { content: "\2212"; color: #8b8496; text-decoration: none; }
.closer-gl-table tr.closer-gl-cmp-gone td { font-style: italic; color: #8b8496; }
.closer-gl-cmp-was {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #495057;
    text-decoration: line-through;
    text-decoration-color: #b0a8bf;
}
.closer-gl-table td:first-child > .closer-gl-cmp-was { text-decoration: none; font-style: italic; }
.closer-gl-table tr.closer-gl-cmp-total td .closer-gl-cmp-was { display: inline; margin-left: .45rem; text-decoration: none; }
.closer-gl-table tr.closer-gl-cmp-total td { background: #fbf8ef; }
.closer-gl-table tr.closer-gl-cmp-row:hover td,
.closer-gl-table tr.closer-gl-cmp-row:focus td { background: #eef0f6; }
@media print {
    .closer-gl-cmp-bar,
    .closer-gl-table tr.closer-gl-cmp-row td,
    .closer-gl-table tr.closer-gl-cmp-total td {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* A commented GL line keeps its comment colour while a Compare is on: the comment is the
   reviewer's own mark; the compare still shows in the row's left rule and +/~/− sign. */
.closer-gl-table tr.closer-gl-commented td { background: #f3f4f7; }
.closer-gl-table tr.closer-gl-commented-open td { background: #edf0fb; }
.closer-gl-table tr.closer-gl-commented-mine td { background: #fbeef0; }

/* ── Account Groups editor (assets/javascript/account-groups) ───────────────── */
.ag-app { display: flex; flex-direction: column; gap: .75rem; }
.ag-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
/* The site-wide .btn bottom margin knocks buttons off the select's centre line in a flex row. */
.ag-app .btn { margin-bottom: 0; }
.ag-set-select { max-width: 22rem; }
.ag-propose { display: flex; flex-direction: column; gap: .5rem; padding: .75rem 1rem;
              border: 1px solid var(--fo-border-color, #e4e7ec); border-radius: .5rem; background: var(--fo-surface-2, #f9fafb); }
.ag-propose-head { display: flex; align-items: center; gap: .5rem; }
.ag-propose-examples { display: flex; flex-wrap: wrap; gap: .35rem; }
.ag-chip-button { cursor: pointer; }
.ag-chip-button:disabled { cursor: default; opacity: .6; }
.ag-chip-on { background: var(--fo-primary, #e91e63); border-color: var(--fo-primary, #e91e63); color: #fff; }
.ag-rule-choices { display: flex; flex-wrap: wrap; gap: .3rem; flex: 1 1 auto; }
.ag-propose-actions { display: flex; align-items: center; gap: .75rem; }
.ag-propose-steps { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; padding: 0; list-style: none;
                    font-size: 14px; color: var(--fo-text-muted, #475467); }
.ag-propose-step-current { color: var(--fo-text, #101828); }
.ag-moves { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.ag-move-head { display: flex; align-items: baseline; gap: .5rem; cursor: pointer; margin: 0; }
.ag-move-head .form-check-input { margin: 0; flex: none; align-self: center; }
.ag-move-off { opacity: .55; }
.ag-move-ops { margin: .15rem 0 0 1.6rem; padding: 0; list-style: none; font-size: 14px;
               color: var(--fo-text-muted, #475467); }
.ag-dropped { margin-top: .5rem; font-size: 14px; color: var(--fo-text-muted, #475467); }
.ag-alert { margin-bottom: 0; }
.ag-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--fo-text-muted, #475467); }
.ag-empty { padding: 1.5rem; border: 1px dashed var(--fo-border-color, #d0d5dd); border-radius: .5rem;
            color: var(--fo-text-muted, #475467); }
.ag-hint { font-size: 14px; color: var(--fo-text-muted, #475467); margin: .25rem 0; }
.ag-chip { display: inline-block; padding: 0 .45rem; border-radius: 999px; font-size: 12px; line-height: 1.5;
           background: var(--fo-surface-2, #f2f4f7); border: 1px solid var(--fo-border-color, #e4e7ec);
           white-space: nowrap; }
.ag-chip-muted { color: var(--fo-text-muted, #475467); }
.ag-chip-warn { color: var(--fo-orange, #f5820d); border-color: var(--fo-orange, #f5820d); background: transparent; }
.ag-count { flex: 0 0 2.5rem; min-width: 1.75rem; text-align: right; font-variant-numeric: tabular-nums;
            color: var(--fo-text-muted, #475467); font-size: 12px; }
.ag-icon-btn { padding: 0 .25rem; color: var(--fo-text-muted, #475467); }
.ag-issues { margin: 0; padding: .5rem .75rem; list-style: none; border-left: 3px solid var(--fo-orange, #f5820d);
             background: var(--fo-surface-2, #f2f4f7); font-size: 14px; }

.ag-panes { display: grid; grid-template-columns: minmax(16rem, 1fr) 2fr; gap: 1rem; align-items: start; }
.ag-pane { border: 1px solid var(--fo-border-color, #e4e7ec); border-radius: .5rem; padding: .5rem .75rem;
           min-width: 0; }
.ag-pane-accounts { position: sticky; top: 1rem; max-height: calc(100vh - 8rem); overflow-y: auto; }
.ag-pane-head { display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem;
                border-bottom: 1px solid var(--fo-border-color, #e4e7ec); }
.ag-account-list, .ag-tree, .ag-children { list-style: none; margin: 0; padding: 0; }
.ag-children { padding-left: 1.25rem; border-left: 1px solid var(--fo-border-color, #e4e7ec); margin-left: .6rem; }
.ag-account { display: flex; align-items: center; gap: .4rem; padding: .15rem .25rem; font-size: 14px;
              border-radius: .25rem; cursor: grab; }
.ag-account:hover { background: var(--fo-surface-2, #f2f4f7); }
.ag-account-inactive .ag-account-name { color: var(--fo-text-muted, #475467); text-decoration: line-through; }
.ag-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Rows end in fixed-width columns (type, placed-by, remove, amount; or actions, count, amount) so
   every amount lines up whatever the indent. */
.ag-account-type { margin-left: auto; flex: 0 0 10.5rem; font-size: 14px; color: var(--fo-text-muted, #475467);
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-account-via { flex: 0 0 3.25rem; text-align: center; }
.ag-account-act { flex: 0 0 1.5rem; text-align: center; }
.ag-node-spacer { flex: 1 1 auto; }
/* The left list never shows placed-by or remove; give the names that room. */
.ag-account-list .ag-account-via, .ag-account-list .ag-account-act { display: none; }
.ag-account-list .ag-account-type { flex-basis: 7.5rem; }
.ag-account { cursor: default; border-radius: .25rem; }
.ag-account-selected { background: var(--fo-primary-soft, #fde7ef); }
.ag-node-flash { animation: ag-flash 1.6s ease-out; }
@keyframes ag-flash { from { background: #fff3c4; } to { background: transparent; } }
/* One soft colour per company in a consolidation (ag-chip-co-N by its place in the collection). */
.ag-chip-co { border-color: transparent; color: #344054; }
.ag-chip-co-0 { background: #dbeafe; }
.ag-chip-co-1 { background: #dcfce7; }
.ag-chip-co-2 { background: #fef3c7; }
.ag-chip-co-3 { background: #f3e8ff; }
.ag-chip-co-4 { background: #ffe4e6; }
.ag-chip-co-5 { background: #e0f2fe; }
.ag-account-in { font-size: 14px; color: var(--fo-text-muted, #475467); padding: 0 0 .2rem 1rem; }

.ag-node-row { display: flex; align-items: center; gap: .4rem; padding: .2rem .25rem; border-radius: .25rem; }
.ag-node-row:hover { background: var(--fo-surface-2, #f2f4f7); }
.ag-node-row .ag-node-actions { visibility: hidden; display: inline-flex; flex: 0 0 9rem; justify-content: flex-end; }
.ag-node-row:hover .ag-node-actions { visibility: visible; }
.ag-node-drop { outline: 2px dashed var(--fo-orange, #f5820d); background: var(--fo-surface-2, #f2f4f7); }
.ag-node-label { cursor: default; }
.ag-node-heading { font-weight: 600; }
.ag-node-catchall .ag-node-label { font-style: italic; color: var(--fo-text-muted, #475467); }
/* A subtotal line (holds no accounts; the running total above it): the computed lines' look. */
.ag-node-subtotal .ag-node-label { font-weight: 600; font-style: italic; }
.ag-subtotal-mark { display: inline-flex; align-items: center; justify-content: center; color: var(--fo-text-muted, #475467); }
.ag-node-warn .ag-count { color: var(--fo-orange, #f5820d); font-weight: 600; }
.ag-label-input { max-width: 20rem; }

.ag-proposals { display: flex; flex-direction: column; gap: .5rem; }
.ag-proposal { border: 1px solid var(--fo-orange, #f5820d); border-radius: .5rem; padding: .5rem .75rem; }
.ag-proposal-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ag-proposal-summary { margin-top: .25rem; font-size: 14px; }
.ag-proposal-ops { margin: .25rem 0 0; font-size: 14px; max-height: 12rem; overflow-y: auto; }

.ag-new-set { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; padding: .75rem;
              border: 1px solid var(--fo-border-color, #e4e7ec); border-radius: .5rem; }
.ag-new-set-row { display: flex; flex-direction: column; min-width: 14rem; }
.ag-new-set-row .form-label { margin-bottom: .15rem; font-size: 14px; }
.ag-new-set-actions { display: flex; gap: .25rem; }
.ag-new-set-hint { flex-basis: 100%; margin: 0; }
/* The site theme draws text inputs borderless; here they sit beside bordered selects and read as labels. */
.ag-app input.form-control { border: 1px solid var(--fo-border-color, #d2d6da); background: #fff; padding: .25rem .5rem; }
.ag-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .25rem 0; }
.ag-inline .form-control { max-width: 22rem; }
.ag-inline-band { max-width: 12rem; }
/* Armed = the first click of a two-click delete (ArmButton). */
.ag-app .ag-armed, .ag-app .ag-armed:hover { color: #fff; background: #b42318; border-color: #b42318; }
.ag-app .ag-icon-btn.ag-armed { padding: 0 .4rem; border-radius: .25rem; font-size: .75rem; }
.ag-node-row .ag-node-actions:has(.ag-armed) { visibility: visible; }
/* Amounts beside the outline (set/amounts/): right-aligned, statement-style. */
.ag-amount { flex: 0 0 7rem; min-width: 7rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--fo-text, #101828);
             font-size: 14px; }
.ag-amount-heading { font-weight: 600; }
.ag-account .ag-amount { color: var(--fo-text-muted, #475467); }
.ag-period-select { max-width: 11rem; }
.ag-amounts-note { margin: 0 0 .25rem; }
.ag-overlaps ul { margin: .25rem 0 0; padding-left: 1.25rem; }
.ag-overlaps summary { cursor: pointer; }
/* Selects keep their border when focused (the theme drops it, so the box looked like it vanished). */
.ag-app .form-select, .ag-app .form-select:focus { border: 1px solid var(--fo-border-color, #d2d6da); }

.ag-rules { margin: .25rem 0 .5rem 1.75rem; padding: .5rem; border: 1px solid var(--fo-border-color, #e4e7ec);
            border-radius: .5rem; }
.ag-rule { padding: .25rem 0; }
.ag-rule-head { font-size: 14px; font-weight: 600; }
.ag-rule-line { display: grid; grid-template-columns: 12rem 1fr; gap: .25rem; margin-bottom: .25rem; }
.ag-rule-actions { display: flex; align-items: center; gap: .25rem; }
/* The left list in trial-balance order under type headers, the Move to bar, and the outline's
   lines the statement prints by itself (a heading's Total, Gross profit, Net income). */
.ag-sort-row { padding-top: .5rem; border-bottom: 0; }
.ag-pane-head .fo-check-search-box { flex: 1 1 auto; }
.ag-pane-head .fo-check-search-box .fo-check-search-input { padding-left: 2rem; padding-right: .5rem; }
.ag-account-group { display: flex; align-items: baseline; gap: .4rem; margin-top: .5rem; padding: .15rem .25rem;
                    border-bottom: 1px solid #dee2e6; font-size: 12px; font-weight: 600; letter-spacing: .06em;
                    text-transform: uppercase; color: #250d47; }
.ag-account-group .btn-link { font-size: 12px; letter-spacing: 0; text-transform: none; }
.ag-account-group-count { color: #495057; font-weight: 400; }
.ag-picked-bar { display: flex; align-items: center; gap: .5rem; margin: .25rem 0 .5rem; padding: .35rem .5rem;
                 border-radius: .375rem; background: var(--fo-primary-soft, #fde7ef); font-size: 14px; }
.ag-picked-target { flex: 1 1 auto; min-width: 0; }
.ag-node-auto .ag-node-label { font-weight: 600; color: #495057; }
.ag-node-auto:hover { background: transparent; }
.ag-notes { border-left-color: #1A73E8; }
.ag-notes summary { cursor: pointer; }
.ag-notes ul { margin: .25rem 0 0; padding-left: 1.25rem; }

@media (max-width: 900px) {
    .ag-panes { grid-template-columns: 1fr; }
    .ag-pane-accounts { position: static; max-height: 20rem; }
}
/* ── Closer home in My Desk's dress (2026-10-06) ───────────────────────────
   The sub-tabs as the desk tab strip (.desk-tab): .8rem purple ink, the
   selected tab solid dark purple with white text; tab count chips at the
   desk's 10px; the checks filter boxed like the desk filter inputs; and every
   table header on the page the dark purple band (.fo-table-header-cell). */
#closer-home-subtabs .nav-link,
#desk-board-tabs .nav-link,
#mrr-tabs .nav-link {
    font-size: 14px; line-height: 1.2; padding: .3rem .55rem; color: #250d47;
    border: 1px solid #ede9f5; border-bottom: none; border-radius: .45rem .45rem 0 0;
    background: #fff; margin-right: .25rem;
}
#closer-home-subtabs .nav-link:hover,
#desk-board-tabs .nav-link:hover,
#mrr-tabs .nav-link:hover { background: #fff; color: #e91e63; }   /* hot pink text and icon, no fill (Christopher, 2026-11-11) */
/* No grey rule under the strip (the nav-tabs border-bottom). */
#closer-home-subtabs.nav-tabs,
#desk-board-tabs.nav-tabs,
#mrr-tabs.nav-tabs { border-bottom: 0; }
/* Group labels on the tabs' text baseline: centring a 12px caps label on a
   .8rem mixed-case tab left it riding visibly off the tab text. The tabs'
   -1px nav-tabs overlap had nothing left to overlap. */
#closer-home-subtabs > .nav-item:not(.closer-subtabs-lights):not(.closer-subtabs-month) { align-self: baseline; }
#closer-home-subtabs .nav-link,
#desk-board-tabs .nav-link,
#mrr-tabs .nav-link { margin-bottom: 0; }
/* The lights + Closing month (they wrap to their own line under the tabs):
   room above them, and the same below before the page. */
#closer-home-subtabs .closer-subtabs-lights,
#closer-home-subtabs .closer-subtabs-month { padding-top: .4rem; padding-bottom: .4rem; }   /* equal: the content below no longer adds its own mt-2 of grey */
#closer-home-subtabs li.nav-item .nav-link.active,
#closer-home-subtabs li.nav-item .nav-link.active:hover,
#desk-board-tabs li.nav-item .nav-link.active,
#desk-board-tabs li.nav-item .nav-link.active:hover,
#mrr-tabs li.nav-item .nav-link.active,
#mrr-tabs li.nav-item .nav-link.active:hover {
    background: #250d47; border-color: #250d47; color: #fff;
}
/* The card-header tab strip (a product page's Workflows / Magic Reports …): 14px wherever it sits
   (outside a card it took the page's 16px); the open tab dark purple, the others body text, hot pink
   on hover. */
.card-header-tabs > .nav-item > .nav-link { font-size: 14px; color: #2d2c2f; padding: 5px 10px; margin-right: .25rem; }   /* .25rem apart, as the desk tabs */
.card-header-tabs > .nav-item > .nav-link.active { color: #250d47; }
.card-header-tabs > .nav-item > .nav-link:not(.active),
.card-header-tabs > .nav-item > .nav-link:not(.active):hover { border-color: #dee2e6 #dee2e6 transparent; background: transparent; }   /* outlined on the grey, no rule under */
.card-header-tabs > .nav-item > .nav-link:not(.active):hover { color: #e91e63; }
/* Firms / Clients / Companies (templates/teams/_directory_tabs.html) */
#fo-directory-tabs .nav-link .closer-note-number { font-size: 12px; padding: .2rem .5rem; margin: 0 0 0 .4rem; position: relative; top: -1px; }   /* the desk tabs' count chips; vertical-align: middle centres on the x-height, 1px under the label's middle */
#closer-home-subtabs .nav-link .closer-tab-count,
#desk-board-tabs .nav-link .closer-tab-count { font-size: 12px; padding: .2rem .5rem; }
#closer-home-subtabs .closer-subtabs-grouplabel span,
#closer-home-subtabs .closer-subtabs-month-eyebrow { font-size: 12px; color: #250d47; }
/* No vertical rule between the groups: the dark eyebrow labels mark them. */
#closer-home-subtabs .closer-subtabs-divider { display: none; }
/* …so each group label gets the room the divider used to give it. */
#closer-home-subtabs .closer-subtabs-grouplabel { margin-left: .75rem; }
#closer-home-subtabs .closer-subtabs-grouplabel:first-child { margin-left: 0; }

.fo-check-search-box { align-items: center; }
.fo-check-search-box .fo-check-search-input {
    height: 29px; font-size: 14px; background: #fff;
    border: 1px solid lightgray; border-radius: .5rem;   /* the top-bar search's radius */
    padding: 0 3.4rem 0 2rem;
}
/* The 3.4rem right pad is room for the ⌘⇧K hint (or a box's match count).
   A box with neither opts out, or the native clear × floats in from the
   edge (Impersonate a User, 2026-10-15). */
.fo-check-search-box.fo-check-search-box-bare .fo-check-search-input { padding-right: .5rem; }
/* A busy spinner inside the standard 29px button (btn-sm text-xs) is the size
   of the 12px icon it stands in for. Bootstrap's 1rem spinner-border-sm made
   the button grow while it spun (Impersonate a User, 2026-10-15). */
.btn.text-xs .spinner-border-sm { width: 12px; height: 12px; border-width: 2px; vertical-align: -1px; }
/* A working button's or status chip's spinner (where a Font Awesome fa-spin icon used to be): the
   Bootstrap spinner at the text's own size, in its colour, so the button doesn't grow
   (Christopher, 2026-10-22: Bootstrap spinners only). */
.spinner-border-sm.fo-btn-spinner { width: 1em; height: 1em; border-width: .15em; vertical-align: -.125em; }
/* Icon and ⌘⇧K hint as the top-bar search's (.fo-quicknav-search-icon /
   .fo-quicknav-kbd): inside the box, left and right. */
.fo-check-search-icon {
    position: absolute; left: .75rem; z-index: 1;
    top: 50%; transform: translateY(-50%); display: flex; line-height: 1;   /* absolute, so the box's align-items doesn't centre it */
    color: #9a8fb0; font-size: .75rem; pointer-events: none;
}
.fo-check-search-box .fo-check-search-kbd {
    position: absolute; right: .5rem; z-index: 1;
    top: 50%; transform: translateY(-50%); line-height: 1.4;
    padding: 0 .35rem; font-size: 12px; font-weight: 600; font-family: inherit;
    color: #9a8fb0; background-color: #fff; border: 1px solid #e4def0; border-radius: .35rem;
    pointer-events: none;
}

.fo-check-table th,
.closer-builtin-cfg-table th,
.closer-builtin-tl-table th,
.closer-builtin-grid th,
.closer-package-table thead th,
.fo-fix-table thead th {
    background: #250d47 !important; color: #fff !important;
    font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: normal;
    border-bottom: 0;
}
.fo-check-table > thead > :where(tr) > th { box-shadow: none; }

/* The checks table's cadence menu stacks over the rows below. Each row is a
   <tbody> with will-change: transform (the drag reorder), which makes it its
   own stacking context, so z-index on the menu alone can't escape it: raise
   the row that holds an open menu instead. */
.fo-check-table tbody[data-check-key]:has(.closer-status-menu[open]) { position: relative; z-index: 40; }
/* Cadence chips (menu, its options, and the static ones) at the desk's 10px. */
.fo-check-table .fo-cadence-chip,
.fo-check-table .fo-cadence-menu .closer-pill,
.fo-check-table .fo-cadence-menu summary.closer-pill {
    font-size: 12px !important; padding: .25rem .6rem !important;
}

/* Run all checks now: side padding equal to its top/bottom (btn-sm's y). */
.btn-sm.closer-runall-btn,
.closer-title-actions .btn-sm,
.btn-sm.fo-cq-send-open { --bs-btn-padding-x: .65rem; }   /* and the title row's Get started / Firm checks / Firm tasks: between btn-sm's 1rem and the y .375rem */
/* Run all checks now and its last-run note on one centred line, in the
   checks filter row right after the filter box. */
.closer-runall-form { display: flex; align-items: center; flex-wrap: wrap; margin: 0 0 0 1rem; }   /* right after the filter, not pushed to the far edge */
/* Equal space either side of Run all: 1.5rem before it (the row's .5rem gap
   + its own 1rem; the empty match count adds no second gap) and 1.5rem
   after, before the LAST RUN note. */
.fo-check-search .fo-check-search-count:empty { display: none; }
.closer-runall-form > .fo-overview-subtle { margin-left: 1.5rem !important; }
/* The last-run note at the desk's 12px. */
#check-last-run { font-size: 14px; display: inline-flex; align-items: center; gap: .5rem; }   /* when · the new chip · resolved, spaced by the gap (no dash) */
.fo-check-search { align-items: center; }

/* Monthly Review with its chat open, on a wide screen (Jesse, 2026-10-20: the chat
   squeezed the narrative to a sliver and the page scrolled): both columns fit the window
   (fo-check-scroll.js measures each). The narrative scrolls in its own box, so the generic
   75vh cap on the column would only nest a second scroller; the chat column takes the
   window's height and its thread fills what the header and composer leave. */
@media (min-width: 992px) {
    #cpane-monthly .closer-discuss-split:not(.closer-discuss-collapsed) > .closer-discuss-main {
        max-height: none;
        overflow-y: visible;
    }
    #cpane-monthly .closer-discuss-split:not(.closer-discuss-collapsed) > .closer-discuss-aside[style*="--fo-check-scroll-h"] {
        height: var(--fo-check-scroll-h);
        display: flex;
        flex-direction: column;
    }
    #cpane-monthly .closer-discuss-aside[style*="--fo-check-scroll-h"] :is(.closer-review-chat-mount, .closer-note-chat, .closer-note-chat-panel) {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    #cpane-monthly .closer-discuss-aside[style*="--fo-check-scroll-h"] .closer-note-chat-messages {
        flex: 1 1 auto;
        min-height: 6rem;
        max-height: none;
        resize: none;
    }
}
/* Narrower, with the columns still side by side (no window fit there): the chat column
   takes the narrative column's 75vh, so it no longer runs the page past the narrative. */
@media (min-width: 47.5rem) and (max-width: 991.98px) {
    #cpane-monthly .closer-discuss-split:not(.closer-discuss-collapsed) > .closer-discuss-aside {
        height: 75vh;
        display: flex;
        flex-direction: column;
    }
    #cpane-monthly .closer-discuss-split:not(.closer-discuss-collapsed) > .closer-discuss-aside
        :is(.closer-review-chat-mount, .closer-note-chat, .closer-note-chat-panel) {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    #cpane-monthly .closer-discuss-split:not(.closer-discuss-collapsed) > .closer-discuss-aside .closer-note-chat-messages {
        flex: 1 1 auto;
        min-height: 6rem;
        max-height: none;
        resize: none;
    }
}

/* Checks text at My Desk's ink: the description (a <p>, so the theme's
   weight 300) and the 0 / — findings were a washed-out grey. */
.fo-check-desc { color: #2d2c2f; font-weight: 400; }
.fo-findings-none { color: #2d2c2f; }

/* The checks table fits the window on wide screens (check_catalog_list.html
   measures --fo-check-scroll-h): it scrolls inside itself, so the page does
   not, and its column header freezes at ITS top rather than under the page's
   tab strip. The filter sits just above it, outside the scroller. */
@media (min-width: 992px) {
    .fo-check-scroll[style*="--fo-check-scroll-h"],
    .fo-cq-scroll[style*="--fo-check-scroll-h"] {
        max-height: var(--fo-check-scroll-h);
        overflow-y: auto;
    }
    /* The filter sits above the scroller, so in here the header freezes at
       the very top and a scrolled-to row clears just the header. */
    /* The whole thead is the ONE sticky box, not each th: five separately stuck cells round their
       fractional bottom edge independently, and on a 1x screen Findings and Settings ended a pixel
       lower than the rest (Christopher, 2026-10-12). The purple is painted once, on the thead, too:
       per-cell fills still left Settings (the last cell) a pixel low. */
    .fo-check-scroll[style*="--fo-check-scroll-h"] .fo-check-table > thead { position: sticky; top: 0; z-index: 24; background: #250d47; }
    .fo-check-scroll[style*="--fo-check-scroll-h"] .fo-check-table > thead > :where(tr) > th { position: static; top: 0; background: transparent !important; }
    /* The Desk board's movable headers hold their resize edge (TM-2318). */
    .fo-check-scroll[style*="--fo-check-scroll-h"] .fo-check-table.desk-board-table > thead > :where(tr) > th[data-col] { position: relative; }
    .fo-check-scroll[style*="--fo-check-scroll-h"] .fo-check-table .fo-check-row,
    .fo-check-scroll[style*="--fo-check-scroll-h"] .fo-check-table .fo-check-expand {
        scroll-margin-top: 2.5rem;
    }
}

/* The lights' hover popovers (Recs / Checks / Workflows) in the desk's dress:
   a plain header (no grey band), body text at My Desk's ink, every link the
   site pair (dark purple, hot pink on hover), statuses as 10px chips. */
.closer-light-pop .popover-header { background: #fff; border-bottom: 1px solid #ede9f5; color: #250d47; font-weight: 700; }
.closer-light-pop .popover-body { color: #2d2c2f; }
.closer-light-pop .popover-body .text-muted { color: #495057 !important; }
.closer-light-pop a,
.closer-light-pop .closer-light-pop-link,
.closer-light-pop .closer-light-pop-sheet { color: #250d47; text-decoration: none; }
.closer-light-pop a:hover,
.closer-light-pop a:focus-visible { color: #e91e63; }
.closer-light-pop .closer-light-pop-prod { color: #2d2c2f; }
.closer-light-pop .closer-light-pop-errtext { color: #495057; }
/* A workflow's row, three columns: the name, its sheet icon, its status chip (the last two lined up). */
.closer-light-pop-row { display: flex; align-items: center; gap: .5rem; }
.closer-light-pop-row > .closer-light-pop-name { flex: 1 1 auto; min-width: 0; }
.closer-light-pop-row > .closer-light-pop-sheetcol { flex: none; width: 1rem; text-align: center; }
.closer-light-pop-row > .closer-light-pop-chip { flex: none; }
/* What needs work in a light's popover (an account's "not reconciled", a check's "3 high") is a red
   chip (closer-status-dismissed, Christopher 2026-10-22). */
/* An account's status after its name: the through date in body text at regular weight (even on a
   bold row that needs work); the chips inside it keep their own. */
.closer-light-pop-status { color: #2d2c2f; font-weight: 400; }
/* Workflows and Bank Recs: a table with no header (Christopher, 2026-10-22), no bullets, the rows split
   by the table standard's light grey rule. */
.closer-light-pop .closer-light-pop-table { list-style: none !important; padding-left: 0; margin-bottom: .5rem; }
.closer-light-pop .closer-light-pop-table > li { margin: 0; padding: 4px 0; border-bottom: 1px solid #dee2e6; }
.closer-light-pop .closer-light-pop-table > li:first-child { border-top: 1px solid #dee2e6; }
/* Bank Recs' rows share three columns: account · through date · what needs work. The account's name
   wraps and the chips' column takes what its chips need (up to 13rem, then they wrap onto a second line):
   a long name squeezed "1 STATEMENT WAITING" to nothing and the popover cut it off at its edge
   (chinatalk, Jesse 2026-11-09, TM-2290). */
.closer-light-pop .closer-light-pop-table.closer-light-pop-cols { display: grid; grid-template-columns: minmax(7rem, 1fr) max-content fit-content(13rem); column-gap: .75rem; }
.closer-light-pop .closer-light-pop-cols > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; }
.closer-light-pop .closer-light-pop-cols > li > .closer-light-pop-name { min-width: 0; overflow-wrap: anywhere; }
.closer-light-pop .closer-light-pop-cols > li > .closer-light-pop-status:last-child { display: flex; flex-wrap: wrap; gap: 2px .15rem; }
.closer-light-pop .closer-light-pop-cols > li > .closer-light-pop-status:last-child > .closer-light-pop-chip { margin-left: 0; }
.closer-light-pop .closer-light-pop-chip { font-size: 12px; padding: .15rem .5rem; margin-left: .15rem; }
/* Wider (Bootstrap caps a popover at 276px; long account names wrapped their
   dates onto a second line), and the Bank Recs accounts as a bulleted list. */
.popover.closer-light-pop { --bs-popover-max-width: min(30rem, calc(100vw - 32px)); max-width: min(30rem, calc(100vw - 32px)); }
.closer-light-pop .closer-light-pop-bullets { list-style: disc !important; padding-left: 1.1rem; }
.closer-light-pop .closer-light-pop-bullets li::marker { color: #250d47; }

/* The Findings, Run and Settings columns (and their headers) centred. */
#cpane-checks .fo-check-table td.fo-check-col-settings,
#cpane-checks .fo-check-table th.fo-check-col-settings,
#cpane-checks .fo-check-table td.fo-check-col-findings,
#cpane-checks .fo-check-table th.fo-check-col-findings,
#cpane-checks .fo-check-table td.fo-check-col-run,
#cpane-checks .fo-check-table th.fo-check-col-run { text-align: center; }   /* the client Checks tab only: Firm Checks' Settings column holds forms */

/* The Closing-month menus' status chips (views._CLOSE_STATUS_MARKER's chip
   fill): the desk's 10px, Open in the brand pink, Not started a quiet grey. */
.closer-month-chip { font-size: 12px; padding: .2rem .5rem; margin-left: auto; }
/* The month and its status dot a size down (12px text, 10px dot). */
.dropdown-menu .dropdown-item:has(> .closer-month-chip) { font-size: 14px; color: #2d2c2f; justify-content: flex-start !important; }   /* 14px; its chip follows the month (Christopher, 2026-11-11) *   /* body ink, as the check descriptions */
.dropdown-menu .dropdown-item:has(> .closer-month-chip) > span:first-child > :is(i, svg) { font-size: 10px; }
/* Each month row spans the menu, so the chips line up on its right edge. */
.dropdown-menu .dropdown-item:has(> .closer-month-chip) { width: 100%; }
.closer-month-chip-open { background: #fde4ef; color: #c2185b; }
.closer-month-chip-none { background: #eef0f3; color: #4b5563; }

/* The review lights: each label to the LEFT of its lamps (was stacked on
   top), in the strip's dark purple like the group labels beside it. */
.closer-review-lights .closer-light { flex-direction: row; align-items: center; gap: .35rem; }
.closer-review-lights .closer-light-name {
    color: #250d47; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 600;   /* the strip's eyebrow labels (CLOSING) */
}

/* The Closing month + lights row: a full-width break puts it on its own line
   under the tabs, month first at the left edge, the lights after it. */
#closer-home-subtabs .closer-subtabs-break { flex-basis: 100%; height: 0; list-style: none; }
#closer-home-subtabs .closer-subtabs-month { padding-left: 0; padding-right: .75rem; }
#closer-home-subtabs .closer-subtabs-lights { padding-left: .25rem; }

/* A small caps eyebrow label in the strip's style (CLOSING, the tab groups):
   "LAST RUN:" before the checks' last-run line. */
.closer-eyebrow,
.fo-detail-grid > dt {   /* a label / value list's labels are the caps label (AI Connectors) */
    font-size: 12px; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: #250d47; white-space: nowrap;
}

/* The Closing month picker: the standard white control with the light grey
   border (the filter inputs'), not the outline-secondary dark ring. */
#closer-month-dd-strip {
    background: #fff; border: 1px solid lightgray; color: #2d2c2f;
    /* The month left, the chevron at the right edge (as the desk dropdowns),
       in a box wide enough for "SEPTEMBER 2026". */
    display: inline-flex; align-items: center; justify-content: space-between;
    gap: .5rem; min-width: 11rem; text-align: left;
    /* The desk dropdowns' box: 29px tall, 8px in from each edge, so the dot
       and the chevron sit near the borders rather than a btn-sm 1rem in. */
    height: 29px; padding: 0 8px;
}
/* The dot and the month travel together on the left (as two loose flex
   items, space-between centred the month); the ::after chevron takes the
   right edge. */
.closer-month-dd-label { display: inline-flex; align-items: center; line-height: 1; }
/* The label sits on the box's middle as it is: a 1px downward nudge for caps left "SEP 2026" visibly low
   (Christopher, 2026-10-26). */
.closer-month-dd-label > :is(i, svg) { margin-right: .4rem !important; }
#closer-month-dd-strip::after { margin-left: auto; line-height: 1; display: block; }
#closer-month-dd-strip:hover, #closer-month-dd-strip:focus { background: #fff; border-color: #aaa; color: #2d2c2f; box-shadow: none; }

/* The catalog summary's "some switched off" state: body ink, no colour. */
.fo-check-summary-plain { color: #2d2c2f; }

/* Closer's page title in My Desk's heading style (.conversations-panel
   h1.fo-title): 1.5rem, 600, the icon at text size. */
li h1.fo-title.closer-page-title { padding-right: 16px; }   /* size, weight and icon: the shared .fo-title, as Reconciler's (2026-10-09) */

/* A grey frame round the checks table (its scroller, so the scrollbar sits
   inside the frame too). */
.fo-check-scroll { border: 1px solid #dee2e6; }

/* The context bar on top of the tab's card (closer_home.html): the Closing
   month, the lights, and — on the Checks tab — the catalog summary at the
   right. White, joined to the card under it (that card loses its top
   corners), the items vertically centred. */
.closer-context-bar {
    padding: 1.5rem 1.5rem .25rem; background: #fff;   /* My Desk's inset (.app-card's 1.5em), all four sides */
    border-radius: var(--bs-card-border-radius, .75rem) var(--bs-card-border-radius, .75rem) 0 0;
}
/* …and inside it, the grey band with rounded corners (Christopher,
   2026-10-06: "in the gray bar again, but … inside the card"). */
.closer-context-bar-inner {
    display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem;
    padding: .4rem .75rem; background: #f0f2f5; border-radius: .5rem;
}
.closer-home > .tab-pane > .card:first-child { border-top-left-radius: 0; border-top-right-radius: 0; }
/* The bar already spaces the top; the sides and bottom take My Desk's
   1.5rem, so the card's inset is the same on all four sides. */
.closer-home > .tab-pane > .card:first-child > .card-body { padding: .5rem 1.5rem 1.5rem; }
/* …and on the Reconciler for a Closer team, beside the title (Jesse, 2026-10-08). */
.closer-context-bar .closer-subtabs-month,
.closer-closing-in-place { display: flex; align-items: center; gap: .5rem; }
.closer-context-bar .closer-subtabs-month-eyebrow,
.closer-closing-in-place .closer-subtabs-month-eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
}
.closer-context-bar .closer-subtabs-lights { display: flex; align-items: center; }
.closer-context-summary { display: none; margin-left: auto; font-size: 14px; }
.closer-home:has(> #cpane-checks.active) .closer-context-summary { display: inline; }

/* A check's settings drawer: left-aligned (the drawer row inherited the
   table's centring), its inputs and selects in the desk filter style, and
   the dark Save (.btn-ink, as My Desk's rail). */
.fo-check-settings-form, .fo-check-settings-form .fo-check-param { text-align: left; }
.fo-check-settings-form .fo-check-param-input,
.fo-check-settings-form .fo-check-param-select,
.fo-check-settings-form .fo-check-assignee-select {
    height: 29px; font-size: 14px; background-color: #fff;
    border: 1px solid lightgray; border-radius: .375rem;
}
.fo-check-settings-form .fo-check-param-input { padding: 0 .5rem; width: 4rem; }   /* half the old 8rem: these hold a short number */
.fo-check-settings-form .fo-check-param-select,
.fo-check-settings-form .fo-check-assignee-select { padding: 0 1.75rem 0 .5rem; background-position: right .5rem center; }

/* Save sits on a line of its own under a check's settings (client drawer and
   Firm Checks' defaults alike). */
.fo-check-settings-form .fo-check-save-row { flex-basis: 100%; width: 100%; }

/* A check's title row: the status icon in a fixed 1rem slot with the row's
   .35rem gap, so the title starts at 1.35rem — the description's indent —
   and the icon centres on the title line. (The client row's icon is a
   button inside .fo-check-onoff-form; the firm row's is a bare icon.) */
.fo-check-head > .fo-check-onoff-form,
.fo-check-head > :is(i, svg):first-child {
    flex: none; width: 1rem; margin: 0 !important;
    display: inline-flex; align-items: center; justify-content: center;
}
.fo-check-head .fo-check-onoff { display: inline-flex; align-items: center; }
/* The note under a check (why it's off or won't run) laid out like the title row: its icon in the
   same 1rem slot under the status icon, its text under the title, past the drag handle when the
   row has one (.8rem + its .45rem margin + the row's .35rem gap). */
.fo-check-head ~ .fo-check-reason { display: flex; align-items: flex-start; gap: .35rem; margin-left: 0; line-height: 1.4; }
/* The icon centred on the first line's capitals (.15em down measured level; .2em sat it low), not on
   the baseline, where it rode lower still. */
.fo-check-head ~ .fo-check-reason > :is(i, svg):first-child { flex: none; width: 1rem; margin: .15em 0 0 !important; }
.fo-check-head:has(> .fo-check-handle) ~ .fo-check-reason { margin-left: 1.6rem; }

/* Firm Checks' Settings defaults: the boxes start at the column's left edge
   (under its header — the drawer's description indent doesn't apply here)
   and fill the column. */
.fo-check-table td.fo-check-col-settings .fo-check-settings-form { margin: 0; }   /* top too: level with the row's chips */
/* The column is nowrap (width: 1%) for the client tab's gear; holding forms,
   it wraps its labels and notes inside a fixed width instead of running one
   long line. */
.fo-check-table td.fo-check-col-settings:has(.fo-check-settings-form) { white-space: normal; width: 26rem; min-width: 22rem; }
.fo-check-table td.fo-check-col-settings .fo-check-param { display: flex; width: 100%; }
.fo-check-table td.fo-check-col-settings .fo-check-param-label,
.fo-check-table td.fo-check-col-settings .fo-check-param-note { max-width: none; }

/* A green Save, dirty or not (the dirty state's blue would override it). */

/* A check setting's dropdown (fo-combobox, plain): the box's width, the
   desk filter's look (desk-combobox), value left and caret right. */
.fo-check-settings-form .fo-combobox.desk-combobox { display: block; width: 100%; min-width: 12rem; }
.fo-check-settings-form .desk-combobox .fo-combobox-display { justify-content: space-between; }
.fo-check-settings-form .desk-combobox .fo-combobox-display-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Closer Questions tab in the desk's dress (2026-10-06) ───────────────── */
/* The pick box: the site's checkbox, flush. */
.fo-cq-pick.form-check-input.fo-check-bare[type=checkbox] { margin: 0; }
/* The pencil that says a question is editable. */
.fo-cq-edit-cue { font-size: 14px; color: #495057; }
.fo-cq-question-editable:hover .fo-cq-edit-cue { color: #250d47; }
/* Its edit box (and the answer / withdraw boxes): a real border. */
.fo-cq .fo-cq-question-edit .form-control,
.fo-cq .fo-cq-inline .form-control {
    background: #fff; border: 1px solid lightgray; border-radius: .375rem; padding: .35rem .5rem; font-size: 14px;
}
.fo-cq .fo-cq-question-edit-actions { gap: .5rem; margin-top: .4rem; }
/* A question's tag at the desk's 10px chip size. */
.fo-cq-tag { font-size: 12px; padding: .2rem .5rem; }
/* The Show filter as a plain fo-combobox (value left, caret right). */
.fo-cq .closer-head-actions .fo-combobox.desk-combobox { min-width: 13rem; }   /* the Show filter only: not the To/Cc pickers of a question's composer */
.fo-cq .closer-head-actions .desk-combobox .fo-combobox-display { justify-content: space-between; }
/* The transactions as a bulleted list (the li is a flex row, so the bullet
   is drawn, not the list marker). */
.fo-cq-txns li { position: relative; padding-left: .9rem !important; }
.fo-cq-txns li::before { content: "\2022"; color: #250d47; position: absolute; left: .15rem; }   /* in the indent, so a wrapped bank line starts under the text */
/* The pick box sits at the top of its row (level with the question), not
   centred on the whole row. */
/* The old pick column is empty now (the box is on the question line). */
.fo-cq .fo-cq-table > tbody > tr > td:first-child { width: 0; padding-left: 0 !important; padding-right: 0 !important; }   /* child-only: not the transactions table nested inside */
/* The pick box sits on the question's own line (closer-client-questions.js,
   .fo-cq-question-line): a flex row centres the two on each other. */
.fo-cq .fo-cq-question { line-height: 20px; }
.fo-cq-question-line { display: flex; align-items: center; gap: .5rem; }
.fo-cq-question-line > .fo-cq-pick { flex: none; width: 14px; height: 14px; margin: 0; }
.fo-cq-question-line > .fo-cq-pick-slot { flex: none; width: 14px; }
/* Editing: the line holds the text box and its buttons, so centring would
   drop the box to the buttons; pin it level with the text box's first line
   (its 1px border + .35rem padding + half an 18px line, less half the box). */
.fo-cq-question-line:has(> .fo-cq-question-edit) { align-items: flex-start; }
.fo-cq-question-line:has(> .fo-cq-question-edit) > .fo-cq-pick { margin-top: 9px; }
/* Everything under the question line (tags, transactions, the thread) keeps
   the question's left edge, past the box and its gap. */
.fo-cq-question-cell > :not(.fo-cq-question-line) { margin-left: calc(14px + .5rem); }
.fo-cq-question-line > :not(.fo-cq-pick):not(.fo-cq-pick-slot) { flex: 1; min-width: 0; }   /* the question grows; the box or its empty slot stays 14px */
/* One text size across the tab: the desk's 12px for the question, its
   transactions, notes and answers (chips stay 10px, the heading its own). */
.fo-cq .fo-cq-table,
.fo-cq .fo-cq-question,
.fo-cq .fo-cq-txns,
.fo-cq .fo-cq-txns .small,
.fo-cq .fo-cq-txns-head .small,
.fo-cq .fo-cq-txns-toggle,
.fo-cq .fo-cq-answer,
.fo-cq .fo-cq-question-cell .small,
.fo-cq .fo-cq-done-toggle,
.fo-cq > .text-muted.small { font-size: 14px; }
/* The pick box at the site checkbox's size beside 12px text (1.23em). */
.fo-cq-pick.form-check-input { font-size: 14px; }
/* Room under each question's rule before its checkbox and text. */
.fo-cq .fo-cq-table > tbody > tr > td { padding-top: .75rem; padding-bottom: .75rem; }
/* The rule between questions a clear grey (the table default all but
   vanished), darker than the transactions' rules inside each. */
.fo-cq .fo-cq-table > tbody > tr > td { border-bottom: 1px solid #bfc4cc; }   /* the same room above and below each rule */
/* The "N transactions" toggle is a link: the site pair, dark purple with hot
   pink on hover (its caret follows). */
.fo-cq .fo-cq-txns-toggle { color: #250d47; }
.fo-cq .fo-cq-txns-toggle:hover, .fo-cq .fo-cq-txns-toggle:focus-visible { color: #e91e63; }
/* A short list's "N transactions · $total" (not a toggle): body ink. */
.fo-cq .fo-cq-txns-head > .small.text-muted { color: #2d2c2f !important; }
/* The question itself a step above the 12px around it (was 14px). */
.fo-cq .fo-cq-question { font-size: 14px; }
/* Breathing room between a question, its internal note and its tags. */
.fo-cq-question-cell > .fst-italic,
.fo-cq-question-cell > div:has(> .fo-cq-tag) { margin-top: .4rem !important; }
/* Darker text: notes, resolutions and the count line in My Desk's dark grey
   (they were text-muted), and the finished list faded less (0.6 made it
   hard to read; it still recedes behind the open questions). */
.fo-cq .fo-cq-question-cell .text-muted { color: #495057 !important; }
.fo-cq .fo-cq-done { opacity: .85; }
.fo-cq .fo-cq-done:hover { opacity: 1; }

/* A question's transactions (staff): a borderless table, no header, rules
   between rows, each column aligned. The whole line opens the transaction
   (Jesse, 2026-11-09): the site's row hover, its reference a link, an Open button. */
.fo-cq-txns-table { border-collapse: collapse; margin-top: .35rem; font-size: 14px; width: auto; }
.fo-cq-txns-table tr.fo-cq-txn-opens { cursor: pointer; }
.fo-cq-txns-table tr.fo-cq-txn-opens:hover td { background: #e7f1ff; }
.fo-cq-txns-table tr.fo-cq-txn-opens:hover .fo-cq-txn-ref a { color: #e91e63; }
.fo-cq-txns-table .fo-cq-txn-ref .rec-divide-link-btn { color: #250d47; font-size: 12px; font-weight: 400; }
.fo-cq-txns-table .fo-cq-txn-ref .rec-divide-link-btn:hover, .fo-cq-txns-table .fo-cq-txn-ref .rec-divide-link-btn:focus-visible { color: #e91e63; }
/* A bank row's statement pane, over the page's right edge: the divide's floating pane with no divide under it. */
.fo-cq-stmt-dock { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1070; }
.fo-cq-txns-table td { padding: .3rem .75rem .3rem 0; border-bottom: 1px solid #dee2e6; white-space: nowrap; vertical-align: middle; }   /* the site's rule grey: #eceef1 vanished on the faded finished list */
.fo-cq-txns-table tr:last-child td { border-bottom: 0; }
.fo-cq-txns-table tr:has(+ .fo-cq-txn-memo-row) td { border-bottom: 0; }
.fo-cq-txns-table td.fo-cq-txn-amount { text-align: right; font-variant-numeric: tabular-nums; }
.fo-cq-txns-table td.fo-cq-txn-x { padding-right: .5rem; }   /* the leading column now */
.fo-cq-txns-table a { color: #250d47; text-decoration: none; }
.fo-cq-txns-table a:hover, .fo-cq-txns-table a:focus-visible { color: #e91e63; }
.fo-cq-txns-table .fo-cq-txn-memo { white-space: normal; padding-top: 0; color: #495057; }
/* "Resolved or withdrawn" toggle: bold, its count the tab strip's grey chip. */
.fo-cq .fo-cq-done-toggle { font-weight: 700; display: inline-flex; align-items: center; }
.fo-cq .fo-cq-done-count { font-size: 12px; padding: .2rem .5rem; margin: 0 0 0 .4rem; }

/* In a work item's embedded conversation the rail starts level with the
   thread (the 1rem top inset is the detail page's, under its card header),
   and every section bar is the same height, chips or not. */
.conversations-embed-side.conversations-side { padding-top: 0; }
summary.conversations-side-head { min-height: 28px; }
.conversations-side-head-chip { line-height: 1.2; }
/* A question's "N transactions · $total" line in bold, plain or as the toggle. */
.fo-cq .fo-cq-txns-head > .small.text-muted,
.fo-cq .fo-cq-txns-head > .fo-cq-txns-toggle { font-weight: 700; }
/* The transactions table sits inside the questions table (.table), whose
   theme rules reach nested cells and strip their borders: pin the rules,
   one under each transaction (under its Bank line when it has one). */
.fo-cq .fo-cq-txns-table td { border-bottom: 1px solid #dee2e6 !important; border-top: 0 !important; }
.fo-cq .fo-cq-txns-table tr:has(+ .fo-cq-txn-memo-row) td,
.fo-cq .fo-cq-txns-table tr:last-child td { border-bottom: 0 !important; }
/* Equal room above and below a question's "N transactions" line (the tags
   above sat close; the Resolution line below further off). */
.fo-cq .fo-cq-question-cell > .fo-cq-txns-box { margin-top: .6rem !important; }
.fo-cq .fo-cq-question-cell > .fo-cq-txns-box + * { margin-top: .6rem !important; }

/* A question's conversation (Closer Questions tab): its messages without the
   card border, and the rail's first line level with the first message's
   head (the message's .5rem inset, which the bar's margin now matches). */
.fo-cq-thread .conversations-msg { border: 0; }
.fo-cq-thread .conversations-embed-side .conversations-side-section[open] > summary.conversations-side-head { margin-bottom: .5rem; }
/* Room between a toggle's chevron and its text ("5 transactions",
   "Resolved or withdrawn"). */
.fo-cq .fo-cq-txns-caret { margin-right: .35rem; }
/* The questions list scrolls inside itself: keep its rows (and their rules)
   off the scrollbar with the same right inset the card gives the text. */
.fo-cq-scroll { padding-right: .75rem; }
/* Room after the Conversation toggle's chevron, before its icon. */
.closer-task-thread-toggle .closer-task-thread-caret { margin-right: .4rem; }

/* ── Monthly Review tab in the desk's dress (2026-10-06) ──────────────────
   Its head row's buttons the small set (.text-xs, the title row's .65rem
   sides), its status chip the desk's 10px, Run now the green Run with the
   running man (as Run all checks now), and the review text at 12px. */
#cpane-monthly .closer-head-actions .btn-sm { --bs-btn-padding-x: .65rem; }
#cpane-monthly .closer-head-actions > .closer-pill,
#cpane-monthly .closer-head-actions .closer-status-badge:not(.closer-month-chip) { font-size: 12px; padding: .25rem .6rem; }
/* The review's text at 12px, its headings at the 14px sub-header (dark purple, 600), its tables in the
   table standard (Christopher, 2026-10-22). */
#cpane-monthly .ai-markdown { font-size: 14px; }
#cpane-monthly .ai-markdown th { font-size: 12px; }
#cpane-monthly .ai-markdown :is(p, li, td) { font-size: 14px; }
#cpane-monthly .ai-markdown td { font-size: 14px; }   /* table data at 14px (Christopher, 2026-11-10) */
#cpane-monthly .ai-markdown :is(h1, h2, h3, h4, h5, h6) { font-size: 14px !important; font-weight: 600; color: #250d47; margin: .9rem 0 .4rem; line-height: 1.3; }
#cpane-monthly .ai-markdown.closer-summary table { border: 0; border-collapse: collapse; margin: .4rem 0 .75rem; }
#cpane-monthly .ai-markdown.closer-summary th { background: #250d47; color: #fff; font-weight: 600; border: 0; border-bottom: 1px solid #dee2e6; padding: 5px 10px; }
#cpane-monthly .ai-markdown.closer-summary td { background: #fff; color: #2d2c2f; border: 0; border-bottom: 1px solid #dee2e6; padding: 5px 10px; }
#cpane-monthly .ai-markdown.closer-summary tbody tr:hover > td { background: #e7f1ff; }
/* A status chip beside a section heading: the desk's 10px chip. */
.closer-heading-chip { font-size: 12px; padding: .25rem .6rem; margin-left: .6rem; font-weight: 600; }

/* The lights' caps labels ride a touch high beside the lamp pills: down 1px. */
.closer-review-lights .closer-light-name { position: relative; top: 1px; }
/* The review's month beside "Monthly Review": the heading's size, the pink
   the old Review Period line wore. */
.closer-heading-period { color: #e91e63; margin-left: .5rem; }
/* INITIAL RUN as its own block: close under the heading, room before the
   review's first section. */
#cpane-monthly .closer-section-head { margin-bottom: .25rem; }
#cpane-monthly .closer-summary > p:first-child { margin-top: 0; margin-bottom: 1rem; }

/* ── Financials tab in the desk's dress (2026-10-06) ─────────────────────
   Statement tabs as the Closer tab strip (desk tabs), the toolbar's buttons
   the small set, and the Flux thresholds as filter inputs with an eyebrow
   label (as LAST RUN). */
.closer-fin-stmt-tabs.nav-tabs { border-bottom: 0; }
.closer-fin-stmt-tabs .nav-link {
    font-size: 12px; line-height: 1.2; padding: .3rem .55rem; color: #250d47; font-weight: 400;
    border: 1px solid #ede9f5; border-bottom: none; border-radius: .45rem .45rem 0 0;
    background: #fff; margin-right: .25rem; margin-bottom: 0;
}
.closer-fin-stmt-tabs .nav-link:hover { background: #fff; color: #e91e63; }
.closer-fin-stmt-tabs li.nav-item .nav-link.active,
.closer-fin-stmt-tabs li.nav-item .nav-link.active:hover {
    background: #250d47; border-color: #250d47; color: #fff;
}
/* M / Y: small, the selected one in the strip's dark purple. */
.closer-fin-basis .btn { font-size: .7rem; padding: .2rem .5rem; }
.closer-fin-basis .btn.active { background: #250d47; border-color: #250d47; color: #fff; }

#cpane-financials .closer-head-actions .btn-sm { --bs-btn-padding-x: .65rem; font-size: .75rem; }
#cpane-financials .closer-head-actions { flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.closer-fin-flux-group { height: 29px; border-color: lightgray; }
.closer-fin-flux-group:focus-within { border-color: #e91e63; }   /* the box focuses, not the borderless input inside it */
.closer-fin-flux-input { font-size: 14px; }
.closer-fin-flux-sym { font-size: 14px; color: #495057; }
/* The Financials month button: the standard white control with the light
   grey border (as the Closing picker), not the month's tint — the tint is
   for the period chips in its menu. */
#cpane-financials #closer-period-dd.btn {
    background: #fff !important; color: #2d2c2f !important; border: 1px solid lightgray !important; box-shadow: none;
}
#cpane-financials #closer-period-dd.btn:hover, #cpane-financials #closer-period-dd.btn:focus { border-color: #aaa !important; }
/* One height for the toolbar's controls. */
#cpane-financials .closer-head-actions .btn-sm { height: 29px; display: inline-flex; align-items: center; }
/* The Financials month menu (every month back to the first capture) fits the
   window and scrolls inside itself. */
#closer-period-menu { max-height: min(24rem, 60vh); overflow-y: auto; }
/* The Financials snapshot and Compare menus at the desk's 12px. */
#closer-snapver-menu, #closer-snapver-menu .dropdown-item,
#fc-snapshot-menu, #fc-snapshot-menu .dropdown-item,
#closer-diff-menu, #closer-diff-menu .dropdown-item,
#closer-diff-menu .dropdown-header,
#fc-diff-menu,
#fc-diff-menu .dropdown-item,
#fc-diff-menu .dropdown-header { font-size: 14px; }
#closer-snapver-menu, #fc-snapshot-menu, #closer-diff-menu, #fc-diff-menu { max-height: min(24rem, 60vh); overflow-y: auto; }   /* fit the window, as the month menu */

/* A Financials line's comment panel: the box and picker in the desk filter
   style, the Assignee label in the rail's bold dark purple, the row from the
   left (it was centred), and Comment the blue small button. */
.closer-fin-panel-new .form-control {
    background: #fff; border: 1px solid lightgray; border-radius: .375rem; padding: .35rem .5rem; font-size: 14px;
}
.closer-fin-panel-new .closer-fin-panel-actions { justify-content: space-between; align-items: flex-end; margin-top: .5rem; }
/* Resizing the panel (its grip) grows the new-comment box: the panel is a column, the textarea takes
   the spare height, and Assignee + Comment stay on the bottom edge (Christopher, 2026-10-22). */
.closer-fin-panel:not([hidden]) { display: flex; flex-direction: column; }
.closer-fin-panel > .closer-fin-panel-head,
.closer-fin-panel > .closer-fin-panel-threads,
.closer-fin-panel > .closer-fin-panel-grip { flex: none; }
.closer-fin-panel > .closer-fin-panel-new { flex: 1 0 auto; display: flex; flex-direction: column; }
.closer-fin-panel-new > textarea { flex: 1 0 auto; resize: none; }
.closer-fin-panel-new > .closer-fin-pending,
.closer-fin-panel-new > .closer-fin-panel-actions { flex: none; }
.closer-fin-panel-btns { display: flex; gap: .5rem; }   /* Comment, then Cancel right-most */
.closer-fin-panel-new .closer-fin-assign-label {
    color: #250d47; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0;
}
.closer-fin-panel-new .closer-fin-assign {
    height: 29px; font-size: 14px; background-color: #fff; border: 1px solid lightgray; border-radius: .375rem;
    padding: 0 1.75rem 0 .5rem; background-position: right .5rem center; font-weight: 400; color: #2d2c2f;
}



/* ── The drill-down's editor grid (EntryEditGrid) in the desk's dress ──── */
/* Columns menu: 12px, the pink checkboxes, each box beside its label. */
.closer-fin-drillx-colopt { display: flex; align-items: center; gap: .4rem; font-size: 14px; }
.closer-fin-drillx-colopt .form-check-input,
.fo-edit-grid .form-check-input.fo-check-bare { margin: 0; flex: none; width: 16px; height: 16px; }   /* one size: sized off each cell's font, the header's Select all came out 14.8px over 16.1px rows */
/* The bar: 12px text, the small buttons, filter-style inputs, and the search
   with its magnifier inside. */
.fo-edit-grid-bar .fo-edit-grid-bulk-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; }   /* the caps label (.closer-eyebrow) */
.fo-edit-grid-bar .btn-sm, .fo-edit-grid .btn-sm { font-size: .75rem; --bs-btn-padding-x: .65rem; margin-bottom: 0; }
.fo-edit-grid-bar .form-control,
.fo-edit-grid-bar .fo-edit-grid-bulk-column input,
.fo-edit-grid-bar .fo-edit-grid-bulk-value input {
    height: 29px; font-size: 14px; background-color: #fff; border: 1px solid lightgray; border-radius: .375rem; padding: 0 .5rem;
}
.fo-edit-grid-search-wrap { position: relative; display: inline-flex; align-items: center; }
.fo-edit-grid-search-icon {
    position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); display: flex;
    color: #9a8fb0; font-size: .75rem; pointer-events: none; z-index: 1;
}
.fo-edit-grid-bar .fo-edit-grid-search-wrap .fo-edit-grid-search { padding-left: 1.8rem; }
/* Its owner badge ("Reconciler") as the app's 10px pill. */
/* A product or workflow name ("Gopher: Stripe") is a squared chip in its own words, not a caps pill,
   keeping its colour (Christopher, 2026-11-12) — the Activity tab's look, wherever one is drawn. */
.fo-edit-grid .fo-edit-grid-badge,
.closer-pill.fo-product-chip {
    border-radius: .3rem; font-size: 12px; font-weight: 400; padding: .05rem .45rem;
    text-transform: none; letter-spacing: normal;
}
/* Delete / keep: just the icon (no box), danger red (Christopher, 2026-10-22); darker when hovered,
   armed or on. */
.fo-edit-grid .fo-edit-grid-trash {
    opacity: 1; border: 0; background: none;
    color: #dc3545; font-size: 14px; line-height: 1; padding: 0 .2rem; cursor: pointer;
}
.fo-edit-grid .fo-edit-grid-trash:hover,
.fo-edit-grid .fo-edit-grid-trash-on,
.fo-edit-grid .fo-edit-grid-trash-armed { color: #b02a37; }
/* The table standard's white rows, not the entry bands' grey. Cells stay top-aligned, so the date and
   transaction's first lines sit level with the amount (Christopher, 2026-10-22); a 19px chip rides up
   the 2px it is taller than the 15px line, to stay on that line too. */
.fo-edit-grid-table > tbody > tr:is(.fo-row-even, .fo-row-odd) { background-color: #fff; }
.fo-edit-grid-table > tbody > tr > td .fo-edit-grid-badge { vertical-align: top; margin-top: -2px; }
/* Trash and comment as one pair: each hugs the edge they share, so the table's spare width cannot
   open a gap between them (Christopher, 2026-10-22). */
.fo-edit-grid-table td.fo-edit-grid-del:has(+ td.fo-edit-grid-comment-col) { text-align: right; padding-right: 3px; }
.fo-edit-grid-table td.fo-edit-grid-del + td.fo-edit-grid-comment-col { text-align: left; padding-left: 3px; }
/* Both icons centred on the row's first text line (15px: the cells' 12px at line-height 1.25), the bubble
   at the trash's 12px. */
.fo-edit-grid-table > tbody > tr > td > :is(.fo-edit-grid-trash, .closer-fin-comment-btn) {
    display: inline-flex; align-items: center; height: 15px; line-height: 1; vertical-align: top; font-size: 12px;
}
/* The column picker (a typable ComboBox) in the search box's dress. */
.fo-edit-grid-bar .rec-combo-trigger {
    height: 29px; font-size: 14px; background: #fff; border: 1px solid lightgray; border-radius: .375rem;
    padding: 0 .5rem; display: inline-flex; align-items: center; justify-content: space-between; gap: .4rem;
}
.fo-edit-grid-bar .rec-combo-value--empty { color: #6c757d; }
.fo-edit-grid-bar .rec-combo-caret { font-size: 10px; color: #6c757d; }
/* Financials' comment chips (open / settled on lines no longer shown) at the
   desk's 10px chip size. */
.closer-fin-orphan.closer-pill { font-size: 12px !important; padding: .25rem .6rem !important; }
.closer-fin-orphan .closer-tab-count { font-size: 12px; padding: .1rem .4rem; }
.closer-fin-orphans-settled { font-size: 14px; }

/* The Compare menu: captured time then name, in two aligned columns, never
   wider than the window (a long name wraps instead of scrolling sideways). */
#closer-diff-menu, #fc-diff-menu { max-width: min(30rem, calc(100vw - 24px)); overflow-x: hidden; }
#closer-diff-menu .closer-diffpick, #fc-diff-menu .closer-diffpick {
    display: grid; grid-template-columns: 1rem 11.5rem 1fr; column-gap: .5rem; align-items: baseline;
    white-space: normal; line-height: 1.5;
}
/* The camera centred on the first line: on the baseline, an icon's bottom edge sits on it and the
   icon rides high. (1.5em line - 1em icon) / 2. */
#closer-diff-menu .closer-diffpick > :is(i, svg):first-child, #fc-diff-menu .closer-diffpick > :is(i, svg):first-child { align-self: start; margin-top: .25em; }
#closer-diff-menu .closer-diffpick-when, #fc-diff-menu .closer-diffpick-when { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The snapshot menu's columns: captured, month, name (the time no longer
   muted). */
.closer-snapver-when { color: #2d2c2f; }
/* Diff mode's "Changed lines only": the pink checkbox beside its label. */
.closer-fin-diff-only { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-size: 14px; }
.closer-fin-diff-only .form-check-input { margin: 0; flex: none; }
/* Settled comment chips on their own line under their toggle. */
.closer-fin-orphans-settled-list { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
/* A comment thread's status chip in the Financials comment panel at 10px. */
#closer-fin-panel .closer-pill { font-size: 12px; padding: .2rem .5rem; }
/* CLOSING level with the lights' labels (which ride 1px down). */
.closer-context-bar .closer-subtabs-month-eyebrow { position: relative; top: 1px; }


/* Comment threads: the meta line and the Magic's status in readable ink. */
.closer-fin-event-meta { color: #495057; }
.closer-fin-event-meta strong { color: #2d2c2f; font-weight: 600; }
.closer-fin-magic-who { color: #250d47; }
/* The panel's × is the modals' .closer-modal-x; the thread links in the site pair, and air under
   each event's meta line. */
.closer-fin-conv, .closer-fin-conv:visited { color: #250d47; font-weight: 600; }
.closer-fin-conv:hover, .closer-fin-conv:focus { color: #e91e63; text-decoration: none; }
.closer-fin-event-meta { margin-bottom: .3rem; }
/* The theme's .btn bottom margin opened a wide gap above the settled chips. */
.closer-fin-orphans .closer-fin-orphans-settled,
#closer-fin-orphans .closer-fin-orphans-settled { margin-bottom: 0; }
/* Comment panel: Assign label above its searchable dropdown, the reply box in
   the filter-input style, and the reply buttons at the small 29px size. */
.closer-fin-reassign-label { flex-direction: column; align-items: flex-start; gap: .25rem; margin-top: .5rem; }
.closer-fin-panel .fo-combobox.desk-combobox { display: block; width: 100%; max-width: 16rem; }
.closer-fin-thread-actions .closer-fin-reply {
    background: #fff; border: 1px solid lightgray; border-radius: .375rem; padding: .35rem .5rem; font-size: 14px;
}
.closer-fin-thread-actions .btn { height: 29px; }
/* The panel's assign dropdowns: selection at the left, caret at the right. */
.closer-fin-panel .desk-combobox .fo-combobox-display { justify-content: space-between; text-align: left; width: 100%; }
/* Version and compare menus: the snapshot's name in the same ink as its date. */
.closer-snapver-name, .closer-diffpick-title { color: #2d2c2f; }
/* Renaming a version: the input sits over the NAME column (third, since the
   date leads), in the filter-input style. */
.closer-snapver-row.closer-snapver-editing .closer-snapver-name-input {
    grid-column: 3; margin-left: 0; width: 12rem; height: 29px; padding: 0 .5rem;
    font-size: 14px; color: #2d2c2f; background: #fff; border: 1px solid lightgray; border-radius: .375rem;
}
/* Compare menu: room for the name column, and the date in body ink (not the
   item's muted grey), matching the version menu. */
#closer-diff-menu, #fc-diff-menu { min-width: min(26rem, calc(100vw - 24px)); }
#closer-diff-menu .closer-diffpick, #fc-diff-menu .closer-diffpick { grid-template-columns: 1rem max-content minmax(9rem, 1fr); }   /* the date column as wide as its date, "11/12/2026 02:33 AM", whatever the menu's font: a fixed 7.5rem ran it into "NOV 26 close" (Christopher, 2026-11-12) */
#closer-diff-menu .closer-diffpick-when, #closer-diff-menu .closer-diffpick-title, #fc-diff-menu .closer-diffpick-when, #fc-diff-menu .closer-diffpick-title { color: #2d2c2f; }
#closer-diff-menu .closer-diffpick-title, #fc-diff-menu .closer-diffpick-title { font-weight: 600; }
/* Compare menu: rows (and their hover) span the menu; the picked base reads
   as selected, as in the version menu; the intro on its own line. */
#closer-diff-menu > li, #fc-diff-menu > li { display: block; width: 100%; }
#closer-diff-menu .closer-diffpick, #fc-diff-menu .closer-diffpick { width: 100%; box-sizing: border-box; margin: 0; border-radius: 0; }
#closer-diff-menu .closer-diffpick:hover, #closer-diff-menu .closer-diffpick:focus, #fc-diff-menu .closer-diffpick:hover, #fc-diff-menu .closer-diffpick:focus { background: #f0f2f5; }
#closer-diff-menu .closer-diffpick.active,
#closer-diff-menu .closer-diffpick.active:hover,
#fc-diff-menu .closer-diffpick.active,
#fc-diff-menu .closer-diffpick.active:hover { background: #e7f1ff; }
#closer-diff-menu .closer-diffpick.active .fa,
#closer-diff-menu .closer-diffpick.active .closer-diffpick-when,
#closer-diff-menu .closer-diffpick.active .closer-diffpick-title,
#fc-diff-menu .closer-diffpick.active .fa,
#fc-diff-menu .closer-diffpick.active .closer-diffpick-when,
#fc-diff-menu .closer-diffpick.active .closer-diffpick-title { color: #250d47; font-weight: 700; }
.closer-diffpick-intro { padding: .5rem 1rem .1rem; font-size: 14px; color: #495057; }   /* the menu's title: a card sub-header's 14px */
#closer-diff-menu .dropdown-header, #fc-diff-menu .dropdown-header { margin-top: 0; padding-top: .35rem; padding-bottom: .2rem; }
.closer-diffpick-intro, #closer-diff-menu .dropdown-header, #fc-diff-menu .dropdown-header { color: #250d47; font-weight: 700; }
/* "n settled on lines no longer shown": the Diff menu's header look —
   sentence case, 12px, bold dark purple — not the theme's uppercase button. */
#closer-fin-orphans .closer-fin-orphans-settled,
.closer-fin-orphans .closer-fin-orphans-settled {
    text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 700; color: #250d47;
    padding-left: 0; padding-right: 0; box-shadow: none;
}
#closer-fin-orphans .closer-fin-orphans-settled:hover { color: #e91e63; }
/* Statement table: square corners; the drill's "changed" chip in the diff blue. */
.closer-fin-wrap { border-radius: 0; }
.closer-fin-drillx-chg { background: #e3f2fd; color: #0d47a1; }
/* A pane whose first child isn't its card (Tasks opens with the hidden sweep
   notice): its FIRST card still joins the context bar above it. */
.closer-home > .tab-pane > .card:not(.card ~ .card),
.closer-home > .tab-pane > [data-lazy-pane] > .card:not(.card ~ .card) { border-top-left-radius: 0; border-top-right-radius: 0; }
.closer-home > .tab-pane > .card:not(.card ~ .card) > .card-body,
.closer-home > .tab-pane > [data-lazy-pane] > .card:not(.card ~ .card) > .card-body { padding: .5rem 1.5rem 1.5rem; }
/* …including a pane whose body loads after the page (Tasks: its cards sit in the loader's wrapper). */
/* Close Tasks: the checks' search box (icon inside), and chips at the
   site's 12px size (TM-2360). */
.closer-task-search-box { flex: 0 1 18rem; margin-right: .75rem; }
#cpane-tasks .closer-pill { font-size: 12px; padding: .25rem .6rem; }
#cpane-tasks .closer-pill .closer-note-number { font-size: 12px; padding: 0 .35rem; }

/* ── Tasks + Skills: one card per tab, with the conventions of the other
   tabs (Christopher, 2026-10-06: "just about all the fixes we've made on
   other pages needs to happen here"). The cards inside lie flat as rows
   separated by rules; text at 12/13/14px in body ink; chips 10px; small
   29px buttons; section toggles bold dark purple with a grey count chip. */
.closer-tab-card .card {
    background: transparent; box-shadow: none; border: 0; border-radius: 0;
    border-top: 1px solid #dee2e6; margin-top: 0 !important;
}
.closer-tab-card > .card-body > .card:first-child { border-top: 0; }
.closer-tab-card .card > .card-body { padding: .75rem 0; }
.closer-tab-card > .card-body > .card:first-child > .card-body { padding-top: 0; }
.closer-tab-card .closer-task-header-sticky { background: #fff; box-shadow: none; }
.closer-tab-card .closer-note-card-resolved { opacity: 1; }
/* Section toggles (Scheduled, Active, Recently completed, Built-in, From your firm, Archived). */
.closer-tab-card .closer-task-section { margin-top: 0 !important; border-top: 1px solid #dee2e6; padding-top: .5rem; }
.closer-tab-card .closer-task-section-summary { padding: .25rem 0; }
.closer-tab-card .closer-task-section-summary h5,
.closer-tab-card .closer-task-section-summary h6,
.closer-tab-card #closer-active-head h5 {
    font-size: 14px; font-weight: 700; color: #250d47 !important; margin: 0;
}
.closer-tab-card .closer-task-section-caret { color: #250d47; font-size: 10px; }
.closer-tab-card #closer-active-head { border-top: 1px solid #dee2e6; padding-top: .5rem; margin-top: 0 !important; }
/* Rows: the subject at 14px bold dark purple, its rule line and body at 12/13px. */
.closer-tab-card .closer-note-subject { font-size: 14px; font-weight: 700; color: #250d47; }
.closer-tab-card .closer-note-subject .fa,
.closer-tab-card .closer-note-subject svg { font-size: 12px; }
.closer-tab-card .closer-note-date { font-size: 14px; font-weight: 400; color: #495057; }
.closer-tab-card .closer-note-detail { font-size: 14px; color: #2d2c2f; }
.closer-tab-card .closer-note-detail .small,
.closer-tab-card .closer-note-detail small { font-size: 14px; }
.closer-tab-card .text-muted,
.closer-tab-card .fo-overview-subtle { color: #495057 !important; }
/* The same dark grey for every .text-muted across Closer (the theme's is too faint to read):
   its panes and their modals, the attention list, the edit modals, the firm check catalog and the map. */
:is(.closer-home, #closer-attention-root, .closer-edit-modal, .closer-changes-modal, #closer-close-modal,
    [data-role="check-catalog"], .fo-map, .closer-cal) .text-muted { color: #495057 !important; }
.closer-tab-card p { font-size: 14px; font-weight: 400; }
/* Chips at the site's 10px. */
.closer-tab-card .closer-pill { font-size: 12px; padding: .25rem .6rem; }
.closer-tab-card .closer-pill .closer-note-number,
.closer-tab-card .closer-note-number { font-size: 12px; padding: .2rem .5rem; }
/* Buttons: the small 29px size, text-xs. */
.closer-tab-card .btn-sm,
.closer-tab-card .closer-note-chat-toggle {
    height: 29px; padding: 0 .75rem; font-size: .75rem; margin-bottom: 0;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
/* Inputs and selects in the filter style. */
.closer-tab-card .form-control-sm:not(.fo-check-search-input),
.closer-tab-card .form-select-sm {
    height: 29px; font-size: 14px; background-color: #fff; border: 1px solid lightgray; border-radius: .375rem;
}
.closer-tab-card .form-control-sm:not(.fo-check-search-input) { padding: 0 .5rem; }
.closer-tab-card textarea.form-control-sm { height: auto; padding: .35rem .5rem; }
/* The conversation composer's editable box stands in for its textarea: the same
   draggable height on a task card as on the Conversations page (TM-2177). */
.closer-tab-card .conversations-composer-editor.form-control-sm { height: var(--fo-reply-editor-h, 12rem); padding: .35rem .5rem; }
/* The app's input (29px, 12px, white, 1px lightgray, .375rem) for every text / number / date input
   and textarea across Closer and Reconciler, and the Files filters, wherever it renders: the theme draws .form-control
   borderless, which left e.g. the drill-down grid's Amount cell editor as a bare white box. Roots
   in :where() so a component's own sizing (a search's left padding, a width) still wins; the boxed
   search (.fo-check-search-input) and comboboxes keep their own dress. Cell editors keep Bootstrap's
   width: 100%; right-aligned money inputs stay right-aligned. */
:where(.closer-home, #closer-attention-root, #closer-fin-panel, .closer-edit-modal, .closer-edit-form,
       .closer-fin-drillx, .fo-edit-grid, [data-role="check-catalog"], .fo-map, .fo-firm-findings-toolbar,
       #reconciler-workflow-tab, .reconciler-outages-mount, .reconciler-rules-mount, .firm-rules-mount,
       .team-files-filters)
    :is(input.form-control:not([type=checkbox], [type=radio], [type=range], [type=file], .fo-check-search-input, [data-combobox]),
        input.rec-divide-apply-amount),
input.conversations-work-reason-input {
    height: 29px; font-size: 14px; background-color: #fff; border: 1px solid lightgray; border-radius: .375rem;
}
:where(.closer-home, #closer-attention-root, #closer-fin-panel, .closer-edit-modal, .closer-edit-form,
       .closer-fin-drillx, .fo-edit-grid, [data-role="check-catalog"], .fo-map, .fo-firm-findings-toolbar,
       #reconciler-workflow-tab, .reconciler-outages-mount, .reconciler-rules-mount, .firm-rules-mount)
    textarea.form-control:not(.fo-check-search-input) {
    font-size: 14px; background-color: #fff; border: 1px solid lightgray; border-radius: .375rem;
}
:where(.closer-home, #closer-attention-root, #closer-fin-panel, .closer-edit-modal, .closer-edit-form,
       .closer-fin-drillx, .fo-edit-grid, [data-role="check-catalog"], .fo-map, .fo-firm-findings-toolbar,
       #reconciler-workflow-tab, .reconciler-outages-mount, .reconciler-rules-mount, .firm-rules-mount)
    :is(input.form-control, textarea.form-control, input.rec-divide-apply-amount):disabled { background-color: #f2f4f7; }
.closer-tab-card .form-select-sm { padding: 0 1.75rem 0 .5rem; background-position: right .5rem center; }
.closer-tab-card .closer-skill-new-name { width: 16rem; max-width: 16rem; }
/* Field labels inside the forms: the eyebrow. */
.closer-tab-card .closer-edit-form > label,
.closer-tab-card .closer-status-options > label {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
}
.closer-tab-card .closer-edit-form > label .form-control,
.closer-tab-card .closer-edit-form > label .form-select,
.closer-tab-card .closer-edit-form > label .text-muted,
.closer-tab-card .closer-edit-form > label .fo-form-hint {
    text-transform: none; letter-spacing: normal; font-weight: 400;
}
.closer-tab-card .closer-edit-form > label .text-muted { font-size: 14px; }
/* Pink checkboxes, as everywhere else. */
.closer-tab-card input[type="checkbox"]:not(.form-check-input) { accent-color: #e91e63; }

/* Chevrons for every expand/collapse here — the Questions tab's "Resolved or
   withdrawn" look: a small chevron that turns down when open. */
.closer-tab-card .closer-task-section-caret,
.closer-fin-orphans-caret { width: .9rem; font-size: .65rem; color: #250d47; transition: transform .15s ease; }
.closer-fin-orphans-settled[aria-expanded="true"] .closer-fin-orphans-caret { transform: rotate(90deg); }
.closer-tab-card .closer-task-section > summary::marker { content: ''; }
/* A row's own toggle: the ▸ glyph drawn as the same chevron. */
.closer-tab-card .closer-note-summary .closer-note-subject::before {
    content: ''; width: .4rem; height: .4rem; margin: 0 .75rem 0 .1rem;
    border-right: 2px solid #250d47; border-bottom: 2px solid #250d47;
    transform: rotate(-45deg); position: relative; top: -1px;
}
.closer-tab-card .closer-note-card:not([data-collapsed="true"]) > .closer-note-summary .closer-note-subject::before {
    transform: rotate(45deg); top: -3px;
}
/* Chips that are <summary> elements (status, Edit task / schedule, New task,
   Use / Draft / schedule / Firm skill): the theme forces summary to 14px with
   5px padding, !important — so the 10px chip size has to be too. */
.closer-tab-card summary.closer-pill { font-size: 12px !important; padding: .25rem .6rem !important; line-height: 1.4; }
.closer-tab-card summary.closer-pill .closer-status-caret { font-size: 10px; }
/* The due chip on one line: "Overdue 1 day · 10/05/2026". */
.closer-tab-card .closer-due-chip { display: inline-flex; flex-direction: row; align-items: center; gap: .3rem; line-height: 1.4; }
.closer-tab-card .closer-due-headline,
.closer-tab-card .closer-due-date { font-size: 14px; }
.closer-tab-card .closer-due-date { opacity: .85; }
.closer-tab-card .closer-due-date::before { content: '·'; margin-right: .3rem; }
/* Status filter chips' counts: the grey count chip. */
.closer-tab-card .closer-statusbar-chip .closer-note-number { background: #ece9f1; color: #250d47; margin: 0 0 0 .3rem; }
/* Links in the site pair: the bound skill, dependencies, Open in My Desk. */
.closer-tab-card .closer-skill-link,
.closer-tab-card .closer-note-detail a:not(.btn):not(.closer-pill) { color: #250d47; }
.closer-tab-card .closer-skill-link:hover,
.closer-tab-card .closer-note-detail a:not(.btn):not(.closer-pill):hover { color: #e91e63; }
/* A section already inside a flat row (Skills' Built-in / From your firm)
   takes that row's rule — not a second one of its own. */
.closer-tab-card .card .closer-task-section { border-top: 0; padding-top: 0; }
/* Popover menus in Tasks / Skills (tier, schedule, edit): 12px text, help
   lines in dark grey, pink radios and checkboxes. */
.closer-tab-card .closer-status-options,
.closer-tab-card .closer-skill-tier-option strong { font-size: 14px; }
.closer-tab-card .closer-skill-tier-option small,
.closer-tab-card .closer-status-options small { font-size: 14px; color: #495057 !important; }
.closer-tab-card input[type="radio"],
.closer-tab-card input[type="checkbox"] { accent-color: #e91e63; }
/* A skill's capability switches only mean something under "Acts": greyed and
   unclickable while another mode is picked (the view drops them anyway). */
.closer-tab-card .closer-skill-schedule-form:has(input[name="mode"][value="act"]:not(:checked)) .closer-skill-cap {
  opacity: .45;
  pointer-events: none;
}
/* Built-in skill names at row size, not the theme's bold 1rem. */
.closer-tab-card .closer-builtin-head strong { font-size: 14px; }
/* An opened row: its body starts right under the header line. */
.closer-tab-card .closer-note-card:not([data-collapsed="true"]) > .closer-note-summary { padding-bottom: .25rem; }
.closer-tab-card .closer-note-detail { padding-top: 0 !important; }
/* An open row's contents start under its title's icon, not under its chevron (Christopher,
   2026-11-12): the head's 12px, the chevron's .9rem and .5rem, and the space before the icon. */
.closer-tab-card .closer-note-card > .closer-note-detail { padding-left: calc(12px + .9rem + .5rem + 3px) !important; }
/* A row standing on its own, not inside a section (a company skill on Skills), sits flush with the
   section chevrons above it rather than indented under one (Christopher, 2026-11-12). */
.closer-tab-card .closer-tab-scroll > .closer-note-card > .closer-note-summary > .closer-section-head { padding-left: 0 !important; }
.closer-tab-card .closer-tab-scroll > .closer-note-card > .closer-note-detail { padding-left: calc(.9rem + .5rem + 3px) !important; }
.closer-tab-card .closer-note-summary .closer-section-head { margin-bottom: 0; }
/* One left edge: the section chevron, each row's chevron and the row body
   all start at the card's content edge (the theme's 5px summary padding,
   !important, pushed the section toggles off it). */
.closer-tab-card .closer-task-section > summary.closer-task-section-summary { padding-left: 0 !important; padding-right: 0 !important; }
.closer-tab-card .closer-task-section-caret { width: auto; margin-right: .5rem; }
.closer-tab-card .closer-note-summary .closer-note-subject::before { margin-left: 0; margin-right: .6rem; }
/* A field's help line sits clear of its input (it ran into the box). */
.closer-tab-card label > :is(.form-control, .form-select, .fo-combobox) ~ :is(.text-muted, .small, small, .fo-form-hint) {
    display: block; margin-top: .35rem; line-height: 1.35;
}
/* Tasks / Skills form dropdowns (fo-combobox): full width of their field,
   the selection at the left. */
.closer-tab-card .fo-combobox.desk-combobox { display: block; width: 100%; }
.closer-tab-card .desk-combobox .fo-combobox-display { width: 100%; justify-content: space-between; text-align: left; text-transform: none; letter-spacing: normal; font-weight: 400; }
.closer-tab-card .form-check-input.fo-check-bare { margin: 0; flex: none; }
/* Popover forms: buttons at their own width, not the panel's; the section
   labels (Links, Waits on) as the dark purple caps label. */
.closer-tab-card .closer-edit-form > .btn,
.closer-tab-card .closer-skill-schedule-form > .btn { justify-self: start; align-self: flex-start; width: auto; }
.closer-tab-card .closer-link-heading,
.closer-tab-card .closer-edit-deps > legend {
    font-size: 12px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47 !important;
}
/* A tall popover (Edit schedule / Edit task / New task) scrolls inside
   itself instead of stretching the page. Its dropdown panels are
   position:fixed, so the scroller doesn't clip them. */
.closer-tab-card .closer-edit-form,
.closer-tab-card .closer-skill-schedule-menu { max-height: min(70vh, 40rem); overflow-y: auto; overscroll-behavior: contain; }
/* The Edit task modal (on <body>, so not under .closer-tab-card): the form
   fills the dialog; labels as the dark purple caps label; inputs, selects
   and checkboxes as everywhere else; help lines clear of their inputs. */
.closer-edit-modal form.closer-edit-form { width: auto; padding: 0; }
.closer-edit-modal .modal-title { font-size: 14px; font-weight: 700; color: #250d47; }
.closer-edit-modal .closer-edit-form > label,
.closer-edit-modal .closer-link-heading,
.closer-edit-modal .closer-edit-deps > legend {
    font-size: 12px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47 !important;
}
.closer-edit-modal .closer-edit-form > label :is(.form-control, .form-select, .text-muted, .small, small, .fo-form-hint, .fo-combobox) {
    text-transform: none; letter-spacing: normal; font-weight: 400;
}
.closer-edit-modal .closer-edit-form > label :is(.text-muted, .small, small, .fo-form-hint) {
    display: block; margin-top: .35rem; font-size: 14px; line-height: 1.35; color: #495057 !important;
}
.closer-edit-modal .form-control-sm, .closer-edit-modal .form-select-sm {
    height: 29px; font-size: 14px; background-color: #fff; border: 1px solid lightgray; border-radius: .375rem; padding: 0 .5rem;
}
.closer-edit-modal textarea.form-control-sm { height: auto; padding: .35rem .5rem; }
.closer-edit-modal .fo-combobox.desk-combobox { display: block; width: 100%; }
.closer-edit-modal .desk-combobox .fo-combobox-display { width: 100%; justify-content: space-between; text-align: left; }
.closer-edit-modal .closer-edit-form > label.d-flex { text-transform: none; letter-spacing: normal; font-size: 14px !important; color: #2d2c2f; }
.closer-edit-modal .modal-footer .btn { height: 29px; display: inline-flex; align-items: center; }
/* The Edit task opener: a chip like its neighbours. */
.closer-tab-card .closer-edit-open { border: 0; cursor: pointer; }
/* The skill's kind menu (Demote / Promote / Archive): small Bootstrap
   outline buttons at their own width, stacked with a little air. */
.closer-skill-kind-menu .closer-skill-promote-btn { display: inline-flex; width: auto; height: 29px; align-items: center; margin-top: .35rem; }
.closer-skill-kind-menu { font-size: 14px; }
/* The skill's Runs-on menu: 12px text; "Runs on" and the times legend as
   the dark purple caps label; the hour boxes in the site checkbox style. */
.closer-tab-card .closer-skill-schedule-menu,
.closer-tab-card .closer-skill-schedule-menu p { font-size: 14px; }
.closer-tab-card .closer-skill-schedule-form > label,
.closer-tab-card .closer-skill-schedule-hours > legend {
    font-size: 12px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
    margin-bottom: .25rem;
}
.closer-tab-card .closer-skill-schedule-form > label .fo-combobox { text-transform: none; letter-spacing: normal; font-weight: 400; margin-top: .25rem; }
.closer-tab-card .closer-skill-schedule-hour { display: inline-flex; align-items: center; gap: .35rem; font-size: 14px; }
.closer-tab-card .closer-skill-schedule-form small { display: block; font-size: 14px; color: #495057 !important; }
/* Built-in skills: just the chevron, not the old ▸ as well. */
.closer-tab-card .closer-builtin-section > summary::before { content: none; display: none; }
/* Tasks / Skills scroll inside their card: a hair of room for the scrollbar. */
.closer-tab-scroll { padding-right: .5rem; }
/* A comment chip's count (Financials, lines no longer shown): a red circle
   with the number in white. */
.closer-fin-orphan .closer-note-number {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.35em; height: 1.35em; padding: 0 .3em !important; margin: 0 0 0 .35rem;
    border-radius: 999px; background: #dc3545 !important; color: #fff !important; font-weight: 700;
}
/* Status filter chips at the 10px chip size (the button's own padding and
   line-height made them tall), their count a small grey chip inside. */
#closer-task-statusbar .closer-statusbar-chip {
    font-size: 12px !important; padding: .2rem .6rem !important; line-height: 1.4 !important; height: auto;
    display: inline-flex; align-items: center; gap: 5px; margin: 0;
    align-self: center;   /* not stretched to the search box's 29px (Christopher, 2026-10-12) */
}
#closer-task-statusbar .closer-statusbar-chip .closer-note-number {
    font-size: 12px !important; padding: 0 5px !important; line-height: 1.4; margin: 0;
}
/* Header chips at their natural 10px height: the old 31px minimum (to match
   the full-size Discuss button) is what made them tall. Month and due chips
   in caps, as the status chips. */
.closer-tab-card .closer-head-actions > .closer-pill,
.closer-tab-card .closer-head-actions > details > summary.closer-pill,
.closer-tab-card .closer-head-actions > .closer-due-chip { min-height: 0; }
.closer-tab-card .closer-period-chip,
.closer-tab-card .closer-due-chip { text-transform: uppercase; letter-spacing: .03em; }
/* "Active" at the Close Tasks title's size. */
.closer-tab-card #closer-active-head h5 { font-size: 14px; display: flex; align-items: center; gap: .4rem; }
/* Every section heading in Tasks / Skills at the tab title's size. */
.closer-tab-card .closer-task-section-summary h5,
.closer-tab-card .closer-task-section-summary h6 { font-size: 14px; }
.closer-tab-card .closer-task-section-summary { display: flex; align-items: center; gap: .4rem; }
.closer-tab-card .closer-task-section-caret { margin-right: .1rem; }
/* Skills' section headings (h6 there) at the same size as every other
   section heading; their aside ("no AI — …") a plain 12px note, spaced off. */
.closer-tab-card .closer-task-section-summary :is(h5, h6) { font-size: 14px !important; line-height: 1.3; }
.closer-tab-card .closer-task-section-summary .fo-overview-subtle {
    font-size: 14px !important; font-weight: 400; margin-left: .5rem;
}
/* Available from your firm: the name above its description, in dark purple. */
.closer-adoptable-row { align-items: flex-start; }
.closer-adoptable-text { flex: 1 1 auto; min-width: 0; }
.closer-adoptable-name { font-size: 14px; font-weight: 700; color: #250d47; margin-bottom: .2rem; }
.closer-adoptable-text .small { font-size: 14px; }
/* A waiting (dependency-blocked) task no longer fades the whole row and
   un-fades on hover or click: the row stays at full strength and only its
   title reads quieter, steadily. Its WAITING chip still says why. */
.closer-tab-card .closer-task-blocked,
.closer-tab-card .closer-task-blocked:hover,
.closer-tab-card .closer-task-blocked:focus-within,
.closer-tab-card .closer-task-blocked:has(.closer-status-menu[open]) { opacity: 1; transition: none; }
.closer-tab-card .closer-task-blocked .closer-note-subject { color: #495057; }   /* the site's dark grey, not the faded theme grey (TM-2360) */
/* Discuss closed: its (empty) column sat ABOVE the body with the split's
   1.25rem gap — the dead band under each opened row's header. */
.closer-tab-card .closer-discuss-collapsed { gap: 0; }
/* Links: Add link and the workflow picker on one 29px line, centred. */
.closer-link-actions .fo-combobox.desk-combobox { display: block; width: auto; flex: 1 1 16rem; }
.closer-link-actions .btn,
.closer-edit-modal .closer-link-row .btn,
.closer-edit-modal .closer-link-actions .btn {
    height: 29px; display: inline-flex; align-items: center; margin-bottom: 0; padding: 0 .75rem; font-size: .75rem;
}
/* Checkboxes inside the 12px caps labels kept shrinking with the text: one
   fixed size, centred on the label's line. */
:is(.closer-tab-card, .closer-edit-modal) .form-check-input.fo-check-bare[type=checkbox] {
    width: 14px; height: 14px; font-size: 14px; margin: 0 .4rem 0 0; vertical-align: middle; flex: none;
}
:is(.closer-tab-card, .closer-edit-modal) label:has(> .fo-check-bare) { display: flex; align-items: center; }
/* A Closer modal's × : a borderless 29px square, hot pink on hover (Christopher, 2026-10-22). */
.closer-modal-x,
.btn.closer-modal-x {
    flex: none;   /* never squeezed by a wrapping title beside it: always the 29px square */
    width: 29px; height: 29px; padding: 0; margin: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: #495057; line-height: 1;
    border: 0; background: transparent; box-shadow: none;
}
.closer-modal-x:hover,
.closer-modal-x:focus-visible,
.btn.closer-modal-x:hover,
.btn.closer-modal-x:focus-visible { background: transparent; color: #e91e63; }
/* Every other close ×, a modal's or a panel's, goes hot pink on hover too: the drill-down's, the
   Closer intro's, the statement tie's, a desk tab's, and Bootstrap's .btn-close (its × is an SVG
   background, so the hover swaps in a pink one). */
:is(.closer-fin-drill-close, .closer-intro-dismiss, .rec-tie-close, .desk-tab-close):is(:hover, :focus-visible) {
    color: #e91e63 !important; text-decoration: none;
}
.btn-close:is(:hover, :focus-visible) {
    opacity: 1;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e91e63'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-image: var(--bs-btn-close-bg);
}
/* Section headings: the same room above and below (the section's own top
   padding stacked on the summary's made the top deeper). */
.closer-tab-card .closer-task-section { padding-top: 0; }
.closer-tab-card .closer-task-section > summary.closer-task-section-summary { padding-top: .5rem !important; padding-bottom: .5rem !important; }
/* Inside the card's own scroller the checklist header pins at its top (its
   old offset was for the page's sticky task header, which cut row one off). */
.closer-tab-scroll .fo-check-table > thead > tr > th { top: 0; }
/* The checklist's "skill attached" wand in the site's dark purple. */
.closer-checklist-skill { color: #250d47; }
/* Calendar toolbar: the who dropdown and Hide done in the site style; legend and day labels in a
   readable dark grey. */
.closer-cal-toolbar .fo-combobox.desk-combobox { display: inline-block; width: auto; min-width: 10rem; }
.closer-cal-hide-done { display: inline-flex; align-items: center; gap: .4rem; font-size: 14px; color: #2d2c2f; margin: 0; }
.closer-cal-hide-done .form-check-input.fo-check-bare { margin: 0; }
.closer-cal-legend, .closer-cal-legend li { color: #495057; }
.closer-cal-day, .closer-cal-days, .closer-cal-head { color: #495057; }
/* A schedule rule (days + what they count from): the box and its dropdown
   level on one line. */
.closer-schedule-rule { align-items: center; margin-top: .25rem; }
.closer-schedule-rule > .closer-schedule-days { margin-top: 0 !important; height: 29px; }
.closer-schedule-rule > .fo-combobox { flex: 1 1 auto; min-width: 0; margin: 0; }
/* Skills: Built-in / From your firm sit in the list as peers of the skill
   rows, so they take the row title's 14px (Tasks keeps its larger section
   headings: there they head groups of rows). */
#cpane-skills .closer-tab-card .closer-task-section-summary :is(h5, h6) { font-size: 14px !important; }
/* Row toggles use the same Font Awesome chevron as the section toggles (the
   drawn one never quite matched); it turns down when the row is open. */
.closer-tab-card .closer-note-summary .closer-note-subject::before { content: none; display: none; }
.closer-tab-card .closer-row-caret {
    width: .9rem; font-size: .65rem; color: #250d47; margin-right: .5rem; flex: none;
    transition: transform .15s ease;
}
.closer-tab-card .closer-note-card:not([data-collapsed="true"]) > .closer-note-summary .closer-row-caret { transform: rotate(90deg); }
.closer-tab-card .closer-task-section-caret { width: .9rem; margin-right: .5rem; }
/* Runs-on menu: labels flush with the menu's left edge (the fieldset's
   legend floated in), and the same room under Save as around the rest. */
.closer-tab-card .closer-skill-schedule-hours { padding: 0; border: 0; min-width: 0; }
.closer-tab-card .closer-skill-schedule-hours > legend { float: none; padding: 0; margin: 0 0 .35rem; width: auto; }
.closer-tab-card .closer-skill-schedule-hour { margin: 0; }
.closer-tab-card .closer-skill-schedule-form { gap: .5rem; }
.closer-tab-card .closer-skill-schedule-form > .btn { margin-top: .25rem; }
/* Skill menus (tier, kind, runs-on): one even .75rem inset all round. The
   tier choices are options, not field labels: normal case, the name bold in
   body ink, its help under it in dark grey. */
.closer-tab-card .closer-status-options:is(.closer-skill-schedule-menu, .closer-skill-kind-menu),
.closer-tab-card .closer-skill-kind-menu { padding: .75rem !important; }
.closer-tab-card .closer-skill-schedule-form > label.closer-skill-tier-option {
    font-size: 14px !important; text-transform: none; letter-spacing: normal; font-weight: 400; color: #2d2c2f;
    display: flex; flex-direction: column; gap: .15rem; margin: 0;
}
.closer-tab-card .closer-skill-tier-option > span { display: inline-flex; align-items: center; gap: .4rem; }
.closer-tab-card .closer-skill-tier-option strong { color: #250d47; }
.closer-tab-card .closer-skill-tier-option small { padding-left: calc(13px + .4rem); }
/* Firm skill rows: the tier chip and Adopt level with each other. */
.closer-adoptable-row { align-items: center; }
.closer-adoptable-row > form { display: inline-flex; align-items: center; margin: 0; }
/* The shelf as columns (Christopher, 2026-10-22: columns, not facts run together with dots): the list
   is the grid, each row its subgrid, so the key, name, cadence, created, due, waits-on and Skill cells line
   up down the list; the actions take the rest, right-aligned. */
.closer-adoptable-list:has(.closer-adoptable-fact) {
  display: grid; grid-template-columns: repeat(7, max-content) 1fr max-content; row-gap: .4rem;
}
.closer-adoptable-list .closer-adoptable-row:has(.closer-adoptable-fact) {
  display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: .75rem; align-items: center;
}
.closer-adoptable-row:has(.closer-adoptable-fact) > form.ms-auto { justify-self: end; }
.closer-adoptable-fact { font-size: 14px; color: #495057; white-space: nowrap; }
/* The Get started panel: room under the title's button row, and the tab
   strip tucked up under it (its own mt-3 doubled the gap). */
#closer-intro-banner:not(.d-none) ~ #closer-home-subtabs { margin-top: .75rem !important; }
/* The Get started icon centred on the title's line. */
#closer-intro-banner .closer-intro-icon { margin-top: 1px; line-height: 1; }
/* Get started, open: white text on its green fill. The panel's bullets
   indented by a hair, not the browser's 2.5rem. */
#closer-intro-toggle.active,
#closer-intro-toggle.active:hover,
#closer-intro-toggle.active:focus { color: #fff; }
/* Every searchable dropdown's caret: the chevron the native selects and the
   month picker draw (Bootstrap's form-select glyph), not the ▾ triangle. */
.fo-combobox-caret,
.desk-combobox .fo-combobox-caret {
    font-size: 0 !important; color: transparent !important;
    width: 12px; height: 12px; flex: none; display: inline-block;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") center / 12px 12px no-repeat;
}
/* Built-in skills: each in the same light box as the firm's adoptable
   skills, stacked with the same gap. */
.closer-builtin-section > div:has(> .closer-builtin-row) { display: flex; flex-direction: column; gap: .4rem; }
.closer-builtin-row,
.closer-builtin-row:first-of-type {
    border: 1px solid #eceef1; border-radius: .4rem; padding: .5rem .75rem;
}
/* A load / save that failed: Bootstrap's danger red (the theme's text-danger
   is Material's orange-red), at the 12px of the text around it. */
.closer-fail-msg { color: #dc3545; font-size: 14px; font-weight: 600; }
/* Hide done: the caps label beside a 14px site checkbox, centred together. */
.closer-cal-hide-done {
    display: inline-flex; align-items: center; gap: .4rem; margin: 0;
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
}
.closer-cal-hide-done .form-check-input.fo-check-bare { width: 14px; height: 14px; font-size: 14px; margin: 0; flex: none; float: none; }
/* The rule under a tab's header belongs to the header, so it stays put while
   the list below scrolls; the list's first row drops its own top rule. */
.closer-tab-card > .card-body > .card:first-child { border-bottom: 1px solid #dee2e6; }
.closer-tab-scroll > :nth-child(1 of :not([hidden], .d-none, script, template, span:empty)),
.closer-tab-scroll > :nth-child(1 of :not([hidden], .d-none, script, template, span:empty)) > .closer-task-section:first-child { border-top: 0; }
/* Map summary in body ink at normal weight (the theme's p is 300), its hint
   in dark grey. */
.fo-map-summary { color: #2d2c2f; font-weight: 400; font-size: 14px; }
.fo-map-summary .fo-map-hint { color: #495057; font-weight: 400; font-size: 14px; }
/* Every Closer tab the same height: tabs without a count chip (Monthly
   Review, Financials) came out shorter and stopped short of the card, which
   left a grey strip under them. */
#closer-home-subtabs .nav-link { display: inline-flex; align-items: center; height: 31px; }
/* The Map: a shorter sky (less stretch, a lower floor, so no empty band at
   the bottom) and node text a touch smaller to fit. */
.fo-map-sky { min-height: 14rem; }
.fo-map-star { font-size: 14px; padding: .24rem .5rem; }
.fo-map-star-icon { font-size: .66rem; }
.fo-map-star-gl .fo-map-star-label { font-size: 14px; }
.fo-map-star-sub { font-size: 14px; }

/* Closer ▸ Financials: ONE search box across the statements (Jesse, 2026-10-07).
   The tab-bar account finder is the app's boxed search (.fo-check-search-box);
   a found account row lights up; the GL's search past the month lists its hits
   above the month's ledger. closer-fin-search.js. */
.closer-fin-find { position: relative; flex: 0 1 20rem; min-width: 12rem; margin: 0 0.75rem 0 0.5rem; align-self: center; }
.closer-fin-find[hidden] { display: none; }
.closer-fin-find .closer-fin-findbox { max-width: none; margin: 0; }
.closer-fin-find .closer-fin-findbox .closer-gl-search { padding: 0.3rem 0; font-size: 0.875rem; }
.closer-fin-find-list {
  position: absolute;
  z-index: 1060;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 18rem;
  max-height: 22rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #b9a3e3;
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(37, 13, 71, 0.15);
}
.closer-fin-find-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0.75rem;
  font-size: 14px;
  cursor: pointer;
}
.closer-fin-find-item:hover,
.closer-fin-find-on { background: #e7f1ff; }
/* A sub-account's full name wraps rather than losing the part that tells it apart. */
.closer-fin-find-label { min-width: 0; overflow-wrap: anywhere; }
.closer-fin-find-where { flex: 0 0 auto; font-size: 14px; color: #4F5FB7; white-space: nowrap; }
.closer-fin-find-wide { justify-content: flex-start; gap: 0; border-top: 1px solid #ece7f5; margin-top: 0.25rem; color: #250d47; font-weight: 600; }
.closer-fin-find-more { padding: 0.3rem 0.75rem; font-size: 14px; color: #6c757d; }
tr.closer-fin-found > th,
tr.closer-fin-found > td,
.fo-edit-grid-table tr.fo-edit-grid-row-focus > td { background: #fff3b0 !important; }
tr.closer-fin-found > th,
.fo-edit-grid-table tr.fo-edit-grid-row-focus > td:first-child { box-shadow: inset 3px 0 0 #250d47; }
/* The other lines the Find box matched (the picked one is .closer-fin-found). */
tr.closer-fin-hit > th,
tr.closer-fin-hit > td { background: #fffbe0 !important; }
tr.closer-fin-hit > th { box-shadow: inset 3px 0 0 #c9b96a; }

/* The GL box's filter, under the tools (closer-fin-search.js, 2026-10-21): what it understood (the
   Transactions chips), the count and totals, All months, Clear. */
.closer-gl-filterbar { margin: 0 0 .5rem; padding: .4rem .6rem; background: #faf8fe; border: 1px solid #e5dcf5; border-radius: .375rem; }
.closer-gl-filterbar[hidden] { display: none; }
.closer-gl-filter-understood[hidden] { display: none; }
.closer-gl-filter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.closer-gl-filter-msg { margin-right: auto; font-size: 14px; color: #250d47; }
/* Busy: the spinner left of its hot pink, not-bold label, centred on one line (Christopher, 2026-10-22). */
.closer-gl-filter-msg.closer-gl-filter-busy { display: inline-flex; align-items: center; }
.closer-gl-filter-msg.closer-gl-filter-busy > .text-primary { font-weight: 400; }
/* The GL and the agings have no Monthly / Annual basis: no M/Y toggle there (Jesse, 2026-10-21). */
#cpane-financials:has(#fin-pane-gl.active) .closer-fin-basis,
#cpane-financials:has(#fin-pane-ap.active) .closer-fin-basis,
#cpane-financials:has(#fin-pane-ar.active) .closer-fin-basis,
#cpane-financials:has(#fin-pane-visual.active) .closer-fin-basis,
#cpane-financials:has(.closer-fin-stmt-content > .tab-pane.active[data-fin-one-period]) .closer-fin-basis,
#cpane-financials:has(.closer-fin-stmt-content > .tab-pane.active[id^="fin-pane-wf"]) .closer-fin-basis { display: none !important; }
/* A Wrangler report's dates are its workflow's: the period button says them and opens nothing (Jesse, 2026-11-02). */
.closer-month-chip-btn.closer-fin-period-fixed:disabled { opacity: 1; }
.closer-month-chip-btn.closer-fin-period-fixed::after { display: none; }
/* A report that follows a month (TM-2334): the button lists months only, the report's own month is the
   marked one, and nothing is said about snapshots. */
#closer-period-menu.closer-period-menu-report > .closer-finperiod-range,
#closer-period-menu.closer-period-menu-report > .closer-finperiod-range + li,
#closer-period-menu.closer-period-menu-report .closer-finperiod > small { display: none; }
#closer-period-menu.closer-period-menu-report .closer-finperiod.active:not(.closer-finperiod-report-on) { background-color: transparent; color: var(--bs-dropdown-link-color); }
#closer-period-menu.closer-period-menu-report .closer-finperiod-report-on { background-color: var(--bs-dropdown-link-active-bg); color: var(--bs-dropdown-link-active-color); }
/* A class or customer column's name wraps rather than widen its column: a job reads
   "J1050 - Aetherflux Pathfinder Payload" (P&L by Customer, 2026-11-06). */
.closer-fin-table[data-fin-dim-kind] thead th[data-dim] { white-space: normal; min-width: 6rem; max-width: 9rem; vertical-align: bottom; }
/* Statement tabs read P&L / BS / CF / A/P / A/R / GL; the open one reads its full name (Jesse, 2026-10-21). */
.closer-fin-stmt-tabs .closer-fin-tab-short { display: none; }
.closer-fin-stmt-tabs .nav-link:not(.active) .closer-fin-tab-full { display: none; }
.closer-fin-stmt-tabs .nav-link:not(.active) .closer-fin-tab-short { display: inline; }
/* Profit & Loss | Visual: one tab that splits while it is open, either half the open one; closed it
   reads P&L (Jesse, 2026-10-28: "it's P&L when NOT in focus, but when in focus, it's a split tab"). */
.closer-fin-split-tab { display: flex; }
.closer-fin-split-tab:not(:has(.nav-link.active)) .closer-fin-visual-link { display: none; }
.closer-fin-split-tab:has(.nav-link.active) > .nav-link:first-child { margin-right: 0; border-top-right-radius: 0; }
.closer-fin-split-tab:has(.nav-link.active) > .closer-fin-visual-link { border-top-left-radius: 0; }
.closer-fin-split-tab:has(.nav-link.active) > .nav-link:first-child .closer-fin-tab-full { display: inline; }
.closer-fin-split-tab:has(.nav-link.active) > .nav-link:first-child .closer-fin-tab-short { display: none; }
/* Closer ▸ Transactions (closer-transactions.js, 2026-10-21): the box with its window, tolerance,
   Columns and How; what the search understood (chips, the AI's reading, notes, problems); the
   Change-it box; the status line; the results table (fo-check-table, fitted by fo-check-scroll). */
.closer-txn-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.closer-txn-findbox { flex: 1 1 28rem; min-width: 14rem; }
.closer-txn-bar .form-select { width: auto; flex: 0 0 auto; }
.closer-txn-understood { margin-bottom: .4rem; }
.closer-txn-understood[hidden], .closer-txn-refine[hidden], .closer-txn-scroll[hidden], .closer-txn-examples[hidden] { display: none !important; }
.closer-txn-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .3rem; }
.closer-txn-chips .closer-pill, .desk-rule-chips .closer-pill { display: inline-flex !important; align-items: center; box-sizing: border-box; height: 19px !important; line-height: 1 !important; font-size: 12px; padding: 1px .15rem 0 .55rem !important; }   /* the standard 19px chip; 1px on top: caps ride high in the box */
.closer-txn-chips .fo-chip-x, .desk-rule-chips .fo-chip-x { font-size: 10px; padding: 0 .35rem; opacity: .7; }
.closer-txn-chips .fo-chip-x:hover, .desk-rule-chips .fo-chip-x:hover { opacity: 1; }
.closer-txn-ai { font-size: 14px; color: #250d47; font-weight: 600; }
.closer-txn-explain, .closer-txn-note { font-size: 14px; color: #495057; margin-bottom: .2rem; }
.closer-txn-note { color: #250d47; }
.closer-txn-problem { font-size: 14px; font-weight: 600; color: #dc3545; margin-bottom: .2rem; }
.closer-txn-refine { max-width: 40rem; margin-bottom: .5rem; }
.closer-txn-status { font-size: 14px; color: #250d47; margin-bottom: .5rem; }
.closer-txn-status.closer-txn-loud { font-weight: 700; }
/* A failed search or filter ("Couldn't reach the server…") reads danger red, not purple (Christopher, 2026-11-12). */
.closer-txn-status.closer-txn-loud,
.closer-gl-filter-msg.closer-txn-loud { color: var(--bs-danger, #dc3545); }
/* Busy ("Searching the last 24 months…"): the spinner left of the hot pink label, centred on one
   line, never bold (Christopher, 2026-10-22). */
/* Pinned to the FIRST line, not centred on the block: the running count wraps onto a second line, and
   a centred two-line label sat lower than the Stop button and spinner beside it. Each item fills a
   20px row: Stop is 20px, the 16px spinner sits 2px down, the label's line box is 20px. */
.closer-txn-status.closer-txn-busy { display: flex; align-items: flex-start; }
.closer-txn-status.closer-txn-busy > .text-primary { font-weight: 400; line-height: 20px; min-width: 0; }
.closer-txn-status.closer-txn-busy > .spinner-border { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.closer-txn-status.closer-txn-busy > .btn { flex: none; }
.closer-txn-link { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 600; color: #250d47; cursor: pointer; }
.closer-txn-link:hover { color: #e91e63; }
.closer-txn-examples { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin: .25rem 0 .75rem; }
.closer-txn-example { border: 0; background: none; padding: 0; font-size: 14px; color: #250d47; cursor: pointer; }
.closer-txn-example:hover { color: #e91e63; }
.closer-txn-example + .closer-txn-example::before { content: "\00B7"; color: #8a8f98; font-weight: 700; margin-right: .75rem; }   /* a grey dot between suggestions, in the flex gap's rhythm */
.closer-txn-guide { margin: 0 0 .75rem; padding: .5rem .75rem; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem; }
.closer-txn-guide-host[hidden] { display: none; }
.closer-txn-guide-lead { margin: 0 0 .4rem; font-size: 14px; font-weight: 400; color: #2d2c2f; }
.closer-txn-guide-table { width: 100%; font-size: 14px; color: #2d2c2f; }
.closer-txn-guide-table td { padding: .15rem .5rem .15rem 0; vertical-align: top; border-bottom: 1px solid #f4f4f6; }
.closer-txn-guide-table td:first-child { width: 45%; white-space: nowrap; }
.closer-txn-guide-table code { font-size: 14px; color: #250d47; background: #f7f5fb; padding: .05rem .3rem; border-radius: .25rem; }
.closer-txn-col-opt { font-size: 14px; display: flex; align-items: center; }
.closer-txn-guide-title { font-size: 14px; font-weight: 600; color: #250d47; }   /* the guide's sub-header */
/* Every Columns picker (the drill-down's, the GL search's, the General Ledger's): one 32px row —
   12px label, the checkbox 6px before it, 7px 12px padding — between the drill's cramped 28px and the
   GL menus' airy 36px (Christopher, 2026-10-22). The menu scope outranks the theme's dropdown-item
   padding, which had kept the GL menus at 36px. The drill's menu drops its own gap and side padding. */
.closer-fin-drillx-colsmenu { gap: 0; padding: .25rem 0; }
:is(.closer-fin-drillx-colsmenu, .dropdown-menu) :is(.closer-fin-drillx-colopt, .closer-txn-col-opt, .closer-gl-col-opt) {
    display: flex; align-items: center; gap: 6px; height: 32px; min-height: 32px; margin: 0; padding: 7px 12px;
    font-size: 14px; line-height: 18px; color: #2d2c2f; border-radius: 0;
}
.dropdown-menu > li:has(> :is(.closer-txn-col-opt, .closer-gl-col-opt)) { margin: 0; padding: 0; }
:is(.closer-fin-drillx-colopt, .closer-txn-col-opt, .closer-gl-col-opt) > .form-check-input { margin: 0 !important; flex: none; width: 16px; height: 16px; }
:is(.closer-fin-drillx-colopt, .closer-txn-col-opt, .closer-gl-col-opt):hover { background: #e7f1ff; }
.closer-txn-table { font-size: 14px; font-variant-numeric: tabular-nums; }
.closer-txn-table > thead { background: #250d47; }
.closer-txn-table th { color: #fff; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.closer-txn-table td { padding: .3rem .5rem; color: #2d2c2f; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-top: 1px solid #dee2e6; }
.closer-txn-table .closer-txn-amt { text-align: right; }
.closer-txn-row { cursor: pointer; }
.closer-txn-row:hover > td, .closer-txn-row:focus > td { background: #e7f1ff; }
/* Search across clients (fo-gl-search.js): the scope picker, and By client's count and totals per company. */
.closer-txn-scope-wrap { flex: 0 0 auto; }
.closer-txn-scope-wrap[hidden], .closer-txn-clients[hidden] { display: none !important; }
.closer-txn-clients { margin-bottom: .5rem; }
.closer-txn-clients > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; margin-bottom: .3rem; background: transparent; color: #250d47; }
/* The section title in the reconciler account headers' dress: 14px, 600, dark purple, no grey box
   (Christopher, 2026-10-22). */
.closer-txn-clients-title { font-size: 14px; font-weight: 600; color: #250d47; }
.closer-txn-clients > summary:hover .closer-txn-clients-title,
.closer-txn-clients > summary:hover .closer-task-section-caret { color: #e91e63; }
.closer-txn-clients > summary::-webkit-details-marker { display: none; }
.closer-txn-clients[open] > summary .closer-task-section-caret { transform: rotate(90deg); }
.closer-txn-clients-table { width: auto; min-width: 32rem; margin-bottom: 0; }
.closer-txn-clients-table td { cursor: default; }
.closer-txn-clients-table .form-check-input.fo-check-bare { width: 16px; height: 16px; margin: 0; }   /* a whole-pixel box: at 14.76px the tick and the dash rendered off-centre */
.closer-txn-clients-on > td { background: #cfe2ff; }
.closer-txn-clients-table .closer-txn-link { font-size: 14px; }
.closer-txn-clients-tick { width: 1.75rem; padding-right: 0 !important; }
.closer-txn-clients-tick .form-check-input { margin: 0; cursor: pointer; }
.closer-txn-clients-table td.closer-txn-clients-note { white-space: normal; max-width: 26rem; }
/* A month with no snapshot: staff still get its General Ledger, live — the
   statement tabs (and the More menu / basis) have nothing to show. */
.closer-fin-gl-only .closer-fin-stmt-tabs > li:not(.closer-fin-gl-pick) { display: none; }

/* Reconciler Dates menu (DatesPicker): each month row carries an "→ and later" chip on its right
   that picks the month's 1st through the latest activity (Jesse, 2026-10-08). */
.rec-dates-picker {
    position: relative;
}

.rec-dates-toggle {
    text-align: left;
    white-space: nowrap;
}

.rec-dates-menu {
    position: absolute;
    z-index: 1060;
    top: calc(100% + 2px);
    left: 0;
    min-width: 100%;
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.25rem 0;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 0.375rem;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.12);
    font-size: 14px;
}

.rec-dates-divider {
    margin: 0.25rem 0;
    border-top: 1px solid #eaecf0;
}

.rec-dates-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-right: 0.5rem;
}

.rec-dates-row--on {
    background: #cfe2ff;
}

.rec-dates-item {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.25rem 0.75rem 0.25rem 0.4rem;
    border: 0;
    background: transparent;
    color: #344054;
    text-align: left;
    white-space: nowrap;
}

.rec-dates-item:hover,
.rec-dates-item:focus-visible {
    background: #f2f4f7;
}

.rec-dates-item--on {
    font-weight: 600;
    color: #42307d;
}

.rec-dates-check {
    display: inline-block;
    width: 1.1rem;
    color: #6941c6;
}

.rec-dates-since {
    flex: 0 0 auto;
    padding: 0.05rem 0.45rem;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #667085;
    font-size: 14px;
    white-space: nowrap;
}

.rec-dates-since:hover,
.rec-dates-since:focus-visible {
    border-color: #6941c6;
    color: #6941c6;
}

.rec-dates-since--on {
    border-color: #6941c6;
    background: #6941c6;
    color: #fff;
}

/* A Reconciler row's 💬 (beside the 📎, Jesse 2026-10-08). */
.rec-divide-comment-btn {
    margin-left: .15rem;
    font-size: .8rem;
}

/* The comment bubble 💬, everywhere (findings, Financials lines, grids, Reconciler): dark purple at
   rest, hot pink on hover (Christopher, 2026-10-22). Open threads keep their pink, waiting-on-me its red. */
.closer-fin-comment-btn:not(.closer-fin-has-open) { color: #250d47; }
.closer-fin-comment-btn:is(:hover, :focus-visible) { color: #e91e63 !important; }
/* On a dark row (a statement's section and total lines), the bubble is white at rest (Christopher, 2026-11-12). */
:is(.closer-fin-r1, .closer-fin-r2) :is(.closer-fin-comment-btn:not(.closer-fin-has-open), .closer-fin-footnote-btn):not(:hover):not(:focus-visible) { color: #fff; }
/* One look on every surface (TM-2303, Jesse 2026-11-10). With no thread the bubble is an outline,
   with a thread it is solid; either way it is always in view, never only on the row's hover
   (Christopher, 2026-11-11). Both
   glyphs are drawn (comment_bubble_icon.html, foCommentBubbleIcons, CommentBubbleIcon) and this
   picks one, so painting a bubble stays a class toggle. */
.closer-fin-comment-btn .closer-fin-bubble-full,
.closer-fin-comment-btn.closer-fin-has-comments .closer-fin-bubble-empty { display: none; }
.closer-fin-comment-btn.closer-fin-has-comments .closer-fin-bubble-full { display: inline-block; }
/* Settled (comments, none open): faded on every page, row hover included, until the bubble itself
   is pointed at (Jesse, 2026-11-10); it disappears one period later (visibleThreads). Open (pink)
   and waiting-on-you (red) are never faded. */
.closer-fin-comment-btn.closer-fin-dismissed-only:not(.closer-fin-has-open):not(:hover):not(:focus-visible) { opacity: .45; }

/* My Desk ZD composer: the post's confirmation stays put until the next post
   (thread-panel.js), so it reads as saved, not as a passing hint. */
.thread-post-saved {
    color: var(--fo-success, #1a7f4b);
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Accruer Onboarding wizard (templates/accruer/onboarding_*.html, static/js/accruer/onboarding.js).
   Preparer-only pages: stepper, account tabs, tie-out cards, the proposal ledger with its internal
   side panel, and a footer CTA. Brand palette; the layout follows the approved mock (10-08).
   --------------------------------------------------------------------------- */
.onb-wrap {
    display: grid;
    gap: 1rem;
    max-width: 1280px;
}

.onb-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.onb-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #101828;
}

.onb-back {
    color: #6941c6;
    text-decoration: none;
}

.onb-back:hover,
.onb-back:focus-visible {
    text-decoration: underline;
}

.onb-muted {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.onb-more {
    color: #667085;
    font-style: italic;
}

.onb-pad {
    margin: 0;
    padding: 0.75rem 0.9rem;
}

.onb-nowrap {
    white-space: nowrap;
}

.onb-required {
    font-size: 12px;
    font-weight: 600;
    color: #b42318;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.onb-error {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #fda29b;
    border-radius: 0.375rem;
    background: #fef3f2;
    color: #b42318;
    font-size: 14px;
}

.onb-banner {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #fedf89;
    border-radius: 0.375rem;
    background: #fffaeb;
    color: #b54708;
    font-size: 14px;
}

/* Stepper */
.onb-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.onb-step {
    padding: 0.2rem 0.65rem;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #667085;
    font-size: 14px;
    white-space: nowrap;
}

.onb-step:hover,
.onb-step:focus-visible {
    border-color: #6941c6;
    color: #6941c6;
}

.onb-step-done {
    color: #344054;
    border-color: #a6f4c5;
    background: #ecfdf3;
}

.onb-step-on {
    border-color: #6941c6;
    background: #6941c6;
    color: #fff;
    font-weight: 600;
}

.onb-step-on:hover,
.onb-step-on:focus-visible {
    color: #fff;
}

/* Cards and tables */
.onb-card {
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #eaecf0;
    border-radius: 0.5rem;
    background: #fff;
}

.onb-card-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #101828;
}

.onb-subtitle {
    margin: 0.5rem 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #344054;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.onb-tblwrap {
    overflow-x: auto;
}

.onb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.onb-table th,
.onb-table td {
    padding: 0.35rem 0.75rem;
    border-top: 1px solid #eaecf0;
    text-align: left;
    vertical-align: top;
}

.onb-table th {
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.onb-table tfoot td {
    font-weight: 600;
    color: #344054;
}

.onb-table .onb-num,
.onb-num {
    text-align: right;
    font-family: var(--bs-font-monospace, monospace);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.onb-id {
    font-family: var(--bs-font-monospace, monospace);
    white-space: nowrap;
}

.onb-row-selected td {
    background: #cfe2ff;
}

.onb-row-link td {
    color: #667085;
}

.onb-row-link td:nth-child(2)::before {
    content: "\21b3\00a0";
}

.onb-why {
    color: #667085;
}

.onb-note {
    margin-top: 0.15rem;
    color: #b54708;
    font-size: 14px;
}

.onb-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #eaecf0;
    border-radius: 0.5rem;
    background: #fff;
}

.onb-foot p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.onb-foot-actions,
.onb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

/* Chips */
.onb-chip {
    display: inline-block;
    padding: 0.05rem 0.45rem;
    border-radius: 0.25rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.onb-chip-ex {
    background: #fef3f2;
    color: #b42318;
}

.onb-chip-rev {
    background: #fffaeb;
    color: #b54708;
}

.onb-chip-keep {
    background: #ecfdf3;
    color: #027a48;
}

.onb-chip-draft {
    background: #f4f3ff;
    color: #6941c6;
}

.onb-chip-live {
    background: #ecfdf3;
    color: #027a48;
}

/* Onboarding start form: the schedule read first, and the apply-to-all row */
.onb-schedule-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    max-width: 640px;
}

.onb-schedule-upload .form-control {
    flex: 1 1 280px;
}

.onb-table thead tr.onb-apply-all th {
    background: #f4f3ff;
    color: #250d47;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

/* Accruer onboarding, drop-in review (TM-2311): what was worked out, one per line, and the review's two actions. */
.onb-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #2d2c2f;
}

.onb-review-list .onb-why {
    display: block;
    color: #495057;
    margin-top: 2px;
}

.onb-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.onb-start-schedule-chip:empty {
    display: none;
}

/* An inline result line (a schedule read, a check): the standard 12px message */
.onb-msg {
    margin: 0.25rem 0;
    font-size: 14px;
}

/* The onboarding summary to copy into an email or ticket */
.onb-summary {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    color: #2d2c2f;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Policies: one question per card */
.onb-policy-grid {
    display: grid;
    gap: 1rem;
}

.onb-policy-group {
    display: grid;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #eaecf0;
    border-radius: 0.5rem;
    background: #fcfcfd;
}

.onb-q-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.onb-q {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    padding: 0.6rem 0.75rem;
    border: 1px solid #eaecf0;
    border-radius: 0.5rem;
    background: #fff;
}

.onb-q-label {
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}

.onb-q-hint {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.onb-radio-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

.onb-radio-row label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 8.5rem;
}

.onb-input-short {
    max-width: 10rem;
}

/* Schedule */
.onb-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.onb-file {
    max-width: 22rem;
}

.onb-schedule-account {
    max-width: 22rem;
}

.onb-parsed {
    display: grid;
    gap: 0.5rem;
}

.onb-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

/* Reconcile's Summary tab (TM-2171): every fixed-asset account summed, and what to do next */
.onb-rec-title {
    margin: 0;
    color: #250d47;
    font-size: 16px;
    font-weight: 600;
}

.onb-rec-subtitle {
    margin: 0.5rem 0 0;
    color: #250d47;
    font-size: 14px;
    font-weight: 600;
}

.onb-rec-text {
    margin: 0;
    color: #2d2c2f;
    font-size: 14px;
    font-weight: 400;
}

/* The fo-check-table head pins under Closer's tab strip; this page has none. */
.fo-check-table.onb-rec-table > thead > tr > th {
    position: static;
}

.onb-rec-table td {
    color: #2d2c2f;
    font-size: 14px;
    font-weight: 400;
}

.onb-rec-table td.fo-table-footer-cell {
    color: #fff;
    font-weight: 600;
}

.onb-rec-partial {
    margin-left: 0.35rem;
    color: #495057;
    font-family: var(--bs-body-font-family);
    font-size: 14px;
}

.onb-rec-actions {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #2d2c2f;
    font-size: 14px;
}

.onb-rec-open {
    padding: 0;
    border: 0;
    background: none;
    color: #250d47;
    font-weight: 600;
    text-align: left;
}

.onb-rec-open:hover,
.onb-rec-open:focus-visible {
    color: #e91e63;
}

/* Reconcile: account tabs, tie-outs, ledger + side panel */
.onb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid #eaecf0;
}

.onb-tab {
    padding: 0.45rem 0.85rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #667085;
    font-size: 14px;
}

.onb-tab-on {
    border-bottom-color: #6941c6;
    color: #101828;
    font-weight: 600;
}

.onb-tab-meta {
    margin-left: 0.4rem;
    color: #667085;
    font-family: var(--bs-font-monospace, monospace);
    font-size: 14px;
    font-weight: 400;
}

.onb-ties {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0;
}

@media (max-width: 820px) {
    .onb-ties {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .onb-ties {
        grid-template-columns: minmax(0, 1fr);
    }
}

.onb-tie {
    display: grid;
    gap: 0.35rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #eaecf0;
    border-radius: 0.5rem;
    background: #fff;
}

.onb-tie-title {
    margin: 0;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.onb-tie-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.1rem 0.75rem;
    margin: 0;
    font-size: 14px;
}

.onb-tie-dl dt {
    color: #667085;
    font-weight: 400;
}

.onb-tie-dl dd {
    margin: 0;
    text-align: right;
    font-family: var(--bs-font-monospace, monospace);
    font-variant-numeric: tabular-nums;
}

.onb-verdict {
    justify-self: start;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.onb-verdict-ok {
    background: #ecfdf3;
    color: #027a48;
}

.onb-verdict-off {
    background: #fffaeb;
    color: #b54708;
}

.onb-verdict-none {
    background: #f2f4f7;
    color: #667085;
}

.onb-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 980px) {
    .onb-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

.onb-ledger {
    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 0.5rem;
    background: #fff;
}

.onb-group {
    border-top: 1px solid #eaecf0;
}

.onb-group:first-child {
    border-top: 0;
}

.onb-ghead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    padding: 0.6rem 0.9rem;
}

.onb-card .onb-ghead,
.onb-policy-group .onb-ghead {
    padding: 0;
}

.onb-gtitle {
    font-weight: 600;
    color: #101828;
}

.onb-gmeta {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.onb-gamt {
    margin-left: auto;
    font-family: var(--bs-font-monospace, monospace);
    font-variant-numeric: tabular-nums;
}

.onb-gact {
    margin-left: auto;
}

.onb-side {
    display: grid;
    gap: 0.75rem;
}

.onb-field {
    display: grid;
    gap: 0.2rem;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}

.onb-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.onb-split-table .form-control {
    min-width: 6.5rem;
}

/* Schedule: column mapping, prepaid line fixes, the Chat prompt */
.onb-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    align-items: end;
    gap: 0.5rem 0.75rem;
}

/* A column the client's remembered choices picked (TM-2546), under its dropdown. */
.onb-map-note {
    font-size: 12px;
    font-weight: 400;
    color: #495057;
}

.onb-fix-account,
.onb-fix-end {
    min-width: 9rem;
}

/* v3 (Jonah, 10-25): leave-out tick, the saved rows' toggle, the go-live checks */
.onb-leave-out-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
    font-size: 14px;
    white-space: nowrap;
    color: #495057;
}

.onb-notes {
    min-width: 12rem;
}

.onb-saved-toggle {
    padding: 0;
    border: 0;
    background: none;
    color: #250d47;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.onb-saved-toggle:hover {
    color: #e91e63;
}

.onb-saved-toggle .onb-open {
    transform: rotate(90deg);
}

.onb-checks {
    margin: 0 0 0.6rem;
    padding-left: 0;
    list-style: none;
    font-size: 14px;
}

.onb-checks li {
    margin-bottom: 0.25rem;
}

.onb-split-sum {
    margin: 0;
    color: #027a48;
    font-size: 14px;
    font-weight: 600;
}

.onb-split-sum-off {
    color: #b42318;
}

/* Preview */
.onb-figures {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.onb-figure {
    display: grid;
    gap: 0.1rem;
    min-width: 9rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #eaecf0;
    border-radius: 0.5rem;
}

.onb-figure strong {
    font-family: var(--bs-font-monospace, monospace);
    font-variant-numeric: tabular-nums;
}

.onb-entry {
    display: grid;
    gap: 0.25rem;
}

.onb-entry-head {
    margin: 0;
    font-size: 14px;
}

.onb-warning {
    padding: 0.6rem 0.8rem;
    border: 1px solid #fedf89;
    border-radius: 0.5rem;
    background: #fffaeb;
    color: #93370d;
    font-size: 14px;
}

.onb-warning-bad {
    border-color: #fda29b;
    background: #fef3f2;
    color: #b42318;
}

.onb-kv {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.1rem 0.75rem;
    margin: 0;
    padding: 0;
    font-size: 14px;
    list-style: none;
}

.onb-kv dt {
    color: #667085;
    font-weight: 400;
}

.onb-kv dd {
    margin: 0;
}

/* Arm-then-confirm: the armed state reads as a second, deliberate click. */
.onb-btn-armed {
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.25);
    font-weight: 600;
}

.btn-outline-primary.onb-btn-armed,
.btn-outline-danger.onb-btn-armed {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

ul.onb-kv {
    display: block;
}

.onb-actions .btn[aria-pressed="true"] {
    border-color: #6941c6;
    background: #f4f3ff;
    color: #6941c6;
    font-weight: 600;
}
/* ══ Reconciler (Christopher, 2026-10-07): the app's standard controls ══════════════════════
   Book / Bank's toolbar as the Filters box — the dark purple Filters band over the grey body
   (My Desk's), still sticky; labels as the dark purple caps label; the boxed search; plain
   dropdowns (PlainSelect / bare MultiselectFilter) at the filter controls' 29px. */
.rec-divide-toolbar .mr-individual-filter > label,
.rec-divide-toolbar .mr-individual-filter > .form-label {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: #250d47; margin-bottom: .25rem;
}
.rec-divide-search-box { flex: 0 0 auto; width: 16rem; }
.rec-divide-search-box .rec-divide-search { width: 100%; max-width: none; }
.rec-divide-toolbar .mr-select-btn { height: 29px; line-height: 27px; }
.rec-divide-toolbar .fo-combobox.desk-combobox { display: inline-block; min-width: 10rem; }
.rec-divide-toolbar .rec-divide-date-input { height: 29px; font-size: 14px; border: 1px solid lightgray; border-radius: .375rem; }

/* The shared multi-select's closed button: the chevron every dropdown draws, not the ▾. */
.mr-select-btn-arrow {
    font-size: 0 !important; color: transparent; width: 12px; height: 12px; display: inline-block; flex: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") center / 12px 12px no-repeat;
    vertical-align: middle;
}
/* PlainSelect's chosen row in its list. */
.fo-combobox-option.fo-combobox-selected { font-weight: 600; color: #250d47; }

/* The cash chip and its panel in the site palette: the hover was an undefined --fo-orange's
   #f5820d fallback (no such colour in the app). Hover now darkens the border like the other
   white controls; a negative cash figure is Bootstrap danger; the panel rows at 12px in body ink,
   notes in dark grey, no grey "stale" band. */
.fo-cash-chip-button { background: #fff; border-color: lightgray; color: #2d2c2f; font-size: 12px; }
.fo-cash-chip-button:hover, .fo-cash-chip-button:focus { border-color: #250d47; }
.fo-cash-chip-negative { color: #dc3545; }
.fo-cash-chip-asof, .fo-cash-chip-mask, .fo-cash-chip-note { color: #495057; }
.fo-cash-chip-panel { border-color: #dee2e6; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.fo-cash-chip-row { font-size: 12px; color: #2d2c2f; border-bottom: 1px solid #dee2e6; }
.fo-cash-chip-row:last-of-type { border-bottom: 0; }
.fo-cash-chip-row-stale { background: transparent; }
.fo-cash-chip-account { font-weight: 600; }
.fo-cash-chip-note { font-size: 12px; }
.fo-cash-chip-link, .fo-cash-chip-link:visited { color: #250d47; font-size: 12px; font-weight: 600; text-decoration: none; }
.fo-cash-chip-link:hover { color: #e91e63; }
/* Reconciler page text and links: help lines in dark grey at 13px (they were the faded
   text-muted), notes 12px, links the site pair. */
.rec-help { font-size: 14px; color: #495057; font-weight: 400; }
.rec-settings-note { font-size: 14px; color: #2d2c2f; }   /* body ink (Christopher, 2026-10-09: darker) */
#settings-tab .rec-settings-row, #settings-tab .rec-settings-row label { font-size: 14px; color: #2d2c2f; }
#settings-tab .form-check-input.fo-check-bare { width: 14px; height: 14px; margin-top: .2rem; }
#settings-tab .rec-settings-days { width: 4rem; height: 29px; font-size: 14px; border: 1px solid lightgray; border-radius: .375rem; display: inline-block; }
#settings-tab .fo-combobox.desk-combobox { display: inline-block; min-width: 12rem; vertical-align: middle; }
.rec-link, .rec-link:visited { color: #250d47; font-weight: 600; text-decoration: none; }
.rec-link:hover, .rec-link:focus { color: #e91e63; }
/* The Reconciler tab strip as Closer's: white tabs, the active one solid dark purple; "Bank Data"
   as the dark purple caps group label. */
#workflows-tabs.rec-tabs { border-bottom: 0; align-items: baseline; }
#workflows-tabs.rec-tabs .nav-link {
    font-size: 14px; line-height: 1.2; padding: .3rem .55rem; color: #250d47;
    border: 1px solid #ede9f5; border-bottom: none; border-radius: .45rem .45rem 0 0;
    background: #fff; margin-right: .25rem; margin-bottom: 0;
    display: inline-flex; align-items: center; gap: .35rem; height: 31px;
}
#workflows-tabs.rec-tabs .nav-link:hover { background: #fff; color: #e91e63; }
#workflows-tabs.rec-tabs .nav-link.active,
#workflows-tabs.rec-tabs .nav-link.active:hover { background: #250d47; border-color: #250d47; color: #fff; }
#workflows-tabs.rec-tabs .rec-bankdata-links-label,
#workflows-tabs.rec-tabs .rec-bankdata-links-label:hover {
    background: transparent; border: 0; height: auto; padding-left: 0;
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
}
/* A standard modal (fo-std-modal): 14px dark purple title, 12px body in body ink. */
.fo-std-modal .modal-title { font-size: 14px; font-weight: 700; color: #250d47; }
/* A modal's lead line above its fields: 12px body text, not the theme's faded small print. */
.fo-std-modal .modal-body .fo-modal-intro { font-size: 14px; color: #2d2c2f; font-weight: 400; }
.fo-std-modal .modal-body, .fo-std-modal .modal-body p, .fo-std-modal .modal-body li:not([role="option"]):not(.fo-combobox-option) { font-size: 14px; color: #2d2c2f; font-weight: 400; }
/* Reconcilable Accounts as the app's table (fo-check-table: dark purple header, 12px cells,
   rules between rows), every column left-aligned, text in body ink. */
.rec-accounts-table { width: 100%; margin-bottom: .75rem; }
.rec-accounts-table td { font-size: 14px; color: #2d2c2f; vertical-align: top; text-align: left; padding: .4rem .6rem; border-bottom: 1px solid #dee2e6; }
/* Top-aligned rows (Christopher, 2026-11-12): the tick, the name and the type ride the first line,
   level with the 29px Bank Source dropdown and Notes box beside them (21px of text + 4px). */
.rec-accounts-table td:is(.rec-accounts-tick, .rec-accounts-name, .rec-accounts-type) { padding-top: calc(.4rem + 4px); }
.rec-accounts-table th { text-align: left; }
.rec-accounts-table .rec-accounts-tick { width: 2rem; text-align: center; }
.rec-accounts-table .rec-accounts-tick .form-check-input.fo-check-bare { float: none; margin: 0; }
.rec-accounts-table .rec-accounts-name { font-weight: 600; }
.rec-accounts-table .rec-accounts-type { color: #495057; font-size: 14px; white-space: nowrap; }
.rec-accounts-table .rec-accounts-source { margin-left: 0; min-width: 11rem; font-size: 14px; padding: 0; }
.rec-accounts-source-line { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.rec-accounts-table .rec-accounts-source-inherited { color: #495057; font-size: 14px; font-style: italic; margin-top: .2rem; }
.rec-accounts-table .rec-accounts-cascade { color: inherit; padding: 0 .6rem; height: 29px; display: inline-flex; align-items: center; }
.rec-accounts-table .rec-accounts-reason-input {
    max-width: none; width: 100%; margin: 0; height: 29px; font-size: 14px; padding: 0 .5rem;
    background: #fff; border: 1px solid lightgray; border-radius: .375rem;
}
/* An expand / collapse section heading: the chevron that turns down when open, a bold title in
   dark purple, its count chip and a note in dark grey. */
.rec-section-summary {
    display: flex; align-items: center; gap: .5rem; list-style: none; cursor: pointer;
    padding: .5rem 0 !important; font-size: 14px !important;
}
.rec-section-summary::-webkit-details-marker { display: none; }
.rec-section-summary::marker { content: ''; }
.rec-section-caret { width: .9rem; font-size: .65rem; color: #250d47; transition: transform .15s ease; }
details[open] > .rec-section-summary .rec-section-caret { transform: rotate(90deg); }
.rec-section-title { font-size: 14px; font-weight: 700; color: #250d47; }
.rec-section-summary .closer-note-number { font-size: 12px; padding: .2rem .5rem; margin: 0; }
.rec-section-note { color: #495057; font-size: 14px; }
.rec-accounts-set-aside > summary { color: inherit; font-size: inherit; }
/* Earlier card numbers (TM-2378): one line per number, a dark purple × that turns hot pink. */
.rec-accounts-table .rec-accounts-previous { white-space: nowrap; }
.rec-accounts-previous-line { display: flex; align-items: center; gap: .35rem; margin-bottom: .25rem; }
.rec-accounts-previous-remove { background: none; border: 0; padding: 0 .2rem; color: #250d47; line-height: 1; }
.rec-accounts-previous-remove:hover, .rec-accounts-previous-remove:focus { color: #e91e63; }
/* Loading, the app's way: a spinner and a short dark grey line. */
.rec-loading { font-size: 14px; color: #495057; padding: .75rem 0; }
/* Rules grid row actions are the workflow screens' buttons (Bootstrap outline classes set in
   columns.ts): undo the old square's size and colours, which also carried the undefined
   --fo-orange's #f5820d fallback on the bolt. "Fired" counts in Bootstrap danger. */
.rec-action-btn.btn { width: auto; height: auto; line-height: 1; }
.rec-fired { color: #dc3545; }
/* The Rules grid's header as every table's: 12px, no white rules between the cells (they showed
   as a white seam when the header pinned), pinned flush at the top of its scroller. */
.reconciler-rules-mount .fo-table-header-cell { font-size: 12px; border-color: #250d47 !important; }
.reconciler-rules-mount .fo-table-thead-sticky { top: 0; }
.reconciler-rules-mount .table-bordered > :not(caption) > * > * { border-color: #dee2e6; }
.reconciler-rules-mount .table-bordered > thead > tr > th { border-color: #250d47 !important; }
/* The Filters box (ResultsTable filtersBox, and any page's own): the dark purple "Filters" band
   over the grey body holding the search and the toolbar. */
.fo-search-box { flex: 0 1 18rem; }
.fo-search-box .fo-search-input { width: 100%; max-width: none; }
/* The shared tables' search (ResultsTable) in the boxed-search size, over .fo-search-input's
   older 14px / !important border. */
.fo-search-box .fo-check-search-input.fo-search-input {
    height: 29px; font-size: 14px; padding: 0 .75rem 0 2rem;
    border: 1px solid lightgray !important; border-radius: .5rem !important;
}
/* Rec Status: the app's table header (dark purple band, white 12px), cells 12px in body ink,
   the account names as the site's links, the status chips in the shared chip palette and size
   (closed green, pending amber, dismissed red, new grey-purple), and the months toggle at the
   small segmented size of Closer's view toggle. */
.rec-status-table { font-size: 14px; color: #2d2c2f; }
.rec-status-table .rec-status-account-head { background: #250d47; z-index: 2; }
.rec-status-table td { border-bottom: 1px solid #dee2e6; padding: .3rem .5rem; }
/* A month needing attention keeps the white label; the hot pink chip beside it carries the count. */
.rec-status-month-alert {
    display: inline-block; min-width: 16px; height: 16px; margin-left: 5px; padding: 0 4px;
    border-radius: 8px; background: #e91e63; color: #fff; font-size: 10px; font-weight: 700;
    line-height: 16px; text-align: center; vertical-align: middle;   /* 10px like every count chip, centred on the month (Christopher, 2026-11-12) */
}
.rec-divide-link, .rec-divide-link:visited, .rec-divide-linkbtn { color: #250d47; text-decoration: none; font-weight: 600; }
.rec-divide-link:hover, .rec-divide-link:focus, .rec-divide-linkbtn:hover, .rec-divide-linkbtn:focus { color: #e91e63; text-decoration: none; }
.rec-status-chip { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: .25rem .6rem; border-color: transparent; line-height: 1.1; }
.rec-status-chip-reconciled, .rec-status-chip-ready { background: #e6f4ea; border-color: transparent; color: #1b7a3d; }
.rec-status-chip-waiting, .rec-status-chip-stmt-noact, .rec-status-chip-unbooked { background: #fff3e0; border-color: transparent; color: #b26a00; }
/* Unreconciled — the statement doesn't tie, or items are still uncleared — in the danger red, the
   grid, its legend, the detail list and the band's chip alike (Christopher, 2026-10-09). */
.rec-status-chip-unreconciled { background: #fce8e6; border-color: transparent; color: #c5221f; }
.rec-status-chip-drifted { background: #fce8e6; border-color: transparent; color: #c5221f; }
.rec-status-chip-open { background: #ece9f1; border-color: transparent; color: #250d47; }
.rec-status-toolbar .btn-group .btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 24px; padding: 1px .55rem 0; font-size: .8rem; line-height: 1; min-width: 2rem; margin-bottom: 0;
}
.rec-status-grid .text-muted, .rec-status-legend { color: #495057 !important; }
/* Book / Bank: every expand / collapse is the app's chevron, turned down when open; the shut
   card's "N rows hidden — click to show" and the band's claims ("reconciled through …") are the
   site's links; Reconcile… is a Bootstrap small button. */
.rec-chevron { width: .9rem; font-size: .65rem; color: #250d47; transition: transform .15s ease; display: inline-block; text-align: center; }
[aria-expanded="true"] .rec-chevron { transform: rotate(90deg); }
.rec-divide-zip { padding: 0 .35rem 0 0; }
.rec-divide-family-chip .rec-chevron, .rec-divide-client-toggle .rec-chevron { margin-right: .3rem; }
.rec-divide-zipped, .rec-divide-zipped:hover { color: #250d47; font-weight: 600; font-size: 14px; background: #f8f9fa; }
.rec-divide-zipped:hover { color: #e91e63; }
.rec-divide-zipped--empty, .rec-divide-zipped--empty:hover { color: #495057; font-weight: 400; }
.btn.rec-divide-finalize-btn { margin-left: .6rem; padding: .5px .6rem 0; height: 24px;   /* measured: capitals' mid on the box's mid (2026-10-09) */
    font-size: .7rem; font-weight: 700; border-radius: .375rem; display: inline-flex; align-items: center; }
.btn.rec-divide-finalize-btn.btn-outline-info { background: #fff; color: #1A73E8; border: 1px solid #1A73E8; }
.btn.rec-divide-finalize-btn.btn-outline-info:hover { background: #1A73E8; color: #fff; }
.btn.rec-divide-finalize-btn.btn-outline-danger { background: #fff; color: #F44335; border: 1px solid #F44335; }   /* Finalize Later: the hollow red of a close/exit with an x (Christopher, 2026-10-27) */
/* The row-state chips (rule matched / needs review / book-only / unclassified) as the app's one
   chip: 10px caps on the shared state colours — closed green, pending amber, dismissed red, new
   grey-purple. */
.rec-outage-bucket {
    display: inline-block; border: 0 !important; border-radius: 999px; padding: .25rem .6rem;
    font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1;
}
.rec-outage-bucket--rule-matched { background: #e6f4ea !important; color: #1b7a3d !important; }
.rec-outage-bucket--guess        { background: #fff3e0 !important; color: #b26a00 !important; }
.rec-outage-bucket--book-only    { background: #fce8e6 !important; color: #c5221f !important; }
.rec-outage-bucket--unclassified { background: #ece9f1 !important; color: #250d47 !important; }
/* Book / Bank's in-grid controls in the app's control style: white, 1px lightgray, .375rem
   corners, 12px; the React ComboBox's caret the same chevron as every dropdown; site checkboxes
   at 14px inline; the PlainSelect dropdowns that replaced the native ones sized to the row (the
   wrapper carries the old input classes, the button wears the look). The text inputs (Memo, a
   split's amount and description, free-text custom fields) keep their own rule: sharing the
   caret's selector shrank every one of them to a 12px chevron with its text hidden. */
.reconciler-divide .rec-divide-edit-input:not(.fo-combobox) { font-size: 14px; border-radius: .375rem; }
.rec-combo-caret {
    font-size: 0 !important; color: transparent; width: 12px; height: 12px; display: inline-block; flex: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") center / 12px 12px no-repeat;
}
.reconciler-divide .form-check-input.fo-check-bare,
.reconcilable-accounts .form-check-input.fo-check-bare,
.rec-suggest-modal-dialog .form-check-input.fo-check-bare { float: none; margin: 0; width: 14px; height: 14px; vertical-align: middle; flex: none; }
.fo-combobox.rec-divide-edit-input,
.fo-combobox.rec-divide-type-select { border: 0; padding: 0; height: auto; background: transparent; box-shadow: none; display: block; width: 100%; }
.fo-combobox.rec-divide-edit-input .fo-combobox-display { height: 1.9rem; width: 100%; justify-content: space-between; color: #2d2c2f; background: #fff; }
.fo-combobox.rec-divide-edit-input--changed .fo-combobox-display { background: #eff4ff; border-color: #84adff; }
.fo-combobox.rec-divide-stmt-select,
.fo-combobox.rec-outage-view-picker,
.fo-combobox.rec-rules-quicklook-sort,
.fo-combobox.rec-suggest-disposition-pick { display: inline-block; width: auto; min-width: 9rem; vertical-align: middle; }
.fo-combobox-option.fo-combobox-option-disabled { color: #adb5bd; cursor: default; }
/* Labels inside the standard modals: the dark purple caps label; a label's aside in dark grey. */
.fo-std-modal .form-label, .fo-std-modal .rec-modal-section-label {
    font-size: 12px !important; font-weight: 600 !important; letter-spacing: .06em; text-transform: uppercase; color: #250d47; margin-bottom: .25rem;
}
.fo-std-modal .form-label .rec-label-note { text-transform: none; letter-spacing: normal; font-weight: 400; color: #495057; }
.fo-std-modal .fo-combobox.plain-select { display: block; width: 100%; }
.fo-std-modal .fo-combobox.plain-select .fo-combobox-display { width: 100%; }
.fo-std-modal .form-control-sm { height: 29px; font-size: 14px; border: 1px solid lightgray; border-radius: .375rem; background: #fff; }
.rec-chevron--open { transform: rotate(90deg); }
.rec-inline-field { display: inline-flex; align-items: center; gap: .4rem; }
/* Bank Data's explainer as Closer's Get started panel: the solid blue, white text, the × in
   white at the top right, bullets indented by a hair. */
/* Bank Data ▸ Balances as the app's table: the dark purple header in white 12px (not slate,
   not caps), 12px cells in body ink, the chevron in dark purple, the variance a site link. */
.bank-balances-table > tbody > tr > td { font-size: 14px; color: #2d2c2f; border-bottom: 1px solid #dee2e6; }
.bank-balances-table > tbody > tr > td.text-danger { color: #dc3545 !important; }
.bank-balances-toggle { color: #250d47; }
.bank-balances-mask, .bank-balances-subcount, .bank-balances-secondary { color: #495057; }
.bank-balances-variance-link, .bank-balances-variance-link:visited { color: inherit; text-decoration: none; font-weight: 600; }
.bank-balances-variance-link:hover { color: #e91e63; }
.bank-balances-caveat { font-size: 14px; color: #495057; }
/* ══ Bank Data (Christopher, 2026-10-07): the app's standard controls ═══════════════════════
   Each tab's filter row as the Filters box; labels as the dark purple caps label; date inputs and
   the Accounts picker at the filter controls' 29px / 12px, the picker plain with the chevron;
   no rule under the upload area; status pills in the shared chip palette; the row icon actions
   as small bordered squares (dark grey, the delete turning Bootstrap danger); help text in dark
   grey, not the faded muted grey. */
.plaid-connections-page .activity-filters.fo-filters-box { display: flex; align-items: flex-end; }
.plaid-connections-page .activity-filter label {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; margin-bottom: .25rem;
}
.plaid-connections-page .activity-filter input[type="date"],
.plaid-connections-page .activity-filter input[type="search"],
.plaid-connections-page .activity-filter input[type="text"] {
    height: 29px; font-size: 14px; background: #fff; border: 1px solid lightgray; border-radius: .375rem;
}
.plaid-connections-page .bank-accounts-filter-toggle .fo-combobox-caret { margin-left: auto; }
.plaid-connections-page .bank-accounts-filter-option { align-items: center; gap: .4rem; font-size: 14px !important; color: #2d2c2f !important; }
.plaid-connections-page .bank-accounts-filter-option .form-check-input.fo-check-bare { float: none; margin: 0; width: 14px; height: 14px; flex: none; }
.plaid-connections-page .bank-files-upload { border-bottom: 0; }
.plaid-connections-page .text-muted { color: #495057 !important; }
.plaid-connections-page .bank-files-upload p, .plaid-connections-page .plaid-page-subtitle { font-size: 14px; font-weight: 400; color: #495057; }
.plaid-connections-page .status-pill {
    font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
    padding: .2rem .6rem; border: 0; border-radius: 999px; line-height: 1.1;   /* the app chip's (.closer-pill) */
}
.plaid-connections-page .status-pill .fa, .plaid-connections-page .status-pill svg { display: none; }
.plaid-connections-page .status-pill.is-success { background: #e6f4ea; color: #1b7a3d; }
.plaid-connections-page .status-pill.is-error { background: #fce8e6; color: #c5221f; }
.plaid-connections-page .status-pill.is-warning, .plaid-connections-page .status-pill.is-pending { background: #fff3e0; color: #b26a00; }
.plaid-connections-page .status-pill.is-neutral { background: #ece9f1; color: #250d47; }
.plaid-connections-page .bank-file-restore-btn { height: 29px; display: inline-flex; align-items: center; }
/* Bank Data tables' header: the dark purple band, white 12px. */
.plaid-connections-page .table > tbody > tr > td { font-size: 14px; color: #2d2c2f; }
/* Deferred panes' loading line, the app's way: a spinner and a short 12px dark grey line. */
.rec-bankdata-loading { font-size: 14px; color: #495057; padding: .75rem 0; }
/* Standard modals: a dropdown fills its field, its choice at the left; radios in the site's
   hot pink when chosen. */
.fo-std-modal .fo-combobox.desk-combobox { display: block; width: 100%; }
/* The Reconciler card: ONE inset — the app card's 1.5em — around everything inside it. The
   card-body's own padding stacked a second one, and the tab header sat on a grey band of its own
   (Christopher, 2026-10-07: the table, buttons and filters were not left-aligned with the blue
   box, and the card's left / right padding was wrong for the margin around its contents). */
section.app-card:has(#reconciler-workflow-tab) > .card-body { padding: 0; }
#reconciler-workflow-tab > .card-header { background: transparent; padding: 0; margin: 0 0 5px; border: 0; }
#reconciler-workflow-tab #workflows-tabs.rec-tabs { margin-left: 0 !important; margin-right: 0; }
#reconciler-workflow-tab > .tab-content { background: transparent; padding: 0; }
/* Bank Data ▸ Connections toolbar: the search and the buttons on one centred line, flush with the
   table's left edge; the blue box spans the full width (the empty actions slot beside it left a
   gap at its right) with no extra room above it. */
.plaid-connections-page .dataTables_wrapper .dataTables_filter { float: none; margin: 0; padding: 0; text-align: left; }
.plaid-connections-page .dataTables_wrapper .dataTables_filter label { margin: 0; display: flex; align-items: center; position: relative; width: 18rem; }
.plaid-connections-page .dataTables_wrapper .dataTables_filter .fo-check-search-input { margin: 0 !important; width: 100%; height: 29px; font-size: 14px; }
.plaid-connections-page .dataTables_wrapper:has(.pg-inline-buttons) > .dataTables_filter,
.plaid-connections-page .dataTables_wrapper .pg-inline-buttons { display: inline-flex; align-items: center; vertical-align: top; height: 29px; margin: 0 0 8px; }
/* The row's line box holds only the 29px controls, so the gap under them is the 10px above them
   (Christopher, 2026-10-07: match the spacing below the search to the spacing above it). */
.plaid-connections-page .dataTables_wrapper:has(.pg-inline-buttons) { line-height: 29px; }
.plaid-connections-page .dataTables_wrapper .pg-inline-buttons { gap: .5rem; margin-left: .5rem; }
.plaid-connections-page .dataTables_wrapper .pg-inline-buttons .btn { height: 29px; display: inline-flex; align-items: center; margin: 0 !important; padding-top: 0; padding-bottom: 0; }
.plaid-connections-page .plaid-page-header > div:first-child { flex: 1 1 auto; min-width: 0; }
.plaid-connections-page .plaid-page-actions:empty { display: none; }
.plaid-connections-page .plaid-page-actions:not(:has(*)) { display: none; }
.plaid-connections-page .bank-invite-toolbar { margin-top: 0 !important; }
.plaid-connections-page .bank-invite-toolbar .btn { height: 29px; display: inline-flex; align-items: center; }
/* No grey band under the Reconciler tabs: the strip and its header sit on the card's white. */
#reconciler-workflow-tab > .card-header,
#reconciler-workflow-tab #workflows-tabs.rec-tabs,
#reconciler-workflow-tab #workflows-tabs.rec-tabs > .nav-item { background: transparent !important; }
/* The cash chip's icon centred on its line with the figures. */
.fo-cash-chip-button { align-items: center; }
.fo-cash-chip-button > .fa, .fo-cash-chip-button > svg { line-height: 1; }
/* Rec Accounts / Additional Columns: the closed button reads as every other dropdown — the choice
   at the left in body ink on white, the chevron at the right; no blue "active" fill. */
.rec-divide-toolbar .mr-select-btn,
.rec-divide-toolbar .mr-select-btn.mr-select-btn-active {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    text-align: left; color: #2d2c2f; background-color: #fff; border-color: lightgray; min-width: 10rem;
}
.rec-divide-toolbar .mr-select-btn-text { flex: 1 1 auto; text-align: left; }
/* The shared chip at its 10px everywhere on the Reconciler page (its base rule is 14px and was
   only sized down on Closer's panes). */
#reconciler-workflow-tab .closer-pill { font-size: 12px; padding: .25rem .6rem; line-height: 1.1; }
/* The rule row buttons take Bootstrap's outline colours (the old .rec-action-btn rule's grey
   border and icon colour were winning over them). */
.rec-action-btn.btn { color: var(--bs-btn-color); border-color: var(--bs-btn-border-color); background-color: #fff; }
.rec-action-btn.btn:hover:not(:disabled) { color: var(--bs-btn-hover-color); background-color: var(--bs-btn-hover-bg); border-color: var(--bs-btn-hover-border-color); }
/* FaIcon's host span sits inline like the icon it carries. */
.fa-icon-host { display: inline-flex; align-items: center; line-height: 1; }
/* The DataTables search box: room on the left for its magnifying glass (DataTables' own input
   styling reset the padding the boxed search relies on). */
.plaid-connections-page .dataTables_wrapper .dataTables_filter input.fo-check-search-input { padding: 0 .75rem 0 2rem !important; }
.plaid-connections-page .plaid-page-actions:has(*) { margin-left: 1rem; }
/* The rule modal's typeahead pickers (Account, Class, Department, Header Account): the same
   chevron as every dropdown, not a grey ▾; "Advanced" as the site's dark purple link. */
.rec-typeahead-caret {
    font-size: 0 !important; color: transparent !important; width: 12px; height: 12px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") center / 12px 12px no-repeat;
}
.btn.rec-modal-advanced-toggle { color: #250d47; text-transform: none; font-size: 12px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.btn.rec-modal-advanced-toggle:hover { color: #e91e63; }
/* Bank Data in Reconciler's frame: the PAGE never scrolls — the table body does (its height is
   measured in workflow-list.js), so the guide, toolbar, header and pager stay in view. */
.plaid-connections-page #plaid-connections-tab .table-responsive { overflow: visible; }
.rec-bankdata-frame { min-height: 0; }
.rec-bankdata-loading { display: flex; align-items: center; justify-content: center; padding: 4rem 1rem; }
/* The standard loader's "Loading" label at body size, as on the report tables (the pane's 12px would shrink it). */
/* Button icons on the capitals' centre: an uppercase label leaves its line box's descender room
   empty, so a box-centred icon read ~1px low (Christopher, 2026-10-07). */
/* Bank Data tables as the report tables (Accruer / Wrangler ResultsTable): rows alternate
   #f8f8f8 / white, no sorted-column shading, light rules between rows; the "Showing …" line and
   pager as .fo-footer (14px, card ink, 10px above); nothing under the footer. */
.plaid-connections-page :is(#workflows-table, #activity-table) > tbody > tr:nth-child(odd) > td { background-color: #f8f8f8 !important; }
.plaid-connections-page :is(#workflows-table, #activity-table) > tbody > tr:nth-child(even) > td { background-color: #fff !important; }
.plaid-connections-page :is(#workflows-table, #activity-table) > tbody > tr > td { box-shadow: none !important; border-top: 1px solid #dee2e6 !important; border-bottom: 0 !important; }
.plaid-connections-page .dataTables_wrapper .dataTables_info { font-size: 14px; color: var(--bs-card-color); padding-top: 10px; }
.plaid-connections-page .dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
.plaid-connections-page .plaid-table-wrap { padding-bottom: 0 !important; margin-bottom: 0 !important; }
/* The Get Started "Already connected" table as the app's table: dark purple header (fo-check-table),
   body ink, the report cell padding; its header pinned at the top of its own scroll box. */
.rec-get-started-sources-table.fo-check-table > thead > tr > th { top: 0; padding: 6px 8px; color: #fff; }
.rec-get-started-sources-table.fo-check-table td { padding: 6px 8px; color: #2d2c2f; font-size: 14px; }
.rec-get-started-sources-title { color: #2d2c2f; }
/* Rules # column: body ink and size, not muted. */
.fo-table-cell.rec-col-rulenum { color: #2d2c2f; font-size: 14px; font-weight: 400; }
/* Reconcilable Accounts: its own scroll box (height measured in ReconcilableAccounts.tsx); the
   headers pin to ITS top — the shared fo-check-table offset is Closer's tab-strip height. */
.rec-accounts-scroll { overflow-y: auto; }
.rec-accounts-scroll .fo-check-table > thead > tr > th { top: 0; }
/* Checkboxes outside a .form-check on the Reconciler / Bank Data pages: Closer's, exactly — 14px,
   4px corners, the theme's pink gradient when ticked and no drawn tick (Christopher, 2026-10-08:
   the white-check version was not the app's checkbox). */
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal, .fo-combobox-panel) .form-check-input.fo-check-bare[type=checkbox] {
    width: 14px; height: 14px; border-radius: 4px; background-clip: padding-box; overflow: hidden;
}
/* DataTables' scrolling header is a COPY of the table without its id, so #workflows-table's
   table-layout: fixed never reached it: the header laid out automatically and its text sat up to
   8px off the cells below (Christopher, 2026-10-07). Same layout, same columns. */
.plaid-connections-page #workflows-table_wrapper .dataTables_scrollHead table { table-layout: fixed; }
/* Book / Bank chips are the shared chip (closer-pill closer-status-badge closer-status-*), text
   centred in it, and centred on each other — the meta row lined them up by baseline, so a chip
   beside a taller one sat low (Christopher, 2026-10-08). */
#reconciler-workflow-tab .closer-pill { display: inline-flex; align-items: center; line-height: 1; }
.rec-divide-meta:has(> .rec-chip) { align-items: center; }
.rec-chip--lead { margin-right: .4rem; flex: 0 0 auto; }
/* Font Awesome's own vertical offset on the React icon host, as on a bare svg-inline--fa: the host
   sat on the baseline, so the icon rode above the capitals beside it. Replaces the 1px nudge. */
.fa-icon-host { vertical-align: -0.125em; }
/* Book / Bank: the Filters box (and the notices above it) stay put; only the account bands scroll,
   in .rec-divide-scroll, so the scrollbar runs beside the tables, not up past the filters
   (Christopher, 2026-10-08). The frame keeps its viewport cap but no longer scrolls or clips, so
   the filter dropdowns still hang over the grid. Sticky offsets inside the scroller start at 0. */
.rec-divide-frame, .rec-divide-frame--frozen { display: flex; flex-direction: column; overflow: visible; }
.rec-divide-frame > :not(.rec-divide-scroll) { flex: 0 0 auto; }
.rec-divide-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; --rec-toolbar-h: 0px; }
.rec-divide-frame > .rec-divide-toolbar { position: relative; top: auto; box-shadow: none; }
.rec-divide-frame--frozen .rec-divide-scroll > .rec-divide-account { width: var(--rec-table-w, 100%); min-width: 100%; }
.rec-divide-frame--frozen .rec-divide-scroll > .rec-divide-summary,
.rec-divide-frame--frozen .rec-divide-scroll > .rec-divide-status { position: sticky; left: 0; width: var(--rec-frame-w, auto); max-width: 100%; box-sizing: border-box; }
.rec-divide-frame--frozen .rec-divide-scroll > .rec-divide-account--sub { width: calc(var(--rec-table-w, 100%) - 1.5rem); min-width: calc(100% - 1.5rem); }
/* Reconciler statement rows and statement pane (Jesse, 2026-10-28: "display the actual statement row
   (like a snippet of the PDF) on the bank side … visualize the remaining outages as an overlay on the
   actual bank statement"). The scroller and the pane share the frame's row: the dock takes the
   scroller's place in the frame's column, the pane docks at its right with a drag divider. */
.rec-divide-frame > .rec-divide-dock { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.rec-divide-dock > .rec-divide-scroll { flex: 1 1 auto; min-width: 0; }
.rec-stmt-pane { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; min-height: 0;
                 margin-left: 10px; border: 1px solid #dee2e6; border-radius: .375rem; background: #fff; }
/* No room beside the divide (a laptop): over its right edge instead, the divide at full width under it. */
.rec-stmt-pane--floating { position: absolute; top: 0; right: 0; bottom: 0; z-index: 40; margin-left: 0;
                           box-shadow: -8px 0 24px rgba(0, 0, 0, .18); }
.rec-stmt-pane-divider { position: absolute; left: -11px; top: 0; bottom: 0; width: 12px; cursor: col-resize;
                         border-right: 2px solid transparent; }
.rec-stmt-pane-divider:hover, body.rec-stmt-pane-dragging .rec-stmt-pane-divider { border-right-color: #e91e63; }
body.rec-stmt-pane-dragging { cursor: col-resize; user-select: none; }
.rec-stmt-pane-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px;
                      border-bottom: 1px solid #dee2e6; }
.rec-stmt-pane-title { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.rec-stmt-pane-account { font-size: 14px; font-weight: 600; color: #250d47; white-space: nowrap; overflow: hidden;
                         text-overflow: ellipsis; }
.rec-stmt-pane-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 12px; }
.rec-stmt-pane-notes { padding: 0 12px 6px; font-size: 14px; color: #495057; }
.rec-stmt-pane-notes > div + div { margin-top: 2px; }
.rec-stmt-pane-pages { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px 12px 12px; background: #f1f3f5; }
.rec-stmt-pane-msg { padding: 12px; font-size: 14px; color: #2d2c2f; }
.rec-stmt-page { position: relative; width: 100%; margin-bottom: 8px; background: #fff;
                 box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.rec-stmt-page img { display: block; width: 100%; height: 100%; user-select: none; }
/* A line drawn on its page: red an outage, amber dashed not in the feed, faint green cleared, hot
   pink the line picked. Two points of room around the printed words. */
.rec-stmt-box { position: absolute; box-sizing: content-box; margin: 0; padding: 2px; transform: translate(-3px, -3px);
                border: 1px solid transparent; border-radius: 2px; background: transparent; cursor: pointer; }
.rec-stmt-box--outage { border-color: #dc3545; background: rgba(220, 53, 69, .16); }
.rec-stmt-box--missing { border: 1px dashed #b98900; background: rgba(255, 193, 7, .16); }
.rec-stmt-box--cleared { background: rgba(25, 135, 84, .08); }
/* A line read but not yet placed by the tie (its rows still loading): outlined, faintly. */
.rec-stmt-box--unread { border: 1px dotted #adb5bd; }
.rec-stmt-box:hover { border-color: #e91e63; }
.rec-stmt-box--selected, .rec-stmt-box--selected:hover { border: 2px solid #e91e63; transform: translate(-4px, -4px); }
/* A bank row's statement line: the icon leading its narrative (dark purple, hot pink on hover), and
   the line as printed in a popover while the icon is hovered. */
.rec-stmt-peek-btn { flex: 0 0 auto; margin: 0 4px 0 0; padding: 0 2px; border: 0; background: transparent;
                     color: #250d47; line-height: 1; cursor: pointer; }
.rec-stmt-peek-btn:hover, .rec-stmt-peek-btn:focus-visible { color: #e91e63; }
.rec-stmt-peek { position: fixed; z-index: 1080; padding: 8px; background: #fff; border: 1px solid #dee2e6;
                 border-radius: .375rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); pointer-events: none; }
.rec-stmt-peek svg { display: block; }
.rec-stmt-peek-caption { margin-top: 6px; font-size: 14px; color: #495057; }
/* The row a statement line was picked for, flashed once where the divide scrolled it to. */
@keyframes rec-divide-row-flash { from { background-color: rgba(233, 30, 99, .28); } to { background-color: transparent; } }
.rec-divide-row--flash > tr > td { animation: rec-divide-row-flash 1.6s ease-out; }
/* Book / Bank Filters box: the filter items flush with the buttons' left edge and top — the shared
   reports rule gives every .mr-individual-filter 5px left / 4px top, which the buttons don't have,
   so SEARCH sat inset from the HIDING MATCHED row (Christopher, 2026-10-08). */
.rec-divide-toolbar .mr-individual-filter { margin: 0; }
.rec-divide-toolbar .mr-individual-filter > label,
.rec-divide-toolbar .mr-individual-filter > .form-label { margin-left: 0; }
/* The account band: everything on it centred on the band's middle — the coverage line was pinned
   to the band's bottom and the counts sat on the text baseline (Christopher, 2026-10-08). */
.rec-divide-account-head { align-items: center; }
.rec-divide-account-title { align-items: center; }
.rec-divide-account-coverage { top: 50%; bottom: auto; transform: translateY(-50%); }
/* BOOK (GL) / BANK (FEED) / DISCUSS and the column names under them: the standard table header —
   dark purple with white text (12px column names, the 12px caps label above them); one
   background for every header cell, the pinned ones included (--rec-frz-bg). Body cells are 12px
   body ink on a #dee2e6 rule (UI standards, 2026-10-22). */
.rec-divide-table > thead > tr > th {
    background: #250d47 !important; --rec-frz-bg: #250d47; color: #fff !important;
}
.rec-divide-table > thead > .rec-divide-side-head > th { font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.rec-divide-table > thead > .rec-divide-col-head > th { font-size: 12px; font-weight: 600; }
.rec-divide-table td { font-size: 14px; color: #2d2c2f; }
.rec-divide-table td.rec-divide-desc { color: #2d2c2f; }
/* Reconciler's secondary text in the dark grey, not the faded .text-muted (UI standards). */
:is(#reconciler-workflow-tab, .reconciler-outages-mount, .reconciler-rules-mount, .firm-rules-mount,
    .rec-suggest-modal-dialog, .rec-rule-modal, .rec-drift-modal-body) .text-muted { color: #495057 !important; }
/* The pinned Note column: its yellow edge drawn ON the cell (inset shadow), not as a border — in
   this collapsed-border table a border belongs to the grid, so it scrolled away from the pinned
   column and left a slit beside Hold that the scrolled text showed through (Christopher, 2026-10-08). */
.rec-divide-table th.rec-divide-note.rec-frz,
.rec-divide-table td.rec-divide-note.rec-frz,
.rec-divide-table th.rec-divide-discuss-head.rec-frz {
    border: 0; border-radius: 0; box-shadow: inset 1px 0 0 #f3d9a6;
}
/* The counts, the status chip and Reconcile… centred on one line — inline, the text rode the
   button's baseline and sat off the band's middle (Christopher, 2026-10-08). The text pieces are one
   run, so their " · " spacing survives the flex container. */
.rec-divide-account-counts { display: inline-flex; align-items: center; }
/* Scrolling (unwrapped) Book / Bank: the account box's side borders scrolled off with the grid
   while its band stayed pinned, so the band lost its left edge at the far right (Christopher,
   2026-10-08). The side edges are drawn on what stays pinned instead — the band, the first (date)
   and last (Note) columns. will-change puts the pinned band on the compositor, as the report
   tables' sticky header (.fo-table-thead-sticky): repositioned on the main thread it jittered. */
.rec-divide-frame--frozen .rec-divide-account { border-left: 0; border-right: 0; }
.rec-divide-frame--frozen .rec-divide-account-head {
    will-change: transform;
    box-shadow: inset 1px 0 0 #e4e7ec, inset -1px 0 0 #e4e7ec;
}
.rec-divide-frame--frozen .rec-divide-table .rec-frz-bookdate { box-shadow: inset 1px 0 0 #e4e7ec; }
.rec-divide-frame--frozen .rec-divide-table td.rec-frz-note,
.rec-divide-frame--frozen .rec-divide-table th.rec-frz-note { box-shadow: inset 1px 0 0 #f3d9a6, inset -1px 0 0 #e4e7ec; }
/* The match-group pick-box in the mid column: a white box like every other unchecked checkbox
   (it was 35% see-through, reading grey over the row tint), centred in its column (the theme's
   float / margin pushed it off centre) — Christopher, 2026-10-08. */
.form-check-input.fo-check-bare.rec-divide-group-box { opacity: 1; float: none; display: block; margin: 0 auto; }
/* The Filters box (and the notices beside it) sit OUTSIDE the scroller now, so they need no
   sideways pin and take the frame's full width — out to the tab strip's right edge, over the
   scroller's scrollbar (Christopher, 2026-10-08). --rec-frame-w (the scroller's visible width) is
   for what pins INSIDE the scroller. */
.rec-divide-frame--frozen > .rec-divide-toolbar,
.rec-divide-frame--frozen > .rec-divide-summary,
.rec-divide-frame--frozen > .rec-divide-status { position: relative; left: auto; width: auto; max-width: none; }
/* The pinned mid column (the pick-box seam): its side lines drawn ON the cell, not as collapsed
   borders that stayed with the grid and let scrolled text through (as the Note column), and no
   side padding — at 1.5rem, the cell padding pushed the 14px box off centre (Christopher, 2026-10-08). */
.rec-divide-table td.rec-frz-mid,
.rec-divide-table th.rec-frz-mid {
    border-left: 0; border-right: 0; padding-left: 0; padding-right: 0;
    box-shadow: inset 1px 0 0 #eaecf0, inset -1px 0 0 #eaecf0;
}
/* Reconcile on the account band: its capitals measured 0.8px above the 24px button's centre (the
   line box centres on ascender room capitals don't use); 2px top padding sets them within 0.2px,
   level with the icon (Christopher, 2026-10-08). */
/* The frozen bank Date column's right edge: a line drawn ON the cell (a box-shadow outside it was
   painted over by the scrolling cells), on the header, every bank row, and the pinned blank on rows
   with no bank side (Christopher, 2026-10-08). */
.rec-divide-frame--frozen .rec-divide-table .rec-frz-bankdate,
.rec-divide-frame--frozen .rec-divide-table .rec-divide-empty--bankfrz,
.rec-divide-frame--frozen .rec-divide-table th.rec-divide-bank-head.rec-frz-bankamt { box-shadow: inset -1px 0 0 #d0d5dd; }
/* A grid dropdown with more room above its field than below opens upward (useMenuFit). */
.rec-typeahead-menu.rec-menu-up,
.rec-combo-panel.rec-menu-up { top: auto; bottom: calc(100% + 2px); }
/* The Note boxes are the app's input: white, 1px lightgray border, .375rem corners, 12px — they
   were bare text on the row tint (Christopher, 2026-10-08). A pending note keeps its own tint. */
.rec-divide-note-input.form-control {
    font-size: 14px; padding: 0 .5rem; height: 29px;
    border: 1px solid lightgray !important; border-radius: .375rem;
}
.rec-divide-note-input.form-control:not(.rec-divide-edit-input--changed) { background-color: #fff; }
/* The Note header keeps the header row's bottom rule alongside its own side edges. */
.rec-divide-frame--frozen .rec-divide-table .rec-divide-col-head th.rec-frz-note,
.rec-divide-table .rec-divide-col-head th.rec-divide-note.rec-frz {
    box-shadow: inset 1px 0 0 #f3d9a6, inset -1px 0 0 #e4e7ec, inset 0 -1px 0 #e4e7ec;
}
/* The split line's + and trash: the row's other icon buttons (white, outlined, Font Awesome),
   not a hand-drawn + and an emoji bin (Christopher, 2026-10-08). */
.btn.rec-divide-split-add, .btn.rec-divide-split-trash {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 24px; padding: 0;
}
/* Hold is frozen on the right: its left edge drawn on the cell, as the Date column's right edge. */
.rec-divide-frame--frozen .rec-divide-table .rec-frz-hold { box-shadow: inset 1px 0 0 #d0d5dd; }
/* The collapsed account's "N rows hidden — click to show" bar: left-aligned with the band's text
   (its 0.7rem inset), and with the card's side edges — in the scrolling layout the card's own side
   borders are off (they scrolled away), so the bar draws them and pins to the left like the band
   (Christopher, 2026-10-08). */
.rec-divide-zipped { text-align: left; padding-left: .7rem; padding-right: .7rem; }
.rec-divide-frame--frozen .rec-divide-zipped {
    position: sticky; left: 0; width: var(--rec-frame-w, 100%); box-sizing: border-box;
    box-shadow: inset 1px 0 0 #e4e7ec, inset -1px 0 0 #e4e7ec, inset 0 -1px 0 #e4e7ec;
}
/* The bank row's second line (chips) pinned under Amount + Date: its chips wrap inside the pinned
   pair instead of running on under Description, and it carries the Date column's right edge. */
.rec-divide-frame--frozen .rec-divide-table .rec-divide-chips--frz { box-shadow: inset -1px 0 0 #d0d5dd; }
.rec-divide-frame--frozen .rec-divide-chips--frz .rec-divide-chips-flex,
.rec-divide-frame--frozen .rec-divide-chips--frz .rec-divide-meta { flex-wrap: wrap; white-space: normal; }
/* The column-name header row: ONE bottom rule per cell, drawn on the cell — some cells had a
   collapsed border AND the inset line (doubled), the pinned ones only their side edges
   (Christopher, 2026-10-08). Each pinned header keeps its side edge alongside the rule. */
.rec-divide-table .rec-divide-col-head > th { border-bottom: 0 !important; box-shadow: inset 0 -1px 0 #e4e7ec; }
.rec-divide-frame--frozen .rec-divide-table .rec-divide-col-head > th.rec-frz-bookdate { box-shadow: inset 1px 0 0 #e4e7ec, inset 0 -1px 0 #e4e7ec; }
.rec-divide-frame--frozen .rec-divide-table .rec-divide-col-head > th.rec-frz-mid { box-shadow: inset 1px 0 0 #eaecf0, inset -1px 0 0 #eaecf0, inset 0 -1px 0 #e4e7ec; }
.rec-divide-frame--frozen .rec-divide-table .rec-divide-col-head > th.rec-frz-bankdate { box-shadow: inset -1px 0 0 #d0d5dd, inset 0 -1px 0 #e4e7ec; }
.rec-divide-frame--frozen .rec-divide-table .rec-divide-col-head > th.rec-frz-hold { box-shadow: inset 1px 0 0 #d0d5dd, inset 0 -1px 0 #e4e7ec; }
.rec-divide-frame--frozen .rec-divide-table .rec-divide-col-head > th.rec-frz-note { box-shadow: inset 1px 0 0 #f3d9a6, inset -1px 0 0 #e4e7ec, inset 0 -1px 0 #e4e7ec; }
/* The Hold column's row actions — attach, make a rule, exclude — as Font Awesome icons in the
   link's dark purple, hot pink on hover, at full strength (the 📎 / "R+" / ⃠ glyphs were faint grey
   and hard to see — Christopher, 2026-10-08). Exclude reads red once it's on. */
.rec-divide-attach-add, .rec-divide-mkrule-btn, .rec-divide-exclude-btn {
    color: #250d47 !important; opacity: 1 !important; filter: none !important; font-size: 12px;
    background: none; border: 0; padding: 0 .15rem; line-height: 1; cursor: pointer;
}
.rec-divide-attach-add:hover, .rec-divide-mkrule-btn:hover, .rec-divide-exclude-btn:hover { color: #e91e63 !important; }
.rec-divide-exclude-btn--on, .rec-divide-exclude-btn--on:hover { color: var(--bs-danger, #F44335) !important; }
.rec-divide-attach-add .spinner-border-sm { width: 12px; height: 12px; border-width: 2px; }
/* The grid dropdown (ComboBox): a column — search, list, footer — whose LIST is the only scroller,
   so a height cap (useMenuFit) shrinks the list rather than adding a second scrollbar; the boxed
   search with its magnifying glass; and the pink Clear footer under the list (Christopher, 2026-10-08). */
.rec-combo-panel { display: flex; flex-direction: column; overflow: hidden; }
.rec-combo-panel > .rec-combo-list { flex: 1 1 auto; min-height: 0; }
.rec-combo-panel > .fo-combobox-footer { flex: 0 0 auto; padding-bottom: .25rem; }
.rec-combo-search-box { margin: .3rem; flex: 0 0 auto; }
/* …and its scales icon back up the 1px that padding took it down — the padding was for the
   capitals, the icon was already centred (Christopher, 2026-10-08: "too low"). */
/* Book / Bank grid text: nothing over 12px (Christopher, 2026-10-08 — amounts measured 13.6px, the
   divide's 0.85rem base). The grid's base is 12px, and every in-grid class that set more is held to
   12px; anything already smaller (chips, captions, the timestamp) keeps its size. */
.reconciler-divide .rec-divide-table { font-size: 14px; }
.reconciler-divide .rec-divide-table :is(
    .rec-divide-note, .rec-divide-extra-cell, .rec-divide-split-mirror, .rec-divide-edit-input,
    .rec-divide-memo-cell, .rec-divide-note-input, .rec-divide-unmatch--restore, .rec-divide-refreshing,
    .rec-divide-attach-remove, .rec-divide-apply-picker, .rec-divide-account-row, .rec-divide-toggle,
    .rec-combo-trigger, .rec-combo-search, .rec-combo-option,
    .rec-typeahead-input, .rec-typeahead-item, .form-control, .form-select) { font-size: 14px; }
/* The Hold cell's icons — hold box, paperclip, comment, make rule, exclude, not on this
   statement — each centred in its own 16px column (Christopher, 2026-10-08), flowing as one line
   as far as the column allows (TM-2114, Jesse 2026-11-04): a matched row's three fit the 3.5rem
   column, so it stays one line tall; a bank row's make rule and exclude drop to a second line
   unless the row is one line (.rec-divide-table--compact widens the column for them). */
td.rec-divide-held { padding-left: .125rem; padding-right: .125rem; }
.rec-divide-held .rec-divide-hold-line,
.rec-divide-held .rec-divide-rowacts {
    display: inline-grid; grid-auto-flow: column; grid-auto-columns: 16px; column-gap: 2px;
    justify-items: center; align-items: center; vertical-align: middle; margin: 0;
}
.rec-divide-held .rec-divide-rowacts { margin: 2px 0 0 2px; }
.rec-divide-table--compact .rec-divide-held { white-space: nowrap; }
.rec-divide-table--compact .rec-divide-held .rec-divide-rowacts { margin-top: 0; }
.rec-divide-held .rec-divide-hold-line > *, .rec-divide-held .rec-divide-rowacts > * { margin: 0; padding: 0; }
/* Dates, the bank description and its FO_ACT id in the Entry text's dark ink, not the muted greys
   (Christopher, 2026-10-08). */
.rec-divide-table .rec-divide-date,
.rec-divide-table .rec-divide-desc-text,
.rec-divide-table .rec-divide-foact { color: #2d2c2f; }
/* Rec Status's account panel: no rule across its top (Christopher, 2026-10-08). */
.rec-status-detail { border-top: 0; }
/* The selected row's tint reaches its pinned Account cell too (that cell paints its own white so
   months can scroll under it, and the white was winning) — Christopher, 2026-10-08. */
.rec-status-table .rec-status-row-selected td.rec-status-account { background: #cfe2ff; }
/* Row hover, the standard light blue (the pinned Account cell too). */
.rec-status-table tbody tr:not(.rec-status-row-selected):hover td,
.rec-status-detail-table tbody tr:not(.rec-status-detail-selected):hover td { background: #e7f1ff; }
/* Rec Status: the grid and its details scroll inside the card (height measured in RecStatusGrid). */
.rec-status-grid { overflow-y: auto; }
/* The details table's header in the top table's dark purple. */
/* The details' row actions are the standard smallest button (.fo-check-toggle-btn, 2026-10-22). */
/* The months switch (3 MO / 6 MO / 12 MO / 24 MO) at 12px. */
.rec-status-toolbar .btn-group .btn { font-size: 12px; }
/* Rec Status's frozen Account column: a right edge drawn on the cell, so it holds while the months
   scroll under it (Christopher, 2026-10-08). */
.rec-status-table .rec-status-account-head,
.rec-status-table .rec-status-account { box-shadow: inset -1px 0 0 #d0d5dd; }
/* Rec Status chips at the shared chip's exact metrics (#reconciler-workflow-tab .closer-pill):
   10px caps, .25rem/.6rem padding, no border box (the 1px transparent border made them 2px larger
   than every other chip), text centred — the grid's buttons included (Christopher, 2026-10-08). */
.rec-status-chip, button.rec-status-chip {
    display: inline-flex; align-items: center; border: 0 !important; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1; padding: .25rem .6rem;
    letter-spacing: .03em; text-transform: uppercase; font-family: inherit;
}
/* Rec Status's details: the panel as wide as its widest part (the header row or the table), the
   table stretched to it and the × held at its right edge — so the table ends flush with the ×
   (Christopher, 2026-10-08). */
.rec-status-detail { width: fit-content; max-width: 100%; }
.rec-status-detail > .rec-status-detail-table { width: 100%; }
.rec-status-detail-head > .closer-modal-x { margin-left: auto !important; }
/* "Covered" (a month a later reconciliation signed off): the shared chip in calm slate — done, but
   not reconciled on its own, so not RECONCILED's green. */
.rec-status-chip-spanned { background: #eef0f4; color: #5b6679; }
/* Edit / Add Rule: one left edge for section labels, field labels and fields (the theme indents
   .form-label), and pickers no wider than they need — capped at 20rem in their column
   (Christopher, 2026-10-08). */
.rec-rule-modal .modal-body .form-label { margin-left: 0; padding-left: 0; }
/* Dropdowns fill their grid column (Christopher, 2026-10-08 — the two-column grid sets the size);
   only bare text / number boxes keep a cap. */
.rec-rule-modal .modal-body .row > [class*="col-"] > :is(.rec-typeahead, .plain-select, .fo-combobox, .rec-combo, select) {
    max-width: none; width: 100%;
}
.rec-rule-modal .modal-body .row > [class*="col-"] > input.form-control { max-width: 15rem; }
.rec-rule-modal .modal-body .row > .col-12 > input.form-control { max-width: none; }
/* The rule modal's Typeahead: the menu a column whose LIST scrolls, with the pink Clear footer fixed
   under it; the field is the boxed search (icon inside, padding for it) — Christopher, 2026-10-08. */
.rec-typeahead-menu { display: flex; flex-direction: column; overflow: hidden; }
.rec-typeahead-menu > .rec-typeahead-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; max-height: 14rem; scrollbar-gutter: stable; }
.rec-typeahead-menu > .fo-combobox-footer { flex: 0 0 auto; padding-bottom: .25rem; }
.rec-typeahead.fo-check-search-box { position: relative; }
.rec-typeahead .rec-typeahead-input.fo-check-search-input { padding-left: 2rem !important; }
/* The rule modal is modal-lg again (Christopher, 2026-10-08), so a preview history row — still one
   line each, as Jesse asked on 2026-09-17 — scrolls sideways inside the preview instead. */
.rec-rule-modal .rec-rule-preview { overflow-x: auto; }
/* Edit Rule's Amount: the condition picker and its number boxes at content size, not stretched
   across the column (Christopher, 2026-10-08: "AMOUNT is still way too big"). */
.rec-rule-modal .rec-rule-amount > .plain-select { flex: 1 1 auto; width: auto; min-width: 8rem; }   /* fills the column; the number boxes take fixed room beside it */
.rec-rule-modal .rec-rule-amount > input.form-control { flex: 0 0 auto; width: 6.5rem; }
/* A rule's condition rows (TM-2456): AND · field · test · value · Remove on one line, the value taking
   the slack. */
.rec-rule-modal .rec-rule-condition { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.rec-rule-modal .rec-rule-condition > .plain-select { flex: 0 0 auto; width: auto; min-width: 9rem; }
.rec-rule-modal .rec-rule-condition > input.form-control { flex: 1 1 auto; width: auto; min-width: 6rem; }
.rec-rule-modal .rec-rule-condition-and { flex: 0 0 2rem; }
/* Advanced opens right under its toggle: the section's own top margin / padding trimmed (the
   toggle's .btn margin is gone via mb-0) — Christopher, 2026-10-08. */
.rec-rule-modal .rec-modal-advanced { margin-top: .25rem; padding-top: .5rem; }
/* Rules table: one text size and one line for every cell — the report table's 14px cell, the
   number's 12px and the memo regex's 0.7rem sat on different baselines, and the 🔥 count read large
   (Christopher, 2026-10-08). All 12px, top-aligned on the same line height. */
#rules-tab .fo-table-cell { font-size: 14px; line-height: 1.5; vertical-align: top; }
#rules-tab .fo-table-cell :is(.rec-regex, .rec-fired, .rec-catch-all) { font-size: 14px; line-height: 1.5; }
/* Reconciler's expandable rows (rule preview "Will book" / "Would have booked", Suggest Rules,
   the Reconcile panel, the statement tie report): 12px like the rest of the text — the theme's
   global summary rule forces 14px !important — and the app's chevron, not the browser's ▼, turning
   down when open (Christopher, 2026-10-08). Set Aside's heading carries its own Font Awesome icon.
   Not the "What's left" modal: its summaries are chip menus and a conversation's side rail, each
   with its own caret (they grew a second chevron and 12px text there, 2026-11-06). */
:is(#reconciler-workflow-tab, .fo-std-modal:not(.closer-whats-left-content)) details > summary:not(.rec-section-summary) {
    font-size: 14px !important; padding: .2rem 0 !important; list-style: none; cursor: pointer;
    display: flex; align-items: baseline; gap: .35rem;
}
:is(#reconciler-workflow-tab, .fo-std-modal:not(.closer-whats-left-content)) details > summary:not(.rec-section-summary)::-webkit-details-marker { display: none; }
:is(#reconciler-workflow-tab, .fo-std-modal:not(.closer-whats-left-content)) details > summary:not(.rec-section-summary)::before {
    content: ""; flex: 0 0 .65rem; width: .65rem; height: .65rem; align-self: center;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23250d47' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m5 2 6 6-6 6'/%3e%3c/svg%3e") center / contain no-repeat;
    transition: transform .15s ease;
}
:is(#reconciler-workflow-tab, .fo-std-modal:not(.closer-whats-left-content)) details[open] > summary:not(.rec-section-summary)::before { transform: rotate(90deg); }
/* The rule preview's secondary text in the app's dark grey, the lead-ins in body ink — Bootstrap's
   text-muted read faded (Christopher, 2026-10-08). */
.rec-rule-preview .text-muted { color: #495057 !important; }
.rec-rule-preview summary, .rec-rule-preview summary strong { color: #2d2c2f; }
/* The Rules description's regex wraps inside its column: a table cell's max-width is ignored under
   auto layout, so the width goes on the code itself (Christopher, 2026-10-08 — a long memo regex
   ran on into Match Criteria). */
.rec-col-description .rec-regex {
    display: block; max-width: 22rem; white-space: normal; overflow-wrap: anywhere; word-break: break-all;
}
.fo-table-cell.rec-col-description { white-space: normal; }
/* The Rules key/value boxes (name | Abraham Khan): both halves centre their text on one tight line
   — the value's overflow:hidden (for its ellipsis) shifted its baseline below the key's
   (Christopher, 2026-10-08). */
.rec-badge { align-items: stretch; line-height: 1; }
.rec-badge > .rec-badge-key, .rec-badge > .rec-badge-val {
    display: block; line-height: 1.2; padding-top: .2rem; padding-bottom: .2rem;   /* block keeps the value's ellipsis */
}
/* Rules: a wider Description column (Christopher, 2026-10-08) — the wrap point and the column's
   floor both up from 22rem / 14rem. */
.rec-col-description { min-width: 18rem; }
.rec-col-description .rec-regex { max-width: 28rem; }
/* The rule preview's lead-ins (Will book / Would have booked) in the label's dark purple. */
.rec-rule-preview summary strong { color: #250d47; }
/* Section headers in the standard modals (MATCH, CLASSIFICATION, HOW TO BOOK, PREVIEW, Advanced) are
   NOT field labels: 12px bold dark purple caps, a size above the 10px field labels they head
   (Christopher, 2026-10-08 — they all used the form-label style; PREVIEW was the look to match). */
.fo-std-modal .rec-modal-section-label,
.fo-std-modal .btn.rec-modal-advanced-toggle {
    font-size: 14px !important; font-weight: 700 !important; letter-spacing: normal;
    text-transform: none !important; color: #250d47; margin-bottom: .35rem;   /* as written, not caps */
}
.fo-std-modal .btn.rec-modal-advanced-toggle:hover { color: #e91e63; }
/* The preview's "matches none of …" line under an open Will book / Would have booked: room above
   and below it (Christopher, 2026-10-08). */
.rec-rule-preview details > .text-muted.small,
.rec-rule-preview details > div > .text-muted.small { padding-top: .4rem; padding-bottom: .5rem; }
/* …breaking at spaces: a word only splits when it alone is wider than the column (a long
   space-less regex) — break-all was cutting "Fulfillme|nt" (Christopher, 2026-10-08). */
.rec-col-description .rec-regex { word-break: normal !important; overflow-wrap: anywhere; }
/* "How your books coded those" (Account / Name / Class) and the payee-name note under Would have
   booked: 12px, indented to the summary's TEXT — past the chevron and its gap (.65rem + .35rem) —
   rather than flush with the chevron (Christopher, 2026-10-08). */
.rec-rule-preview .rec-rule-preview-coded-block,
.rec-rule-preview .rec-rule-preview-coded-block *,
.rec-rule-preview .rec-suggest-preview-history + .text-muted.small { font-size: 14px !important; }
.rec-rule-preview .rec-rule-preview-coded-block,
.rec-rule-preview .rec-suggest-preview-history + .text-muted.small { padding-left: 1rem; }
.rec-rule-preview details > .text-muted.small.ps-3 { padding-left: 1rem !important; }
/* Advanced, expanded: 5px between the toggle and the section's rule (Christopher, 2026-10-08) —
   the toggle's own bottom padding off, the section's top margin exactly 5px. */
.fo-std-modal .btn.rec-modal-advanced-toggle { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.rec-rule-modal .rec-modal-advanced { margin-top: 5px; }
/* Standard modal footers: Cancel / Close is ALWAYS the right-most button, the action before it
   (Christopher, 2026-10-08). The footer is a flex row; the secondary button sorts last. */
.fo-std-modal .modal-footer > .btn-secondary { order: 99; }
/* The rule preview's row tables (Will book / Would have booked): 12px (Christopher, 2026-10-08). */
.rec-rule-preview .rec-suggest-preview-table,
.rec-rule-preview .rec-suggest-preview-table td,
.rec-rule-preview .rec-suggest-preview-table th { font-size: 12px; }
/* The coded-block row labels (Account / Name / Class) in bold body ink. */
.rec-rule-preview .rec-rule-preview-coded-label { font-weight: 700; color: #2d2c2f; }
/* "How your books coded those:" — the block's lead-in, bold dark purple. */
.rec-rule-preview .rec-rule-preview-coded-block > .text-muted.small:first-child { font-weight: 700; color: #250d47 !important; }
/* The rule preview's rows and coding check in the surrounding text's colour: the date and bank
   account cells were light grey, the "this rule pins …" check amber (Christopher, 2026-10-08). */
.rec-rule-preview :is(.rec-suggest-preview-date, .rec-suggest-preview-acct, .rec-rule-preview-mismatch) { color: #2d2c2f; }
/* The rule preview's row tables: no yellow shading on transfer-looking rows (their "looks like a
   transfer" note in the last column still says so), and only horizontal rules between rows — no
   vertical ones (Christopher, 2026-10-08). */
.rec-rule-preview .rec-suggest-preview-table td { background: transparent !important; border-left: 0 !important; border-right: 0 !important; border-bottom: 1px solid #dee2e6; }
.rec-rule-preview .rec-suggest-preview-table tr:last-child > td { border-bottom: 0; }
/* Rule preview: the open section no longer scrolls (its heading stays put, nothing covers the first
   row); only the row table's own box scrolls, both ways. Flags are shared chips (Christopher, 2026-10-08). */
.rec-rule-preview .rec-suggest-preview-rule[open] { max-height: none; overflow: visible; }
.rec-rule-preview .rec-suggest-preview-rule[open] > summary { position: static; border-bottom: 0; }
.rec-suggest-preview-scroll { max-height: 16rem; overflow: auto; margin-left: 1rem; border-top: 1px solid #e4e7ec; }
.rec-suggest-preview-flag { color: inherit; }
.rec-suggest-preview-flag .closer-pill { font-size: 12px; padding: .25rem .6rem; line-height: 1; }
/* Suggest Rules, with what the rule editor got (Christopher, 2026-10-08):
   - footer: Cancel the right-most button (its buttons sit in their own wrapper), even gaps;
   - 12px text; the per-vendor warnings in body ink, not the hand-picked orange;
   - AI second opinion is the shared amber chip (its old bordered tag look reset). */
.rec-suggest-modal-dialog .modal-footer > div:last-child { display: flex; align-items: center; gap: .5rem; }
.rec-suggest-modal-dialog .modal-footer > div:last-child > .btn { margin: 0 !important; }
.rec-suggest-modal-dialog .modal-footer > div:last-child > .btn-secondary { order: 99; }
.rec-suggest-modal-dialog .modal-body,
.rec-suggest-modal-dialog .modal-body p,
.rec-suggest-modal-dialog .modal-footer .rec-settings-note { font-size: 14px; }
.rec-suggest-modal-dialog .rec-suggest-matrix-mixed { color: #2d2c2f; font-size: 14px; }
.rec-suggest-matrix-opinion-tag.closer-pill {
    border: 0 !important; background: #fff3e0; color: #b26a00; font-size: 12px; padding: .25rem .6rem;
    line-height: 1; margin-right: .35rem; vertical-align: middle;
}
/* …and Suggest Rules' own preview tables get the rule editor's treatment: 12px, no transfer
   shading, horizontal rules only, dates / accounts / the coding check in body ink. */
.rec-suggest-modal-dialog .rec-suggest-preview-table,
.rec-suggest-modal-dialog .rec-suggest-preview-table td { font-size: 14px; }
.rec-suggest-modal-dialog .rec-suggest-preview-table th { font-size: 12px; }
.rec-suggest-modal-dialog .rec-suggest-preview-table td { background: transparent !important; border-left: 0 !important; border-right: 0 !important; border-bottom: 1px solid #dee2e6; }
.rec-suggest-modal-dialog .rec-suggest-preview-table tr:last-child > td { border-bottom: 0; }
.rec-suggest-modal-dialog :is(.rec-suggest-preview-date, .rec-suggest-preview-acct, .rec-rule-preview-mismatch) { color: #2d2c2f; }
/* Suggest Rules' name-type chip on the shared chip's metrics; its old hand-made colours give way to
   the closer-status-* state it now carries. */
.rec-suggest-matrix-enttype.closer-pill {
    font-size: 12px; padding: .25rem .6rem; line-height: 1; letter-spacing: .03em;
    background: unset; color: unset; display: inline-flex; align-items: center; margin-right: .35rem;
}
.rec-suggest-matrix-enttype.closer-status-new { background: #ece9f1; color: #250d47; }
.rec-suggest-matrix-enttype.closer-status-closed { background: #e6f4ea; color: #1b7a3d; }
.rec-suggest-matrix-enttype.closer-status-pending { background: #fff3e0; color: #b26a00; }
/* Suggest Rules' progress checklist: 12px throughout, each icon in one 14px slot so the labels line
   up; waiting = grey, running = the pink spinner + pink bold, done = Bootstrap success green with a ✓
   and its own duration (Christopher, 2026-10-08). */
.rec-suggest-progress { font-size: 14px; color: #2d2c2f; }
.rec-suggest-progress-step { align-items: center; gap: .5rem; font-size: 14px; }
.rec-suggest-progress-step > :first-child { flex: 0 0 14px; width: 14px; display: inline-flex; justify-content: center; }
.rec-suggest-progress-step .spinner-border-sm { width: 12px; height: 12px; border-width: 2px; }
.rec-suggest-progress-step--pending { color: #98a2b3; }
.rec-suggest-progress-step--current { color: #e91e63; font-weight: 700; }
.rec-suggest-progress-step--done { color: var(--bs-success, #4CAF50); }
.rec-suggest-progress-at, .rec-suggest-progress-elapsed { font-size: 14px; color: #495057; }
/* Suggest Rules, round two (Christopher, 2026-10-08). */
/* Sort / one-offs / count: one centred line, 12px, the checkbox on the text's middle. */
.rec-suggest-triage { font-size: 14px; align-items: center; }
.rec-suggest-triage :is(label, .rec-inline-field) { display: inline-flex; align-items: center; gap: .4rem; }
.rec-suggest-triage .form-check-input { margin: 0 !important; flex: none; }
/* Header row: the select-all box, "Vendor (20/130)" and "+ Class" on one centred line. */
.rec-suggest-matrix thead th { vertical-align: middle; }
.rec-suggest-matrix thead th .form-check-input { margin: 0 !important; }
.rec-suggest-matrix thead th.rec-suggest-matrix-rule { display: table-cell; }
.rec-suggest-matrix thead th.rec-suggest-matrix-rule > * { vertical-align: middle; }
/* The proposed pattern is a real input: white, 1px lightgray, .375rem corners (still monospace). */
.rec-suggest-matrix-regex-input {
    background: #fff !important; border: 1px solid lightgray !important; border-radius: .375rem;
    padding: .2rem .5rem; font-size: 14px; color: #2d2c2f; height: 26px;
}
.rec-suggest-matrix-regex-input--changed { border-color: #7f56d9 !important; }
/* The bank descriptions and "matches" in the app's dark grey, not the faint grey. */
.rec-suggest-matrix-memo, .rec-suggest-matrix-regex { color: #495057; font-size: 14px; }
/* The name-type chip at the shared 10px (a cell font-size rule out-specified it). */
.rec-suggest-matrix .rec-suggest-matrix-enttype.closer-pill { font-size: 12px !important; }
/* "Never suggest" ✕: the standard white outlined icon button, centred. */
.btn.rec-suggest-dismiss-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 24px; padding: 0;
    font-size: 12px; line-height: 1; background: #fff; color: var(--bs-btn-color); border: 1px solid var(--bs-btn-border-color);
}
.btn.rec-suggest-dismiss-btn:hover:not(:disabled) { color: var(--bs-btn-hover-color); background: var(--bs-btn-hover-bg); }
/* Standard modal footer buttons: icon and capitals both centred — content down 1px (the capitals
   measured high), the icon back up 1px. */
/* Suggest Rules: the intro, Sort / one-offs and Auto-book stay put; only the grid's BODY scrolls,
   its header pinned at the top of its own box (Christopher, 2026-10-08). The modal body becomes a
   non-scrolling column while the grid shows; the preview view keeps the body's own scroll. */
.rec-suggest-modal-dialog .modal-body:has(> .rec-suggest-matrix-wrap:not(.d-none)) {
    display: flex; flex-direction: column; overflow: hidden;
}
.rec-suggest-modal-dialog .modal-body:has(> .rec-suggest-matrix-wrap:not(.d-none)) > * { flex: 0 0 auto; }
.rec-suggest-modal-dialog .modal-body > .rec-suggest-matrix-wrap:not(.d-none) { flex: 1 1 auto; min-height: 0; overflow: auto; }
.rec-suggest-modal-dialog .rec-suggest-matrix-wrap .rec-suggest-matrix thead th { top: 0; }
/* A section header on a page (as the standard modals' section headers): 14px bold dark purple,
   as written (Christopher, 2026-10-08 — Reconciler Settings: Settings / Match tolerance / Money in). */
.rec-section-header { font-size: 16px; font-weight: 700; color: #250d47; margin: 0 0 .35rem; }   /* the Settings tab's Settings, Match tolerance and Money in at 16px (Christopher, 2026-11-12) */
/* Reconciler Settings: every line on one left edge — the checkbox row's .form-check indent, its
   note and the inline sentences no longer step in. */
#settings-tab .rec-settings-row { padding-left: 0; margin-left: 0; }
#settings-tab .form-check.rec-settings-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; min-height: 0; }
#settings-tab .form-check.rec-settings-row > .form-check-input { float: none; margin: 0 !important; position: relative; top: 2px; }
#settings-tab .form-check.rec-settings-row > .form-check-label { flex: 1 1 0; margin: 0; padding: 0; }
#settings-tab .form-check.rec-settings-row > .rec-settings-note { flex: 0 0 100%; margin-left: 0; }
#settings-tab .rec-settings-inline, #settings-tab .rec-settings-note, #settings-tab .rec-help { margin-left: 0 !important; padding-left: 0 !important; }
#settings-tab .rec-settings-row + .rec-settings-row { margin-top: 1.25rem !important; }
/* Suggest Rules, round three (Christopher, 2026-10-08). */
/* Progress checklist: a round 12px spinner (it was squeezed into a 14px-wide slot); the seconds
   sit right after their label, not pushed to the far edge. */
.rec-suggest-progress-step > .spinner-border { flex: 0 0 12px; width: 12px !important; height: 12px !important; margin: 0 1px; }
.rec-suggest-progress-step .rec-suggest-progress-at { margin-left: .5rem; }
/* Auto-book: the hand-drawn switch (kept on purpose — Jesse, 2026-09-16), smaller, centred with
   its 12px text. */
.rec-suggest-disposition { font-size: 14px; align-items: center; padding: .4rem .75rem; }
.rec-suggest-disposition .rec-toggle-track { width: 2rem; height: 1.1rem; flex: none; }
.rec-suggest-disposition .rec-toggle-knob { top: .125rem; left: .125rem; width: .85rem; height: .85rem; }
.rec-suggest-disposition .rec-toggle-input:checked + .rec-toggle-track .rec-toggle-knob { transform: translateX(.9rem); }
.rec-suggest-disposition .rec-toggle-label { font-size: 14px; font-weight: 700; }
.rec-suggest-disposition-text { font-size: 14px; line-height: 1.4; }
/* "+ Class" in the grid header: the site's link — dark purple, hot pink on hover, as written, on
   the header's line (the theme's link-button raised and capitalised it). */
.btn.rec-suggest-add-class { color: #250d47; text-transform: none; font-size: 12px; font-weight: 600 !important; vertical-align: baseline; line-height: inherit; }
.btn.rec-suggest-add-class:hover { color: #e91e63; }
/* The intro at 12px; the per-cell "21 txns" in the dark grey. */
.rec-suggest-modal-dialog .rec-suggest-intro { font-size: 14px; }
.rec-suggest-matrix-count { color: #495057; }
/* Room between a row's lines: descriptions / pattern, the both-directions warning, the AI note. */
.rec-suggest-matrix-line2 > *, .rec-suggest-matrix-mixed { margin-top: .35rem; }
.rec-suggest-matrix-mixed { line-height: 1.5; }
/* "show 92 one-offs" / "show N dormant" and the count beside them at 12px (the label carried its own size). */
.rec-suggest-triage, .rec-suggest-triage * { font-size: 14px !important; }
.rec-suggest-triage .closer-eyebrow { font-size: 12px !important; }
/* The checklist as a grid sized to its content — icon | label | seconds — so the times line up in
   one column just past the longest label, not out at the panel's edge (Christopher, 2026-10-08). */
.rec-suggest-progress { display: grid; grid-template-columns: 14px max-content max-content; column-gap: .5rem; row-gap: .1rem; width: fit-content; max-width: 100%; align-items: center; }
.rec-suggest-progress > .rec-suggest-progress-step { display: contents; }
.rec-suggest-progress-step .rec-suggest-progress-at { margin-left: 1rem; text-align: right; }
.rec-suggest-progress > .rec-suggest-progress-elapsed { grid-column: 1 / -1; margin-top: .4rem; }
/* "Never suggest" ✕ on hover: stays white, its border and icon go Bootstrap danger red (the outline
   button's own hover filled it grey with a white icon) — Christopher, 2026-10-08. */
.btn.rec-suggest-dismiss-btn:hover:not(:disabled),
.btn.rec-suggest-dismiss-btn:focus-visible { background: #fff !important; color: var(--bs-danger, #F44335) !important; border-color: var(--bs-danger, #F44335) !important; }
/* "+ Class": hot pink, dark purple on hover. */
.btn.rec-suggest-add-class { color: #e91e63 !important; }
.btn.rec-suggest-add-class:hover, .btn.rec-suggest-add-class:focus-visible { color: #250d47 !important; }
/* The cash chip: a positive total — the amount and its cash icon — in Bootstrap success green. */
.fo-cash-chip-positive .fo-cash-chip-total,
.fo-cash-chip-positive .fo-cash-chip-button > :is(svg, i) { color: var(--bs-success, #4CAF50); }
/* Reconciler's inline error lines ("Failed to load the account list…"): Bootstrap danger, 12px. */
.rec-divide-status--error, .rec-divide-status--err { color: var(--bs-danger, #F44335) !important; font-size: 14px !important; }
/* The elapsed note is a row of the checklist grid: blank icon slot | sentence | total seconds. */
.rec-suggest-progress > .rec-suggest-progress-elapsed { display: contents; }
.rec-suggest-progress > .rec-suggest-progress-elapsed > * { margin-top: .4rem; color: #495057; font-size: 14px; }
/* Suggest Rules grid at 12px: the header row (Vendor, + Class, the months, Total) and the money in
   every cell (Christopher, 2026-10-08). */
.rec-suggest-matrix thead th, .rec-suggest-matrix thead th *,
.rec-suggest-matrix td.rec-suggest-matrix-cell, .rec-suggest-matrix td.rec-suggest-matrix-cell *,
.rec-suggest-matrix td.rec-suggest-matrix-total, .rec-suggest-matrix td.rec-suggest-matrix-total * { font-size: 14px !important; }
.rec-suggest-matrix .rec-suggest-matrix-count { font-size: 12px !important; }
/* The bank descriptions and "matches …": a small gap between them, not three quarters of a rem. */
.rec-suggest-matrix-line2 { column-gap: .5rem; }
.rec-suggest-matrix-line2 > .rec-suggest-matrix-memo { flex: 0 1 auto; }
/* The month cells (their own className varies by state) — every grid cell's money at 12px. */
.rec-suggest-matrix tbody td :is(.rec-suggest-matrix-out, .rec-suggest-matrix-in, .rec-suggest-matrix-amount) { font-size: 14px !important; }
.rec-suggest-matrix tbody td[class*="month"], .rec-suggest-matrix tbody td[class*="month"] > div:not(.rec-suggest-matrix-count) { font-size: 14px !important; }
/* Pink link-buttons in Reconciler and its modals (Expand all / Collapse all and the like): dark
   purple on hover, the site's link pair. :where() keeps this weak, so a link with its own hover
   (Advanced, + Class, the dark-purple-to-pink links) keeps it (Christopher, 2026-10-08). */
:where(#reconciler-workflow-tab, .fo-std-modal) .btn-link:hover,
:where(#reconciler-workflow-tab, .fo-std-modal) .btn-link:focus-visible { color: #250d47; }
/* Expand all / Collapse all: no theme button margin under it, so the first vendor follows closely. */
.rec-suggest-preview-tools { margin-bottom: 5px !important; }
.rec-suggest-preview-tools .btn { margin-bottom: 0 !important; }
/* The note row at the top of the checklist: bold, starting at the icon column (spanning icon + label),
   its total in the seconds column, a little room below it. */
.rec-suggest-progress > .rec-suggest-progress-elapsed > * { margin-top: 0; margin-bottom: .35rem; font-weight: 700; color: #2d2c2f; }
.rec-suggest-progress > .rec-suggest-progress-elapsed > .rec-suggest-progress-note { grid-column: 1 / 3; }
/* Expand all / Collapse all: dark purple on hover (the theme's .btn-link:hover out-ranked the
   general rule above). */
.rec-suggest-preview-tools .btn-link:hover, .rec-suggest-preview-tools .btn-link:focus-visible { color: #250d47 !important; }
/* (The theme's hover is .btn.btn-link:hover — the general rule above needs the same weight to
   apply. Links with their own hover rule still out-rank it.) */
:where(#reconciler-workflow-tab, .fo-std-modal) .btn.btn-link:hover,
:where(#reconciler-workflow-tab, .fo-std-modal) .btn.btn-link:focus-visible { color: #250d47; }
/* Bank Data ▸ Statements upload area: no extra inset (the drop zone lines up with the blue box and
   sits close under it); the account box and "Enter a Statement by Hand" centred on one line. */
.plaid-connections-page .bank-files-upload { padding: 0 !important; margin: 0 0 .75rem; }
.plaid-connections-page .bank-files-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.plaid-connections-page .bank-files-row > * { margin: 0 !important; }
/* The row actions' joined group: icons centred in each button. */
.plaid-connections-page .bank-file-actions .bank-file-checks-count { margin-left: .2rem; font-size: 12px; }
/* Balances: the blue guide closer to the table. */
.plaid-connections-page #bank-balances-tab .bank-balances-caveat { margin-bottom: .5rem; }
/* Bank Data, round two (Christopher, 2026-10-08). */
/* The accounts dropdown's options: the checkbox on the label's FIRST line when the name wraps. */
.plaid-connections-page .bank-accounts-filter-option { align-items: flex-start !important; }
.plaid-connections-page .bank-accounts-filter-option > .form-check-input { margin-top: 2px !important; flex: none; }
/* Feed filters: the search box and the date inputs in the app's input style, every label on one line. */
.plaid-connections-page .activity-filters .fo-check-search-box { width: 100%; }
.plaid-connections-page .activity-filters input[type="date"].form-control { height: 29px; font-size: 14px; border: 1px solid lightgray !important; border-radius: .375rem; background: #fff; }
.plaid-connections-page .activity-filters { align-items: flex-end !important; }
.plaid-connections-page .activity-filters .activity-filter > label { margin-bottom: .25rem !important; line-height: 1.2; }
/* Notes and guides in the Bank Data tabs at 12px. */
.plaid-connections-page .activity-table-note, .plaid-connections-page .bank-files-note, .plaid-connections-page .tab-pane > p { font-size: 14px; }
/* Row actions: icons dead centre in their buttons. */
/* Every joined row-action group on the Bank Data pages (Connections, Statements, Activity,
   Reconciliations): icons dead centre in their buttons (Christopher, 2026-10-08). */
/* The Bank Data guide (blue) and the Feed's banners (reconciled-through, newest-rows) at 12px:
   their text, titles and account chips. */
.plaid-connections-page .activity-reconciled-banner, .plaid-connections-page .activity-reconciled-banner * { font-size: 14px !important; }
/* The Statements / Activity / Reconciliations drop zones start at the blue guide's left edge: no
   side margin or padding anywhere between the pane and the dashed box, the box full width
   (Christopher, 2026-10-08). */
.plaid-connections-page :is(#bank-statements-tab, #bank-activity-tab, #bank-reconciliations-tab) .bank-files-upload,
.plaid-connections-page :is(#bank-statements-tab, #bank-activity-tab, #bank-reconciliations-tab) .bank-files-upload > form {
    margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important;
}
.plaid-connections-page .bank-files-upload .bank-files-dropzone { margin-left: 0 !important; margin-right: 0 !important; width: 100%; box-sizing: border-box; }
/* Outline buttons in Reconciler, Bank Data and their modals sit on WHITE, not the transparent fill
   that showed the grey Filters box / row tint through (Christopher, 2026-10-08). Hover keeps the
   outline colour's own fill. The ticked half of a segmented toggle (a .btn-check radio's label) is
   filled too: white there hid its white label (the meetings File form's Client, 2026-10-29). */
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal) .btn[class*="btn-outline-"]:not(:hover):not(:active):not(.active):not(.btn-check:checked + .btn) { background-color: #fff; }
/* Bank Data upload-area intros at 12px. */
.plaid-connections-page .bank-files-upload p, .plaid-connections-page .tab-pane > p:first-child { font-size: 14px !important; }

/* ============================================================================================
   DROPDOWNS — the ONE style for every dropdown in the app (Christopher, 2026-10-08: "DRY out all
   of these inputs"). Three implementations, one look:
     fo-combobox (server, static/js/fo-combobox.js) — .fo-combobox-display / -panel / -option
     PlainSelect (React plain list)                  — reuses the fo-combobox classes
     ComboBox (React searchable, reconciler)         — .rec-combo-trigger / -panel / -option
   Closed: 29px, 2px 8px 0 padding (the 2px optically centres the capitals — they measured 0.9px
   high), 1px lightgray, .375rem corners, 12px body ink on white, the chevron at the right.
   Open: options 12px; the hovered / keyboard row BLUE with WHITE text; the chosen row bold.
   Search inside a panel is the app's boxed search (.fo-check-search-box, the glass inside);
   Clear is the pink .fo-combobox-footer-clear anchored under the list.
   Size / width per context stays where it is (e.g. the Book / Bank grid's 1.9rem row height).
   ============================================================================================ */
.fo-combobox-display, .rec-combo-trigger, .plaid-connections-page .bank-accounts-filter-toggle {
    display: flex; align-items: center; justify-content: space-between !important; gap: .25rem;
    height: 29px; padding: 0 8px; border: 1px solid lightgray; border-radius: .375rem;   /* even top and bottom at 14px: the 2px top pad sat the text low (Christopher, 2026-11-12) */
    font-size: 14px; color: #2d2c2f; background: #fff; text-align: left;
}
/* The choice fills the box from the left (ellipsis when long); the chevron sits at the right edge. */
.fo-combobox-display > .fo-combobox-display-text, .rec-combo-trigger > .rec-combo-value {
    flex: 1 1 auto; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fo-combobox-option, .rec-combo-option { font-size: 14px; color: #2d2c2f; }
.fo-combobox-option:hover, .fo-combobox-active,
.rec-combo-option--cursor,
.rec-combo-option:hover { background: var(--fo-info-blue) !important; color: #fff !important; }   /* the banner's blue; hover too, where a picker's script moves no cursor on mouse-over (Closer's payee Fix, Christopher 2026-10-26) */
.rec-combo-option--cursor *,
.rec-combo-option:hover * { color: #fff !important; }
.fo-combobox-option.fo-combobox-selected, .rec-combo-option--current { font-weight: 600; }
.fo-combobox-option.fo-combobox-option-disabled:hover { background: transparent !important; color: #adb5bd !important; }
.fo-combobox-search-box, .rec-combo-search-box { margin: .3rem; }
.fo-combobox-search-box .fo-check-search-input, .rec-combo-search-box .fo-check-search-input { width: 100%; margin: 0; }
.fo-combobox-search-box--plain { position: absolute; left: -9999px; }
.fo-std-modal .fo-combobox-display { width: 100%; }
.fo-combobox-panel .fo-combobox-search-box--plain + .fo-combobox-list { margin-top: 0; }
/* (desk-combobox's older search rule restyled the box; the boxed search's metrics hold.) */
.fo-combobox-search-box .fo-check-search-input.fo-combobox-search,
.rec-combo-search-box .fo-check-search-input.rec-combo-search {   /* the React ComboBox's box too: a toolbar's input padding sat its text under the icon */
    padding-left: 2rem !important; height: 29px; font-size: 14px; border: 1px solid lightgray; border-radius: .375rem; background: #fff;
}
.fo-combobox-search-box .fo-check-search-icon, .rec-combo-search-box .fo-check-search-icon { position: absolute; left: .6rem; z-index: 1; }
/* Every loading line in Reconciler, Bank Data and their modals: the hot pink spinner with hot pink
   text at ONE size, 12px — block loaders ("Loading" under the big spinner) and inline ones
   ("Checking…", "Uploading…", "Loading…") alike (Christopher, 2026-10-08). Not bold
   (Christopher, 2026-10-22). */
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal, .rec-bankdata-loading, .closer-home)
    :is(.spinner-border, .spinner-border-sm) ~ .text-primary,
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal, .rec-bankdata-loading) .fo-loading-wrapper .text-primary,
#closer-fin-wait .text-primary,
.rec-bankdata-loading .text-primary { font-size: 14px !important; font-weight: 400; color: #e91e63; }

/* ============================================================================================
   DARK TABLE HEADERS — the ONE style for every dark purple table header on the Reconciler and
   Bank Data pages and their modals, = the Accruer / Wrangler report tables' header cell
   (.fo-table-header-cell): #250d47, white, 6px 8px, 12px, weight 600, as written (no caps),
   one line (Christopher, 2026-10-08: "make sure all the dark purple table headers use the same
   styling and DRY them out"). Alignment and stickiness stay with each table. A month header
   that needs attention stays white and carries a hot pink count chip (.rec-status-month-alert).
   ============================================================================================ */
.fo-table-header-cell, .rec-suggest-matrix > thead > tr > th, .rec-divide-drift-table > thead > tr > th,
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal) :is(
    .fo-check-table > thead > tr > th, .rec-status-table th, .rec-status-detail-table th,
    .bank-balances-table > thead > tr > th, .table > thead.table-dark > tr > th,
    #workflows-table thead th, #activity-table thead th, .dataTables_scrollHead thead th) {
    background: #250d47 !important; padding: 6px 8px !important;
    font-size: 12px !important; font-weight: 600 !important; text-transform: none !important;
    letter-spacing: normal !important; white-space: nowrap; vertical-align: middle; border-bottom: 0;
}
.fo-table-header-cell, .rec-suggest-matrix > thead > tr > th, .rec-divide-drift-table > thead > tr > th,
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal) :is(
    .fo-check-table > thead > tr > th, .rec-status-table th, .rec-status-detail-table th,
    .bank-balances-table > thead > tr > th, .table > thead.table-dark > tr > th,
    #workflows-table thead th, #activity-table thead th, .dataTables_scrollHead thead th) {
    color: #fff !important;
}
/* Suggest rules' "+ Class" link rides the dark header: white, hot pink on hover. */
.rec-suggest-matrix > thead .btn.rec-suggest-add-class { color: #fff !important; }
.rec-suggest-matrix > thead .btn.rec-suggest-add-class:hover,
.rec-suggest-matrix > thead .btn.rec-suggest-add-class:focus-visible { color: #e91e63 !important; }

/* ============================================================================================
   FILTER BOXES — the ONE container for every Filters box (Book / Bank's toolbar, the Rules table,
   the Bank Data tabs), EXACTLY the Accruer / Wrangler report filter bar (Christopher, 2026-10-08):
     band  = <thead class="table-dark"><th class="text-xs font-weight-bolder p-2">: .5rem, .75rem,
             bolder, white on #250d47, flush on top of the box
     box   = .top-table.filters-wrapper.border.bg-light: 1px #dee2e6, #f0f2f5, square, 6px right /
             bottom padding, 10px under it, wrapping
     items = each .mr-individual-filter brings 4px top / 5px left — supplied HERE as 4px / 5px of
             padding and gap, so the inputs and buttons themselves are left exactly as they are.
   Box: .fo-filters-box (alias .rec-filters-box); band: .fo-filters-box-head (alias .rec-filters-head),
   always the box's first child.
   ============================================================================================ */
.fo-filters-box, .rec-filters-box {
    display: flex !important; flex-wrap: wrap !important; align-items: flex-end;
    gap: 4px 5px !important; padding: 4px 6px 6px 5px !important; margin: 0 0 10px !important;
    background: #f0f2f5 !important; border: 1px solid #dee2e6 !important; border-radius: 0 !important;
    box-shadow: none !important;
}
.fo-filters-box-head, .rec-filters-head {
    /* Over the box's padding and border, then 1px for the border line the report has under its band. */
    flex: 0 0 calc(100% + 13px); margin: -5px -7px 1px -6px !important;
    padding: .5rem !important; background: #250d47; color: #fff;
    font-size: .75rem !important; font-weight: 600 !important; line-height: 15px !important; border-radius: 0;   /* measured: 31px tall, as the report's */
}

/* ============================================================================================
   BUTTONS — the ONE alignment rule for every button on the Reconciler and Bank Data pages and in
   their modals (Christopher, 2026-10-08: "make sure all the buttons in reconciler use a DRY style").
   Icon and label centred in the box (measured with the real fonts: an icon alone sits dead
   centre); beside a label the icon rises .75px to sit level with the capitals, which ride 0.77px
   above centre. Colour, size and padding
   stay Bootstrap's (btn-sm / text-xs / p-1 px-2 …).
   ============================================================================================ */
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal, .closer-home, .closer-edit-modal, .closer-title-actions) .btn:not(.btn-link) {
    display: inline-flex; align-items: center; justify-content: center;
}
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal, .closer-home, .closer-edit-modal, .closer-title-actions) .btn > :is(svg, i, .fa-icon-host) {
    vertical-align: 0; position: relative; top: 0; flex: none;
}
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal, .closer-home, .closer-edit-modal, .closer-title-actions) .btn > :is(svg.me-1, svg.me-2, i.me-1, i.me-2, .fa-icon-host:has(> svg.me-1), .fa-icon-host:has(> svg.me-2)) {
    top: -.75px;   /* level with the label's capitals */
}
/* The × is drawn centred in its box, so the full lift sat it ~.4px above the caps' middle (Dismiss,
   Christopher 2026-10-22); a third of it levels the two. */
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal, .closer-home, .closer-edit-modal, .closer-title-actions) .btn > svg.fa-xmark:is(.me-1, .me-2),
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal, .closer-home, .closer-edit-modal, .closer-title-actions) .btn > .fa-icon-host:has(> svg.fa-xmark:is(.me-1, .me-2)) {
    top: -.3px;   /* React's FaIcon wraps the svg in .fa-icon-host, which took the full lift: its x sat high (Christopher, 2026-10-27) */
}
/* Every drag-and-drop box (Bank Data's Statements / Activity / Reconciliations, Book / Bank's
   statement drop): its prompt, hint and filename at 12px (Christopher, 2026-10-08). */
.bank-files-dropzone :is(.bank-files-dropzone-prompt, .bank-files-dropzone-filename, .bank-files-clear) { font-size: 14px !important; }
/* The account name and its "see this account's transactions" magnifier, one link, icon first
   (Statements / Activity / Reconciliations): dark purple, hot pink on hover, at the cell's own size
   (Christopher, 2026-10-09). */
.plaid-connections-page a.bank-file-activity-link { color: #250d47 !important; text-decoration: none; font-size: inherit; margin-left: 0; }
.plaid-connections-page a.bank-file-activity-link:hover, .plaid-connections-page a.bank-file-activity-link:focus-visible { color: #e91e63 !important; }
/* Bank Data's upload controls (account picker, Enter by hand, upload status) belong to the drop box
   above them: a grey band with a grey bottom rule, butted against the dashed box with no gap, the
   box's bottom corners squared where they meet (Christopher, 2026-10-08). Statements, Activity and
   Reconciliations. Only where the row HAS controls: Reconciliations' row holds just the upload
   status line, so it gets no band (Christopher, 2026-10-09). */
.plaid-connections-page .bank-files-dropzone:has(+ .bank-files-row:has(:is(button, input, select))) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0 !important; }
.plaid-connections-page .bank-files-dropzone + .bank-files-row:has(:is(button, input, select)) {
    margin-top: 0 !important; padding: .5rem .75rem;
    background: #f0f2f5; border-bottom: 1px solid #dee2e6;
}

/* ============================================================================================
   INFO BOXES — the ONE style for every blue info box (.alert.fo-alert-info-solid): Bank Data's
   guide, the Closer intro, the team overview / Firm Close / SOP explainers (Christopher, 2026-10-08:
   "all of these info boxes follow the same format and use the same styles (DRY)").
   The banner blue (--fo-info-blue), white 12px text, bullets indented a hair, white underlined
   links, room on the right for the ×; the × itself white, 18px, in the top-right corner.
   ============================================================================================ */
.alert.fo-alert-info-solid { position: relative; color: #fff; font-size: 14px; padding-right: 2.5rem; margin: 10px 0 !important; }
.alert.fo-alert-info-solid :is(p, li, span, strong, em, div) { font-size: 14px; }
.alert.fo-alert-info-solid ul { padding-left: 1.1rem; margin-bottom: 0; }
.alert.fo-alert-info-solid a { color: #fff; text-decoration: underline; }
.alert.fo-alert-info-solid .closer-intro-dismiss {
    position: absolute; top: .4rem; right: .6rem; border: 0; background: transparent; padding: 0;
    color: #fff; font-size: 18px !important; line-height: 1; opacity: .9; cursor: pointer;
}
.alert.fo-alert-info-solid .closer-intro-dismiss:hover { opacity: 1; }

/* Grey outline buttons in Reconciler / Bank Data stay white on hover; the icon, text and border turn
   the site's hot pink instead of Bootstrap's grey fill (Christopher, 2026-10-09). Coloured outlines
   (danger / success / info) keep their own hover. */
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal) .btn.btn-outline-secondary:is(:hover, :focus-visible):not(:disabled) {
    background-color: #fff !important; border-color: #e91e63 !important; color: #e91e63 !important;
}
:is(#reconciler-workflow-tab, .plaid-connections-page, .fo-std-modal) .btn.btn-outline-secondary:is(:hover, :focus-visible):not(:disabled) :is(i, svg) { color: #e91e63 !important; }

/* Reconciler's title buttons (Get started / Firm Rec Status): white, staying white on hover, with the
   icon, text and border turning hot pink — the grey outline buttons' hover above, applied to both,
   green included (Christopher, 2026-10-09). */
:is(.rec-intro-stub, .closer-title-actions) .btn[class*="btn-outline-"] { background-color: #fff !important; }
:is(.rec-intro-stub, .closer-title-actions) .btn[class*="btn-outline-"]:is(:hover, :focus-visible, :active) {
    background-color: #fff !important; border-color: #e91e63 !important; color: #e91e63 !important;
}
:is(.rec-intro-stub, .closer-title-actions) .btn[class*="btn-outline-"]:is(:hover, :focus-visible, :active) :is(i, svg) { color: #e91e63 !important; }

/* Row action buttons, app-wide: the white outline icon buttons (`bg-white btn btn-outline-*`) every
   workflow list, Bank Data file table and Reconciler grid uses for edit / view / download / delete.
   At rest each keeps its colour; on hover the box stays white and the icon and border turn hot pink,
   whatever the colour (Christopher, 2026-10-09: "hover on all action buttons across the application
   should use the hot pink color"). */
.btn.bg-white[class*="btn-outline-"]:is(:hover, :focus-visible):not(:disabled):not(.disabled) {
    background-color: #fff !important; border-color: #e91e63 !important; color: #e91e63 !important;
}
.btn.bg-white[class*="btn-outline-"]:is(:hover, :focus-visible):not(:disabled):not(.disabled) :is(i, svg, span) { color: #e91e63 !important; }
/* Open or on (a toggle's .active, a menu's .show / aria-expanded): the same white box with hot pink,
   not Bootstrap's filled state, whose white text vanished on the forced white box (How, 2026-10-22).
   Pressed (:active) too: opening the Monthly review's version menu flashed white text (Christopher, 2026-10-26).
   A segmented toggle's active button keeps its fill; an open menu's button inside a .btn-group (the Monthly
   review's Run + version pair) still turns pink — the group exclusion hid its label (Christopher, 2026-10-26). */
.btn.bg-white[class*="btn-outline-"].active:not(.btn-group > .btn),
.btn.bg-white[class*="btn-outline-"]:is(.show, [aria-expanded="true"], :active) {
    background-color: #fff !important; border-color: #e91e63 !important; color: #e91e63 !important;
}
.btn.bg-white[class*="btn-outline-"].active:not(.btn-group > .btn) :is(i, svg, span),
.btn.bg-white[class*="btn-outline-"]:is(.show, [aria-expanded="true"], :active) :is(i, svg, span) { color: #e91e63 !important; }

/* Reconciler's tab strip sits on a 1px dark purple rule, so the solid dark purple active tab runs
   straight into the content under it (Christopher, 2026-10-09). */
#reconciler-workflow-tab #workflows-tabs.rec-tabs { border-bottom: 1px solid #250d47 !important; }
/* Every tab's foot on that rule: baseline alignment left the left-hand group 1.3px above it. The
   "Bank Data" label centres on the tabs' text instead. */
#reconciler-workflow-tab #workflows-tabs.rec-tabs { align-items: flex-end; }
#reconciler-workflow-tab #workflows-tabs.rec-tabs > .nav-item:has(> .rec-bankdata-links-label) { align-self: center; }
/* The divide's outstanding totals IN the Filters band, at its right: the account cards' counts
   line, summed (Chris Hervochon, 2026-10-18; Jesse, 2026-10-19). */
.rec-filters-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rec-divide-totals { font-weight: 400; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The account's QuickBooks type beside its name on the card's band. */
.rec-divide-account-type { margin-left: .4rem; }
/* "usually <account> (n/m)" under a bank-only row's Name — the payee's precedent in the books —
   and its popover (Chris Hervochon, 2026-10-18). A help line in the app's link colours; the
   popover is the forecaster's. */
.rec-divide-name-wrap { display: block; }
.rec-divide-usual-btn { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; background: none; border: 0; padding: 0; margin-top: 2px; font-size: 12px; color: #250d47; }
.rec-divide-usual-btn:hover, .rec-divide-usual-btn[aria-expanded="true"] { color: #e91e63; }
.rec-payee-pop { position: fixed; z-index: 1060; width: 390px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 14px rgba(17,24,39,0.12); font-size: 14px; color: #2d2c2f; }
.rec-payee-pop-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem .6rem; border-bottom: 1px solid #dee2e6; }
.rec-payee-pop-head .closer-eyebrow { white-space: normal; }
.rec-payee-pop-body { padding: .5rem .6rem; max-height: 300px; overflow-y: auto; }
.rec-payee-pop-usual { font-size: 14px; margin-bottom: .4rem; }
.rec-payee-pop-table { width: 100%; margin-bottom: .5rem; }
.rec-payee-pop-table td { font-size: 14px; padding: .2rem .3rem; border-bottom: 1px solid #dee2e6; vertical-align: top; }
.rec-payee-pop-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Every control in a Filters box is the reports' fixed 160px (Accruer / Wrangler's
   .mr-individual-filter, measured 2026-10-09) — pickers, dates, account lists and the boxed searches
   alike, on every Reconciler tab and Bank Data tab (Christopher, 2026-10-09). The control fills its
   160px slot; a Dates filter in Manual mode is its picker plus two date boxes, each 160px. */
:is(.fo-filters-box, .rec-filters-box) > :is(.mr-individual-filter, .activity-filter) {
    flex: 0 0 160px !important; width: 160px !important; min-width: 0 !important; max-width: 160px !important;
}
:is(.fo-filters-box, .rec-filters-box) > :is(.mr-individual-filter, .activity-filter, .fo-search-box)
    :is(input:not([type="checkbox"]):not([type="radio"]), select, .fo-check-search-box, .fo-combobox,
        .fo-combobox-display, .rec-combo, .rec-combo-trigger, .mr-select-btn, .bank-accounts-filter,
        .bank-accounts-filter-toggle, .rec-plain-select) {
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
}
:is(.fo-filters-box, .rec-filters-box) > .mr-individual-filter:has(.rec-divide-date-input) {
    flex: 0 0 auto !important; width: auto !important; max-width: none !important;
}
.rec-divide-dates > * { flex: 0 0 160px; width: 160px !important; max-width: 160px !important; }
.rec-divide-dates > .rec-divide-dates-dash { flex: 0 0 auto; width: auto !important; }

/* Balances' unzipped activity: the dark purple header every table has (thead.table-dark, the DARK
   TABLE HEADERS block), a rule between rows, the "N more…" note in body ink (Christopher, 2026-10-09). */
.plaid-connections-page .bank-balances-activity > tbody > tr > td { border-bottom: 1px solid #dee2e6 !important; }
.plaid-connections-page .bank-balances-activity-more { color: #2d2c2f; font-weight: 400; font-size: 14px; }
/* The unzipped panel starts under the account name: the facts line at the account TEXT (the 30px
   toggle column plus the account cell's 8px), the activity table's band at the account cell's
   edge, so its cells' 8px (the dark header's own) put labels and values on that same text edge. */
.plaid-connections-page .bank-balances-table td.bank-balances-panel { padding-left: 30px !important; }
.plaid-connections-page .bank-balances-panel-facts { padding-left: 8px; }
.plaid-connections-page .bank-balances-activity tbody td { padding: .3rem 8px !important; }
/* Balances' table starts 10px under the blue guide, as every tab does: the pane's own 8px top
   padding came on top of the guide's margin. */
.plaid-connections-page .bank-balances { padding-top: 0; }
/* The unzipped Balances row's facts: values in body ink, each led by a small uppercase dark purple
   label (ACCOUNT: / AVAILABLE: / SOURCE: / STATUS:) — Christopher, 2026-10-09. */
.plaid-connections-page .bank-balances-panel-facts { color: #2d2c2f; font-size: 14px; align-items: baseline; }
.plaid-connections-page .bank-balances-fact-label {
    color: #250d47; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-right: .2rem;
}
/* "Open in Feed": hot pink, dark purple on hover. */
.plaid-connections-page a.bank-balances-feed-link { color: #e91e63 !important; text-decoration: none; }
.plaid-connections-page a.bank-balances-feed-link:is(:hover, :focus-visible) { color: #250d47 !important; }
/* The statement editor's section header takes its own line in the wrapping field row. */
.bank-file-fix-form > .bank-file-fix-heading { flex-basis: 100%; margin: 0 0 -6px; }
/* Text and date inputs in the Filters boxes and the statement editor: Accruer's report filter
   inputs' 8px sides (theirs measured 0 8px), so the text and the date picker's calendar sit where
   the reports put them; 29px tall, the text centred by the browser (Christopher, 2026-10-09). Not the
   boxed searches: their left padding is the magnifying glass's room. */
:is(.fo-filters-box, .rec-filters-box, .bank-file-fix-form) input.form-control:not([type="checkbox"]):not([type="radio"]):not(.fo-check-search-input) {
    padding: 0 8px !important;
}
/* Book / Bank's secondary text in body ink, not grey: a book row's FO_ACT id, and the account
   header's coverage and counts lines (Christopher, 2026-10-09). */
#reconciler-workflow-tab :is(.rec-divide-entry-label, .rec-divide-account-coverage,
                             .rec-divide-account-counts, .rec-divide-account-line) { color: #2d2c2f !important; }
/* The Dates picker's button IS the app's dropdown button (.fo-combobox-display, the DROPDOWNS
   block) and fills its 160px filter slot. */
.rec-filters-box .rec-dates-picker { width: 100%; }
.rec-filters-box .rec-dates-toggle { width: 100%; }
/* The Dates menu as every other dropdown's panel (the DROPDOWNS block): the combobox panel's border,
   corners and shadow, 12px body ink, the hovered row banner blue with white text, the chosen one bold
   (no lavender band, no purple). Its "→ and later" pill is the app's chip: dark purple, hot pink on
   hover, solid dark purple when chosen (Christopher, 2026-10-09). */
.rec-dates-menu {
    padding: .4rem; border: 1px solid #e5e1ec; border-radius: 6px;
    box-shadow: 0 8px 24px rgba(37, 13, 71, .18); font-size: 14px;
}
.rec-dates-row { gap: .35rem; padding-right: 0; border-radius: 4px; }
.rec-dates-row--on { background: transparent; }
.rec-dates-item { padding: 2px 5px; border-radius: 4px; color: #2d2c2f; font-size: 14px; }
.rec-dates-item:hover, .rec-dates-item:focus-visible { background: var(--fo-info-blue); color: #fff; }
.rec-dates-item--on { font-weight: 700; color: #2d2c2f; }
.rec-dates-check { display: inline-flex; align-items: center; width: 1.1rem; color: inherit; font-size: 14px; }
.rec-dates-item, .rec-dates-row { min-height: 22px; }
.rec-dates-since {
    padding: 0 .4rem; border: 1px solid #250d47; border-radius: 999px; background: #fff;
    color: #250d47; font-size: 14px; font-weight: 600; line-height: 16px;
}
.rec-dates-since:hover, .rec-dates-since:focus-visible { border-color: #e91e63; color: #e91e63; }
.rec-dates-since--on, .rec-dates-since--on:hover { border-color: #250d47; background: #250d47; color: #fff; }
/* Bank Data ▸ a connection's detail page: 10px above its card; the field names in the app's label
   style (12px caps dark purple), the values 12px body ink; the buttons on one line (2026-10-09). */
.plaid-connection-detail.app-card { margin-top: 10px; }
.plaid-connection-detail .field-label-td label {
    color: #250d47; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0;
}
.plaid-connection-detail .field-input-td { font-size: 14px !important; color: #2d2c2f; }
.plaid-connection-detail #workflow-form-buttons .pg-breadcrumbs > li { display: flex; gap: .5rem; text-transform: none; }
/* Any page opened INSIDE Reconciler's Bank Data frame (a connection's detail / update page, not just
   the list): Reconciler's card is its card — no second card, shadow, grey surround or margin of its
   own (Christopher, 2026-10-09: "this card shouldn't be nested like this"). 10px off the tab rule. */
html.fo-embedded, html.fo-embedded body, html.fo-embedded main.main-content { background: #fff !important; }
html.fo-embedded main.main-content { margin-left: 0 !important; padding: 0 !important; }
html.fo-embedded main.main-content > :is(.container-fluid, div) { padding: 0 !important; margin: 0 !important; }
html.fo-embedded section.app-card {
    margin: 10px 0 0 !important; padding: 0 !important; box-shadow: none !important;
    border-radius: 0 !important; background: transparent !important;
}
html.fo-embedded section.app-card > .card-body { padding: 0 !important; }
html.fo-embedded .plaid-connections-page.app-card { margin-top: 0 !important; }
.plaid-connection-detail #workflow-detail-container td { vertical-align: baseline; }

/* A book row's actions under its amount, right-aligned on the book side's edge: the 💬, no bank side
   expected, delete — icons as the Hold column's (12px, dark purple, hot pink on hover), not boxed
   buttons; delete in danger red, a cleared no-bank-side in green (Christopher, 2026-10-09). The
   pending-delete note wraps under them. */
.rec-divide-book-acts {
    display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 6px;
    margin-top: 4px; line-height: 1;
}
.rec-divide-book-acts > div { display: inline-flex; margin: 0; }
.rec-divide-book-acts .rec-divide-comment-btn { margin: 0; }
.rec-divide-book-icon {
    background: none; border: 0; padding: 0 .15rem; line-height: 1; cursor: pointer;
    font-size: 12px; color: #250d47;
}
.rec-divide-book-icon:hover, .rec-divide-book-icon:focus-visible { color: #e91e63; }
.rec-divide-book-icon--danger, .rec-divide-book-icon--danger:hover { color: var(--bs-danger, #F44335); }
.rec-divide-book-icon--danger:hover { opacity: .75; }
.rec-divide-book-icon--on, .rec-divide-book-icon--on:hover { color: var(--bs-success, #4CAF50); }
.rec-divide-book-icon:disabled { opacity: .5; cursor: default; }
/* "No bank side expected" is seldom used: grey at rest, pink on hover like its neighbours, green
   once on (Jesse, 2026-10-14: "I don't want it that loud"). */
.rec-divide-nobank-btn:not(.rec-divide-book-icon--on):not(:hover):not(:focus-visible) { color: #adb5bd; }
.rec-divide-book-acts .rec-divide-entry-del-confirm { font-size: 14px; justify-content: flex-end; }
/* The Rules quick-look's filter fills its header row beside the sort / ×; no ⌘ hint to make room for. */
.rec-rules-quicklook-head > .rec-rules-quicklook-filter { flex: 1 1 auto; }
.rec-rules-quicklook-filter .fo-check-search-input { width: 100%; padding-right: 8px; }
/* The comment panel (Closer's GL, Reconciler rows): 10px between the header's rule and the reply
   box, and the title at the standard modals' 14px (Christopher, 2026-10-09). */
.closer-fin-panel .closer-fin-panel-new { margin-top: 10px; }
.closer-fin-panel .closer-fin-panel-title { font-size: 14px; }
/* A non-zero Difference / Drift in the danger red (Christopher, 2026-10-09). */
.rec-statuses-break, .rec-statuses-break .text-danger { color: var(--bs-danger, #F44335) !important; }
/* The months switch's figures centred on the box (measured: cap-height mid vs the box's inner mid —
   2px over put them 0.7px low, none 0.3px high) (Christopher, 2026-10-09). */
.rec-status-toolbar .btn-group .btn { line-height: 15px !important; padding-top: .5px !important; padding-bottom: 0 !important; }   /* measured: figures' mid on the box's mid */
/* The detail list's blue Reconcile, flush in its cell (the band's copy keeps its left margin). */
.rec-status-detail-actions .btn.rec-divide-finalize-btn { margin-left: 0; }
/* Balances: the account name is the row's other disclosure — bold dark purple, hot pink on hover. */
.plaid-connections-page .bank-balances-account-toggle {
    background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #250d47; cursor: pointer;
}
.plaid-connections-page .bank-balances-account-toggle:hover,
.plaid-connections-page .bank-balances-account-toggle:focus-visible { color: #e91e63; }
/* Rec Status's month detail list at the grid's 12px (Christopher, 2026-10-09). */
.rec-status-detail-table, .rec-status-detail-table td { font-size: 14px; }
.rec-status-detail-table th { font-size: 12px; }
/* A table inside its scroll box carries no bottom margin: Bootstrap's 1rem sat as dead space between
   the last row and the footer once the box shrinks to its rows (2026-10-09). */
.plaid-connections-page :is(.plaid-sticky-scroll, .bank-balances-scroll) > table { margin-bottom: 0 !important; }

/* Workflows page ▸ a file row's last per-file result (Verify / Book / Re-run of that file only):
   the error stays under the file name until a clean run of it clears it. */
.payroll-file-result {
    margin-top: 2px;
    max-width: 40rem;
    white-space: normal;
    font-size: 14px;
}

/* ── Desk Board (templates/desk_board/board.html, static/js/desk-board.js; 2026-10-11) ──────────
   My Desk's dress: the desk tab strip (#desk-board-tabs rides #closer-home-subtabs' rules), the
   Filters box, fo-check-table rows, the one chip style for each row's What and the grid's states. A row that changed since the
   viewer last looked is bold, with the new-status amber dot beside its subject; a grid cell carries the same dot. */
.desk-board-kbd { font-size: 12px; font-family: inherit; color: #495057; background: #fff; border: 1px solid #e4def0; border-radius: .35rem; padding: 0 .3rem; margin-left: .2rem; }
.desk-board-shown { font-size: 14px; font-weight: 400; margin-left: .5rem; opacity: .85; }
/* The filter bar is Conversations' (.conversations-filterbar); its last line sits on the box's edge. */
.desk-board-filterbar { margin-bottom: 0; }
.desk-board-knob { display: inline-flex; }
.desk-board-knob:empty { display: none; }
.desk-board-body { margin-top: .5rem; }
.desk-board-failed { font-size: 14px; color: #c5221f; padding: .4rem 0 .6rem; }
.desk-board-table td, .desk-board-grid td { font-size: 14px; color: #2d2c2f; font-weight: 400; vertical-align: middle; }
/* One line a row (Jesse, 2026-10-11: "more rows in view"): the subject takes what the other
   columns leave and ellipsizes; the full text is the cell's tooltip. */
.desk-board-table td { padding: .25rem .5rem; white-space: nowrap; }
/* Chips at the standard's 10px, as every Closer pane sets them (the global .closer-pill is 14px). */
.desk-board .closer-pill, .fathom-meetings .closer-pill { font-size: 12px; padding: .25rem .6rem; }
.desk-board-client-cell { max-width: 13rem; overflow: hidden; text-overflow: ellipsis; }
.desk-board-subject-cell { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
.desk-board-subject { color: #250d47; text-decoration: none; }
.desk-board-subject:hover { color: #e91e63; }
/* Unread, the way an inbox marks it: bold subject, amber dot (the New status dot's #f5a623) beside it.
   The conversations list uses the same dot (DeskTable.tsx). */
.desk-board-row-new .desk-board-subject,
.desk-table a.conversations-unread-subject { font-weight: 700; }
.conversations-unread-dot {
    display: inline-block; width: 8px; height: 8px; margin-right: .35rem; border-radius: 50%;
    background: #f5a623; vertical-align: middle;
}
.desk-board-cell-new { font-weight: 700; }
.desk-board-tab-dot { color: #f5a623; font-size: .55em; vertical-align: .15em; }
.desk-board-due-hot { font-weight: 600; }
/* Equal slots, or the second icon walks: the inbox is wider than the clipboard,
   and the slashed eye is wider than the plain one. */
.desk-board-acts .desk-board-open,
.desk-board-acts .desk-board-act {
    display: inline-flex; align-items: center; justify-content: center; width: 1.25em; vertical-align: middle;
}
.desk-board-acts .desk-board-open { margin-right: .6rem; }
.desk-board-acts .desk-board-act { font-size: 14px; color: #495057; }
.desk-board-col-tight { white-space: nowrap; width: 1%; }
.desk-board-client { font-weight: 600; color: #250d47; }
.desk-board-kind { white-space: nowrap; }
.desk-board-detail { color: #495057; }
.desk-board-who { white-space: nowrap; }
.desk-board-who-me { font-weight: 600; color: #250d47; }
.desk-board-age { white-space: nowrap; }
.desk-board-age-old { font-weight: 600; color: #c5221f; }
.desk-board-open { white-space: nowrap; color: #250d47; text-decoration: none; }
.desk-board-open:hover { color: #e91e63; }
.desk-board-group > td { background: #f4f1fa; color: #250d47; font-weight: 600; font-size: 14px; }
.desk-board-empty { color: #495057; padding: 1rem .5rem !important; }
.desk-board-cell-wrap { text-align: center; white-space: nowrap; }
.desk-board-cell { border: 0; cursor: pointer; font-size: 14px; min-width: 3.2rem; text-transform: none; }   /* "47d", not "47D" */
/* Headers over the centred cell chips (.fo-check-table th's left align outranks the wrap's). */
.desk-board-grid th.desk-board-cell-wrap { text-align: center; }
.desk-board-cell-empty { color: #c4bad6; }
.desk-board-drawer { margin-top: .75rem; border: 1px solid #dee2e6; border-radius: .375rem; padding: .5rem; }
.desk-board-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 .4rem; }
/* A grid cell's rows open right under its client, where the click was (2026-10-12: the drawer used to
   open below the whole grid, out of sight); the open cell wears the selected row's purple outline. A
   findings row lists its checks beneath it, indented, each with its count. */
.desk-board-grid-drawer > td { padding: 0 .5rem .6rem !important; background: #faf9fc; }
.desk-board-grid-drawer .desk-board-drawer { margin-top: .25rem; background: #fff; }
.desk-board-grid-drawer .fo-check-table > thead > :where(tr) > th { position: static; }
.desk-board-cell.is-open { outline: 2px solid #250d47; outline-offset: 1px; }
.desk-board-part > td { font-size: 14px; color: #2d2c2f; padding: .15rem .5rem; background: #fcfbfe; }
.desk-board-part > td.desk-board-subject-cell { padding-left: 1.5rem; }
/* Keys (1-4, D, U, F): the selected row wears a dark purple outline; the keyboard icon opens
   the shortcuts list; a one-line status says what a key just did ("U to undo"). */
.desk-board-row { cursor: default; }
.desk-board-table tr.is-selected > td { box-shadow: inset 0 2px 0 #250d47, inset 0 -2px 0 #250d47; }
.desk-board-table tr.is-selected > td:first-child { box-shadow: inset 2px 2px 0 #250d47, inset 0 -2px 0 #250d47; }
.desk-board-table tr.is-selected > td:last-child { box-shadow: inset -2px 2px 0 #250d47, inset 0 -2px 0 #250d47; }
.desk-board-keys-tip { color: #250d47; cursor: pointer; font-size: 14px; padding: 0 .25rem; border: 0; background: none; line-height: 1; }
.desk-board-keys-tip:hover { color: #e91e63; }
.desk-board-updating { width: .75rem; height: .75rem; border-width: .15em; margin-left: .4rem; vertical-align: middle; }
.desk-board-act { border: 0; background: none; padding: 0; font-size: 14px; color: #250d47; cursor: pointer; }
.desk-board-act:hover { color: #e91e63; }
.desk-board-flash { font-size: 14px; color: #2d2c2f; padding: .4rem 0 0; }
.desk-board-flash-error { color: #c5221f; }
.desk-board-view-help { font-size: 14px; color: #495057; margin: .4rem 0 .5rem 1rem; }
.desk-board-view-note { font-size: 14px; color: #495057; }
.desk-board-table th.desk-board-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
/* The list's columns move and resize as the General Ledger's do (TM-2318, fo-column-head.js): each
   movable header holds the GL's edge. Once an edge is dragged the widths are fixed, and a row stays
   one line, cut off with an ellipsis. */
.desk-board-table > thead > tr > th[data-col] { position: relative; }
.desk-board-table-fixed { table-layout: fixed; }
.desk-board-table-fixed > thead > tr > th,
.desk-board-table-fixed > tbody > tr > td { overflow: hidden; text-overflow: ellipsis; }
/* Tick rows for the bulk bar (Jesse, 2026-10-20): a pink check per row, one per group header and one
   in the column header for every row shown; a ticked row wears the group header's lilac. */
.desk-board-check { width: 1%; padding-right: .25rem !important; cursor: pointer; }
.desk-board-check .form-check-input { display: block; float: none; margin: 0; width: 14px; height: 14px; cursor: pointer; }
.desk-board-table tr.is-chosen > td { background-color: #f4f1fa; }
.desk-board-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; padding: .35rem .5rem; border-radius: .375rem; }
.desk-board-bulk[hidden] { display: none; }
.desk-board-bulk-progress { font-size: 14px; color: #2d2c2f; display: inline-flex; align-items: center; gap: .35rem; }
/* The Conversations list's tick column and bulk bar (desk-bulk.js): the Desk board's bar, under the
   filters. A ticked row is the selected-row blue (Christopher, 2026-10-22). */
.desk-table .desk-pick-cell { width: 1%; padding-right: .25rem; }
.desk-table th.desk-pick-cell { cursor: default; }   /* its header ticks the page; it doesn't sort */
.desk-table .desk-pick { display: block; margin: 0; cursor: pointer; }
.desk-table .desk-pick-cell .form-check-input { display: block; float: none; margin: 0; width: 14px; height: 14px; cursor: pointer; }
.desk-table .desk-star-cell { width: 1%; padding-left: .4rem; padding-right: 0; }
.desk-table th.desk-star-cell { cursor: default; }
.desk-table .desk-star { border: 0; background: transparent; padding: 0; line-height: 1; color: #495057; cursor: pointer; }
.desk-table .desk-star:hover,
.desk-table .desk-star.is-starred { color: #e91e63; }
.desk-table tr.is-chosen > td { background-color: #cfe2ff; }
.desk-bulk-said { font-size: 14px; }
.desk-bulk-note { flex: 1 1 16rem; width: 18rem; max-width: 24rem; }
/* The bulk editor (includes/desk_bulk_edit.html): its note box fills the column beside the fields. */
.desk-bulk-edit-body { min-height: 16rem; font-size: 14px; }
.desk-bulk-edit-help { font-size: 14px; color: #495057; }
/* Its tag fields: the chips and the tag being typed in one box, which turns pink while you type in it.
   The suggestions are people-suggest's list (.fo-people-suggest), the match in bold as Zendesk shows it. */
.desk-bulk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; height: auto; min-height: 31px; cursor: text; }
.desk-bulk-tags:focus-within { border-color: #e91e63 !important; }
.desk-bulk-tags .aplus-people-chips { display: contents; }
.desk-bulk-tags-input { flex: 1 1 3rem; min-width: 3rem; border: 0 !important; outline: 0; padding: 0; font-size: 14px; background: transparent; }
.fo-people-suggest-item b { font-weight: 700; color: #250d47; }
.desk-board-confirm-list { font-size: 14px; color: #2d2c2f; padding-left: 1.1rem; margin-bottom: .5rem; }
.desk-board-confirm-help { font-size: 14px; color: #495057; margin-top: .25rem; }

/* ── fo-chart: the shared inline-SVG line chart (static/js/fo-chart.js) ───────────
   Modelled on the product-usage chart (2026-10-12) as the one module new pages draw
   with (Forecaster, the MRR dashboard); product-usage.js still draws its own until it
   is ported. Brand colours, one legend, one hover tip. */
.fo-chart-block { border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem 1.15rem 0.75rem; background: #fff; margin: 0.25rem 0 1.25rem; }
.fo-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.fo-chart-title { font-weight: 600; font-size: 14px; color: #2d2c2f; }
.fo-chart-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.5rem 0 0.25rem; }
.fo-chart-legend-item { font-size: 14px; color: #495057; display: inline-flex; align-items: center; cursor: default; }
.fo-chart-legend-item.fo-chart-legend-off { opacity: 0.4; }
.fo-chart-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.35rem; }
.fo-chart-swatch-dashed { background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px) !important; height: 3px; margin-top: 3px; }
.fo-chart { position: relative; margin-top: 0.25rem; }
.fo-chart-svg { display: block; overflow: visible; font-family: inherit; }
.fo-chart-grid { stroke: #eef0f3; stroke-width: 1; }
.fo-chart-zero { stroke: #adb5bd; stroke-width: 1; }
.fo-chart-axis { fill: #495057; font-size: 14px; font-variant-numeric: tabular-nums; }
.fo-chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fo-chart-line-dashed { stroke-dasharray: 5 4; }
.fo-chart-area { opacity: 0.08; }
.fo-chart-dot { stroke: #fff; stroke-width: 1.5; }
.fo-chart-divider { stroke: #250d47; stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.6; }
.fo-chart-divider-label { fill: #250d47; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.fo-chart-minline { stroke: #e91e63; stroke-width: 1; stroke-dasharray: 6 3; }
.fo-chart-crosshair { stroke: #9ca3af; stroke-width: 1; stroke-dasharray: 3 3; }
.fo-chart-tip { position: absolute; display: none; z-index: 5; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 14px rgba(17,24,39,0.12); padding: 0.5rem 0.6rem; font-size: 14px; min-width: 150px; pointer-events: none; color: #2d2c2f; }
.fo-chart-tip-head { font-weight: 600; margin-bottom: 0.3rem; }
.fo-chart-tip-row { display: flex; align-items: center; gap: 0.4rem; line-height: 1.6; }
.fo-chart-tip-name { color: #495057; }
.fo-chart-tip-val { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.fo-chart-actions .btn { margin-left: .25rem; }

/* ── Forecaster (fo_saas/forecaster) ──────────────────────────────────────────── */
.forecaster-mount { position: relative; font-size: 14px; color: #2d2c2f; }
.forecaster-mount p, .forecaster-mount td, .forecaster-mount th, .forecaster-mount label { font-weight: 400; }
.forecaster-empty { font-size: 14px; color: #2d2c2f; padding: .5rem 0; }
/* table-dark colours only inside a table, so the bar carries the dark purple itself (its white title was invisible). */
.forecaster-settings-head { display: flex; align-items: center; justify-content: space-between; padding: .4rem .75rem; border-radius: .375rem .375rem 0 0; font-size: 14px; background: #250d47; }
.forecaster-settings-title { font-weight: 600; color: #fff; }
.forecaster-asof { font-size: 14px; color: #dee2e6; }
.forecaster-settings-head-end { display: flex; align-items: center; gap: .75rem; }
.forecaster-collapse-chip { float: none; white-space: nowrap; }
/* The charts wear the settings' dark head, with the same chips (Jesse, 2026-10-21). */
.forecaster-chart-block { padding: 0; }
.forecaster-chart-head .fo-chart-actions { display: flex; align-items: center; gap: .4rem; }
.forecaster-chart-head .fo-chart-actions .btn { margin-left: 0; }
.forecaster-chart-body { padding: .6rem 1rem .5rem; }
.forecaster-collapse-chip .desk-filters-arrow { transition: transform .15s; }
.forecaster-collapse-chip[aria-expanded="false"] .desk-filters-arrow { transform: rotate(180deg); }
.forecaster-settings-body { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; padding: .75rem; border-radius: 0 0 .375rem .375rem; }
.forecaster-settings-body[hidden], .forecaster-chart-body[hidden] { display: none; }
.forecaster-settings-fields { min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1.25rem; }
.forecaster-setting { display: flex; flex-direction: column; gap: .25rem; min-width: 150px; }
/* The scenario switches, in their own strip under the tabs. */
.forecaster-scenarios-strip { margin-top: .75rem; }
.forecaster-window { display: flex; gap: .4rem; }
.forecaster-window .fo-combobox { min-width: 6.5rem; }
.forecaster-setting-actions { flex-direction: row; align-items: center; gap: .5rem; margin-left: auto; flex-wrap: wrap; }
.forecaster-input { height: 29px; font-size: 14px; max-width: 170px; }
/* The app's input (29px, 12px, white, lightgray border), as Closer's tab cards: the theme's
   underline form-control left the line name, minimum cash and the Change editor reading as bare text. */
:is(.forecaster-mount, #fc-change-modal, #fc-snapshot-modal, #fc-driver-modal) .form-control-sm:not(.fo-check-search-input) {
    height: 29px; font-size: 14px; padding: 0 .5rem; background-color: #fff; border: 1px solid lightgray; border-radius: .375rem;
}
:is(.forecaster-mount, #fc-change-modal) textarea.form-control-sm { height: auto; padding: .35rem .5rem; }
.forecaster-tag-none { font-size: 12px; color: #495057; }
/* The headline row above the settings: compact tiles for what is in the numbers. */
.forecaster-highlights { display: flex; align-items: stretch; gap: .6rem; margin: 0 0 .6rem; }
.forecaster-tiles { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1 1 auto; }
.forecaster-tile { flex: 1 1 140px; border: 1px solid #e5e7eb; border-radius: 8px; padding: .3rem .65rem; background: #fff; min-width: 140px; }
.forecaster-tile-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; }
.forecaster-tile-value { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.forecaster-tile-sub { font-size: 14px; color: #495057; }
.forecaster-table-wrap { overflow: auto; max-height: 70vh; border: 1px solid #dee2e6; border-radius: .375rem; }
.forecaster-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.forecaster-table th { position: sticky; top: 0; z-index: 2; background: #250d47; color: #fff; font-weight: 600; font-size: 12px; padding: .35rem .6rem; text-align: right; white-space: nowrap; border-bottom: 1px solid #dee2e6; }
.forecaster-table th.forecaster-col-label { text-align: left; left: 0; z-index: 3; min-width: 260px; }
/* Two header rows pin one under the other, so the taller Bucket cell doesn't hang below them. */
.forecaster-table thead tr:first-child th.forecaster-th-group { height: 27px; }
.forecaster-table thead tr:nth-child(2) th { top: 27px; }
.forecaster-table th.forecaster-th-budget { background: #3b1f66; }
.forecaster-table th.forecaster-th-group { text-align: center; background: #250d47; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-left: 1px solid #4a3a6a; }
.forecaster-table td { padding: .3rem .6rem; text-align: right; white-space: nowrap; border-bottom: 1px solid #dee2e6; font-variant-numeric: tabular-nums; background: #fff; }
.forecaster-table td.forecaster-col-label { text-align: left; position: sticky; left: 0; z-index: 1; background: #fff; border-right: 1px solid #dee2e6; }
.forecaster-table td.forecaster-cell-budget { background: #faf7ff; }
.forecaster-table tr.forecaster-row-heading td { font-weight: 600; background: #f4f1f8; }
.forecaster-table tr.forecaster-row-heading td.forecaster-cell-budget { background: #efe9f7; }
.forecaster-table tr.forecaster-row-total td { font-weight: 600; border-top: 2px solid #250d47; }
.forecaster-table tr.forecaster-row-catchall td.forecaster-col-label { color: #495057; font-style: italic; }
.forecaster-table tr.forecaster-row-muted td { color: #495057; }
/* A muted row's negatives stay red, as every other row's do. */
.forecaster-table tr.forecaster-row-muted td.forecaster-cell-neg { color: #dc3545; }
/* A bucket's row opened by name (forecaster.js; Jesse, 2026-10-29): Financials' chevron, shown on the
   row's hover and while open; the bucket's name opens it too. The name rows read in the secondary ink. */
.forecaster-table tr:hover .closer-fin-names-btn { opacity: 1; }
.forecaster-names-label, .forecaster-names-more { cursor: pointer; }
.forecaster-names-label:hover, .forecaster-names-more:hover { color: #e91e63; }
.forecaster-table tr.forecaster-namerow td { color: #495057; }
.forecaster-table tr.forecaster-namerow td.forecaster-cell-neg { color: #dc3545; }
.forecaster-table tr.forecaster-namerow-note td.forecaster-col-label { font-style: italic; }
.forecaster-names-more { color: #250d47; }
.forecaster-table td.forecaster-name-add { cursor: pointer; }
.forecaster-table td.forecaster-name-add:hover { background: #e7f1ff; }
.forecaster-depth-1 { padding-left: 1.25rem !important; }
.forecaster-depth-2 { padding-left: 2.25rem !important; }
.forecaster-depth-3 { padding-left: 3.25rem !important; }
.forecaster-cell-has-changes { cursor: pointer; text-decoration: underline dotted #1A73E8; text-decoration-skip-ink: none; }
.forecaster-cell-has-changes:hover { background: #e8f0fe !important; }
.forecaster-cell-neg { color: #dc3545; }
.forecaster-popover { position: absolute; z-index: 20; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 14px rgba(17,24,39,0.12); padding: .5rem .45rem; font-size: 14px; max-width: 380px; }
.forecaster-popover-head { font-weight: 600; margin: 0 .3rem .25rem; color: #250d47; }
/* Each row is a button: it opens that Change in the editor. */
.forecaster-popover-row { display: flex; align-items: center; gap: .5rem; width: 100%; line-height: 1.5; padding: .2rem .3rem; border: 0; border-radius: .25rem; background: none; color: #2d2c2f; font-size: 14px; text-align: left; cursor: pointer; }
.forecaster-popover-row:hover, .forecaster-popover-row:focus-visible { background: #e7f1ff; outline: none; }
.forecaster-popover.forecaster-explain { max-height: calc(100vh - 16px); overflow-y: auto; }
.forecaster-popover.forecaster-explain.forecaster-explain-changes { width: 760px; max-width: min(760px, 96vw); }
.forecaster-explain-changes .forecaster-explain-terms .forecaster-popover-row { display: grid; grid-template-columns: 190px 1fr 72px 140px 14px; align-items: start; }
.forecaster-explain-changes .forecaster-explain-terms .forecaster-popover-row:not(.forecaster-popover-change) > span:first-child { grid-column: 1 / 3; }
.forecaster-explain-changes .forecaster-explain-terms .forecaster-popover-row > .amt { grid-column: 3; text-align: right; }
.forecaster-explain-changes .forecaster-explain-terms .forecaster-popover-row > .forecaster-popover-go { grid-column: 5; }
.forecaster-popover-tags { display: flex; flex-wrap: wrap; gap: .2rem; }
.forecaster-kind-chip, .forecaster-popover .forecaster-change-tag { display: inline-flex; align-items: center; height: 19px; padding: 0 9.6px; font-size: 12px; font-weight: 600; line-height: 1; vertical-align: middle; }
.forecaster-popover.forecaster-explain.forecaster-explain-matrix { width: max-content; max-width: min(1240px, 96vw); }
.forecaster-explain-matrix .forecaster-explain-acct { min-width: 260px; max-width: 340px; }
.forecaster-explain-matrix-account { font-size: 14px; color: #495057; }
.forecaster-diff-term .closer-status-badge, .forecaster-term-series .closer-status-badge { white-space: nowrap; }
.forecaster-term-series > summary { list-style: none; }
.forecaster-term-series > summary::-webkit-details-marker { display: none; }
.forecaster-term-series > summary .closer-task-section-caret { font-size: 9px; transition: transform .15s; }
.forecaster-term-series[open] > summary .closer-task-section-caret { transform: rotate(90deg); }
.forecaster-term-series > :not(summary) { margin-left: .5rem; }
.forecaster-popover-account { display: none; }
.forecaster-explain-changes .forecaster-popover-account { display: block; font-weight: 600; color: #250d47; }
.forecaster-popover-row .amt { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.forecaster-popover-go { font-size: 14px; color: #495057; }
.forecaster-popover-row:hover .forecaster-popover-go, .forecaster-popover-row:focus-visible .forecaster-popover-go { color: #e91e63; }
.forecaster-popover-foot { margin: .4rem .3rem 0; padding-top: .45rem; border-top: 1px solid #eef0f3; }
.forecaster-changes-toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; flex-wrap: wrap; }
.forecaster-changes-toolbar .fo-check-search-box { max-width: 300px; }
.forecaster-change-row-off td { color: #6c757d; }
.forecaster-change-desc { max-width: 320px; white-space: normal !important; }
.forecaster-change-tag { margin-right: .2rem; }
.forecaster-change-tag-focus { border: 0; cursor: pointer; }
#fc-changes-focus .btn.active + .btn.active { border-left-color: #fff; }
#fc-changes-focus .btn { display: inline-flex; align-items: center; height: 29px; padding-top: 0; padding-bottom: 0; }
#fc-changes-focus .closer-note-number { display: inline-flex; align-items: center; height: 19px; padding: 0 .4rem; font-size: 12px; }
.forecaster-line-add-btn { display: inline-flex; align-items: center; height: 24px; padding-top: 0; padding-bottom: 0; }
.forecaster-change-tag-focus:hover { color: #e91e63; }
.forecaster-change-edit { cursor: pointer; }
.forecaster-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .9rem; }
.forecaster-field { display: flex; flex-direction: column; gap: .2rem; }
.forecaster-field-wide { grid-column: 1 / -1; }
.forecaster-field-check { justify-content: flex-end; }
.forecaster-help { font-size: 14px; color: #495057; }
.forecaster-form-errors { font-size: 14px; margin-top: .5rem; }
.forecaster-modal-title, .modal-title.forecaster-modal-title { font-size: 14px; color: #250d47; font-weight: 600; margin: 0; }
.forecaster-error { font-size: 14px; margin-top: .75rem; }
.forecaster-panes .forecaster-note { font-size: 14px; color: #495057; margin: .4rem 0 .6rem; }
.forecaster-setting-anchors { flex-direction: row; gap: .75rem; align-items: flex-end; flex-wrap: wrap; min-width: 0; }
.forecaster-anchor { display: flex; flex-direction: column; gap: .25rem; }
.forecaster-anchor .forecaster-input { max-width: 150px; }
.forecaster-scenarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: .2rem 1.5rem; }
.forecaster-scenarios > .forecaster-scenarios-past-toggle, .forecaster-scenarios > .forecaster-tag-none { grid-column: 1 / -1; justify-self: start; }
/* Every row's name column is the longest name's (--fc-tag-w, measured by forecaster.js), so the start
   months and the "N changes" line up down the strip (Jesse, 2026-10-30). */
.forecaster-scenario { display: grid; grid-template-columns: 22px 12px var(--fc-tag-w, minmax(48px, max-content)) max-content 150px max-content; align-items: center; gap: .5rem; font-size: 14px; }
.forecaster-scenario-lit { background: #cfe2ff; border-radius: .25rem; box-shadow: 0 0 0 3px #cfe2ff, 0 0 0 4px #e91e63; }
.forecaster-scenario-rename, .forecaster-line-chip-rename { border: 0; background: none; padding: 0; font-size: 12px; color: #250d47; cursor: pointer; opacity: 0; }
.forecaster-scenario:hover .forecaster-scenario-rename, .forecaster-scenario-rename:focus-visible,
.forecaster-line-chip:hover .forecaster-line-chip-rename, .forecaster-line-chip-rename:focus-visible { opacity: 1; }
.forecaster-scenario-rename:hover, .forecaster-line-chip-rename:hover { color: #e91e63; }
/* On a chip the pencil sits over the swatch on hover, so a chip at rest has no gap and its neighbours never shift. */
.forecaster-line-chip[data-line-tags] { position: relative; }
.forecaster-line-chip .forecaster-line-chip-rename { position: absolute; left: .3rem; top: 50%; transform: translateY(-50%); width: 14px; line-height: 14px; background: inherit; }
.forecaster-scenario .forecaster-scenario-name { min-width: 110px; }
.forecaster-scenario-rename-note { grid-column: 1 / -1; font-size: 14px; color: #2d2c2f; }
.forecaster-scenarios-past-toggle { border: 0; background: none; padding: .15rem 0; font-size: 14px; color: #250d47; text-align: left; cursor: pointer; }
.forecaster-scenarios-past-toggle .closer-task-section-caret { font-size: 9px; margin-right: .2rem; transition: transform .15s; }
.forecaster-scenarios-past-toggle .closer-task-section-caret.open { transform: rotate(90deg); }
.forecaster-scenarios-past { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: .2rem 1.5rem; opacity: .85; }
.forecaster-scenario-tag { font-weight: 600; color: #250d47; }
.forecaster-scenario-starts { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #495057; text-align: right; }
.forecaster-scenario-count { border: 0; background: none; padding: 0; color: #250d47; font-size: 12px; text-align: left; cursor: pointer; }
.forecaster-scenario-count:hover, .forecaster-scenario-count.active { color: #e91e63; }
.forecaster-scenario-count.active { font-weight: 600; }
.forecaster-run-status { font-size: 14px; font-weight: 400; }
/* A run under way: the numbers it replaces fade, so nobody reads them as the new ones. */
.forecaster-mount .forecaster-tiles, .forecaster-mount .forecaster-panes { transition: opacity .15s; }
.forecaster-running .forecaster-tiles, .forecaster-running .forecaster-panes { opacity: .8; }
.forecaster-scenario-first { font-size: 14px; color: #2d2c2f; line-height: 29px; }
.forecaster-scenario .forecaster-input { height: 26px; font-size: 14px; }
.forecaster-bulk { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .5rem .75rem; margin-bottom: .6rem; border: 1px solid #dee2e6; border-radius: .375rem; background: #f4f1f8; font-size: 14px; }
.forecaster-bulk-count { font-weight: 600; color: #250d47; }
.forecaster-bulk .forecaster-input { max-width: 150px; }
.forecaster-bulk-sep { width: 1px; height: 22px; background: #dee2e6; margin: 0 .25rem; }
.forecaster-table th.forecaster-col-check, .forecaster-table td.forecaster-col-check { width: 28px; text-align: center; padding-left: .4rem; padding-right: .2rem; }
.forecaster-table td.forecaster-col-check input, .forecaster-table th.forecaster-col-check input { margin: 0; }
.forecaster-lines { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-top: .6rem; border-top: 1px solid #dee2e6; font-size: 14px; }
.forecaster-lines-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; margin-right: .2rem; }
.forecaster-line-chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #dee2e6; border-radius: 999px; padding: .1rem .5rem .1rem .4rem; background: #fff; color: #2d2c2f; }
.forecaster-line-chip .fo-chart-swatch { margin-right: 0; }
.forecaster-line-chip-name { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; outline: 0; }
.forecaster-line-chip[data-line-tags] { cursor: pointer; }
.forecaster-line-chip[data-line-tags]:hover .forecaster-line-chip-name, .forecaster-line-chip-name.active { color: #e91e63; }
.forecaster-line-chip-remove { border: 0; background: none; color: #495057; padding: 0 .1rem; line-height: 1; cursor: pointer; font-size: 12px; }
.forecaster-line-chip-remove:hover { color: #e91e63; }
/* The ring on a kept scenario puts it in the numbers; the one in them is filled in. */
.forecaster-line-chip-graph { border: 0; background: none; padding: 0 .1rem; line-height: 1; font-size: 12px; color: #adb5bd; cursor: pointer; }
.forecaster-line-chip-graphed { color: #250d47; }
.forecaster-line-chip-graph:hover { color: #e91e63; }
.forecaster-line-chip-graph:disabled { cursor: default; color: #250d47; }
.forecaster-line-chip-use { border: 0; background: none; padding: 0 .1rem; line-height: 1; font-size: 12px; color: #495057; cursor: pointer; }
.forecaster-line-chip-use:hover, .forecaster-line-chip-on .forecaster-line-chip-use { color: #e91e63; }
.forecaster-line-chip-on { background: #cfe2ff; border-color: #250d47; }
.forecaster-line-colors { display: inline-flex; align-items: center; gap: .25rem; }
.forecaster-line-color { width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.forecaster-line-color:hover, .forecaster-line-color-on { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #250d47; }
.forecaster-line-chip-edit { border: 1px solid #dee2e6; border-radius: .375rem; padding: .25rem .4rem; background: #fff; }
.forecaster-line-add { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.forecaster-line-add .forecaster-input { width: 220px; max-width: 220px; height: 29px; }
/* The row wraps rather than squeezing a button below its label (it read "ADD TO PL…", 2026-10-21). */
.forecaster-lines .btn, .forecaster-line-add .forecaster-input { flex-shrink: 0; white-space: nowrap; }
.forecaster-line-hint { font-size: 14px; color: #495057; }
.forecaster-line-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
.forecaster-line-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: 12px; font-weight: 600; color: #250d47; margin: 0; cursor: pointer; }
.forecaster-line-chip-same { border-color: #e91e63; box-shadow: 0 0 0 2px rgba(233, 30, 99, .15); }
/* Budget vs actual: a closed month opens on its budget; the variance sits under the actual. */
.forecaster-cell-bva { cursor: pointer; }
.forecaster-cell-bva:hover { background: #e7f1ff !important; }
.forecaster-cell-var { display: block; font-size: 14px; line-height: 1.2; color: #495057; }
.forecaster-popover-bva { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .1rem .3rem .35rem; font-variant-numeric: tabular-nums; }
.forecaster-popover-bva > div { display: flex; flex-direction: column; }
.forecaster-popover-bva .forecaster-cell-var { display: inline; font-size: 14px; font-weight: 600; }
.forecaster-popover-source { font-size: 14px; color: #495057; margin: 0 .3rem .4rem; }
.forecaster-popover-sub { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; margin: .35rem .3rem .1rem; }
.forecaster-popover-static { cursor: default; }
/* Every number explains itself (Forecaster, 2026-10-23): the cells and tiles open one popover with the
   formula and its inputs; an input opens its own explanation in place (Back returns). */
.forecaster-explainable { cursor: pointer; }
td.forecaster-explainable:hover, td.forecaster-explainable:focus-visible { background: #e7f1ff; outline: none; }
.forecaster-tile.forecaster-explainable:hover, .forecaster-tile.forecaster-explainable:focus-visible { border-color: #e91e63; outline: none; }
.forecaster-popover.forecaster-explain { max-width: 440px; min-width: 300px; }
.forecaster-explain-value { display: flex; align-items: center; gap: .5rem; margin: 0 .3rem .15rem; font-size: 14px; font-variant-numeric: tabular-nums; color: #2d2c2f; }
.forecaster-explain-formula { font-size: 14px; color: #495057; margin: 0 .3rem .35rem; }
.forecaster-explain-terms { border-top: 1px solid #eef0f3; padding-top: .2rem; }
a.forecaster-popover-row { text-decoration: none; }
a.forecaster-popover-row:hover { color: #2d2c2f; }
.forecaster-explain-note { font-size: 14px; color: #495057; margin: .35rem .3rem 0; line-height: 1.4; }
.forecaster-explain-back { border: 0; background: none; padding: 0 .3rem; margin-bottom: .2rem; font-size: 14px; font-weight: 600; color: #250d47; cursor: pointer; }
.forecaster-explain-back:hover { color: #e91e63; }
#fc-pl-lines { margin-bottom: .25rem; }
.forecaster-change-comment { vertical-align: baseline; }
.forecaster-changes-table .forecaster-col-comment { width: 2.2rem; padding-left: .25rem; padding-right: .25rem; text-align: center; }
.forecaster-changes-table .forecaster-change-account { color: #495057; }
.forecaster-sortable { cursor: pointer; user-select: none; }
.forecaster-sortable:hover { text-decoration: underline; }
.forecaster-tabs-row { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; border-bottom: 1px solid #dee2e6; }
.forecaster-tabs-row > .nav-tabs { border-bottom: 0; flex: 0 0 auto; }
.forecaster-tab-actions { display: flex; align-items: center; gap: .4rem; flex: 1 1 32rem; padding-bottom: .35rem; }
.forecaster-icon-btn { width: 29px; padding-left: 0; padding-right: 0; }
.forecaster-ai-form { display: flex; align-items: center; gap: .4rem; flex: 1 1 auto; }
.forecaster-ai-box { flex: 1 1 auto; max-width: none; min-width: 14rem; }
.forecaster-tab-actions .btn { white-space: nowrap; flex-shrink: 0; }
.forecaster-changes-kind { display: flex; align-items: center; }
.forecaster-tab-note { text-align: right; min-height: 0; margin-top: .25rem; }
.forecaster-tab-note:empty { display: none; }
.forecaster-chat { margin-top: .5rem; }
/* No thread yet: the empty chat would still draw its rule and padding, a band of blank page under the tabs. */
.forecaster-chat:not(:has(.closer-note-chat-panel, .closer-note-chat-header > *)) { display: none; }
.forecaster-actuals { margin-top: .75rem; padding-top: .5rem; border-top: 1px solid #dee2e6; }
.forecaster-actuals-find { display: flex; gap: .4rem; align-items: center; margin: .4rem 0; }
.forecaster-actuals-find .fo-check-search-box { flex: 1; }
.forecaster-actuals-table { margin-bottom: .25rem; }
.forecaster-actuals-table td { vertical-align: middle; }
.forecaster-popover.forecaster-explain-wide { max-width: 640px; }
.forecaster-explain-table-wrap { border-top: 1px solid #eef0f3; padding-top: .25rem; margin: 0 .3rem; overflow-x: auto; }
.forecaster-explain-table { width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; border-collapse: collapse; }
.forecaster-explain-table th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; text-align: right; padding: .15rem .4rem; white-space: nowrap; }
.forecaster-explain-table td { text-align: right; padding: .15rem .4rem; color: #2d2c2f; white-space: nowrap; border-top: 1px solid #f1f2f4; }
.forecaster-explain-table td.forecaster-explain-acct { text-align: left; white-space: normal; min-width: 12rem; }
.forecaster-explain-table td a { color: #2d2c2f; text-decoration: none; }
.forecaster-explain-table td a:hover { color: #e91e63; }
.forecaster-explain-table td.forecaster-cell-neg, .forecaster-explain-table td.forecaster-cell-neg a { color: #dc3545; }
.forecaster-explain-table .forecaster-explain-avg { font-weight: 600; }
.forecaster-months-tip-host { position: relative; cursor: default; outline: 0; text-decoration: underline dotted; text-underline-offset: 2px; }
.forecaster-months-tip { display: none; position: fixed; z-index: 1090; min-width: 220px; padding: .5rem .65rem; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem; box-shadow: 0 4px 16px rgba(37, 13, 71, .18); font-weight: 400; text-align: left; white-space: normal; }
.forecaster-months-tip-host:hover .forecaster-months-tip, .forecaster-months-tip-host:focus .forecaster-months-tip, .forecaster-months-tip-host:focus-within .forecaster-months-tip { display: block; }
.forecaster-months-tip .closer-eyebrow { display: block; margin-bottom: .25rem; }
.forecaster-months-tip-row { display: flex; justify-content: space-between; gap: 1.5rem; padding: .05rem 0; color: #2d2c2f; font-size: 14px; white-space: nowrap; }
.forecaster-name-changes { border: 0; background: none; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.forecaster-name-changes:hover { color: #e91e63; }
.forecaster-week-lines { padding: .25rem .3rem; max-height: 360px; overflow-y: auto; }
.forecaster-weeks-tools { margin-bottom: .6rem; }
.forecaster-weeks-group { padding: .35rem .75rem .15rem; }
.forecaster-week-who { margin: 0 0 .25rem .75rem; padding-left: .5rem; border-left: 2px solid #dee2e6; color: #495057; }
.forecaster-week-who .forecaster-months-tip-row { color: #495057; }
.forecaster-months-tip-total { margin-top: .25rem; padding-top: .25rem; border-top: 1px solid #dee2e6; font-weight: 600; }
.forecaster-explain-total td { font-weight: 600; border-top: 1px solid #250d47; }
.forecaster-explain-total td:first-child { text-align: left; }
.forecaster-explain-cell { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.forecaster-explain-cell:hover { color: #e91e63; }
/* What changed and the board deck: dark-headed blocks like the charts. */
.forecaster-history-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1.25rem; margin-bottom: .75rem; }
.forecaster-history-controls .fo-combobox { min-width: 16rem; }
.forecaster-block { margin-bottom: 1rem; }
.forecaster-block-head { gap: .75rem; }
.forecaster-block-head .btn-group .btn { margin-bottom: 0; }
.forecaster-block-body { border: 1px solid #dee2e6; border-top: 0; border-radius: 0 0 .375rem .375rem; padding: .6rem; background: #fff; }
.forecaster-block-body.forecaster-table-wrap { padding: 0; }
.forecaster-compare-head { font-size: 14px; margin-bottom: .6rem; }
.forecaster-compare-tiles { margin-bottom: .75rem; }
.forecaster-compare-pair { font-size: 14px; font-variant-numeric: tabular-nums; }
.forecaster-table-text td.forecaster-cell-text, .forecaster-table td.forecaster-cell-text { text-align: left; }
.forecaster-table-text th { text-align: left; }
.forecaster-table-text td.forecaster-col-label { border-right: 0; }
.forecaster-snapshot-actions { display: flex; gap: .3rem; justify-content: flex-end; }
.forecaster-diff { display: flex; flex-direction: column; gap: .75rem; }
.forecaster-diff-section .closer-eyebrow { display: block; margin-bottom: .3rem; }
.forecaster-diff-fields td { background: #faf7ff !important; text-align: left !important; white-space: normal !important; }
.forecaster-diff-field { display: inline-flex; align-items: center; gap: .3rem; margin-right: 1.25rem; font-size: 14px; }
.forecaster-link-button { border: 0; background: none; padding: 0; color: #250d47; text-align: left; font-size: 12px; cursor: pointer; }
.forecaster-link-button:hover { color: #e91e63; }
/* The deck's tables: dark heads for closed periods, blue for forecast ones (the board decks' look). */
.forecaster-deck-body { display: flex; flex-direction: column; gap: .75rem; overflow-x: auto; }
.forecaster-deck-table { min-width: 0; border: 1px solid #dee2e6; }
.forecaster-deck-table th { position: static; }
.forecaster-table th.forecaster-deck-forecast { background: #1A73E8; }
.forecaster-table th.forecaster-deck-actual, .forecaster-table th.forecaster-deck-corner { background: #250d47; }
.forecaster-deck-table th.forecaster-col-label { min-width: 230px; }
.forecaster-table tr.forecaster-deck-old td { color: #1A73E8; font-style: italic; }
.forecaster-table td.forecaster-deck-na { background: #e9ecef; }
.forecaster-table tr.forecaster-deck-delta td { font-size: 14px; }
.forecaster-deck-lines { font-size: 14px; margin-bottom: .75rem; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.forecaster-deck-lines-edit { padding: .75rem; border-radius: .375rem; margin-bottom: .75rem; }
.forecaster-deck-lines-edit .forecaster-table-wrap { max-height: 40vh; }
.forecaster-deck-lines-actions { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
/* Diff (forecaster-diff.js): the pill's row under the tabs, the tables framed while they read newer −
   older, and what moved a cell (each input: then → now, the difference, and what happened to it). */
/* A snapshot opened: the bar across the top of the page, and the snapshot's name on the version menu. */
.forecaster-snapshot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.forecaster-snapshot-bar .closer-fin-diff-pill { padding-right: .65rem; white-space: normal; }
.forecaster-snapshot-bar .closer-fin-diff-pill-text { font-weight: 400; }
.forecaster-snapshot-dd-label { display: inline-block; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* The Forecaster version menu's line under Save new snapshot: what a save, rename or delete did (Jesse, 2026-11-05). */
.forecaster-snapver-note { grid-column: 1 / -1; padding: 0 .9rem .35rem; font-size: 14px; }
.forecaster-restore-summary { font-size: 14px; color: #2d2c2f; }
.forecaster-restore-summary p { font-size: 14px; font-weight: 400; margin-bottom: .6rem; }
.forecaster-diff-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.forecaster-diff-bar[hidden] { display: none; }
.forecaster-diffmode .forecaster-table-wrap { border: 1px dashed #1A73E8; }
.forecaster-diff-was { color: #495057; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.forecaster-explain-value .forecaster-diff-was { font-size: 14px; }
.forecaster-popover-row .forecaster-diff-was { margin-left: auto; }
.forecaster-popover-row .forecaster-diff-was + .amt { margin-left: .5rem; min-width: 4.5rem; text-align: right; }
.forecaster-diff-story { font-size: 14px; color: #495057; margin: 0 .3rem .2rem 1rem; line-height: 1.4; }
/* The Desk as a modal over any page (templates/desk_board/includes/modal.html, 2026-10-12): the
   chat modal's width and the window's height, the tabs and filters fixed at its top and the rows
   scrolling in the body under their pinned header. */
.desk-board-modal .modal-dialog { max-width: 96vw; }
.desk-board-modal .modal-content { height: calc(100vh - 3.5rem); }
.desk-board-modal:focus { outline: none; }
.desk-board-modal .modal-title, .desk-board-confirm .modal-title { font-size: 14px; font-weight: 700; color: #250d47; }
/* The bulk bar's confirmation, drawn over the page or over the Desk modal: above both. */
.desk-board-confirm-backdrop { z-index: 1060; }
.desk-board-confirm { z-index: 1065; }
.desk-board-in-modal { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.desk-board-in-modal > .modal-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.desk-board-in-modal .desk-board-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.desk-board-in-modal .fo-check-table > thead > :where(tr) > th { top: 0; }

/* ---------------------------------------------------------------------------
   MRR & ARR dashboard (/subscriptions/metrics/mrr/, superusers + finoptimal-firm dashboard grants)
   --------------------------------------------------------------------------- */
.mrr-dashboard { padding: 1rem 1.25rem 2rem; color: #2d2c2f; font-size: 14px; }
.mrr-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.mrr-title { font-size: 20px; font-weight: 600; color: #250d47; margin: 0; }
.mrr-subtitle { font-size: 14px; font-weight: 400; color: #495057; margin: .25rem 0 0; max-width: 52rem; }
.mrr-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.mrr-controls .form-select { min-width: 11rem; }
.mrr-note { font-size: 14px; font-weight: 400; color: #495057; }
.mrr-error { color: #dc3545; font-size: 14px; padding: 1rem 0; }
.mrr-card { margin-bottom: 1rem; }
.mrr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.mrr-kpi .card-body { padding: .6rem .8rem; }
.mrr-kpi-value { font-size: 22px; font-weight: 600; color: #250d47; }
.mrr-kpi-sub { font-size: 14px; color: #495057; }
.mrr-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); gap: 1rem; }
.mrr-grid-2 > .mrr-card { min-width: 0; }
.mrr-grid-top { align-items: start; }
/* Nowrap headers and amounts must not shrink below their text and paint into
   the next card. The table stays as wide as its columns (and at least as wide
   as the card); the wrapper scrolls instead of the card growing. */
.mrr-table-x, .mrr-table-scroll { overflow: auto; max-width: 100%; min-width: 0; }
.mrr-table-x > .mrr-table,
.mrr-table-scroll > .mrr-table,
.mrr-subrow-inner .mrr-table,
#mrr-drill-modal .mrr-table { width: max-content; min-width: 100%; }
.mrr-chart svg { width: 100%; height: auto; display: block; }
.mrr-legend { font-size: 14px; color: #495057; margin-top: .25rem; }
.mrr-swatch { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin: 0 .3rem 0 .75rem; }
.mrr-swatch:first-child { margin-left: 0; }
.mrr-swatch-contract { background: #250d47; }
.mrr-swatch-accrual { background: #1A73E8; }
.mrr-swatch-up { background: #198754; }
.mrr-swatch-down { background: #e91e63; }
.mrr-swatch-goal { background: #1A73E8; }
.mrr-grid-line { stroke: #eceef1; }
.mrr-zero-line { stroke: #adb5bd; }
.mrr-axis { font-size: 14px; fill: #495057; }
.mrr-line-contract { fill: none; stroke: #250d47; stroke-width: 2.5; }
.mrr-line-accrual { fill: none; stroke: #1A73E8; stroke-width: 2; stroke-dasharray: 5 4; }
.mrr-dot { fill: #250d47; }
.mrr-dot-selected { fill: #e91e63; }
.mrr-bar-up { fill: #198754; }
.mrr-bar-down { fill: #e91e63; }
.mrr-bar-selected { stroke: #250d47; stroke-width: 2; }
.mrr-goal-line { stroke: #1A73E8; stroke-width: 2; stroke-dasharray: 5 4; }
.mrr-table { font-size: 14px; }
.mrr-table > thead > tr > th { top: 0; white-space: nowrap; }
.mrr-table td { padding: .35rem .5rem; vertical-align: middle; }
.mrr-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fo-check-table th.mrr-num { text-align: right; }
.mrr-count { color: #495057; font-weight: 400; }
.mrr-clickable { cursor: pointer; }
.mrr-clickable:hover > td { background: #e7f1ff; }
.mrr-row-selected > td { background: #cfe2ff; font-weight: 600; }
.mrr-row-total > td { font-weight: 600; border-top: 2px solid #250d47; }
.mrr-table-scroll { max-height: 26rem; overflow: auto; }
.mrr-table-tall { max-height: 40rem; }
/* Outside the modal's scrolling body, so it stays put above a long list. */
.mrr-drill-search { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; padding: .75rem 1.5rem; }
/* No padding above the list's pinned header, or rows show through it as they scroll. */
.mrr-drill-search:not(.d-none) + .modal-body { padding-top: 0; }
.mrr-subrow > td { background: #fbfafc; padding: .5rem .75rem 1rem 1.75rem; }
.mrr-lines { background: #fff; }
.mrr-ref { font-size: 14px; color: #495057; }
.mrr-caret-open { transform: rotate(90deg); }
/* MRR dashboard drills and movement colours (Bootstrap success / danger shades). */
.mrr-drill { cursor: pointer; border-bottom: 1px dotted currentColor; }
.mrr-drill:hover, .mrr-drill:focus { color: #e91e63; border-bottom-color: #e91e63; outline: none; }
.mrr-svg-click { cursor: pointer; }
.mrr-svg-click:hover { opacity: .8; }
.mrr-fill-new { fill: #198754; background: #198754; }
.mrr-fill-reactivation { fill: #a3cfbb; background: #a3cfbb; }
.mrr-fill-expansion { fill: #0f5132; background: #0f5132; }
.mrr-fill-downgrade { fill: #ea868f; background: #ea868f; }
.mrr-fill-churn { fill: #dc3545; background: #dc3545; }
.mrr-fill-total { fill: #250d47; }
.mrr-swatch-box { display: inline-block; width: 10px; height: 10px; vertical-align: middle; margin: 0 .3rem 0 .75rem; border-radius: 2px; }
.mrr-swatch-box:first-child { margin-left: 0; }
.mrr-swatch-net { background: #250d47; }
.mrr-net-line { fill: none; stroke: #250d47; stroke-width: 2; }
.mrr-net-dot { fill: #250d47; }
.mrr-bar-label { font-size: 14px; font-weight: 600; fill: #2d2c2f; }
.mrr-axis-selected { font-weight: 700; fill: #e91e63; }
.mrr-goal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.mrr-hist { width: 100%; height: auto; display: block; max-height: 90px; }
.mrr-hist-bar { fill: #250d47; opacity: .7; }
.mrr-hist-bar-selected { fill: #e91e63; opacity: 1; }
.mrr-hist-table td, .mrr-hist-table th { font-size: 11px; padding: .2rem .35rem; }
/* Pipeline stages, early to late: the brand colours alternated (lilac, blue,
   purple, pink) so neighbouring stages are told apart at a glance. */
.mrr-stage-0 { fill: #d9d2e4; background: #d9d2e4; }
.mrr-stage-1 { fill: #9ec2f2; background: #9ec2f2; }
.mrr-stage-2 { fill: #9a7cc4; background: #9a7cc4; }
.mrr-stage-3 { fill: #f4a3c0; background: #f4a3c0; }
.mrr-stage-4 { fill: #1A73E8; background: #1A73E8; }
.mrr-stage-5 { fill: #5b2f96; background: #5b2f96; }
.mrr-stage-6 { fill: #e91e63; background: #e91e63; }
.mrr-stage-7 { fill: #250d47; background: #250d47; }
/* SaaS Metrics tabs: the month picker is the MRR tab's; promotions also drive Churn Analysis. */
.mrr-dashboard:not(.mrr-on-mrr) [data-control="month"],
.mrr-on-hubspot [data-control="promos"],
.mrr-on-pipeline [data-control="promos"] { display: none; }
.mrr-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem; margin: 1.5rem 0 .75rem; }
.mrr-section-title { font-size: 16px; font-weight: 600; color: #250d47; margin: 0; }
/* Chart bands beyond the stage palette: everything else, and "none / no record". */
.mrr-band-other { fill: #adb5bd; background: #adb5bd; }
.mrr-band-none { fill: #e9ecef; background: #e9ecef; stroke: #ced4da; }
.mrr-swatch-box.mrr-band-none { border: 1px solid #ced4da; }
/* Churn Analysis "How complete is this?": one bar split by share. */
.mrr-strip { display: flex; height: 22px; border-radius: 4px; overflow: hidden; margin: .25rem 0; }
.mrr-strip > div { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; min-width: 2px; }
.mrr-strip > .mrr-band-none, .mrr-strip > .mrr-band-other, .mrr-strip > .mrr-stage-0, .mrr-strip > .mrr-stage-1, .mrr-strip > .mrr-stage-3 { color: #2d2c2f; }
/* A long note in a deal list: two lines until clicked. */
.mrr-clamp { cursor: pointer; max-width: 22rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.mrr-clamp-open { display: block; -webkit-line-clamp: unset; }
.mrr-day-hit { fill: transparent; }
.mrr-day-hit:hover { fill: rgba(233, 30, 99, .12); }
.mrr-dot-accrual { fill: #1A73E8; }
.mrr-table > thead > tr > th { cursor: pointer; user-select: none; }
.mrr-hist-table > thead > tr > th { cursor: default; }
.mrr-sort-icon { font-size: 10px; }
/* An expanded row's detail scrolls inside the row instead of widening the table. */
.mrr-subrow-inner { width: 0; min-width: 100%; overflow-x: auto; }
/* Closer ▸ Checks: each check's name at 14px (Christopher, 2026-10-09). Its description and the
   tab's intro are ⓘ hints now (Jesse, 2026-10-13); .fo-check-desc is the system map's help line. */
.fo-check-label { font-size: 14px; }
.fo-check-desc { font-size: 14px !important; }
/* The catalog rollup ("27 of 30 checks running") at 12px; the Last run line in body ink. */
.fo-check-summary { font-size: 14px !important; }
#check-last-run { color: #2d2c2f; }
/* Closer ▸ Checks: the Findings count is the app's 10px chip (frontend.md), as the Cadence chip
   beside it — it ran at .8rem (Christopher, 2026-10-09). */
.fo-findings-toggle.closer-pill { font-size: 12px; padding: .2rem .6rem; line-height: 1.1; }
.fo-findings-toggle svg { font-size: 10px; }
/* Findings pill and "n dismissed": the app's expand chevron, in the link's colour, down while open. */
.fo-findings-toggle .closer-task-section-caret { color: inherit; margin-left: .15rem; }
.fo-findings-toggle[aria-expanded="true"] .closer-task-section-caret { transform: rotate(90deg); }
.fo-dismissed-toggle .closer-task-section-caret, .fo-addressed-toggle .closer-task-section-caret, .fo-assigned-toggle .closer-task-section-caret, .fo-off-toggle .closer-task-section-caret { margin: 0 .3rem 0 0; }   /* leads the text, as a section's chevron */
/* Closer ▸ a check's findings (Christopher, 2026-10-09):
   - the Move to / item picker's panel paints over the rows below it (it sat under them at z 20);
   - findings rows and Include all at 12px; the bare 14px checkbox (fo-check-bare) is the markup's;
   - the bulk bar: instruction input as the app's inputs (29px, 12px, lightgray), assign-to the
     plain app dropdown (fo-combobox, in the markup), Assign the standard button (markup). */
.fo-fix-combo { position: relative; }
.fo-fix-combo .rec-combo-panel { z-index: 1060; }
.fo-fix-combo .rec-combo-search-box { margin: .3rem; }
.fo-fix-combo .rec-combo-search-box .rec-combo-search { margin: 0; width: 100%; }
.fo-finding-list th, .fo-finding-include-all, .fo-finding-include-all label { font-size: 12px; }
.fo-finding-list, .fo-finding-list :is(td, label, span, a) { font-size: 14px; }
.fo-finding-list td, .fo-finding-list td :is(label, span, a):not(.closer-pill) { font-size: 14px; }   /* table data at 14px (Christopher, 2026-11-10) */
.fo-finding-bulkbar .fo-finding-instruction {
    height: 29px; font-size: 14px; color: #2d2c2f; background: #fff;
    border: 1px solid lightgray; border-radius: .375rem; padding: 0 8px;
}
.fo-finding-bulkbar .fo-combobox { min-width: 12rem; }
/* A vendor-coding finding: its evidence tables start on the finding name's text edge (the cell's own
   .45rem, not 1.25rem more), and sit right under the name — no rule, no top padding, no margin. */
.fo-vc-grid-row > td { padding-left: .45rem !important; padding-top: 0 !important; border-top: 0 !important; }
.fo-vc-grid-row .fo-vc-grid { margin-top: 0; }
/* A dismissed finding's row, a grid so every row's cells line up: dot + subject | 💬 + the why |
   Undismiss. Each cell wraps on its own; both text cells left-aligned, 12px. */
.fo-dismissed-list .fo-finding-dismissed {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) var(--fo-undismiss-col, auto);   /* the var: alignUndismiss, Run's left edge */
    align-items: start; column-gap: 1rem; font-size: 14px;   /* first lines level across the cells */
}
.fo-dismissed-list .fo-finding-dismissed :is(.fo-finding-subject, .fo-dismiss-note) { font-size: 14px; }
.fo-dismissed-list .fo-finding-dismissed .fo-finding-actions { margin: 0; display: flex; align-items: center; }
/* The why: the 💬 in a first-line-tall box so it centres on the first line, as the dot does. */
.fo-dismiss-why { display: flex; align-items: flex-start; gap: .4rem; min-width: 0; }
.fo-dismiss-why > .fo-finding-comment-btn { flex: none; height: 1lh; margin: 0; display: inline-flex; align-items: center; }
.fo-dismiss-why > .fo-dismiss-note { margin-left: 0; }
/* A severity dot INSIDE its subject: on the first line, centred on the caps (pixel-checked), the
   wrapped lines hanging under the text rather than under the dot. */
.fo-finding-subject:has(> .fo-finding-dot) { padding-left: 1.05rem; text-indent: -1.05rem; }
.fo-finding-subject > .fo-finding-dot { display: inline-block; vertical-align: middle; margin-right: .5rem; text-indent: 0; position: relative; top: -1px; }
/* Closer ▸ a check's settings drawer (Christopher, 2026-10-09): every setting box the same height
   (the row stretches them); the box labels dark purple in
   their own casing, the notes 12px; the number inputs as the app's inputs (29px, 12px, lightgray). */
.fo-check-settings-form { align-items: stretch !important; }
/* The buttons — Save, Turn off / on, Clear, Cancel — on their own line under the boxes. */
.fo-check-settings-form > .fo-check-save-row { flex: 0 0 100%; display: flex; align-items: center; gap: .5rem; }
.fo-check-save-row > .btn { margin: 0; }
.fo-check-param-label { color: #250d47; font-size: 14px; font-weight: 600; }
.fo-check-param-input {
    height: 29px; font-size: 14px; color: #2d2c2f; background: #fff;
    border: 1px solid lightgray; border-radius: .375rem; padding: 0 8px;
}
.fo-check-param .fo-combobox { min-width: 12rem; }
/* Closer's card titles ("What Closer checks on these books", "Monthly Review", …): the card title's 16px, one size for all. */
.closer-section-head > h3 { font-size: 16px !important; }
/* Closer's tab strip 8px under the title row, not Bootstrap's mt-3 16px (2026-10-09). */
#closer-home-subtabs.mt-3 { margin-top: .5rem !important; }
/* Closer findings drawer, round 2 (Christopher, 2026-10-09):
   - "Include all" in the app's label style (12px caps dark purple), its checkbox centred on it;
   - a finding's title row centred on its checkbox; its 💬 sits after the title (markup);
   - the transaction's second line (bank text) in body ink, not muted;
   - the per-finding note input as the app's inputs. */
.fo-finding-include-all label {
    display: inline-flex; align-items: center; gap: 6px; margin: 0;
    color: #250d47; font-size: 12px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.fo-finding-include-all label .form-check-input { margin: 0; float: none; }
:is(.fo-vc-head, .fo-taxcode-head) > td { vertical-align: middle !important; }
.fo-finding-row > td:first-child .fo-finding-pick { margin: 0; vertical-align: middle; float: none; }
.fo-vc-subject .rec-divide-comment-btn, .fo-taxcode-subject .rec-divide-comment-btn { margin: 0 .4rem 0 0; }   /* the 💬 leads the title */
.fo-bank-text { color: #2d2c2f !important; white-space: normal; overflow-wrap: break-word; }   /* wraps under its transaction, which is a nowrap cell */
input.fo-finding-note {
    height: 29px; font-size: 14px; color: #2d2c2f; background: #fff;
    border: 1px solid lightgray; border-radius: .375rem; padding: 0 8px;
}
/* The settings drawer's buttons all the standard small button (29px, 6px 16px) — Turn off / on and
   Clear shared the compact row-Run size (.fo-check-toggle-btn / .fo-check-clear-btn). */
.fo-check-save-row :is(.fo-check-toggle-btn, .fo-check-clear-btn) { padding: 6px 16px; font-size: 12px; height: 29px; }
/* Dismiss / Undismiss are real buttons now: the standard small button (29px, 6px 16px, 12px), not
   the compact link size .fo-check-clear-btn gives the text-link Clears (Christopher, 2026-10-09). */
.btn.fo-check-clear-btn[class*="btn-outline-"] {
    padding: 6px 16px; font-size: 12px; height: 29px; display: inline-flex; align-items: center;
}
/* A finding's other buttons the same: one line each, never squeezed onto two beside a wide preview
   (Jesse, 2026-10-22: "make all the buttons the same height!"). */
.fo-finding-row :is(.fo-finding-fix-btn, .fo-finding-doit-btn, .fo-finding-doit-link),
.fo-finding-row .fo-skip-menu > summary {
    padding: 6px 16px; font-size: 12px; height: 29px; display: inline-flex; align-items: center;
    white-space: nowrap; margin-bottom: 0;
}
.fo-finding-btns { flex: 0 1 auto; display: flex; align-items: center; gap: .5rem; }
.fo-finding-btns > :not(.fo-finding-note) { flex: 0 0 auto; }
.fo-finding-btns .fo-finding-note { min-width: 8rem; }
.fo-finding-btns .fo-finding-actions { display: flex; }
.fo-finding-btns .fo-skip-menu { margin-left: 0; }
/* Its icon on the text's centre line: the glyph's own line box sat it low beside the caps label. */
.btn.fo-check-clear-btn[class*="btn-outline-"] > i { line-height: 1; display: inline-block; }
/* Closer's Move-to / item picker panel: on <body>, fixed under its trigger (script places it). */
.rec-combo-panel.fo-fix-combo-panel { position: fixed; z-index: 1060; }
.fo-fix-combo-panel .rec-combo-search-box { margin: .3rem; }
.fo-fix-combo-panel .rec-combo-search-box .rec-combo-search { margin: 0; width: 100%; }
/* A finding's pick checkboxes — row and Include all — the app's 14px, not 1.23em of whatever font. */
:is(.fo-finding-pick, .fo-finding-pick-all).form-check-input { width: 14px !important; height: 14px !important; }
/* Entry rows: top-aligned (a transaction's second line hangs below); a row with the Move to picker
   and Apply is centred on them, since they set its height. */
.fo-vc-entries > tbody > tr > td { vertical-align: top; }
.fo-vc-entries > tbody > tr:has(.fo-fix-combo) > td { vertical-align: middle; }
/* A check with two drawers open (settings, then findings / dismissed): a rule between them. */
.fo-check-expand:not([hidden]) ~ .fo-check-expand:not([hidden]) > td { border-top: 1px solid #dee2e6 !important; }
/* Closer's status-light popovers (Bank Recs / Checks / Workflows): title 14px, everything else 12px
   (Christopher, 2026-10-09). */
.popover.closer-light-pop .popover-header { font-size: 14px !important; }
.popover.closer-light-pop .popover-body,
.popover.closer-light-pop .popover-body :is(p, li, a, span, div, strong, em) { font-size: 14px !important; }
.popover.closer-light-pop .popover-body .closer-pill { font-size: 12px !important; }
/* The findings drawer's instruction bar starts on its tables' left edge where the findings are a
   table. */
.fo-check-expand:has(.fo-vc-head) .fo-finding-bulkbar { margin-left: 40px; }   /* fallback; alignBulkbars measures it on open */
/* An open drawer, lined up on the check's status icon (Christopher, 2026-10-22): its sub-title
   (Findings / Settings / Dismissed) on the collapse chevron's line, then Include all, the findings
   and the instruction bar, all starting under the green check — the row's drag handle (.8rem), its
   .45rem margin and the head's .35rem gap in. */
.fo-check-drawer-title { font-size: 14px; font-weight: 600; line-height: 18px; color: inherit; }
.fo-check-expand :is(.fo-finding-include-all, .fo-finding-list, .fo-finding-bulkbar, .fo-udfwo-strip) { margin-left: 1.6rem; }   /* the write-off strip too (Christopher, 2026-11-12) */
/* The findings table's pick column only as wide as its checkbox (+ its chips / 💬), so the title
   sits close to the box — it was a fixed 2.5rem. */
.fo-vc-list .fo-vc-head > td:first-child, .fo-fix-table .fo-finding-row > td:first-child { width: 1% !important; white-space: nowrap; padding-right: .35rem !important; }
.fo-vc-list .fo-vc-head > td:first-child, .fo-vc-list .fo-vc-grid-row > td:first-child { padding-left: 0 !important; }
/* The findings table keeps its 1.35rem left indent INSIDE the drawer's width — at 100% wide plus
   the margin it ran 22px past the checks box and put a sideways scrollbar under every open drawer. */
.fo-check-expand .fo-finding-list { width: calc(100% - 1.6rem); }
/* A finding's title row: the checkbox and 💬 centred on the title's text (measured 1.5 / 0.8px low). */
.fo-vc-head .fo-finding-pick { position: relative; top: -1.5px; }
.fo-vc-head .fo-finding-comment-btn { position: relative; top: -.8px; }
/* "Include all" 8px under the rule above it, not 1px. */
.fo-check-expand .fo-finding-include-all { padding-top: 8px; }
/* The NEW / off-pattern badges in a finding's grid as the app's chips (10px, pill, caps) — amber NEW,
   the quiet lavender for off-pattern — not their own square badges (Christopher, 2026-10-09). */
.fo-vc-new-badge, .fo-vc-off-badge {
    display: inline-block; padding: .2rem .6rem; border-radius: 999px; line-height: 1.1;
    font-size: 12px !important; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; margin-left: .35rem;
}
.fo-vc-new-badge { background: #fff3e0; color: #b26a00; }
.fo-vc-off-badge { background: #ece9f1; color: #250d47; }
/* The settings drawer's boxes on white; its grey area ruled off from the check row above it. */
.fo-check-param { background: #fff !important; }
.fo-check-expand[id^="settings-"]:not([hidden]) > td { border-top: 1px solid #dee2e6 !important; }
/* Closer ▸ Questions: a question's text, its internal note and the client's answer at 12px; the tag
   chips keep the 10px chip size (Christopher, 2026-10-09). */
.fo-cq-question-cell, .fo-cq-question-cell :is(div, span, p, a, label):not(.closer-pill) { font-size: 14px !important; }
.fo-cq-question-cell .closer-pill { font-size: 12px !important; }
/* Financials' account finder in the app's boxed search: its match count where the shortcut chip sits. */
.closer-fin-findbox { margin: 0; width: 100%; }
.closer-fin-findbox .closer-fin-find-count { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-size: 12px; color: #9a8fb0; pointer-events: none; }
/* Closer ▸ General Ledger toolbar (Christopher, 2026-10-09): the title 14px with its month 12px; the
   search the app's boxed search (its match count at the right); the two line filters as the site's
   link — dark purple, hot pink on hover, 12px — with the bare 14px checkbox; buttons in the markup. */
.closer-gl-head .closer-fin-statement-title { font-size: 14px; }
.closer-gl-head .closer-fin-statement-title small { font-size: 14px; color: #495057 !important; }
.closer-gl-findbox { margin: 0; flex: 0 1 26rem; }
.closer-gl-findbox .closer-gl-count { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-size: 12px; color: #9a8fb0; pointer-events: none; }
.closer-gl-head .closer-gl-commented-only {
    display: inline-flex; align-items: center; gap: 5px; margin: 0; cursor: pointer;
    font-size: 14px; font-weight: 600; color: #250d47 !important;
}
.closer-gl-head .closer-gl-commented-only:hover { color: #e91e63 !important; }
.closer-gl-head .closer-gl-commented-only .form-check-input { margin: 0; float: none; width: 14px; height: 14px; }
/* Closer ▸ Map: its heading 16px, every other line of text on the tab 12px (Christopher, 2026-10-09). */
#cpane-map th, #cpane-map .fo-map-star-count { font-size: 12px; }   /* headers and the nodes' count chips */
#cpane-map, #cpane-map :is(p, li, td, span, a, label, div, small, strong, em, h6) { font-size: 14px; }
:is(#cpane-map, #cpane-activity) .card-title { font-size: 16px !important; }   /* Activity's "Who did what in these books" like the Map's title (Christopher, 2026-11-12) */
#cpane-map .closer-pill { font-size: 12px; }
/* Closer ▸ Tasks: ONE rule between collapsible sections and one under the last — the section and its
   summary both drew a top rule (doubled between Scheduled and Active), and nothing closed the last. */
details.closer-task-section, details.closer-task-section > summary.closer-task-section-summary { border-top: 0 !important; border-bottom: 0 !important; }
details.closer-task-section + details.closer-task-section,
details.closer-task-section ~ details.closer-task-section { border-top: 1px solid #dee2e6 !important; }
details.closer-task-section:not(:has(~ details.closer-task-section)) { border-bottom: 1px solid #dee2e6 !important; }
/* "Each period waits for the previous one": the 14px checkbox centred on its words. */
/* The task / schedule editors' checkbox rows (Waits on, Each period waits, Active): 12px words, the
   bare 14px box centred on them. */
label.d-flex:has(> input[type="checkbox"].fo-check-bare) { align-items: center; gap: 6px !important; font-size: 14px; }
label.d-flex:has(> input[type="checkbox"].fo-check-bare) > span { font-size: 14px; }
label.d-flex > input[type="checkbox"].fo-check-bare.form-check-input { margin: 0; float: none; width: 14px; height: 14px; flex: none; }
/* Closer's tab-group labels (CONTINUOUS CLOSE, PERIODIC REVIEW, …) level with the tabs' text: centred
   on the strip, then up the 4px the tabs' own text sits above their box's middle (measured). */
#closer-home-subtabs > .closer-subtabs-grouplabel { align-self: center !important; }   /* caps centred on the tab text's caps (pixel-checked); the old top: -3px sat them ~3px high */
/* Closer ▸ Tasks: each task's (and scheduled template's) name in its collapsed row at 14px, as
   every other tab's card title (TM-2360, Christopher, 2026-11-11). */
#cpane-tasks .closer-note-card .closer-note-subject { font-size: 14px !important; }
/* Closer ▸ Tasks (Christopher, 2026-10-12):
   - the checklist table at 12px;
   - the calendar's Earlier | Today | Later switch with its text centred (it sat 4px high — a flex
     button not centring), at 12px, as Rec Status's months switch;
   - the calendar's range title ("Sep 28 – Dec 7") 14px;
   - the serialize checkbox's stray 5px top margin gone, so it centres on its words. */
.closer-checklist-table, .closer-checklist-table :is(td, th, a, span, div):not(.closer-pill) { font-size: 12px; }
.closer-checklist-table td:not(.closer-pill), .closer-checklist-table td :is(a, span, div):not(.closer-pill) { font-size: 14px; }   /* table data at 14px (Christopher, 2026-11-10) */
/* Segmented toggles, ONE class on the btn-group: .fo-seg-toggle (Details | Checklist | Calendar,
   Earlier | Today | Later). The standard 29px, so a dropdown or button beside one is its height (was
   24px); 12px caps, with 1px more on top: the font box alone sits caps a little high. */
.fo-seg-toggle > .btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2rem; height: 29px; font-size: 12px; line-height: 15px;
    padding: 1px .65rem 0 !important;
}
/* My Desk's All | FO | Zendesk lives in the filter row, whose controls are 29px
   with a white face and a lightgray edge (search, Clear filters, the comboboxes).
   The 24px caps toggle is for a header beside tabs; here the short box, the
   uppercase, and outline-secondary's charcoal fill read as a different control. */
.conversations-filterbar .fo-seg-toggle > .btn {
    height: 29px; padding: 0 .65rem !important; line-height: 1; white-space: nowrap;
    text-transform: none; letter-spacing: normal;
    --bs-btn-color: #666;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: lightgray;
    --bs-btn-hover-color: #250d47;
    --bs-btn-hover-bg: #f4f1f8;
    --bs-btn-hover-border-color: lightgray;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #250d47;
    --bs-btn-active-border-color: #250d47;
    --bs-btn-active-shadow: none;
    box-shadow: none;
}
/* The count is a number beside the word, not part of it: a gap, a hairline,
   and a lighter weight. On the purple segment the hairline and the digits
   are white at lower strength. */
.conversations-filterbar .fo-seg-toggle .conversations-chip-count {
    margin-left: 0.4rem; padding-left: 0.4rem;
    border-left: 1px solid #d0d0d4;
    font-weight: 500; color: #8d8a96;
    font-variant-numeric: tabular-nums;
}
.conversations-filterbar .fo-seg-toggle > .btn.active .conversations-chip-count {
    border-left-color: rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.85);
}
.closer-cal-toolbar .closer-cal-title { font-size: 14px; }
label.d-flex > input[type="checkbox"].fo-check-bare.form-check-input { margin: 0 !important; }
/* The last card in an open Tasks section sits right on the rule below it (its 16px bottom margin
   left a gap above the rule) — 8px, as the section heading row. */
details.closer-task-section > .closer-note-card:last-child { margin-bottom: 8px !important; }   /* as the summary row's 8px, not 16 */
/* Closer ▸ Tasks chevrons in proportion to their text: 12px beside the 14px section headings and
   the 14px task rows alike (Christopher, 2026-10-12; rows to 14px in TM-2360). */
.closer-task-section-summary .closer-task-section-caret { font-size: 14px !important; }
.closer-tab-card .closer-note-subject .closer-row-caret { font-size: 14px !important; }   /* every tab's row chevron is the section chevron's 14px (Christopher, 2026-11-12) */
/* Closer ▸ Tasks: an opened task's body (its description, notes, playbook) at 14px (TM-2360). Its
   chips, caps labels, help lines and buttons keep their own sizes; its Edit dialogs (rendered
   inside the card) are 14px too. */
#cpane-tasks .closer-note-detail, #cpane-tasks .closer-note-detail :is(p, li, div, span, label, a, td, th):not(.closer-pill, .closer-eyebrow, .closer-internal-note-label, .fo-form-hint, .btn, .btn *, .modal, .modal *) { font-size: 14px; }
#cpane-tasks .closer-note-detail .modal { font-size: 14px; }
/* FORM HELP TEXT, app-wide: ONE class, .fo-form-hint — 14px body grey (#495057) (Christopher, 2026-10-12; 14px 2026-11-11),
   on Closer's editors and Reconciler / Bank Data forms alike. Closer's editors (task, schedule, links, firm templates):
   as written, 4px under its field and 10px before the next — and a checkbox row (the bare 14px box
   + its label) whose hint lines up under the label's text (Christopher, 2026-10-12). */
.fo-form-hint {
    font-size: 14px !important; line-height: 1.4; color: #495057 !important;
    text-transform: none; letter-spacing: normal; font-weight: 400;
}
:is(.closer-edit-form, .closer-edit-modal, .closer-tab-card) .fo-form-hint { display: block; margin: 4px 0 10px !important; }
.closer-check-row { display: flex !important; align-items: center; gap: 6px; margin: 0 0 0 4px; }   /* the box on the fields' left edge (they sit 4px in) */
.closer-check-row > input[type="checkbox"] { margin: 0 !important; flex: none; width: 14px; height: 14px; }   /* !important: .form-check-input.s 5px top margin sat it 2.6px low */
.closer-check-row + .fo-form-hint { margin-left: 24px !important; }   /* under the label text: 4px + box 14px + gap 6px */
/* Closer: ONE chip size (Christopher, 2026-10-12). Status, due, skill and count chips measured
   19 / 20 / 21 / 22 / 24px (mixed padding, line-heights and 1px borders); every one is now a fixed
   19px with its text centred, border or not, and its text 12px (Christopher, 2026-11-11; a check's "18 new" and the Last run
   menu's counts were the bare .closer-pill's 14px). The small count INSIDE a chip keeps its own size. */
/* The drill pop-ups and the History drawer mount outside .closer-home, so they are named too (Christopher, 2026-10-26). */
/* My Meetings and its "meetings to file" prompt too: their suggestion chips were the bare 14px pill, two lines tall (Jesse, 2026-10-29). */
/* …and the "What's left" modal, whose chips were the bare pill too (Jesse, 2026-11-06, a screenshot). */
/* Accruer onboarding's Reconcile summary too (TM-2171). */
/* Payroller's held-out layout columns too: the bare .badge drew them as 25px ovals (Jesse, 2026-11-09, TM-2275). */
/* …and the Payroll preview's New / Updates / Same chips (TM-2275). */
:is(.closer-home, .fo-entry-history, .closer-fin-drillx, .fo-roles-section, .rec-divide-drift-history, .rec-divide-account-head, .fo-frules, .fathom-meetings-table, .fathom-prompt, .onb-rec-summary, .closer-whats-left-dialog, .payroller-layout-chips, .payroller-modal-dialog) :is(.closer-pill.closer-status-badge, .closer-due-chip, .closer-skill-badge, .closer-pill.closer-note-number):not(.closer-tab-count) {
    display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box;
    height: 19px !important; padding: 0 9.6px !important; line-height: 1 !important; font-size: 12px;
}
.closer-home summary.closer-pill.closer-status-badge { padding: 0 9.6px !important; }
/* …except a header action chip standing beside a .fo-seg-toggle (Close Tasks' New Task, Jesse
   2026-10-13: "make New Task the size of the stuff to the right of it"): the toggle's 29px. */
.closer-home .closer-head-actions > .closer-pill.closer-head-pill { height: 29px !important; }
:is(.closer-edit-form, .closer-edit-modal) label > .fo-form-hint { margin: 4px 0 0 !important; }
/* …and a hint standing on its own under a row (the client-facing checkbox, the links row) sits the
   same 4px under it: the row above gives up its bottom margin. */
.closer-edit-form > :has(+ .fo-form-hint) { margin-bottom: 0 !important; }
.closer-edit-form > .fo-form-hint { margin-top: 4px !important; }
/* The reply composer's Send to rows: the To / Cc dropdown a fixed small width, the person's name in
   the room left and wrapping inside the row — in a narrow panel the dropdown took the width and the
   name spilled over the box's edge (Christopher, 2026-10-12). */
.conversations-recipient { display: flex !important; align-items: center; gap: 6px; min-width: 0; }
.conversations-recipient > .fo-combobox, .conversations-recipient > select { flex: 0 0 4.75rem; width: 4.75rem !important; min-width: 0; }
.conversations-recipient > span { min-width: 0; overflow-wrap: anywhere; }
/* "Send to" folds to one line naming who the reply goes to, so a long list of people no longer
   takes most of the reply's room (Bruno, TM-2270). The chevron opens it; html.fo-send-to-open is
   that choice, kept in the browser (conversations-composer.js). Open, a long list scrolls inside
   its box under a pinned header. Only the view folds: the rows still post. */
.conversations-send-to-toggle {
    display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0;
    margin: 0 0 .25rem; padding: 0; border: 0; background: inherit; text-align: left; cursor: pointer;
}
.conversations-send-to-toggle .closer-task-section-caret { color: #250d47; font-size: 10px; flex: none; }
.conversations-send-to-toggle:hover .closer-task-section-caret,
.conversations-send-to-toggle:hover .conversations-side-label { color: #e91e63; }
html.fo-send-to-open .conversations-send-to-toggle .closer-task-section-caret { transform: rotate(90deg); }
.conversations-send-to-summary {
    flex: 1 1 auto; min-width: 0; font-size: 14px; color: #495057;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html.fo-send-to-open .conversations-send-to-summary { display: none; }
html:not(.fo-send-to-open) .conversations-send-to-toggle { margin-bottom: 0; }
html:not(.fo-send-to-open) .conversations-recipients > .conversations-recipient,
html:not(.fo-send-to-open) .conversations-recipients > .conversations-recipient-scope { display: none !important; }
html.fo-send-to-open .conversations-composer .conversations-recipients { max-height: 14rem; overflow-y: auto; }
html.fo-send-to-open .conversations-composer .conversations-send-to-toggle { position: sticky; top: 0; z-index: 1; }
.closer-task-thread-error { font-size: 14px; }
.closer-home .spinner-border-sm.text-primary { color: #e91e63 !important; }
/* A loading label beside its spinner is not bold (Christopher, 2026-10-22). */
.closer-home :is(.spinner-border, .spinner-border-sm) ~ .text-primary { font-weight: 400 !important; }
/* Status dropdown chips (Waiting ▾, Skill ▾) on the chips' centre line: the <details> wrapper was a
   block, so its line box sat the summary pill 1px below the plain chips beside it. */
.closer-status-menu { display: inline-flex !important; align-items: center; vertical-align: middle; }
/* Closer edit forms: 16px between fields (Bootstrap's mb-3 rhythm, as the app's other forms), carried by the
   grid's row-gap so a field with a help line and one without space the same. A standalone help line (after a
   checkbox row) stays 4px under its control. */
form.closer-edit-form { row-gap: 1rem !important; }
form.closer-edit-form > *,
form.closer-edit-form > .fo-form-hint.fo-form-hint { margin-bottom: 0 !important; }
form.closer-edit-form > * + .fo-form-hint { margin-top: calc(4px - 1rem) !important; }
/* The Waits on legend and the Links block on the form's 4px label edge, with every other label and control. */
form.closer-edit-form > :is(fieldset.closer-edit-deps, .closer-link-fields) { margin-left: 4px !important; }
fieldset.closer-edit-deps label { margin-left: 0 !important; }
/* Checkbox options read as body text (#2d2c2f), not as purple field labels, wherever they sit in the form;
   consecutive checkbox rows sit 8px apart (as the Waits on list does), and the list's last row
   adds no margin of its own under the 16px field gap. */
form.closer-edit-form label.d-flex:has(> input.fo-check-bare) { color: #2d2c2f !important; }
form.closer-edit-form > label.d-flex + label.d-flex { margin-top: calc(8px - 1rem) !important; }
fieldset.closer-edit-deps > label:last-child { margin-bottom: 0 !important; }
/* A help line that ends a field block (Links) adds no margin under the 16px field gap, so the next label sits as every other does. */
form.closer-edit-form > * > .fo-form-hint:last-child { margin-bottom: 0 !important; }
/* Mixed-case secondary text that sat at 10px, then 10.5px (Christopher, 2026-10-12), is the regular
   14px (Christopher, 2026-11-11); the two chips here are the chips' 12px. Found by a computed-style
   sweep of Closer, Reconciler, Bank Data and My Desk. */
.closer-tab-card summary.closer-pill:is(.closer-skill-schedule, .closer-skill-kind-btn),
.desk-filters-count.conversations-count { font-size: 12px !important; }
.closer-tab-card .closer-due-date,
.closer-fin-orphans-settled,
.conversations-due-days,
.desk-board-shown,
.desk-board-cell,
.desk-board-act,
.mrr-ref { font-size: 14px !important; }
/* A dollar check setting: the Flux box's $-led input at the settings boxes' size (29px, lightgray). */
.fo-check-param-money { align-self: flex-start; height: 29px; border-color: lightgray; }
.fo-check-param-money > .fo-check-param-input { border: 0; height: 27px; width: 5rem; padding: 0 .15rem; background: transparent; }
/* The compact row button (Run, Undismiss): whole-pixel metrics, 20px with 3px over / 2px under the caps,
   so the caps sit centred on a 1x screen too (the .1rem padding rounded them high). The settings
   drawer's buttons keep the standard 29px. */
.btn.fo-check-toggle-btn:not(.fo-check-save-row *) { display: inline-flex; align-items: center; height: 20px; line-height: 15px; padding: 3px .55rem 2px; }
/* A findings drawer's instruction bar sits as far below the table as the drawer's edge sits below the
   bar (12.5px): the last row's padding and the nested entries table's 8px margin go, and the bar's top
   margin is its bottom margin plus the drawer cell's padding (Christopher, 2026-10-12). */
.fo-check-expand .tbl-wrap:has(+ .fo-finding-bulkbar) > table > tbody > tr:last-child > td { padding-bottom: 0 !important; }
.fo-check-expand .tbl-wrap:has(+ .fo-finding-bulkbar) > table > tbody > tr:last-child > td > table:last-child { margin-bottom: 0 !important; }
.fo-check-expand .tbl-wrap + .fo-finding-bulkbar { margin-top: calc(.2rem + .55rem) !important; }

/* The Desk's icon: a desk (Jesse, 2026-10-14: "needs to look more like a desk and less like an inbox").
   Font Awesome has none, so it's drawn here and takes the text colour: <i class="fo-icon-desk"></i>. */
.fo-icon-desk {
    display: inline-block;
    width: 1.15em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'><path fill-rule='evenodd' d='M0 2a1 1 0 0 1 1-1h22a1 1 0 0 1 1 1v3H0z M2 6h9v6H2z M5 8v1.5h3V8z M2 13h9v7H2z M5 15v1.5h3V15z M19 6h3v14h-3z'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'><path fill-rule='evenodd' d='M0 2a1 1 0 0 1 1-1h22a1 1 0 0 1 1 1v3H0z M2 6h9v6H2z M5 8v1.5h3V8z M2 13h9v7H2z M5 15v1.5h3V15z M19 6h3v14h-3z'/></svg>") center / contain no-repeat;
}

/* The "?" beside Keyboard shortcuts in the name menu: a small key on the dark menu. */
.fo-menu-kbd { margin-left: .35rem; padding: 0 .35rem; font-size: 12px; color: #fff; background-color: transparent; border: 1px solid rgba(255, 255, 255, .5); border-radius: .25rem; }

/* The keyboard-shortcuts list (fo-shortcuts-help.js): the keyboard icon beside the search box, or "?". */
.fo-shortcuts-table { width: 100%; margin-bottom: 0; }
.fo-shortcuts-table td.fo-shortcuts-section { font-size: 14px; padding-top: 1rem; border-bottom-color: #250d47; }
.fo-shortcuts-table tr:first-child td.fo-shortcuts-section { padding-top: 0; }
.fo-shortcuts-table td { font-size: 14px; font-weight: 400; color: #2d2c2f; vertical-align: middle; white-space: normal; }
.fo-shortcuts-table td.fo-shortcuts-keys { white-space: nowrap; width: 1%; padding-right: 1.5rem; }
.fo-shortcuts-keys kbd { font-size: 12px; margin-right: .2rem; }
.fo-shortcuts-then { font-size: 14px; color: #495057; margin-right: .2rem; }

/* Allocator workflow form: the basis Shape picker and the Preview answer
   (templates/allocator/includes/basis_shape.html, workflow_preview.html). */
.fo-basis-shape-help { font-size: 14px; color: #495057; font-weight: 400; }
.fo-basis-shape-keys { display: flex; flex-wrap: wrap; align-items: center; min-height: 22px; margin: .25rem 0; }
.fo-basis-shape-remove { cursor: pointer; }
.fo-basis-shape-sentence,
.fo-allocator-preview-line { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.fo-allocator-preview { margin-left: 2rem; }
.fo-allocator-preview-table td { font-size: 14px; font-weight: 400; color: #2d2c2f; }
/* The Shape section's pictures and the live sheet, in the legend's chip colours (closer-status-*):
   blue = Match (open), green = Land on (resolved), amber = Weight (pending), purple-grey = Month (new). */
.fo-basis-layouts { display: flex; flex-wrap: wrap; gap: 1rem; }
.fo-basis-layout-card { display: flex; flex-direction: column; gap: .35rem; width: 340px; padding: .75rem; border: 1px solid #dee2e6; border-radius: .375rem; background: #fff; cursor: pointer; }
.fo-basis-layout-card .form-check-input { margin: 0; }
.fo-basis-layout-active { border-color: #250d47; box-shadow: 0 0 0 1px #250d47; }
.fo-basis-layout-title { font-size: 14px; font-weight: 600; color: #250d47; }
.fo-basis-layout-caption { font-size: 14px; font-weight: 400; color: #495057; }
.fo-basis-picture,
.fo-basis-sample { border-collapse: collapse; font-size: 14px; font-weight: 400; color: #2d2c2f; }
.fo-basis-picture th, .fo-basis-picture td,
.fo-basis-sample th, .fo-basis-sample td { border: 1px solid #dee2e6; padding: 2px 6px; white-space: nowrap; }
.fo-basis-picture th, .fo-basis-sample th { font-weight: 600; background: #f8f9fa; }
.fo-key-match { background: #e3f2fd !important; color: #1A73E8; }
.fo-key-land { background: #e6f4ea !important; color: #1b7a3d; }
.fo-key-weight { background: #fff3e0 !important; color: #b26a00; }
.fo-key-month { background: #ece9f1 !important; color: #250d47; }
.fo-basis-legend { font-size: 14px; color: #495057; }
.fo-basis-sample-scroll { overflow-x: auto; max-width: 100%; }
.fo-basis-sample-roles td { background: #fff; min-width: 150px; }
.fo-basis-skip { font-size: 14px; color: #495057; white-space: nowrap; }
.fo-basis-sample-tab { color: #495057; }
/* The workflow form's fieldsets are 780px; the Shape pictures, the live sheet and the Preview answer
   use the white space to their right instead of scrolling inside it. */
#basis-shape-div,
.fo-allocator-preview { width: min(1400px, calc(100vw - 340px)); max-width: none; }
.fo-basis-shape-head { display: flex; align-items: center; justify-content: space-between; max-width: 700px; }
.fo-allocator-ai-title { font-size: 14px; color: #250d47; }
.fo-allocator-ai-log { max-height: 220px; overflow-y: auto; }
.fo-allocator-ai-request { font-size: 14px; }
.fo-allocator-ai-proposal table { width: 100%; table-layout: fixed; }
.fo-allocator-ai-proposal td { white-space: normal; word-break: break-word; }
.fo-allocator-ai-proposal th:first-child, .fo-allocator-ai-proposal td:first-child { width: 32%; }
.fo-setting-example { display: flex; flex-direction: column; gap: .35rem; max-width: 520px; margin: -.5rem 0 1rem 25%; }

/* Closer ▸ Checks: standing exceptions (2026-10-15). A finding's "Always skip" menu — the reason,
   then the ready-made skips as menu rows (dark text, hot pink on hover) — and the check's
   Settings-drawer list with its Add form. */
.fo-skip-menu { margin-left: .25rem; vertical-align: middle; }
/* A findings table's note and its buttons, one cell: the note on top, as wide as Dismiss and Always
   skip side by side under it (Christopher, 2026-10-26). The note adds no width of its own, so the
   buttons set the column. */
.fo-finding-note-grid { display: inline-grid; grid-template-columns: repeat(2, max-content); gap: .5rem; align-items: center; }
.fo-finding-note-grid > .fo-finding-note { grid-column: 1 / -1; width: 0; min-width: 100%; }
.fo-finding-note-grid > .fo-finding-actions { margin: 0; }
.fo-finding-note-grid > .fo-skip-menu { margin-left: 0; }
/* Opened low in its drawer, the menu rises above its button instead (openSkipMenuUpward). */
.fo-skip-menu.fo-skip-menu-up > .closer-status-options { top: auto; bottom: calc(100% + .3rem); }
.fo-skip-options { width: 24rem; max-width: calc(100vw - 2rem); align-items: stretch; text-align: left; padding: .5rem; gap: .25rem; }
/* The menu's headings: the 14px section title in sentence case, not the caps label (Christopher, 2026-10-26). */
.fo-skip-options > .fo-skip-heading,
.closer-tab-card .closer-status-options > label.fo-skip-heading { display: block; margin: .15rem 0 0; font-size: 14px; font-weight: 600; color: #250d47; text-transform: none; letter-spacing: normal; }
.fo-skip-options input[type=text] {
    height: 29px; font-size: 14px; color: #2d2c2f; background: #fff;
    border: 1px solid lightgray; border-radius: .375rem;
}
.fo-skip-option {
    display: block; width: 100%; border: 0; background: none; cursor: pointer;
    padding: .3rem .5rem; border-radius: .375rem;
    text-align: left; white-space: normal; font-size: 14px; font-weight: 400; color: #2d2c2f;
}
.fo-skip-option:hover, .fo-skip-option:focus-visible { background: #f8f9fa; color: #e91e63; }
.fo-skip-memo { padding: .3rem .5rem 0; font-size: 14px; color: #2d2c2f; }
/* Nothing under "Skip, from now on" is indented: everything starts on the reason box's left edge
   (Christopher, 2026-10-26). */
/* Each choice is a bordered, rounded box, so it reads as something to pick: its edges on the input
   boxes' edges and its text on their text (12px in). */
.fo-skip-options .fo-skip-option { margin: 0; width: 100%; border: 1px solid #dee2e6; padding: .3rem 12px; }
.fo-skip-options .fo-skip-option:hover, .fo-skip-options .fo-skip-option:focus-visible { border-color: #e91e63; }
.fo-skip-options .fo-skip-memo { padding-left: 0; padding-right: 0; }
/* "…every entry whose description contains" leads its box like a label: bold dark purple. */
.fo-skip-options .fo-skip-memo-lead { font-weight: 600; color: #250d47; }
.fo-skip-memo-row { display: flex; gap: .35rem; margin-top: .25rem; }
.fo-skip-memo-row .fo-skip-memo-input { flex: 1 1 auto; min-width: 0; }
.fo-skip-settings { margin: .75rem 0 0 1.35rem; text-align: left; }
.fo-skip-table { margin-top: .35rem; font-size: 14px; }
.fo-skip-table td { white-space: normal; color: #2d2c2f; font-weight: 400; }
.fo-skip-table .fo-skip-why { max-width: 24rem; }
.fo-skip-table .fo-skip-empty { color: #495057; }
.fo-skip-table tfoot td { border-top: 1px solid #e5e1ea; padding-top: .5rem; }
.fo-skip-table input.form-check-input { min-width: 0; width: 14px; height: 14px; flex: none; margin: 0; }
/* The Add form: one row of label-over-control fields ending in the button, every control 29px
   so the labels and the controls each sit on one line; the two checkboxes on a line below. */
.fo-skip-add-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; }
.fo-skip-field { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; margin: 0; }
.fo-skip-field .fo-check-param-label { line-height: 1.25; white-space: nowrap; }
.fo-skip-field input[type=text],
.fo-skip-field .rec-combo-trigger {
    height: 29px; width: 14rem; font-size: 14px; color: #2d2c2f; background: #fff;
    border: 1px solid lightgray; border-radius: .375rem;
}
.fo-skip-field-why input[type=text] { width: 20rem; }
.fo-skip-add-flags { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-top: .4rem; }
.fo-skip-sub { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-size: 14px; font-weight: 400; color: #2d2c2f; }

/* The name drill's panel (closer_home.html namePanel): who the customer / vendor /
   employee is, its open balance, and its QuickBooks fields, editable in place. */
.closer-fin-namecard { padding: 8px 12px; border-bottom: 1px solid #dee2e6; background: #fff; font-size: 14px; color: #2d2c2f; }
.closer-fin-namecard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.closer-fin-namecard-fact { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 400; }   /* the caps label, then its value on the same line, on one baseline (Christopher, 2026-11-11) */
.closer-fin-namecard-actions { margin-left: auto; display: inline-flex; gap: 6px; }
.closer-fin-namecard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; margin-top: 8px; }
.closer-fin-namecard-grid[hidden] { display: none; }
.closer-fin-namecard-field { min-width: 0; }
.closer-fin-namecard-value { font-size: 14px; overflow-wrap: anywhere; }
/* The standard text input (29px, 12px, white, lightgray). Also My Meetings' client pickers. */
.closer-fin-namecard-form .form-control-sm,
.fathom-client-picker.form-control-sm { height: 29px; font-size: 14px; background: #fff; border: 1px solid lightgray; border-radius: .375rem; padding: 0 8px; }
.closer-fin-namecard-check { display: inline-flex; align-items: center; gap: 6px; height: 29px; margin: 0; font-size: 14px; }
/* Its cell sits at the foot of the grid row, so the box and label centre on the row's 29px inputs
   (Christopher, 2026-10-26). */
.closer-fin-namecard-field:has(> .closer-fin-namecard-check) { align-self: end; }
.closer-fin-namecard-check > .form-check-input { margin: 0; }
.closer-fin-namecard-buttons { grid-column: 1 / -1; display: flex; gap: 6px; }
.closer-fin-namecard-note { margin-top: 6px; font-size: 14px; color: #495057; }
/* The General Ledger's Name opens the name's drill: a link in the brand colours. */
.closer-gl-name-open { border: 0; background: none; padding: 0; font: inherit; color: #250d47; text-align: left; cursor: pointer; }
.closer-gl-name-open:hover, .closer-gl-name-open:focus-visible { color: #e91e63; }
/* An aging's vendor / customer name opens its drill (closer_home.html markDrillable). */
.closer-fin-acct-label.closer-fin-name-link { color: #250d47; cursor: pointer; }
.closer-fin-acct-label.closer-fin-name-link:hover { color: #e91e63; }
/* The drill's History drawer (EntryHistoryDrawer): one entry's versions, newest first. */
.fo-edit-grid-history-wrap { position: relative; display: inline-block; margin-left: 6px; }
.fo-edit-grid-history { border: 0; background: none; padding: 0; font-size: 14px; line-height: 1; color: #250d47; cursor: pointer; }
.fo-edit-grid-history-tip { position: fixed; z-index: 2000; display: flex; flex-direction: column; gap: 2px; min-width: 260px; padding: 6px 8px; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem; box-shadow: 0 2px 8px rgba(37, 13, 71, .15); font-size: 14px; color: #2d2c2f; white-space: nowrap; text-transform: none; letter-spacing: 0; font-weight: 400; }
.fo-edit-grid-history-tip-hint { color: #495057; font-size: 14px; }
.fo-edit-grid-history:hover, .fo-edit-grid-history:focus-visible { color: #e91e63; }
.fo-entry-history { list-style: none; margin: 0; padding: 0; font-size: 14px; color: #2d2c2f; }
.fo-entry-history-version { padding: 8px 12px; border-bottom: 1px solid #dee2e6; }
.fo-entry-history-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; font-weight: 400; }
.fo-entry-history-qbo { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #495057; }
.fo-entry-history-changes { margin: 4px 0 0; padding-left: 18px; }
.fo-entry-history-line { font-weight: 600; }
/* A first version's header fields (Date, Number, Memo, Name): caps labels in one column, values in the
   next, not bullets (Christopher, 2026-10-22). */
.fo-entry-history-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; row-gap: 2px; margin: 6px 0 0; align-items: baseline; }
.fo-entry-history-fields > dt { margin: 0; }
.fo-entry-history-fields > dd { margin: 0; overflow-wrap: anywhere; }
.fo-entry-history-fields + .fo-entry-history-changes { margin-top: 6px; }
/* The drawers' sub-title ("Journal entry UPLDR_2026-09-30") at the sub-header size. */
.fo-linked-drawer-head .closer-fin-drill-title { font-size: 14px; }
.fo-entry-history-quiet, .fo-entry-history-note { color: #495057; }
.fo-entry-history-note { padding: 8px 12px; font-size: 14px; }
/* The GL toolbar's icon buttons (Print, Excel) and the Excel mark (2026-10-15). */
.closer-gl-icon-btn { min-width: 29px; padding-left: 8px; padding-right: 8px; }
.closer-excel-icon { color: #198754; }   /* the whole icon Bootstrap's success green */
.closer-snapshot-download > .closer-excel-icon { margin-right: .25rem; }   /* the Monthly review's Download link: the Excel mark, its word, the download arrow */
/* Both icons wear the link's colour, and all three turn hot pink together on hover (Christopher, 2026-10-26). */
.closer-snapshot-download > :is(i, svg) { color: inherit !important; }
.closer-snapshot-download:is(:hover, :focus-visible) { color: #e91e63 !important; text-decoration: none; }
/* At rest the link, its Excel mark and arrow are success green, the Excel mark's own green (Christopher, 2026-11-12). */
.closer-snapshot-download:not(:hover):not(:focus-visible) { color: #198754; }
.btn:not(:hover):not(:focus-visible) > .closer-excel-icon, .btn:not(:hover):not(:focus-visible) > svg.closer-excel-icon { color: #198754 !important; }
/* The line filters in the GL header's 💬 / flag cell: white icons, pink when on. */
.closer-gl-head-filters { display: inline-flex; gap: 10px; align-items: center; }
.closer-gl-head-filter { position: relative; margin: 0; cursor: pointer; color: rgba(255, 255, 255, .75); font-size: 14px; }
.closer-gl-head-filter input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.closer-gl-head-filter:hover { color: #fff; }
.closer-gl-head-filter:has(input:checked) { color: #e91e63; }
.closer-gl-head-filter:has(input:focus-visible) { outline: 1px solid #fff; outline-offset: 2px; }
.closer-gl-allbtns { margin-right: 6px; }
/* Flux as a chip with a pop-out (Jesse, 2026-10-15): the thresholds show on hover / focus, under it. */
.closer-fin-flux-ctl { position: relative; }
/* Flux is the toolbar's standard small button (Print, Prelim, Diff beside it); set, it turns pink. */
.closer-fin-flux-ctl.closer-fin-flux-on button.closer-fin-flux-word { color: #e91e63; border-color: #e91e63; }
.closer-fin-flux-pop { display: none; position: absolute; top: 100%; right: 0; z-index: 30; margin-top: 4px; padding: 6px; gap: .35rem; align-items: center; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem; box-shadow: 0 2px 8px rgba(37, 13, 71, .15); }
.closer-fin-flux-ctl:hover .closer-fin-flux-pop,
.closer-fin-flux-ctl:focus-within .closer-fin-flux-pop { display: inline-flex; }
/* The hover bridge: the pop-out stays while the pointer crosses the 4px gap. */
.closer-fin-flux-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; }
/* A capture's progress sits inside the version button while it runs (2026-10-15). */
#closer-snapshot-dd.closer-capturing > :not(.closer-capture-in-btn),
#closer-version-dd-btn.closer-capturing > :not(.closer-capture-in-btn) { display: none; }
.closer-capture-in-btn { display: inline-flex; align-items: center; max-width: 16rem; white-space: nowrap; overflow: hidden; }
.closer-capture-in-btn-text { overflow: hidden; text-overflow: ellipsis; }
/* The GL's tools in the tab row, in the account search's place, only while the GL tab is open. */
.closer-gl-topslot { display: flex; align-items: center; gap: 6px; flex: 0 1 22rem; min-width: 12rem; margin: 0 .75rem 0 .5rem; }
.closer-gl-topslot .closer-gl-head-tools { display: flex; align-items: center; gap: 6px; width: 100%; }
.closer-gl-topslot .closer-gl-findbox { flex: 1 1 auto; margin: 0; max-width: none; }
/* The box fits its slot: without this its input's own minimum pushed the "All months" /
   "Ask AI" button out under the month button beside it (2026-10-21). */
.closer-gl-topslot .closer-gl-findbox,
.closer-gl-topslot .closer-gl-search { min-width: 0; }
.closer-gl-findbox-field { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; container-type: inline-size; }
/* Too narrow for the count beside what's typed (the GL's tools in a laptop's tab row): the count goes. */
@container (max-width: 14rem) {
  .closer-gl-findbox-field .closer-gl-count { display: none; }
  .closer-gl-findbox-field .closer-gl-search { padding-right: .5rem; }
}
#cpane-financials:has(#fin-pane-gl.active) #closer-fin-find { display: none; }
#cpane-financials:not(:has(#fin-pane-gl.active)) #closer-gl-topslot { display: none; }
.closer-gl-head-filters .dropdown { display: inline-block; }
/* The ledger is named by the tab and the version button; the old mode tag never shows. */
.closer-gl-mode-tag { display: none !important; }
/* ONE row on a wide screen (Jesse, 2026-10-15): the search strips give way first, down to
   their minimum (the 9rem basis is what the row breaks on; they grow back into any room).
   Only when the row cannot fit even then (the left sidebar open, a narrow window) do the
   actions wrap under the tabs (the head wraps: .closer-fin-head above), right-aligned, and
   on a row of their own too narrow for them they wrap among themselves: nothing runs off
   the card. Overflow there made the page wider than the window, which then scrolled the
   Financials sideways under the sidebar (Jonah, Jesse, 2026-10-19/20). On the GL tab, Flux
   and the statements' workbook go (they do nothing there). */
#cpane-financials .closer-head-actions { flex-wrap: wrap; justify-content: flex-end; flex: 0 1 auto; }
#cpane-financials .closer-fin-find,
#cpane-financials .closer-gl-topslot { flex: 1 1 9rem; min-width: 9rem; }
#cpane-financials .closer-fin-live-chip { width: auto; max-width: 13rem; }
#cpane-financials:has(#fin-pane-gl.active) .closer-fin-flux-ctl,
#cpane-financials:has(#fin-pane-gl.active) #closer-fin-xlsx { display: none !important; }
/* Printing a statement (#closer-fin-print): only the open statement's table, whole, from the
   top of the page. The GL keeps its own QuickBooks-layout print. */
#cpane-financials:has(#fin-pane-gl.active) #closer-fin-print { display: none !important; }
.closer-fin-print-heading,
.closer-fin-print-notes { display: none; }
@media print {
  /* The statement's heading: company, statement, period, centred over the table. */
  body.closer-fin-printing .closer-fin-print-target .closer-fin-print-heading {
    display: block; text-align: center; color: #250d47; margin: 0 0 .25in;
  }
  body.closer-fin-printing .closer-fin-print-company { font-size: 16px; font-weight: 600; }
  body.closer-fin-printing .closer-fin-print-title { font-size: 14px; font-weight: 600; }
  body.closer-fin-printing .closer-fin-print-period { font-size: 14px; color: #2d2c2f; }
  /* foPrintFinStatement marks the shown statement: everything else leaves the layout (hidden but
     still laid out, the page behind it printed as trailing blank pages), and the statement
     prints from the page's top-left corner. */
  body.closer-fin-printing *:not(:has(.closer-fin-print-target), .closer-fin-print-target, .closer-fin-print-target *) { display: none !important; }
  body.closer-fin-printing *:has(.closer-fin-print-target) { position: static !important; }
  body.closer-fin-printing .closer-fin-print-target {
    position: absolute; left: 0; top: 0; width: 100%; max-height: none !important; height: auto !important; overflow: visible !important; border: 0;
  }
  body.closer-fin-printing .closer-fin-allbtns, body.closer-fin-printing .closer-fin-comment-btn { display: none !important; }
  /* Footnotes (TM-2363): no markers on paper. The 'everyone' notes print as a Notes list under the
     statement (closer-fin-footnotes.js foFinFootnotesForPrint); private and internal ones never do. */
  body.closer-fin-printing .closer-fin-footnote-btn,
  body.closer-fin-printing .closer-fin-earmark { display: none !important; }
  body.closer-fin-printing .closer-fin-print-target .closer-fin-print-notes { display: block; }
  body.closer-fin-printing .closer-fin-print-notes { margin-top: .25in; font-size: 11px; color: #2d2c2f; break-inside: avoid-page; }
  body.closer-fin-printing .closer-fin-print-notes-title { font-size: 12px; font-weight: 600; color: #250d47; margin-bottom: .1in; }
  body.closer-fin-printing .closer-fin-print-notes ol { padding-left: 1.2em; margin: 0; }
  body.closer-fin-printing .closer-fin-print-notes li { margin-bottom: .06in; white-space: pre-wrap; }
  /* Every column on the page: the pinned header, Account and Total let go (a pinned Total sat over
     the later months), and foPrintFinStatement scales a wide statement to the page's width. */
  body.closer-fin-printing .closer-fin-table { width: auto; zoom: var(--fin-print-zoom, 1); }
  body.closer-fin-printing .closer-fin-table thead th,
  body.closer-fin-printing .closer-fin-table .closer-fin-acct,
  body.closer-fin-printing .closer-fin-table .closer-fin-total { position: static; box-shadow: none; }
  body.closer-fin-printing .closer-fin-table tr { break-inside: avoid; }
  /* The shaded rows carry white text: their fills print too. */
  body.closer-fin-printing .closer-fin-table th,
  body.closer-fin-printing .closer-fin-table td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ---------------------------------------------------------------------------
   Wrangler File Drop (report type 128; templates/wrangler/includes/file_drop/).
   The Files card reuses Bank Data's dropzone (.bank-files-*) and Payroller's
   file table (.payroll-files-table, .payroll-file-*); only what those don't
   cover is here.
   --------------------------------------------------------------------------- */
.file-drop-field {
    margin-top: .75rem;
    max-width: 48rem;
}

.file-drop-field .desk-combobox,
.file-drop-field .form-select {
    max-width: 32rem;
}

/* The File Drop settings: four numbered steps, each one sentence with Edit on the right; Edit opens the
   step's rows (a control per box, one rule per line, × on the right) under the Router dials they write. */
.file-drop-step {
    margin-top: .75rem;
    padding-top: .65rem;
    border-top: 1px solid #dee2e6;
    max-width: 60rem;
}

.file-drop-step-head {
    display: grid;
    grid-template-columns: 18px 7.5rem 1fr auto;
    align-items: start;
    gap: .6rem;
}

.file-drop-step-summary {
    font-size: 14px;
    font-weight: 400;
    color: #2d2c2f;
}

.file-drop-step-summary b {
    font-weight: 500;
    color: #250d47;
}

.file-drop-step-body {
    margin: .5rem 0 0 1.6rem;
}

.file-drop-start {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.file-drop-start .desk-combobox,
.file-drop-start .form-select {
    min-width: 18rem;
}

/* How files are read: Before (the file as dropped, .fo-basis-sample) beside After (what lands on the
   tab: Allocator's basis picture, .fo-basis-picture / .fo-key-*, one colour per origin). */
.file-drop-setup-line {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 400;
    color: #2d2c2f;
}

/* Stacked in the workflow form's column; side by side in the AI dialog, which is wide enough. */
.file-drop-before-after {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    max-width: 60rem;
}

.file-drop-ai-modal .file-drop-before-after {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: none;
}

@media (max-width: 991px) {
    .file-drop-ai-modal .file-drop-before-after {
        grid-template-columns: minmax(0, 1fr);
    }
}

.file-drop-before .file-drop-panel-table {
    max-height: 18rem;
    overflow: auto;
}

.file-drop-panel {
    min-width: 0;
}

/* How to get the file, above a File Drop workflow's drop zone */
.file-drop-how-to {
    max-width: 60rem;
    padding: .5rem .75rem;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    background: #fff;
}

.file-drop-how-to-text {
    font-size: 14px;
    font-weight: 400;
    color: #2d2c2f;
    white-space: pre-line;
    margin-top: .2rem;
}

.file-drop-how-to-actions,
.file-drop-how-to-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.file-drop-panel-status {
    margin: .2rem 0 .35rem;
}

.file-drop-superuser-toggle.is-open .closer-task-section-caret {
    transform: rotate(90deg);
}

.file-drop-ai-thread {
    max-height: 12rem;
    overflow-y: auto;
}

.file-drop-ai-turn {
    font-size: 14px;
    font-weight: 400;
    color: #2d2c2f;
    margin-bottom: .35rem;
}

.file-drop-ai-turn .closer-eyebrow {
    display: inline-block;
    min-width: 4.5rem;
}

.file-drop-preview-grid td {
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-drop-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #250d47;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.file-drop-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #250d47;
}

.file-drop-step-dials {
    font-size: 14px;
    color: #495057;
}

.file-drop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
}

.file-drop-grid .file-drop-field {
    flex: 1 1 12rem;
}

.file-drop-sub {
    margin: .25rem 0 0 1.35rem;
}

.file-drop-rule {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .35rem;
}

.file-drop-rule .file-drop-text {
    flex: 1 1 9rem;
    min-width: 7rem;
}

.file-drop-rule .desk-combobox,
.file-drop-rule .form-select {
    flex: 0 1 13rem;
}

.file-drop-text {
    height: 29px;
    font-size: 14px;
    color: #2d2c2f;
    background: #fff;
    border: 1px solid lightgray;
    border-radius: .375rem;
}

.file-drop-word,
.file-drop-empty-rule {
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}

.file-drop-check {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: .5rem 0 0;
    font-size: 14px;
    font-weight: 400;
    color: #2d2c2f;
}

.file-drop-check input.form-check-input {
    width: 14px;
    height: 14px;
    margin: 0;
    flex: none;
}

/* The workflow list's File Drop row: a file dragged over it lights the row as
   the dropzone lights (.bank-files-dropzone.is-dragover). */
tr.file-drop-list-row.is-dragover > td {
    background: rgba(105, 65, 198, 0.08);
}

.file-drop-strip {
    color: #495057;
    font-size: 14px;
    margin-top: 2px;
    white-space: normal;
}

/* A dropped file's outcome sits on its own line under its row; one rule between the two. */
.file-drop-table tr.file-drop-row > td {
    border-bottom: 0;
}

/* A long file name wraps (its Original / Rows links move under it) so Run again and × stay in the card. */
.file-drop-table tr.file-drop-row > td:first-child {
    white-space: normal;
}

.file-drop-table tr.file-drop-result-row > td {
    border-top: 0;
    padding-top: 0;
}

.file-drop-table tr.file-drop-result-row .payroll-file-result {
    max-width: none;
}

/* ── Closer Activity tab (Ramp Stack gap #8): work log + changes in QuickBooks ───────── */
.fo-activity-controls,
.fo-activity-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; margin-bottom: .6rem; }   /* bottoms aligned: the dropdowns carry a label above, the search box doesn't */
.fo-activity-window { display: flex; align-items: center; gap: .4rem; }
.fo-activity-window > label { margin: 0; }   /* a label's 8px bottom margin lifted FROM / TO 4px off their date boxes (Christopher, 2026-10-26) */
.fo-activity-time { width: 12.5rem; height: 29px; font-size: 14px; }
.fo-activity-filter { display: flex; flex-direction: column; gap: 2px; min-width: 12rem; }
.fo-activity-quiet { display: flex; align-items: center; height: 29px; font-size: 14px; color: #495057; margin: 0; }   /* the controls' 29px, so the box and text centre on them in the bottom-aligned row */
.fo-activity-quiet > .form-check-input { margin-top: 0; }
.fo-activity-note { font-size: 14px; color: #495057; margin: .25rem 0 .5rem; }
.fo-activity-scroll { max-height: var(--fo-check-scroll-h, 70vh); overflow: auto; }   /* fits the window (fo-check-scroll.js): the table scrolls, the page doesn't */
.fo-activity-scroll thead th { position: sticky; top: 0; z-index: 1; }
.fo-activity-table td { font-size: 14px; color: #2d2c2f; vertical-align: top; }
.fo-activity-sub { font-size: 14px; color: #495057; }
.fo-activity-why { max-width: 22rem; }

/* Upload Files page (templates/teams/upload_files.html, js/upload-files.js) */
.upload-files-page .upload-files-lede { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.upload-files-chosen-item { display: flex; align-items: center; gap: .5rem; color: #2d2c2f; margin-bottom: .25rem; }
.upload-files-note { max-width: 40rem; font-size: 14px; }
.upload-files-table td { font-size: 14px; color: #2d2c2f; }

/* Drop link (templates/qbo/attachment_drop.html, js/attachment-drop.js): one drop zone per file */
.attachment-drop-page .attachment-drop-lede { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.attachment-drop-slot { max-width: 40rem; margin-bottom: 1rem; }
.attachment-drop-status { font-size: 14px; color: #2d2c2f; min-height: 1.25rem; }
.attachment-drop-empty { color: #495057; }
.attachment-drop-done { font-size: 14px; }

/* An icon beside its words in a table cell (Christopher, 2026-10-20). The theme's .icon is a 24px box
   with the glyph centred in it, so the gap to the words changed with each glyph's width (5-9px) and the
   glyph sat above the text's middle. In a cell it is just the glyph, sat on the text the way Font
   Awesome aligns it, then one space; a .ms-1 on the words after it no longer adds to that. It is the
   words' size too: a .text-xs on the icon (QuickBooks Connected / Disconnected) drew it smaller and lower. */
:is(td, th) .icon { display: inline; width: auto; height: auto; margin-right: .1rem; font-size: inherit !important; line-height: inherit !important; }
:is(td, th) .icon + .ms-1 { margin-left: 0 !important; }

/* A form whose fields never carry a changed / required badge (My Settings) drops the badge column, so its
   labels sit under the page title instead of 36.5px in from it (Christopher, 2026-10-20). */
.fo-form-no-badges td:has(> .no-badge) { display: none; }
.fo-form-no-badges .field-label-td { padding-left: 0; }

/* A menu item of icon, words and maybe a count chip (the name menu's My Meetings): one row centred on
   one line, so the icon and the chip sit level with the words (Christopher, 2026-10-20). */
.dropdown-menu .dropdown-item:has(> .icon) { display: flex; align-items: center; }
/* Its count chip, at the 10px chip size: the line box trimmed to the digits' cap height, so equal padding
   centres the number in the chip (the line box left it riding low). */
.dropdown-menu .dropdown-item .closer-tab-count,
.sidenav .nav-link .closer-tab-count { font-size: 12px; line-height: 1; padding: .3rem .5rem; text-box: trim-both cap alphabetic; }

/* A <details> opened by a chevron (the standard expand / collapse): the browser's triangle goes and the
   chevron turns down when open, wherever a summary leads with .closer-task-section-caret (Email
   notifications' saved views; Christopher, 2026-10-20). */
summary:has(> .closer-task-section-caret:first-child) { list-style: none; }
summary:has(> .closer-task-section-caret:first-child)::-webkit-details-marker { display: none; }
details[open] > summary > .closer-task-section-caret:first-child { transform: rotate(90deg); }
/* The schedule form's dropdown (Send on / Runs on) is as wide as its words, not the column (Christopher,
   2026-10-20): its label stacks as a stretching flex column. */
.closer-skill-schedule-form label > .fo-combobox { align-self: flex-start; }

/* THE checkbox, everywhere (Christopher, 2026-10-20): the workflow forms' box, white with a light grey
   border, and ticked the theme's pink with a white tick. One look for every .form-check-input checkbox,
   inside a .form-check or bare (.fo-check-bare), whatever its size; toggle switches keep their own. It
   wins over the theme's two looks (a borderless box outside .form-check, a Font Awesome :after tick
   inside one) and over any one-off a page set, which is why it is !important. Size stays the
   context's; the corner is a share of it, so a 14px box is as round as a 17px one. */
.form-check-input[type=checkbox]:not(.form-switch *) {
    border: 1px solid lightgray !important;
    border-radius: 30% !important;
    background: #fff !important;
}
.form-check-input[type=checkbox]:not(.form-switch *):checked {
    border-color: #d81b60 !important;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m5.5 10 3 3 6-6'/%3e%3c/svg%3e") center / 100% no-repeat,
                linear-gradient(195deg, #EC407A 0%, #D81B60 100%) !important;
}
.form-check-input[type=checkbox]:not(.form-switch *):indeterminate {
    border-color: #d81b60 !important;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e") center / 100% no-repeat,
                linear-gradient(195deg, #EC407A 0%, #D81B60 100%) !important;
}
.form-check-input[type=checkbox]:not(.form-switch *)::after { content: none !important; }

/* A page header's icon at the small size the Font Awesome ones there take (fa-sm): the Desk's drawn
   desk beside "Desk" as the envelope beside "Email Notifications" (Christopher, 2026-10-20). */
li h1.fo-title .fo-icon-desk { font-size: .875em; }
/* With its title in the header strip, the Desk page's actions (keys, Recent, Mark all seen) sit at the
   right end of the tab row, and everything after the tabs keeps a full row of its own. The pop-up
   keeps its modal header. */
section.desk-board:not(.desk-board-in-modal) { display: flex; flex-wrap: wrap; align-items: center; }
section.desk-board:not(.desk-board-in-modal) > * { flex: 0 0 100%; min-width: 0; order: 3; }
section.desk-board:not(.desk-board-in-modal) > #desk-board-tabs { flex: 1 1 auto; order: 1; }
section.desk-board:not(.desk-board-in-modal) > .desk-title-row { flex: 0 0 auto; order: 2; padding: 0 1rem 0 .5rem; }

/* My Meetings' cells: the Desk's 12px body text, top-aligned, so a wrapped subject or participant list
   reads from the same line as the rest of its row (Christopher, 2026-10-20). */
.fathom-meetings-table td { font-size: 14px; color: #2d2c2f; font-weight: 400; vertical-align: top; }
/* Every dropdown's label reads from the left and its chevron sits at the right edge (Christopher,
   2026-10-20): the multi-select filters (Clients, Assignees, Participants, the report filters) and the
   fo-combobox dropdowns, which centred both. */
.mr-select-btn { display: flex; align-items: center; justify-content: space-between; gap: 4px; text-align: left; }
.mr-select-btn-text { min-width: 0; }
.mr-select-btn-arrow { flex: none; margin-left: auto; }
.desk-combobox .fo-combobox-display { justify-content: space-between; text-align: left; }
/* A button's Font Awesome icon centred on its capitals (Christopher, 2026-10-20: the × in Dismiss sat
   high). Font Awesome's -0.125em centres the icon on the line box, about half a pixel above the caps'
   middle at 12px; -0.16em puts the two middles together. */
.btn > .svg-inline--fa { vertical-align: -0.16em; }

/* AI Connectors (integrations/apps.html): 12px body in the dark ink, 14px dark purple sub-headers and
   card names, the 10px chips, and a label / value grid (Christopher, 2026-10-20). */
.fo-connectors, .fo-connectors p { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.fo-connectors-heading { font-size: 14px; font-weight: 600; color: #250d47; margin: 1.25rem 0 .75rem; }
.fo-connector-card { display: flex; flex-direction: column; height: 100%; padding: 1rem; border: 1px solid #dee2e6; border-radius: .375rem; background: #fff; }
.fo-connector-name { font-size: 14px; font-weight: 600; color: #250d47; margin: 0 0 .75rem; }
.fo-connectors .closer-pill { font-size: 12px; padding: .25rem .6rem; }
/* A label / value list: the dark purple caps label beside its value, one row each. */
.fo-detail-grid { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; align-items: center; margin: 0 0 1rem; }
.fo-detail-grid > dt { margin: 0; }   /* the caps label: .closer-eyebrow's rule */
.fo-detail-grid > dd { color: #2d2c2f; margin: 0; }
/* The copy-to-clipboard icon (fo-copy.js): a bare icon after what it copies, dark purple, hot pink on
   hover; the tick of a copy shows green, swapped in by CSS so the markup stays one icon. */
.fo-copy-btn { display: inline-flex; align-items: center; padding: 0 .25rem; margin-left: .2rem; border: 0; background: none; color: #250d47; font-size: 12px; line-height: 1; cursor: pointer; vertical-align: baseline; }
.fo-copy-btn:hover { color: #e91e63; }
.fo-copy-btn.is-copied { color: #1c6b34; }
.fo-copy-btn.is-copied > * { display: none; }
.fo-copy-btn.is-copied::after { content: "\2713"; font-weight: 700; }

/* ── APlus to the app standards (Christopher, 2026-10-20) ───────────────────
   The queue (aplus2/_queue_table.html, shared by Firm APlus and a company's
   APlus Requests tab) and the review screen (aplus2/review.html). */
/* Filters box: the light body holds the filter row and the status chips. */
.aplus-queue-header { padding-bottom: 0 !important; gap: 0; }
.aplus-queue-filters {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .5rem;
}
.aplus-queue-header > .aplus-bulk-bar,
.aplus-queue-header > .aplus-queue-stats { margin-left: .5rem; margin-right: .5rem; }
/* The dropdowns at the standard input size (29px, 12px); the filter is the Checks tab's search box. */
.aplus-queue-search-box { flex: 0 1 22rem; }
.aplus-queue-select { font-size: 14px; }
.aplus-queue-view-share { font-size: 14px; color: #2d2c2f; gap: 0; }
.aplus-queue-view-share .form-check-inline { margin: 0 .25rem 0 0; }
.aplus-queue-view-share .form-check-label { font-size: 14px; }
/* Status chips: the 10px caps pills the table's Status column wears, in the
   lifecycle palette; "on" is a border in the chip's own colour, as Desk's. */
.aplus-queue-chips .aplus-queue-chip,
.aplus-bulk-bar .aplus-queue-chip {
    font-size: 12px;
    font-weight: 600;
    padding: .25rem .6rem;
    line-height: 1.1;
    border: 1px solid transparent;
}
.aplus-queue-chips .aplus-queue-chip.aplus-queue-chip-active {
    outline: none;
    border-color: currentColor;
}
.aplus-queue-chips .aplus-chip-count { font-size: 12px; margin-left: 0; }
/* Turnaround strip: one 12px size, the numbers bold dark purple. */
.aplus-queue-stats { font-size: 14px; }
.aplus-queue-stat-value { font-size: 14px; color: #250d47; }
/* "By Client": bold dark purple, as Email Notifications' section titles. */
.aplus-queue-stats-by-client summary { font-size: 14px !important; padding: 0 !important; font-weight: 600; color: #250d47 !important; }
/* APlus's small tables (By Client, the metrics panel, the review's history): the table
   standard: a dark purple head with white 12px text, 12px cells, #dee2e6 rules. */
.aplus-subtable { font-size: 14px; }
.aplus-subtable th,
.aplus-subtable td { padding: .35rem .5rem; border-top: 1px solid #dee2e6; color: #2d2c2f; }
.aplus-subtable th { background: #250d47; color: #fff; font-weight: 600; border-top: 0; }
/* The queue table fits the window (fo-check-scroll.js measures the room left). */
.aplus-table-scroll[style*="--fo-check-scroll-h"] { max-height: var(--fo-check-scroll-h); }
/* Each row's visually-hidden Review link is absolutely positioned: contained here, it scrolls
   with its row instead of stretching the page to the table's full height. */
.aplus-table-scroll { position: relative; }
.aplus-queue-stat-label { color: #495057; }
/* The table: the fo-check-table look: a dark purple head with white 12px
   text, 12px cells, top-aligned. */
.aplus-queue-table.table > :not(caption) > * > * { font-size: 14px; vertical-align: top; }
.aplus-queue-table.table > tbody > * > * { font-size: 14px; }   /* table data at 14px, the head stays 12px (Christopher, 2026-11-10) */
.aplus-queue-table td { color: #2d2c2f; }
.aplus-queue-table .aplus-sticky-thead { background: #250d47; }
.aplus-queue-table .aplus-sticky-thead th {
    color: #fff;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}
.aplus-queue-table thead th.aplus-sorted[data-sort-rank]:not([data-sort-rank=""])::before { color: rgba(255, 255, 255, .7); }
.aplus-queue-table .closer-pill { font-size: 12px; padding: .25rem .6rem; line-height: 1.1; }
.aplus-client-slug { font-size: 14px; color: #495057; }
.aplus-queue-note { margin-top: .5rem; font-size: 14px; font-weight: 400; color: #2d2c2f; }   /* the theme p is a light 300 */

/* Review screen: 14px dark purple panel titles; buttons centre the icon,
   label and kbd hint (.aplus-btn). */
.aplus-proposal-bar-title,
.aplus-conversation-title { font-size: 14px; font-weight: 600; color: #250d47; }
.aplus-btn .aplus-kbd { margin-left: .35rem; color: inherit; box-shadow: none; }
/* 12px for the fields, help lines and links; caps labels on the ticket's
   people fields. */
.aplus-field-label,
.aplus-field-value,
.aplus-ticket-summary,
.aplus-action-note,
.aplus-unit-source,
.aplus-paid-toggle,
.aplus-lines-note,
.aplus-empty-note,
.aplus-ticket-link { font-size: 14px; }
.aplus-people-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #250d47;
}
/* The queue's PO / dupe / advisory / dims chips at the one chip size. */
.aplus-queue-table :is(.aplus-po-chip, .aplus-check-queue, .aplus-advisory-badge, .aplus-dims-chip) {
    font-size: 12px;
    font-weight: 600;
    padding: .25rem .6rem;
    line-height: 1.1;
    border-radius: 999px;
}
/* Company APlus page: the section sub-headers at 14px, bold, dark purple. */
.aplus-sop-title,
.aplus-approvals-title { font-size: 14px; font-weight: 600; color: #250d47; }
/* Settings form: caps field labels above each control (.closer-eyebrow), the
   checkbox at the start of its row, 12px help lines. */
.aplus-setting-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #250d47;
}
.aplus-setting-row > .form-check-input.fo-check-bare { align-self: flex-start; margin: 0; }
.aplus-sop-meta { font-size: 14px; }
/* APlus checkboxes at the one 14px size (Closer's), whatever text sits beside them. */
:is(.aplus-settings-form, .aplus-queue-table, #aplus-review, .aplus-metrics-panel, .aplus-metrics-popover) .form-check-input.fo-check-bare[type=checkbox] {
    width: 14px; height: 14px; font-size: 14px; margin: 0 .4rem 0 0; vertical-align: middle; flex: none; float: none;
}
.aplus-ticket-summary code { font-size: 14px; }
/* The stat tiles' hover histogram: big enough to read (Christopher, 2026-10-20). Drawn at
   420 x 130 (+14 for the axis), so its 10px labels are 10px on screen. */
.aplus-metrics-popover { width: 440px; padding: .5rem .6rem; }
.aplus-metrics-popover .aplus-metrics-svg { height: 144px; }
.aplus-metrics-popover .aplus-metrics-axis { font-size: 14px; fill: #495057; }
.aplus-metrics-popover-caption,
.aplus-metrics-hint { font-size: 14px; }
/* One .5rem gap between every control in the filter row, inside the saved-views group too. */
.aplus-queue-views,
.aplus-queue-view-name-wrap { gap: .5rem; }
/* Every APlus chip one height (19px, the table's status pill): a chip that carries a 1px
   border gives that pixel back from its padding. */
.aplus-queue-chips .aplus-queue-chip,
.aplus-bulk-bar .aplus-queue-chip,
.aplus-queue-table :is(.aplus-po-chip, .aplus-check-queue, .aplus-advisory-badge, .aplus-dims-chip) {
    padding: calc(.25rem - 1px) calc(.6rem - 1px);
}
.aplus-queue-table .aplus-po-chip { font-family: inherit; }
.aplus-queue-views > .aplus-composer-note:empty { display: none; }   /* an empty note took a gap of its own */
.aplus-ticket-summary { color: #2d2c2f; font-weight: 400; }   /* the intro lines over each APlus table, at body text */
/* Review header: one centre line; its square buttons at the 29px button height; the status
   and dupe chips at the 10px chip size. */
.aplus-review-header { align-items: center !important; }
.aplus-review-header > * { margin-top: 0; margin-bottom: 0; }
.aplus-nav-btn { height: 29px; min-width: 29px; font-size: 12px; }
.aplus-review-header .closer-pill,
.aplus-dupe-check-status { font-size: 12px; font-weight: 600; padding: .25rem .6rem; line-height: 1.1; }
.aplus-bdc-host,
.aplus-entity-switch,
.aplus-status-menu-wrap { font-size: 14px; }
/* Empty states (no documents, no bill units): 12px body text, not the faded theme muted. */
.aplus-empty-text { font-size: 14px; font-weight: 400; color: #2d2c2f; }
/* Re-propose / PDF the Email under an empty proposal: sized to their labels, side by side. */
.aplus-actions-inline { flex-direction: row; justify-content: center; flex-wrap: wrap; width: auto; max-width: none; }
.aplus-actions-inline > .aplus-repropose { flex-basis: 100%; }
/* "Wrong entity…" is a button; the company dropdown it opens is the standard one, its display
   collapsed under the button so the panel (search box and list) opens beneath it. */
.aplus-entity-switch { position: relative; }
.aplus-entity-switch .fo-combobox { position: absolute; left: 0; top: 100%; width: 22rem; height: 0; min-width: 0; }
.aplus-entity-switch .fo-combobox-display { visibility: hidden; height: 0; padding: 0; border: 0; }
/* The review's header box: 5px around its controls. */
.card-header.aplus-review-header { padding: 5px !important; }
/* The review's popups (Layout, Add a vendor, Help): a 14px dark purple title, the standard
   bordered ×, 12px body text at the dark body colour. */
.aplus-help-title { font-size: 14px; font-weight: 600; color: #250d47; }
.aplus-help-panel .closer-modal-x { position: absolute; top: .75rem; right: .75rem; }
.aplus-layout-panel .form-check { margin: 0; min-height: 0; }
.aplus-layout-panel .form-check-label { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.aplus-layout-panel .form-check-label strong { color: #250d47; }
.aplus-help-panel .aplus-empty-note { font-size: 14px; color: #2d2c2f; }
/* The panes start .5rem under the header box, the same room as between the columns (the grid's
   gap) and under the proposal bar (a margin on the header, not padding on the layout, so
   fo-check-scroll.js measures the panes' real top). */
.card-header.aplus-review-header { margin-bottom: .5rem; }
/* The dupe check reads as the other chips: caps. */
.aplus-dupe-check-status { text-transform: uppercase; letter-spacing: .03em; }
/* The timer's "auto" and the top bar's "Demo mode": the dark purple caps label (.closer-eyebrow).
   Demo mode keeps its amber while it is on. */
.fo-timer-auto,
.fo-timer-nav-item .fo-timer-auto,
.fo-demo-mode-form .form-check-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #250d47;
}
.fo-demo-mode-item.fo-demo-on .form-check-label { color: #b45309; }
/* The status menu: 10px chips, 12px descriptions at the body colour. */
.aplus-status-menu-item .closer-pill { font-size: 12px; padding: .25rem .6rem; line-height: 1.1; }
.aplus-status-menu-label { font-size: 14px; color: #2d2c2f; }
/* Re-propose guidance: the standard input (12px, light grey border), then the run button and
   Cancel (right-most) on one row. */
.aplus-sop-text.aplus-repropose-text {
    font-family: inherit;
    font-size: 14px;
    color: #2d2c2f;
    border: 1px solid lightgray;
    border-radius: .375rem;
}
.aplus-repropose-buttons { display: inline-flex; gap: .5rem; align-self: flex-start; }
/* The review's < QUEUE: 12px. */
#product-tabs .aplus-back-link { font-size: 14px; }
/* The ticket composer (thread_panel.html, APlus and the Zendesk page). The desk
   page overrides this with the reading size; APlus keeps 12px. */
.aplus-composer-body { font-size: 12px; }
/* A chip's remove ×: a drawn cross, centred on the chip (the "×" glyph sat below the middle of its
   line box). The text stays for screen readers; the cross is the button's own colour. */
.aplus-composer-chip-x {
    font-size: 0;
    width: 14px;
    height: 14px;
    padding: 0;
    margin-left: .2rem;
    flex: none;
    align-self: center;
    background-color: currentColor;
    color: #5a2ca0;
    opacity: .6;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 8px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 8px no-repeat;
}
.aplus-composer-chip-x:hover { opacity: 1; }
/* The ticket's people fields at the standard input size, so they line up with the dropdowns. */
.aplus-people-input {
    height: 29px;
    font-size: 14px;
    color: #2d2c2f;
    border: 1px solid lightgray;
    border-radius: .375rem;
    padding: 0 .5rem;
}
.aplus-people-chip { font-size: 12px; line-height: 1.4; }
/* Review page chips at the one chip size: 10px caps pills, 19px tall: the unit head's kind and
   status, the document tab's type, and the fields' DOCUMENT / AI provenance tags. */
#aplus-review .closer-pill,
.aplus-chip {
    font-size: 12px;
    font-weight: 600;
    padding: .25rem .6rem;
    line-height: 1.1;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.aplus-chip { min-width: 0; }
/* The ticket's tab runs into the card under it: no line where the card's shadow meets the tab. */
.nav-link.active.aplus-review-title { position: relative; z-index: 2; box-shadow: 0 3px 0 #fff; }
/* Bill lines: every field the standard 29px / 12px input, one line height and padding, so the
   auto-growing Account and Description boxes read level with Amount. */
.aplus-line-input {
    font-size: 14px;
    line-height: 19px;
    padding: 4px 8px;
    color: #2d2c2f;
    border: 1px solid lightgray;
    border-radius: .375rem;
}
input.aplus-line-input { height: 29px; }
.aplus-line-grow { line-height: 19px; min-height: 29px; }
/* Proposal fields: caps dark purple labels (.closer-eyebrow), each on its value's first line:
   the row aligns on the first baseline, so a two-line value (Description, AI notes) keeps its label
   at the top and a field with a dropdown beside it still reads level. */
.aplus-field-row { align-items: baseline; }
.aplus-field-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #250d47;
}
/* The action rail's help lines at body text. */
.aplus-action-note { color: #2d2c2f; font-weight: 400; }
/* The timer's AUTO: checkbox to label the same room as button to checkbox (.fo-timer's gap). */
.fo-timer-auto { gap: .35rem; }
.fo-timer-auto .form-check-input.fo-check-bare[type=checkbox] { margin: 0; }
/* Demo mode's switch: a smaller track (26 x 14) with its knob inside it. The theme's 20px knob
   hung 5px past each end of the track, so when on it ran into the label. */
.fo-demo-mode-form .form-switch .form-check-input { width: 26px; height: 14px; }
.fo-demo-mode-form .form-switch .form-check-input::after { width: 10px; height: 10px; top: 1px; left: 1px; }
.fo-demo-mode-form .form-switch .form-check-input:checked::after { transform: translateX(12px); }
/* A read-only field (AI notes) reads as plain text: no editable-looking fill. */
.aplus-field-value.aplus-field-readonly { background: none; padding: .15rem .3rem; }
/* The proposal's AI summary is read-only too: no fill. */
.aplus-summary-card { background: none; }
/* The unit's source document name: bold dark purple. */
.aplus-unit-source { font-weight: 600; color: #250d47; }
/* Key hints (A, R, X, S, O): the glyph centred in its box (the line box left it riding low). */
.aplus-kbd { line-height: 1; padding: .2rem .3rem; text-box: trim-both cap alphabetic; }
/* APlus's expand / collapse chevrons: room between the chevron and its label. */
:is(#aplus-review, .aplus-queue-stats-by-client, .aplus-followup-notice) summary > .closer-task-section-caret:first-child { margin-right: .4rem; }
/* The ticket's people fields (thread_panel.html): a two-column grid, Subject and Tags spanning
   both. Labels share one width so each column's controls line up; controls fill their cell at
   the standard 29px / 12px input size. */
.aplus-people {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .5rem 1rem;
    align-items: center;
}
.aplus-people .aplus-people-field { min-width: 0; flex-wrap: nowrap; }
.aplus-people .aplus-people-field-wide { grid-column: 1 / -1; flex-wrap: wrap; }
.aplus-people .aplus-people-label { flex: 0 0 4.4rem; }   /* REQUESTER, the longest, fits */
.aplus-people .aplus-people-field > .aplus-people-input,
.aplus-people .aplus-people-field > .fo-combobox { flex: 1 1 0; min-width: 0; width: auto; }
.aplus-people-input {
    height: 29px;
    font-size: 14px;
    color: #2d2c2f;
    border: 1px solid lightgray;
    border-radius: .375rem;
    padding: 0 .5rem;
}
/* Tags: the label, the chips and the add box each on their own line. */
.aplus-people .aplus-people-field-wide:has(> .aplus-people-chips) { flex-direction: column; align-items: flex-start; gap: .35rem; }
.aplus-people .aplus-people-field-wide > .aplus-people-chips:empty { display: none; }
.aplus-people .aplus-people-field-wide:has(> .aplus-people-chips) > * { flex: none; width: 100%; }   /* the label's 4.4rem basis was its HEIGHT in a column */
/* APlus buttons: 29px. The caps label's middle sits ~.6px above the button's centre (Roboto's
   ascent), where the icon and the key hint centre their boxes: lift those two to the capitals
   (measured on Save lines: caps middle 13.9px, icon middle 14.5px). */
.aplus-btn { height: 29px; }
.aplus-btn > .svg-inline--fa,
.aplus-btn > .aplus-kbd { position: relative; top: -.6px; }
/* A field's inline editor at the field's own 12px. */
.aplus-field-input { font-size: 14px; color: #2d2c2f; }
/* Bill lines' action row: the buttons on one line (labels never wrap), the note on its own line
   under them; "Unsaved" in Bootstrap's danger red, not an ad-hoc orange. */
.aplus-lines-actions { flex-wrap: wrap; }
.aplus-lines-actions > .aplus-lines-note { flex-basis: 100%; }
.aplus-lines-actions > .aplus-lines-note:empty { display: none; }
.aplus-btn { white-space: nowrap; }
.aplus-lines-note.aplus-lines-unsaved { color: var(--bs-danger, #dc3545); font-weight: 600; }
/* The lines' running total against the bill's Total (TM-2330): a 12px inline message line under
   the table, coloured by Bootstrap's text-success / text-danger; empty until a line has an amount. */
.aplus-lines-total { font-size: 14px; font-weight: 400; margin-top: .4rem; }
.aplus-lines-total:empty { display: none; }
/* A bill line's remove: the standard 29px bordered square (.closer-modal-x's shape) in danger red. */
.btn.aplus-line-remove {
    width: 29px; height: 29px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; line-height: 1;
}
/* The Billable checkbox centred on the 29px inputs beside it (the cells are top-aligned). */
#aplus-review .aplus-line-billable-cell .form-check-input.fo-check-bare[type=checkbox] { margin: 7.5px 0 0; }
/* A field row's DOCUMENT / AI chip is always last, so the chips form one column: the terms
   dropdown, To lines and the other extras sit before it. */
.aplus-field-row > .aplus-chip { order: 1; }
/* Ticket people: 10px from each label to its control; each column's labels share its longest
   one's width (left: FOLLOWERS, right: ASSIGNEE), so the controls still line up. */
.aplus-people .aplus-people-field { gap: 10px; }
.aplus-people .aplus-people-label { flex: 0 0 63px; }
.aplus-people .aplus-people-field:has([data-role=people-assignee], [data-role=people-cc-input]) > .aplus-people-label { flex-basis: 52px; }
/* Demo mode's switch and caps label sit 1px lower so they read level with the user's name: the
   boxes share a centre, but caps centre on their capitals and the mostly-lowercase name reads
   about a pixel lower. */
.fo-demo-mode-form { position: relative; top: 1px; }
/* Paid offline details: the standard 29px / 12px inputs, full width; Sync at 12px with its
   checkbox centred; "Pay together with other bills" a caps label above its dropdown. */
.aplus-paid-details .aplus-paid-input {
    width: 100%;
    height: 29px;
    font-size: 14px;
    color: #2d2c2f;
    border: 1px solid lightgray;
    border-radius: .375rem;
    padding: 0 .5rem;
}
.aplus-paid-details .fo-combobox { width: 100%; }
/* Record payment on a booked bill (#667377): caps labels above their inputs, the actions in a row. */
.aplus-record-payment { margin-top: .4rem; }
.aplus-record-payment .closer-eyebrow { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.aplus-record-payment .aplus-paid-input,
.aplus-record-payment .aplus-record-payment-file { font-size: 14px; font-weight: 400; letter-spacing: normal; text-transform: none; }
.aplus-record-payment-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.aplus-record-payment-actions .btn { white-space: nowrap; }
.aplus-record-payment-note { font-size: 14px; }
.aplus-paid-sync { display: flex; align-items: center; gap: .4rem; font-size: 14px; font-weight: 400; color: #2d2c2f; margin: 0; }
#aplus-review .aplus-paid-sync .form-check-input.fo-check-bare[type=checkbox] { margin: 0; }
.aplus-paygroup-label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #250d47;
}
.aplus-paygroup-label .fo-combobox { text-transform: none; letter-spacing: normal; font-weight: 400; }
.aplus-paid-toggle { font-size: 14px; }
/* Key hints in the app font: the cap trim above centres a letter in Roboto, but Menlo's metrics
   left it low. */
.aplus-kbd { font-family: inherit; font-weight: 600; font-size: 12px; }
/* A typeable APlus dropdown (data-combo-kind: account, class, vendor, Paid from, …) wears the
   standard dropdown's chevron at its right edge. */
#aplus-review :is(input, textarea)[data-combo-kind] {
    padding-right: 1.6rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .5rem center / 10px 10px;
}
/* Paid offline's box flush with the action buttons above it (the theme's label margin pushed it 4px in). */
.aplus-actions > .aplus-paid-toggle { margin-left: 0; margin-right: 0; }
/* A checkbox beside wrapping text sits on the first line, not the middle of the block: 16.8px lines,
   the 14px box 1.4px down. */
.aplus-paid-sync { align-items: flex-start; line-height: 16.8px; }
#aplus-review .aplus-paid-sync .form-check-input.fo-check-bare[type=checkbox] { margin-top: 1.4px; }
/* An action drawn as a link with its icon, not a button (the review screen's
   Description "Lines", the split cards' Zendesk links): dark purple, hot pink on hover;
   -success is the dark green of the Zendesk button it replaced. */
.fo-icon-link {
    background: none; border: 0; padding: 0;
    font-size: 12px; font-weight: 600; color: #250d47;
    cursor: pointer; white-space: nowrap; text-decoration: none;
}
.fo-icon-link-success { color: #1c6b34; }
.fo-icon-link:hover, .fo-icon-link:focus-visible { color: #e91e63; }
/* Qty and Price: wide enough for their numbers, right-aligned like Amount. */
.aplus-lines-table .aplus-line-qty { width: 5rem; min-width: 5rem; max-width: none; }
.aplus-lines-table [data-role=line-price].aplus-line-qty { width: 6.5rem; min-width: 6.5rem; }
/* Bill lines: every header left-aligned over its input, money columns included. */
.aplus-lines-table thead th { text-align: left !important; }
/* A dropdown's search box has no key hint on its right, so its clear × sits at the box's edge
   (the Checks search's 3.4rem kbd room left it floating mid-box). */
.fo-combobox-search-box .fo-check-search-input { padding-right: .5rem; }
/* "Bill.com host": the label in bold dark purple; its dropdown keeps the control's own type. */
.aplus-bdc-host { color: #250d47; font-weight: 600; }
.aplus-bdc-host .fo-combobox { font-weight: 400; }
/* An empty chip row (no CCs / followers yet) takes no gap, so its field's control starts where the
   others in the column do. */
.aplus-people .aplus-people-chips:empty { display: none; }
/* The theme's label margins: off the <label> people fields (they sat 4px right of the <div> ones)
   and off Paid offline (its 8px bottom margin doubled the rail's gap to the details). */
.aplus-people label.aplus-people-field { margin: 0; }
.aplus-actions > .aplus-paid-toggle { margin-bottom: 0; }
.aplus-actions > .aplus-paid-details { margin-top: 0; }   /* the rail's own .4rem gap is the room */
/* History's Ref cell: the italic Bill.com link on its own line, flush left under the ref (the
   italics set it apart; the indent was extra). */
.aplus-subtable .aplus-check-asof { display: block; margin-left: 0; }
/* The boxed search's clear ×: dark grey (hot pink on hover) with the pointer, not the browser's
   blue (every .fo-check-search-input: the Checks filter, every dropdown's search, APlus). */
.fo-check-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    margin-left: .35rem;
    cursor: pointer;
    background-color: #495057;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 1.5l7 7M8.5 1.5l-7 7' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 1.5l7 7M8.5 1.5l-7 7' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.fo-check-search-input::-webkit-search-cancel-button:hover { background-color: #e91e63; }
/* A link that opens another site (the ledger's vendor, the Zendesk ticket): the external-link icon after it. */
.aplus-ext-icon { margin-right: .3rem; font-size: .85em; }   /* leads its link (Christopher, 2026-11-12) */
/* Layout popup: each radio on its text's first line (a flex label, the theme's float off), and the
   column-order boxes at 12px. */
.aplus-layout-panel .form-check { padding-left: 0; }
.aplus-layout-panel .form-check-label { display: flex; align-items: flex-start; gap: .4rem; line-height: 18px; }
.aplus-layout-panel .form-check-input { float: none; flex: none; margin: 2px 0 0; }
.aplus-layout-panel .form-check-label .mx-1 { margin: 0 !important; }
.aplus-layout-chip { font-size: 12px; }
/* Key hints outside a button: dark purple on a pale purple ground, readable (the theme's kbd
   left a white letter on light grey). A button's own hint keeps its colour. */
.aplus-kbd { color: #250d47; background: #e6e0f0; }
.aplus-btn .aplus-kbd { color: #250d47; background: #e6e0f0; }   /* the buttons' hints, the same chip */
/* The Layout popup as the standard modal: the modal's own header / body / footer spacing, not the
   help panel's padding; the x back in the header's flow. */
.modal-content.aplus-help-panel { padding: 0; }
.aplus-layout-panel .modal-header .closer-modal-x { position: static; }
.aplus-layout-panel.fo-std-modal .modal-body,
.aplus-layout-panel.fo-std-modal .modal-body p { font-size: 14px; }
/* (The theme's .form-check .form-check-input pulls the radio 27px left into the label's padding;
   in the flex label it belongs in the flow, centred on the 18px first line.) */
.aplus-layout-panel .form-check .form-check-input[type=radio] { margin: 3px 0 0 !important; }
/* Keyboard Shortcuts as the standard modal: 12px body; its table without the dark head (it has none). */
.aplus-shortcuts-panel.fo-std-modal .modal-body,
.aplus-shortcuts-panel.fo-std-modal .modal-body p,
.aplus-shortcuts-panel .aplus-subtable td { font-size: 14px; }
/* (The review's 14px-checkbox rule, id-specific, kept its .4rem right margin on AUTO's box on
   top of the label's gap: the gap alone is the room.) */
#aplus-review .fo-timer-auto .form-check-input.fo-check-bare[type=checkbox] { margin: 0; }
.fo-timer-auto { gap: .3rem; }
/* Buttons with a key hint: the icon and label centred in the button, the hint pinned to its right
   edge (equal padding both sides keeps the label centred); the hint is the shortcut chip whatever
   the button's colour (Approve's green had bled into it). */
.aplus-btn { position: relative; }
.aplus-btn:has(> .aplus-kbd) { padding-left: 1.9rem; padding-right: 1.9rem; }
.aplus-btn.btn > .aplus-kbd {
    position: absolute;
    right: .45rem;
    top: 50%;
    transform: translateY(calc(-50% - .6px));
    margin: 0;
    color: #250d47 !important;
    background: #e6e0f0 !important;
}
/* The status menu's hovered / focused item: the dropdowns' blue with white text (its chip keeps
   its own colours). */
.aplus-status-menu-item:hover,
.aplus-status-menu-item:focus-visible { background: var(--fo-info-blue, #1A73E8) !important; outline: none; }
.aplus-status-menu-item:hover .aplus-status-menu-label,
.aplus-status-menu-item:focus-visible .aplus-status-menu-label { color: #fff; }
/* Empty-state notes (No prior bills, Showing the N most recent, …) at body text. */
.aplus-empty-note { color: #2d2c2f; font-weight: 400; }
/* Proposal field values in body text (not dark purple), and never squeezed so narrow a date wraps. */
.aplus-field-value { color: #2d2c2f; min-width: 5.5rem; }
/* Due date's terms dropdown gives way first, so the row's DOCUMENT chip is never clipped. */
.aplus-field-row > .fo-combobox { flex: 0 1 7rem; min-width: 4.5rem; }
/* The bill's Type reads capitalised (Invoice, Credit memo, Statement) in its value, editor and
   options; the stored value stays lowercase. */
.aplus-combo-menu[data-combo-kind=unit-kind] .fo-combobox-option,
.aplus-field-row[data-combo=unit-kind] .aplus-field-value,
.aplus-field-row[data-combo=unit-kind] .aplus-field-input { text-transform: capitalize; }
/* Open vendor credits: the subtable's head over left-aligned columns; the Apply box the standard
   29px / 12px input, its checkbox centred on it. */
.aplus-credits-table thead th { text-align: left !important; }
.aplus-credits-table .aplus-credit-amount {
    width: 6.5rem; height: 29px; font-size: 14px; color: #2d2c2f; text-align: right;
    border: 1px solid lightgray; border-radius: .375rem; padding: 0 .5rem;
}
#aplus-review .aplus-credits-table .form-check-input.fo-check-bare[type=checkbox] { margin: 7.5px 0 0; }
.aplus-credits-table td { line-height: 29px; padding-top: .35rem; padding-bottom: .35rem; }
/* Every link on the review that opens another site starts with the external-link icon (the queue's
   fa-arrow-up-right-from-square, drawn here so links the script builds get it too); a button, a
   chip-link, or a link already carrying an icon is left alone. */
#aplus-review a[target=_blank][href^="http"]:not([href*="finoptimal.com"]):not([href*="finoptimal.test"]):not(.btn):not(.aplus-approval-chip):not(:has(svg, i, .aplus-ext-icon))::before {
    content: "";
    display: inline-block;
    width: .78em;
    height: .78em;
    margin-right: .3rem;
    vertical-align: -.05em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112v320c0 44.2 35.8 80 80 80h320c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v112c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h112c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112v320c0 44.2 35.8 80 80 80h320c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v112c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h112c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Credits: the checkbox sits in the 29px line box with the text (no extra top margin). */
#aplus-review .aplus-credits-table .form-check-input.fo-check-bare[type=checkbox] { margin: 0; vertical-align: middle; }
/* Amount / Qty / Price / Apply are number inputs: right-aligned figures, no spinner arrows. */
#aplus-review input[type=number] { text-align: right; -moz-appearance: textfield; }
#aplus-review input[type=number]::-webkit-outer-spin-button,
#aplus-review input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* "Bill Host": the caps label, as AUTO beside the timer. */
.aplus-bdc-host-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; }
/* The header's ticket number and the prev / next ticket numbers in bold. */
.aplus-ticket-number,
.aplus-nav-peek-id { font-weight: 600; }
/* Demo mode on: the brand's hot pink (switch and label), not amber. */
.fo-demo-mode-item.fo-demo-on .form-check-label { color: #e91e63; }
.fo-demo-mode-item.fo-demo-on .form-check-input {
    background-color: #e91e63;
    border-color: #e91e63;
    box-shadow: 0 0 0 .2rem rgba(233, 30, 99, .25);
}
/* History's Bill.com link: italic, in the link colours (dark purple, hot pink on hover). */
.aplus-subtable a.aplus-check-asof { color: #250d47; }
.aplus-subtable a.aplus-check-asof:hover { color: #e91e63; }
.aplus-composer-note.aplus-error-note { display: block; }
/* Split lineage: the ticket number bold, Zendesk the small green button (the ticket panel's). */
.aplus-zendesk-btn { margin: 0 .25rem; vertical-align: middle; }
/* A unit's head: the source document's name first, then its kind and status chips. */
.aplus-unit-head > .aplus-unit-source { order: -1; }
/* In-line actions beside a value (Lines, New vendor, Move the date): the dark purple link with its
   icon, hot pink on hover, not a button. */
.aplus-text-btn {
    background: none; border: 0; padding: 0; margin: 0 0 0 .35rem;
    font-size: 12px; font-weight: 600; color: #250d47;
    cursor: pointer; white-space: nowrap; text-decoration: none;
}
.aplus-text-btn:hover { color: #e91e63; }
/* A new (not-in-ledger) vendor's row: its orange bar sits in room of its own, not under the label. */
.aplus-field-row.aplus-vendor-new-row { padding-left: .5rem; }
/* Duplicate / PO / review banners at 12px. */
#aplus-review .aplus-check { font-size: 14px; }
/* The Procurify PO summary: 12px body text, the PO link bold. */
.aplus-po-head { font-size: 14px; color: #2d2c2f; font-weight: 400; }   /* the theme p is a light 300 */
.aplus-po-head > a:first-child { font-weight: 600; }
/* "Lines from Procurify PO …": the PO link bold, as in the PO summary. */
.aplus-lines-note a { font-weight: 600; }
/* The loud duplicate / PO banners in Bootstrap's danger red: the text, the bar, and a border and
   ground tinted from the same red. */
.aplus-check-dupe-loud {
    color: var(--bs-danger, #F44335);
    background: rgba(244, 67, 53, .07);
    border-color: rgba(244, 67, 53, .35);
    border-left-color: var(--bs-danger, #F44335);
}
/* Prev / next ticket buttons: on hover the ticket number turns hot pink with the chevron. */
.aplus-nav-btn:hover,
.aplus-nav-btn:hover .aplus-nav-peek-id { color: #e91e63; }
/* Add a Vendor as the standard modal: the panel is a column (header, scrolling body, footer)
   capped at the window, so only the body scrolls. */
.modal-content.aplus-vendor-panel { display: flex; flex-direction: column; max-height: 88vh; overflow: hidden; }
.aplus-vendor-panel > .modal-header,
.aplus-vendor-panel > .modal-footer { flex: none; }
.aplus-vendor-panel > .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.aplus-vendor-panel .modal-header .closer-modal-x { position: static; }
.aplus-vendor-panel.fo-std-modal .modal-body,
.aplus-vendor-panel.fo-std-modal .modal-body p,
.aplus-vendor-panel.fo-std-modal .modal-body li:not([role="option"]):not(.fo-combobox-option) { font-size: 14px; }
/* Its fields: caps labels above the standard 29px / 12px inputs and dropdowns. */
.aplus-vendor-grid label {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
    gap: .25rem; margin: 0;
}
.aplus-vendor-grid input,
.aplus-vendor-grid select {
    height: 29px; font-size: 14px; color: #2d2c2f; font-weight: 400;
    border: 1px solid lightgray; border-radius: .375rem; padding: 0 .5rem;
    text-transform: none; letter-spacing: normal;
}
.aplus-vendor-grid .fo-combobox { width: 100%; text-transform: none; letter-spacing: normal; font-weight: 400; }
/* The similar-vendors notice: the solid triangle, 12px, the confirm checkbox centred on its text. */
.aplus-vendor-warn { font-size: 14px; }
.aplus-vendor-confirm { margin: 0; font-size: 14px; color: #2d2c2f; }
#aplus-review .aplus-vendor-confirm .form-check-input.fo-check-bare[type=checkbox],
.aplus-vendor-confirm .form-check-input.fo-check-bare[type=checkbox] { margin: 0; width: 14px; height: 14px; float: none; }
/* The APlus modals' footers: .5rem between the buttons (the action, then Close / Cancel). */
.aplus-help-panel > .modal-footer { gap: .5rem; }
.aplus-help-panel > .modal-footer > * { margin: 0; }
/* The similar-vendors notice keeps its darker amber (the standard modal's body ink had greyed it). */
.aplus-vendor-panel .aplus-vendor-warn,
.aplus-vendor-panel.fo-std-modal .modal-body .aplus-vendor-warn p,
.aplus-vendor-panel .aplus-vendor-warn li { color: #5a4600; }
/* Its confirm checkbox centred on the text beside it. */
.aplus-vendor-confirm { display: flex; align-items: center; line-height: 1.4; }
.aplus-vendor-confirm > .form-check-input.fo-check-bare[type=checkbox] { margin: 0 !important; align-self: center; position: static; }
/* Similar vendors: the bullets sit just under the explanation (the paragraph's 1rem margin was extra). */
.aplus-vendor-warn p { margin: 0; }
.aplus-vendor-warn ul { margin: .3rem 0 .35rem 1.1rem; padding-left: .5rem; }
/* "Similar vendors already exist." and its triangle at 14px, a heading over the 12px explanation. */
.aplus-vendor-warn p > strong,
.aplus-vendor-warn p > .svg-inline--fa,
.aplus-vendor-warn p > .fa-triangle-exclamation { font-size: 14px; }
/* The intro line over an APlus table (company Requests / SOP tabs, the companies list): 10px all round. */
.card-header.aplus-ticket-summary { padding: 10px !important; }
/* The grey intro bar over an APlus panel: 5px under it before what follows. */
.card-header.aplus-ticket-summary { margin-bottom: 5px; }

/* ── A company's APlus page: A/P SOP & Settings and A/P Central, to the standards ───────────── */
/* Section heads: the kind chip, title, info and notes on one centred line. */
.aplus-sop-head { align-items: center; }
.aplus-sop-meta { font-size: 14px; color: #495057; font-weight: 400; }
/* Chips at the one size: 10px caps pills, 19px tall (the section kind, the 1099 / W-9 / reason chips). */
.closer-pill.aplus-kind-pill,
.aplus-approval-chip {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    padding: .25rem .6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
button.aplus-approval-chip { border: 0; }
/* Inputs: the standard 29px / 12px box (vendor defaults, settings, tax year, SOP editors). */
.aplus-vendor-table .aplus-paid-input,
.aplus-settings-form .aplus-paid-input,
.aplus-taxyear-form .aplus-paid-input {
    height: 29px;
    font-size: 14px;
    color: #2d2c2f;
    border: 1px solid lightgray;
    border-radius: .375rem;
    padding: 0 .5rem;
    background: #fff;
}
.aplus-settings-form textarea.aplus-paid-input { height: auto; padding: 4px 8px; line-height: 19px; }
.aplus-sop-text {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #2d2c2f;
    border: 1px solid lightgray;
    border-radius: .375rem;
    padding: 6px 8px;
}
/* Tables (Vendor defaults, What APlus has learned, Vendor tax status): the table standard. */
.aplus-vendor-table { font-size: 14px; }
.aplus-vendor-table th,
.aplus-vendor-tax-table.table > thead > tr > th {
    background: #250d47 !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 0;
    padding: .4rem .5rem;
    box-shadow: none;
}
.aplus-vendor-table td,
.aplus-vendor-tax-table.table > tbody > tr > td {
    font-size: 14px;
    color: #2d2c2f;
    padding: .35rem .5rem;
    border-bottom: 1px solid #dee2e6;
}
/* Rows that carry 29px inputs centre their text on them; text-only rows read from the top. */
.aplus-vendor-table td { vertical-align: middle; }
[data-role=learned-rules] .aplus-vendor-table td,
.aplus-vendor-tax-table.table > tbody > tr > td { vertical-align: middle; }
.aplus-vendor-table td.aplus-vendor-name { font-weight: 600; color: #250d47; }
.aplus-vendor-tax-table .aplus-sortable::after { opacity: .8; }
.aplus-vendor-tax-table .aplus-sop-meta { color: #2d2c2f; }
/* The tax year picker: a caps label beside its dropdown, on the toolbar's line. */
.aplus-taxyear-form { display: inline-flex; align-items: center; gap: .4rem; }
.aplus-taxyear-form label.aplus-sop-meta {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; margin: 0;
}
.aplus-companies-toolbar { align-items: center; flex-wrap: wrap; }
/* The masked TIN and its "missing" flag at the table's 12px. */
.aplus-tin, .aplus-tin-missing { font-size: 14px; }
/* The queue's BILL / QuickBooks links: the app's links (dark purple, no underline, hot pink on hover). */
.aplus-queue-bill-links a { color: #250d47; text-decoration: none; }
.aplus-queue-bill-links a:hover { color: #e91e63; }
/* Queue chips: the shortcut letter in the review screen's key box. */
.aplus-queue-chips .aplus-queue-chip .aplus-kbd { margin-left: .3rem; }
/* A narrow Proposal pane: the action rail drops under the fields, its buttons in a
   grid, instead of sitting on top of the fields' chips. */
.aplus-unit-card { container-type: inline-size; }
@container (max-width: 38rem) {
    .aplus-unit-body { flex-direction: column; align-items: stretch; }
    .aplus-unit-body > .aplus-actions {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
        width: auto;
    }
    .aplus-unit-body > .aplus-actions > :not(.aplus-btn, .aplus-tooltip-wrap, .aplus-status-menu-wrap) { grid-column: 1 / -1; }
}
/* A button inside a wrapper (Mark request as…, a tooltipped button) fills its
   slot like the bare buttons beside it. */
.aplus-actions > :is(.aplus-status-menu-wrap, .aplus-tooltip-wrap) > .aplus-btn { flex: 1 1 auto; }
/* ── The app frame (Jesse, 2026-10-18 nav redesign; fo_saas/teams/nav_scope.py) ──────────────
   ONE left nav: the top bar's navigator says All clients or which client; the nav is three groups
   (Comms, Apps, Admin) whose items open in flyouts beside it, with the spanning apps tagged "All" on
   All clients and the one-client ones dimmed there; on a Settings page the nav becomes the settings
   nav (templates/settings_hub/_nav.html). */

/* The navigator (templates/web/components/scope_picker.html, static/js/fo-navigator.js) */
.fo-scope { display: inline-flex; align-items: center; gap: .5rem; }
.fo-scope-btn {
    display: inline-flex; align-items: center; gap: .4rem; height: 29px; padding: 0 .75rem;   /* the quick-nav box beside it */
    border: 1px solid #e4def0; border-radius: .5rem; background: #fff; font-size: 14px;
    color: #2d2c2f; white-space: nowrap; max-width: 20rem;   /* a long legal name was crowding QuickBooks off the bar */
}
.fo-scope-btn.dropdown-toggle::after { flex: none; }   /* the chevron stays; the name ellipsises */
.fo-scope-btn:hover { border-color: #c9c2d6; }
.fo-scope-btn.fo-scope-static { cursor: default; }
.fo-scope-firm { flex: none; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; color: #495057; }
.fo-scope-sep { flex: none; color: #8a8f98; }
.fo-scope-who { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #e91e63; font-weight: 500; }
.fo-scope-who.fo-scope-all { color: #250d47; }
.fo-scope-menu { padding: 0; }
.fo-scope-search { margin-bottom: .35rem; }
.fo-scope-search .fo-check-search-input { max-width: none; padding-right: .6rem; }
.fo-scope-label { font-size: 14px; font-weight: 600; color: #250d47; padding: .5rem .5rem .45rem; }   /* a column's sub-header, as .fo-casc-head */
.fo-scope-empty { font-size: 14px; color: #495057; padding: .5rem; }
/* Up to three columns side by side: firms & companies → a firm's clients → a client's apps. */
.fo-casc { display: flex; max-width: calc(100vw - 1.5rem); overflow-x: auto; }
.fo-casc-col { flex: none; width: 17rem; max-height: 70vh; overflow-y: auto; padding: .5rem; display: flex; flex-direction: column; }
.fo-casc-col + .fo-casc-col { border-left: 1px solid #dee2e6; }
.fo-casc-col[data-col="2"], .fo-casc-col.fo-casc-col-list { overflow: hidden; }   /* its client (or, with no firm, company) list scrolls, under a fixed title and search */
.fo-casc-col[hidden], .fo-casc-pane[hidden] { display: none; }
.fo-casc-pane { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.fo-casc-head { font-size: 14px; font-weight: 600; color: #250d47; padding: .5rem .5rem .45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-casc-list { position: relative; flex: 0 1 auto; min-height: 0; overflow-y: auto; }   /* relative: rows' offsetTop is from the list */
/* Only the client list gives way when a column runs long: its title, search and foot keep their height
   (the boxed search's 26rem flex basis is a width in a row, a height here). */
.fo-casc .fo-scope-search, .fo-casc-head, .fo-casc-foot { flex: none; }
.fo-casc-row { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border-radius: .375rem; font-size: 14px; color: #2d2c2f; line-height: 1.25; }
.fo-casc-row + .fo-casc-row { margin-top: 1px; }   /* two highlighted rows stay apart */
.fo-casc-row:hover, .fo-casc-row:focus, .fo-casc-row.fo-casc-open { background: #e7f1ff; color: #e91e63; outline: none; }
.fo-casc-row.active, .fo-casc-row.active:hover, .fo-casc-row.active.fo-casc-open { background: #250d47; color: #fff; }
.fo-casc-row[hidden] { display: none; }
.fo-casc-name { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.fo-casc-name small { color: #495057; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.fo-casc-row.active .fo-casc-name small { color: #d9d2e6; }
.fo-casc-caret { flex: none; font-size: 10px; opacity: .55; }
.fo-casc-icon { flex: none; width: 1rem; text-align: center; color: #250d47; }
.fo-casc-row:hover .fo-casc-icon, .fo-casc-row:focus .fo-casc-icon { color: #e91e63; }
.fo-casc-foot { display: block; margin-top: auto; border-top: 1px solid #dee2e6; padding: .5rem .5rem .2rem; font-size: 14px; color: #250d47; }
.fo-casc-foot:hover, .fo-casc-foot:focus { color: #e91e63; }
.fo-casc-loading { display: flex; align-items: center; gap: .5rem; padding: .5rem; font-size: 14px; }
/* The Companies tab with no company yet: one line where the table would be (TM-2474). */
.fo-directory-empty { font-size: 12px; font-weight: 400; color: #495057; }

/* The left nav's groups and their flyouts (templates/web/components/nav_group.html, static/js/nav-groups.js) */
.fo-nav-group-label { flex: 1 1 auto; min-width: 0; display: inline-flex; flex-direction: column; line-height: 1.15; }
.fo-nav-group-current { font-size: 14px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-nav-group-caret { flex: none; margin-left: auto; font-size: 10px; opacity: .55; }
.fo-nav-group-open .fo-nav-group-caret { opacity: 1; }
#sidenav-main .fo-nav-group-open > .nav-link:not(.active) { background: rgba(255, 255, 255, .08); }
.fo-nav-fly {
    position: fixed; z-index: 1060; min-width: 14rem; max-width: 20rem; overflow-y: auto; padding: .35rem;
    background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; box-shadow: 0 .5rem 1.5rem rgba(37, 13, 71, .18);
}
.fo-nav-fly[hidden] { display: none; }
.fo-nav-fly-head { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; padding: .35rem .6rem .3rem; }
.fo-nav-fly-link { display: flex; align-items: center; gap: .55rem; padding: .4rem .6rem; border-radius: .375rem; font-size: 14px; color: #2d2c2f; line-height: 1.2; }
.fo-nav-fly-link:hover, .fo-nav-fly-link:focus { background: #e7f1ff; color: #e91e63; outline: none; }
.fo-nav-fly-link.active, .fo-nav-fly-link.active:hover { background: #250d47; color: #fff; }
.fo-nav-fly-icon { flex: none; width: 1rem; text-align: center; color: #250d47; }
.fo-nav-fly-link:hover .fo-nav-fly-icon, .fo-nav-fly-link:focus .fo-nav-fly-icon { color: #e91e63; }
.fo-nav-fly-link.active .fo-nav-fly-icon { color: #fff; }
.fo-nav-fly-label { flex: 1 1 auto; min-width: 0; }
.fo-nav-fly-row { display: flex; align-items: center; }
.fo-nav-fly-row > .fo-nav-fly-link { flex: 1 1 auto; min-width: 0; }
.fo-nav-fly .fo-nav-star {
    flex: none; border: 0; background: transparent; color: #495057; cursor: pointer;
    padding: 0 .25rem; line-height: 1;
}
.fo-nav-fly .fo-nav-star:hover, .fo-nav-fly .fo-nav-star[aria-pressed="true"] { color: #250d47; }
.fo-nav-fly-link.fo-nav-dim { opacity: .55; }
.fo-nav-fly-link.fo-nav-dim:hover, .fo-nav-fly-link.fo-nav-dim:focus { opacity: 1; }
.fo-nav-fly-teaser { color: #495057; cursor: default; flex-wrap: wrap; }
.fo-nav-fly-teaser:hover { background: none; color: #495057; }
.fo-nav-fly-note { flex-basis: 100%; padding-left: 1.55rem; font-size: 14px; color: #495057; }
.fo-nav-fly-mark, .fo-nav-fly-ext { flex: none; font-size: 14px; color: #495057; }
.fo-nav-fly-link.active .fo-nav-fly-mark, .fo-nav-fly-link.active .fo-nav-fly-ext { color: #d9d2e6; }
.fo-nav-fly-rule { border-top: 1px solid #dee2e6; margin: .25rem .35rem; }
.fo-nav-all-tag {
    font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-left: .35rem;
    border: 1px solid #250d47; border-radius: 4px; padding: 0 .3rem; vertical-align: 1px; color: #250d47;
}
.fo-nav-fly-link.active .fo-nav-all-tag { border-color: currentColor; color: inherit; }

/* Saved Conversations views, listed under Comms (app_nav.html, nav-groups.js). */
#sidenav-main:not(.fo-drawer-closed) .fo-nav-views .nav-link {
    margin-left: 1.75rem; margin-right: .75rem; padding-top: .28rem; padding-bottom: .28rem;
    display: flex; align-items: center; gap: .4rem; font-size: 13px;
}
.fo-nav-views .fo-nav-view-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The nav link is white, and that color beats .closer-status-open, so the
   count was white on the light-blue chip. Pin both so the number stays
   readable on the dark rail and on the active row. */
#sidenav-main .fo-nav-views .nav-link .closer-tab-count {
    margin-left: auto; flex: none; background-color: #e3f2fd; color: #250d47; font-weight: 600;
}
.fo-nav-views-loading { display: flex; align-items: center; margin: .15rem 1rem .15rem 2.4rem; font-size: 14px; }

/* The settings nav (templates/settings_hub/_nav.html) */
.fo-settings-nav-title { font-size: 15px; font-weight: 500; margin: .25rem 0 .5rem; }
.fo-settings-scope-who { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .8; }
.fo-settings-external { font-size: 14px; opacity: .7; }
.fo-settings-nav-hint { font-size: 14px; color: #d9d2e6; margin: 0 1rem .5rem 2.75rem; }
/* You / Firm / Company read as headers, their links indented under them (Jesse, 2026-10-18 round 3). */
.fo-settings-scope-head, #fo-nav-favorites > h6 { font-size: 14px; letter-spacing: .06em; padding: .35rem 1rem 0 1.25rem; margin: 0; }
#sidenav-main:not(.fo-drawer-closed) .navbar-nav .nav-link.fo-settings-link { margin-left: 1.75rem; }
#sidenav-main .settings-search { margin: 0 .75rem .5rem 1rem; }
#sidenav-main .settings-search .fo-check-search-box { flex: none; width: 100%; }
#sidenav-main .settings-search .fo-check-search-input { padding-right: .6rem; max-width: none; }

/* Settings search results, beside the nav (static/js/settings-hub.js places the panel). */
.settings-search-results {
    position: fixed; z-index: 1060; width: 34rem;
    max-width: calc(100vw - 2rem); max-height: 70vh; overflow-y: auto;
    background: #fff; border: 1px solid #dee2e6; border-radius: .5rem;
    box-shadow: 0 .5rem 1.5rem rgba(37, 13, 71, .15);
}
.settings-search-hit { display: block; padding: .5rem .75rem; border-top: 1px solid #dee2e6; color: #2d2c2f; }
.settings-search-hit:first-child { border-top: 0; }
.settings-search-hit:hover, .settings-search-hit.active { background: #fdeef3; color: #2d2c2f; }
.settings-search-path { font-size: 14px; color: #495057; }
.settings-search-label { font-size: 14px; font-weight: 600; color: #250d47; }
.settings-search-help { font-size: 14px; color: #495057; }
.settings-search-was { font-size: 14px; color: #495057; margin-top: 2px; }
.settings-search-hit mark { background: #ffe58a; color: inherit; padding: 0; border-radius: 2px; }
.settings-search-empty { padding: .75rem; font-size: 14px; color: #495057; }
#sidenav-main .nav-item:has(> .fo-nav-star) { display: flex; align-items: center; }
#sidenav-main .nav-item:has(> .fo-nav-star) > .nav-link { flex: 1 1 auto; min-width: 0; }
#sidenav-main .fo-nav-star {
    flex: none; border: 0; background: transparent; color: rgba(255, 255, 255, .55);
    /* The link is inset 1rem. Half of that keeps the star off the sidebar edge without leaving the row. */
    margin-right: .5rem; padding: 0 .35rem 0 0; line-height: 1; cursor: pointer;
}
#sidenav-main .fo-nav-star:hover, #sidenav-main .fo-nav-star[aria-pressed="true"] { color: #fff; }
.fo-nav-star { font-size: 14px; }
.fo-nav-star .svg-inline--fa { width: 14px; height: 14px; vertical-align: -1px; }
.fo-nav-star .fo-nav-star-on { display: none; }
.fo-nav-star[aria-pressed="true"] .fo-nav-star-off { display: none; }
.fo-nav-star[aria-pressed="true"] .fo-nav-star-on { display: inline-block; }
/* A mouse sees a hollow star on the row. Touch has no hover, so the star stays visible there. */
@media (hover: hover) and (pointer: fine) {
    .fo-nav-star[aria-pressed="false"] { opacity: 0; }
    .nav-item:hover > .fo-nav-star[aria-pressed="false"],
    .nav-item:has(> .nav-link:focus-visible) > .fo-nav-star[aria-pressed="false"],
    .nav-item > .fo-nav-star[aria-pressed="false"]:focus-visible,
    .fo-nav-fly-row:hover > .fo-nav-star[aria-pressed="false"],
    .fo-nav-fly-row:has(> .fo-nav-fly-link:focus-visible) > .fo-nav-star[aria-pressed="false"],
    .fo-nav-fly-row > .fo-nav-star[aria-pressed="false"]:focus-visible { opacity: 1; }
}
#fo-nav-favorites { width: 100%; }
#fo-nav-favorites[hidden] { display: none !important; }
/* Icon rail: "Favorites" has no icon form. The rows stay, as their icons. */
#sidenav-main.fo-drawer-closed #fo-nav-favorites > h6 { display: none; }
#sidenav-main #fo-nav-favorites .navbar-nav { padding: 0; }
#fo-nav-favorites .fo-nav-all-tag { color: #fff; border-color: rgba(255, 255, 255, .7); }

/* The field a search hit (or a #setting-<key> link) landed on. */
@keyframes settings-flash {
    0% { box-shadow: 0 0 0 3px rgba(233, 30, 99, .55); background-color: #fdeef3; }
    100% { box-shadow: 0 0 0 3px rgba(233, 30, 99, 0); background-color: transparent; }
}
.settings-flash { animation: settings-flash 2.6s ease-out; border-radius: .375rem; }
@media (prefers-reduced-motion: reduce) { .settings-flash { animation: none; background-color: #fdeef3; } }

/* A settings page's heading (templates/settings_hub/_heading.html) */
.settings-section-head { padding: .25rem 0 .5rem 22.75px; }   /* the title's icon on Closer's page-title line (its ms-3 tab strip + tab inset), every Settings page alike (Christopher, 2026-10-26) */
.settings-section-title { color: #250d47; font-size: 16px; font-weight: 600; margin: 0; }

/* A one-client-at-a-time app's client chooser (templates/teams/app_pick.html) */
.fo-app-pick-lede { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.fo-app-pick-search { max-width: 26rem; }
.fo-app-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .5rem; }
.fo-app-pick-client {
    display: grid; gap: 2px; padding: .6rem .75rem; border: 1px solid #dee2e6; border-radius: .5rem;
    color: #250d47; background: #fff;
}
.fo-app-pick-client:hover { border-color: #e91e63; color: #e91e63; }
.fo-app-pick-client small { color: #495057; font-size: 14px; }
.fo-app-pick-name { font-size: 14px; font-weight: 500; }

/* Every text input and text box focuses the same way (Christopher, 2026-10-22): it stays the white box,
   its border hot pink, no glow or outline. The theme's .form-control:focus turned the background and the
   border transparent, and features had each drawn their own (blue, purple, a ring); those rules are gone,
   and !important keeps a new one from creeping back. A box that holds a borderless input (the AI chat
   composer, a chip picker, Flux's thresholds) turns its own border pink with :focus-within; the input in
   a box listed in the :not() below is left alone. The Material underline inputs (.input-group-dynamic /
   -static) are left to their own focus. */
:is(input:not([type=checkbox], [type=radio], [type=range], [type=button], [type=submit], [type=reset], [type=color], [type=file], [type=image]), textarea, .form-control, .pg-control):focus:not(:is(.input-group-dynamic, .input-group-static, .pg-input-group, .closer-fin-flux-group) *) {
    background-color: #fff !important; border-color: #e91e63 !important; box-shadow: none !important; outline: none !important;
}
/* Except an internal reply's box: it stays amber while you type in it, so the tab's colour holds (Jesse,
   2026-10-25: it only turned yellow after toggling the tabs, i.e. once it lost focus). */
.conversations-composer.conversations-composer-internal .conversations-composer-body:focus,
.desk-bulk-edit-form .desk-bulk-edit-internal .desk-bulk-edit-body:focus {
    background-color: #fff8e1 !important;
}

/* The month menu: the chips in one column, each "no snapshot" note in the next, lined up. */
/* "OCT 2026": three-letter caps months in one-width chips, left-aligned (Christopher, 2026-10-22); the
   chips' shared margin-left: auto had pushed them right inside their column. */
#closer-period-menu .closer-finperiod { display: grid; grid-template-columns: 4.75rem auto; align-items: center; column-gap: .5rem; }
#closer-period-menu .closer-finperiod > .closer-month-chip { justify-self: stretch; margin-left: 0; text-align: center; }
#closer-period-menu .closer-finperiod > small { color: #495057; font-size: 14px; }
/* The period menu's range row (Jesse, 2026-10-28): From / to months, or Exact dates, then
   Show range. It stays at the top while the months under it scroll. */
#closer-period-menu .closer-finperiod-range { position: sticky; top: -.5rem; z-index: 1; background: #fff; padding: 8px 12px 6px; margin-top: -.5rem; }
.closer-finperiod-range-row, .closer-finperiod-range-dates { white-space: nowrap; }
.closer-finperiod-range-dates input[type="date"] { width: 9.25rem; height: 29px; font-size: 14px; color: #2d2c2f; }
.closer-finperiod-range-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 8px; }
.closer-finperiod-range-exact { display: inline-flex; align-items: center; margin: 0; font-size: 14px; font-weight: 400; color: #2d2c2f; cursor: pointer; }
.closer-finperiod-range-msg { margin-top: 6px; font-size: 14px; }

/* The Monthly Package table: 12px, body text in every column (the Type column was the faded muted grey). */
.closer-package-table td, .closer-package-table td a:not(.closer-pill) { font-size: 14px; color: #2d2c2f; }
.closer-package-table td a:hover { color: #e91e63; }

/* A Closer pane's heading line (Map, Activity): the card sub-header's 14px dark purple title, then its
   one-line description in 12px dark grey. */
.closer-pane-head > .card-title { font-size: 14px !important; font-weight: 600; color: #250d47; }
.closer-pane-head > .fo-overview-subtle { font-size: 14px; color: #495057 !important; }

/* ── Reconciler booking boxes, Christopher 2026-10-22 ──────────────────────────────────────────── */
/* Each box's label is the dark purple caps label (.closer-eyebrow), and the boxes start flush with the
   description above them: the flex gap spaces them, not side padding. */
.rec-divide-extras-flex > .rec-divide-extra-box { padding: 0; }
.rec-divide-extra-box > .rec-divide-extra-label {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
    line-height: 12px; margin-bottom: 2px;
}
/* The wrapped row's + / "incomplete" and a split line's trash sit level with the first row of inputs:
   top of the cell like the boxes, past the 14px label, centred on the 29px input. */
.rec-divide-table td.rec-divide-chips:has(> .rec-divide-chips-flex--wrap) { vertical-align: top; padding-top: .15rem; }
.rec-divide-chips-flex--wrap > .rec-divide-split-toggle { margin-top: 14px; height: 29px; }
.rec-divide-row-splitline td.rec-divide-splitline-lead:not(.rec-frz) { vertical-align: top; padding-top: calc(.15rem + 14px); line-height: 29px; }
.rec-divide-splitline-lead:not(.rec-frz) > * { vertical-align: middle; }

/* A keyboard key named in a sentence ("press M to show them"): the grey key box. */
.fo-kbd {
    display: inline-block; padding: 0 .3rem; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 15px;
    color: #495057; background: #f1f2f8; border: 1px solid #dfe1ef; border-radius: .25rem; box-shadow: none;
}

/* Activity's search carries its SEARCH label like the Who / Through dropdowns. */
.fo-activity-filter.fo-activity-search { flex: 0 1 26rem; }
.fo-activity-search > .fo-check-search-box { width: 100%; flex: none; }   /* its own flex basis (26rem) would become its height in this column */

/* Segmented toggles (btn-group of outline-secondary, e.g. Activity's Work log / Changes and its window):
   an unselected button hovers white with hot pink text and icon, the app's hover; the selected one keeps
   its fill (Christopher, 2026-10-22). */
.btn-group > .btn.btn-outline-secondary:is(:hover, :focus-visible):not(.active):not(:disabled) {
    background-color: #fff !important; color: #e91e63 !important;
}
.btn-group > .btn.btn-outline-secondary:is(:hover, :focus-visible):not(.active):not(:disabled) :is(i, svg) { color: #e91e63 !important; }

/* A chip on the Reconciler's grey account bar (its statement light: NO STATEMENT, READY, …) carries a
   1px border in its own colour, so its pale fill doesn't melt into the grey (Christopher, 2026-10-22). */
.rec-divide-rec-light.rec-status-chip { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent); }   /* inset: the chip stays 19px */

/* Skills' (and Tasks') collapsible shelves — Built-in skills, Available from your firm: the heading and
   its chevron dark purple like every other section toggle, ONE rule between two shelves (the shelf's own
   bottom rule; the next flat card drops its top one), and the same 8px above and below the heading
   (Christopher, 2026-10-22). */
.closer-tab-card .closer-task-section-summary :is(h5, h6) { color: #250d47; font-weight: 600; }
.closer-tab-card .closer-task-section-summary .closer-task-section-caret { color: #250d47; }
.closer-tab-card .card:has(> .card-body > details.closer-task-section) > .card-body { padding: 0; }
.closer-tab-card .card:has(> .card-body > details.closer-task-section) + .card:has(> .card-body > details.closer-task-section) { border-top: 0; }
/* An open shelf's rows end 8px above its rule, the heading's own spacing. */
.closer-tab-card .card:has(> .card-body > details.closer-task-section) details.closer-task-section[open] > :last-child:not(summary) { padding-bottom: 8px; }

/* A shelf row's dismiss ×: dark grey at rest, hot pink on hover, the app's hover (Christopher, 2026-10-22). */
.btn.btn-link.closer-shelf-dismiss { color: #495057; }
.btn.btn-link.closer-shelf-dismiss:is(:hover, :focus-visible) { color: #e91e63; }

/* Hide done: the box 6px before its label, the Columns menus' spacing (Christopher, 2026-10-22). The
   Tasks / Skills checkbox rule's .4rem right margin outranked the 0 above and doubled the gap. */
.closer-cal-hide-done { gap: 6px; }
.closer-cal-hide-done .form-check-input.fo-check-bare[type="checkbox"] { margin: 0; }

/* Month chips read in caps everywhere ("SEP 2026"), like every other chip (Christopher, 2026-10-22). */
.closer-month-chip { text-transform: uppercase; letter-spacing: .03em; }
/* The month menu's row under the pointer: the standard dropdown's highlight, the info blue with white
   text, not the theme's grey (Christopher, 2026-10-22). */
#closer-period-menu .dropdown-item:is(:hover, :focus) { background: var(--fo-info-blue) !important; color: #fff !important; }
#closer-period-menu .dropdown-item:is(:hover, :focus) > small { color: #fff !important; }
/* The Closing menu's months the same: blue, white text and status circle; the chip keeps its colours
   (Christopher, 2026-10-26). */
.closer-subtabs-month .dropdown-item:is(:hover, :focus) { background: var(--fo-info-blue) !important; color: #fff !important; }
/* The button's id outranks the Closer page's dark-grey .text-muted rule, whose selector carries an id too. */
#closer-month-dd-strip + .dropdown-menu .dropdown-item:is(:hover, :focus) .closer-month-dd-pick,
#closer-month-dd-strip + .dropdown-menu .dropdown-item:is(:hover, :focus) .closer-month-dd-pick :is(i, svg) { color: #fff !important; }
/* The version menu's rename / delete, the app's borderless icon buttons: pencil dark purple, trash
   danger red, both hot pink on hover with no fill; an armed delete keeps its red (Christopher, 2026-10-22). */
.closer-snapver-tools button { color: #250d47; }
.closer-snapver-tools .closer-snapver-delete { color: #dc3545; }
.closer-snapver-tools button:hover,
.closer-snapver-tools .closer-snapver-delete:hover:not(.closer-snap-confirm) { background: transparent; color: #e91e63; }
/* The Live row in dark green (Christopher, 2026-10-21): the menu's own ink rules had outranked it. */
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-live .dropdown-item,
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-live .dropdown-item :is(span, i, svg) { color: #156a3c !important; }
/* The month menu's line between years (DEC 2025 | JAN 2026), the table standard's light grey
   (Christopher, 2026-10-22); the theme's divider drew nothing. */
:is(#closer-period-menu, .closer-subtabs-month) .closer-finperiod-year .dropdown-divider { height: 0; margin: .25rem .5rem; border: 0; border-top: 1px solid #dee2e6; opacity: 1; background: none; }

/* Monthly Review's "PRELIMINARY 1 · RAN 10/22/2026 01:03 PM MDT": the date at the 12px of regular text
   (Christopher, 2026-10-22); the label and chip keep their 10px. */
#cpane-monthly .closer-summary p.closer-run-stamp-line { font-size: 14px; }   /* outranks the review text's 13px (#cpane-monthly .ai-markdown p) */
/* Its label: the version's name, a 14px dark purple title in sentence case, then the RAN caps label a gap
   after it (Christopher, 2026-10-26). */
.closer-run-stamp-label { display: inline-flex; align-items: baseline; gap: .5rem; }
#cpane-monthly .closer-run-stamp-label .closer-run-stamp-name { font-size: 14px; font-weight: 600; color: #250d47; text-transform: none; letter-spacing: normal; }

/* A check's detail tables (Biggest entries, the vendor / location grids): the table standard's white data
   rows and #dee2e6 rules, not the drawer's grey behind them (Christopher, 2026-10-22). The grid's
   new / off markers on the first cell keep their tint. */
:is(.fo-vc-entries, .fo-vc-grid) > tbody > tr > td { background-color: #fff; border-bottom: 1px solid #dee2e6; }
.fo-vc-grid > tbody > tr.fo-vc-new > td:first-child { background-color: #fff8e6; }
.fo-vc-grid > tbody > tr.fo-vc-off > td:first-child { background-color: #eef3ff; }

/* ── Settings → Firm → Close Standards to the UI standards (Christopher, 2026-10-22) ──────────── */
.settings-section-title > :is(i, svg):first-child { color: #250d47; }
.fo-close-standards .fo-overview-heading { font-size: 16px !important; }
.fo-close-standards .fo-overview-subtle { font-size: 14px; color: #2d2c2f; }
.fo-close-standards .fo-check-table td, .fo-close-standards .fo-check-table td.small { font-size: 14px; color: #2d2c2f; vertical-align: top; }
.fo-close-standards .fo-close-std-sub { font-size: 14px; color: #495057; margin-top: 2px; }
.fo-close-standards .fo-check-table .closer-pill.closer-status-badge {
    display: inline-flex; align-items: center; height: 19px; padding: 0 9.6px; font-size: 12px; line-height: 1;
}
.fo-close-standards .closer-edit-menu > summary.btn { list-style: none; display: inline-flex; align-items: center; }
.fo-close-standards .closer-edit-menu > summary.btn::-webkit-details-marker { display: none; }
/* The SOP card: title and Discuss on one line. */
.fo-close-std-cardhead { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.fo-close-std-cardhead > .fo-firm-discuss-bar { margin: 0; flex: none; }
/* The SOP document at the standard sizes: 12px text, 14px headings. */
.fo-close-standards .ai-markdown th { font-size: 12px; }
.fo-close-standards .ai-markdown :is(p, li, td) { font-size: 14px; }
.fo-close-standards .ai-markdown td { font-size: 14px; }   /* table data at 14px (Christopher, 2026-11-10) */
.fo-close-standards .ai-markdown :is(h1, h2, h3, h4, h5, h6) { font-size: 14px !important; font-weight: 600; color: #250d47; }
/* The info box's icon on its first line: 12px text, so a 12px icon in an 18px line. */
.fo-close-standards .fo-alert-info-solid { font-size: 14px; line-height: 18px; }
.fo-close-std-info-icon { font-size: 14px; line-height: 18px; height: 18px; flex: none; }
.fo-close-standards .ai-markdown :is(ul, ol) { font-size: 14px; }   /* li inherits its list's size (.ai-markdown li is inherit !important) */
.fo-close-standards .ai-markdown hr { border: 0; border-top: 1px solid #dee2e6; opacity: 1; margin: .75rem 0; }

/* The settings nav on ONE left edge, the search box's 16px (Christopher, 2026-10-22): Back, the Settings
   title, the Favorites / You / Firm / Company labels and every link's icon start there; a link keeps 8px
   of its pill to the left of its icon. */
#sidenav-main:not(.fo-drawer-closed) .navbar-nav .nav-link:is(.fo-settings-link, .fo-settings-back) { margin-left: 8px; padding-left: 8px; }
#sidenav-main:not(.fo-drawer-closed) .navbar-nav .nav-link:is(.fo-settings-link, .fo-settings-back) > .icon { justify-content: flex-start; text-align: left; }
#sidenav-main .fo-settings-nav-title { margin-left: 0 !important; padding-left: 16px !important; }
#sidenav-main .fo-settings-scope-head { padding-left: 16px; }
#sidenav-main .fo-settings-nav-hint { margin-left: 16px; }
/* Its menu buttons (summary) at the small button's 6px 16px: the global summary rule's 5px squeezed EDIT
   (Christopher, 2026-10-22). */
.fo-close-standards .closer-edit-menu > summary.btn { padding: 6px 16px !important; height: 29px; }
/* Header titles never wrap. */
.fo-close-standards .fo-check-table th { white-space: nowrap; }
/* NEW TEMPLATE's form opens rightward from its button, so it can't slide under the left nav. */
.fo-close-standards .closer-head-actions .closer-edit-menu > .closer-status-options { left: 0; right: auto; }
/* Firm Checks' rows don't light blue under the pointer: each row is a settings form, not a pick
   (Christopher, 2026-10-22). */
#fpane-checks .fo-check-table > tbody > tr.fo-check-row:hover > td { background: #fff; }
/* …and a section's links sit 12px in under its label (their icon at 28px), less than the 28px they had
   (Christopher, 2026-10-22). */
#sidenav-main:not(.fo-drawer-closed) .navbar-nav .nav-link.fo-settings-link { margin-left: 28px; }   /* 20px in: icon at 36px */

/* ── AI Chat page to the UI standards (Christopher, 2026-10-22) ─────────────────────────────────── */
/* The sidebar's search and company filter: the boxed search look, 29px, 12px body ink, the magnifier
   and building icons dark grey; both focus hot pink. */
:is(.ai-chat-sidebar-search, .ai-chat-company-filter) { min-height: 29px; padding: 0 .5rem; }
:is(.ai-chat-sidebar-search-input, .ai-chat-company-filter-input) { font-size: 14px; color: #2d2c2f; }
:is(.ai-chat-sidebar-search-icon, .ai-chat-company-filter-icon) { color: #495057; font-size: 12px; }
.ai-chat-company-filter:focus-within { border-color: #e91e63; }
.ai-chat-company-filter.has-value { border-color: #d8d8d8; background-color: #fff; }
/* New firm chat: the standard 29px small button. */
.btn.ai-chat-new-btn { height: 29px; min-height: 29px; padding-top: 0; padding-bottom: 0; }
/* + New group: a link, dark purple with the hot pink hover. */
.ai-chat-group-new { font-size: 14px; color: #250d47; }
.ai-chat-group-new:hover { color: #e91e63; }
/* The chat list: 12px titles in body ink; the time and who shared it in the dark grey, not faded blue
   or grey; the table standard's hover and selected blues. */
.ai-chat-sidebar-item { font-size: 14px; color: #2d2c2f; }
.ai-chat-sidebar-item:hover { background-color: #e7f1ff; }
.ai-chat-sidebar-item.active { background-color: #cfe2ff; color: #2d2c2f; }
.ai-chat-sidebar-time, .ai-chat-sidebar-sharer { font-size: 14px; color: #495057; }
.ai-chat-scope-mark { font-size: 14px; }
/* The empty chat's prompt, the composer and the disclaimer at the standard sizes and inks. */
.ai-chat-empty { font-size: 14px; color: #495057; }
.ai-chat-input { font-size: 14px; color: #2d2c2f; }
.ai-chat-disclaimer { color: #495057; }
.ai-toolcalls-toggle { font-size: 14px; letter-spacing: .06em; }

/* Firm task template modal (Christopher, 2026-10-22): two columns of fields, each the caps label above its
   29px / 12px control; Waits on, the period checkbox and Description run the full width. */
.fo-template-form .modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: start; }
.fo-template-form .modal-body > label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 14px; font-weight: 400; color: #2d2c2f; }
.fo-template-form .modal-body > label.fo-tf-wide { grid-column: 1 / -1; }
.fo-template-form .fo-tf-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47; display: inline-flex; align-items: center; gap: 4px; }
.fo-template-form :is(input.form-control, select, .fo-combobox-display) { height: 29px; font-size: 14px; }
.fo-template-form textarea.form-control { font-size: 14px; }
.fo-template-form .closer-schedule-rule { display: flex; gap: 6px; }
.fo-template-form .closer-schedule-rule > .closer-schedule-days { flex: 0 0 5.5rem; }
.fo-template-form .closer-schedule-rule > :not(.closer-schedule-days) { flex: 1 1 auto; min-width: 0; }
.fo-template-form .closer-waits-on-list > span { display: flex; align-items: center; gap: 6px; line-height: 22px; }
.fo-template-form .fo-tf-sub { color: #495057; }
.fo-template-form label.fo-tf-check { flex-direction: row; align-items: center; gap: 6px; }
.fo-template-form .form-check-input.fo-check-bare { margin: 0; flex: none; width: 16px; height: 16px; }
.fo-template-form textarea.form-control { min-height: 4.5rem; }

/* The comments icon in a button (Discuss): centred on the caps by its box, its bubbles' tails hang 2px
   below the letters and read low; 1px up evens it (Christopher, 2026-10-22). */
.btn > svg.fa-comments { position: relative; top: -1px; }

/* The top bar's recent-places button: the app's hover, white with a hot pink border and icon (Christopher,
   2026-10-22); the outline buttons' grey hover had outranked its own rule. */
.btn.btn-outline-secondary.fo-recent-places-btn:is(:hover, :focus-visible) { background-color: #fff !important; border-color: #e91e63 !important; color: #e91e63 !important; }
.btn.btn-outline-secondary.fo-recent-places-btn:is(:hover, :focus-visible) svg { color: #e91e63 !important; }

/* "Open this discussion full-screen": hot pink, dark purple on hover, never underlined (Christopher,
   2026-10-22). */
a.fo-overview-foot:not(.alert-info *), a.fo-overview-foot:not(.alert-info *):is(:hover, :focus-visible) { text-decoration: none !important; }
a.fo-overview-foot:not(.alert-info *):is(:hover, :focus-visible),
a.fo-overview-foot:not(.alert-info *):is(:hover, :focus-visible) svg { color: #250d47 !important; }
/* A link's star sits close after it (8px of padding, 4px of gap, not 32px), so a long name ("Firm-Wide
   Connections") no longer pushes its star out of line; the star never shrinks, a longer name ellipsizes. */
#sidenav-main:not(.fo-drawer-closed) .nav-item:has(> .fo-nav-star) .nav-link.fo-settings-link { margin-right: 4px; padding-right: 8px; min-width: 0; }
#sidenav-main .nav-item:has(> .fo-nav-star) .fo-settings-link-label { overflow: hidden; text-overflow: ellipsis; }

/* The left nav's scroll box runs to the bottom of the nav: the theme's calc(100vh - 200px) kept room for a
   footer this app doesn't have, leaving a band that didn't scroll (Christopher, 2026-10-22). */
#sidenav-main.navbar-vertical > #sidenav-collapse-main { height: calc(100vh - 87px) !important; overflow-x: hidden; }   /* 87px: the logo header, its rule and margin */
/* The nav's "Settings" title in the Favorites / You / Firm labels' style (11px, 600, caps, .06em), its
   gear kept (Christopher, 2026-10-22). */
#sidenav-main .fo-settings-nav-title { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: .35rem 0 .5rem; }
#sidenav-main .fo-settings-nav-title > :is(i, svg) { font-size: 11px; }

/* The Transaction number's pencil leads it and always shows, like every other editable cell's
   (Christopher, 2026-10-22). */
.fo-edit-grid-pen.fo-edit-grid-pen-lead { visibility: visible; margin: 0 .35rem 0 0; padding: 0; font-size: 14px; color: #495057; }
.fo-edit-grid-pen.fo-edit-grid-pen-lead:hover:not(:disabled) { color: #e91e63; }
/* The pencil and the number share one line: the pencil holds the left, and a long number wraps beside it,
   not under it (Christopher, 2026-10-26). */
.fo-edit-grid-numline { display: flex; align-items: baseline; }
.fo-edit-grid-numline > .fo-edit-grid-pen-lead { flex: none; }
.fo-edit-grid-numline > :not(.fo-edit-grid-pen-lead) { min-width: 0; overflow-wrap: anywhere; }
/* Under a transaction's number, "ID 69412" stays on one line; with no number the ID is the way into it. */
.fo-edit-grid-idline { white-space: nowrap; }
.fo-edit-grid-idline .fo-edit-grid-open-entry { display: inline; }
/* The New transaction lines: the remove × before the line number, the last cell (Class) flush with the
   table's right edge, which is Cancel's below. */
.fo-new-entry table td.fo-new-entry-num { white-space: nowrap; }
.fo-new-entry table td.fo-new-entry-num > .fo-edit-grid-undo { margin-right: 4px; }
.fo-new-entry table :is(td, th):last-child { padding-right: 0; }

/* Date inputs' calendar picker: Chrome draws it itself; accent-color is the one thing a page can set on it
   (the selected day). */
input:is([type="date"], [type="datetime-local"], [type="month"]) { accent-color: #e91e63; }
/* Flag for client (the drill grid's and the General Ledger's): the flag's pole hangs below the caps
   label's baseline when centred on the line box, so it sits a pixel higher (Christopher, 2026-10-26). */
:is(.fo-edit-grid-flag-btn, .closer-gl-flag-btn) > :is(svg, .fa-icon-host) { position: relative; top: -1px; }
/* A findings table row with controls (the payee pick, Apply, the note): its plain-text cells drop
   5px so their line centres on the 29px controls, which centre lower in the top-aligned row
   (Christopher, 2026-10-26). */
.fo-fix-table > tbody > .fo-finding-row:has(.fo-finding-note, .rec-combo-trigger, .fo-fix-apply) > td:not(:has(.form-control, .form-check-input, .btn, .rec-combo)) {
    padding-top: calc(.55rem + 5px);
}
/* A drill's or transaction pop-up's title ("Deposit", "Expense"): the 14px modal title beside its
   12px Debits / Credits (Christopher, 2026-10-26). */
.closer-fin-drillx-head .closer-fin-drill-title { font-size: 14px; }
/* …both centred on the head's controls (FROM / TO, the buttons), the 12px line dropped 0.4px onto the
   title's baseline. align-self: baseline would share it too, but lifts the pair off the controls' centre. */
.closer-fin-drillx-head > .closer-fin-drill-totals { position: relative; top: .4px; }
/* …and its first cell (the Include box and the comment bubble) drops 4px for the same reason. */
.fo-fix-table > tbody > .fo-finding-row:has(.fo-finding-note, .rec-combo-trigger, .fo-fix-apply) > td:first-child:has(> .fo-finding-pick) {
    padding-top: calc(.55rem + 4px);
}
/* The Monthly review's version menu (.closer-edver-*): 12px names, the trash red like the pencil's
   dark purple, and the standard blue hover with white text and tools; the status dot keeps its hue
   (Christopher, 2026-10-26). */
.closer-edver-row .closer-snapver-name { font-size: 14px; }
.closer-snapver-tools .closer-edver-delete { color: #dc3545; }
.closer-edver-row .closer-snapver-tools .closer-edver-delete:hover:not(.closer-snap-confirm) { background: transparent; color: #e91e63; }
.closer-edver-row:not(.closer-edver-editing):not(.closer-edver-deleted):hover { background: var(--fo-info-blue) !important; }
/* The row's button drops its own grey hover so the blue shows through; :not(#fo-none) gives the white
   text an id's weight, to outrank the Closer page's dark-grey .text-muted rule (the unnamed row's "—"). */
.closer-edver-row:not(.closer-edver-editing):not(.closer-edver-deleted):hover .closer-edver { background: transparent !important; }
.closer-edver-row:not(#fo-none):not(.closer-edver-editing):not(.closer-edver-deleted):hover :is(.closer-edver, .closer-edver :not(.closer-version-dot), .closer-snapver-tools button:not(:hover)) { color: #fff !important; }
/* …its pencil leads each row (Christopher, 2026-10-26): the menu gains a first column for it, the
   name | status | saved cells move one along, the trash stays last; the rename box takes the name's cell. */
.closer-snapver-menu.closer-edver-menu { grid-template-columns: repeat(5, max-content); }
.closer-edver-menu .closer-edver-lead { grid-column: 1; grid-row: 1; padding-left: .5rem; }
.closer-edver-menu :is(.closer-edver-row, .closer-snapver-deleted-row) .closer-edver { grid-column: 2 / 5; grid-row: 1; padding-left: .4rem; }
.closer-edver-menu .closer-edver-row > .closer-snapver-tools:not(.closer-edver-lead) { grid-column: 5; grid-row: 1; }
.closer-edver-menu .closer-edver-row.closer-edver-editing .closer-edver-name-input { grid-column: 2; }
/* The Monthly review's "Financial snapshot captured" line: its file icon, centred on the line box, sat a
   pixel under the text's baseline (Christopher, 2026-10-26). */
.closer-snapshot > .closer-lead-icon { position: relative; top: -1px; }
/* The Diff menus (Closer's and the Forecaster's): the standard blue hover with white text, every part of
   the row included (its time, name, pink close name and icon) (Christopher, 2026-10-26). */
:is(#closer-diff-menu, #fc-diff-menu) .closer-diffpick:is(:hover, :focus),
:is(#closer-diff-menu, #fc-diff-menu) .closer-diffpick.active:is(:hover, :focus) { background: var(--fo-info-blue) !important; color: #fff !important; }
:is(#closer-diff-menu, #fc-diff-menu) .closer-diffpick:is(:hover, :focus) * { color: #fff !important; }
/* The Financials version menu, and the Forecaster's (Jesse, 2026-11-05): the pencil leads the name it renames (Christopher, 2026-10-26). Five
   columns: when | month | pencil | name | trash; the link spans the first four with its name in the
   fourth, the pencil sits over the third (outside the link, so a click renames, never navigates),
   tucked against the name. The rename box takes the name's cell. */
:is(#closer-snapver-menu, #fc-snapshot-menu) { grid-template-columns: repeat(5, max-content); }
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-row > .closer-snapver { grid-column: 1 / 5; grid-row: 1; }
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-row > .closer-snapver > .closer-snapver-name { grid-column: 4; }
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-row > .closer-snapver-lead { grid-column: 3; grid-row: 1; z-index: 1; padding-right: 0; margin-right: -.2rem; }
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-row > .closer-snapver-tools:not(.closer-snapver-lead),
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-deleted-row > .closer-snapver-tools { grid-column: 5; grid-row: 1; }
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-deleted-row > .closer-edver { grid-column: 1 / 5; grid-row: 1; }
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-row.closer-snapver-editing .closer-snapver-name-input { grid-column: 4; }
/* Its Live row reads as one line, "Live · the statements as they stand" (Christopher, 2026-10-26), not
   two cells a column apart. */
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-live > .closer-snapver { display: flex; align-items: center; gap: .35rem; }
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-live .closer-snapver-month { display: none; }
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-live .closer-snapver-live-asof::before { content: "\00b7"; margin-right: .35rem; }
/* …and its rows hover like every dropdown: the whole row blue, its text and tools white (a hovered tool
   hot pink), the month chip keeping its colours; the link drops its own grey hover so the blue shows
   (Christopher, 2026-10-26). */
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-row:not(.closer-snapver-editing):hover { background: var(--fo-info-blue) !important; }
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-row:not(.closer-snapver-editing):hover > .closer-snapver { background: transparent !important; }
:is(#closer-snapver-menu, #fc-snapshot-menu) .closer-snapver-row:not(.closer-snapver-editing):hover :is(.closer-snapver, .closer-snapver :not(.closer-month-chip), .closer-snapver-tools button:not(:hover)) { color: #fff !important; }
/* The Financials bar's icon buttons (Print, Excel, Copy link): the Excel mark in the same grey as Print's
   icon, not green, turning hot pink with the rest on hover (Christopher, 2026-10-26). */
.btn.closer-gl-icon-btn:not(:hover):not(:focus-visible) > .closer-excel-icon { color: inherit !important; }
/* The Diff menus: a light rule between snapshots, and between one group's last snapshot and the next
   group's heading (Christopher, 2026-10-26). */
:is(#closer-diff-menu, #fc-diff-menu) > li:has(> .closer-diffpick) + li { border-top: 1px solid #dee2e6; }
/* Close Tasks' "Manage Responsibilities" link: 12px, not its hint line's size (Christopher, 2026-10-26). */
.fo-form-hint > a.fo-manage-responsibilities { font-size: 14px; }
/* Company Settings → Responsibilities: the description and the Zendesk chip on one line, a gap above the
   table; each column's "Zendesk: …" hint white under its header (Christopher, 2026-10-26). */
.fo-roles-section > .closer-section-head { margin-bottom: .5rem; gap: 1rem; }
.fo-check-table.fo-roles-matrix thead th .fo-roles-th-hint { font-size: 11px; font-weight: 400; color: #fff; }
/* The System Map's detail box (Christopher, 2026-10-26): its title the 14px heading, the whole title line
   centred on one line, and its tab chips the standard chip size. #cpane-map's blanket 12px carries an id,
   so these name it too. */
#cpane-map .fo-map-detail-head { align-items: center; }
#cpane-map .fo-map-node-label { font-size: 14px; }
#cpane-map .fo-map-tab { display: inline-flex; align-items: center; height: 19px; padding: 0 9.6px; font-size: 12px; font-weight: 600; line-height: 1; }
#cpane-map .fo-map-detail-head > .fo-map-detail-close { align-self: center; margin-top: 0; margin-bottom: 0; }   /* the × on the title line, not 8px above it */
/* The map's General Ledger bubble: its own padding and the 10px "QuickBooks Online" line back, so the text
   clears the oval's edge (#cpane-map's blanket 12px and a later star padding had squeezed it; Christopher,
   2026-10-26). */
#cpane-map .fo-map-star.fo-map-star-gl { padding: .7rem 1.25rem; }
#cpane-map .fo-map-star-gl .fo-map-star-sub { font-size: 14px; }
/* …its title line (Christopher, 2026-10-26): the texts share one baseline (the 14px name, its 12px sub and
   traffic); the node's icon, part of the name's link, centres on its caps and both icons are the name's dark purple, the
   external-link mark resting on the baseline, not riding up by the caps' tops. */
#cpane-map .fo-map-detail-head { align-items: baseline; }
#cpane-map .fo-map-node-label > :is(svg, i).fo-map-node-icon { color: inherit; margin-right: .4rem; vertical-align: -0.1em; font-size: .8rem; }   /* inside the name's link: its colour (pink on hover), centred on the 14px caps */
#cpane-map .fo-map-detail-head > .fo-map-detail-close { align-self: center; }
#cpane-map .fo-map-node-label .fo-map-ext-icon { color: #250d47; vertical-align: 0; }
#cpane-map a.fo-map-node-label:hover .fo-map-ext-icon { color: #e91e63; }
/* The map bubbles' icons sat 0.4px under their label's caps; half a pixel up centres them (Christopher, 2026-10-26). */
#cpane-map .fo-map-star:not(.fo-map-star-gl) > .fo-map-star-icon { position: relative; top: -.5px; }
/* A map workflow row: its icon, name, frequency (icon + words) and dot on one centre line. The frequency
   is an inline-flex pair so its ✓ / ⊗ centres on its words (Christopher, 2026-10-26). */
#cpane-map .fo-map-chip-summary { align-items: center; }
#cpane-map .fo-map-chip-freq { display: inline-flex; align-items: center; font-size: 14px; line-height: 1; }
#cpane-map .fo-map-chip-freq > svg { margin-right: .3rem; }
/* A map workflow, opened (Christopher, 2026-10-26): one fact per line (what it is; via its source; its
   status and Last Run; its links), the status as the workflows pages show it; the row's name dark purple
   and bold; the green explained dot the orange ? icon's 12px. */
#cpane-map .fo-map-chip-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
#cpane-map .fo-map-chip-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; }
#cpane-map .fo-map-chip-status { display: inline-flex; align-items: center; line-height: 1; }
#cpane-map .fo-map-chip-status > svg { margin-right: .3rem; }
#cpane-map .fo-map-chip-name,
#cpane-map .fo-map-chip-unexplained .fo-map-chip-name { color: #250d47; font-weight: 600; }
#cpane-map .fo-map-chip-summary > .fo-map-chip-icon { color: #250d47; }   /* the row's icon in its name's dark purple */
#cpane-map .fo-map-dot { width: 12px; height: 12px; }
/* Reconciler Book / Bank's two-row header (Christopher, 2026-10-27): the standard dark head, no internal
   lines — the body's column dividers (the tick column's grey edges, Hold's 2px, Discuss's amber) stay
   in the body; the head keeps only its bottom edge. The group row is exactly the 22px the column row's
   sticky top expects, so no strip of scrolled rows shows between the two. */
.rec-divide-table > thead > tr > th { box-shadow: none !important; }
.rec-divide-table > thead > tr:last-child > th { box-shadow: inset 0 -1px 0 #e4e7ec !important; }
.rec-divide-table > thead > tr.rec-divide-side-head > th { height: 22px; box-sizing: border-box; }
/* Reconciler bank row: the description's copy button (fa-copy) and the "not on this statement" ⏭ are dark
   purple, hot pink on hover; the ⏭ keeps its glyph, drawn as text (U+FE0E) so it takes the colour
   (Christopher, 2026-10-27). */
.rec-divide-copy { color: #250d47; }
.rec-divide-copy:hover { color: #e91e63; }
.rec-divide-offstmt-btn { color: #250d47; opacity: 1; }
.rec-divide-offstmt-btn:hover:not(:disabled) { color: #e91e63; }
/* The payee History pop-up: its title the 14px modal title, sentence case (Christopher, 2026-10-27). */
.rec-payee-pop-head .rec-payee-pop-title { font-size: 14px; font-weight: 600; color: #250d47; text-transform: none; letter-spacing: normal; }
/* A split line's mirrored Name / Memo in the wrapped boxes starts on its label's left edge, not 0.4rem in
   (it has no box of its own to inset into); the dark grey, not the faded one (Christopher, 2026-10-27). */
.rec-divide-flowline .rec-divide-split-mirror { padding-left: 0; padding-right: 0; }
.rec-divide-split-mirror { color: #495057; }
.rec-divide-copy { align-self: center; position: relative; top: -1px; }   /* its line top-aligns its items: centred, the copy icon sits on the FO_ACT id's caps, not 2.5px above (Christopher, 2026-10-27) */
/* The Reconciler's drift change log (Christopher, 2026-10-27): a memo's pencil leads the transaction's
   label in dark purple; a version's lines keep their amounts right-aligned. */
.rec-divide-drift-memo { color: #250d47; margin-right: .3rem; }
.rec-divide-drift-history .usage-hist-lines td.usage-num { text-align: right !important; }
/* The Reconcile panel (Christopher, 2026-10-27): its pieces top-aligned with the arithmetic table; the
   STATEMENT caps label over its picker, Open PDF and Tie to Statement on their own row under it; the
   amounts in the app's font, tabular figures keeping them on one right edge. */
.rec-divide-finalize-panel { align-items: flex-start; }
.rec-divide-finalize-stmtpick { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.rec-divide-finalize-stmtlinks { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; }
.rec-divide-finalize-math-amt,
.rec-divide-finalize-math-row .form-control,
.rec-divide-finalize-outstanding-row { font-family: inherit; font-variant-numeric: tabular-nums; }
/* The Reconcile panel, tighter (TM-2486, Heather: the box took so much of the screen that only a few rows
   fit under it): 12px text and less padding, and a chevron that folds it to one line, the ending balance
   and the three figures that answer "am I in or out". The fold is remembered (MatchupTable). */
.rec-divide-finalize-panel { padding: .35rem .6rem; gap: .5rem; font-size: 12px; }
.rec-divide-finalize-msg,
.rec-divide-finalize-math-amt,
.rec-divide-finalize-math-row .form-control,
.rec-divide-finalize-outstanding,
.rec-divide-finalize-clears,
.rec-divide-finalize-stmtlinks .rec-divide-link { font-size: 12px; }
.rec-divide-finalize-math-row { padding: 0; }
.rec-divide-finalize-fold { border: 0; background: transparent; padding: .15rem .2rem; line-height: 1; }
.rec-divide-finalize-fold .rec-chevron { width: .8rem; }
.rec-divide-finalize-fold:hover .rec-chevron { color: #e91e63; }
.rec-divide-finalize-panel--collapsed { align-items: center; }
.rec-divide-finalize-panel--collapsed .rec-divide-finalize-stmtpick { flex-direction: row; align-items: center; gap: .4rem; }
.rec-divide-finalize-panel--collapsed .rec-divide-finalize-stmtlinks { display: none; }
.rec-divide-finalize-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.rec-divide-finalize-summary-item { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.rec-divide-finalize-summary .form-control { width: 8rem; text-align: right; }
.rec-divide-finalize-summary .rec-divide-finalize-math-amt { width: auto; padding-right: 0; }
/* The payee History modal: a booking's type keeps its link icon on its line (Christopher, 2026-10-27). */
.rec-payee-pop-table td.rec-payee-pop-type { white-space: nowrap; }
/* The line-comment panel as a standard modal (Christopher, 2026-10-27): centred in the window over its
   backdrop, not hung off the line, and a fixed modal width (the drag-to-resize corner goes with the
   anchoring). positionPanel's inline top / left are overridden. */
#closer-fin-panel:not([hidden]) {
    position: fixed !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%);
    width: min(40rem, calc(100vw - 32px)) !important; height: auto !important; max-height: calc(100vh - 32px) !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .25);
}
#closer-fin-panel .closer-fin-panel-grip { display: none; }
.closer-fin-backdrop { z-index: 1072; }
.closer-fin-backdrop[hidden] { display: none; }
/* A negative Bank / Book total in the dark Filters band: a light red that reads on the purple (Christopher, 2026-10-27). */
.rec-filters-head .text-danger { color: #ff8a80 !important; }
/* The band's icon-only Undo: a 20px square, not the label button's rectangle (Christopher, 2026-10-27). */
.btn.rec-divide-undo-rec { width: 20px; padding: 0 !important; justify-content: center; }
/* "BANK" / "BOOK" before their totals: the caps label of the Filters box's fields; white on the dark
   Filters band (Christopher, 2026-10-27). */
.rec-total-label { display: inline; }
.rec-filters-head .rec-total-label { color: #fff; }
/* Rec Status's detail header: "Chase Checking #0973 · Nov 25" as one 14px dark purple bold title. */
.rec-status-detail-head .rec-status-detail-title { font-size: 14px; font-weight: 600; color: #250d47; }
/* A report table with no rows: "No records found." at 14px, the dark grey (Christopher, 2026-10-27). */
.fo-results-empty { font-size: 14px; color: #495057; }
/* Add / Edit Rule's "Advanced": its chevron on the headings' left edge — no button border, and the chevron
   its own width rather than the centred .9rem slot (Christopher, 2026-10-27). */
.fo-std-modal .btn.rec-modal-advanced-toggle { border-left-width: 0; }
.rec-modal-advanced-toggle .rec-chevron { width: auto; }
/* The file pop-up's status and count lines: 12px, the dark grey (Christopher, 2026-10-27). */
.fo-file-preview-status, .fo-file-preview-count { font-size: 14px; color: #495057; }
/* A scrolling DataTable keeps an invisible copy of its header inside the body to size the columns
   (height: 0). The dark headers' 6px top / bottom padding gave that copy a 12px dark strip under the
   real header (Bank Data ▸ Connections, Christopher 2026-10-27): the copy collapses to nothing. */
.dataTables_scrollBody:not(#fo-none):not(#fo-none-2) > table > thead > tr > :is(th, td) {   /* two ids' weight: outranks the dark-header rules, which carry one */
    padding-top: 0 !important; padding-bottom: 0 !important; border-top-width: 0 !important;
    border-bottom-width: 0 !important; height: 0 !important; line-height: 0 !important;
}

/* Firm Reconciler ▸ Reconciliations to the UI standards (Christopher, 2026-10-27): the card title
   at 16px, the Months / Bank feed / Divide and 3–24 mo switches as segmented Bootstrap groups (the
   unchosen side white), the Client column header in the table's dark purple, and the grids fit
   the window and scroll inside the card (fo-check-scroll.js). */
.fo-overview-heading.fo-all-clients-title { font-size: 16px; }
.fo-firm-recs-mode.btn-group { margin-left: 0; }
.fo-firm-recs-mode .btn-outline-secondary:not(.active) { background: #fff; }
.fo-recgrid-table > thead .fo-recgrid-client-head { background: #250d47; color: #fff; }
.fo-recgrid-table > thead .fo-recgrid-client-head .fo-recgrid-feed-key { color: #fff; }
@media (min-width: 992px) {
    .fo-recgrid-scroll[style*="--fo-check-scroll-h"] { max-height: var(--fo-check-scroll-h); }
}
.fo-recgrid-toolbar > .fo-recgrid-sort { margin: 0; font-size: 14px; color: #495057; }

/* Firm Reconciler ▸ Rules to the UI standards (Christopher, 2026-10-27). The Filters box: the dark
   bar over the light body, its labels the dark purple caps label above 29px controls. */
.fo-frules .report-filters > .table { margin-bottom: 0; }
.fo-frules .fo-frules-dials .form-label {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
    margin-bottom: 2px;
}
.fo-frules .fo-frules-vendor-search .form-control { height: 29px; font-size: 14px; }
.fo-frules .fo-frules-progress { font-size: 14px; color: #495057; }
/* The vendor cards: a 14px sub-header, caps labels over the charts, 12px rows. */
.fo-frules .fo-frules-vendor-name { font-size: 14px; font-weight: 600; }
.fo-frules .fo-frules-chart-title {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
}
.fo-frules .fo-frules-bar-row, .fo-frules .fo-frules-unruled { font-size: 14px; }
.fo-frules :is(.fo-frules-bar-label, .fo-frules-bar-value) { color: #2d2c2f; }
.fo-frules :is(.fo-frules-tile-label, .fo-frules-unruled-label, .fo-frules-unruled-more, .fo-frules-vendor-empty) { font-size: 14px; color: #495057; }
.fo-frules .fo-frules-tile-value { font-size: 16px; }
/* The grid: 12px cells, no divider lines inside the dark header, the key | value boxes 19px. */
.fo-frules .fo-table-cell, .fo-frules .fo-table-cell a:not(.closer-pill) { font-size: 14px; }
.fo-frules thead th.fo-table-header-cell { border-color: #250d47 !important; }
.fo-frules .rec-badge.rec-badge-classification,
.fo-frules .rec-badge.rec-badge-criteria { height: 19px; font-size: 12px; }
.fo-frules .rec-badge > :is(.rec-badge-key, .rec-badge-val) { padding-top: 0; padding-bottom: 0; line-height: 17px; }
.fo-frules .fo-frules-dials .mr-select-btn { height: 29px; padding-top: 0; padding-bottom: 0; }
.fo-frules .fo-frules-dials > .col { align-items: flex-end !important; }
/* The sticky header paints apart from the table's collapsed borders, so the card showed white
   between the cells; the purple is painted once, on the thead (as .fo-check-table's). */
.fo-frules .fo-table-scroll > table > thead { background: #250d47; }
/* Months grid: Sort is the caps label, the summary 12px, the Plaid key in the header's own type. */
.fo-recgrid-toolbar > .fo-recgrid-sort {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
}
.fo-recgrid-toolbar > .fo-recgrid-sort .fo-combobox { text-transform: none; letter-spacing: normal; font-weight: 400; }
.fo-recgrid-toolbar > .fo-recgrid-summary { font-size: 14px; }
.fo-recgrid-table > thead .fo-recgrid-client-head .fo-recgrid-feed-key { font-size: inherit; font-weight: inherit; }
/* Firm Divide client rows (Christopher, 2026-10-27): the client's name a 14px dark purple subtitle,
   the rest 12px, every piece centred on one line (baseline sat the Loading spinner's label high). */
.rec-divide-client { align-items: center; }
.rec-divide-client-toggle { font-size: 14px; color: #250d47; }
:is(.rec-divide-client-counts, .rec-divide-client-asof, .rec-divide-client-loading, .rec-divide-client-open) { font-size: 14px; }
.rec-divide-client-asof { color: #495057; }
/* Divide's firm-view bar inside the Filters box. */
.fo-divide-filters { margin-top: .5rem; }
.fo-divide-filters .fo-divide-viewbar { margin: 0; }
.fo-bankfeed-totals, .fo-bankfeed-total-muted, .fo-bankfeed-loading { font-size: 14px; }
.fo-bankfeed-totals { color: #2d2c2f; }
.fo-bankfeed-total-muted, .fo-bankfeed-loading { color: #495057; }
/* An open client keeps the gap above its first account band, as the closed rows have between them. */
.rec-divide-client--open { margin-bottom: .75rem; }
/* Firm Divide: the frame sits lower (totals and the Filters box above it), so its 34rem floor
   outgrew the room under it and the page scrolled 24px; the floor never passes the cap here. */
#fo-firm-divide .rec-divide-frame {
    min-height: min(34rem, calc(100vh - var(--rec-frame-top, 1rem) - var(--rec-frame-below, 0px)));
}
/* Collapsed borders still bled a light line at fractional column edges under the sticky header;
   separate borders let each cell paint its own: none down the header, a #dee2e6 rule between rows. */
.fo-frules .fo-table-scroll > table { border-collapse: separate; border-spacing: 0; }
.fo-frules .fo-table-scroll > table > thead > tr > th { border: 0 !important; }
.fo-frules .fo-table-scroll > table > tbody > tr > td { border-width: 0 0 1px 0 !important; border-color: #dee2e6 !important; }
/* The Plaid dots centred on the capitals beside them, not the line box (they sat a pixel low). */
.fo-recgrid-feed { position: relative; top: -1px; }
.fo-overview-subtle.fo-firm-recs-intro { font-size: 14px; }
/* The lock notice: amber, the pending chips' colours, behind the named warning icon (Christopher, 2026-10-27). */
.rec-divide-note.rec-divide-note--locked { color: #b26a00; background: #fff3e0; border-color: #f3d9a6; }
/* Divide's Clients panel (Christopher, 2026-10-27): each row's box, name and dropdown centred on one
   line (the row is a <label>, which carried the theme's 8px bottom margin, and the box its own
   top margin), 12px names, All / None hot pink with a dark purple hover, and room under the
   buttons above while the panel is open. */
.fo-divide-client-pick { margin: 0; font-size: 14px; color: #2d2c2f; }
.fo-divide-client-pick > input.form-check-input { margin: 0; flex: none; }
.fo-divide-clients-bulk { font-size: 14px; }
.fo-divide-clients-bulk .rec-divide-linkbtn { color: #e91e63; }
.fo-divide-clients-bulk .rec-divide-linkbtn:hover { color: #250d47; }
.fo-divide-filters .fo-divide-viewbar:has(+ .fo-divide-clients-panel:not([hidden])) { margin-bottom: .5rem; }
/* The Months grid's hover pop-up (Christopher, 2026-10-27): an account's activity line wraps under
   it inside the box instead of running off its edge, the text 12px, the footer dark grey. */
.fo-recgrid-pop { font-size: 14px; color: #2d2c2f; }
.fo-recgrid-pop .fo-recgrid-pop-list li { flex-wrap: wrap; white-space: normal; }
.fo-recgrid-pop .fo-recgrid-pop-activity { flex-basis: 100%; font-size: 14px; color: #495057; }
.fo-recgrid-pop .fo-recgrid-pop-what { color: #495057; }
.fo-recgrid-pop .fo-recgrid-pop-foot { font-size: 14px; color: #495057; }
.fo-recgrid-pop .fo-recgrid-pop-list li { align-items: center; row-gap: 0; }
.fo-recgrid-pop .fo-recgrid-pop-activity { padding-left: 1.35rem; }   /* under the account name, past its swatch (measured) */
/* All agree: the 12px success line with its check, not an emoji (Christopher, 2026-10-27). */
.rec-divide-status-ok { font-size: 14px; }
/* Firm Divide: the lock notice runs the table's width, close under the totals. */
#fo-firm-divide .fo-bankfeed-totals { margin-bottom: .25rem; }
#fo-firm-divide .rec-divide-summary { margin-top: 0; }
#fo-firm-divide .rec-divide-summary > .rec-divide-note--locked { flex: 1 1 100%; margin: .5rem 0; }

/* Header tabs sit on the card, so a card that opens with its own inner tab strip starts it close under them,
   not .app-card's 1.5em down. A card that opens with a title (Firms / Companies) keeps the full 1.5em. */
.card-header:has(> .card-header-tabs .nav-link) + section.app-card:has(.nav-tabs) { padding-top: 10px; }
/* Header strip: the title's 38px line is taller than a tab, so the tabs sat 6px above the card.
   Seat every tab on the card, and drop the title's text onto the tabs' baseline (same 38px box). */
.card-header > .card-header-tabs:has(> .nav-item > h1.fo-title) > .nav-item:has(> .nav-link) { display: flex; align-items: flex-end; }
.card-header > .card-header-tabs:has(> .nav-item > .nav-link) > .nav-item > h1.fo-title { padding-top: 6px; line-height: 32px; }
/* The Closing picker on that strip comes down with the title, or it rode 3px high beside
   "Payroller" (Christopher, 2026-11-12). A strip with no tabs (Reconciler) leaves both up. */
.card-header > .card-header-tabs:has(> .nav-item > .nav-link) > .nav-item:has(> .closer-closing-in-place) { padding-top: 6px; }
.aplus-queue-empty { font-size: 14px; font-weight: 400; color: #495057; }
/* Inter workflow form: the Account Mapping help line. */
.inter-account-map-help { color: #495057; font-weight: 400; }

/* The Stonly HELP badge on My Desk, rested as a tab on the right edge (TM-2403).
   The badge stays put — the open panel anchors to it — but it takes no clicks.
   The caption ("Click me") is inside the badge. The panel is a sibling, so it
   stays. */
html.fo-help-tabbed [data-pill-id],
html.fo-help-tabbed [data-pill-id] * {
    visibility: hidden !important; pointer-events: none !important;
}
.fo-help-tab {
    position: fixed; bottom: 88px; right: 0; z-index: 1030;
    display: flex; flex-direction: column; align-items: center; gap: .25rem;
    margin: 0; padding: .5rem .35rem; border: 0; border-radius: .5rem 0 0 .5rem;
    background: #250d47; color: #fff; cursor: pointer;
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.fo-help-tab[hidden] { display: none !important; }
.fo-help-tab span { writing-mode: vertical-rl; transform: rotate(180deg); }
.fo-help-tab:hover, .fo-help-tab:focus-visible { background: #e91e63; color: #fff; }
.fo-help-tab:focus-visible { outline: 2px solid #1A73E8; outline-offset: 2px; }


/* ── My Desk on a phone (Jesse, 2026-10-25, ZD #663459 on his iPhone: the ticket's fields filled the
   screen and squeezed the thread to a 40px strip under them). Below md the thread comes first and the
   PAGE scrolls it, not a pane (the ticket's fields are the rail's, stacked under it), the composer
   stays pinned to the bottom of the screen, and the header and the tab strip take one short line each. ── */
.fo-topbar-qbo { display: inline-block; }   /* the top bar's QuickBooks status */
@media (max-width: 767.98px) {
    /* The top bar fits the width: the QuickBooks status, the client trail, the timer's Auto and Demo
       mode stay on a computer. */
    :is(.fo-topbar-qbo, .fo-client-trail, .fo-timer-auto, .fo-timer-task, .fo-timer .fo-combobox, .fo-demo-mode-item) { display: none !important; }
    /* The card's 1.5em inset is a tenth of a phone's width. */
    .app-card[data-desk-swap] { padding: .5rem; }
    /* The list scrolls as one page: see "Conversations and My Meetings on a phone" below (TM-2204, TM-2281). */
    /* Tabs keep a readable label and the strip scrolls sideways (desk-tabs.js scrolls the active one in). */
    .desk-tabs { padding: .25rem 0 0; }
    .desk-tab { flex: none; min-width: 0; max-width: 8.5rem; padding: .2rem .4rem; font-size: 14px; }
    /* Back, status and the two buttons on the first line; the title on its own line under them. */
    .desk-detail-head { padding: .4rem 0; row-gap: .35rem !important; }
    .desk-detail-head .conversations-title { order: 1; flex: 1 1 100%; min-width: 0; }
    .desk-detail-head .btn > .me-1 { margin-right: 0 !important; }
    .desk-detail-head .desk-btn-label {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
    /* The ticket page: no fixed-height pane; the page scrolls the whole thread. */
    .desk-thread-host { height: auto; min-height: 0; padding: 0; }
    .desk-thread-host .aplus-conversation { flex: none; min-height: 0; overflow: visible; }
    .desk-thread-host .aplus-conversation-thread { flex: none; overflow: visible; padding: .5rem; }
    /* The composer: compact, pinned to the bottom of the screen while the thread scrolls under it. */
    .desk-thread-host .aplus-composer {
        position: sticky; bottom: 0; z-index: 3;
        height: auto; min-height: 0; max-height: none; padding-top: .5rem;
        box-shadow: 0 -2px 6px rgba(37, 13, 71, .12);
    }
    .desk-thread-host .aplus-composer-resize { display: none; }   /* a mouse drag; the box grows as you type */
    .desk-thread-host .aplus-composer-editor { flex: none; min-height: 2.6rem; max-height: 35dvh; }
    /* Its placeholder on one line (the paste / shortcut hint is for a computer). */
    .desk-thread-host .aplus-composer-editor:empty::before { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .desk-thread-host .aplus-composer-actions { flex-wrap: wrap; gap: .5rem; }
    /* An FO conversation's Submit keeps "Submit as Solved" on one line; past the tool buttons it wraps whole. */
    .conversations-submit-row { flex-wrap: wrap; }
    .conversations-submit-row .conversations-submit-main { white-space: nowrap; }
    /* 16px in the boxes you type in: iOS zooms the page into any field set smaller. */
    :is(.aplus-composer-editor, .conversations-composer-editor, .conversations-composer-body, .desk-ticket-rail .form-control) { font-size: 16px; }
    /* The desk ticket's reading-size rule is more specific than the one above. */
    .desk-thread-host .aplus-composer-body { font-size: max(16px, var(--conv-text-size, 14px)); }
    /* The Stonly HELP badge sat over the composer; on a phone it has no room to float in.
       The edge tab that replaces it on a computer goes with it. */
    .stn-wdgt, .fo-help-tab { display: none !important; }
}

/* ── Reconciler on a phone (TM-2157, Jesse 2026-11-05: "a round of capex on the mobile view of
   reconciler", after My Desk's above). At 390px the Book / Bank frame kept its viewport cap, so the
   tabs and the Filters box took the whole screen and left the accounts a 24px strip. Below md the
   PAGE scrolls the accounts, each account card swipes sideways under its own band, the Filters box
   opens folded to its band, and the tab strip is one line that scrolls. A computer is untouched. ── */
.rec-filters-fold { display: none; }   /* the Hide / Show Filters pill: a phone's only */
@media (max-width: 767.98px) {
    /* The top bar's navigator: the client's name, ellipsised; the firm's name stays on a computer. */
    .fo-scope, .fo-scope-btn { min-width: 0; max-width: min(20rem, 100%); }
    :is(.fo-scope-firm, .fo-scope-sep) { display: none; }
    /* The card's 1.5em inset is a tenth of a phone's width (as My Desk's). */
    .app-card:has(> .card-body #reconciler-workflow-tab) { padding: .5rem; }
    /* One line of tabs that scrolls sideways, not four rows of them. */
    #reconciler-workflow-tab #workflows-tabs.rec-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
    #reconciler-workflow-tab #workflows-tabs.rec-tabs > .nav-item { flex: none; }
    #reconciler-workflow-tab #workflows-tabs.rec-tabs > .nav-item:empty { display: none; }
    /* Book / Bank: no viewport cap. The page scrolls the accounts and the frame grows to hold them. */
    #reconciler-workflow-tab .rec-divide-frame { max-height: none; min-height: 0; }
    #reconciler-workflow-tab .rec-divide-frame > .rec-divide-dock { flex: none; }
    #reconciler-workflow-tab .rec-divide-scroll { overflow-x: hidden; }
    /* Each account card swipes sideways on its own, its band pinned at the left while the grid moves. */
    #reconciler-workflow-tab .rec-divide-scroll > .rec-divide-account { width: auto; min-width: 0; overflow-x: auto; }
    #reconciler-workflow-tab .rec-divide-account-head { position: sticky; left: 0; flex-wrap: wrap; row-gap: .25rem; }
    #reconciler-workflow-tab .rec-divide-account-title { flex: 1 1 100%; }
    #reconciler-workflow-tab .rec-divide-account-counts { white-space: normal; flex-wrap: wrap; row-gap: .25rem; }
    #reconciler-workflow-tab .rec-divide-account-coverage {
        position: static; left: auto !important; right: auto; transform: none;   /* its left is measured inline */
        order: 3; flex: 1 1 100%; white-space: normal;
    }
    /* No frozen columns: the book side alone is wider than the screen, so pinned columns would leave
       nothing to swipe. The bank Description keeps a width (the wrapped layout gave it the leftover,
       which on a phone is nothing). */
    #reconciler-workflow-tab .rec-divide-table .rec-frz { left: auto; right: auto; }
    #reconciler-workflow-tab .rec-divide-table td.rec-frz { position: static; }
    #reconciler-workflow-tab .rec-divide-table .rec-frz-bankhead { padding-left: .5rem; }
    #reconciler-workflow-tab .rec-w-bankdesc { width: 14rem; }
    /* The Filters box opens folded to its band and the search; the pill opens the rest. */
    .rec-filters-fold { display: inline-block; margin-left: auto; }
    .rec-filters-head { flex-wrap: wrap; row-gap: .25rem; }
    .rec-filters-head > .rec-divide-totals { order: 3; flex: 1 1 100%; white-space: normal; }
    .rec-filters-box--folded > :not(.rec-filters-head):not(:has(#rec-divide-search)) { display: none !important; }
    .rec-divide-search-box { width: 100%; }
    /* Rules: Show Deleted / Suggest / Import wrap under the search instead of running off the screen. */
    #rules-tab .ms-auto { min-width: 0; max-width: 100%; }
    #rules-tab .ms-auto > .d-inline-flex { flex-wrap: wrap; }
    /* 16px in the search boxes: iOS zooms the page into any field set smaller. */
    #reconciler-workflow-tab .fo-check-search-input { font-size: 16px; }
}

/* The product-order check on the Accruer / Allocator / Inter workflow forms (fo-chain-check.js). It sits in
   a form, not under the Closer tab strip, so its table head doesn't pin. */
.fo-chain-check { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.fo-chain-check-note { font-size: 14px; color: #495057; }
.fo-chain-check-table > thead > :where(tr) > th { position: static; }

/* A weekly task line (TM-2064): its day, every N weeks and start date show only while Repeats is Weekly
   (closer-cadence-fields.js marks the form), and its created / due count days after the task's own date,
   so the period anchor dropdown gives way to that wording. */
form:not(.closer-cadence-weekly) .closer-weekly-field,
form:not(.closer-cadence-weekly) .closer-schedule-weekly-unit,
form.closer-cadence-weekly .closer-schedule-rule > select.closer-schedule-anchor,
form.closer-cadence-weekly .closer-schedule-rule > .fo-combobox { display: none; }
.closer-schedule-weekly-unit { flex: 1 1 auto; font-size: 14px; font-weight: 400; letter-spacing: normal; text-transform: none; color: #2d2c2f; white-space: nowrap; }

/* A monthly task line's months (TM-2525, closer/_months_fields.html): shown only while Repeats is Monthly
   (closer-cadence-fields.js marks the form), the twelve boxes on one wrapping row. */
form:not(.closer-cadence-monthly) .closer-months-field { display: none; }
.fo-template-form .modal-body > .closer-months-field { grid-column: 1 / -1; }
/* The boxes clear the fieldset's floated legend (Bootstrap's reboot floats it): uncleared they sat in the
   zero-width gap beside it, one under another past the form's right edge with their names cut off (TM-2540). */
.closer-months-boxes { clear: both; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; font-weight: 400; color: #2d2c2f; }
/* The app pulls a .form-check box 27px left of its padding (.form-check:not(.form-switch)); pad by as much,
   so the first box lines up with the legend above it. */
.closer-months-boxes > .form-check-inline { margin: 0; padding-left: 27px; }
.closer-months-boxes .form-check-label { text-transform: none; letter-spacing: normal; }

/* Forecaster: each account's own run-rate method (the "By account" link, the Methods panel, the popover's Method column). */
.forecaster-setting-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.forecaster-methods-link { display: inline; padding: 0; margin: 0; border: 0; background: none; color: #250d47; font-size: 14px;
  font-weight: 600; line-height: inherit; text-transform: none; letter-spacing: normal; white-space: nowrap; cursor: pointer; }
.forecaster-methods-link:hover, .forecaster-methods-link:focus-visible { color: #e91e63; }
.forecaster-methods-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.forecaster-methods-tools .fo-check-search-box { min-width: 240px; }
.forecaster-methods-bulk { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.forecaster-methods-table { width: 100%; }
.forecaster-methods-table td, .forecaster-methods-table th { font-size: 12px; text-align: left; }
.forecaster-methods-table td { color: #2d2c2f; }
.forecaster-methods-table thead th { color: #fff; }
.forecaster-methods-table td.forecaster-num, .forecaster-methods-table th.forecaster-num { text-align: right; }
.forecaster-methods-table td:first-child, .forecaster-methods-table th:first-child { width: 28px; }
.forecaster-methods-table tr.forecaster-methods-ticked td { background: #cfe2ff; }
.forecaster-methods-changed { box-shadow: inset 3px 0 0 #e91e63; }
.forecaster-methods-msg { font-size: 14px; margin-top: 6px; }
.forecaster-explain-method { white-space: nowrap; font-size: 14px; }
/* Forecaster: the Changes tab's Scenarios filter (tick boxes, the Columns picker's rows). */
.forecaster-scenario-menu { min-width: 180px; max-height: 320px; overflow-y: auto; }
.forecaster-scenario-menu .closer-txn-col-opt { display: flex; align-items: center; cursor: pointer; margin: 0; }
.forecaster-scenario-only { margin-left: auto; padding: 0 0 0 .75rem; border: 0; background: none; font-size: 14px; color: #250d47; opacity: 0; }
.forecaster-scenario-menu .closer-txn-col-opt:hover .forecaster-scenario-only, .forecaster-scenario-only:focus-visible { opacity: 1; }
.forecaster-scenario-only:hover { color: #e91e63; }
.forecaster-scenario-clear { font-size: 14px; border-top: 1px solid #dee2e6; color: #250d47; }
.forecaster-scenario-clear:hover { color: #e91e63; }
/* Forecaster ▸ Drivers (TM-2126, forecaster-drivers.js): the rows that aren't QuickBooks accounts, their
   formulas read as chips (a row's name, a blue number that drags to try another value, the function words),
   the one-box builder both editors share (its suggestions under the box, the recipes under that), what the
   server works an edit out to, and the bar while an edit is tried unsaved. */
.forecaster-drv-table th small.forecaster-drv-head-kind { display: block; font-size: 10px; font-weight: 400; opacity: .8; }
.forecaster-drv-table th.forecaster-drv-col-rule, .forecaster-drv-table td.forecaster-drv-col-rule { text-align: left; white-space: normal; min-width: 260px; max-width: 420px; }
.forecaster-drv-table td.forecaster-drv-col-trend { text-align: left; }
.forecaster-drv-table td.forecaster-col-label { min-width: 220px; }
.forecaster-drv-caret { border: 0; background: none; padding: 0; width: 16px; margin-right: .25rem; color: #250d47; }
.forecaster-drv-caret .fa { transition: transform .15s; font-size: 10px; }
.forecaster-drv-caret.open .fa { transform: rotate(90deg); }
.forecaster-drv-caret:hover { color: #e91e63; }
.forecaster-drv-caret-gap { display: inline-block; width: 16px; margin-right: .25rem; }
.forecaster-drv-name { color: #250d47; font-weight: 600; text-decoration: none; }
a.forecaster-drv-name:hover { color: #e91e63; }
.forecaster-drv-child .forecaster-drv-name { font-weight: 400; }
.forecaster-drv-unit { margin-left: .35rem; font-size: 14px; color: #495057; }
.forecaster-drv-method { color: #495057; }
.forecaster-drv-formula { line-height: 1.9; }
.forecaster-drv-chip { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 10px; background: #f4f1f8; color: #250d47; font-size: 12px; font-weight: 600; white-space: nowrap; }
.forecaster-drv-num { color: #1A73E8; font-weight: 600; font-variant-numeric: tabular-nums; }
.forecaster-drv-num-drag { cursor: ew-resize; border-bottom: 1px dashed #1A73E8; user-select: none; touch-action: none; }
.forecaster-drv-num-drag:hover, .forecaster-drv-num-dragging { color: #e91e63; border-bottom-color: #e91e63; }
.forecaster-drv-fn { color: #250d47; font-weight: 600; font-size: 14px; }
.forecaster-drv-op { color: #495057; margin: 0 .15rem; }
.forecaster-drv-when { font-size: 14px; color: #495057; }
.forecaster-drv-add { margin-left: .5rem; }
.forecaster-drv-spark polyline { fill: none; stroke-width: 1.4; }
.forecaster-drv-spark-actual { stroke: #adb5bd; }
.forecaster-drv-spark-budget { stroke: #250d47; }
.forecaster-drv-empty { padding: 1.25rem; border: 1px dashed #dee2e6; border-radius: .375rem; font-size: 14px; color: #2d2c2f; max-width: 720px; }
.forecaster-drv-empty-title { font-size: 14px; font-weight: 600; color: #250d47; margin-bottom: .35rem; }
/* The builder. */
.forecaster-drv-box { position: relative; }
.forecaster-drv-input { font-family: SFMono-Regular, Menlo, Consolas, monospace; }
.forecaster-drv-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 2px; background: #fff; border: 1px solid #dee2e6; border-radius: .375rem; box-shadow: 0 4px 14px rgba(17,24,39,0.12); max-height: 240px; overflow-y: auto; }
.forecaster-drv-suggest[hidden] { display: none; }
.forecaster-drv-suggest-item { display: flex; justify-content: space-between; gap: .75rem; padding: 5px 12px; font-size: 14px; color: #2d2c2f; cursor: pointer; }
.forecaster-drv-suggest-item small { color: #495057; }
.forecaster-drv-suggest-item:hover, .forecaster-drv-suggest-item.active { background: #e7f1ff; }
.forecaster-drv-recipes { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.forecaster-drv-replaces { display: inline-flex; align-items: center; margin-top: .3rem; font-size: 14px; color: #2d2c2f; }
.forecaster-drv-actuals { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .35rem; }
.forecaster-drv-actual-cell { display: flex; flex-direction: column; margin: 0; }
/* What the server works the edit out to. */
.forecaster-drv-preview { margin-top: .75rem; font-size: 14px; color: #2d2c2f; }
.forecaster-drv-preview:empty { display: none; }
.forecaster-drv-preview-part { padding: .45rem 0; border-top: 1px solid #dee2e6; }
.forecaster-drv-monthnav { display: inline-flex; align-items: center; gap: .15rem; text-transform: none; letter-spacing: 0; }
.forecaster-drv-monthnav .closer-modal-x { height: 20px; width: 20px; padding: 0; font-size: 10px; }
.forecaster-drv-sheet { display: block; font-size: 14px; color: #2d2c2f; background: #f8f9fa; padding: .3rem .45rem; border-radius: .25rem; word-break: break-all; }
.forecaster-drv-msg { margin: .2rem 0; }
.forecaster-drv-checking { font-size: 14px; margin-bottom: .25rem; }
.forecaster-drv-line { width: 100%; height: 130px; }
.forecaster-drv-line-actual { fill: #f4f1f8; }
.forecaster-drv-line-grid { stroke: #eee; }
.forecaster-drv-line-label { font-size: 14px; fill: #495057; }
.forecaster-drv-line-before, .forecaster-drv-line-after { fill: none; }
.forecaster-drv-line-before { stroke: #adb5bd; stroke-width: 1.5; stroke-dasharray: 4 3; }
.forecaster-drv-line-after { stroke: #e91e63; stroke-width: 2; }
/* Describe it: the box (a wand in the boxed search), what the AI said under it, and the page's proposal. */
.forecaster-drv-describe { display: flex; align-items: center; gap: .5rem; }
.forecaster-drv-describe-box { flex: 1; max-width: 640px; }
.forecaster-drv-describe-page { margin-bottom: .5rem; }
.forecaster-drv-said { font-size: 14px; color: #2d2c2f; margin-top: .35rem; }
.forecaster-drv-said:empty { display: none; }
.forecaster-drv-ask { color: #250d47; font-weight: 600; }
.forecaster-drv-proposal { border: 1px solid #dee2e6; border-radius: .375rem; padding: .6rem .75rem; max-width: 760px; background: #fff; }
.forecaster-drv-proposal-says { font-weight: 600; color: #250d47; margin-bottom: .25rem; }
.forecaster-drv-proposal-list { margin: 0 0 .35rem 1rem; padding: 0; }
.forecaster-drv-proposal-actions { display: flex; gap: .4rem; margin-top: .5rem; }
/* An edit being tried, unsaved: what it is, then Save and Discard. */
.forecaster-trying-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; padding: .4rem .6rem; border: 1px dashed #e91e63; border-radius: .375rem; background: #fff; font-size: 14px; color: #2d2c2f; }
.forecaster-trying-bar[hidden] { display: none; }

/* A Magic AI Report's Edit SQL screen: the main chat fills its left pane. */
.mai-main-chat-pane { display: flex; flex-direction: column; min-height: 0; height: 100%; overflow-y: auto; }
.mai-main-chat-mount { flex: 1 1 auto; min-height: 0; }
.mai-main-chat-earlier { border-bottom: 1px solid #dee2e6; margin-bottom: 8px; padding-bottom: 8px; }
.mai-main-chat-earlier-line { color: #2d2c2f; font-size: 14px; font-weight: 400; margin: 6px 0 0; white-space: pre-wrap; }
.mai-main-chat-earlier-toggle { background: none; border: 0; color: #250d47; font-size: 14px; padding: 0; }
.mai-main-chat-earlier-toggle:hover { color: #e91e63; }
.mai-main-chat-caret { transition: transform .15s; }
.mai-main-chat-caret-open { transform: rotate(90deg); }

/* Compact divide rows (TM-2114; Jesse, 2026-11-04: "make each row less tall ... in IRec we were
   able to fit more rows"). BOOK side, both layouts: the Entry cell is ONE line (who, doc number,
   account, the states that change what you do, the row's action icons), and the rest is the hover
   popover (BookDetailPeek.tsx). The doc number gives way first, then the name and account. */
.rec-divide-book-line { display: flex; align-items: center; gap: .3rem; min-width: 0; white-space: nowrap; }
.rec-divide-book-line > * { flex: 0 0 auto; }
.rec-divide-book-line > .rec-divide-book-name { flex: 0 1 auto; min-width: 2.5rem; max-width: 65%; overflow: hidden; text-overflow: ellipsis; }
.rec-divide-book-line > .rec-divide-entry-label { flex: 0 100 auto; min-width: 0; margin-left: 0; overflow: hidden; text-overflow: ellipsis; }
.rec-divide-book-line > .rec-divide-account-line { flex: 0 1 auto; min-width: 0; margin-top: 0; overflow: hidden; text-overflow: ellipsis; }
.rec-divide-book-line > .rec-chip { margin: 0; }
.rec-divide-book-line > .rec-divide-book-acts { flex-wrap: nowrap; margin: 0 0 0 auto; }
.rec-divide-book-line > .rec-divide-book-acts:empty { display: none; }
.rec-divide-book-line .rec-divide-entry-del-confirm { white-space: nowrap; }
/* The popover: the statement peek's box, but it takes the pointer so the rule chip in it opens the rule. */
.rec-divide-book-peek { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
                        width: max-content; max-width: 26rem; font-size: 14px; color: #2d2c2f; }
.rec-divide-book-peek > .rec-chip { margin: 0; }
.rec-divide-book-peek-line { flex: 0 0 100%; }
.rec-divide-book-peek-head { font-weight: 600; color: #250d47; }
.rec-divide-book-peek .rec-divide-rule { margin-top: 0; }
.rec-divide-book-peek .rec-divide-rule-tag { white-space: normal; }
.rec-divide-book-peek .rec-divide-extras { margin-top: 0; }
/* BANK side, column layout: the chips and the booking boxes share the narrative's line; "usually"
   is an icon (its words are the tooltip). */
.rec-divide-table--compact .rec-divide-meta--inline { display: inline-flex; flex-wrap: nowrap; flex: 0 0 auto; margin-right: .3rem; }
.rec-divide-table--compact .rec-divide-meta--inline:empty { display: none; }
.rec-divide-table--compact .rec-divide-desc-line { align-items: center; }
.rec-divide-table--compact td { vertical-align: middle; }
.rec-divide-table--compact .rec-divide-name-wrap { display: flex; align-items: center; gap: .25rem; }
.rec-divide-table--compact .rec-divide-name-wrap > :first-child { flex: 1 1 auto; min-width: 0; }
.rec-divide-table--compact .rec-divide-usual-btn { display: inline-block; flex: 0 0 auto; width: auto; margin-top: 0; }
/* On a one-line row the narrative keeps at least 8rem: the row's id gives way first (its full text
   is its tooltip), then the narrative ellipsizes. */
.rec-divide-table--compact .rec-divide-desc-line .rec-divide-desc-text { flex: 1 1 auto; min-width: 8rem; }
.rec-divide-table--compact .rec-divide-desc-line .rec-divide-foact { flex: 0 100 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* A narrative that spans the booking columns (a row booked outside Reconciler) keeps its id and
   copy button beside the text, not out under Class / Department. */
td.rec-divide-desc--span .rec-divide-desc-line .rec-divide-desc-text { flex: 0 1 auto; }
/* Wrapped (TM-2175; Theresa, Jesse 2026-11-06: "I don't want to see more, I want to see what I
   have"): the book side wraps its whole name, doc number and account as well, down into the height
   the wrapped bank row already takes, instead of cutting them to the hover. */
.rec-divide-table--wrap .rec-divide-book-line { flex-wrap: wrap; white-space: normal; row-gap: .1rem; }
.rec-divide-table--wrap .rec-divide-book-line > :is(.rec-divide-book-name, .rec-divide-entry-label, .rec-divide-account-line) {
    flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: visible; text-overflow: clip; white-space: normal; }

/* Firm Settings › Connected Apps (TM-2106, templates/teams/connected_apps.html). */
.firm-apps-card p.firm-apps-help, .firm-apps-card .firm-apps-message, .firm-apps-modal .firm-apps-message,
.firm-apps-modal .firm-apps-modal-body { font-size: 14px; font-weight: 400; color: #2d2c2f; }
.firm-apps-modal .firm-apps-message { color: #495057; margin-top: 4px; }
.firm-apps-secret { border: 1px solid #dee2e6; border-radius: .375rem; padding: 10px 12px; margin-bottom: 12px; background: #fff; }
.firm-apps-secret code, .firm-apps-table code { font-size: 14px; word-break: break-all; }
.firm-apps-table .firm-apps-uri { word-break: break-all; }
.firm-apps-table td.firm-apps-actions { white-space: nowrap; text-align: right; }
.firm-apps-modal .modal-title { font-size: 14px; font-weight: 600; color: #250d47; }

/* Closer: "What's left for the <month> close" (meeting-driven close, Stage 1; closer.whats_left).
   The panel lists the month's open work by group: a 14px section title per group, the standard
   check table under it, 12px body text. */
.closer-whats-left-lede { font-size: 14px; font-weight: 400; color: #2d2c2f; margin-bottom: 1rem; }
.closer-whats-left-group + .closer-whats-left-group { margin-top: 1.25rem; }
.closer-whats-left-heading {
    display: flex; align-items: center; margin: 0 0 .5rem;
    font-size: 14px; font-weight: 600; color: #250d47;
}
.closer-whats-left-table { width: 100%; }
/* Pinned to the top of the modal's scroll, not under the page's tab strip. */
.closer-whats-left-table > thead > :where(tr) > th { top: 0; }
.closer-whats-left-table td { font-size: 14px; font-weight: 400; color: #2d2c2f; vertical-align: top; }
.closer-whats-left-table a { color: #250d47; text-decoration: none; }
.closer-whats-left-table a:hover { color: #e91e63; }
.closer-whats-left-detail { color: #495057; margin-top: 2px; }
/* An agent's report on the month under its Sign-off row, folded until "Show report" (TM-2290). The theme's global
   summary rule is 14px, so it is put back to the panel's 12px. */
.closer-signoff-report { margin-top: 4px; }
.closer-signoff-report > summary {
    display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
    font-size: 14px !important; font-weight: 400; color: #250d47;
}
.closer-signoff-report > summary::-webkit-details-marker { display: none; }
.closer-signoff-report > summary:hover { color: #e91e63; }
.closer-signoff-report > summary .closer-task-section-caret { color: inherit; font-size: 10px; }
.closer-signoff-report[open] > summary .closer-task-section-caret { transform: rotate(90deg); }
.closer-signoff-report > summary .closer-whats-left-detail { margin-top: 0; }
.closer-signoff-report-body {
    margin-top: 6px; padding: 4px 10px; border-left: 3px solid #dee2e6; max-height: 24rem; overflow-y: auto;
}
.closer-whats-left-col-state { width: 11rem; }
.closer-whats-left-col-who { width: 11rem; }
.closer-whats-left-col-actions { width: 1%; }
.closer-whats-left-actions { white-space: nowrap; text-align: right; }
.closer-whats-left-actions > .btn + .btn { margin-left: 4px; }
.closer-whats-left-actions .btn.is-armed { background: #e91e63 !important; border-color: #e91e63 !important; color: #fff !important; }
/* A task's status chip is a <summary>: the theme's global summary rule makes it 14px, so it is put back to
   the one chip size, as .closer-tab-card does on the page. */
.closer-whats-left summary.closer-pill { font-size: 12px !important; }
.closer-whats-left summary.closer-pill .closer-status-caret { font-size: 10px; }
/* A task's status menu opens over the rows under it. */
.closer-whats-left-table tbody:has(.closer-status-menu[open]) { position: relative; z-index: 40; }
/* A check's findings, under its row: the chevron rotates open, the findings sit indented. */
.closer-whats-left-expand { border: 0; background: none; padding: 0 4px 0 0; color: #250d47; }
.closer-whats-left-expand:hover { color: #e91e63; }
.closer-whats-left-expand .closer-task-section-caret { transition: transform .15s; }
/* The row's chevron is the check drawer's (.fo-check-collapse-caret): dark purple, 14px, hot pink on
   hover, not the grey section caret (Christopher, 2026-11-12). */
.closer-whats-left-expand .closer-task-section-caret { color: inherit; font-size: 14px; width: 18px; text-align: center; }
.closer-whats-left-expand[aria-expanded="true"] .closer-task-section-caret { transform: rotate(90deg); }
.closer-whats-left-finding > td:first-child { padding-left: 2rem; }
.closer-whats-left-finding .fo-finding-dot { margin-right: 6px; display: inline-block; vertical-align: middle; position: relative; top: -1px; text-indent: 0; }   /* drawn: an inline span had no width, so the dot never showed */
/* The box a question's resolution (or a task's reason) is typed into, under its button. */
.closer-whats-left-ask { display: flex; justify-content: flex-end; gap: 4px; margin-top: 4px; }
.closer-whats-left-ask > input { width: 16rem; }
.closer-whats-left-say { display: flex; align-items: center; font-size: 14px; }
/* The list and, once a thread is open, its drawer beside it: each scrolls on its own, and the modal
   widens to make room (Jesse, 2026-11-06: "conversations open up as a drawer"). */
.closer-whats-left-dialog-wide { max-width: min(96vw, 1800px); }
.closer-whats-left-split { display: flex; gap: 1rem; overflow: hidden !important; }
.closer-whats-left-list { flex: 1 1 0; min-width: 0; overflow-y: auto; }
.closer-whats-left-drawer { flex: 0 0 56%; min-width: 0; display: flex; flex-direction: column; padding-left: 1rem; border-left: 1px solid #dee2e6; }
.closer-whats-left-drawer[hidden] { display: none; }
.closer-whats-left-drawer-head { display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; border-bottom: 1px solid #dee2e6; }
.closer-whats-left-drawer-title { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: #250d47; }
.closer-whats-left-drawer-page { font-size: 14px; color: #250d47; text-decoration: none; white-space: nowrap; }
.closer-whats-left-drawer-page:hover { color: #e91e63; }
.closer-whats-left-thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-top: .75rem; }
/* A comment's card at the top of the drawer (TM-2290): what it is about, the statement rows or the
   transaction it is on, then its thread from the Closer comment surface (closer-fin-comments.js). */
.closer-whats-left-about-card { padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid #dee2e6; font-size: 14px; font-weight: 400; color: #2d2c2f; }
.closer-whats-left-about-line { font-size: 14px; font-weight: 600; color: #2d2c2f; margin: 2px 0 6px; overflow-wrap: anywhere; }
.closer-whats-left-about-findings { margin-top: .75rem; }
.closer-whats-left-about-findings .fo-finding-dot { margin-right: 6px; }
.closer-whats-left-context { margin: .5rem 0 .75rem; }
.closer-whats-left-context-head { margin-bottom: 4px; }
/* The statement's rows around the line: the Financials table, not scrolling on its own, no sticky
   columns (the drawer scrolls). */
.closer-whats-left-slice { max-height: none; overflow: visible; }
.closer-whats-left-slice .closer-fin-table { width: 100%; }
.closer-whats-left-slice .closer-fin-table thead th,
.closer-whats-left-slice .closer-fin-table .closer-fin-acct { position: static; }
.closer-whats-left-slice-more > th { font-weight: 400; color: #495057; font-style: italic; }
/* The line the comment is on, as the list marks the row open in the drawer. */
.closer-whats-left-slice-target > th, .closer-whats-left-slice-target > td { background: #cfe2ff; color: #2d2c2f; }
.closer-whats-left-fin-thread > .closer-fin-thread { border-top: 0; padding-top: 0; }
.closer-whats-left-thread-toggle { padding: 0; margin-bottom: .5rem; font-size: 14px; color: #250d47; text-decoration: none; }
.closer-whats-left-thread-toggle:hover { color: #e91e63; }
.closer-whats-left-thread-toggle[aria-expanded="true"] .closer-task-section-caret { transform: rotate(90deg); }
.closer-whats-left-thread-toggle .closer-task-section-caret { margin-right: 4px; }
/* The row whose thread is open in the drawer. */
.closer-whats-left-current > tr:first-child > td { background: #cfe2ff; }
.closer-whats-left-col-thread { width: 6rem; }
#closer-whats-left-modal .modal-title { font-size: 14px; font-weight: 600; color: #250d47; }

/* Settings → Write Limits (templates/teams/write_limits.html): a narrow number box per limit. An
   empty box shows what it inherits, in italics, so a saved number reads apart from an inherited one. */
.fo-write-limits-table {
    width: auto;
}

.fo-write-limit-input {
    width: 6.5rem;
}

.fo-write-limit-input::placeholder {
    color: #495057;
    font-style: italic;
}

.fo-write-limits-errors {
    font-size: 14px;
    margin-bottom: .5rem;
}

/* ── The left menu on a phone (TM-2281, Theresa on her iPhone 2026-11-09: once an app was open the
   menu stayed over the page). Below xl the menu covers the page instead of sitting beside it, so it
   starts closed on every page and the top bar's hamburger opens it (sidenav.js adds
   .fo-sidenav-phone-open, and takes it off again once a link is chosen or the page beside it is
   tapped). The drawerState cookie stays the computer's choice; at xl and up nothing changes. ── */
@media (max-width: 1199.98px) {
    body.g-sidenav-show:not(.fo-sidenav-phone-open) .sidenav { transform: translateX(-18.625rem); }
    body.g-sidenav-show.fo-sidenav-phone-open .sidenav { transform: translateX(0); }
}

/* The "Loading…" line while the next page is on its way (fo-page-loading.js): the standard inline
   spinner, pinned at the top of the screen over whatever is scrolled there. */
.fo-page-loading {
    position: fixed; top: .75rem; left: 50%; transform: translateX(-50%); z-index: 1090;
    display: inline-flex; align-items: center; padding: .35rem .75rem;
    background: #fff; border: 1px solid #dee2e6; border-radius: .375rem;
    box-shadow: 0 .25rem .75rem rgba(37, 13, 71, .15); font-size: 14px; font-weight: 400;
}
.fo-page-loading[hidden] { display: none; }

/* Conversations and My Meetings on a phone: one page scroll (Theresa, TM-2204, TM-2281). Pinned, the
   tabs and the Filters box were taller than the screen and covered the rows, and the table's
   fit-the-window box fell to its 200px floor at the bottom of the page. Unpinned and uncapped, the
   rows follow the filters down the page. A phone held sideways is wider than md but under 500px
   tall, where the pinned header leaves even less room, so it scrolls the same way. */
@media (max-width: 767.98px), (max-height: 500px) {
    .desk-sticky { position: static; }
    .conversations-panel [data-role="desk-table"] .fo-table-scroll { max-height: none !important; }   /* ResultsTable sets it inline */
}

/* Merge dialog (TM-2278, conversations/includes/merge_dialog.html): the picked-target table in the
   standard look (dark purple header, 12px body ink, light blue hover, the checked row #cfe2ff), and
   scrolls inside the dialog. */
.desk-merge-results { max-height: 18rem; overflow-y: auto; }
.desk-merge-table { width: 100%; border-collapse: collapse; }
.desk-merge-table th { background: #250d47; color: #fff; font-size: 12px; font-weight: 600; padding: .35rem .5rem; text-align: left; position: sticky; top: 0; }
.desk-merge-table td { font-size: 14px; color: #2d2c2f; padding: .35rem .5rem; border-bottom: 1px solid #dee2e6; background: #fff; cursor: pointer; }
.desk-merge-table tr:hover > td { background: #e7f1ff; }
.desk-merge-table tr:has(input:checked) > td { background: #cfe2ff; }
.desk-merge-table .desk-merge-pick { width: 2rem; }
.desk-merge-table .desk-merge-pick .form-check-input { float: none; margin: 0; }
.desk-merge-empty { font-size: 14px; color: #495057; }
.conversations-merged-line { color: #2d2c2f; }

/* Table data is 14px (Christopher, 2026-11-10); the header row stays 12px. These tables size the whole
   table, so their header cells are held at 12px here. */
:is(.closer-builtin-grid, .closer-builtin-je-table, .closer-builtin-cfg-table, .closer-builtin-tl-table,
    .fo-cq-txns-table, .fo-edit-grid-table, .rec-status-table, .aplus-subtable, .aplus-vendor-table,
    .rec-divide-table) > thead th { font-size: 12px; }
/* Firm Close: the intro under All Clients and the review-status note under the table at 14px (Christopher, 2026-11-10). */
.fo-overview-subtle.fo-close-summary-text { font-size: 14px; }

/* Every Filters box's controls at 14px: the search box, text and date inputs, and the dropdowns' shown value
   (Christopher, 2026-11-10). A new Filters body joins this list rather than sizing its own controls. */
:is(.conversations-filterbar, .aplus-queue-filterbar, .fo-close-summary-filterbar, .fo-filters-box, .rec-filters-box,
    #allocator-spreads-filters, .closer-gl-filterbar, .fo-activity-filters, .team-files-filters)
    :is(input.form-control, input[type="search"], input[type="text"], input[type="date"], select, .form-select,
       .fo-combobox-display-text, .mr-select-btn-text, .rec-combo-trigger) {
  font-size: 14px;
}

/* Regular text 12px → 14px app-wide (Christopher, 2026-11-11). Where a rule sized a whole table,
   its header row stays at the standard 12px. */
:is(.closer-adoptable-fact, .closer-changes-table, .closer-fin-diff-table, .closer-fin-table, .closer-gl-table, .closer-txn-guide-table, .closer-txn-table, .fo-cq .fo-cq-table, .fo-edit-grid, .fo-edit-grid .fo-edit-grid-trash, .fo-edit-grid-bar, .fo-edit-grid-creates, .fo-edit-grid-drawn .fo-edit-grid-drawn-all, .fo-edit-grid-err, .fo-edit-grid-flag-panel, .fo-edit-grid-hidden-staged, .fo-edit-grid-history-tip, .fo-edit-grid-lock-note, .fo-edit-grid-note, .fo-edit-grid-review, .fo-edit-grid-sub, .fo-edit-grid-undo, .fo-edit-grid-warn, .fo-grid-editor-body, .fo-grid-editor-note, .fo-recgrid-feed-key, .fo-recgrid-legend, .fo-recgrid-pop, .fo-recgrid-pop .fo-recgrid-pop-activity, .fo-recgrid-pop .fo-recgrid-pop-foot, .fo-recgrid-pop-activity, .fo-recgrid-toolbar > .fo-recgrid-sort, .fo-recgrid-toolbar > .fo-recgrid-summary, .fo-skip-table, .forecaster-explain-table, .forecaster-table, .mrr-table, .payroll-files-table, .plaid-connections-page .activity-table-note, .rec-divide-drift-table) > thead th { font-size: 12px; }

/* …and the second pass (every 9-13.9px size): those whole-table rules' header rows stay 12px too. */
:is(.ai-chat-bubble-assistant table, .ai-markdown table, .aplus-credits-table, .aplus-subtable, .aplus-vendor-table, .drilldown-table, .fo-fin-table, .fo-fix-table, .fo-recgrid-table, .fo-unstack-preview-table, .onb-table, .rec-get-started-sources-table, .rec-status-table, .rec-statuses-table, .rec-suggest-preview-table, .usage-modal-table, .usage-record-table, .usage-table-caption) > thead th { font-size: 12px; }

/* A drill-down / pop-up window's close × in its top-right corner, on the title's line, whatever wraps
   (Christopher, 2026-11-11: it sat at the end of the wrapped controls row). The head keeps room for it,
   and the title row is the controls' 29px, so the × centres on the title. */
.closer-fin-drillx-head { position: relative; padding-right: 3rem; }
.closer-fin-drillx-head > .closer-fin-drill-title { min-height: 29px; display: inline-flex; align-items: center; }
.closer-fin-drillx-head :is(.closer-modal-x, .closer-fin-drill-close) { position: absolute; top: .7rem; right: .75rem; margin: 0; height: 29px; min-width: 29px; display: inline-flex; align-items: center; justify-content: center; }

/* A finding row's age, links and actions in columns down the list (Christopher, 2026-11-11): the age in a
   fixed column wide enough for "new today", on the subject's first line (not centred on a wrapped
   subject), and a missing link holding its place (.fo-finding-link-slot, invisible) so the next one
   lines up under the other rows'. */
li.fo-finding-row > .fo-finding-age { min-width: 5.25rem; align-self: baseline; }
.fo-finding-link-slot { visibility: hidden; pointer-events: none; }
li.fo-finding-row > .fo-finding-btns { flex: 0 0 auto; }
/* "Include all": the box 0.5px up, its middle on the caps' (Christopher, 2026-11-11). */
.fo-finding-include-all label .form-check-input { position: relative; top: -.5px; }

/* Tasks and Workflows popovers: their rows share columns, so the due dates and the chips start at the
   same left edge down the list (Christopher, 2026-11-11), as Bank Recs' do. The row's wrapper drops out
   of the layout; an error line under a workflow spans the row. */
.closer-light-pop .closer-light-pop-table.closer-light-pop-rowcols { display: grid; grid-template-columns: minmax(7rem, 1fr) max-content max-content; column-gap: .75rem; }
.closer-light-pop .closer-light-pop-rowcols > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; }
.closer-light-pop .closer-light-pop-rowcols > li > .closer-light-pop-row { display: contents; }
.closer-light-pop .closer-light-pop-rowcols > li > .closer-light-pop-errtext { grid-column: 1 / -1; }
.closer-light-pop .closer-light-pop-rowcols .closer-light-pop-chip { justify-self: start; margin-left: 0; }
/* …and its pick box on the subject's first line too (it centred on a wrapped subject): on the text's
   baseline, then down the .16em (2.3px at 14px) that puts its middle on the line's. */
li.fo-finding-row > .fo-finding-pick { align-self: baseline; position: relative; top: .16em; }

/* The loading spinner is hot pink (text-primary), except on a dark fill, where it is white like the
   text beside it: an active / filled button or a dark header (Christopher, 2026-11-11). */
:is(.btn.active, .btn:is(.btn-secondary, .btn-dark, .btn-success, .btn-info, .btn-danger, .btn-primary):not([class*="btn-outline-"]), .table-dark, .bg-dark, .bg-gradient-dark) .spinner-border.text-primary,
:is(.btn.active, .btn:is(.btn-secondary, .btn-dark, .btn-success, .btn-info, .btn-danger, .btn-primary):not([class*="btn-outline-"]), .table-dark, .bg-dark, .bg-gradient-dark) .spinner-border { color: #fff !important; }
/* Closer's card titles ("What Closer checks on these books", …) indented .75rem, so the icon lines up
   under the context bar's CLOSING label (Christopher, 2026-11-11). */
.closer-home .closer-section-head { padding-left: .75rem; }

/* Hover and highlight backgrounds are the table rows' light blue #e7f1ff, a selected row's #cfe2ff, never
   the lavender a dozen menus, rows and buttons had (Christopher, 2026-11-11). */
/* A check's "Runs once…" reason: its icon 1px lower than Font Awesome's -.125em, centred between the
   caps and the lowercase of the mixed-case line beside it (Christopher, 2026-11-11). */
/* The reason's icon centred on its first line's capitals however the browser rounds the baseline: the line
   is a row, the 1em icon .2em down its 1.4 line (half the 0.4em leading), and a wrapped reason hangs under
   its text (Christopher, 2026-11-12: the relative-top nudge still read low on screen). */
.fo-check-reason { display: flex; align-items: flex-start; }
.fo-check-reason > .svg-inline--fa { flex: none; vertical-align: 0; margin-top: .2em; }

/* What's left: a check's "600 open findings" line under its name, not under the expand chevron (the
   22px button — the 18px chevron and its 4px padding — and the space after it), and a finding that wraps hanging under its text, not its
   severity dot (the 9px dot and its 6px gap) (Christopher, 2026-11-11). */
.closer-whats-left td:has(> .closer-whats-left-expand) > .closer-whats-left-detail { padding-left: calc(22px + .25em); }
.closer-whats-left-finding > td:first-child:has(> .fo-finding-dot) { padding-left: calc(2rem + 15px + .25em); text-indent: calc(-15px - .25em); }   /* + the space after the dot */

/* Closer's tab strip: 1px more under the tab text (Christopher, 2026-11-11), so the group labels
   (CONTINUOUS CLOSE, …), centred on the taller strip, sit level with the tabs' text. */
#closer-home-subtabs .nav-link { padding-bottom: calc(.3rem + 1px); }
/* The Closing menu's month names in one fixed-width slot, so every row's status chip starts at the same
   left edge (Christopher, 2026-11-11). */
.dropdown-menu .dropdown-item:has(> .closer-month-chip) > .closer-month-dd-pick { min-width: 5.25em; }
.dropdown-menu .dropdown-item:has(> .closer-month-chip) > .closer-month-chip { margin-left: 0 !important; }   /* no auto margin pushing it right */

/* A check's findings list in real columns (Christopher, 2026-11-11): every row is a subgrid of the list,
   so the age, each link and the actions start at the same left edge down the list, however long a
   row's names are. Each part names its column; a row without one leaves that cell empty. Anything
   under a row (bank text, a lines table, a detail) spans from the subject to the end on the next line. */
ul.fo-finding-list:not(.fo-dismissed-list) {
  display: grid;
  grid-template-columns: [pick] auto [origin] auto [addressed] auto [bubble] auto [subject] minmax(12rem, 1fr)
                         [age] auto [l1] fit-content(13rem) [l2] fit-content(13rem) [l3] fit-content(13rem)
                         [l4] fit-content(13rem) [l5] fit-content(13rem) [btns] auto [end];   /* a long name wraps in its 13rem */
  column-gap: .5rem;
  align-items: baseline;
}
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row {
  display: grid;
  grid-column: pick / end;
  grid-template-columns: subgrid;
  align-items: baseline;
  gap: 0 .5rem;
}
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > * { grid-column: subject / end; min-width: 0; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > .fo-finding-pick { grid-column: pick; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > .closer-pill-origin { grid-column: origin; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > .fo-finding-addressed-chip { grid-column: addressed; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > .fo-finding-comment-btn { grid-column: bubble; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > .fo-finding-subject { grid-column: subject; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > .fo-finding-age { grid-column: age; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > :nth-child(1 of :is(.fo-finding-maplink, .fo-finding-drill)) { grid-column: l1; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > :nth-child(2 of :is(.fo-finding-maplink, .fo-finding-drill)) { grid-column: l2; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > :nth-child(3 of :is(.fo-finding-maplink, .fo-finding-drill)) { grid-column: l3; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > :nth-child(4 of :is(.fo-finding-maplink, .fo-finding-drill)) { grid-column: l4; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > :nth-child(n+5 of :is(.fo-finding-maplink, .fo-finding-drill)) { grid-column: l5; grid-row: 1; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > .fo-finding-btns { grid-column: btns; grid-row: 1; }
/* No column gap: each part carries its own .5rem on the right, so a column no row on the list fills (the
   origin and addressed chips, most lists) closes to nothing instead of leaving two gaps between the
   checkbox and the comment bubble (Christopher, 2026-11-12). */
ul.fo-finding-list:not(.fo-dismissed-list),
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row { column-gap: 0; }
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > :is(.fo-finding-pick, .closer-pill-origin, .fo-finding-addressed-chip,
  .fo-finding-comment-btn, .fo-finding-subject, .fo-finding-age, .fo-finding-maplink, .fo-finding-drill) { margin-right: .5rem; }
/* The bubble's button pads its icon 2.4px on the left: checkbox to icon then matches icon to dot (12.8px). */
ul.fo-finding-list:not(.fo-dismissed-list) > li.fo-finding-row > .fo-finding-pick { margin-right: .35rem; }
/* "Showing the 25 most severe of 34…" at the list's indent, over its checkboxes. */
.fo-check-expand .fo-finding-morenote { margin-left: 1.6rem; }

/* Closer ▸ Checks ▸ Findings column: the count dropdowns right-aligned in one column, their "N new" chips
   left-aligned in the next, and every other line ("› 4 dismissed", "0", "1 assigned") centred across
   both (Christopher, 2026-11-11). */
.fo-findings-cell { padding-top: 2.25px; display: grid; grid-template-columns: minmax(max-content, 1fr) 4.5rem; column-gap: .25rem; row-gap: 2px; align-items: center; }
.fo-findings-cell > * { grid-column: 1 / -1; justify-self: center; }
.fo-findings-cell > .closer-findings-count { grid-column: 1; justify-self: end; }
.fo-findings-cell > .closer-status-new { grid-column: 2; justify-self: start; margin-left: 0 !important; }

/* The Workflows hover's roster count in the dark purple ink (Christopher, 2026-11-11). */
.closer-light-pop-wfcount { color: #250d47; }
/* …and the Tasks hover's done count the same purple, its open count and the Checks hover's open findings in
   the info blue (Christopher, 2026-11-11). */
.closer-light-pop-blue { color: #1A73E8; }   /* btn-info's blue */
.popover.closer-light-pop .popover-body .closer-light-pop-detail .closer-eyebrow { font-size: 12px !important; }   /* "OUTSTANDING:" at the caps labels' 12px, not the hover's text size */

/* The Map's column titles ("Not on the map yet") are the 12px caps label, over the tab's 14px text (Christopher, 2026-11-12). */
#cpane-map .fo-map-col-title { font-size: 12px; }
/* Expenser on the standards (Christopher, 2026-11-12): the Filters box's body, the standard table's
   white 12px head over its older grey caps one, the site checkbox centred in its cell, and the bulk
   bar's pickers, memo and 29px buttons on one centred line. */
.exp-filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem 1rem; padding: .5rem; }
.exp-filterbar .exp-filter-search .fo-check-search-box { width: 18rem; }
.exp-table.fo-check-table > thead > tr > th {
    color: #fff; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: normal;
}
.exp-table .form-check-input.fo-check-bare { float: none; margin: 0; vertical-align: middle; }
.exp-card-header .form-check-input.fo-check-bare { float: none; margin: 0; }
.exp-bulk-bar { align-items: center; }
.exp-bulk-bar > * { margin-top: 0; margin-bottom: 0; }
.exp-bulk-bar .exp-bulk-field { height: 29px; display: flex; align-items: center; }
.exp-bulk-bar .exp-bulk-field .rec-divide-edit-input { height: 29px; }
.exp-scroll > .exp-card-group:first-child { margin-top: 0; }
/* The Cards picker's own label (MultiselectFilter) reads as the box's other labels: the caps eyebrow. */
.exp-filterbar .mr-individual-filter > label.form-label {
    margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #250d47;
}
.exp-filterbar .mr-individual-filter { margin: 0; }
/* A bulk picker fills its white box. */
.exp-bulk-bar .exp-bulk-field > .rec-combo { flex: 1 1 auto; min-width: 0; }
.exp-bulk-bar .exp-bulk-field .rec-combo-trigger { width: 100%; }
/* The receipt and paperclip icons: dark purple, hot pink on hover, like every icon button. */
.exp-table :is(.exp-attach-btn, .exp-receipt-chip--btn) { color: #250d47; text-decoration: none; }
.exp-table :is(.exp-attach-btn, .exp-receipt-chip--btn):hover { color: #e91e63; }
/* The APlus queue's row checkbox on its row's first text line (the cells are top-aligned): centred
   in the 22.4px line, not on the cell's middle, which rode it 2px low (Christopher, 2026-11-12). */
.aplus-queue-table td.aplus-bulk-col .form-check-input { vertical-align: top !important; margin-top: 3px !important; }   /* the text's middle sits 1.4px above its line box's; over the :is(…, #aplus-review) rule's id weight */
/* Hide done's box on its caps label's middle: the caps sit high in their line box, so the box centred on
   the line read low (Christopher, 2026-11-12). */
.closer-cal-hide-done > .form-check-input.fo-check-bare { position: relative; top: -1px; }
/* The Financials statement tabs (Profit & Loss … More) and the M / Q / Y switch at 14px (Christopher, 2026-11-12). */
.closer-fin-stmt-tabs .nav-link { font-size: 14px; }
.closer-fin-basis .btn { font-size: 14px; }
/* A skill's tier menu (Reports only / Proposes only / Acts): each radio on its label's line, its help
   under the label's words, and the Acts switches indented under "Acts" with their boxes on their
   labels' lines (Christopher, 2026-11-12: the radios sat on lines of their own above the words). */
.closer-skill-schedule-form > .form-check { margin: 0 0 .5rem; }   /* the theme's radio: its 24px gutter holds the ring */
.closer-skill-schedule-form > .form-check > .form-check-label { display: flex; flex-direction: row; align-items: center; margin: 0; }
.closer-skill-schedule-form > .form-check > .form-check-label > .mx-1 { margin: 0 0 0 7px !important; }   /* the words over their help line (measured) */
.closer-skill-schedule-form > .form-check > small { display: block; }
/* The Acts switches under "Acts", their boxes on the labels' words' line: the same 24px in. */
.closer-skill-schedule-form > .closer-skill-cap { padding-left: 1.73em; }
.closer-skill-schedule-form > .closer-skill-cap > span { align-items: center; gap: .4rem; }
.closer-skill-schedule-form > .closer-skill-cap > span > .form-check-input { float: none; flex: none; margin: 0; }
.closer-skill-schedule-form > .closer-skill-cap > small { padding-left: 27px; }   /* under the switch's words: the box, the gap and the space before them (measured) */
/* The schedule menu's "Runs on" label and its dropdown flush with the hour boxes and the rest (a label's
   default 4px left margin had them in from the edge). */
.closer-skill-schedule-menu label { margin-left: 0; }
/* Skills' sections (Built-in skills, Available from your firm): their boxes start under the section's
   icon, not its chevron — the chevron's .9rem, its .5rem margin and the .4rem before the icon
   (Christopher, 2026-11-12). */
#cpane-skills details.closer-task-section > :not(summary),
#cpane-tasks details.closer-task-section[data-shelf-section] > :not(summary) { margin-left: calc(.9rem + .5rem + .4rem); }   /* and the Tasks tab's firm shelf (Christopher, 2026-11-12) */
/* A skill card's chips all caps, like the USE and tier chips beside them (Christopher, 2026-11-12). */
.closer-pill.closer-skill-schedule,
.closer-pill.closer-skill-kind-btn { text-transform: uppercase; letter-spacing: .03em; }
/* "Lines booked" at 12px over the Map tab's 14px text rule (#cpane-map :is(… label …)). */
#cpane-map .fo-map-lines-ctl > label.closer-eyebrow { font-size: 12px; }
/* Questions (Christopher, 2026-11-12): "No questions yet" starts where the heading and the Closing bar's
   CLOSING do, 12px in from the grey box's edge; and SHOW sits on its dropdown's text baseline, not 1.4px
   above it. */
.fo-cq .fo-cq-list > .closer-board-hint { padding-left: 12px; }
.fo-cq-filter-label { position: relative; top: 1.4px; }
/* The Transactions table's new-tab links (Num, Month) lead with the external-link icon, the APlus queue's size. */
.closer-txn-ext { margin-right: .3rem; font-size: .85em; }
/* Every link that opens a new tab leads with the external-link icon (Christopher, 2026-11-12: "make sure
   the icon is in front of the link, not behind it"): {% fo_icon "external_link" extra="fo-ext-icon" %},
   foIcon("external_link", "fo-ext-icon"), <FaIcon icon="external_link" className="fo-ext-icon" />. */
.fo-ext-icon { margin-right: .3rem; font-size: .85em; }
/* The drill's "SELECT ROWS TO SET" on its dropdown's line: caps beside lowercase read high, so 1px down
   (Christopher, 2026-11-12). */
.fo-edit-grid-bar .fo-edit-grid-bulk-label { position: relative; top: 1px; }
/* The Diff menu as wide as its rows, so a snapshot's name stays on one line (Christopher, 2026-11-12):
   "JUL 26 close · 8:55 snap" wrapped at the old width. The window still caps it. */
:is(#closer-diff-menu, #fc-diff-menu) { width: max-content; max-width: min(92vw, 52rem); }
:is(#closer-diff-menu, #fc-diff-menu) .closer-diffpick { grid-template-columns: 1rem max-content max-content; }
:is(#closer-diff-menu, #fc-diff-menu) .closer-diffpick-title { white-space: nowrap; }

/* "External" means an address outside finoptimal.com (Christopher, 2026-11-12). A link into the app that
   opens a new tab (a relative address, or a finoptimal.com / .test one) shows no external-link icon,
   whatever its markup carries — the icon is in the markup wherever the address is only known at run time. */
a:is([href^="/"]:not([href^="//"]), [href^="?"], [href^="#"], [href*="finoptimal.com"], [href*="finoptimal.test"]) .fo-ext-icon { display: none !important; }
/* A message's own links (chat replies, conversation and comment bodies, Markdown blocks, the Financials
   comment timeline) lead with the icon too when they go outside FinOptimal — drawn here, so the server's
   copy, the instant preview and the outbound email/Zendesk text stay as they are. */
:is(.ai-chat-bubble, .ai-markdown, .closer-note-md, .aplus-comment-body, .conversations-msg-body, .closer-fin-event-body)
    a[href^="http"]:not([href*="finoptimal.com"]):not([href*="finoptimal.test"]):not(.btn):not(:has(svg, i, img))::before {
    content: "";
    display: inline-block;
    width: .78em;
    height: .78em;
    margin-right: .3rem;
    vertical-align: -.05em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112v320c0 44.2 35.8 80 80 80h320c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v112c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h112c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112v320c0 44.2 35.8 80 80 80h320c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v112c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h112c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* A Tasks section whose heading the view hid (Calendar / Board hide Active's) goes with it: left
   standing, its empty box's two 1px rules doubled the rule under the firm shelf (Christopher, 2026-11-12). */
details.closer-task-section:has(> .closer-task-section-summary[hidden]) { display: none; }
/* Every Tasks / Skills section heading (Scheduled, Available from your firm, Active, Recently completed)
   in dark purple, its chevron too — not the faded text-muted grey (Christopher, 2026-11-12). */
:is(#cpane-tasks, #cpane-skills) .closer-task-section-summary :is(h5, h6) { color: #250d47 !important; }   /* the ids: over the text-muted rule's :is(…, #closer-attention-root) */
.closer-task-section-summary .closer-task-section-caret { color: #250d47; }
/* "· 7d late" inside a task bar's monospace key reads in the body font, like the "7d late" after the
   hatching (Christopher, 2026-11-12). */
.closer-cal-late-words { font-family: var(--bs-body-font-family, "Roboto", Helvetica, Arial, sans-serif); }
/* A standalone row card right under the sections (a company skill under "Available from your firm") takes
   the section's bottom rule as its own: its top rule beside it read as a double line (Christopher, 2026-11-12). */
.closer-tab-card .closer-tab-scroll > .closer-note-card:not(.closer-note-card ~ .closer-note-card) { border-top: 0 !important; }
/* A skill's playbook starts 1rem under the card's Open as doc / Archive buttons, so its title reads as
   the start of the instructions rather than part of the button row (Christopher, 2026-11-12). */
.closer-skill-instructions { margin-top: 1rem; }
/* The Map's "↻ RUNS HERE" / "LEDGER-INTERNAL" group labels at the caps label's 12px, over the tab's 14px
   text rule (Christopher, 2026-11-12). */
#cpane-map .fo-map-group-label { font-size: 12px; }
/* The workflow chips' frequency as a column: one width, left-aligned, so "On-demand" and "Hold" start at
   the same place on every chip (Christopher, 2026-11-12). A longer frequency still fits; it just widens. */
#cpane-map .fo-map-chip-freq { min-width: 7.5rem; justify-content: flex-start; }
/* The Flow's filter bar (Christopher, 2026-11-12): every label the 12px caps eyebrow with no margin of its
   own (a <label>'s theme margin lifted Period and Show above the rest), and every control 29px, so the
   labels share one line and the controls another. */
#cpane-map .fo-flow-filter > .closer-eyebrow { margin: 0; font-size: 12px; line-height: 1.2; }
#cpane-map .fo-flow-filter .fo-seg-toggle > .btn { height: 29px; display: inline-flex; align-items: center; }
/* The Flow summary's separators between FinOptimal / Other apps / In QuickBooks: room on both sides. */
.fo-flow-sep { margin: 0 .65rem; color: #495057; }

/* Rec Status's detail line ("Source: … · Activity through … · Reconciled through …") at 12px. */
.rec-status-detail-head .rec-status-detail-facts { font-size: 12px; }
/* A Filters box's search keeps the standard search width (18rem), not the 160px a dropdown filter gets
   beside it (Christopher, 2026-11-12: Reconciler Rules' "Search table…" was 160px). */
:is(.fo-filters-box, .rec-filters-box) > .fo-search-box { flex: 0 1 18rem; width: 18rem; max-width: 100%; }
/* A rule's bank-memo regex: the fixed-width font at 12px (Christopher, 2026-11-12). */
:is(.rec-col-description, #rules-tab .fo-table-cell) .rec-regex { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 12px; padding-top: 2px; }   /* 2px down: on the row's 14px baseline ("#30") */
/* Reconcilable Accounts: the row's checkbox on its account name's capitals (measured 1.3px low). */
.rec-accounts-table .rec-accounts-tick .form-check-input.fo-check-bare { position: relative; top: -1.3px; }
/* Expenser's Cards picker as the app's dropdown: 29px, 14px body ink, the same box as the search beside it,
   and its label the Filters box's 12px caps eyebrow like SHOW and SEARCH (Christopher, 2026-11-12). */
.exp-filterbar .mr-select-btn {
    height: 29px; font-size: 14px; color: #2d2c2f; padding: 0 8px; border: 1px solid lightgray;
    border-radius: .375rem; background: #fff; display: flex; align-items: center; gap: .25rem;
}
.exp-filterbar .mr-individual-filter > label.form-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1.6; }

/* Closer's Reconciliations tab (TM-2414, templates/closer/includes/reconciliations_pane.html):
   12px body ink in the table, money right-aligned, the account name a dark purple link, and a
   FinOptimal rec's "N uncleared" a chevron button that turns while its items are open. */
.closer-recrev-summary { font-size: 12px; color: #2d2c2f; }
.closer-recrev-summary .closer-pill { margin: 0 .2rem 0 .75rem; }
.closer-recrev-summary .closer-pill:first-child { margin-left: 0; }
.closer-recrev-table td { font-size: 12px; color: #2d2c2f; font-weight: 400; }
.closer-recrev-table .closer-recrev-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.closer-recrev-sub { font-size: 12px; color: #495057; }
.closer-recrev-link { color: #250d47; text-decoration: none; }
.closer-recrev-link:is(:hover, :focus-visible) { color: #e91e63; }
.closer-recrev-toggle { border: 0; background: transparent; padding: 0; color: #250d47; font-size: 12px; white-space: nowrap; }
.closer-recrev-toggle:is(:hover, :focus-visible) { color: #e91e63; }
.closer-recrev-toggle .closer-task-section-caret { color: inherit; }
.closer-recrev-toggle[aria-expanded="true"] .closer-task-section-caret { transform: rotate(90deg); }
.closer-recrev-items td { font-size: 12px; color: #2d2c2f; }

/* Files (templates/team_knowledge/files.html): every file a client's chats, desk, Zendesk and
   QuickBooks hold, with the documents read out of each. */
.team-files-body { display: flex; flex-direction: column; gap: .75rem; }
.team-files-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; padding: .5rem; }
.team-files-field { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #2d2c2f; }
/* The search box's shared 26rem flex basis is its width in a row; in this stacked field it was a
   416px height (Jesse, 2026-11-16: "look at all that gray wasted space"). */
.team-files-field .fo-check-search-box { flex: none; }
.team-files-field-wide { min-width: 18rem; flex: 1 1 18rem; }
.team-files-filters input.form-control:not(.fo-check-search-input) { height: 29px; padding: 0 8px; color: #2d2c2f; }
.team-files-amount { width: 8rem; }
.team-files-filters input[type="date"] { width: 9.25rem; }
.team-files-actions { flex-direction: row; gap: .5rem; }
.team-files-reading { display: flex; align-items: center; padding: .5rem 0; font-size: 14px; }
.team-files-message { font-size: 14px; }
.team-files-col-date { width: 6.5rem; }
.team-files-col-file { width: 20rem; }
.team-files-col-kind { width: 9rem; }
.team-files-col-from { width: 20rem; }
.team-files-name { font-weight: 400; word-break: break-word; }
.team-files-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; margin-top: 2px; }
.team-files-sub { color: #495057; }
.team-files-summary { margin-bottom: 4px; }
.team-files-docs { list-style: none; margin: 0; padding: 0; }
.team-files-docs li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.team-files-docs li + li { margin-top: 4px; }
.team-files-in-deposit { margin-left: 1.25rem; }
.team-files-doc-kind { font-weight: 600; color: #250d47; }
.team-files-match { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.team-files-source { font-weight: 600; color: #250d47; margin-right: .25rem; }
.team-files-empty { color: #495057; padding: 1rem; }
.team-files-pager { display: flex; align-items: center; gap: .75rem; font-size: 14px; color: #2d2c2f; }
/* A row whose uncleared items open under it opens on a click anywhere on it (closer-reconciliations.js). */
.closer-recrev-table > tbody > tr.closer-recrev-drill { cursor: pointer; }
