/* ---------------------------------------------------------------------------
   The Settings hub - Scheduler-SettingsRevamp-Design.md section 3.

   The hub is #SettingWrapperDialog.SettingsHub: the settings dialog grown to the viewport, with
   #SettingsHubNav beside the existing #SettingsDialogContent. Every screen picked in it renders in
   that pane, Multiple windows on or off (design D8).

   Colours from Modern.css's --totm-* tokens with Scheduler.css's literals as fallbacks, so the
   graphite chrome (Dark Mode, Chrome-Neutral.css) needs nothing here: it recolours chrome only,
   and the hub's surfaces are content. The global "button" rule in Scheduler.css paints every
   button solid blue with !important, which is why the button rules below need it too.
   --------------------------------------------------------------------------- */

/* ---- The dialog, full-screen ------------------------------------------------ */

/* !important on the geometry because some screens put a size class on the same dialog
   (.SalesTaskDialogWrapper, .StopWorkChecklistDialogWrapper, .SettingWrapperSmall) with
   !important widths of their own; in the hub every screen gets the whole pane.
   The height stops --totm-statusbar-h short of the bottom: #NotificationBar sits above this dialog
   ("Page layers", Scheduler.css), and a full 100vh put Save / Close under any message it showed. */
#SettingWrapperDialog.SettingsHub {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - var(--totm-statusbar-h, 30px)) !important;
    max-height: calc(100vh - var(--totm-statusbar-h, 30px)) !important;
    box-sizing: border-box;
    border: 0;
    display: grid;
    /* The area list: 264px, 20% wider than the 220px it started at (the user, 2026-11-08). */
    grid-template-columns: 264px minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
}

    #SettingWrapperDialog.SettingsHub > #SettingsHubNav {
        grid-column: 1;
        grid-row: 1 / -1;
    }

    #SettingWrapperDialog.SettingsHub > .SectionHeading {
        grid-column: 2;
        grid-row: 1;
    }

    /* border-box: the strip carries 10px of padding a side (CustomerHistory.css); with the default
       content-box and a width set on it, it ran 20px wider than the title bar above it. */
    #SettingWrapperDialog.SettingsHub > #SettingsDialogBreadcrumb {
        grid-column: 2;
        grid-row: 2;
        box-sizing: border-box;
    }

    #SettingWrapperDialog.SettingsHub > #SettingsDialogContent {
        grid-column: 2;
        grid-row: 3;
        height: auto;
        max-height: none;
        min-height: 0 !important;
        margin: 0;
        padding: 12px 18px 12px 20px;
        box-sizing: border-box;
    }

    #SettingWrapperDialog.SettingsHub > #SettingsDialogFooter {
        grid-column: 2;
        grid-row: 4;
        justify-self: end;
        align-self: end;
    }

/* No width cap on a wide monitor: the title bar, the trail and the content fill everything right of
   the nav, starting in its top left corner (the user, 2026-11-08 - the 1320px centred cap of
   design 3.6 left the title bar floating in the middle). */

/* ---- The nav column ------------------------------------------------------------ */

#SettingsHubNav {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    background-color: #F6F7F9;
    border-right: 1px solid var(--totm-border, #E3E5E9);
    font-family: var(--totm-font, sans-serif);
    color: var(--totm-text, #1A1A1A);
}

#SettingsHubNav .SettingsHubBack {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 12px 14px 8px !important;
    background-color: transparent !important;
    color: var(--totm-brand, #1976D2) !important;
    font-family: inherit;
    font-size: var(--totm-fs-sm, 13px);
    text-align: left;
    cursor: pointer;
}

    #SettingsHubNav .SettingsHubBack:hover {
        text-decoration: underline;
    }

.SettingsHubSearch {
    position: relative;
    margin: 2px 10px 8px;
}

#SettingsHubSearchInput {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px 6px 28px;
    border: 1px solid var(--totm-border-strong, #C9CCD1);
    border-radius: 5px;
    background-color: #fff;
    font-family: inherit;
    font-size: var(--totm-fs-sm, 13px);
    color: var(--totm-text, #1A1A1A);
}

    #SettingsHubSearchInput:focus {
        outline: 2px solid var(--totm-brand, #1976D2);
        outline-offset: 0;
        border-color: var(--totm-brand, #1976D2);
    }

.SettingsHubSearchIcon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--totm-text-muted, #5F6368);
    font-size: 12px;
    pointer-events: none;
}

.SettingsHubGroup {
    padding: 12px 14px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--totm-text-muted, #5F6368);
}

#SettingsHubNav .SettingsHubAreaButton {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    margin: 0;
    /* Taller rows (the user, 2026-11-08): 10px top and bottom, from 6px. */
    padding: 10px 16px 10px 13px !important;
    border-left: 3px solid transparent;
    background-color: transparent !important;
    color: var(--totm-text, #1A1A1A) !important;
    font-family: inherit;
    font-size: var(--totm-fs-sm, 13px);
    font-weight: 500 !important;
    text-align: left;
    cursor: pointer;
}

    #SettingsHubNav .SettingsHubAreaButton:hover {
        background-color: #fff !important;
    }

    #SettingsHubNav .SettingsHubAreaButton.Current {
        background-color: #fff !important;
        border-left-color: var(--totm-brand, #1976D2);
        color: var(--totm-brand-ink, #0C447C) !important;
        font-weight: 600 !important;
    }

.SettingsHubAreaCount {
    color: var(--totm-text-muted, #5F6368);
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ---- Search results --------------------------------------------------------------
   Outside the nav (a sibling, absolutely placed) so they can be wider than its 264px column:
   a setting's row says its area and category as well as its name. */

#SettingsHubResults {
    position: absolute;
    left: 10px;
    top: 84px;
    z-index: 5;
    width: 480px;
    max-width: calc(100vw - 40px);
    max-height: calc(100% - 110px);
    overflow-y: auto;
    padding: 4px 0;
    background-color: #fff;
    border: 1px solid var(--totm-border-strong, #C9CCD1);
    border-radius: 6px;
    box-shadow: var(--totm-shadow-dialog, 0 12px 32px rgba(15, 23, 42, 0.22));
    font-family: var(--totm-font, sans-serif);
    color: var(--totm-text, #1A1A1A);
}

.SettingsHubResultGroup {
    padding: 8px 12px 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--totm-text-muted, #5F6368);
}

.SettingsHubResult {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: var(--totm-fs-sm, 13px);
}

    .SettingsHubResult:hover,
    .SettingsHubResult.Active {
        background-color: var(--totm-brand-tint, #E8F1FB);
    }

.SettingsHubResultText {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.SettingsHubResultSub {
    color: var(--totm-text-muted, #5F6368);
    font-size: 11px;
}

.SettingsHubMatch {
    background-color: #FFE58F;
    color: inherit;
    padding: 0;
    border-radius: 2px;
}

.SettingsHubNoResults {
    padding: 10px 12px;
    color: var(--totm-text-muted, #5F6368);
    font-size: var(--totm-fs-sm, 13px);
}

/* ---- An area page ----------------------------------------------------------------- */

.SettingsHubAreaPage {
    font-family: var(--totm-font, sans-serif);
    color: var(--totm-text, #1A1A1A);
}

/* Flat fields. The setting controls (Util.ModuleSettingControl) carry no border of their own: in
   the popup Scheduler.css's `.ModalDialog input` takes the browser's 2px inset border away, and
   anywhere outside a .ModalDialog they came out sunken (3D). Set here so the page looks the same
   in whatever host draws it. Never an inset/outset/groove/ridge border or an inset shadow. */
.SettingsHubAreaPage :is(input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=file]):not([type=color]), select, textarea) {
    border: 1px solid var(--totm-border-strong, #C9CCD1);
    box-shadow: none;
    padding: 4px 6px;
}

    .SettingsHubAreaPage :is(input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=file]):not([type=color]), select, textarea):focus {
        border-color: var(--totm-brand, #1976D2);
        outline: none;
    }

/* Tick boxes start where the text fields and drop-downs in the same column start: the browser's
   default 4px left margin on a checkbox otherwise sets them 4px further in. */
.SettingsHubAreaPage .SettingsHubBlockTable td > input[type=checkbox] {
    margin-left: 0;
}

.SettingsHubTitle {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 14px;
}

    .SettingsHubTitle h2 {
        margin: 0;
        font-size: 20px;
    }

.SettingsHubTitleCount {
    color: var(--totm-text-muted, #5F6368);
    font-size: var(--totm-fs-sm, 13px);
}

.SettingsHubIntro {
    max-width: 75ch;
    margin: 4px 0 14px;
    color: var(--totm-text-muted, #5F6368);
    font-size: var(--totm-fs-sm, 13px);
}

.SettingsHubCards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.SettingsHubAreaPage .SettingsHubCard {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0;
    padding: 12px 14px !important;
    border: 1px solid var(--totm-border, #E3E5E9) !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: var(--totm-text, #1A1A1A) !important;
    font-family: inherit;
    font-weight: 400 !important;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--totm-shadow-card, 0 1px 3px rgba(15, 23, 42, 0.12));
}

    .SettingsHubAreaPage .SettingsHubCard:hover {
        border-color: var(--totm-brand, #1976D2) !important;
        box-shadow: var(--totm-shadow-hover, 0 3px 10px rgba(15, 23, 42, 0.2));
    }

    .SettingsHubAreaPage .SettingsHubContextCard {
        grid-column: span 2;
        border-color: var(--totm-brand, #1976D2) !important;
    }

.SettingsHubCardText {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.SettingsHubCardTitle {
    font-weight: 600;
    font-size: 14px;
}

.SettingsHubCardTag {
    color: var(--totm-brand, #1976D2);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.SettingsHubCardDescription {
    color: var(--totm-text-muted, #5F6368);
    font-size: 12.5px;
}

.SettingsHubAreaPage .SettingsHubLaterCard {
    cursor: default;
    border-style: dashed !important;
    box-shadow: none;
    background-color: transparent !important;
    flex-direction: column;
    gap: 3px;
}

    .SettingsHubAreaPage .SettingsHubLaterCard:hover {
        border-color: var(--totm-border-strong, #C9CCD1) !important;
        box-shadow: none;
    }

/* The context card's miniature: a rail and a preview, in the workbench's brand / tint pair. */
.SettingsHubMiniature {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 38px 70px;
    gap: 4px;
    width: 112px;
    height: 70px;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 5px;
    background-color: var(--totm-brand-tint, #E8F1FB);
}

.SettingsHubMiniRail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .SettingsHubMiniRail span {
        display: block;
        height: 6px;
        border-radius: 2px;
        background-color: var(--totm-brand, #1976D2);
        opacity: 0.45;
    }

.SettingsHubMiniPreview {
    border-radius: 3px;
    background-color: #fff;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .SettingsHubMiniPreview span {
        display: block;
        height: 6px;
        border-radius: 2px;
        background-color: var(--totm-border-strong, #C9CCD1);
    }

.SettingsHubSectionTitle {
    margin: 22px 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--totm-text-muted, #5F6368);
}

.SettingsHubBlock {
    margin-bottom: 14px;
}

    .SettingsHubBlock .SettingsHubBlockTable {
        width: 100%;
    }

    .SettingsHubBlock.SettingsHubBlockMatch {
        outline: 2px solid var(--totm-brand, #1976D2);
        outline-offset: 4px;
        border-radius: 4px;
    }

.SettingsHubAreaPage .SettingsHubMore {
    margin: 4px 0 0;
    padding: 2px 4px !important;
    background-color: transparent !important;
    color: var(--totm-brand, #1976D2) !important;
    font-weight: 600 !important;
    cursor: pointer;
}

    .SettingsHubAreaPage .SettingsHubMore:hover {
        text-decoration: underline;
    }

.SettingsHubAreaPage tr.SettingsHubRowMatch > td {
    background-color: #FFF6D6;
}

.SettingsHubEmpty {
    color: var(--totm-text-muted, #5F6368);
}

/* ---- The menu's Settings & setup row and the header button ------------------------- */

#HamburgerContent .HamburgerHubRow {
    display: flex;
    align-items: flex-start;
    padding: 12px 10px 12px 17px !important;
    border-bottom: solid 1px rgba(255, 255, 255, 0.35);
}

    #HamburgerContent .HamburgerHubRow .HamburgerButtonIcon {
        margin-top: 2px;
        font-size: 15px;
    }

.HamburgerHubRowText {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .HamburgerHubRowText .HamburgerLabel {
        font-size: 15px;
    }

.HamburgerHubRowTitle {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* "New", so people notice the row while the hub sits beside the menu (design D11). White on the
   menu's blue, like the row text, in a chip rather than a colour of its own. */
.HamburgerNewBadge {
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 14px;
}

.HamburgerHubRowSummary {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

/* Beside the header "?", and sized the same way: no height of its own (see #HelpButton in
   Scheduler.css for why a height here drags Logout and the hamburger down with it). */
#SettingsHubSearchButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    margin-right: 5px;
    padding: 0 !important;
    font-size: var(--totm-fs-lg, 16px);
}


/* ---------------------------------------------------------------------------
   The goods status question on the Purchase Orders page - one row standing for
   PurchaseOrderGoodsStatusEnabled and PurchaseOrderGoodsStatusOptions
   (View.PurchaseOrderGoodsStatusSetting, PurchaseOrder-GoodsStatus-Design.md).
   Buttons are restyled with !important because the Scheduler's global button
   rule is.
   --------------------------------------------------------------------------- */

/* The switch row uses the same three cells, and so the same padding, as every other setting row
   on the page - which is what lines its name, description and tick box up with theirs. */
.GoodsStatusTitle {
    cursor: pointer;
    color: var(--totm-text, #1A1A1A);
}

.GoodsStatusSubtitle {
    color: inherit;
}

/* The choices editor sits under the switch, across all three columns, starting where the name
   column's text starts. It belongs to the row above: no line between them, and no hover tint. */
.GoodsStatusSettingRow.GoodsStatusOpen > td {
    border-bottom: 0 !important;
}

.GoodsStatusPanelRow > td {
    padding: 0 10px 14px !important;
}

#SettingsDialogContent table tr.GoodsStatusPanelRow:hover {
    background-color: transparent;
}

.GoodsStatusSetting {
    position: relative;
}

.GoodsStatusSaved {
    margin-left: 8px;
    color: var(--totm-text-muted, #5F6368);
    font-size: var(--totm-fs-xs, 12px);
    opacity: 0;
    transition: opacity var(--totm-motion, 0.15s ease);
}

.GoodsStatusSaved.GoodsStatusShown,
.GoodsStatusMessage.GoodsStatusShown {
    opacity: 1;
}

.GoodsStatusPanel {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 20px;
    /* Flush with the name column's text, now the tick box is in the control column on the right. */
    margin: 4px 0 0;
}

.GoodsStatusCaption {
    margin: 0 0 6px;
    color: var(--totm-text-muted, #5F6368);
    font-size: var(--totm-fs-xs, 12px);
    font-weight: 600;
}

.GoodsStatusLine {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.GoodsStatusLine .GoodsStatusInput {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--totm-border-strong, #C9CCD1);
    border-radius: 4px;
    font: inherit;
}

.GoodsStatusSetting button.GoodsStatusIconButton {
    width: 30px;
    height: 30px;
    padding: 0 !important;
    border: 1px solid var(--totm-border, #E3E5E9) !important;
    border-radius: 4px;
    background-color: transparent !important;
    color: var(--totm-text-muted, #5F6368) !important;
    cursor: pointer;
}

.GoodsStatusSetting button.GoodsStatusIconButton:hover:not(:disabled) {
    border-color: var(--totm-border-strong, #C9CCD1) !important;
    color: var(--totm-text, #1A1A1A) !important;
}

.GoodsStatusSetting button:disabled {
    opacity: 0.4;
    cursor: default;
}

.GoodsStatusActions {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.GoodsStatusSetting button.GoodsStatusLinkButton {
    padding: 2px 0 !important;
    border: 0 !important;
    background-color: transparent !important;
    color: var(--totm-brand, #1976D2) !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.GoodsStatusSetting button.GoodsStatusLinkButton:hover:not(:disabled) {
    text-decoration: underline;
}

.GoodsStatusMessage {
    min-height: 18px;
    margin-top: 6px;
    color: #a12;
    font-size: var(--totm-fs-sm, 13px);
}

.GoodsStatusMessage:empty {
    min-height: 0;
}

.GoodsStatusPhone,
.GoodsStatusNote {
    padding: 10px;
    border: 1px solid var(--totm-border, #E3E5E9);
    border-radius: 8px;
    background-color: #fff;
}

.GoodsStatusPhone {
    margin-bottom: 12px;
}

.GoodsStatusPhoneLegend {
    margin-bottom: 4px;
    font-size: var(--totm-fs-sm, 13px);
}

.GoodsStatusSetting button.GoodsStatusPhoneOption {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding: 6px 8px !important;
    border: 1px solid var(--totm-border, #E3E5E9) !important;
    border-radius: 4px;
    background-color: #f6f6f6 !important;
    color: var(--totm-text, #1A1A1A) !important;
    font-weight: 600 !important;
    font-size: var(--totm-fs-sm, 13px);
    text-align: left;
    cursor: pointer;
}

.GoodsStatusSetting button.GoodsStatusPhoneOption.GoodsStatusPicked {
    background-color: var(--totm-brand-tint, #E8F1FB) !important;
}

.GoodsStatusRadio {
    flex: none;
    width: 12px;
    height: 12px;
    border: 1px solid var(--totm-border-strong, #C9CCD1);
    border-radius: 50%;
    background-color: #fff;
}

.GoodsStatusPicked .GoodsStatusRadio {
    border: 4px solid var(--totm-brand, #1976D2);
}

.GoodsStatusNote {
    font-family: Consolas, "Courier New", monospace;
    font-size: var(--totm-fs-xs, 12px);
    overflow-wrap: anywhere;
}

.GoodsStatusMessage.GoodsStatusOk {
    color: var(--totm-text-muted, #5F6368);
}

/* A link to a screen this company does not have (View.SettingsHub.noticeState) says why. Amber,
   with the same --totm-warn names .CpoAlreadyOrdered uses: no such token exists yet, so the
   literals ride as fallbacks until one is defined. */
.SettingsHubNotice {
    max-width: 75ch;
    margin: 0 0 14px;
    padding: 8px 12px;
    border: 1px solid var(--totm-warn-border, #F0C48A);
    border-left: 3px solid var(--totm-warn, #B26A00);
    border-radius: 4px;
    background: var(--totm-warn-tint, #FFF4E5);
    color: var(--totm-text, #1A1A1A);
    font-size: var(--totm-fs-sm, 13px);
}

/* A card's live figure ("35 in use") - the area map's optional `count`. */
.SettingsHubCardCount {
    display: block;
    margin-top: 4px;
    color: var(--totm-brand-ink, #0D47A1);
    font-size: var(--totm-fs-xs, 12px);
    font-weight: 600;
}

.SettingsHubCardCount:empty {
    display: none;
}

/* ---- Health & safety lists (View.PickList, View.HnSCustomLists, Util.ListImport) -------------
   ReportDesigner-JSA-MaintainedLists-Design.md section 8. */
.PickListScreen .PickListIntro,
.PickListScreen .PickListNote {
    max-width: 75ch;
    color: var(--totm-text-muted, #5F6368);
}

.PickListScreen .PickListNote {
    margin-top: 12px;
    font-size: var(--totm-fs-sm, 13px);
}

.PickListScreen .PickListBack {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--totm-brand, #1976D2);
    text-decoration: none;
}

.PickListToolbar {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 10px;
}

.PickListToolbar .PickListShowRetired {
    margin-left: auto;
    color: var(--totm-text-muted, #5F6368);
}

.PickListTable input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.PickListTable .PickListOrderCell {
    white-space: nowrap;
}

/* Drag-to-reorder drop line - matches Job Statuses and Reorder Users (Scheduler.css). */
.PickListTable .ReorderListPlaceholder td {
    border: 1px dashed #9cc3e5;
    border-radius: 3px;
    background: #eef4fb;
    height: 36px;
}

.PickListTable .PickListRetiredRow td {
    opacity: 0.55;
}

.PickListTable .PickListColourCell {
    white-space: nowrap;
}

.PickListTable input[type="color"] {
    width: 36px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--totm-border, #E3E5E9);
    vertical-align: middle;
}

/* No colour chosen: the picker still holds a value, so show it crossed out. */
.PickListTable input[type="color"].PickListNoColour {
    opacity: 0.35;
}

.PickListTable .PickListClearColour {
    margin-left: 4px;
    padding: 2px 6px;
}

.PickListScreen .PickListEmpty {
    color: var(--totm-text-muted, #5F6368);
    font-style: italic;
}

.ListImportPanel {
    max-width: 900px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--totm-border, #E3E5E9);
    border-left: 3px solid var(--totm-brand, #1976D2);
    border-radius: 6px;
    background: var(--totm-brand-tint, #F3F8FE);
}

.ListImportPanel .ListImportTitle {
    margin: 0 0 4px;
    font-size: var(--totm-fs-lg, 16px);
}

.ListImportPanel .ListImportHelp,
.ListImportPanel .ListImportSummary {
    margin: 4px 0 8px;
    color: var(--totm-text-muted, #5F6368);
}

.ListImportPanel .ListImportSummary {
    color: var(--totm-text, #1A1A1A);
    font-weight: 600;
}

.ListImportPanel .ListImportText {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    border: 1px solid var(--totm-border-strong, #C4C7CC);
    border-radius: 4px;
    padding: 6px 8px;
}

.ListImportPanel .ListImportFileRow,
.ListImportPanel .ListImportRetire {
    display: block;
    margin: 6px 0;
}

.ListImportPanel .ListImportPreview {
    max-height: 260px;
    overflow-y: auto;
}

.ListImportPanel .ListImportRow-there td,
.ListImportPanel .ListImportRow-repeat td {
    color: var(--totm-text-muted, #5F6368);
}

/* H&S forms (View.HnSForms, design section 8.2). */
.HnSFormsScreen .HnSFormsHeading {
    margin: 20px 0 8px;
    font-size: var(--totm-fs-lg, 16px);
}

.HnSFormsScreen .HnSFormRow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.HnSFormsScreen .HnSFormSelect {
    min-width: 280px;
}

.HnSFormsScreen .HnSFormsTable .HnSFormOpen {
    margin-left: 12px;
}

.HnSFormsScreen .HnSFormOpen,
.HnSFormsScreen .HnSAddedNote a {
    color: var(--totm-brand, #1976D2);
    white-space: nowrap;
}

.HnSFormsScreen .HnSStarter {
    max-width: 75ch;
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 1px solid var(--totm-border, #E3E5E9);
    border-left: 3px solid var(--totm-brand, #1976D2);
    border-radius: 6px;
    background: var(--totm-brand-tint, #F3F8FE);
}

.HnSFormsScreen .HnSStarter h3 {
    margin: 0 0 4px;
}

.HnSFormsScreen .HnSAddedNote {
    margin: 10px 0 0;
    font-weight: 600;
}

.ListImportPanel .ListImportRow-new td:last-child {
    color: var(--totm-brand-ink, #0D47A1);
    font-weight: 600;
}

/* A list's column values and the Columns panel (View.PickList, Lists-Design.md section 5.3). */
.PickListTable select.PickListValue {
    width: 100%;
}

.PickListColumnsTable .PickListColumnName {
    width: 100%;
    box-sizing: border-box;
}

/* Customer Item Fields (View.CustomerItemFields, CustomerItem-FieldSelection-Design.md section 7). */
.CifToolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.CifToolbar .CifQuiet {
    margin-right: auto;
}

.CifQuiet {
    color: var(--totm-text-muted, #5F6368);
    font-size: var(--totm-fs-sm, 13px);
}

.CifGroups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
    transition: opacity 0.15s;
}

.CifCard {
    border: 1px solid var(--totm-border, #E3E5E9);
    border-radius: 6px;
    background: var(--totm-surface, #fff);
}

.CifCard h3 {
    margin: 0;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--totm-border, #E3E5E9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.CifBulk {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

/* !important: the Scheduler's own button rule paints every <button> as a filled blue button. */
button.CifLink {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: 0 !important;
    height: auto !important;
    color: var(--totm-brand, #1976D2) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    cursor: pointer;
}

button.CifLink:hover {
    text-decoration: underline;
}

.CifFields {
    list-style: none;
    margin: 0;
    padding: 6px 12px 8px;
}

.CifFields li {
    padding: 3px 0;
}

.CifFields label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    cursor: pointer;
}

.CifFields input:disabled + span {
    color: var(--totm-text-muted, #5F6368);
}

.CifFields small.CifQuiet {
    flex-basis: 100%;
    padding-left: 21px;
    font-size: 11.5px;
}

/* Whether a field can be edited (CustomerItem-FieldEditing-Design.md section 4): one tick on the right
   of each row, under an Editable heading. */
.CifFieldsEditable li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.CifFieldsEditable li > label {
    flex: 1 1 auto;
    min-width: 0;
}

.CifEditApps {
    flex: 0 0 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.CifEditApps .CifReadOnly {
    font-size: 11.5px;
    font-style: italic;
    white-space: nowrap;
}

.CifEditHead {
    padding-bottom: 2px !important;
    border-bottom: 1px dashed var(--totm-border, #E3E5E9);
    margin-bottom: 2px;
}

.CifEditHead > .CifQuiet:first-child {
    flex: 1 1 auto;
}

.CifEditHead .CifQuiet {
    font-size: 11.5px;
}

.CifEditTick:disabled {
    opacity: 0.45;
}

.CifSectionTitle {
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0 2px;
}

.CifNote,
.CifMessage {
    border: 1px solid var(--totm-border, #E3E5E9);
    border-left: 3px solid var(--totm-brand, #1976D2);
    border-radius: 4px;
    padding: 7px 10px;
    margin: 8px 0 10px;
    font-size: var(--totm-fs-sm, 13px);
}

.CifMessage.CifMessageError {
    border-left-color: #C62828;
}
