/* bizbox-theme-additions.css: the few rules the approved stylesheet (bizbox-theme.css) has no class or component for.
   It replaces the five page stylesheets of briefs 04-06 and P1 (reports/visual-checks/stylesheets.md). Every rule here
   waits for the owner's approval: reports/design-differences.md, "Stylesheet additions for owner approval" (A1, A2...).
   Linked by the screens named in each comment; every rule is scoped under .bb-stage (or names its element) so it wins over the theme wherever the link sits on the page. Colours and sizes come from the theme's
   own variables and values; nothing here restyles an element the previews draw. */

/* A1 Every screen that loads this file: the HTML `hidden` attribute. Theme classes set display (flex, grid, block),
   which would show an element that the page or its script hides with `hidden` (dialogs, address panels, notes, rows;
   also Customers > New customer and the client Invoices pages).
   Old-look client pages (.cp-legacy) are left out so their older scripts behave as before. */
.bb-stage [hidden]:not(.cp-legacy *){display:none!important}

/* A2 File drop zones (Workers: worker profile documents, admin new / admin profile files; Settings > Branding &
   website; Platform > tenant branding). The drawn .bb-dz is the real file input laid over the zone, so a click and a
   dropped file both work; the zone shows the keyboard focus ring of the hidden input. */
.bb-stage .bbx-dz{position:relative}
.bb-stage .bbx-dz>input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.bb-stage .bbx-dz:focus-within{outline:2px solid var(--bb-focus);outline-offset:2px}

/* A3 Settings > Branding & website: the saved logo / favicon shown small under its drop zone (not drawn). */
.bb-stage .bbx-current{width:28px;height:28px;object-fit:contain;border:1px solid var(--bb-border);border-radius:6px;background:#fff}

/* A4 Settings > Custom tags (colour choices) and Workers > availability (start / end times): the site-wide script
   (courier-form-controls.js) adds a " *" to every label of a required field. These groups are one required choice,
   so the marks would repeat on each colour or time; the group keeps its required rule. */
.bb-stage .bbx-nomark .required-mark{display:none}

/* A5 Native <dialog class="bb-dialog"> (Invoices: the Price Book "Items" picker on New / Edit invoice and Review Job
   Pricing; Work requirements: Create requirement group). The theme draws a dialog inside .bb-overlay; these dialogs are
   the browser's own (opened with showModal), so the browser frame is removed and the overlay's backdrop colour and
   top offset (84 px, 40 px on phones) are applied; a long dialog scrolls inside the window. */
dialog.bb-dialog{margin:84px auto auto;border:0;color:var(--bb-text);max-height:calc(100vh - 108px);overflow:auto}
dialog.bb-dialog::backdrop{background:rgba(17,24,39,.42)}
@media (max-width: 640px){dialog.bb-dialog{margin-top:40px;max-height:calc(100vh - 64px)}}

/* A6 Work requirement > View answer type examples (side panel): the list of 14 demonstrations is longer than a page,
   so the panel stays fixed to the window and its list scrolls inside it (the theme's side panel takes the page's
   height and would be cut off by .bb-stage). */
.bb-stage .answer-examples{position:fixed;z-index:150}
.bb-stage .answer-examples .bb-sidepanel{height:100vh;min-height:0;overflow:auto}
.bb-stage .answer-examples .bb-list{overflow:auto;min-height:0;flex:1 1 auto}

/* A7 Workers list and worker profile: a worker's uploaded photo inside the drawn avatar circle (.bb-av draws initials
   only). */
.bb-stage .bb-av>img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}

/* A8 Site-wide date and phone controls (courier-form-controls.js, courier-contact-validation.js) add a typed
   MM/DD/YYYY box, the calendar button's input and a country-code select without design classes. On the redesigned
   invoice and billing screens (.bizbox-design) and the admin forms (Workers > Admins) they take .bb-input's look. */
.bizbox-design .business-date input:not(.business-date-picker){height:34px;padding:0 10px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff;font:inherit;font-size:13.5px;color:var(--bb-text)}
.bizbox-design .business-date .business-date-picker{height:34px}
:is(.bizbox-design,.workers-design .admin-form) .business-phone .phone-calling-code{height:34px;padding:0 6px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff;font:inherit;font-size:13.5px;color:var(--bb-text)}

/* A9 Workers > worker profile > Weekly hours: a day can hold several periods (today's behaviour), each a start / end /
   Remove line under the Start time and End time headings. Rows are also built by courier-availability-editor.js
   ("Copy to other days") with plain labels and a "×" button, and the time box is the site-wide time control; these
   rules give all of them the drawn row layout and field look. A day switched off dims its periods. */
.workers-design .shift-period{display:grid;grid-template-columns:40% 40% auto;align-items:center;margin-left:-14px;gap:0}
.workers-design .shift-period+.shift-period{margin-top:8px}
.workers-design .shift-period>label{padding:0 14px;margin:0;font-size:0;display:block}
.workers-design .shift-period>label>*{font-size:13.5px}
.workers-design .shift-period .business-time{width:142px;min-height:0;display:flex;gap:4px}
.workers-design .shift-period .business-time>input{flex:0 0 64px!important;width:64px!important;height:34px;padding:0 8px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff;font:inherit;font-size:13.5px;color:var(--bb-text)}
.workers-design .shift-period .business-time>select{flex:1 1 auto!important;min-width:0!important;width:auto!important;height:34px;padding:0 4px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff;font:inherit;font-size:12.5px;color:var(--bb-text)}
.workers-design .shift-period>button{justify-self:start;background:none;border:none;padding:0;font:inherit;font-size:13px;color:var(--bb-text-2);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.workers-design [data-shift-day].is-off [data-periods]{opacity:.45}

/* A10 Customers > New customer: fields that switch off together (legal company name and the authorized-contacts group
   for an Individual; contact rows until "I'll add them now") sit in a <fieldset>, so the page's script can disable them
   and nothing is submitted for them, as before. The browser's fieldset frame and padding are removed; the drawn field
   look is unchanged. */
.bb-stage fieldset.bbx-plain{border:0;padding:0;margin-left:0;margin-right:0;min-width:0}

/* A11 Dashboard with a feature switched off (b68, owner request "layouts with features off", 2026-11-11). Active only
   in a feature-off state; with every feature on (Live map with its Deliveries / Drivers pills, today's work) none of
   these selectors matches, so the drawn dashboard is unchanged.
   a) Work orders off: the grid holds only the Recent Activity column; it takes the full width instead of leaving the
      drawn 2fr column empty.
   b) Live map off, or its Drivers view off: the right column is shorter than today's work beside it. Its last card
      (Recent Activity) grows to the bottom of the row, and its list grows with it up to the list's own length; the
      list scrolls only when it is longer than that space. The list never gets shorter than drawn (its --h height, or
      its own length when shorter). Wide screens only (two columns); browsers without calc-size() keep the drawn layout. */
.bb-stage [data-tabs]:has(+#bb-dashboard-filter)>.bb-grid.c21:not(:has(>:nth-child(2))){grid-template-columns:minmax(0,1fr)}
@media (min-width: 981px){
@supports (min-height: calc-size(max-content, size)){
.bb-stage [data-tabs]:has(+#bb-dashboard-filter)>.bb-grid.c21>.bb-stack:nth-child(2):not(:has(.bb-pills)){display:flex;flex-direction:column}
.bb-stage [data-tabs]:has(+#bb-dashboard-filter)>.bb-grid.c21>.bb-stack:nth-child(2):not(:has(.bb-pills))>.bb-card:last-child{flex:1 1 auto;display:flex;flex-direction:column}
.bb-stage [data-tabs]:has(+#bb-dashboard-filter)>.bb-grid.c21>.bb-stack:nth-child(2):not(:has(.bb-pills))>.bb-card:last-child>.bb-scrollbox{flex:1 1 0px;min-height:calc-size(max-content, min(size, var(--h,320px)));max-height:max-content}
}
}

/* ======================================================================================================================
   C1 Corrections 1 (owner-approved pictures, 2026-11-12: reference/corrections/2026-11-12). The New Delivery form
   (form.bb-c1) drawn as picture 00-COMPLETE-PAGE with corrections 01 to 10. The pictures' HTML uses inline styles and a
   few class names the approved stylesheet does not have; the rules below are those looks, each listed for the owner in
   reports/visual-checks/corrections-1/README.md. Nothing here changes a field, a name or a value.
   ====================================================================================================================== */

/* C1.1 Numbered circle before a section heading (pictures 00, 08). */
.bb-stage .bbx-step{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--bb-primary);color:var(--bb-on-primary);font-size:12px;font-weight:600;line-height:1;margin-right:8px;vertical-align:1px}

/* C1.2 Form rows on the two-column grid, labels on one line, help below (pictures 02, 03, 10). */
.bb-c1 .bb-grid>.full{grid-column:1/-1}
.bb-c1 .bb-grid>label.bb-field,.bb-c1 .bb-grid>.bb-field{display:block;min-width:0}
.bb-c1 fieldset.bb-plain{border:0;padding:0;margin:0;min-width:0}
.bb-c1 .bbx-customer{padding-top:4px}
.bb-c1 .bbx-above{margin-bottom:12px}
.bb-c1 .bbx-picker{margin-bottom:0}
.bb-c1 .requirements-module>h3{color:var(--bb-text)}
.bb-c1 .work-fields{margin:0}
.bb-c1 .work-fields>.bb-check.full{margin:-4px 0 10px}
.bb-c1 .bbx-phone{display:flex;flex-wrap:nowrap;gap:8px;align-items:stretch;width:100%}
.bb-c1 .bbx-phone>select{flex:0 0 130px;width:130px!important;max-width:130px}
.bb-c1 .bbx-phone>input{flex:1 1 0;width:auto;min-width:0!important}
.bb-c1 .business-phone:not(.bbx-phone){display:flex;flex-wrap:nowrap;gap:8px;align-items:stretch;width:100%}
.bb-c1 .business-phone:not(.bbx-phone)>select{flex:0 0 130px;width:130px!important;max-width:130px;height:34px;padding:0 28px 0 10px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;font:inherit;font-size:13.5px;color:var(--bb-text)}
.bb-c1 .business-phone:not(.bbx-phone)>input{flex:1 1 0;width:auto;min-width:0!important}
.bb-c1 .bb-field>.contact-validation-error{display:block;color:var(--bb-bad);font-size:12px;margin-top:4px}

/* C1.3 A number with its unit word beside it (Every ... day(s); Estimated duration h / min; pictures 00, 02). */
.bb-c1 .bbx-unitrow{display:flex;align-items:center;gap:10px}
.bb-c1 .bbx-unit{font-size:13.5px;color:var(--bb-text-2);white-space:nowrap}
.bb-c1 [data-recurrence-interval] .bbx-unitrow>input{max-width:110px}
.bb-c1 fieldset.bbx-duration{border:0;padding:0;margin:0 0 14px;min-width:0}
.bb-c1 fieldset.bbx-duration>legend{float:left;width:100%;padding:0}
.bb-c1 fieldset.bbx-duration>.bbx-unitrow{clear:both;gap:8px}
.bb-c1 fieldset.bbx-duration>.bbx-unitrow>input{flex:1 1 0;min-width:0}
.bb-c1 [data-recurrence-fields]>.bb-field{margin-bottom:28px}
.bb-c1 .bbx-schedule{margin-bottom:14px}
.bb-c1 .bbx-repeat{margin-bottom:16px}
.bb-c1 .recurrence-summary{margin:0 0 6px;padding:0;border:0;background:none;font-size:12.5px;color:var(--bb-muted)}
.bb-c1 .recurrence-summary strong{font-weight:400}
.bb-c1 .recurrence-summary strong::after{content:" "}
.bb-c1 .recurrence-summary strong,.bb-c1 .recurrence-summary div{display:inline;color:inherit}

/* C1.4 Date and time drawn as two fields side by side on the form grid, "Time" above the second (pictures 00, 02).
   Same controls and posted value as the date-and-time field of the date batch (bizbox-date-field.css). */
:root .bb-c1 .bbx-datetime .business-datetime{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0 16px!important}
:root .bb-c1 .bbx-datetime .business-datetime::before{content:none}
:root .bb-c1 .bbx-datetime .business-datetime>.business-date{display:grid!important;grid-column:1!important;min-width:0}
:root .bb-c1 .bbx-datetime .business-datetime .business-date>input[type=text]{grid-area:1/1!important;width:100%!important;padding:0 36px 0 10px!important;border:1px solid var(--bb-border-2)!important;border-radius:var(--bb-r)!important;background-color:#fff!important}
:root .bb-c1 .bbx-datetime .business-datetime .business-date>.business-date-picker{grid-area:1/1!important;justify-self:end!important}
:root .bb-c1 .bbx-datetime .business-datetime>.business-time{display:flex!important;grid-column:2!important;position:relative;align-self:start;box-sizing:border-box;min-width:0;height:34px!important;min-height:0!important;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff}
:root .bb-c1 .bbx-datetime .business-datetime>.business-time::before{content:"Time";position:absolute;left:0;bottom:calc(100% + 6px);font-size:12.5px;font-weight:500;line-height:1.5;color:var(--bb-text)}
:root .bb-c1 .bbx-datetime .business-datetime .business-time>input{flex:1 1 auto!important;width:auto!important;height:32px!important;padding:0 4px 0 10px!important}
:root .bb-c1 .bbx-datetime .business-datetime .business-time>select{flex:0 0 auto!important;height:32px!important;padding:0 24px 0 6px!important;background-position:right 8px center!important}
@media (max-width: 640px){
:root .bb-c1 .bbx-datetime .business-datetime{grid-template-columns:minmax(0,1fr)!important}
:root .bb-c1 .bbx-datetime .business-datetime>.business-time{grid-column:1!important;margin-top:39px}
}

/* C1.5 Address picker, closed and opened (picture 00-ADDRESS-BOOK). Same picker (courier-r3.js). */
#work-form.bb-c1 .r3-address-toggle{min-height:34px;height:34px;padding:0 30px 0 10px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;font-size:13.5px;color:var(--bb-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
#work-form.bb-c1 .r3-address-toggle::after{content:none}
#work-form.bb-c1 .r3-address-popup{top:calc(100% + 2px);padding:10px;border:1px solid var(--bb-border);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12)}
#work-form.bb-c1 .r3-address-popup input{height:34px;min-height:34px;margin:0 0 6px;padding:0 10px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff;font:inherit;font-size:13.5px;color:var(--bb-text)}
#work-form.bb-c1 .r3-address-manual{padding:12px;color:var(--bb-text);font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
#work-form.bb-c1 .r3-address-manual::before{content:"+ ";margin:0;font-size:inherit}
#work-form.bb-c1 .r3-address-option{min-height:0;padding:11px 12px;border:0;border-top:1px solid var(--bb-border);font-size:14px;line-height:1.4;cursor:pointer}
#work-form.bb-c1 .r3-address-option strong{font-weight:600}
#work-form.bb-c1 .r3-address-option small{margin-top:1px;font-size:12.5px;color:var(--bb-muted)}
#work-form.bb-c1 .r3-address-option:is(:hover,[aria-selected=true]){background:#fafbfc}
#work-form.bb-c1 .r3-address-option:focus-visible,#work-form.bb-c1 .r3-address-manual:focus-visible{outline:2px solid var(--bb-focus);outline-offset:-2px}
#work-form.bb-c1 .r3-address-count{padding:10px 12px 4px;border-top:1px solid var(--bb-border);font-size:12.5px;color:var(--bb-muted)}
.bb-c1 .delivery-endpoint:disabled :is(input,select,button){background-color:var(--bb-subtle)}

/* C1.6 Searchable choice boxes (Ordered by, Company location) are drawn as the approved select by the shared
   bizbox-form-rows.css (rule 3), on this form and on every other form. */

/* C1.7 Price Book card: search row, pills, table with the Image column, pager (pictures 00, 04, 09). */
.bb-c1 .bb-embedded-pricing{border:0;padding:0;margin:0;min-width:0}
.bb-c1 .bb-embedded-pricing [hidden]{display:none!important}
.bb-c1 .bb-modern-picker.bb-card{margin:0}
.bb-c1 .bbx-picker-search{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:16px;align-items:end;margin-bottom:26px}
.bb-c1 .bbx-picker-search>.bb-field{display:block;margin:0;min-width:0}
.bb-c1 .bb-modern-picker .bb-pills{margin-bottom:10px}
.bb-c1 .bb-modern-picker .bb-pill[aria-pressed=true]{background:#fff;color:var(--bb-text);font-weight:600;box-shadow:0 0 0 1px var(--bb-border)}
.bb-c1 .bb-picker-table{overflow:auto}
.bb-c1 .bb-picker-table th:first-child{width:62px}
.bb-c1 .bb-picker-table td:first-child{width:62px;height:63px;padding-top:0;padding-bottom:0}
.bb-c1 .bb-picker-table td:first-child img{display:block;width:40px;height:40px;border-radius:8px;object-fit:cover;background:#e5e7eb}
.bb-c1 .bb-picker-table td.bb-picker-icon svg{display:none}
.bb-c1 .bb-picker-table td:nth-child(2){font-weight:600}
.bb-c1 .bb-picker-table td:nth-child(2) small{font-weight:400}
.bb-c1 .bb-picker-table td:nth-child(6){white-space:nowrap}
.bb-c1 .bb-picker-table [data-picker-item-id]{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 10px;border:1px solid var(--bb-primary);border-radius:var(--bb-r);background:var(--bb-primary);color:var(--bb-on-primary);font:inherit;font-size:12px;font-weight:500;white-space:nowrap;cursor:pointer}
.bb-c1 .bb-picker-table [data-picker-item-id]:hover{background:var(--bb-primary-h)}
.bb-c1 .bb-picker-table [data-picker-item-id][data-added="1"]{border-color:var(--bb-border-2);background:#fff;color:var(--bb-text)}
.bb-c1 .bb-picker-table [data-picker-item-id][data-added="1"]:hover{background:#f3f4f6}
.bb-c1 .bb-picker-table [data-picker-item-id]:disabled{opacity:.45;cursor:not-allowed}
.bb-c1 .bbx-picker-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}
.bb-c1 .bbx-picker-foot>p{margin:0}

/* C1.8 Selected items card and its plain collapsible cards (pictures 00, 05, 06). The editor scripts are unchanged:
   they build these sections, rows and fields; these rules draw them with the theme's card, field and button looks. */
.bb-c1 [data-bb-invoice-lines]{margin-top:12px;padding:16px 18px;border:1px solid var(--bb-border);border-radius:var(--bb-r-lg);background:#fff}
.bb-c1 .bb-final-section-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px}
.bb-c1 .bb-final-section-heading h2{margin:0;font-size:14.5px;font-weight:600;line-height:1.25;letter-spacing:normal}
.bb-c1 .bb-modern-picker .bb-card-h h3{margin:0;font-size:14.5px}
.bb-c1 .bb-final-section-heading h2 svg{display:none}
.bb-c1 [data-bb-charge-section=selected]>.bb-final-section-heading{margin-bottom:12px}
.bb-c1 [data-bb-charge-section=custom],.bb-c1 [data-bb-charge-section=freight],.bb-c1 details.bb-discounts{margin:0 0 10px;padding:16px 18px;border:1px solid var(--bb-border);border-radius:var(--bb-r-lg);background:#fff}
.bb-c1 details.bb-discounts{margin-bottom:0}
.bb-c1 [data-bb-charge-section=custom]>.bb-final-section-heading,.bb-c1 [data-bb-charge-section=freight]>.bb-final-section-heading,.bb-c1 details.bb-discounts>summary{margin-bottom:12px}
.bb-c1 .bb-section-toggle{margin-left:auto;width:16px;height:16px;padding:0;border:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat;cursor:pointer}
.bb-c1 .bb-section-toggle::before{content:"";position:absolute;inset:-6px}
.bb-c1 .bb-section-toggle:focus-visible{outline:2px solid var(--bb-focus);outline-offset:4px;border-radius:4px}
.bb-c1 .bbx-count{margin-left:auto;margin-right:-4px}
.bb-c1 .bbx-count+.bb-section-toggle{margin-left:0}
.bb-c1 details.bb-discounts>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;font-size:14.5px;font-weight:600;line-height:1.25;list-style:none;cursor:pointer}
.bb-c1 details.bb-discounts>summary::-webkit-details-marker{display:none}
.bb-c1 details.bb-discounts>summary::after{content:"";flex:none;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat}
.bb-c1 details.bb-discounts>summary>.bbx-count{margin-right:8px}

/* Fields inside the editor: the theme's label, field and small-button looks. */
.bb-c1 .bb-final-pricing fieldset{border:0;padding:0;margin:0;min-width:0}
.bb-c1 .bb-final-pricing fieldset>legend{position:absolute;left:-999px}
.bb-c1 .bb-final-pricing label{font-size:12.5px;font-weight:500;color:var(--bb-text)}
.bb-c1 .bb-final-pricing :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){width:100%;height:34px;padding:0 10px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background-color:#fff;font:inherit;font-size:13.5px;font-weight:400;color:var(--bb-text);box-shadow:none}
.bb-c1 .bb-final-pricing :is(input,textarea)::placeholder{color:#8b93a1;opacity:1}
.bb-c1 .bb-final-pricing select{appearance:none;-webkit-appearance:none;padding-right:28px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.bb-c1 .bb-final-pricing :is(.bb-regular-fields,.bb-freight-fields,.bb-freight-count-section,.bb-discount-row)>label{display:block;margin:0 0 14px;min-width:0}
.bb-c1 .bb-final-pricing :is(.bb-regular-fields,.bb-freight-fields,.bb-freight-count-section,.bb-discount-row)>label>:is(input,select,textarea,.bb-freight-money,.bb-discount-amount,output){display:flex;margin-top:5px}
.bb-c1 .bb-final-pricing .bb-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:28px;padding:0 10px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff;color:var(--bb-text);font:inherit;font-size:12px;font-weight:500;white-space:nowrap;cursor:pointer}
.bb-c1 .bb-final-pricing .bb-button:hover{background:#f3f4f6}
.bb-c1 .bb-final-pricing .bb-button:disabled{opacity:.45;cursor:not-allowed}
.bb-c1 .bb-final-pricing .bb-button svg{display:none}
.bb-c1 .bb-final-pricing label.bb-final-tax{display:flex;align-items:center;gap:6px;margin-top:0;margin-bottom:0;font-size:13px;font-weight:400;white-space:nowrap}
.bb-c1 .bb-final-tax input{width:auto;height:auto;margin:0}

/* One selected item: name, "From Price Book", Tax exempt and Remove; description, units and price on one row.
   The read-only per-item "Total before tax" box is not shown (owner decision); it is still filled by the script. */
.bb-c1 .bb-regular-row.bb-final-selected{margin:0 0 10px;padding:16px 18px;border:1px solid var(--bb-border);border-radius:var(--bb-r-lg);background:#fff}
.bb-c1 .bb-regular-heading{display:flex;align-items:center;gap:8px;min-height:28px;margin-bottom:12px}
.bb-c1 .bb-regular-heading>label:first-child{flex:0 1 auto;min-width:0;font-size:0;margin:0}
.bb-c1 .bb-regular-heading>label:first-child>*{font-size:0}
.bb-c1 .bb-final-pricing .bb-regular-heading input[name$="[item_name]"]{field-sizing:content;width:auto;max-width:100%;min-width:2ch;height:28px;padding:0;border:0;background:transparent;font-size:14.5px;font-weight:600}
.bb-c1 .bb-regular-heading [data-bb-selected-label]{flex:none;font-size:13px;font-weight:400;color:var(--bb-text);text-decoration:underline;text-underline-offset:2px}
.bb-c1 .bb-regular-heading .bb-final-tax{margin-left:auto}
.bb-c1 .bb-final-selected>.bb-regular-description,.bb-c1 .bb-final-custom>.bb-regular-description{display:none}
.bb-c1 .bb-regular-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;align-items:start}
.bb-c1 .bb-regular-fields>label:has(>[data-regular-total]){display:none}
.bb-c1 .bb-final-pricing .bb-final-item-description textarea{display:block;height:34px;min-height:34px;max-height:98px;padding:6px 10px;line-height:20px;resize:none;overflow-y:auto}
.bb-c1 .bb-regular-unit,.bb-c1 .bb-regular-adjustment{display:block;margin:0 0 14px;max-width:calc((100% - 32px)/3)}
.bb-c1 .bb-regular-adjustment>summary{font-size:12.5px;font-weight:500;cursor:pointer;margin-bottom:5px}
.bb-c1 .bb-regular-legacy-discount,.bb-c1 .bb-regular-legacy-freight{margin:0 0 14px;font-size:13px}

/* Custom item lines (picture 05): Charge by, the description across the card, then the price. Tax exempt and Remove
   stay on every line (kept from today). */
.bb-c1 .bb-regular-row.bb-final-custom{position:relative;margin:0 0 12px}
.bb-c1 .bb-regular-row.bb-final-custom+.bb-regular-row.bb-final-custom{padding-top:14px;border-top:1px solid var(--bb-border)}
.bb-c1 .bb-final-custom .bb-regular-heading>label:first-child,.bb-c1 .bb-final-custom [data-bb-selected-label]{display:none}
.bb-c1 .bb-final-custom .bb-regular-heading{justify-content:flex-end;margin:0 0 -22px;padding-right:76px}
/* Corrections 5, fixes 6 and 10 (builder E2): Review Job Pricing and New Invoice carry New Delivery's class bb-c1; the few rules of
   New Delivery written with its form's id name the three forms with :is(), which weighs the same. */
#main :is(#work-form,#bb-job-pricing-form,#bb-new-invoice-form).bb-c1 .bb-final-custom .bb-regular-fields,#main :is(#work-form,#bb-job-pricing-form,#bb-new-invoice-form).bb-c1 .bb-final-custom .bb-regular-fields:has([data-regular-quantity][hidden]){grid-template-columns:minmax(0,655fr) minmax(0,373fr);align-items:start;padding:0}
#main :is(#work-form,#bb-job-pricing-form,#bb-new-invoice-form).bb-c1 .bb-final-custom .bb-regular-fields>label{grid-column:1;align-self:start}
#main :is(#work-form,#bb-job-pricing-form,#bb-new-invoice-form).bb-c1 .bb-final-custom .bb-regular-fields>label>.field-label-text{min-height:0;line-height:1.5}
#main :is(#work-form,#bb-job-pricing-form,#bb-new-invoice-form).bb-c1 .bb-final-custom .bb-regular-fields>[data-regular-context]{grid-column:1/-1}
#main :is(#work-form,#bb-job-pricing-form,#bb-new-invoice-form).bb-c1 .bb-final-custom .bb-regular-fields>.bb-regular-remove{position:absolute;top:0;right:0;height:28px;min-height:28px;margin:0}
#main :is(#work-form,#bb-job-pricing-form,#bb-new-invoice-form).bb-c1 .bb-regular-row.bb-final-custom+.bb-regular-row.bb-final-custom .bb-regular-fields>.bb-regular-remove{top:14px}
.bb-c1 .bb-final-custom .bb-regular-heading input[name$="[item_name]"]{font-size:13.5px}
.bb-c1 [data-bb-charge-section=custom] [data-bb-add]{margin:0}

/* C1.9 Packages / Freight Services opened (pictures 07, 07a): three fields on one row with the weight unit beside the
   price, the package table with its Charge column, the section summary and total on the right. */
.bb-c1 .bb-freight-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;align-items:start}
.bb-c1 .bb-freight-row>*{grid-column:1/-1}
.bb-c1 .bb-freight-heading,.bb-c1 .bb-freight-count-section>h3,.bb-c1 .bb-freight-step-number,.bb-c1 [data-freight-currency],.bb-c1 .bb-freight-package-heading,.bb-c1 .bb-freight-auto-heading{display:none}
.bb-c1 .bb-freight-count-section,.bb-c1 .bb-freight-fields{display:contents}
.bb-c1 .bb-freight-count-section>label{grid-area:1/1}
.bb-c1 .bb-freight-fields>label:nth-child(1){grid-area:1/2}
.bb-c1 .bb-freight-fields>label:nth-child(2){grid-area:1/3;margin-right:96px}
.bb-c1 .bb-final-pricing .bb-freight-fields>label:nth-child(3){grid-area:1/3;justify-self:end;align-self:end;width:88px;font-size:0}
.bb-c1 .bb-freight-money{display:block}
.bb-c1 .bb-freight-package-columns,.bb-c1 [data-freight-package]{display:grid;grid-template-columns:minmax(0,1.47fr) minmax(0,2.27fr) minmax(0,4.09fr) minmax(0,1.49fr) minmax(0,1.5fr);align-items:center}
.bb-c1 .bb-freight-package-columns{margin-top:14px;border:1px solid var(--bb-border);border-bottom:0;border-radius:var(--bb-r-lg) var(--bb-r-lg) 0 0;background:var(--bb-subtle);color:var(--bb-muted);font-size:12px;font-weight:500}
.bb-c1 .bb-freight-package-columns>span{padding:9px 14px;white-space:nowrap}
.bb-c1 [data-freight-packages]{border:1px solid var(--bb-border);border-radius:0 0 var(--bb-r-lg) var(--bb-r-lg);background:#fff;font-size:13.5px}
.bb-c1 [data-freight-package]+[data-freight-package]{border-top:1px solid var(--bb-border)}
.bb-c1 [data-freight-package]>*{margin:11px 14px;min-width:0}
.bb-c1 [data-freight-package-number]{font-weight:600}
.bb-c1 [data-freight-package-number]::before{content:"Package "}
.bb-c1 [data-freight-package] label>span{position:absolute;left:-999px}
.bb-c1 .bb-final-pricing [data-freight-package] [data-freight-weight]{max-width:120px}
.bb-c1 .bb-final-pricing [data-freight-package] [data-freight-size]{max-width:240px}
.bb-c1 [data-freight-package]>.bb-button{justify-self:start}
.bb-c1 .bb-freight-footer{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:0 12px;align-items:center;margin-top:12px}
.bb-c1 .bb-freight-footer>[data-freight-add-package]{grid-area:1/1/3/2}
.bb-c1 .bb-freight-footer>.bb-freight-size-help{grid-area:1/2/3/3;margin:0;font-size:12.5px;color:var(--bb-muted)}
.bb-c1 .bb-freight-footer>[data-freight-summary]{grid-area:1/3;margin:0;text-align:right;font-size:12.5px;color:var(--bb-muted)}
.bb-c1 .bb-freight-footer>.bb-freight-auto{grid-area:2/3;margin:4px 0 0;text-align:right;font-size:14px;font-weight:700}
.bb-c1 .bb-final-pricing .bb-freight-row>label.bb-final-tax{margin-top:14px;gap:9px;font-size:13.5px}
.bb-c1 .bb-freight-row>.bb-final-tax input{width:16px;height:16px;accent-color:var(--bb-primary)}
.bb-c1 .bb-freight-row>[data-freight-adjustment]{display:block;margin-top:14px;max-width:calc((100% - 32px)/3)}
.bb-c1 .bb-freight-row>[data-freight-adjustment]>input{margin-top:5px}

/* C1.10 Discounts opened (picture 06): type, amount and what it applies to on one row; the fields the drawing does not
   show (quantity, original amount, Remove) keep working on the row below. */
.bb-c1 .bb-discount-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;align-items:start}
.bb-c1 .bb-discount-row+.bb-discount-row{padding-top:14px;border-top:1px solid var(--bb-border)}
.bb-c1 .bb-discount-row>label:nth-of-type(1){order:3}
.bb-c1 .bb-discount-row>label:nth-of-type(2){order:4}
.bb-c1 .bb-discount-row>label:nth-of-type(3){order:1}
.bb-c1 .bb-discount-row>label:nth-of-type(4){order:2}
.bb-c1 .bb-discount-row>label:nth-of-type(5){order:5}
.bb-c1 .bb-discount-row>.bb-discount-remove{order:6;justify-self:start;margin-top:27px}
.bb-c1 .bb-discount-amount{align-items:center;gap:8px}
.bb-c1 .bb-discount-amount>span{font-size:13.5px;font-weight:400;color:var(--bb-text-2)}
.bb-c1 .bb-final-pricing .bb-discount-row output{align-items:center;height:34px;padding:0 10px;border:1px solid var(--bb-border);border-radius:var(--bb-r);background:var(--bb-subtle);font-size:13.5px;font-weight:400}
.bb-c1 details.bb-discounts>.bb-muted{display:none}

/* C1.11 Totals box to the right of the notes (pictures 00, 04). Same rows as before (bizbox.js). */
.bb-c1 .bbx-notes{align-items:start}
.bb-c1 .bbx-notes .bb-textarea{display:block;height:auto;padding:7px 10px}
.bb-stage .bb-c1 .bbx-totals{margin:0;font-size:13.5px}
.bb-c1 .bbx-totals:empty,.bb-c1 .bbx-totals:has(>[data-bb-calculated]:empty){display:none}
.bb-c1 .bbx-totals [data-bb-calculated]{color:var(--bb-text-2);font-size:12.5px}
.bb-c1 .bbx-totals [data-bb-calculated]:has(>p){color:var(--bb-text);font-size:13.5px}
.bb-c1 .bbx-totals [data-bb-calculated]:has(>p){display:grid;grid-template-columns:minmax(0,7fr) minmax(max-content,3fr);column-gap:0}
.bb-c1 .bbx-totals [data-bb-calculated]>p{display:contents}
.bb-c1 .bbx-totals [data-bb-calculated]>p>*{padding:4px 0}
.bb-c1 .bbx-totals [data-bb-calculated]>p>span{padding-right:8px}
.bb-c1 .bbx-totals [data-bb-calculated]>p>strong{font-weight:400;white-space:nowrap}
.bb-c1 .bbx-totals [data-bb-calculated]>p:last-child:not(:first-child)>*{padding:8px 0;border-top:1px solid var(--bb-border);font-weight:700}
.bb-c1 .bbx-confirm{margin-top:14px}
.bb-c1 .work-checks{margin-top:8px}
.bb-c1 .bb-savebar{margin-top:18px}

/* C1.12 Work files (picture 00, section 6): one line to drop or choose files; the chosen files list below is unchanged. */
.bb-c1 .bbx-upload{font-size:14px;color:var(--bb-text)}
.bb-c1 .bbx-upload.is-dragging{outline:2px dashed var(--bb-border-2);outline-offset:6px;border-radius:4px}
.bb-c1 .bbx-upload>button{text-transform:lowercase;padding:0;border:0;background:none;font:inherit;color:var(--bb-text);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.bb-c1 .bbx-upload-note{margin:8px 0 0}

/* C1.13 Worker assignment (picture 00, section 7): the button, then who is selected, on one row. */
.bb-c1 .bbx-assign{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.bb-c1 .bbx-assign>.assignment-summary-cards{margin:0;font-size:12.5px;color:var(--bb-muted)}
.bb-c1 .bbx-assign>.assignment-summary-cards:empty::before{content:"None selected"}
.bb-c1 .bbx-assign-note{margin:8px 0 0}

/* C1.14 Messages of the price editor (unchanged look, moved here from the editor stylesheet this form no longer loads). */
.bb-c1 .bb-pricing-field-error{display:block;color:#ba1616;font-size:13px;font-weight:400;line-height:1.35;margin:5px 0 0;white-space:normal}
.bb-c1 .bb-final-pricing .bb-pricing-invalid{border:1px solid #e32323!important;background:#fff1f1!important;box-shadow:0 0 0 1px #e32323!important}
.bb-c1 .bb-pricing-errors{border:1px solid #e32323;color:#ad1515;background:#fff7f7;border-radius:5px;padding:8px 10px;margin-top:16px;font-size:14px;font-weight:600}
.bb-c1 .bb-pricing-errors[hidden]{display:none}

/* C1.15 Narrow screens: the same breakpoints as the approved stylesheet (980 and 640 pixels). */
@media (max-width: 980px){
.bb-c1 .bbx-picker-search{grid-template-columns:minmax(0,1fr) auto}
.bb-c1 .bbx-picker-search>.bb-field:first-child{grid-column:1/-1}
.bb-c1 .bb-regular-fields,.bb-c1 .bb-discount-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.bb-c1 .bb-regular-unit,.bb-c1 .bb-regular-adjustment,.bb-c1 .bb-freight-row>[data-freight-adjustment]{max-width:calc((100% - 16px)/2)}
}
@media (max-width: 640px){
.bb-c1 .bb-regular-fields,.bb-c1 .bb-discount-row,.bb-c1 .bb-freight-row{grid-template-columns:minmax(0,1fr)}
#main :is(#work-form,#bb-job-pricing-form,#bb-new-invoice-form).bb-c1 .bb-final-custom .bb-regular-fields,#main :is(#work-form,#bb-job-pricing-form,#bb-new-invoice-form).bb-c1 .bb-final-custom .bb-regular-fields:has([data-regular-quantity][hidden]){grid-template-columns:minmax(0,1fr)}
.bb-c1 .bb-freight-count-section>label,.bb-c1 .bb-freight-fields>label:nth-child(1),.bb-c1 .bb-freight-fields>label:nth-child(2),.bb-c1 .bb-final-pricing .bb-freight-fields>label:nth-child(3){grid-area:auto;grid-column:1}
.bb-c1 .bb-final-pricing .bb-freight-fields>label:nth-child(3){grid-row:3;justify-self:end;align-self:end}
.bb-c1 .bb-freight-fields>label:nth-child(2){grid-row:3}
.bb-c1 .bb-regular-unit,.bb-c1 .bb-regular-adjustment,.bb-c1 .bb-freight-row>[data-freight-adjustment]{max-width:none}
.bb-c1 .bb-regular-heading{flex-wrap:wrap}
.bb-c1 .bb-freight-package-columns{display:none}
.bb-c1 [data-freight-packages]{border-radius:var(--bb-r-lg)}
.bb-c1 [data-freight-package]{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:6px 0}
.bb-c1 [data-freight-package]>*{margin:5px 14px}
.bb-c1 [data-freight-package]>[data-freight-package-number]{grid-column:1/-1}
.bb-c1 [data-freight-package]>label:has([data-freight-size]){grid-column:1/-1}
.bb-c1 .bb-final-pricing [data-freight-package] [data-freight-weight],.bb-c1 .bb-final-pricing [data-freight-package] [data-freight-size]{max-width:none}
.bb-c1 .bb-freight-footer{grid-template-columns:minmax(0,1fr)}
.bb-c1 .bb-freight-footer>*{grid-area:auto!important;text-align:left!important;margin-top:8px}
.bb-c1 .bb-freight-footer>[data-freight-add-package]{justify-self:start;margin-top:0}
}

/* C2.A Corrections 2, correction A (owner pictures of 2026-11-13: 01-charge-by-multi, 01b-charge-by-four-methods).
   Packages / Freight Services on New Delivery holds any number of groups, one per chosen method. Each group is one
   freight row of the editor, drawn as a card: its method as the title with Tax exempt and Remove, the three boxes in
   the same three columns, the package table, and its own summary and Group total. Below the last group: the method
   chooser and the section total. These rules follow the C1.9 rules above and replace only what a group changes. */
.bb-c1 .bb-final-pricing fieldset.bb-freight-row{margin:0 0 10px;padding:16px 18px;border:1px solid var(--bb-border);border-radius:var(--bb-r-lg);background:#fff}
.bb-c1 .bb-freight-heading{display:flex;align-items:center;gap:8px;min-height:28px;margin-bottom:12px;grid-row:1}
.bb-c1 .bb-freight-heading>.bb-freight-cube{display:none}
.bb-c1 .bb-freight-heading>h3{margin:0 auto 0 0;min-width:0;font-size:14.5px;font-weight:600;line-height:1.25;letter-spacing:normal}
.bb-c1 .bb-freight-count-section>label{grid-area:2/1}
.bb-c1 .bb-freight-fields>label:nth-child(1){grid-area:2/2}
.bb-c1 .bb-freight-fields>label:nth-child(2){grid-area:2/3;margin-right:0}
.bb-c1 .bb-freight-fields>label.bbx-band-set{grid-area:2/3}
.bb-c1 .bb-final-pricing .bb-freight-fields>label:nth-child(3){grid-area:2/3;display:none}
.bb-c1 .bb-final-pricing .bbx-freight-unit .bb-freight-fields>label:nth-child(3){display:block}
.bb-c1 [data-bbx-method=weight_band] .bb-freight-fields>label:nth-child(2){display:none}
.bb-c1 .bb-final-pricing .bbx-freight-unit .bb-freight-fields>label:nth-child(2)>.bb-freight-money{margin-right:96px}
.bb-c1 .bb-final-pricing .bbx-freight-unit .bb-freight-fields>label.bbx-band-set>select{width:calc(100% - 96px)}
.bb-c1 .bb-freight-fields>label>.field-label-text{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bb-c1 .bbx-band-table{margin-top:12px;border:1px solid var(--bb-border);border-radius:var(--bb-r-lg);background:#fff;overflow:hidden}
.bb-c1 .bbx-band-table table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:13.5px}
.bb-c1 .bbx-band-table th{padding:9px 14px;border-bottom:1px solid var(--bb-border);background:var(--bb-subtle);color:var(--bb-muted);font-size:12px;font-weight:500;text-align:left;white-space:nowrap}
.bb-c1 .bbx-band-table td{padding:11px 14px;border-top:1px solid var(--bb-border)}
.bb-c1 .bbx-band-table tbody tr:first-child td{border-top:0}
.bb-c1 .bb-freight-package-columns,.bb-c1 [data-freight-package]{grid-template-columns:minmax(0,1.28fr) minmax(0,1.96fr) minmax(0,2.48fr) minmax(0,1.7fr) minmax(0,1.36fr)}
.bb-c1 .bb-freight-package-columns{margin-top:12px}
.bb-c1 .bbx-band-table:not([hidden])~.bb-freight-package-columns{margin-top:14px}
.bb-c1 .bb-final-pricing [data-freight-package] [data-freight-weight]{max-width:110px}
.bb-c1 .bb-final-pricing [data-freight-package] [data-freight-size]{max-width:200px}
.bb-c1 [data-c1-charge]>span{white-space:nowrap}
.bb-c1 .bbx-band-none{margin:0;font-size:12.5px;color:var(--bb-muted)}
.bb-c1 .bb-freight-footer>.bb-freight-auto{font-weight:600}
.bb-c1 .bbx-freight-tail{display:flex;flex-direction:column;margin-top:2px}
.bb-c1 .bbx-freight-tail>label{display:block;width:calc((100% - 32px)/3);min-width:0;margin:0 0 14px}
.bb-c1 .bb-final-pricing .bbx-freight-tail>label>select{display:flex;margin-top:5px}
.bb-c1 .bbx-freight-hint{margin:10px 0 0}
.bb-c1 .bbx-freight-total{margin-top:14px;padding-top:12px;border-top:1px solid var(--bb-border);text-align:right}
.bb-c1 .bbx-freight-total>div{margin-top:4px;font-size:15px;font-weight:700}
@media (max-width: 640px){
.bb-c1 .bb-freight-heading{flex-wrap:wrap;gap:6px}
.bb-c1 .bb-freight-count-section>label{grid-area:2/1}
.bb-c1 .bb-freight-fields>label:nth-child(1){grid-area:3/1}
.bb-c1 .bb-freight-fields>label:nth-child(2),.bb-c1 .bb-freight-fields>label.bbx-band-set{grid-area:4/1}
.bb-c1 .bb-final-pricing .bb-freight-fields>label:nth-child(3){grid-area:4/1;justify-self:end;align-self:end}
.bb-c1 [data-freight-package]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.bb-c1 .bb-final-pricing [data-freight-package] [data-freight-weight],.bb-c1 .bb-final-pricing [data-freight-package] [data-freight-size]{max-width:none}
.bb-c1 .bbx-band-table{margin-bottom:14px}
.bb-c1 .bbx-freight-tail>label{width:auto}
}

/* b80 not-fixed pages */
/* B1 Deliveries list and Dispatch (work/listing.php, .bbx-fit), between the phone layout and 860 px. The drawn table
   fits its card at 820 px; the real one is wider because the tenant's address labels and the assignment line under a
   worker's name are longer than the sample text, so it needed the card's sideways scroll. Here the first three column
   headings may wrap and the Status, worker and Action columns keep their own width, so the table fits as drawn and the
   Action links stay on one line. When it still cannot fit (longer wording) the card scrolls sideways as before. */
@media (min-width: 641px) and (max-width: 860px){
.bb-stage .bbx-fit .bb-table th:nth-child(-n+3){white-space:normal}
.bb-stage .bbx-fit .bb-table th:nth-child(n+4){width:1px}
}
/* B2 New Delivery for a new registered customer (customers/creation_fields.php inside .delivery-customer-creation):
   the older courier-creation-customer.css still draws the billing-address fields as a blue box with the street on a
   row of its own. With the approved markup (.bb-grid) they are plain two-column rows like the other sections. */
#work-form .delivery-customer-creation [data-billing-address].bb-grid{padding:0;background:none;border-radius:0}
#work-form .delivery-customer-creation [data-billing-address].bb-grid>label:first-child{grid-column:auto}
/* B3 Customer portal > Files for a delivery (work/files.php, customers and company employees): a file waiting to be
   uploaded. The row is built by courier-work-file-labels.js without design classes (its name, a "File name /
   description" box, "Ready to upload" and a remove button). It takes the look of the staff page's queued row: the
   subtle panel, a design field and a small plain button. Staff rows (.existing-file-audience) are not touched. */
.bb-work-files .file-upload-fields:not(.existing-file-audience){position:relative;margin-top:14px;padding:14px 56px 14px 18px;background:var(--bb-subtle);border-radius:8px;font-size:13.5px;text-align:left}
.bb-work-files .file-upload-fields:not(.existing-file-audience)>strong{display:block;font-weight:600;overflow-wrap:anywhere}
.bb-work-files .file-upload-fields:not(.existing-file-audience)>label{font-size:12.5px;font-weight:500;color:var(--bb-text)}
.bb-work-files .file-upload-fields:not(.existing-file-audience)>label>input{height:34px;margin-top:5px;padding:0 10px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff;font:inherit;font-size:13.5px;font-weight:400;color:var(--bb-text)}
.bb-work-files .file-upload-fields:not(.existing-file-audience)>small{font-size:12px;color:var(--bb-muted)}
.bb-work-files .file-upload-fields:not(.existing-file-audience)>.file-queue-remove{position:absolute;right:12px;top:10px;width:28px;height:28px;padding:0;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff;font:inherit;font-size:15px;line-height:1;color:var(--bb-text-2);cursor:pointer}

/* Corrections 2 (owner, 2026-11-13; reference/corrections/2026-11-13), correction C, picture 03-picker-edit-remove:
   "Edit" and "Remove" at the right of a saved address in the New Delivery address picker (courier-r3.js). The row's own
   button keeps its look and still chooses the address; the two words are plain links, the same as the Edit and Remove
   links of a table row (.bb-table .act a: the page's link colour and underline, 12px apart, 13px as drawn). The
   separating line and the hover tint move from the button to the row so they run under the links too. Rows without
   links (company locations, the account address, the billing address, a contact's own entries) are drawn as before. */
#work-form.bb-c1 .r3-address-row{display:flex;align-items:center;gap:12px;padding-right:12px;border-top:1px solid var(--bb-border)}
#work-form.bb-c1 .r3-address-row>.r3-address-option{flex:1 1 auto;width:auto;min-width:0;border-top:0}
#work-form.bb-c1 .r3-address-row:has(>.r3-address-option:is(:hover,[aria-selected=true])){background:#fafbfc}
#work-form.bb-c1 .r3-address-links{flex:none;display:flex;gap:12px;font-size:13px;white-space:nowrap}
#work-form.bb-c1 .r3-address-links a:focus-visible{outline:2px solid var(--bb-focus);outline-offset:2px}

/* ==== Corrections 3 (owner, 2026-11-13; reference/corrections/2026-11-13-corrections-3), builder INV: START ==== */
/* Correction C, pictures 03-invoice-new-look and 03b-invoice-phone: the new parts of the invoice on the design's paper
   (themes/courier/bizbox/invoice_paper.php: Print and the customer portal's invoice). The rules are the ones the
   pictures add at the end of their head (.sumrow, .sumbox, .sec), under the invoice's own class names, and the phone
   rules of picture 03b at the app's 640px width. Everything is inside .bbi-paper, so no other paper changes. */
.bbi-paper .bbi-business{font-size:18px;font-weight:700}
.bbi-paper .bbi-sumrow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0 22px}
.bbi-paper .bbi-sumbox{border:1px solid var(--bb-border);border-radius:8px;padding:10px 12px;background:var(--bb-subtle)}
.bbi-paper .bbi-sumbox .k{font-size:11px;letter-spacing:.06em;color:var(--bb-muted);text-transform:uppercase}
.bbi-paper .bbi-sumbox .v{font-size:19px;font-weight:600;margin-top:4px;font-variant-numeric:tabular-nums}
.bbi-paper .bbi-sumbox.owe.bad{background:var(--bb-bad-bg);border-color:#f3c4c4}.bbi-paper .bbi-sumbox.owe.bad .v,.bbi-paper .bbi-sumbox.owe.bad .k{color:var(--bb-bad)}
.bbi-paper .bbi-sumbox.owe.ok{background:var(--bb-ok-bg);border-color:#bfe3cc}.bbi-paper .bbi-sumbox.owe.ok .v,.bbi-paper .bbi-sumbox.owe.ok .k{color:var(--bb-ok)}
.bbi-paper .bbi-sumbox.owe.warn{background:var(--bb-warn-bg);border-color:#efd99a}.bbi-paper .bbi-sumbox.owe.warn .v,.bbi-paper .bbi-sumbox.owe.warn .k{color:var(--bb-warn)}
.bbi-paper .bbi-sumbox.owe.neu{background:#fff;border-color:var(--bb-border-2)}.bbi-paper .bbi-sumbox.owe.neu .v,.bbi-paper .bbi-sumbox.owe.neu .k{color:var(--bb-text)}
.bbi-paper .bbi-sec{font-size:11px;letter-spacing:.08em;color:var(--bb-muted);margin:22px 0 8px;text-transform:uppercase}
.bbi-paper .bbi-totals{min-width:280px}
@media (max-width:640px){
  .bbi-paper .bbi-sumrow{grid-template-columns:1fr 1fr}
  .bbi-paper .two{flex-direction:column;gap:14px}
  .bbi-paper .two>div{text-align:left!important}
  .bbi-paper .bbi-totals{margin-left:0;width:100%}
  .bbi-paper .bb-table th,.bbi-paper .bb-table td{padding:8px 8px}
  .bbi-paper h1{font-size:22px}
}
@media print{.bbi-paper .bbi-sumrow{grid-template-columns:repeat(4,1fr)}.bbi-paper .bbi-sumrow,.bbi-paper .bb-alert{break-inside:avoid}}
/* Corrections 3, stage 1, item 2 (owner, 14 Nov 2026): "Print and the customer portal at phone width must show the whole
   Amount column for an invoice with a Weight band line." The Rate cell of a Weight band line holds words ("Saved weight
   ranges"), not an amount; kept on one line they pushed the Amount column out of the table's box on a phone. On a phone's
   screen (640px and narrower, the paper's phone width) only those words may take more than one line, as on the staff view
   and the email (invoice_style.php). Amounts and quantities stay on one line. Screens only: wider, and on paper (the
   browser's print rules never read this), the invoice is exactly as before; so is every invoice without such a line. */
@media screen and (max-width:640px){.bbi-paper .bb-table td.r.bbi-rate-words{white-space:normal}}
/* ==== Corrections 3, builder INV: END (later INV blocks are added above this line) ==== */

/* C3 Corrections 3, builder FRT (owner's zip of 2026-11-13, reference/corrections/2026-11-13-corrections-3): New Delivery,
   Packages / Freight Services. One block for each correction; they follow the C1 and C2.A rules above. */

/* C3.B Correction B (pictures 02-weight-band-set-up and 02b-weight-band-saved-set): a Weight band group is set up right
   in the group. Under the three boxes: the band table (Up to, Price, Action), "+ Add band" with its line, then the name
   box, or the "Saved band set" line with "Delete this band set", or the "Save these changes" tick box. The Corrections 2
   read-only band table (.bbx-band-table) keeps its frame; its cells now hold boxes. */
.bb-c1 .bbx-band-editor{margin-top:18px}
.bb-c1 .bbx-band-editor>.bbx-band-table{margin-top:0}
.bb-c1 .bbx-band-table th:nth-child(1),.bb-c1 .bbx-band-table td:nth-child(1){width:38.5%}
.bb-c1 .bbx-band-table th:nth-child(2),.bb-c1 .bbx-band-table td:nth-child(2){width:41.5%}
.bb-c1 .bbx-band-table td{vertical-align:top}
.bb-c1 .bbx-band-table td:nth-child(3){padding-top:14px}
.bb-c1 .bb-final-pricing .bbx-band-table [data-band-to]{display:block;max-width:140px}
.bb-c1 .bbx-band-actions{display:flex;align-items:center;gap:12px;margin-top:10px}
.bb-c1 .bbx-band-actions>.bb-note{margin:0;min-width:0}
.bb-c1 .bb-final-pricing .bbx-band-name{display:block;max-width:520px;margin:16px 0 0}
.bb-c1 .bb-final-pricing .bbx-band-name>input{display:flex;margin-top:5px}
.bb-c1 .bbx-band-saved{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}
.bb-c1 .bbx-band-saved>.bb-note{margin:0;min-width:0}
.bb-c1 .bbx-band-saved b{color:var(--bb-text)}
.bb-c1 .bbx-band-saved a{flex:none;color:var(--bb-text);text-decoration:underline;font-size:13.5px}
.bb-c1 .bbx-band-saved a:focus-visible{outline:2px solid var(--bb-focus);outline-offset:2px}
.bb-c1 .bbx-band-keep{margin-top:16px}
.bb-c1 .bb-final-pricing .bbx-band-keep>label{display:flex;gap:9px;align-items:flex-start;margin:0;font-size:13.5px;font-weight:400}
.bb-c1 .bbx-band-keep input{flex:none;width:16px;height:16px;margin:3px 0 0;accent-color:var(--bb-primary)}
.bb-c1 .bbx-band-keep>.bb-note{margin:6px 0 0}
.bb-c1 .bbx-band-editor:not([hidden])~.bb-freight-package-columns{margin-top:18px}
/* B20: the "Band set" label lay over the small kg / lb box and took its clicks, so the box could not be opened in a
   Weight band group. The label now ends before that box. */
.bb-c1 .bb-final-pricing .bbx-freight-unit .bb-freight-fields>label.bbx-band-set{margin-right:96px}
.bb-c1 .bb-final-pricing .bbx-freight-unit .bb-freight-fields>label.bbx-band-set>select{width:100%}
@media (max-width: 640px){
.bb-c1 .bbx-band-table{margin-bottom:0}
.bb-c1 .bbx-band-table table,.bb-c1 .bbx-band-table tbody{display:block}
.bb-c1 .bbx-band-table thead{display:none}
.bb-c1 .bbx-band-table tr{display:grid;grid-template-columns:minmax(0,1fr) 144px;gap:0 10px;padding:8px 14px}
.bb-c1 .bbx-band-table tr+tr{border-top:1px solid var(--bb-border)}
.bb-c1 .bbx-band-table td:nth-child(n){display:block;width:auto;padding:3px 0;border:0}
.bb-c1 .bbx-band-table td[data-l]::before{content:attr(data-l);display:block;margin-bottom:5px;font-size:12.5px;font-weight:500;color:var(--bb-text)}
.bb-c1 .bbx-band-table td:nth-child(3){grid-column:1/-1;padding-top:5px}
.bb-c1 .bb-final-pricing .bbx-band-table [data-band-to]{max-width:none}
.bb-c1 .bbx-band-actions{flex-direction:column;align-items:flex-start;gap:8px}
.bb-c1 .bbx-band-saved{flex-wrap:wrap}
.bb-c1 .bbx-band-editor:not([hidden])~[data-freight-packages]{margin-top:18px}
}

/* C3.H Correction H (picture 07-unit-box-lines-up): the small kg / lb box keeps the top and the height of the box beside
   it ("Price per kg" in a By weight group, "Band set" in a Weight band group), with or without a red message under
   either box, at every width. It was hung from the bottom of the row (align-self:end), so a message under the price
   box, which makes the row taller, pushed it down. Now it starts at the top like the other three labels; its own
   caption ("Weight unit", never shown) keeps the height of a caption line, so its box sits level with theirs. */
.bb-c1 .bb-final-pricing .bb-freight-fields>label:nth-child(3){align-self:start;font-size:12.5px;color:transparent;white-space:nowrap;user-select:none}
/* H2: a message the page puts beside the price box when Save is pressed ("Please fill out this field.") goes under the
   box as well, so the box keeps its width. */
.bb-c1 .bb-final-pricing .bb-freight-fields>label>.bb-freight-money{flex-wrap:wrap}
.bb-c1 .bb-freight-fields .bb-freight-money>small{flex:0 0 100%}

/* C3.I Correction I (picture 08-price-box-empty-two-decimals), I3: the Price box of a band row shows the grey words
   "Enter the actual rate" in full while it is empty: as wide as those words need, and no wider. */
.bb-c1 .bb-final-pricing .bbx-band-table input[data-band-amount]{display:block;width:160px;max-width:100%}
/* C3 end of the blocks of builder FRT (corrections B, H and I). */

/* ==== C3 rows (owner, 2026-11-14, "every row of boxes measured": reference/DECISIONS.md, last section; the measurement
   is in reports/visual-checks/corrections-3/rows): START ====
   Layout only, for rows that stage 1 changed and that failed the measurement. No wording, check, message or amount is
   changed, and each rule applies only in the state that failed. */

/* K, Payments page, the cooldown bar when "Other..." is refused ("Enter a number of days from 1 to 365."): the message
   stood inside the bar's centred line, so the list and the days box rose 11 px above the "Save cooldown" button.
   641 px and wider (the bar is one line): the message hangs under the boxes and the bar gets its room at the bottom
   (12 px as always, and 22 px for the message), so the list, the box, "days", the button and the words of the bar
   stay exactly where they are without a message.
   640 px and narrower (the bar wraps): as much room is kept above the boxes as the message takes under them, so they
   stay in the middle of their line, as they are without a message. */
@media (min-width:641px){
.bb-savebar:has(>span>[data-days-choice]~.bb-error){padding-bottom:34px}
.bb-savebar>span:has(>[data-days-choice]~.bb-error){position:relative}
.bb-savebar>span:has(>[data-days-choice]~.bb-error)>.bb-error{position:absolute;left:0;top:100%;white-space:nowrap}
}
@media (max-width:640px){
.bb-savebar>span:has(>[data-days-choice]~.bb-error){display:grid;grid-template-rows:1fr auto 1fr}
.bb-savebar>span:has(>[data-days-choice]~.bb-error)>[data-days-choice]{grid-row:2}
.bb-savebar>span:has(>[data-days-choice]~.bb-error)>.bb-error{grid-row:3}
}

/* B (B4), New Delivery, the package rows of a Weight band group, 641 px and wider: the Charge words
   ("CAD 35.00 · up to 25 kg") take two lines where their column is narrow (820 px). That made the row 6.5 px higher
   than with the dash that shows while a new weight is worked out, so typing a weight moved the Weight and Size boxes
   up 3.25 px and back. The Charge cell now never asks for more height than the boxes have: the row keeps one height
   and the boxes stay where they are; the second line of words uses the space the row already has under the cell. */
@media (min-width:641px){
.bb-c1 [data-bbx-method=weight_band] [data-freight-package]>[data-c1-charge]{max-height:34px}
}
/* B, New Delivery, the package rows of a Weight band group, 641 px and wider, with a red message under the Weight box
   ("Enter a weight for Package 5."): the cells of the row were centred on its height, so the message made the row
   higher and the Size box, "Remove", the package's name and its Charge slid down to the middle of it. In a Weight
   band group the cells now hang from the top of the row and keep the places they have without a message:
   - the Weight and Size boxes start at the top (without a message they are as high as the row, so nothing moves);
   - the package's name, 34 px high like the boxes, has its words on the middle of that line;
   - "Remove" (28 px) sits 3 px lower than the boxes, centred on their line;
   - the Charge words are centred on the middle of the boxes' line (17 px under their top), whether they take one line
     or two.
   The message now only makes the row longer below. By weight, Per package and Flat rate groups are not changed (the
   same fault was there before stage 1 and is left for the owner).
   14 Nov, the owner's order "fix all 287 failed rows" (block "C3 rows 2" below): these rules now apply only while a red
   message is in the row, and the package's name is held on the boxes' line the way the Charge words are (not by a
   34 px line). A row without a message is so drawn exactly as before the correction at every width, also where the
   name takes two lines ("Package" / "2", about 700 px wide), where the 34 px lines had made the row 27 px higher. */
@media (min-width:641px){
.bb-c1 [data-bbx-method=weight_band] [data-freight-package]:has(.reviewed-field-error,.bb-pricing-field-error,.field-error)>label{align-self:start}
.bb-c1 [data-bbx-method=weight_band] [data-freight-package]:has(.reviewed-field-error,.bb-pricing-field-error,.field-error)>.bb-button{align-self:start;margin-top:14px;margin-bottom:14px}
.bb-c1 [data-bbx-method=weight_band] [data-freight-package]:has(.reviewed-field-error,.bb-pricing-field-error,.field-error)>[data-freight-package-number],.bb-c1 [data-bbx-method=weight_band] [data-freight-package]:has(.reviewed-field-error,.bb-pricing-field-error,.field-error)>[data-c1-charge]{align-self:start;margin-top:28px;margin-bottom:-28px;transform:translateY(-50%)}
}
/* ==== C3 rows: END ==== */

/* ==== C3 rows 2 (owner's order of 14 Nov 2026: "fix all 287 failed rows"): START ====
   Layout only, New Delivery: the rows of boxes that still failed the row check. Nothing moves sideways, nothing
   changes order, no wording, check or amount is touched; a row without a red message is drawn exactly as before.
   (The older editors have their own block "C3 rows 2" in bizbox-pricing-final.css.) */
/* 1. The package rows of a By weight group, 641 px and wider, with a red message under the Weight box: the same fault
      and the same correction as the Weight band rows above (block "C3 rows", B). While a message is in the row its
      cells hang from the top of the row and keep the places they have without a message (the boxes at the top, "Remove"
      3 px lower, the package's name and its Charge words centred on the boxes' line); the message only makes the row
      longer below. */
@media (min-width:641px){
.bb-c1 [data-bbx-method=weight] [data-freight-package]:has(.reviewed-field-error,.bb-pricing-field-error,.field-error)>label{align-self:start}
.bb-c1 [data-bbx-method=weight] [data-freight-package]:has(.reviewed-field-error,.bb-pricing-field-error,.field-error)>.bb-button{align-self:start;margin-top:14px;margin-bottom:14px}
.bb-c1 [data-bbx-method=weight] [data-freight-package]:has(.reviewed-field-error,.bb-pricing-field-error,.field-error)>[data-freight-package-number],.bb-c1 [data-bbx-method=weight] [data-freight-package]:has(.reviewed-field-error,.bb-pricing-field-error,.field-error)>[data-c1-charge]{align-self:start;margin-top:28px;margin-bottom:-28px;transform:translateY(-50%)}
}
/* 2. Discounts, the "Discount amount" box with its message: the message was put beside the box, squeezed it and moved
      it 7 px down. The message takes its own line under the box; the box keeps its width and its place. */
.bb-c1 .bb-discount-amount:has(>small){flex-wrap:wrap;row-gap:0}
.bb-c1 .bb-discount-amount:has(>small)>input{flex:1 1 1px;min-width:0}
.bb-c1 .bb-discount-amount>small{flex:0 0 100%;order:1}
/* 3. Customer, "Phone (including area code)" of a guest or a new registered customer, with its message: the message
      was put beside the phone box and squeezed it to 22 px. It takes its own line under the two boxes, as it already
      does for the phone boxes of the addresses. */
.bb-c1 .business-phone:not(.bbx-phone):has(>small){flex-wrap:wrap}
/* 4. The Assign Worker(s) window, "Add / remove workers", "Search workers | Role / Type", 721 to 980 px wide (where
      the two small boxes stand on one line): the list was 19 px high beside the 21 px search box. The list gets the
      height of the search box. */
@media (min-width:721px) and (max-width:980px){
.bb-c1 .assignment-dialog .member-options .work-fields select[data-member-role]{height:21px}
}
/* ==== C3 rows 2: END ==== */

/* ==== C6.9 Corrections 6, fix 9 (owner, 2026-11-18; picture G-ryan1-kg-lb-per-package): START ====
   A Per package group has no kg / lb box beside "Price per package": bizbox-freight.js no longer marks it bbx-freight-unit,
   so its three boxes stand even on one row. Its package table's heading reads "Weight" with the group's own small kg / lb
   box beside it (the same box, moved there by bizbox-freight.js). By weight, Flat rate and Weight band: as before.
   Phones (640 px and narrower), where the package table has no heading row: only "Weight" and its box show, above the
   packages.
   Corrections 6 follow-up, item 2 (owner, 2026-11-18; picture Q, "Q9 Flat rate"): a Flat rate group the same as Per package. */
.bb-c1 [data-bbx-method=package] .bb-freight-package-columns>[data-freight-weight-heading],.bb-c1 [data-bbx-method=fixed] .bb-freight-package-columns>[data-freight-weight-heading]{display:flex;align-items:center;gap:8px;padding-top:5px;padding-bottom:5px}
.bb-c1 .bb-final-pricing .bb-freight-package-columns>[data-freight-weight-heading]>select[data-freight-unit]{flex:0 0 auto;width:auto;min-width:0;height:26px;padding:0 24px 0 8px;font-size:12.5px;background-position:right 7px center}
@media (max-width: 640px){
.bb-c1 [data-bbx-method=package] .bb-freight-package-columns,.bb-c1 [data-bbx-method=fixed] .bb-freight-package-columns{display:block;margin-top:12px;border:0;background:none}
.bb-c1 [data-bbx-method=package] .bb-freight-package-columns>span:not([data-freight-weight-heading]),.bb-c1 [data-bbx-method=fixed] .bb-freight-package-columns>span:not([data-freight-weight-heading]){display:none}
.bb-c1 [data-bbx-method=package] .bb-freight-package-columns>[data-freight-weight-heading],.bb-c1 [data-bbx-method=fixed] .bb-freight-package-columns>[data-freight-weight-heading]{padding:0 0 8px}
}
/* ==== C6.9: END ==== */

/* ==== C3.P Corrections 3, correction P (owner, 2026-11-14; picture 14-custom-item-unit; reference/DECISIONS.md, last
   section): START ====
   New Delivery, Custom item, the "Unit" block (the list, and the small box of "Other..."): it keeps its left and top and
   is as wide as drawn, 413 of the 536 of the Charge by box (the first of the two columns, 655 : 373, with 16 px
   between them). Only where the boxes stand in those two columns beside a three-column block, 981 px and wider: at
   980 px and narrower the block is already that wide or wider and stays as it is. Its height does not change and it is
   the last thing of the Custom item, so nothing else moves. Between the list and the small box: 16 px, as drawn. */
@media (min-width:981px){
.bb-c1 [data-regular-unit]{max-width:calc((100% - 16px) * 655 / 1028 * 413 / 536)}
}
.bb-c1 [data-unit-choice]{--bb-unit-gap:16px}
/* ==== C3.P: END ==== */
