/* New look (html.pie-premium) — accounting page.
   Owned by one session at a time; see .claude/skills/pie-new-ui/SKILL.md.
   Every selector starts with: html.pie-premium .pp-shell <this page's root class> */

/* ==========================================================================
   Accounting (invoice.vue → PremiumInvoice.vue, head in PremiumInvoiceHeader.vue) — the design's
   Accounting screen (sections.js P.accounting): page head with eyebrow and pill actions, glass
   tabs, KPI tiles, status pills + Create, toolbar, list card. The four lists (invoices, payments,
   commissions, partner commissions) are the classic components, restyled here.
   ========================================================================== */
html.pie-premium .pp-shell .accounting-dpage {
    font-family: var(--pp-sans);
    color: var(--pp-ink-2);
}

html.pie-premium .pp-shell .accounting-dpage > .crm-page-content > .container-fluid {
    padding: 0 32px 32px;
}

html.pie-premium .pp-shell .accounting-dpage #accounting_main_content {
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Full screen: the page background, not a white sheet */
html.pie-premium .pp-shell .accounting-dpage #accounting_main_content.toggle-full-screen {
    padding: 0 32px 32px;
    background: var(--pp-bg) !important;
    overflow: auto;
}

/* Page head: eyebrow, 30px title, subtitle; actions on the right */
html.pie-premium .pp-shell .accounting-dpage .pp-ph {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 18px 0 22px;
}

html.pie-premium .pp-shell .accounting-dpage .pp-eyebrow {
    color: var(--pp-acc);
    font: 11.5px var(--pp-bold);
    letter-spacing: .08em;
    text-transform: uppercase;
}

html.pie-premium .pp-shell .accounting-dpage .pp-ph h1 {
    margin: 6px 0 4px;
    color: var(--pp-ink);
    font: 30px/1.15 var(--pp-bold);
    letter-spacing: -.015em;
}

html.pie-premium .pp-shell .accounting-dpage .pp-ph p {
    margin: 0;
    color: var(--pp-ink-3);
    font: 14px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage .pp-acts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acts .pp-btn .pp-ic {
    pointer-events: none;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acts .pp-btn.pp-sq {
    width: 40px;
    padding: 0;
}

/* Reports: the classic report picker drawn as the design's "Reports ▾" pill */
html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports {
    position: relative;
    min-width: 128px;
    max-width: 260px;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports > .pp-ic {
    position: absolute;
    top: 12px;
    left: 17px;
    z-index: 1;
    width: 16px;
    height: 16px;
    color: var(--pp-ink);
    pointer-events: none;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports .vs__dropdown-toggle {
    height: 40px;
    padding: 0 12px 0 40px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(30, 38, 32, .05), 0 6px 16px -10px rgba(30, 40, 32, .25);
    cursor: pointer;
    transition: background .15s;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports .vs__dropdown-toggle:hover {
    background: color-mix(in srgb, var(--pp-acc) 8%, #fff);
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports .vs__selected-options {
    flex-wrap: nowrap;
    min-width: 0;
    padding: 0;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports :is(.vs__search, .vs__search::placeholder, .vs__selected) {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--pp-ink);
    font: 13.5px var(--pp-bold);
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports .vs__actions {
    padding: 0 0 0 6px;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports .vs__open-indicator {
    fill: var(--pp-ink);
    transform: scale(.7);
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports.vs--open .vs__open-indicator,
html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports .vs--open .vs__open-indicator {
    transform: scale(.7) rotate(180deg);
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports .vs__dropdown-menu {
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 240px;
    padding: 6px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--pp-shadow), 0 18px 40px -18px rgba(30, 40, 32, .35);
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports .vs__dropdown-option {
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--pp-ink-2);
    font: 13.5px var(--pp-sans);
    white-space: normal;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports .vs__dropdown-option--highlight {
    background: var(--pp-hover);
    color: var(--pp-ink);
}

/* Tabs (Invoices · Payments · Commissions · Partner Commissions): the glass capsule, the open
   tab a dark pill. Sub tabs and status (Client Invoice / All · Paid · Unpaid): the smaller one */
html.pie-premium .pp-shell .accounting-dpage ul.crm_tag:is(.pp-acct-tabs, .pp-acct-seg) {
    display: flex;
    gap: 2px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    overflow-x: auto;
    scrollbar-width: none;
}

html.pie-premium .pp-shell .accounting-dpage ul.crm_tag.pp-acct-tabs {
    margin-bottom: 16px;
    padding: 4px;
}

html.pie-premium .pp-shell .accounting-dpage ul.crm_tag.pp-acct-seg {
    padding: 3px;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-nav > ul.crm_tag.pp-acct-seg {
    margin-bottom: 14px;
}

html.pie-premium .pp-shell .accounting-dpage ul.crm_tag.pp-acct-seg:not(:has(> li)) {
    display: none;
}

html.pie-premium .pp-shell .accounting-dpage ul.crm_tag:is(.pp-acct-tabs, .pp-acct-seg) > li.crm_pills {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background: transparent;
    color: var(--pp-ink-3);
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
}

html.pie-premium .pp-shell .accounting-dpage ul.crm_tag.pp-acct-tabs > li.crm_pills {
    padding: 7px 13px !important;
    font: 13.5px/20.925px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage ul.crm_tag.pp-acct-seg > li.crm_pills {
    padding: 6px 12px !important;
    font: 13px/20px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage ul.crm_tag:is(.pp-acct-tabs, .pp-acct-seg) > li.crm_pills::after,
html.pie-premium .pp-shell .accounting-dpage ul.crm_tag:is(.pp-acct-tabs, .pp-acct-seg) > li.crm_pills::before {
    display: none !important;
}

html.pie-premium .pp-shell .accounting-dpage ul.crm_tag:is(.pp-acct-tabs, .pp-acct-seg) > li.crm_pills:hover {
    color: var(--pp-ink);
}

html.pie-premium .pp-shell .accounting-dpage ul.crm_tag:is(.pp-acct-tabs, .pp-acct-seg) > li.crm_pills.active {
    background: var(--pp-ink);
    color: #fff;
    font-family: var(--pp-bold);
    box-shadow: 0 6px 14px -10px rgba(20, 24, 20, .6);
}

/* KPI tiles (Total · Paid · Unpaid · Overdue · Not due yet) */
html.pie-premium .pp-shell .accounting-dpage .pp-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}

html.pie-premium .pp-shell .accounting-dpage .pp-kpi {
    min-width: 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--pp-panel);
    box-shadow: var(--pp-shadow);
}

html.pie-premium .pp-shell .accounting-dpage .pp-kpi small {
    display: block;
    color: var(--pp-ink-3);
    font: 12.5px/19.375px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage .pp-kpi b {
    display: block;
    margin-top: 6px;
    color: var(--pp-ink);
    font: 26px/29px var(--pp-bold);
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.pie-premium .pp-shell .accounting-dpage .pp-kpi .pp-mu {
    display: block;
    min-height: 19px;
    margin-top: 6px;
    color: var(--pp-muted);
    font: 12.5px/19.375px var(--pp-sans);
}

/* Paid / overdue / not-due split of the total (the classic bar chart), as one thin bar */
html.pie-premium .pp-shell .accounting-dpage .pp-kpi-bar {
    display: flex;
    gap: 2px;
    height: 6px;
    margin: 12px 0 7px;
    border-radius: 999px;
    background: var(--pp-line);
    overflow: hidden;
}

html.pie-premium .pp-shell .accounting-dpage .pp-kpi-bar i {
    display: block;
    min-width: 3px;
    height: 100%;
}

html.pie-premium .pp-shell .accounting-dpage .pp-kpi-bar .pp-ok { background: #2f9a68; }
html.pie-premium .pp-shell .accounting-dpage .pp-kpi-bar .pp-due { background: #d04a50; }
html.pie-premium .pp-shell .accounting-dpage .pp-kpi-bar .pp-wait { background: #d99a2b; }

html.pie-premium .pp-shell .accounting-dpage .pp-kpi-due .pp-mu { color: #c0262d; }
html.pie-premium .pp-shell .accounting-dpage .pp-kpi-wait .pp-mu { color: #9a5b00; }

/* Status pills + Create Client Invoice (the design's small primary), Due / Not due… checks */
html.pie-premium .pp-shell .accounting-dpage .pp-acct-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 10px;
    margin: 0 0 14px;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-row:not(:has(> *)) {
    display: none;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-row .pp-btn.pp-sm {
    height: 30px;
    gap: 7px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)), var(--pp-acc);
    color: #fff;
    box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--pp-acc) 80%, #000);
    font: 12.5px var(--pp-bold);
    letter-spacing: 0;
    text-decoration: none;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-row .pp-btn.pp-sm:hover {
    filter: brightness(1.06);
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-row .pp-btn.pp-sm .pp-ic {
    width: 14px;
    height: 14px;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-row .invoice-checkbox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin-left: 6px;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-row .invoice-checkbox .custom-checkbox {
    margin: 0 !important;
}

html.pie-premium .pp-shell .accounting-dpage .pp-acct-row .invoice-checkbox label {
    color: var(--pp-ink-2);
    font: 13.5px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage .custom-checkbox .checkmark {
    border: 1.5px solid var(--pp-line-2);
    border-radius: 5px;
    background: var(--pp-panel);
}

html.pie-premium .pp-shell .accounting-dpage .custom-checkbox input:checked ~ .checkmark {
    border-color: var(--pp-acc);
    background: var(--pp-acc);
}

/* ---------- Lists: filters, toolbar, card (invoice / payment / commission tables) ---------- */
/* Filter fields (Advisor, date ranges, Status): soft glass boxes in one row */
html.pie-premium .pp-shell .accounting-dpage .filters.manual_booking_popup > .row {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
    margin: 0 0 14px;
}

html.pie-premium .pp-shell .accounting-dpage .filters.manual_booking_popup > .row > [class*="col-"] {
    margin: 0 !important;
    padding-left: 0;
    padding-right: 10px;
}

html.pie-premium .pp-shell .accounting-dpage .filters.manual_booking_popup > .row > [class*="col-"]:not(:has(> *)) {
    display: none;
}

html.pie-premium .pp-shell .accounting-dpage .filters :is(.form-control, .vs__dropdown-toggle, .bootstrap-select > .dropdown-toggle) {
    min-height: 48px;
    border: 0 !important;
    border-radius: 12px !important;
    background-color: rgba(255, 255, 255, .72) !important;
    box-shadow: none !important;
    color: var(--pp-ink);
    font-family: var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage .filters .bootstrap-select.form-control {
    background: transparent !important;
}

html.pie-premium .pp-shell .accounting-dpage .filters .ffl-label {
    color: var(--pp-ink-3);
    font-family: var(--pp-sans);
    letter-spacing: 0;
}

/* "More" (payments): a white pill like the design's toolbar buttons */
html.pie-premium .pp-shell .accounting-dpage .filters .filter-allbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    margin: 4px 0 0 !important;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--pp-ink);
    box-shadow: 0 1px 2px rgba(30, 38, 32, .05), 0 6px 16px -10px rgba(30, 40, 32, .25);
    font: 13.5px var(--pp-bold);
    letter-spacing: 0;
}

html.pie-premium .pp-shell .accounting-dpage .filters .filter-allbtn:hover {
    background: color-mix(in srgb, var(--pp-acc) 8%, #fff);
}

html.pie-premium .pp-shell .accounting-dpage .filters .filter-allbtn i {
    margin: 0;
    color: inherit;
}

/* Toolbar: the table's search as the design's wide glass field, Display Columns as a pill on the
   same line */
html.pie-premium .pp-shell .accounting-dpage .crm_table {
    margin: 0 !important;
    padding-top: 0 !important;
    overflow: visible;
}

html.pie-premium .pp-shell .accounting-dpage .custom-dropdown.float-end {
    position: relative;
    z-index: 3;
    margin: 0 0 0 8px;
}

html.pie-premium .pp-shell .accounting-dpage .custom-dropdown > button.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--pp-ink);
    box-shadow: 0 1px 2px rgba(30, 38, 32, .05), 0 6px 16px -10px rgba(30, 40, 32, .25);
    font: 13.5px var(--pp-bold);
    letter-spacing: 0;
}

html.pie-premium .pp-shell .accounting-dpage .custom-dropdown > button.dropdown-toggle:hover {
    background: color-mix(in srgb, var(--pp-acc) 8%, #fff);
}

html.pie-premium .pp-shell .accounting-dpage .vgt-wrap {
    background: transparent;
}

html.pie-premium .pp-shell .accounting-dpage .vgt-inner-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html.pie-premium .pp-shell .accounting-dpage .vgt-global-search {
    display: flex;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

html.pie-premium .pp-shell .accounting-dpage .vgt-global-search__input {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
}

html.pie-premium .pp-shell .accounting-dpage .vgt-global-search .vgt-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9aa2' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 15px center / 18px no-repeat;
    box-shadow: none;
    color: var(--pp-ink);
    font: 14px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage .vgt-global-search .vgt-input::placeholder {
    color: var(--pp-muted);
}

html.pie-premium .pp-shell .accounting-dpage .vgt-global-search .input__icon {
    display: none;
}

html.pie-premium .pp-shell .accounting-dpage .custom_top_scrollbar {
    margin-bottom: 6px;
}

/* List card: same as the Trips / Profiles tables */
html.pie-premium .pp-shell .accounting-dpage .vgt-responsive {
    border-radius: var(--pp-r-card) var(--pp-r-card) 0 0;
    background: var(--pp-panel);
    box-shadow: var(--pp-shadow);
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table {
    border: 0;
    background: var(--pp-panel);
    font-family: var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table thead th {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid var(--pp-line);
    background: var(--pp-panel);
    color: var(--pp-ink-3);
    font: 13px var(--pp-sans);
    -webkit-text-stroke: .2px currentColor;
    white-space: nowrap;
    vertical-align: middle;
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table thead th:is(.sorting-asc, .sorting-desc) {
    color: var(--pp-acc);
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table thead th.sortable {
    padding-right: 30px;
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table thead th.sortable button {
    opacity: 0;
    transition: opacity .12s;
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table thead th.sortable:hover button,
html.pie-premium .pp-shell .accounting-dpage table.vgt-table thead th.sortable button:focus-visible {
    opacity: 1;
}

/* Column-search row: always shown on Accounting (QA: every list keeps its per-column search) */
html.pie-premium .pp-shell .accounting-dpage table.vgt-table thead th.filter-th {
    padding: 8px 10px;
    border-bottom: 1px solid var(--pp-line);
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table thead .vgt-input,
html.pie-premium .pp-shell .accounting-dpage table.vgt-table thead .vgt-select {
    height: 32px;
    border: 1px solid transparent;
    border-radius: 8px;
    background-color: var(--pp-panel-2);
    font: 12.5px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table tbody td {
    height: 56px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid var(--pp-line);
    background: transparent;
    color: var(--pp-ink-2);
    font-size: 13.5px;
    vertical-align: middle;
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table.striped tbody tr:nth-of-type(odd) {
    background: transparent;
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table tbody tr:hover td {
    background: var(--pp-hover);
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table :is(th, td).vgt-checkbox-col {
    width: 44px;
    padding: 0 0 0 16px;
    border-right: 0;
    background: transparent;
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table input[type="checkbox"] {
    accent-color: var(--pp-acc);
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table tbody td a:not(.btn) {
    color: var(--pp-acc);
}

/* Footer: rows per page, page info, Previous / Next */
html.pie-premium .pp-shell .accounting-dpage .vgt-wrap__footer {
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid var(--pp-line);
    border-radius: 0 0 var(--pp-r-card) var(--pp-r-card);
    background: var(--pp-panel);
    box-shadow: var(--pp-shadow);
    color: var(--pp-muted);
    font: 12.5px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage .vgt-wrap__footer :is(.footer__row-count__label, .footer__navigation__page-info, .footer__navigation__page-btn span) {
    color: var(--pp-muted);
    font: 12.5px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage .vgt-wrap__footer .footer__row-count__select {
    color: var(--pp-ink-2);
    font: 12.5px var(--pp-bold);
}

html.pie-premium .pp-shell .accounting-dpage .vgt-wrap__footer .footer__navigation__page-btn:not(.disabled):hover span {
    color: var(--pp-ink);
}

/* ---------- Fixes measured in the browser ---------- */
/* Reports pill: the global v-select box (50px, 8px radius, grey border) wins over the rules above */
html.pie-premium .pp-shell .accounting-dpage .pp-acct-reports .v-select .vs__dropdown-toggle {
    height: 40px !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
}

/* Advisor (bootstrap-select): the same 48px box and small top label as the date fields */
html.pie-premium .pp-shell .accounting-dpage .filters .bootstrap-select.form-control {
    height: 48px;
    min-height: 0;
    padding: 0 !important;
}

html.pie-premium .pp-shell .accounting-dpage .filters .bootstrap-select > .dropdown-toggle {
    width: 100%;
    height: 48px;
    padding: 19px 12px 0 !important;
}

html.pie-premium .pp-shell .accounting-dpage .filters .bootstrap-select .filter-option-inner-inner {
    color: var(--pp-ink);
    font: 14px/21px var(--pp-sans);
    letter-spacing: 0;
}

html.pie-premium .pp-shell .accounting-dpage .filters #selectAdvisorDiv > label.ffl-label {
    font-size: 12px;
    line-height: 17px;
    transform: scale(.85) translate(2.4px, -12.8px);
    transform-origin: 0 0;
}

/* Search: no white strip behind it; the field takes the row, Display Columns on its right */
html.pie-premium .pp-shell .accounting-dpage .vgt-wrap .vgt-global-search {
    border-radius: 0;
    background: transparent !important;
}

html.pie-premium .pp-shell .accounting-dpage .vgt-global-search .vgt-global-search__input {
    float: none;
    width: 100%;
}

html.pie-premium .pp-shell .accounting-dpage .vgt-global-search .vgt-global-search__input > form {
    width: 100%;
}

html.pie-premium .pp-shell .accounting-dpage .vgt-global-search .vgt-global-search__actions:not(:has(> *)) {
    display: none;
}

html.pie-premium .pp-shell .accounting-dpage .custom-dropdown.float-end {
    top: 0;
}

/* Top scrollbar (classic dark #666 bar) as a quiet line above the card */
html.pie-premium .pp-shell .accounting-dpage .custom_top_scrollbar::-webkit-scrollbar {
    height: 6px;
}

html.pie-premium .pp-shell .accounting-dpage .custom_top_scrollbar::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    box-shadow: none;
}

html.pie-premium .pp-shell .accounting-dpage .custom_top_scrollbar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--pp-line-2);
}

html.pie-premium .pp-shell .accounting-dpage .custom_top_scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--pp-ink-3);
}

/* Advisor label in every list (the commissions list wraps it differently from invoices) */
html.pie-premium .pp-shell .accounting-dpage .filters .form-floating:has(.bootstrap-select) > label.ffl-label {
    font-size: 12px;
    line-height: 17px;
    transform: scale(.85) translate(2.4px, -12.8px);
    transform-origin: 0 0;
}

/* Status picker (v-select): the same 14px text as the other filter fields */
html.pie-premium .pp-shell .accounting-dpage .filters .v-select :is(.vs__selected, .vs__search, .vs__search::placeholder) {
    color: var(--pp-ink);
    font: 14px/21px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage .filters .v-select .vs__dropdown-toggle {
    padding-top: 14px;
}

/* Due / Not due / Overdue / Partial: the accent when checked (classic paints them black) */
html.pie-premium .pp-shell .accounting-dpage .pp-acct-row .custom-checkbox input:checked ~ .checkmark {
    border-color: var(--pp-acc) !important;
    background-color: var(--pp-acc) !important;
}

/* Column-search fields: the soft field, accent ring while typing */
html.pie-premium .pp-shell .accounting-dpage table.vgt-table thead :is(.vgt-input, .vgt-select):focus {
    border-color: var(--pp-acc) !important;
    background-color: #fff;
    box-shadow: 0 0 0 3px var(--pp-acc-soft);
    outline: 0;
}

/* Advisor picker: its search box keeps a visible field (the filter rule above strips every
   .form-control inside .filters of its border) */
html.pie-premium .pp-shell .accounting-dpage .filters .bootstrap-select .bs-searchbox .form-control {
    min-height: 0;
    height: 36px;
    border: 1px solid var(--pp-line-2) !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    color: var(--pp-ink);
    font: 13.5px var(--pp-sans);
}

html.pie-premium .pp-shell .accounting-dpage .filters .bootstrap-select .bs-searchbox .form-control:focus {
    border-color: var(--pp-acc) !important;
    box-shadow: 0 0 0 3px var(--pp-acc-soft) !important;
}

/* Display Columns: the arrow centred on the label (template1.css floats it 10px low) */
html.pie-premium .pp-shell .accounting-dpage .custom-dropdown > button.dropdown-toggle::after {
    content: "";
    float: none;
    flex: none;
    width: 12px;
    height: 12px;
    margin: 0;
    border: 0;
    background-color: currentColor;
    -webkit-mask: var(--pp-i-chev) center / contain no-repeat;
    mask: var(--pp-i-chev) center / contain no-repeat;
    vertical-align: middle;
}

/* Row gear (Action): quiet grey, the accent on hover, as on Trips */
html.pie-premium .pp-shell .accounting-dpage table.vgt-table tbody td a[id^="settingsFor"] {
    color: var(--pp-ink-3);
}

html.pie-premium .pp-shell .accounting-dpage table.vgt-table tbody td a[id^="settingsFor"]:is(:hover, :focus-visible) {
    color: var(--pp-acc);
}

/* A tab group with a single option (e.g. "Client Invoice" alone): just the pill, no light capsule
   around it */
html.pie-premium .pp-shell .accounting-dpage ul.crm_tag.pp-acct-seg:not(:has(> li + li)) {
    padding: 0;
    background: transparent;
}

/* KPI amounts: sized to their tile so the full figure shows (at 1280px three of five read
   "$464,430…"). Container units; the ellipsis above stays as the fallback for huge figures */
html.pie-premium .pp-shell .accounting-dpage .pp-kpi {
    container-type: inline-size;
}

html.pie-premium .pp-shell .accounting-dpage .pp-kpi b {
    font-size: clamp(17px, 14cqi, 26px);
}

/* Filter fields stacked on narrow screens: keep the 10px gap the columns' zeroed margins lose */
html.pie-premium .pp-shell .accounting-dpage .filters.manual_booking_popup > .row {
    row-gap: 10px;
}

/* ---------- Client Invoice pop-up (invoice_form.vue, #invoice_form_modal) ----------
   The app shell's side bar renders this pop-up, so it sits outside .accounting-dpage and also
   opens from a trip: scoped by its id under .pp-shell. Field boxes, focus ring and section titles
   as in the new-look pop-ups (planner.css .qpop): 10px radius, soft line, accent ring */
html.pie-premium .pp-shell #invoice_form_modal .modal-body :is(.form-floating > .form-control, .form-floating > .form-select, .form-floating > .v-select > .vs__dropdown-toggle) {
    border: 1px solid var(--pp-line-2) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

html.pie-premium .pp-shell #invoice_form_modal .modal-body :is(.form-floating > .form-control:focus, .form-floating > .form-control:focus-within, .form-floating > .v-select.vs--open > .vs__dropdown-toggle) {
    border-color: var(--pp-acc) !important;
    box-shadow: 0 0 0 3px var(--pp-acc-soft) !important;
}

/* Read-only boxes (Invoice Number, Account Number, totals): the soft panel, not classic grey */
html.pie-premium .pp-shell #invoice_form_modal .modal-body .form-floating > .form-control:is([readonly], :disabled) {
    background-color: var(--pp-panel-2) !important;
}

/* Section titles (Client information, Price List Items, Payments…) */
html.pie-premium .pp-shell #invoice_form_modal .modal-body h2.head-title {
    color: var(--pp-ink);
    font: 17px/1.3 var(--pp-bold);
    letter-spacing: -.01em;
}

html.pie-premium .pp-shell #invoice_form_modal .modal-body h2.head-title .small-text {
    color: var(--pp-ink-3);
    font: 12.5px/1.4 var(--pp-sans);
    letter-spacing: 0;
}

/* Exchange rate: the "1 USD = [ 1 ]" field had no visible box around its number */
html.pie-premium .pp-shell #invoice_form_modal #price_exchange_rate .form-control > input {
    height: 24px;
    margin: 0 4px;
    padding: 0 8px;
    border: 1px solid var(--pp-line-2);
    border-radius: 6px;
    background: var(--pp-panel);
    color: var(--pp-ink);
    font: 13.5px var(--pp-sans);
}

html.pie-premium .pp-shell #invoice_form_modal #price_exchange_rate .form-control > input:focus {
    border-color: var(--pp-acc);
    outline: 0;
    box-shadow: 0 0 0 3px var(--pp-acc-soft);
}
