/* OVERRIDE SUB-TABLE EXPAND & COLLAPSE */

.table-section .table-row td.subtable.open table {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.table-section .table-row td.subtable.open table {
    max-height: 999vh;
}

.table-section .table-row.expanded td.subtable.open {
    display: table !important;
    width: 100%;
    padding: 0;
}

.table-row .foot {
    background: yellow;
}

.loading {
    z-index: 11111;
}

.sales-dashboard .sd-block .data-difference  {
    font-size: 12px;
}

/* Dynamic column widths — flex replaces the hardcoded width: 25% in themev2 */
.sales-dashboard {
    display: flex;
    flex-wrap: wrap;
}

.sd-block {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}

.sd-block.years,
.sd-block.wide {
    flex: 0 0 100%;
    width: 100%;
}

.sd-block.fifty      { flex: 0 0 50%; width: 50%; }
.sd-block.three-column { flex: 0 0 30%; width: 30%; }
.sd-block.five-column  { flex: 0 0 20%; width: 20%; }
.sd-block.six-column   { flex: 0 0 16%; width: 16%; }

.sales-dashboard .sd-block.positive .data-difference, .sales-dashboard .sd-block.positive .trending-arrow:after {
    color: #33991d;
}

.sales-dashboard .sd-block.negative .data-difference, .sales-dashboard .sd-block.negative .trending-arrow:after {
    color: #BB0A1E91;
}

.table-row.has-subtable .subtable-trigger {
    position: relative;
    padding-right: 28px;
}

.table-row.has-subtable > td.subtable-trigger::after,
.child-row.has-subtable > td.subtable-trigger::after {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0;
    height: 25px;
    width: 25px;
    line-height: 25px;
    font-size: 20px;
    content: '+';
    pointer-events: none;
}

.table-row.has-subtable.expanded > td.subtable-trigger::after,
.child-row.has-subtable.expanded > td.subtable-trigger::after {
    content: '-';
}

.table-row.has-subtable > td.subtable thead > tr.table-row.head {
    background-color: #101f8d !important;
}

.child-row.has-subtable > td.subtable thead > tr.table-row.head {
    background-color: #e88b03 !important;
}

.table.scrollable .table-cell.text-long {
    min-width: 360px;
    max-width: 360px;
}

/** Conveyor exits styles */

.conveyor-section-wrapper {
    display: inline-block;
    width: 100%;
    height: 925px;
    overflow: hidden;
}

.exit-wrapper {
    display: inline-block;
    width: 300px;
    height: 100%;
}

.exit-point {
    float: left;
    position: relative;
    margin-top: 10px;
    width: 300px;
    height: 50px;
    background: #ebebeb;
    color: #000;
    font-size: 16px;
    text-align: left;
    padding: 5px 30px 5px 5px;
}

.exit-point.vacant {
    background: #fff;
    border: 2px dotted #000;
}

.exit-wrapper.bottom .exit-point {
    text-align: right;
    padding: 5px 5px 5px 30px;
}

.exit-number {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 30px;
    width: 30px;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    font-weight: bold;
    background: darkblue;
    color: #fff;
}

.exit-point .agent {
    float: left;
    clear: both;
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
}

.exit-point .dims {
    float: left;
    clear: both;
    font-size: 14px;
    line-height: 20px;
}

.exit-wrapper.bottom .exit-point .agent, .exit-wrapper.bottom .exit-point .dims {
    float: right;
}

.bottom-sort .exit-number {
    background: darkred;
}

.exit-wrapper.bottom .exit-point .exit-number {
    right: auto;
    left: 10px;
}

.belt-wrapper {
    display: inline-block;
    width: 35px;
    height: 100%;
    margin: 0 20px;
    background-repeat: repeat;
    background-size: 100% auto;
    background-position: top left;
    background-color: gray;
    background-image: url(../images/track-up.png);
}

.bottom-sort .belt-wrapper {
    background-image: url(../images/track-down.png);
}

.data-wrapper {
    min-height: 100px;
}


/**
Upload centre
 */

.nav-product-uploadcentre-index .col-main {
    min-height: calc(100vh - 100px);
    margin-top: 0;
}
.nav-item.directory_item::before {
    font-family: NetWorldSports;
    content: '\f10b';
    font-size: 10px;
}
.nav-product-uploadcentre-index .tooltip {
    font-size: 10px;
    background: rgb(109, 133, 149);
    border: 2px solid rgb(254, 254, 254);
    border-radius: 1rem;
}
.nav-item.file_item::before {
    font-family: NetWorldSports;
    content: '\f10c';
    font-size: 10px;
}
#create_directory::after {
    font-family: NetWorldSports;
    content: '\f04a';
}
#file_search::after {
    font-family: NetWorldSports;
    content: '\f028';
}
.folder_directory {
    padding-bottom: calc(12rem + 55px);
    width: 300px;
    height: 100%;
    font-size: 10px;
    text-transform: lowercase;
    position: relative;
    background: #6d8595;
    -webkit-transition: padding-bottom 0.3s ease;
    -moz-transition: padding-bottom 0.3s ease;
    -ms-transition: padding-bottom 0.3s ease;
    -o-transition: padding-bottom 0.3s ease;
    transition: padding-bottom 0.3s ease;
}
.nav-product-uploadcentre-index .success-msg > ul > li {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .8rem;
}
.parent_folder, .directory_item.nav-item {
    font-size: 12px;
}
#create_directory {
    position: absolute;
    bottom: 2px;
    left: 2px;
    border-radius: 0 0 0 8px;
    padding-left: 1rem;
    font-size: 12px;
    color: #6d8595;
    height: 3rem;
    width: 296px;
    background: #fefefe;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}
#file_search {
    position: absolute;
    bottom: calc(3rem + 4px);
    left: 2px;
    padding-left: 1rem;
    font-size: 12px;
    color: #6d8595;
    height: 3rem;
    width: 296px;
    background: #fefefe;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}
.nav-product-uploadcentre-index .item-tag-element.empty {
    display: none;
}
.nav-product-uploadcentre-index .section-data {
    font-size: 8px;
    text-align: left;
    min-height: 200px;
    font-family: monospace;
    border-radius: 0.4rem;
}
.nav-product-uploadcentre-index .column-left {
    display: grid;
    min-width: 100%;
    background: #6d8595;
    padding: 5px .10rem 5px 5px;
}
.nav-product-uploadcentre-index input.input.input-text.quicksearch::placeholder {
    font-size: 12px;
}
.nav-product-uploadcentre-index .item-tags-container {
    display: flow;
    grid-template-columns: auto auto auto auto auto;
    justify-items: center;
    gap: 0.5rem;
    justify-content: left;
    border: 1px dashed #cccccc;
    align-items: center;
    background: transparent;
    border-radius: 0.4rem;
    padding: 1.2rem 0.5rem;
    overflow: scroll;
}
.nav-product-uploadcentre-index .item-tag-element {
    display: flex;
    padding: 0.1rem 0.3rem;
    justify-content: center;
    font-size: 10px;
    align-items: center;
    gap: 0.2rem;
    color: #ffffff;
    background: #01253bc7;
    border-radius: 1rem;
}
.nav-product-uploadcentre-index input.input.input-text.quicksearch {
    background: #ffffff;
    border: 1px solid #cacaca;
}
.nav-product-uploadcentre-index .qs-results {
    background: #ffffff;
    font-size: 10px;
    position: absolute;
    text-align: left;
    padding: 0.5rem;
    height: 120px!important;
    bottom: -120px;
    width: 100%;
    left: 0;
    overflow: auto;
    z-index: 1;
    border-radius: 0 0 0.4rem 0.4rem;
}
.col-main .is-dropdown-submenu-parent.is-active {
    font-weight: 600;
}
.parent_folder.is-dropdown-submenu-parent.opens-right.is-active {
    background: #fefefe;
    border-radius: 0;
}
.parent_folder.is-dropdown-submenu-parent.opens-right.is-active > a {
    color: #01253bc7!important;
    font-weight: 600;
}
.contains-file-item .vertical.menu.nested.submenu.is-dropdown-submenu.js-dropdown-active {
    left: -100vw;
    border: none;
    z-index: -999;
    display: none;

}
.dropdown.menu.vertical>li .is-dropdown-submenu.js-dropdown-active {
    opacity: 1;
    transition: opacity 1s ease, visibility 1s ease;
    visibility: visible;
}
.directory {
    /*border-width: 2px;*/
    /*border-style: solid;*/
    /*border-image: linear-gradient( to right, #6d8595 260px, rgba(0, 0, 0, 0) 100% ) 1 1 100%;*/
    /*border-left: 2px #6d8595;*/
    height: 100%;
    background: #fefefe;
    overflow-x: auto;
}
.dropdown.menu.vertical>li .is-dropdown-submenu {
    top: 0;
    min-height: 100%;
    background: transparent;
    min-width: 250px;
    padding: 0 1rem;
    text-align: left;
    /*border-width: 1px;*/
    /*border-style: solid;*/
    /*border-image: linear-gradient( to bottom, rgba(0, 0, 0, 0), #cccccc, rgba(0, 0, 0, 0)) 1 100%;*/
    border-left: 0;
    opacity: 0;
    transition: opacity 1s ease, visibility 1s ease;
    visibility: hidden;
}
#add-to-folder-path {
    display: none;
}
.upload-form input[type="file"], #replace-file-form input[type="file"] {
    position: relative;
    height: 120px;
    color: #000000;
    font-size: 10px;
}
.upload-form input[type="file"]::after, #replace-file-form input[type="file"]::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    right: 0;
    border-radius: 1rem;
    content: '\f0ca';
    border: 1px dashed #cccccc;
    cursor: pointer;
    font-family: NetWorldSports;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #cccccc;
    font-size: 70px;
}
::file-selector-button {
    display: none;
}
.section-data span {
    margin-left: 1rem;
    font-weight: normal;
}
.directory-form-container {
    position: relative;
    min-height: 771px;
    height: 100%;
    width: 500px;
    color: #000000;
    justify-content: center;
    align-items: center;
    display: flex;
    overflow: hidden;
    border: 2px solid #ffffff;
    border-radius: 0 10px 10px 0;
    background: #fefefe;
}
.directory-form-container select, .directory-form-container input {
    font-size: 10px;
    padding-left: 1rem;
}
#edit-file_container {
    display: none;
}
#add-file_container {
    display: none;
}
.is-dropdown-submenu .is-dropdown-submenu-parent.opens-right>a.file_item::after {
    display: none;
}
.is-dropdown-submenu .is-dropdown-submenu-parent.opens-left>a.file_item::after {
    display: none;
}
.upload-form {
    margin-top: .2rem;
}
.upload-form label,
.upload-form input,
.upload-form button {
    display: block;
    margin-bottom: .2rem;
}
.upload-form button:hover {
    background-color: #707070;
}
.nav-item.file_item::after {
    display: none;
}
.nav-product-uploadcentre-index .col-main .folder_directory .is-dropdown-submenu-parent>a::after, .folder_directory .js-dropdown-back>a::before, .folder_directory .dropdown.menu.vertical>li.opens-right>a::after {
    font-family: NetWorldSports;
    border-style: none;
    border-width: 0;
}
.nav-product-uploadcentre-index .col-main .folder_directory .is-dropdown-submenu-parent>a::after {
    content: '\f034';
    font-size: 10px;
}
.nav-product-uploadcentre-index .col-main .folder_directory .js-dropdown-back>a::before {
    content: '\f098';
    font-size: 8px;
}
.nav-product-uploadcentre-index .is-dropdown-submenu .is-dropdown-submenu-parent>a::after {
    right: 0;
}
.nav-product-uploadcentre-index .col-main .menu a {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: #ffffff;
    font-weight: 500;
}
.nav-product-uploadcentre-index .dropdown.menu.vertical>li .is-dropdown-submenu.js-dropdown-active > li:last-child {
    border-bottom: none;
}
.nav-product-uploadcentre-index .dropdown.menu.vertical>li .is-dropdown-submenu.js-dropdown-active > li {
    border-bottom: 0.01rem solid #dddddd;
}
.nav-product-uploadcentre-index .col-main .is-dropdown li {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 38px;
    width: 20%;
}
.nav-product-uploadcentre-index .col-main .folder_directory .is-dropdown-submenu a {
    display: flex;
    gap: .5rem;
    position: relative;
    color: #6d8595;
}
.item-tags-container.edit-file:has(.item-tag-element){
    font-size: 0;
}
.parent_folder > a {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.parent_folder > .nav-item.directory_item::before {
    font-size: 14px;
}
.nav-product-uploadcentre-index .col-main .folder_directory .parent_folder>a::after{
    font-family: NetWorldSports;
    content: '\f034'!important;
    font-size: 8px!important;
    color: #ffffff!important;
}
.nav-product-uploadcentre-index .col-main .folder_directory .parent_folder.is-active>a::after {
    color: #01253bc7!important;
}
.nav-product-uploadcentre-index .col-main .is-dropdown-submenu {
    border: none;
}
.nav-product-uploadcentre-index .col-main .menu.vertical:first-child {
    border-left: none;
    padding: 0;
}
.nav-product-uploadcentre-index .col-main .is-dropdown {
    position: relative;
    overflow: hidden;
    max-width: 100%!important;
    width: 100%;
}
.folder_directory .is-dropdown-submenu.is-active {
    z-index: 1;
    display: block;
    transform: translateX(-75%);
    border-left: 1px solid #cccccc40;
    padding-left: 1rem;
}
.nav-product-uploadcentre-index .invisible {
    visibility: visible;
}
.folder_directory .is-dropdown-submenu.is-closing {
    transform: translateX(100%)!important;
}
.col-main li.js-dropdown-back {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
}
.folder_empty + .submenu::after {
    content: "Folder Empty";
    color: #cccccc;
    text-transform: uppercase;
    font-size: 12px;
    padding-left: 1rem;
}
.upload-forms {
    max-width: 300px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.upload-type label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}
.upload-form label {
    margin-bottom: 5px;
    display: block;
    text-align: left;
    color: #000000;
    font-size: 12px;
}
.upload-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 10px;
    cursor: auto;
}
.upload-form button, .edit-form button   {
    background-color: #ffffff;
    color: #6d8595;
    cursor: pointer;
    font-size: 35px;
    padding: 1rem;
    transition: background-color 0.3s;
    margin: auto;
    border: 1px solid #6d8595;
}
.upload-form button:hover {
    background-color: #0056b3;
}
.col-main .dropdown.menu>li.is-active>a {
    color: #000000;
}
.upload-files , .edit-files {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   DCV1-3019: Upload Centre restyle.

   ADDITIVE ON PURPOSE. Nothing above is deleted or re-scoped, because several
   of those selectors are shared: `.upload-form label/input/button` also style
   nav-whse's addtrack page and nav-product's crossreference pages, so scoping
   them to this page would strip the styling off those. Everything below is an
   override keyed on the body class instead.

   Every rule here is scoped under `.nav-product-uploadcentre-index`. That is
   not housekeeping - `.nav-item` is used by nav-theme's own global navigation
   and footer, so an unscoped rule here restyles the whole of DC.

   Tokens are deliberately PAGE-scoped rather than :root. They are the first
   custom properties in this theme and this is not the ticket that decides a
   theme-wide system.

   Structure, layout and Foundation state behaviour are untouched: no changes
   to the three-pane grid, the flyout transforms, opacity/visibility
   transitions, or any `content:` icon glyph.
   ========================================================================== */

.nav-product-uploadcentre-index {
    --uc-tree-bg: #2d4a5d;
    --uc-tree-bg-soft: #365767;
    --uc-tree-hover: rgba(255, 255, 255, .09);
    --uc-accent: #01253b;
    --uc-accent-soft: #e8eef3;

    --uc-surface: #ffffff;
    --uc-surface-muted: #f7f9fb;

    --uc-border: #e4e9ef;
    --uc-border-strong: #cbd5e1;

    --uc-text: #1f2d3a;
    --uc-text-muted: #64748b;
    --uc-text-on-dark: #ffffff;
    --uc-text-on-dark-muted: rgba(255, 255, 255, .72);

    --uc-radius: 10px;
    --uc-radius-sm: 6px;
    --uc-radius-pill: 999px;

    --uc-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px rgba(16, 24, 40, .07);
    --uc-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);

    --uc-font-sm: 12px;
    --uc-font-md: 13px;

    /* The file action bar is position:absolute, so the wrapper cannot auto-size to it and has
       to reserve the space by hand. Both sides read this one value rather than two hardcoded
       numbers that drift - which is exactly what happened: the bar was restyled from plain
       text links into bordered buttons (62.6px measured) while the reserved space stayed at
       the original 52px, so it overlapped the last of the metadata. */
    --uc-actions-h: 64px;
}

/* --- page furniture ---------------------------------------------------- */

.nav-product-uploadcentre-index .page-header-title {
    padding-top: .5rem;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--uc-text);
    text-transform: none;
}

.nav-product-uploadcentre-index .page-grid-2 {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: calc(100vh - 145px - .5rem);
}

/* the two panes sat on a flat slab of the tree colour; a muted page ground
   lets both panels read as cards instead */
.nav-product-uploadcentre-index .column-left,
.nav-product-uploadcentre-index .column-right {
    background: var(--uc-surface-muted);
}

.nav-product-uploadcentre-index .column-left {
    display: grid;
    min-width: 100%;
    padding: 10px 5px 10px 10px;
}

.nav-product-uploadcentre-index .column-right {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10px 10px 5px;
}

/* --- the directory tree ------------------------------------------------- */

/* Deliberately does NOT set overflow:hidden to clip to the radius. That resolves to
   overflow-y:hidden, and a folder with more rows than the container is tall would then be
   silently truncated with no way to scroll to the rest - the largest folder here is already
   21 rows (~882px) against a ~950px container, so it is close. Master's behaviour
   (overflow-x only, y visible) is kept. The radius still clips this element's own background
   and border, and the tree pane inside carries a matching radius of its own. */
.nav-product-uploadcentre-index .directory {
    background-color: var(--uc-surface);
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius);
    box-shadow: var(--uc-shadow);
    overflow-x: auto;
}

.nav-product-uploadcentre-index .folder_directory {
    background: var(--uc-tree-bg);
    font-size: var(--uc-font-md);
    border-radius: var(--uc-radius) 0 0 var(--uc-radius);
}

/* these two came off the root <ul>'s inline style attribute */
.nav-product-uploadcentre-index .folder_directory > .menu.dropdown {
    text-align: left;
    min-height: 430px;
}

/* Row height for EVERY row in the tree, nested ones included - `.is-dropdown` is the root
   <ul>, so this descendant selector reaches all of them. That is the same scope master had at
   38px; the only change is the height, and taller rows give wrapped file names more room
   rather than less. Uniform on purpose: rows that changed height by depth would make the
   columns look ragged. */
.nav-product-uploadcentre-index .col-main .is-dropdown li {
    height: 42px;
}

/* quieter separators and a real hover state on the root folders */

.nav-product-uploadcentre-index .parent_folder,
.nav-product-uploadcentre-index .directory_item.nav-item {
    font-size: var(--uc-font-md);
}

.nav-product-uploadcentre-index .parent_folder {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transition: background-color .15s ease;
}

.nav-product-uploadcentre-index .parent_folder:hover {
    background: var(--uc-tree-hover);
}

.nav-product-uploadcentre-index .col-main .menu a {
    color: var(--uc-text-on-dark);
    font-weight: 500;
    padding-left: .85rem;
    padding-right: .5rem;
}

/* the open root folder: white card + accent text, with a bar marking the
   branch you are inside */
.nav-product-uploadcentre-index .parent_folder.is-dropdown-submenu-parent.opens-right.is-active {
    background: var(--uc-surface);
    border-radius: 0;
    box-shadow: inset 3px 0 0 0 var(--uc-accent);
}

.nav-product-uploadcentre-index .parent_folder.is-dropdown-submenu-parent.opens-right.is-active > a {
    color: var(--uc-accent) !important;
    font-weight: 600;
}

.nav-product-uploadcentre-index .col-main .folder_directory .parent_folder.is-active > a::after {
    color: var(--uc-accent) !important;
}

/* --- the flyout columns -------------------------------------------------- */

.nav-product-uploadcentre-index .col-main .folder_directory .is-dropdown-submenu a {
    color: var(--uc-text);
    font-size: var(--uc-font-md);
    padding-left: .35rem;
    border-radius: var(--uc-radius-sm);
    transition: background-color .15s ease, color .15s ease;
}

.nav-product-uploadcentre-index .col-main .folder_directory .is-dropdown-submenu a:hover {
    background: var(--uc-accent-soft);
    color: var(--uc-accent);
}

.nav-product-uploadcentre-index .dropdown.menu.vertical > li .is-dropdown-submenu.js-dropdown-active > li {
    border-bottom: 1px solid var(--uc-border);
}

/* The open folder at EVERY level, not just the root.
   Foundation marks the whole open path with .is-active, but the root <li> is
   `.parent_folder` and the nested ones are `.is-dropdown-submenu-item`, so a rule written
   against .parent_folder alone highlighted `forza` and left `football` and `goals` looking
   unselected. Different treatment from the root deliberately: the root sits on the dark tree
   and goes white, these sit on a white column so they take the accent tint instead.
   Specificity here (0,6,2) intentionally beats the hover rule (0,5,1), so an open folder
   keeps its marker while you mouse over its siblings. */
.nav-product-uploadcentre-index .col-main .folder_directory .is-dropdown-submenu li.is-dropdown-submenu-item.is-active > a {
    background-color: var(--uc-accent-soft);
    color: var(--uc-accent);
    font-weight: 600;
    box-shadow: inset 3px 0 0 0 var(--uc-accent);
}

.nav-product-uploadcentre-index .col-main .folder_directory .is-dropdown-submenu li.is-dropdown-submenu-item.is-active > a::after {
    color: var(--uc-accent);
}

/* The selected FILE. Foundation only marks submenu parents, so this class is added by the
   file_item click handler in nav-product's scripts.phtml - the one piece of this restyle that
   needs JS. Same marker as an open folder, deliberately: from the user's point of view it is
   the same idea, "this is the thing you are looking at". Specificity (0,6,1) beats the hover
   rule (0,5,1) so the selection holds while the mouse moves over other rows. */
.nav-product-uploadcentre-index .col-main .folder_directory .is-dropdown-submenu a.file_item.is-selected {
    background-color: var(--uc-accent-soft);
    color: var(--uc-accent);
    font-weight: 600;
    box-shadow: inset 3px 0 0 0 var(--uc-accent);
}

.nav-product-uploadcentre-index .folder_directory .is-dropdown-submenu.is-active {
    border-left: 1px solid var(--uc-border);
}

/* the folder-path heading above each column */
.nav-product-uploadcentre-index .folder_directory h3 {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--uc-text-muted);
    margin: 1rem 0 .25rem;
}

.nav-product-uploadcentre-index .col-main li.js-dropdown-back {
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--uc-text-muted);
}

/* --- search + create directory ------------------------------------------ */

.nav-product-uploadcentre-index #file_search,
.nav-product-uploadcentre-index #create_directory {
    background: var(--uc-surface);
    color: var(--uc-accent);
    font-size: var(--uc-font-sm);
    font-weight: 600;
    border-top: 1px solid var(--uc-border);
    transition: background-color .15s ease;
}

.nav-product-uploadcentre-index #file_search:hover,
.nav-product-uploadcentre-index #create_directory:hover {
    background: var(--uc-accent-soft);
}

.nav-product-uploadcentre-index #create_directory {
    border-radius: 0 0 0 var(--uc-radius);
}

/* --- the right-hand panel ------------------------------------------------ */

.nav-product-uploadcentre-index .directory-form-container {
    background: var(--uc-surface);
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius);
    box-shadow: var(--uc-shadow);
    color: var(--uc-text);
    align-items: flex-start;
}

.nav-product-uploadcentre-index .uc-panel-title {
    margin: 0;
    padding: 1rem 1.25rem;
    background: var(--uc-tree-bg);
    color: var(--uc-text-on-dark);
    font-size: var(--uc-font-sm);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: var(--uc-radius) var(--uc-radius) 0 0;
}

.nav-product-uploadcentre-index .uc-form {
    padding: 1.25rem 1.25rem 0;
    display: grid;
    gap: 1.25rem;
}

.nav-product-uploadcentre-index .upload-form label {
    color: var(--uc-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: .35rem;
}

/* background-COLOR, not the shorthand: the select's dropdown arrow is a background-image
   set on the bare `select` rule, and `background:` wipes it. */
.nav-product-uploadcentre-index .directory-form-container select,
.nav-product-uploadcentre-index .directory-form-container input,
.nav-product-uploadcentre-index .upload-form input {
    font-size: var(--uc-font-sm);
    padding: .6rem .75rem;
    border: 1px solid var(--uc-border-strong);
    border-radius: var(--uc-radius-sm);
    background-color: var(--uc-surface);
    color: var(--uc-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.nav-product-uploadcentre-index .directory-form-container input:focus,
.nav-product-uploadcentre-index .directory-form-container select:focus,
.nav-product-uploadcentre-index .upload-form textarea:focus {
    outline: none;
    border-color: var(--uc-accent);
    box-shadow: 0 0 0 3px rgba(1, 37, 59, .10);
}

.nav-product-uploadcentre-index .uc-textarea {
    margin-top: .5rem;
    padding: .75rem;
    min-height: 80px;
    width: 100%;
    font-size: var(--uc-font-sm);
    border: 1px solid var(--uc-border-strong);
    border-radius: var(--uc-radius-sm);
}

/* the drop zone */
.nav-product-uploadcentre-index .upload-form input[type="file"],
.nav-product-uploadcentre-index #replace-file-form input[type="file"] {
    padding: 0;
    border: 0;
}

.nav-product-uploadcentre-index .upload-form input[type="file"]::after,
.nav-product-uploadcentre-index #replace-file-form input[type="file"]::after {
    border: 1px dashed var(--uc-border-strong);
    border-radius: var(--uc-radius);
    background: var(--uc-surface-muted);
    color: var(--uc-border-strong);
    font-size: 52px;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.nav-product-uploadcentre-index .upload-form input[type="file"]:hover::after,
.nav-product-uploadcentre-index #replace-file-form input[type="file"]:hover::after {
    border-color: var(--uc-accent);
    background: var(--uc-accent-soft);
    color: var(--uc-accent);
}

/* assigned-item chips */
/* max-height before overflow, not after: without a cap the chip list grows the whole form as
   items are assigned, and `overflow: auto` never engages. */
.nav-product-uploadcentre-index .item-tags-container {
    border: 1px dashed var(--uc-border-strong);
    border-radius: var(--uc-radius-sm);
    background-color: var(--uc-surface-muted);
    padding: .85rem .75rem;
    max-height: 9rem;
    overflow-y: auto;
}

.nav-product-uploadcentre-index .item-tag-element {
    background: var(--uc-accent);
    border-radius: var(--uc-radius-pill);
    font-size: 11px;
    padding: .25rem .6rem;
    gap: .4rem;
}

.nav-product-uploadcentre-index .item-tag-close {
    cursor: pointer;
    opacity: .7;
}

.nav-product-uploadcentre-index .item-tag-close:hover {
    opacity: 1;
}

.nav-product-uploadcentre-index .qs-results {
    border: 1px solid var(--uc-border);
    border-radius: 0 0 var(--uc-radius-sm) var(--uc-radius-sm);
    box-shadow: var(--uc-shadow);
    font-size: var(--uc-font-sm);
}

/* submit tick - SHAPE ONLY.
   The green comes from `.submit-report`, which sets it !important across the whole of DC. It is
   the application's action colour rather than dated styling, so it is left alone deliberately;
   recolouring it here would make the Upload Centre the only form in DC with a different submit. */
.nav-product-uploadcentre-index .upload-form button.submit-file {
    border: 0;
    border-radius: var(--uc-radius-sm);
    font-size: 22px;
    padding: .65rem 1.1rem;
    box-shadow: var(--uc-shadow-sm);
    transition: transform .1s ease;
}

.nav-product-uploadcentre-index .upload-form button.submit-file:active {
    transform: translateY(1px);
}

/* These two carry positioning that used to live inline and is load-bearing:
   `.qs-results` (the item autocomplete) is absolutely positioned and resolves
   against `.uc-field`, and the file action bar resolves against the wrapper -
   which also needs the bottom padding so the last field is not hidden behind
   it. Moving them to CSS without these would leave the autocomplete anchored
   to the wrong ancestor. */
.nav-product-uploadcentre-index .uc-field {
    position: relative;
}

.nav-product-uploadcentre-index .uc-file-view-wrapper {
    position: relative;
    padding-bottom: calc(var(--uc-actions-h) + 10px);
}

.nav-product-uploadcentre-index #video_link_wrapper {
    max-width: 480px;
    display: none;
}

/* --- file information --------------------------------------------------- */

.nav-product-uploadcentre-index .section-data {
    font-family: inherit;
    font-size: var(--uc-font-sm);
    border-radius: 0 0 var(--uc-radius) var(--uc-radius);
}

.nav-product-uploadcentre-index .uc-file-view {
    position: relative;
    min-height: 450px;
    padding: 1.25rem 1.25rem 0;
    font-size: var(--uc-font-sm);
}

.nav-product-uploadcentre-index .uc-meta {
    margin: 0 0 1.25rem;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: .45rem 1rem;
    align-items: baseline;
}

.nav-product-uploadcentre-index .uc-meta dt {
    color: var(--uc-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}

.nav-product-uploadcentre-index .uc-meta dd {
    margin: 0;
    color: var(--uc-text);
    word-break: break-word;
}

/* the View / Replace / Archive / Delete bar */
.nav-product-uploadcentre-index .uc-file-actions {
    display: grid;
    min-height: var(--uc-actions-h);
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    background: var(--uc-surface-muted);
    border-top: 1px solid var(--uc-border);
    border-radius: 0 0 var(--uc-radius) var(--uc-radius);
    padding: .75rem 1rem;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
}

.nav-product-uploadcentre-index .uc-file-action {
    justify-self: stretch;
    text-align: center;
    font-size: var(--uc-font-sm);
    font-weight: 600;
    color: var(--uc-accent);
    background-color: var(--uc-surface);
    border: 1px solid var(--uc-border-strong);
    border-radius: var(--uc-radius-sm);
    cursor: pointer;
    padding: .55rem .5rem;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.nav-product-uploadcentre-index a.uc-file-action {
    color: var(--uc-accent);
}

.nav-product-uploadcentre-index .uc-file-action:hover {
    background: var(--uc-accent-soft);
    border-color: var(--uc-accent);
}

.nav-product-uploadcentre-index .uc-file-action--danger {
    color: #b42318;
    border-color: #f2c9c4;
}

.nav-product-uploadcentre-index .uc-file-action--danger:hover {
    background: #fef3f2;
    border-color: #b42318;
    color: #b42318;
}

.nav-product-uploadcentre-index .folder_empty + .submenu::after {
    color: var(--uc-text-muted);
    font-size: 11px;
    letter-spacing: .04em;
}

/* DCV1-2403: global search box in the header. Own class, not .entity-search-form, so the
   per-page search handlers in default.js cannot bind to it.

   Centred with position/transform because .header is not a flex container - the burger,
   the two logo halves, the basket and the price-sheet icon are all absolutely positioned
   or floated around it, so there is no flow to centre within.

   The white background lives on the FORM, not the input. The theme gives .input-text
   `background-color: inherit`, which on the dark navy header rendered the field
   transparent; letting the input inherit white from the form fixes that without having to
   out-specify every .input-text rule. */
.header-search-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    align-items: center;
    width: 620px;
    max-width: 46vw;
    height: 44px;
    margin: 0;
    padding: 0 0 0 16px;
    background-color: #ffffff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.header-search-form #header-search-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #16181b;
    font-size: 15px;
    line-height: 44px;
}
.header-search-form #header-search-field::placeholder {
    color: #7b8b95;
    font-size: 14px;
}
/* the theme puts a bottom border and a transparent background back on :focus */
.header-search-form #header-search-field:focus {
    background-color: transparent;
    border: none;
    box-shadow: none;
    color: #16181b;
    font-size: 15px;
}
.header-search-form .button-search {
    flex: 0 0 auto;
    width: 50px;
    height: 44px;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: #5b6470;
    font-size: 20px;
    line-height: 44px;
    cursor: pointer;
}
.header-search-form .button-search:hover {
    background-color: #f0f0f1;
    color: #16181b;
}
@media (max-width: 1200px) {
    .header-search-form { width: 440px; max-width: 40vw; }
}
@media (max-width: 900px) {
    .header-search-form { width: 260px; }
    .header-search-form #header-search-field { font-size: 13px; }
    .header-search-form #header-search-field::placeholder { font-size: 12px; }
}

/* DCV1-2403: search results. One card per document type in the fan-out. */
.search-results .search-page-form {
    display: flex;
    gap: 6px;
    margin: 0 0 20px;
}
/* explicit white, for the same reason as the header field: the theme gives .input-text
   `background-color: inherit` */
.search-results .search-page-input {
    flex: 1 1 auto;
    max-width: 520px;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    background-color: #ffffff;
    border: 1px solid #cfd8dd;
    border-radius: 4px;
    box-shadow: none;
    color: #01253b;
    font-size: 15px;
}
.search-results .search-page-input:focus {
    background-color: #ffffff;
    border: 1px solid #356582;
    box-shadow: none;
    font-size: 15px;
}
.search-results .search-hint,
.search-results .search-none {
    max-width: 640px;
    margin: 0 0 20px;
    font-size: 13px;
    color: #555555;
}
.search-results .search-none {
    padding: 12px 15px;
    background-color: #fdf6e3;
    border: 1px solid #e0d4a8;
    border-radius: 4px;
}
/* DCV1-2400: the result cards follow the pattern the recent pages use - .fp-tile on
   automation/failedprints and .uns-tile on orders/unshipped - so this page does not look
   like a different application: white, 8px radius, soft shadow, 6px navy left rule. */
.search-section {
    margin: 0 0 14px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    border-left: 6px solid #01253b;
    padding: 14px 20px 16px;
}
.search-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
/* the small uppercase grey label those pages use for column and filter headings */
.search-section-title {
    color: #01253b;
    font-size: 0.82rem;
    font-weight: 700;
}
.search-section-note {
    font-size: 0.7rem;
    color: #6d8595;
    font-style: italic;
    cursor: help;
}
.search-anchor-type,
.search-count {
    padding: 1px 8px;
    background-color: #f4f6f8;
    color: #6d8595;
    border-radius: 10px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.search-section-all {
    margin-left: auto;
    font-size: 0.75rem;
}
.search-section-body {
    font-size: 0.8rem;
}
.search-best-link {
    font-weight: bold;
    font-size: 15px;
}
.search-reanchor,
.search-pending {
    color: #777777;
    font-size: 12px;
    font-style: italic;
}
.search-reanchor { margin-left: 10px; }
/* DCV1-2400: results page is a 70/30 split - documents left, suggested pages right.
   The summary bar sits above it, spanning the full width, because it describes the whole
   search rather than either column. */
.search-results {
    padding: 20px 24px 32px;
}
.search-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.search-main {
    flex: 0 1 70%;
    min-width: 0; /* lets the wide result tables scroll instead of forcing the column wider */
}
.search-aside {
    flex: 0 0 30%;
    position: sticky;
    top: 20px;
}
.search-layout.is-full .search-main { flex: 1 1 100%; }
.search-main > .search-section:last-of-type { margin-bottom: 0; }
@media (max-width: 900px) {
    .search-results { padding: 14px 14px 24px; }
    .search-layout { flex-direction: column; }
    .search-main,
    .search-aside { flex: 1 1 auto; width: 100%; position: static; }
}

/* wide tables scroll within their card rather than stretching the column */
.search-section-body { overflow-x: auto; }

/* DCV1-2400 tidy-up: the "showing N results for X" bar at the top of the results. */
.search-summary {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    padding: 10px 14px;
    background-color: #e8eef2;
    border-left: 4px solid #356582;
    border-radius: 3px;
    font-size: 14px;
    color: #01253b;
}
.search-summary.is-none {
    background-color: #fdf6e3;
    border-left-color: #d9a406;
}
.search-summary-note {
    font-size: 12px;
    color: #55707f;
}

/* the resolved anchor is flagged in place rather than given a section of its own */
.best-match-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background-color: #356582;
    color: #ffffff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
/* the tint sits on the row and the hover overlay on the cell, so hovering the best-match row
   darkens it rather than replacing its colour - same layering failedprints uses for its
   urgency rows */
.search-table tr.is-best-match { background: #eaf2f8; }
.search-table tr.is-best-match > td { font-weight: 700; }

/* providers that only run on request - offers, not results, so they are not sections yet */
.search-deferred {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 10px 12px;
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 12px;
}
.search-deferred-label { font-weight: bold; color: #01253b; }
.search-deferred-btn {
    margin: 0;
    padding: 3px 10px;
    background-color: #ffffff;
    border: 1px solid #356582;
    border-radius: 12px;
    color: #356582;
    font-size: 12px;
    cursor: pointer;
}
.search-deferred-btn:hover { background-color: #356582; color: #ffffff; }
.search-deferred-btn.is-done { border-color: #cccccc; color: #aaaaaa; cursor: default; }
.search-deferred-btn.is-done:hover { background-color: #ffffff; color: #aaaaaa; }
.search-deferred-empty,
.search-deferred-note { color: #888888; font-style: italic; }

/* DCV1-2400: nothing but the spinner shows while the sections are in flight. Sections that
   come back empty are removed rather than un-hidden, so only results ever appear. */
.search-results .is-hidden { display: none !important; }

.search-loading {
    /* a column, so the label sits under the spinner rather than beside it, and centred in
       the page instead of tucked against the left edge - this is the only thing on screen
       until the sections report back, so it may as well be where the eye already is */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 90px 0 100px;
    color: #01253b;
    font-size: 18px;
    text-align: center;
}
.search-spinner {
    display: block;
    width: 64px;
    height: 64px;
    border: 6px solid #cfd8dd;
    border-top-color: #356582;
    border-radius: 50%;
    animation: search-spin 0.8s linear infinite;
}
@keyframes search-spin { to { transform: rotate(360deg); } }
/* respect a reduced-motion preference rather than spinning regardless */
@media (prefers-reduced-motion: reduce) {
    .search-spinner { animation-duration: 2.4s; }
}
.search-deferred.is-searching .search-deferred-note::after {
    content: ' — searching\2026';
    font-style: italic;
}

/* DCV1-2405: section states and the row tables inside each card. */
.search-section.is-empty { opacity: 0.6; }
.search-section.is-collapsed .search-section-body { color: #888888; }
.search-section-load {
    margin: 0;
    padding: 2px 10px;
    background-color: #356582;
    border: none;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    cursor: pointer;
}
.search-section-load:hover { background-color: #01253b; }
.search-none-row { color: #9aabb7; font-size: 0.85rem; font-style: italic; }

/* DCV1-2400: same table treatment as .fp-table (automation/failedprints) and .uns-table
   (orders/unshipped), so a result table reads as part of the same system.

   Two deliberate differences from those two: no cursor: pointer or user-select: none on the
   header, because these columns are not sortable and a pointer would promise otherwise; and
   no position: sticky, because each card holds at most 50 rows rather than a full page. */
.search-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.search-table th {
    padding: 8px 10px;
    background: #f4f6f8;
    color: #6d8595;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 2px solid #e8edf2;
    vertical-align: bottom;
    white-space: nowrap;
}
.search-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f0f3f6;
    color: #01253b;
    vertical-align: middle;
    white-space: nowrap;
    text-align: left;
}
.search-table tbody tr:hover td { background: rgba(1, 37, 59, 0.05); }

/* DCV1-2400: flags render as a pill rather than a 1 or a 0. Green and red rather than the
   theme blue, because the value is a state and not a link. */
.bool-pill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 9px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bool-pill.is-yes { background-color: #e3f4e7; color: #1e7a35; }
.bool-pill.is-no  { background-color: #f1f3f5; color: #77848d; }

/* DCV1-2400: which field put the row here. Orange so it reads as an annotation about the
   result rather than part of it - the blue pills elsewhere are values. */
.matched-pill {
    display: inline-block;
    margin: 1px 3px 1px 0;
    padding: 1px 8px;
    background-color: #fdefdc;
    border: 1px solid #f0c98a;
    border-radius: 9px;
    color: #a8620a;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* One column always takes the leftover width, so a table fills its card rather than leaving a
   gap on the right. The provider names the most descriptive column (.is-stretch, which also
   wraps, as .fp-reason does on failed prints); where it names none, the last column takes it. */
.search-table .is-stretch { width: 100%; white-space: normal; }
.search-table:not(.has-stretch) th:last-child,
.search-table:not(.has-stretch) td:last-child { width: 100%; }
.search-nav-check {
    margin: 20px 0 0;
    padding: 12px;
    background-color: #f7f7f7;
    border: 1px dashed #cfd8dd;
    border-radius: 4px;
}
.search-nav-check-btn {
    margin: 0 10px 0 0;
    padding: 4px 12px;
    font-size: 12px;
}
.search-nav-check-note { color: #777777; font-size: 12px; }
.search-nav-check-result { margin-top: 10px; }

/* the suggested-pages list borrows the same row rhythm and muted label colour as the tables,
   so the aside reads as part of the same card family */
.search-page-list { margin: 0; padding: 0; list-style: none; }
.search-page-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f3f6;
}
.search-page-list li:last-child { border-bottom: none; }
.search-page-list a { font-size: 0.8rem; }
.search-page-section {
    margin-left: auto;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6d8595;
}

/* DCV1-2401: "New" flag on nav links added in the last few months. Deliberately not
   .pill, which is an interactive filter chip - this is a static label, so no cursor or
   hover. Nav links are 14px, so this sits a little under. */
.nav-new-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    /* the logo's chevron yellow, from dc-logo.svg's .st0 fill, with the theme black on top -
       was a green pill with white text. One class, so this covers both the places the pill
       appears: the nav sections and the suggested pages on the search results page. */
    background-color: #fff60d;
    color: #16181b;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    vertical-align: middle;
    letter-spacing: 0.3px;
}
.pill {
    display: inline-block;
    padding: 4px 8px;
    margin: 5px;
    background-color: #f0f0f0;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.pill:hover {
    background-color: #cccccc;
    color: white;
}
.pill-close {
    margin-left: 5px;
    font-size: 14px;
    cursor: pointer;
}
.col-main .is-dropdown-submenu-parent {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    position: revert;
    overflow: hidden;
}
.col-main .is-dropdown-submenu-parent a {
    transition: font-size .3s;
}
#file-upload::after {
    font-family: NetWorldSports;
    content: '\f0ca';
    font-size: 16px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
li.file_item.is-dropdown-submenu-parent.is-submenu-item.is-dropdown-submenu-item a::after {
    display: none;
}
li.file_item.is-dropdown-submenu-parent.is-submenu-item.is-dropdown-submenu-item {
    display: block;
    padding: 0;
}
li.file_item.is-dropdown-submenu-parent.is-submenu-item.is-dropdown-submenu-item a.nav-item.file_item {
    padding: 0;
    display: block;
    height: 100%;
    line-height: inherit;
}
.menu .is-active>a {
    background: transparent;
    color: #000000;
}
.menu .is-active>a.nav-item.file_item {
    background: transparent;
    color: #000000;
    font-weight: 500;
}
.file_search_container {
    position: absolute;
    bottom: calc(3rem + 4px);
    left: 0;
    padding: 0 2px;
    width: 100%;
    display: grid;
}

#file_list > div {
    border-top: 2px solid #6d8595;
    overflow: auto;
    height: 96px;
}

.file_search_container input {
    margin: 0;
    font-size: 12px;
    background: #3e525f;
    color: #fefefe;
    width: 100%;
    height: 3rem;
    width: 100%;
    border: 0;
    padding-left: 1rem;
    cursor: text;
}
.file_search_container input:focus, .file_search_container input:focus-visible{
    background: #3e525f;
    border: 0;
}
#searchContainer {
    height: auto;
    transition: height 0.3s ease;
}

#file_search {
    transition: transform 0.3s ease;
    z-index: 1;
}

#file_search_box {
    display: flex;
}
#file_search_box button {
    font-size: 16px;
    padding: 0 1rem;
    border-left: 1px solid #fefefe;
    background: #3e525f;
    color: #fefefe;
    cursor: pointer;
}

#file_list {
    font-size: 9px;
    background: #fefefe;
    max-height: 6rem;
    transition: height 0.3s ease;
    width: 296px;
}

.dynamic-row-section .actions {
    margin-top: 20px;
    padding: 0 10px;
}

.dynamic-row-section .form-row .actions {
    padding: 0;
}

.dynamic-row-section .actions .button-delete-rows {
    position: relative;
    float: right;
    width: auto;
    height: 35px;
    border-radius: 20px;
    padding: 0 20px;
    background: #bb0a1e;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    margin-right: 20px;
    transition: color 1s ease-out;
    cursor: pointer;
}

.dynamic-row-section .text {
    float: left;
    width: 560px;
    padding: 0 5px;
}
.dynamic-row-section .small-text {
    float: left;
    width: 400px;
    padding: 0 5px;
}
.dynamic-row-section .long-text {
    float: left;
    width: 760px;
    padding: 0 5px;
}
.dynamic-row-section .small-number {
    float: left;
    width: 100px;
    padding: 0 5px;
}

.profit-banner {
    color: #fff;
    font-size: 18px;
    width: 100%;
    padding: 1rem;
    text-align: center;
}
.profit-banner.down {
    background: #bb0a1e;
}
.profit-banner.up {
    background: #33991d;
}
.profit-banner.error {
    background: #910816;
    font-size: 12px;
}
.profit-banner span {
    font-weight: bold;
}

.button-pause-refresh {
    background-color: #6d8595;
    font-size: 13px;
    color: #f8f0e3;
    width: auto;
    display: block;
    height: 30px;
    margin: auto;
    float: right;
    position: relative;
    overflow: hidden;
    transition: background-color 1s ease-out, color 1s ease-out;
}


.subtable thead.table-head.sticky.sticky {
    position: unset;
}

.entity-view-form .entity-view-container div.name, .entity-view-form .entity-view-container div.value {
    font-size: 12px;
    margin-bottom: 0;
    text-transform: uppercase;
    width: 40%;
}

.entity-view-form .entity-view-container div.name {
    font-weight: bold;
}

.entity-form-container .button.multi-search-submit,
.entity-form-container .button.multi-search-submit:hover,
.entity-form-container .button.pricing-sheet-submit,
.entity-form-container .button.pricing-sheet-submit:hover {
    background-color: transparent;
    color: #262626;
    padding: 0;
}

.entity-form-container .button.submit-to-pricingsheet, .entity-form-container .button.submit-to-pricingsheet:hover {
    color: #0a0a0a;
    font-size: 10px;
    height: 40px;
    padding: 0.5rem;
    margin-bottom: 0;
    background: #ada;
}

.entity-form-container .button.remove-from-pricingsheet, .entity-form-container .button.remove-from-pricingsheet:hover {
    color: #fff;
    font-size: 10px;
    height: 40px;
    padding: 0.5rem;
    margin-bottom: 0;
    background: grey;
}

.entity-form-container .button.clear-sheet, .entity-form-container .button.clear-sheet:hover {
    color: #fff;
    font-size: 10px;
    height: 40px;
    padding: 0.5rem;
    margin-bottom: 0;
    background: #910816;
}

.entity-form-container .button.select-all-to-submit, .entity-form-container .button.select-all-to-submit:hover {
    color: #fff;
    font-size: 10px;
    height: 40px;
    padding: 0.5rem;
    margin-bottom: 0;
    background: #137ad5;
}

.entity-form-container .multi-search-form .form-row,
.entity-form-container .pricing-sheet-submit-form .form-row {
    display: flex;
    min-width: 100%;
    padding-right: 0;
    text-align: center;
    justify-content: center;
}

.entity-form-container .multi-search-form .form-field,
.entity-form-container .pricing-sheet-submit-form .form-field {
    max-width: 700px;
    padding-left: 0;
    display: flex;
}

.entity-form-container .multi-search-form .form-field .form-field-name,
.entity-form-container .pricing-sheet-submit-form .form-field .form-field-name {
    position: relative;
    width: 150px;
    color: #0a0a0a;
}

.entity-form-container .multi-search-form .actions,
.entity-form-container .pricing_sheet_select .actions {
    margin: 15px 0;
}

.entity-form-container .multi-search-form,
.entity-form-container .pricing-sheet-submit-form {
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 12px -8px #000;
}

.pricesheet {
    float: right;
    width: 50px;
    height: 45px;
    cursor: pointer;
}

.pricesheet i {
    font-size: 36px;
    padding: 8px;
    color: #dadada;
}

.green {
    color: green;
}

.red {
    color: red;
}

.nav-product-stockupdate-dashboard .table-row.has-subtable > td.subtable-trigger::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -168 1008 1008' style='width: 11px; height: 11px; vertical-align: middle;'%3E%3Cg transform='matrix(1 0 0 -1 0 840)'%3E%3Cpath fill='%23FAA0A0' d='M378 -84h-85v838h85v-838zM463 227v468l334 -234z'/%3E%3C/g%3E%3C/svg%3E");
    right: .75rem;
    top: 0;
    height: 18px;
    width: 18px;
}

.cell-padding-right {
    padding-right: 1.5rem;
}

.page-tool {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 0;
    float: right;
}

.page-tool label {
    font-weight: bold;
}

.page-tool select {
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 140px;
}

/* ============================================================
   BOM Item Creator — Task DCV1-1567
   ============================================================ */

/* Reset font-size: 0 inherited from .off-canvas-wrapper */
.bom-creator-page {
    font-size: 14px;
}

.bom-section {
    width: 100%;
    max-width: 1400px;
    margin-bottom: 24px;
}

.bom-parent-fixed-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.bom-col-parentsku {
    flex: 1;
    min-width: 0;
}

.bom-col-parentdesc {
    flex: 2;
    min-width: 0;
}

.bom-creator-page .form-field-name {
    position: static;
    width: auto;
    text-align: left;
    padding: 0;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 600;
    color: #00000051;
    margin-bottom: 4px;
}

.bom-sku-input-wrap {
    position: relative;
}


.bom-bomrow,
.bom-variable-row,
.bom-combination-row {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding-right: 60px !important;
    position: relative !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}

.bom-col-bomqty,
.bom-col-bomdesc,
.bom-col-sku,
.bom-col-name,
.bom-col-group,
.bom-col-qty,
.bom-col-combparentdesc,
.bom-col-combbomdesc,
.bom-col-combvars {
    padding: 0 8px;
    min-width: 0;
}

.bom-col-bomqty  { flex: 0 0 90px; }
.bom-col-bomdesc { flex: 1; }
.bom-col-sku     { flex: 2; }
.bom-col-name    { flex: 2; }
.bom-col-group   { flex: 1; }
.bom-col-qty     { flex: 0 0 90px; }
.bom-col-combparentdesc { flex: 2; }
.bom-col-combbomdesc    { flex: 2; }
.bom-col-combvars       { flex: 3; }

.bom-bomrow .input-text,
.bom-variable-row .input-text {
    margin-bottom: 0 !important;
}


.bom-section-header-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding-right: 60px;
    box-sizing: border-box;
    border-bottom: 1px dashed #00000020;
    margin-bottom: 4px;
    padding-top: 2px;
    padding-bottom: 6px;
}

.bom-section-header-row .bom-col-label {
    padding: 0 8px;
    font-size: 15px;
    color: #00000051;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.bom-row-actions {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    flex: none;
    width: 35px;
}

.bom-truebom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 1400px;
    padding: 8px;
    margin-bottom: 24px;
}

.bom-truebom-label {
    font-size: 15px;
    font-weight: 600;
    color: #00000051;
    cursor: pointer;
}

.bom-truebom-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.bom-add-row-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 0;
}

.bom-add-btn {
    position: relative;
    width: 35px;
    height: 35px;
    border-radius: 100%;
    padding: 0;
    background: #3d757c;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}

.bom-add-btn:hover { background: #2f5e64; }

.bom-add-btn i {
    font-size: 31px;
    position: absolute;
    top: 1px;
    left: 1px;
}

.bom-remove-btn {
    position: relative;
    width: 35px;
    height: 35px;
    border-radius: 100%;
    padding: 0;
    background: #bb0a1e;
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
}

.bom-remove-btn:hover { background: #950818; }

.bom-remove-all-btn {
    background: #bb0a1e;
    color: #fff;
    border: none;
    padding: 7px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50px;
    transition: background 0.2s;
}

.bom-remove-all-btn:hover { background: #950818; }

.bom-combinations-section {
    width: 100%;
    max-width: 1400px;
    margin-top: 10px;
}

.bom-combinations-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px dashed #00000051;
    padding: 10px 0;
    margin: 20px 0 16px;
}

.bom-combinations-title {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.bom-comb-count {
    font-size: 14px;
    font-weight: normal;
    color: #00000051;
}

.bom-generate-btn {
    margin-left: auto;
    display: inline-block;
    height: 40px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    background: rgb(3, 63, 99);
    color: #fff !important;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    line-height: 40px;
    transition: background 0.2s;
    white-space: nowrap;
    width: auto !important;
}

.bom-generate-btn:disabled {
    opacity: 0.35;
    cursor: default;
    background: rgb(3, 63, 99) !important;
}

.bom-generate-btn:not(:disabled):hover {
    background: rgb(2, 50, 79) !important;
    color: #fff !important;
}

.bom-combination-parent {
    font-weight: 600;
    color: rgb(3, 63, 99);
}

.bom-combination-sep { color: #00000030; margin: 0 4px; }
.bom-combination-vars { color: #262626; }

.bom-stale-warning {
    font-size: 13px;
    color: #7a6000;
    background: #fffbe6;
    border-left: 3px solid #e6cc00;
    padding: 8px 14px;
    margin-bottom: 12px;
}

.bom-empty-hint {
    font-size: 14px;
    color: #00000030;
    padding: 16px 8px;
    font-style: italic;
}

.bom-validation-msg {
    font-size: 11px;
    color: #bb0a1e;
    margin-top: 2px;
}

.bom-confirm-footer {
    display: block;
    width: 100%;
    text-align: center;
    padding: 30px 0 20px;
}

.bom-confirm-btn {
    display: inline-block;
    height: 40px;
    padding: 0 40px;
    font-size: 15px;
    font-weight: 600;
    background: rgb(3, 63, 99);
    color: #fff !important;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    line-height: 40px;
    transition: background 0.2s;
    white-space: nowrap;
}

.bom-confirm-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.bom-confirm-btn:not(:disabled):hover {
    background: rgb(2, 50, 79);
}

.bom-loading-msg {
    font-size: 13px;
    color: #00000051;
    margin-top: 8px;
}


/* ── Warehouse Monitoring Dashboard (DCV1-1712) ───────────────────────────── */

body.nws-monitoring { overflow: hidden; }

#whse-monitoring-dashboard {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    overflow: hidden;
    background: #e8edf2;
    padding: 12px;
    box-sizing: border-box;
    gap: 10px;
    font-family: inherit;
    margin-top: -0.5rem;
}

.monitoring-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 0 4px;
}
.monitoring-header h1 {
    color: #01253b;
    font-size: clamp(0.9rem, 1.2vw, 1.3rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
#monitoring-last-updated {
    color: #6d8595;
    font-size: clamp(0.7rem, 0.85vw, 0.9rem);
}

/* DCV1-1782: World warehouse times */
.monitoring-world-clocks {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.world-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}
.wc-label {
    font-size: clamp(0.55rem, 0.65vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6d8595;
    white-space: nowrap;
}
.wc-time {
    font-size: clamp(0.75rem, 0.95vw, 1rem);
    font-weight: 700;
    color: #01253b;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.wc-tz {
    font-size: clamp(0.5rem, 0.6vw, 0.65rem);
    color: #9aabb7;
    letter-spacing: 0.04em;
}

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.monitoring-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    transition: background 0.3s ease, border-color 0.3s ease;
    min-height: 0;
}

.monitoring-tile.tile-ok      { background: #fff;    border-left: 6px solid #27ae60; }
.monitoring-tile.tile-alert   { background: #fff3f3; border-left: 6px solid #c0392b; }
.monitoring-tile.tile-no-data { background: #f4f6f8; border-left: 6px solid #c8d3db; }
.monitoring-tile.tile-stale   { opacity: 0.55; }

/* Inner content wrapper — owns the padding */
.tile-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: clamp(10px, 1.4vh, 18px) clamp(12px, 1.4vw, 20px);
    min-height: 0;
}

.tile-title {
    font-size: clamp(0.65rem, 0.8vw, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6d8595;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tile-value {
    font-size: clamp(1.6rem, 2.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    color: #101f8d;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.monitoring-tile.tile-ok    .tile-value { color: #27ae60; }
.monitoring-tile.tile-alert .tile-value { color: #c0392b; }
.monitoring-tile.tile-no-data .tile-value { color: #c8d3db; }

/* Side-by-side tile layout (Shipments / Accepted) */
.tile-side-by-side {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}
.tile-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}
.tile-side-label {
    font-size: clamp(0.6rem, 0.7vw, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6d8595;
    margin-top: 10px;
    margin-bottom: 4px;
}

/* Pick worksheet tiles */
.tile-pw-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(8px, 1.2vh, 14px);
    flex: 1;
    padding: 4px 0;
}

.tile-pw-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tile-pw-section-label {
    font-size: clamp(0.5rem, 0.6vw, 0.62rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #9badb9;
}

.tile-pw-running {
    font-size: clamp(0.65rem, 0.85vw, 0.9rem);
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-pw-last-run {
    font-size: clamp(0.65rem, 0.85vw, 0.9rem);
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tile-pw-running                { color: #01253bc7; }
.tile-ok    .tile-pw-last-run  { color: #27ae60; }
.tile-alert .tile-pw-last-run  { color: #c0392b; }
.tile-no-data .tile-pw-running,
.tile-no-data .tile-pw-last-run { color: #c8d3db; }
.tile-config {
    font-size: clamp(0.6rem, 0.75vw, 0.8rem);
    color: #6d8595;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Platform breakdown (tiles 1-4) */
.tile-value-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.tile-value-group .tile-value {
    flex: 0 0 auto;
}
.tile-platform-breakdown {
    list-style: none;
    margin: clamp(4px, 0.5vh, 8px) 0 0;
    padding: 0;
    display: flex;
    gap: clamp(10px, 1.4vw, 20px);
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}
.tile-platform-breakdown li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.platform-label {
    font-size: clamp(0.55rem, 0.7vw, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6d8595;
}
.platform-value {
    font-size: clamp(0.85rem, 1.1vw, 1.2rem);
    font-weight: 800;
    color: #101f8d;
}
.monitoring-tile.tile-ok    .platform-value { color: #27ae60; }
.monitoring-tile.tile-alert .platform-label { color: #c0392b; }
.monitoring-tile.tile-alert .platform-value { color: #c0392b; }
.monitoring-tile.tile-no-data .platform-value { color: #c8d3db; }

/* Oldest hold time (orders_on_hold_nav tile) */
.tile-oldest-hold {
    font-size: clamp(0.6rem, 0.7vw, 0.75rem);
    color: #6d8595;
    margin-top: 20px;
    text-align: center;
}
.tile-oldest-hold-time {
    font-weight: 700;
    color: #c0392b;
}

/* NETS picks two-column layout */
.tile-picks-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    gap: 8px;
}
.tile-picks-total {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-priority-breakdown {
    list-style: none;
    flex: 1;
    margin: 0;
    padding: 0;
    align-self: center;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(3px, 0.4vw, 6px);
}
.tile-priority-breakdown li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background: #f4f6f8;
    border-radius: 4px;
    padding: 3px 2px;
}
.tile-priority-breakdown .platform-label {
    font-size: clamp(0.5rem, 0.6vw, 0.65rem);
    color: #6d8595;
    line-height: 1;
}
.tile-priority-breakdown .platform-value {
    font-size: clamp(0.75rem, 0.95vw, 1rem);
    font-weight: 800;
    line-height: 1;
}
.monitoring-tile.tile-ok    .tile-priority-breakdown .platform-value { color: #27ae60; }
.monitoring-tile.tile-alert .tile-priority-breakdown .platform-value { color: #c0392b; }
.monitoring-tile.tile-no-data .tile-priority-breakdown .platform-value { color: #c8d3db; }

/* ============================================================
   Stock Update Tool — Task DCV1-1694
   ============================================================ */

.stock-update-page .stock-update-usage-list {
    text-align: left;
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.stock-update-page .stock-update-usage-list li {
    list-style: disc;
    margin-bottom: 6px;
}

.stock-update-page .form-row {
    margin-bottom: 20px;
}

/* Stores section — grouped by channel with Select All */

.stock-update-channel-groups {
    padding-left: 300px;
    max-width: 800px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.stock-update-channel-group {
    min-width: 180px;
}

.stock-update-channel-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
}

.stock-update-channel-group-label {
    font-size: 15px;
    font-weight: 600;
    color: rgb(3, 63, 99);
}

.stock-update-select-all-btn {
    font-size: 11px;
    padding: 2px 10px;
    height: auto;
    background: transparent;
    border: 1px solid #6d8595;
    border-radius: 3px;
    color: #6d8595;
    cursor: pointer;
    line-height: 1.6;
    transition: background 0.2s, color 0.2s;
}

.stock-update-select-all-btn:hover {
    background: #6d8595;
    color: #fff;
}

/* Unsupported platforms — shown but greyed out until an endpoint exists */
.stock-update-channel-group.is-unsupported {
    opacity: 0.5;
}

.stock-update-channel-group.is-unsupported .stock-update-channel-item label {
    cursor: not-allowed;
}

.stock-update-channel-group-note {
    display: block;
    font-size: 11px;
    font-weight: 400;
    font-style: italic;
    color: #888;
}

.stock-update-channel-item {
    margin-bottom: 8px;
}

.stock-update-channel-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.stock-update-channel-item input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Items to update panel — inline, revealed after AJAX lookup */
/* Contains both direct cross-references and BOM component cross-references */

.stock-update-items-intro {
    text-align: left;
    font-size: 15px;
    margin-bottom: 20px;
    padding-left: 300px;
}

.stock-update-items-list {
    text-align: left;
    max-width: 800px;
    padding-left: 300px;
    margin-bottom: 10px;
}

.stock-update-item {
    margin-bottom: 12px;
}

.stock-update-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.stock-update-item input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.stock-update-item-channel {
    font-weight: 600;
    color: rgb(3, 63, 99);
}

.stock-update-item-sep {
    color: #aaa;
}

.stock-update-item-tag {
    display: inline-block;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
    background: #e8f0fe;
    color: rgb(3, 63, 99);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Actions row */

.stock-update-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 30px 300px;
}

.stock-update-lookup-btn,
.stock-update-submit-btn {
    height: 40px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    line-height: 40px;
    transition: background 0.2s;
}

.stock-update-lookup-btn {
    background: #6d8595;
    color: #fff !important;
}

.stock-update-lookup-btn:hover {
    background: #556a77 !important;
    color: #fff !important;
}

.stock-update-submit-btn {
    background: rgb(3, 63, 99);
    color: #fff !important;
}

.stock-update-submit-btn:hover {
    background: rgb(2, 50, 79) !important;
    color: #fff !important;
}

/* ── Stock Update Dashboard [DCV1-1792] ─────────────────── */
.sdu { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #01253b; padding: 1.25rem 1.5rem; background: #eef1f5; border-radius: 12px; }
.sdu-label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; margin: 1.5rem 0 .6rem; }
.sdu-dash-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.sdu-dash-header__lbl { margin-right: auto; }
.sdu-dash-header__lbl { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; }
.sdu-dash-header__ts  { font-size: .72rem; color: #9ca3af; }
.sdu-section { margin-bottom: 1.75rem; }
.sdu-section__hd { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .65rem; padding-bottom: .5rem; border-bottom: 1px solid #e5e7eb; }
.sdu-section__title { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #01253b; }
.sdu-section__desc  { font-size: .72rem; color: #6d8595; }
.sdu-cards { display: flex; flex-wrap: wrap; gap: .75rem; }
.sdu-cards--restock { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
#website-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.sdu-card { background: #fff; border: none; border-radius: 14px; padding: 1.1rem 1.3rem; box-shadow: 0 2px 8px rgba(1,37,59,.08); min-width: 130px; flex: 1 1 130px; position: relative; text-align: center; }
.sdu-card--click { cursor: pointer; transition: box-shadow .2s, transform .15s; }
.sdu-card--click:hover { box-shadow: 0 6px 20px rgba(1,37,59,.14); transform: translateY(-2px); }
.sdu-card--click::after { content: '›'; position: absolute; top: .75rem; right: .9rem; color: #c8d3db; font-size: 1.1rem; }
.sdu-card--green   { border-left: 4px solid #10b981; }
.sdu-card--orange  { border-left: 4px solid #f59e0b; }
.sdu-card--red     { border-left: 4px solid #ef4444; }
.sdu-card--darkred { border-left: 4px solid #991b1b; }
.sdu-card--grey    { border-left: 4px solid #9ca3af; }
.sdu-card--blue    { border-left: 4px solid #01253b; }
.sdu-card--inactive { opacity: .45; }
.sdu-card__lbl { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6d8595; margin-bottom: .35rem; }
.sdu-card__val { font-size: 2rem; font-weight: 800; line-height: 1; color: #01253b; }
.sdu-card__val--green   { color: #059669; }
.sdu-card__val--orange  { color: #d97706; }
.sdu-card__val--red     { color: #dc2626; }
.sdu-card__val--darkred { color: #7f1d1d; }
.sdu-card__val--grey    { color: #9ca3af; }
.sdu-card__sub { font-size: .72rem; color: #6d8595; margin-top: .3rem; }
.sdu-card--wide { min-width: 200px; flex: 1 1 200px; }
.sdu-card__name { font-size: .95rem; font-weight: 700; color: #01253b; margin-bottom: .5rem;
                  display: flex; align-items: center; justify-content: center; gap: .35rem;
                  flex-wrap: wrap; min-height: 1.4em; }
/* Channel card figures.
   Previously a flex row with content-sized items and a 1.1rem gap: a four-digit total next to a
   two-word label ("IN PROGRESS") pushed the row wider than the card, so values overflowed and the
   label wrapped on some cards but not others — which left the numbers sitting at different heights
   across a row of cards that are meant to be compared at a glance.
   A grid of equal columns fixes both: no item can widen past its share, and every card divides the
   same way regardless of how many buckets it shows. */
.sdu-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .25rem .5rem; align-items: start; }
.sdu-split__item { text-align: center; min-width: 0; }
/* tabular-nums keeps digits on a common width so totals line up column-wise between cards. */
.sdu-split__val { font-size: 1.15rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
/* Reserve two lines for every label. A one-word label then occupies the same height as a wrapped
   two-word one, so the VALUES share a baseline across the whole row of cards. Hyphenless wrapping
   keeps "IN PROGRESS" breaking at the space rather than mid-word. */
.sdu-split__lbl { font-size: .58rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
                  color: #6d8595; line-height: 1.25; min-height: 2.5em; word-break: keep-all; }
/* Proportional tile: a channel-style card whose background is filled to the share it represents.
   The fill is the thing that makes a list of counts comparable at a glance — 89% of failures being
   one cause is the headline, and a number alone does not carry that. Kept behind the content at low
   opacity so it never competes with the figures. */
.sdu-tile { position: relative; overflow: hidden; }
.sdu-tile__fill { position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; pointer-events: none; }
.sdu-tile__body { position: relative; z-index: 1; }
.sdu-tile--red   .sdu-tile__fill { background: #fee2e2; }
.sdu-tile--blue  .sdu-tile__fill { background: #e0e7ff; }
.sdu-tile--orange .sdu-tile__fill { background: #fef3c7; }
.sdu-tile--red   { border-left: 4px solid #dc2626; }
.sdu-tile--blue  { border-left: 4px solid #4f46e5; }
.sdu-tile--orange { border-left: 4px solid #d97706; }
.sdu-tile__val { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: #01253b;
                 font-variant-numeric: tabular-nums; display: flex; align-items: baseline;
                 justify-content: center; gap: .4rem; }
.sdu-tile__pct { font-size: .8rem; font-weight: 700; color: #6d8595; }
.sdu-tile__lbl { font-size: .58rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
                 color: #6d8595; margin-top: .15rem; }
/* The channel breakdown can be long ("eBay UK (29), nets.uk (409)"), so it wraps rather than
   stretching the card or being clipped. */
.sdu-tile__sub { font-size: .68rem; color: #6d8595; margin-top: .35rem; line-height: 1.3;
                 overflow-wrap: anywhere; }
.sdu-bar { height: 5px; border-radius: 3px; background: #f1f5f9; overflow: hidden; display: flex; margin-top: .6rem; }
.sdu-bar span { height: 100%; }
.sdu-bar--ok { background: #10b981; }
.sdu-bar--pd { background: #f59e0b; }
.sdu-bar--fl { background: #ef4444; }
/* DCV1-2907: dry-run share of a channel's bar. Amber rather than green — a store in dry run is
   sending nothing to the marketplace, and the bar must not read as success. Declared alongside the
   other bar segments so the cascade order matches; `.sdu-bar span` only sets height, so there is no
   specificity fight over background. */
.sdu-bar--dry { background: #fbbf24; }
/* Channel-name badge for a store whose sends are all previews. */
.sdu-pill { display: inline-block; margin-left: .4rem; padding: .1rem .45rem; border-radius: 20px;
            font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
            vertical-align: middle; }
.sdu-pill--dry { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
/* Footnote for outcomes that happened but need no action, e.g. failures a newer update replaced. */
.sdu-card__note { font-size: .68rem; color: #6d8595; margin-top: .45rem; line-height: 1.35;
                  text-align: center; }

/* DCV1-2907 — "Why Updates Are Failing". A ranked list, biggest cause first, because the top row is
   the one worth fixing today. The bar is a share-of-failures cue, deliberately behind the text
   rather than a separate column, so the list stays readable at a glance. */
/* Causes and template changes now use the same card grid as the channels, so the screen has one
   layout language instead of three. They were full-width stacked rows, which gave a nine-row list
   the same visual weight as the nine channels above it while carrying far less information. */
.sdu-causes { display: flex; flex-wrap: wrap; gap: .75rem; }
.sdu-causes__none { font-size: .82rem; color: #10b981; font-weight: 600; padding: .8rem; text-align: center; }
.sdu-cause { position: relative; display: flex; align-items: center; gap: .9rem; padding: .6rem .8rem;
             border: 1px solid #f1f5f9; border-radius: 6px; background: #fff; overflow: hidden; }
.sdu-cause--click { cursor: pointer; }
.sdu-cause--click:hover { border-color: #cbd5e1; background: #fafcfe; }
/* Sits behind the content; the row's own background is transparent over it. */
.sdu-cause__bar { position: absolute; inset: 0; pointer-events: none; }
.sdu-cause__bar span { display: block; height: 100%; background: #fef2f2; }
.sdu-cause__main { position: relative; flex: 1; min-width: 0; }
.sdu-cause__label { font-size: .84rem; font-weight: 650; color: #01253b; }
.sdu-cause__chans { font-size: .7rem; color: #6d8595; margin-top: .15rem; }
.sdu-cause__count { position: relative; text-align: right; flex-shrink: 0; }
.sdu-cause__count b { display: block; font-size: 1.05rem; font-weight: 700; color: #ef4444;
                      font-variant-numeric: tabular-nums; }
.sdu-cause__count span { font-size: .66rem; color: #6d8595; }

/* DCV1-2907 — Shipping Template Changes. Same shape as the cause list so the two read as siblings,
   but neutral rather than red: a template flip is normal operation, not a fault. */
.sdu-flips { display: flex; flex-wrap: wrap; gap: .75rem; }
.sdu-flip { display: flex; align-items: center; gap: .9rem; padding: .6rem .8rem;
            border: 1px solid #f1f5f9; border-radius: 6px; background: #fff; }
.sdu-flip--click { cursor: pointer; }
.sdu-flip--click:hover { border-color: #cbd5e1; background: #fafcfe; }
.sdu-flip__main { flex: 1; min-width: 0; }
.sdu-flip__name { font-size: .84rem; font-weight: 650; color: #01253b; }
.sdu-flip__stores { font-size: .7rem; color: #6d8595; margin-top: .15rem; }
.sdu-flip__count { text-align: right; flex-shrink: 0; }
.sdu-flip__count b { display: block; font-size: 1.05rem; font-weight: 700; color: #3730a3;
                     font-variant-numeric: tabular-nums; }
.sdu-flip__count span { font-size: .66rem; color: #6d8595; }
.sdu-table-wrap { flex: 1; overflow-y: auto; overflow-x: auto; width: 100%; padding-bottom: 1rem; min-height: 0; }
/* DCV1-2907: table density follows the DC design system's "reporting matrix" scale — the densest
   of its three row scales (Modern 44px/13px, Legacy 26px/12px, Reporting matrix 24px/12px) — so
   more rows fit without shrinking type below the system's --dc-size-sm. Tokens are not loaded in
   this theme, so the values are literal: 12px body, 10px column heads, 4px/8px padding off the
   4/8/12/16 spacing scale. */
.sdu-table { display: flex; flex-direction: column; width: 100%; font-size: 12px; }
.sdu-thead { display: flex; flex-direction: column; position: sticky; top: 0; z-index: 2; }
.sdu-tbody { display: flex; flex-direction: column; }
/* Cells must STRETCH to the row height (the flex default), not flex-start. With flex-start each
   cell ended at its own content height, so per-cell backgrounds and bottom borders staggered down
   the table instead of forming clean rows. Stretch keeps every cell the height of the tallest,
   and block text still starts at the top of its cell, which was the only reason flex-start looked
   attractive. */
.sdu-tr { display: flex; flex-direction: row; width: 100%; box-sizing: border-box; align-items: stretch; }
/* Cells CENTRE their content vertically. Rows are as tall as their tallest cell — usually a wrapped
   error message — and with top-aligned content every other value in that row floated up away from
   its neighbours, so a column of timestamps read as ragged rather than as a line. Centring makes a
   tall row still scan as one row. */
/* Timestamps and ids line up column-wise. */
.sdu-col-date, .sdu-col-id, .sdu-col-qty, .sdu-col-ean { font-variant-numeric: tabular-nums; }
/* Headers stay on one line — they are short labels, and wrapping them costs more height than it saves. */
.sdu-th { background: #f8fafc; padding: 6px 8px; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; border-bottom: 1px solid #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
/* Cells WRAP rather than truncate. They previously carried
   `white-space: nowrap; overflow: hidden; text-overflow: ellipsis`, which silently hid content —
   and the outbound error column runs to 403 characters (avg 67), so most of an eBay or Amazon
   failure message was simply unreadable. Being able to read the error is the whole point of the
   column. overflow-wrap: anywhere breaks unbroken strings such as feed ids, which would otherwise
   overflow their column instead of wrapping. */
.sdu-td { padding: 4px 8px; border-bottom: 1px solid #f1f5f9; color: #374151; text-align: left; white-space: normal; overflow-wrap: normal; line-height: 1.35; box-sizing: border-box; display: flex; align-items: center; min-width: 0; }
/* Error and description keep their text top-aligned: a long wrapped message centred against a
   short row reads as detached from the row it belongs to. */
.sdu-td.sdu-col-error, .sdu-td.sdu-col-desc { align-items: flex-start; }
.sdu-tbody .sdu-tr:nth-child(even) .sdu-td { background: #f8fafc; }
.sdu-tbody .sdu-tr:last-child .sdu-td { border-bottom: none; }
.sdu-tbody .sdu-tr:hover .sdu-td { background: #eef2ff; }
.sdu-th[data-sort] { cursor: pointer; user-select: none; }
.sdu-th[data-sort]:hover { background: #f1f5f9; color: #374151; }
.sdu-badge { display: inline-block; padding: .15rem .45rem; border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.sdu-badge--green   { background: #d1fae5; color: #065f46; }
.sdu-badge--orange  { background: #fef3c7; color: #92400e; }
.sdu-badge--red     { background: #fee2e2; color: #991b1b; }
.sdu-badge--darkred { background: #fecaca; color: #7f1d1d; }
.sdu-badge--grey    { background: #f3f4f6; color: #6b7280; }
.sdu-badge--blue    { background: #e0e7ff; color: #3730a3; }
/* DCV1-2907: secondary detail inside a cell — a retry rung, a missing feed reference. Quieter than
   the cell text so it reads as an annotation rather than a value. */
.sdu-muted { color: #9ca3af; font-size: 10px; }
.sdu-flags { display: block; font-size: .68rem; color: #9ca3af; margin-top: .2rem; line-height: 1.5; }
.sdu-empty { color: #9ca3af; font-style: italic; padding: 1rem 0 2rem; font-size: .875rem; }
.sdu-loading { display: flex; align-items: center; justify-content: center; height: 80px; color: #9ca3af; font-size: .875rem; }
/* ── Terminal failures + manual re-push ─────────────────────────────────────────────── */
.sdu-terminal { }
/* The toolbar stays with the table rather than floating: the count and the button only mean
   anything next to the rows they act on. */
.sdu-term__bar { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem;
                 background: #f8fafc; border: 1px solid #e5e7eb; border-bottom: none;
                 border-radius: 4px 4px 0 0; flex-wrap: wrap; }
.sdu-term__all { font-size: .78rem; font-weight: 600; color: #374151; display: flex;
                 align-items: center; gap: .35rem; cursor: pointer; }
.sdu-term__count { font-size: .74rem; color: #6d8595; flex: 1; }
.sdu-col-pick { flex: 0 0 34px; justify-content: center; }
.sdu-col-pick input { cursor: pointer; }

.sdu-btn { font-size: .78rem; font-weight: 700; padding: .4rem .8rem; border-radius: 4px;
           border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.sdu-btn:disabled { opacity: .45; cursor: not-allowed; }
.sdu-btn--go { background: #01253b; color: #fff; }
.sdu-btn--go:hover:not(:disabled) { background: #023a5c; }
.sdu-btn--ghost { background: #fff; color: #374151; border-color: #d1d5db; }
.sdu-btn--ghost:hover { background: #f3f4f6; }

.sdu-push__body { padding: 1rem 1.1rem; }
.sdu-push__lead { font-size: .92rem; color: #01253b; margin: 0 0 .75rem; }
/* Amber, not red: this is a caution about likely-wasted effort, not a destructive action. Red here
   would read as "this will break something", which would be the wrong warning. */
.sdu-push__warn { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #d97706;
                  border-radius: 0 3px 3px 0; padding: .7rem .85rem; font-size: .82rem; color: #78350f; }
.sdu-push__warn ul { margin: .45rem 0 0; padding-left: 1.1rem; }
.sdu-push__warn li { margin-bottom: .35rem; line-height: 1.45; }
.sdu-push__note { font-size: .78rem; color: #6d8595; margin: .7rem 0 0; line-height: 1.45; }
.sdu-push__foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem 1.1rem;
                  border-top: 1px solid #e5e7eb; background: #f8fafc; border-radius: 0 0 6px 6px; }

.sdu-toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
             background: #01253b; color: #fff; font-size: .82rem; font-weight: 600;
             padding: .6rem 1rem; border-radius: 4px; z-index: 9500;
             box-shadow: 0 4px 14px rgba(15,23,42,.25); }
.sdu-toast--err { background: #9c2a2a; }

.sdu-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 9000; align-items: center; justify-content: center; padding: 1.5rem; }
.sdu-overlay.open { display: flex; }
.sdu-modal { background: #fff; border-radius: 14px; width: 85vw; max-width: 85vw; height: 95vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.2); animation: sdu-in .18s ease-out; }
@keyframes sdu-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
/* Defined AFTER .sdu-modal and with higher specificity. As a bare .sdu-modal--narrow earlier in
   the file it lost to .sdu-modal's own max-width at equal specificity, so the push confirmation
   rendered at 85vw x 95vh — a full-screen dialog to confirm one action (CodeAnt, PR #112).
   height:auto matters as much as the width: a confirmation should be as tall as its content. */
.sdu-modal.sdu-modal--narrow { width: 520px; max-width: 92vw; height: auto; max-height: 90vh; }
.sdu-modal__hd { display: flex; align-items: flex-start; justify-content: space-between; padding: .9rem 1.5rem; border-bottom: 1px solid #f1f5f9; flex-shrink: 0; gap: 1rem; }
.sdu-modal__title { font-size: 1rem; font-weight: 700; color: #1e293b; display: block; }
.sdu-modal__close { background: none; border: none; font-size: 1.5rem; color: #9ca3af; cursor: pointer; line-height: 1; padding: 0 .2rem; flex-shrink: 0; }
.sdu-modal__close:hover { color: #374151; }
.sdu-modal__body { flex: 1; overflow: clip; padding: 1rem 1.5rem 0; display: flex; flex-direction: column; min-height: 0; }
.sdu-modal__ft { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .7rem 1.5rem; border-top: 1px solid #f1f5f9; flex-shrink: 0; min-height: 50px; }
.sdu-pg-btn { padding: .3rem .9rem; border: 1px solid #e5e7eb; border-radius: 6px; background: #f9fafb; font-size: .78rem; font-weight: 600; cursor: pointer; color: #374151; }
.sdu-pg-btn:hover:not([disabled]) { background: #e5e7eb; }
.sdu-pg-btn[disabled] { opacity: .4; cursor: not-allowed; }
.sdu-pg-info { font-size: .78rem; color: #6b7280; }
.sdu-search-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; flex-shrink: 0; }
.sdu-search-icon { width: 14px; height: 14px; color: #9ca3af; flex-shrink: 0; }
.sdu-search-input { flex: 1; max-width: 320px; padding: .3rem .6rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .8rem; color: #374151; background: #f9fafb; outline: none; }
.sdu-search-input:focus { border-color: #a5b4fc; background: #fff; }
.sdu-search-input::placeholder { color: #d1d5db; }
.sdu-search-clear { background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 1.1rem; line-height: 1; padding: 0 .2rem; }
.sdu-search-clear:hover { color: #374151; }
.sdu-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: .75rem; align-items: center; flex-shrink: 0; }
.sdu-filter-item { display: flex; align-items: center; gap: .35rem; }
.sdu-filter-lbl { font-size: .65rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; white-space: nowrap; }
.sdu-filter-sel { padding: .28rem .55rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .75rem; color: #374151; background: #f9fafb; cursor: pointer; width: 130px; margin: 0; }
.sdu-filter-sel:focus { outline: none; border-color: #a5b4fc; }
.sdu-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.sdu-tab { padding: .25rem .75rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .75rem; font-weight: 600; cursor: pointer; color: #6b7280; background: #f9fafb; }
.sdu-tab:hover { background: #f1f5f9; }
.sdu-tab--active { background: #6366f1; color: #fff; border-color: #6366f1; }
/* Flex column widths — fixed cells shrink to their width, desc takes remaining space */
.sdu-table-wrap      { box-sizing: border-box; }
.sdu-col-id      { flex: 0 0 92px; }
.sdu-col-no      { flex: 0 0 125px; }
.sdu-col-desc    { flex: 1; min-width: 180px; }
/* Error text is the longest content in any table (403 chars observed), so it gets a wider floor
   than a description — otherwise wrapping turns it into a tall narrow ribbon. */
.sdu-col-error   { flex: 1.6; min-width: 280px; }
/* Only the free-text columns break mid-word. Applying overflow-wrap: anywhere globally split
   identifiers like DEMO00010 across two lines, which is harder to read than a slightly wider
   column. */
.sdu-col-desc, .sdu-col-error { overflow-wrap: anywhere; }
.sdu-col-badge   { flex: 0 0 116px; }
.sdu-col-restock { flex: 0 0 175px; }
.sdu-col-qty     { flex: 0 0 55px; }
.sdu-col-date    { flex: 0 0 160px; }
.sdu-col-flag    { flex: 0 0 50px; }
.sdu-col-ean     { flex: 0 0 140px; }
.sdu-col-store   { flex: 0 0 150px; }
/* Prime is a yes/no badge, so it needs only enough room for the mark itself. */
.sdu-col-prime   { flex: 0 0 62px; }
.sdu-prime-img   { height: 14px; width: auto; vertical-align: middle; }
.sdu-col-channels { flex: 0 0 180px; }
.sdu-col-vendor  { flex: 0 0 115px; }
.sdu-col-purch   { flex: 0 0 125px; }
/* Location filter */
.sdu-location-filter { display: flex; align-items: center; gap: .4rem; }
.sdu-location-sel { padding: .28rem .55rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .78rem; color: #374151; background: #f9fafb; cursor: pointer; margin: 0; }
.sdu-location-sel:focus { outline: none; border-color: #a5b4fc; }
/* Export button */
.sdu-export-btn { padding: .3rem .9rem; border: 1px solid #c7d2fe; border-radius: 6px; background: #eef2ff; font-size: .78rem; font-weight: 600; cursor: pointer; color: #3730a3; }
.sdu-export-btn:hover { background: #e0e7ff; }
/* Flag button */
.sdu-flag-btn { background: none; border: none; cursor: pointer; color: #f59e0b; padding: 0; line-height: 1; }
.sdu-flag-btn:hover { color: #d97706; }
.sdu-flag-btn.active { background: #fef3c7; color: #d97706; border-radius: 4px; }
/* Flag accordion subtable */
.sdu-flag-sub { background: #fffbeb; border-bottom: 2px solid #f59e0b; }
.sdu-flag-sub__inner { padding: .5rem .75rem .5rem 2.5rem; border-left: 3px solid #f59e0b; }
.sdu-flag-sub__table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.sdu-flag-sub__table th { background: #fef3c7; padding: .3rem .6rem; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #92400e; border-bottom: 1px solid #fde68a; text-align: left; }
.sdu-flag-sub__table td { color: #78350f; border-bottom: 1px solid #fde68a; padding: .3rem .6rem; white-space: normal; }
/* Settings button */
.sdu-settings-btn { background: none; border: 1px solid #e5e7eb; border-radius: 6px; width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #9ca3af; line-height: 1; transition: border-color .15s, color .15s; }
.sdu-settings-btn:hover { border-color: #6366f1; color: #6366f1; }
/* Settings modal */
.sdu-modal--settings { max-width: 540px; height: auto; max-height: 90vh; }
.sdu-modal--settings .sdu-modal__body { overflow-y: auto; }
.sdu-settings-section { margin-bottom: 1.5rem; }
.sdu-settings-section:last-child { margin-bottom: 0; }
.sdu-settings-section__title { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6b7280; margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 1px solid #f1f5f9; }
.sdu-settings-field { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.sdu-settings-label { font-size: .82rem; font-weight: 600; color: #374151; }
.sdu-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border: 1px solid #e5e7eb; border-radius: 20px; font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .15s; background: #f9fafb; color: #9ca3af; }
.sdu-toggle.on { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.sdu-toggle__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.sdu-dynamic-list { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .5rem; min-height: 0; max-height: 260px; overflow-y: auto; border: 1px solid #f1f5f9; border-radius: 6px; padding: .35rem .4rem; box-sizing: border-box; }
.sdu-dynamic-list:empty { display: none; }
.sdu-dynamic-row { display: flex; align-items: center; gap: .4rem; }
.sdu-dynamic-input { flex: 1; padding: .35rem .6rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .82rem; color: #374151; background: #f9fafb; font-family: 'SFMono-Regular', Consolas, monospace; }
.sdu-dynamic-input:focus { outline: none; border-color: #a5b4fc; background: #fff; }
.sdu-dynamic-remove { background: none; border: none; cursor: pointer; color: #d1d5db; font-size: 1.2rem; line-height: 1; padding: 0 .2rem; flex-shrink: 0; }
.sdu-dynamic-remove:hover { color: #ef4444; }
.sdu-add-btn { background: none; border: 1px dashed #d1d5db; border-radius: 6px; padding: .3rem .75rem; font-size: .78rem; font-weight: 600; color: #9ca3af; cursor: pointer; width: 100%; text-align: left; transition: border-color .15s, color .15s; }
.sdu-add-btn:hover { border-color: #6366f1; color: #6366f1; }
.sdu-add-btn--inline { width: auto; flex-shrink: 0; }
/* SKU pill list */
.sdu-sku-count { font-size: .68rem; font-weight: 600; color: #9ca3af; margin-left: .35rem; text-transform: none; letter-spacing: 0; }
.sdu-sku-search { width: 100%; padding: .35rem .6rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .82rem; color: #374151; background: #f9fafb; box-sizing: border-box; margin-bottom: .5rem; }
.sdu-sku-search:focus { outline: none; border-color: #a5b4fc; background: #fff; }
.sdu-pill-list { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem; border: 1px solid #f1f5f9; border-radius: 6px; max-height: 220px; overflow-y: auto; min-height: 38px; box-sizing: border-box; }
.sdu-pill-list:empty { display: none; }
.sdu-sku-pill { display: inline-flex; align-items: center; gap: .3rem; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 20px; padding: .2rem .55rem .2rem .65rem; font-size: .74rem; font-weight: 600; color: #3730a3; font-family: 'SFMono-Regular', Consolas, monospace; white-space: nowrap; }
.sdu-sku-pill__remove { background: none; border: none; cursor: pointer; color: #818cf8; font-size: .85rem; line-height: 1; padding: 0; flex-shrink: 0; }
.sdu-sku-pill__remove:hover { color: #ef4444; }
.sdu-sku-add-row { display: flex; gap: .4rem; margin-top: .5rem; }
.sdu-sku-add-input { flex: 1; padding: .35rem .6rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .82rem; color: #374151; background: #f9fafb; font-family: 'SFMono-Regular', Consolas, monospace; min-width: 0; }
.sdu-sku-add-input:focus { outline: none; border-color: #a5b4fc; background: #fff; }
/* Save button */
.sdu-save-btn { padding: .45rem 1.5rem; background: #6366f1; color: #fff; border: none; border-radius: 8px; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.sdu-save-btn:hover { background: #4f46e5; }
.sdu-save-btn:disabled { opacity: .6; cursor: not-allowed; }
.sdu-settings-status { font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 6px; }
.sdu-settings-status--ok  { background: #d1fae5; color: #065f46; }
.sdu-settings-status--err { background: #fee2e2; color: #991b1b; }
/* Confirm modal */
.sdu-modal--confirm { max-width: 400px; height: auto; }
.sdu-modal--confirm .sdu-modal__body { padding-bottom: 1rem; }
.sdu-confirm-msg { font-size: .9rem; color: #374151; text-align: center; margin: 0; line-height: 1.5; }
.sdu-confirm-actions { display: flex; gap: .75rem; justify-content: center; }
.sdu-confirm-yes { padding: .4rem 1.4rem; background: #6366f1; color: #fff; border: none; border-radius: 6px; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.sdu-confirm-yes:hover { background: #4f46e5; }
.sdu-confirm-no  { padding: .4rem 1.2rem; background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.sdu-confirm-no:hover  { background: #e5e7eb; }
.sdu-flag-sub__table tr:last-child td { border-bottom: none; }

/* Revenue comparison colouring */
.table-cell.varchar.green { color: #1a7f1a; font-weight: 600; }
.table-cell.varchar.red   { color: #b91c1c; font-weight: 600; }

/* Period group separator column */
.table-cell.group-sep {
    border-left: 2px solid #999;
    background: transparent;
    padding: 0;
    width: 4px;
}

/* ============================================================
   DWS Rescan Required — /courierintegration/dws/rescan
   DCV1-2013
   ============================================================ */

body.dws-rescan-page { overflow: hidden; }

#dws-rescan-dashboard {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    background: #e8edf2;
    padding: 12px;
    gap: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.dws-rescan-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex-shrink: 0;
}

.dws-rescan-tiles .monitoring-tile {
    min-height: 90px;
}

.dws-rescan-table-wrap {
    flex: 1;
    min-height: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dws-rescan-table-scroll {
    display: block;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
}

.dws-rescan-table {
    width: 100%;
    border-collapse: collapse;
}

.dws-rescan-table thead th {
    position: sticky;
    top: 0;
    background: #f4f6f8;
    padding: 10px 14px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6d8595;
    border-bottom: 2px solid #e0e6eb;
    z-index: 1;
    white-space: nowrap;
}

.dws-rescan-table thead th:first-child { width: 1%; }
.dws-rescan-table thead th:last-child  { width: 1%; }

.dws-rescan-table tbody tr {
    border-bottom: 1px solid #f0f3f5;
}

.dws-rescan-table tbody tr:hover {
    background: #f8fafc;
}

.dws-rescan-table tbody td {
    padding: 9px 14px;
    font-size: 0.85rem;
    color: #2c3e50;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dws-rescan-table tbody td:nth-child(2) {
    white-space: normal;
    word-break: break-word;
}

.dws-rescan-table tbody td:last-child {
    color: #c0392b;
    font-weight: 600;
}

.dws-rescan-placeholder {
    text-align: center;
    color: #6d8595;
    padding: 20px !important;
}

.dws-rescan-footer {
    padding: 8px 14px;
    font-size: 0.78rem;
    color: #6d8595;
    border-top: 1px solid #e8edf2;
    flex-shrink: 0;
}

/* Shipment Cartons page (DCV1-2207) */
.shipment-cartons-wrap { overflow: hidden; padding: 0 20px 50px; }
.shipment-cartons-wrap .dws-rescan-table thead { display: table; width: 100%; table-layout: fixed; }
.shipment-cartons-wrap .dws-rescan-table tbody { display: block; overflow-y: auto; height: 60vh; }
.shipment-cartons-wrap .dws-rescan-table tbody tr { display: table; width: 100%; table-layout: fixed; }
/* Override shared 1% widths on first/last th — those break alignment with the tbody columns */
.shipment-cartons-wrap .dws-rescan-table thead th,
.shipment-cartons-wrap .dws-rescan-table tbody td { width: calc(100% / 11); }
.shipment-cartons-wrap .dws-rescan-table thead th { white-space: normal; }
.shipment-cartons-wrap .dws-rescan-table tbody td:last-child { color: #2c3e50; font-weight: normal; }
.shipment-cartons-scroll { overflow-x: hidden; }

.sc-empty-row td { border-bottom: none !important; }
.sc-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(60vh - 44px); padding: 40px 20px; box-sizing: border-box; }
.sc-empty-icon { font-size: 80px; margin-bottom: 16px; opacity: 0.35; color: #6d8595; }
.sc-empty-title { font-size: 1rem; font-weight: 600; color: #6d8595; margin: 0 0 6px; }
.sc-empty-sub { font-size: 0.85rem; color: #9fb3be; margin: 0; }

.sc-page-header { display: flex; justify-content: space-between; align-items: center; }
.sc-export-btn { margin-right: 20px; }
.sc-filter-wrap { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 20px; margin-bottom: 8px; }
.sc-filter-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.sc-filter-group { display: flex; flex-direction: column; gap: 3px; }
.sc-filter-label { font-size: 11px; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.sc-filter-input { width: 160px; }
.sc-button-group { display: flex; gap: 8px; align-items: center; }
.sc-button-group .button { font-size: 0.78rem; }
.sc-view-tabs { display: flex; gap: 4px; }
.sc-view-tab { padding: 5px 14px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; color: #6d8595; background: #f0f3f5; text-decoration: none; border: none; cursor: pointer; display: inline-block; }
.sc-view-tab:hover { background: #e0e6eb; color: #2c3e50; text-decoration: none; }
.sc-view-tab-active, .sc-view-tab-active:hover { background: #2c3e50; color: #fff; }
.sc-row-count { font-size: 0.78rem; color: #8fa3b0; margin: 0 0 6px 22px; }
.sc-loading-row td { position: relative; height: 60vh; border-bottom: none !important; }

/* Shipment Profiles page (DCV1-2208) */
.shipment-profiles-wrap { overflow: hidden; padding: 0 20px 50px; }
.shipment-profiles-wrap .dws-rescan-table thead { display: table; width: 100%; table-layout: fixed; }
.shipment-profiles-wrap .dws-rescan-table tbody { display: block; overflow-y: auto; height: 60vh; }
.shipment-profiles-wrap .dws-rescan-table tbody tr { display: table; width: 100%; table-layout: fixed; }
.shipment-profiles-wrap .dws-rescan-table thead th,
.shipment-profiles-wrap .dws-rescan-table tbody td { width: calc(100% / 9); }
.shipment-profiles-wrap .dws-rescan-table thead th { white-space: normal; }
.shipment-profiles-wrap .dws-rescan-table tbody td:last-child { color: #2c3e50; font-weight: normal; }
.shipment-profiles-scroll { overflow-x: hidden; }

/* ============================================================================
   DCV1-2400: header and footer chrome.

   Three changes, all overriding themev2.css (which is minified onto one line, so
   nothing is edited there - this file loads after it and wins on cascade order).
   ============================================================================ */

/* 1. A taller header, so the search box is not wedged against the edges.
      55px left 7px above and below a 40px box; 76px leaves 16px around a 44px one.

      Nothing in .header is in normal flow - the burger and the two logo halves are
      absolutely positioned at fixed `top` values, the basket and price-sheet icons are
      floated - so none of them follow the height. Each is re-centred here, by half its
      own height, or they would all sit high against the top edge. */
.header {
    height: 96px;
    /* solid, not the old #01253bc7: at 78% alpha over the #fefefe page that navy
       actually rendered as about #395566, so an alpha black would have come out grey */
    background-color: #16181b;
}
/* ============================================================================
   The burger, slimmed down.

   themev2 draws it as a 42px box with scale:0.6 and 4px bars - so the thing on
   screen is a ~25px icon made of chunky strokes, sitting in a box two-thirds
   bigger than it looks. The scale hack also means the real hit area and the
   visible icon disagree, which is why it never lined up with anything.

   Redrawn at its true size: a 34px hit area matching the basket and pricing
   sheet on the other side of the header, holding 20x2px bars. White to match
   the icons it now sits opposite - #dadada read as disabled next to them.

   ⚠️ scale:none is load-bearing. Without it themev2's 0.6 still applies and
   every number below renders at 60% of what it says.
   ============================================================================ */
.header #bars {
    top: 50%;
    margin-top: -17px;              /* 34px tall */
    left: 20px;
    width: 34px;
    height: 34px;
    scale: none;
    /* 0.5s on a button you are about to click reads as lag. Matched to the
       hover on the header's other controls. */
    transition: none;
}

.header #bars span {
    height: 2px;
    width: 20px;
    left: 7px;                      /* (34 - 20) / 2 */
    border-radius: 1px;
    background: #ffffff;
    transition: top 0.2s ease, opacity 0.15s ease, transform 0.2s ease;
}

/* 10 / 17 / 24 inside the 34px box - a 7px pitch, so the group spans 10..26 and
   centres on 17, the box's middle. Started at an 8px pitch over 18px bars and it
   read thin and airy against a 35px logo; tighter and a shade wider sits better. */
.header #bars span:nth-child(1) { top: 10px; }
.header #bars span:nth-child(2) { top: 17px; width: 20px; left: 7px; }
.header #bars span:nth-child(3) { top: 24px; }

.header #bars:hover span { background: #ffffff; opacity: 0.75; }

/* The X. Both strokes land on the middle bar's line and cross there. */
.header #bars.open span { background: #ffffff; opacity: 1; }
.header #bars.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.header #bars.open span:nth-child(2) { opacity: 0; left: 7px; }
.header #bars.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }
.header .basket,
.pricesheet {
    margin-top: 25.5px;             /* floated, 45px tall */
}

/* The DC logo. Its own class rather than the old .logo-wrapper-left/right, which carried
   data-centre.svg, filter: invert(1) and scale: 0.9 - all of which would have had to be
   undone one by one. dc-logo.svg is already white-on-transparent, so it needs no filter:
   inverting it would have turned the yellow chevrons (#FFF60D) pure blue.

   255.49 x 69.66 in the file, so 35px tall is 128px wide. */
.dc-logo {
    position: absolute;
    top: 50%;
    left: 70px;
    z-index: 1;
    width: 128px;
    height: 35px;
    margin-top: -17.5px;
    background: url(../images/dc-logo.svg) left center / 128px 35px no-repeat;
    transition: opacity 0.4s ease-out;
}
/* .header, not header - the old rules used the element selector against a div and so never
   fired. This one does, which is why the effect is a fade rather than the sliding halves */
.header .dc-logo-link:hover .dc-logo {
    opacity: 0.8;
}

/* 2. Black rather than blue. */
.footer {
    background: #16181b;
    border-top: 5px solid #2b2f34;  /* was #356582 */
    box-shadow: 1px 9px 11px 9px #0b0c0d;
}

/* 3. The footer navigation, which used to spill out of the footer.
      Two separate causes, both fixed here:

      - .footer was a fixed 480px on desktop (only max-width:800px set it to auto) and
        .footer-content-lg was 70% of that, so any section taller than ~336px hung out of
        the bottom. Dashboards has 14 links at 24px a line, which is exactly that. Height
        is now driven by content, so a section can grow without escaping.
      - the columns were a fixed 12% each in a non-wrapping flex row. Twelve sections is
        144%, so they overflowed sideways too. They are now grid tracks that wrap onto as
        many rows as they need, which is what makes room for the next section added. */
.footer {
    height: auto;
}

/* Inside the same breakpoint themev2.css uses, NOT unconditionally: below 800px it hides
   .footer-content-lg and shows the .footer-content-sm accordion instead. This file loads
   after every one of its media queries, so an unscoped `display: grid` here would beat
   that `display: none` and put the full desktop footer back on small screens. */
@media screen and (min-width: 801px) {
    .footer-content-lg {
        height: auto;
        display: grid;
        /* 240px measured against the real link list: at 1600px it gives six tracks, so the
           twelve sections land as a balanced 6 + 6, and no label wraps. Narrower tracks fit
           more per row but wrap the long ones - at 158px "Top 500 revenue items Ranked",
           "Product Margins / Cost per KG" and "Product Development Performance" all break
           over two lines for no gain in footer height. auto-fit, so a narrower window drops
           to fewer tracks and more rows on its own. */
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 4px 16px;
        /* start, not stretch: a short section should not be padded out to the height of
           the tallest one in its row */
        align-items: start;
        justify-content: center;
    }
    /* the widths were what forced everything onto one row */
    .footer-column,
    .footer-column:last-child {
        width: auto;
        height: auto;
        margin: 15px 0 0 0;
        min-width: 0;               /* so a long label cannot push a track wider */
    }
}

/* 4. The footer logo: the same dc-logo.svg, in place of the nws-fa-nws-logo icon-font
      wordmark. `contain` rather than a fixed pair so the aspect ratio comes from the file. */
.footer-logo .dc-logo-footer {
    width: 132px;
    height: 36px;
    margin: 0 auto;
    background: url(../images/dc-logo.svg) center / contain no-repeat;
}

/* 5. The off-canvas menu, which slides out from the now-black header and was still navy.

      The panel itself stays light (#e6e6e6) - only the blue accents move to black. Alpha is
      kept where it was: the links were #033F6390, a navy at 56%, so they become the same
      near-black at the same weight rather than turning hard black and shouting over the
      headings they sit under. */
.navigation-header {
    color: #16181b;                        /* was #033f63 */
}
.navigation-section {
    border-top: 1px solid #16181b33;       /* was #033F6390 */
    border-bottom: 1px solid #16181b33;
}
.navigation-section:hover {
    color: #16181b;                        /* was #01253b */
    border-color: #16181b66;
}
.navigation-section:hover .navigation-header {
    color: #000000;
}
.position-left a {
    color: #16181b99;                      /* was #033F6390 */
}
.position-left a:hover {
    color: #000000;                        /* was #01253b */
}
/* no buttons in the panel today, but the rule is there and would come back navy */
.position-left button {
    background-color: #16181b;             /* was #02324f */
}
/* the one remaining navy in the off-canvas chrome */
.nav-section-break-bottom,
.off-canvas .accordion-section {
    border-bottom: 1px solid #2b2f34;      /* was #356582 */
}

/* ============================================================================
   DCV1-2400: the breadcrumb bar, simplified to plain pills on white.

   What it was: an arrow-notch trail - each crumb had :before and :after CSS triangles
   in #b8b8b8 to fake the chevron join - sitting on a grey angled backdrop drawn by a
   .skew div, with a world-clock marquee scrolling along the right. The marquee and the
   .skew are gone from breadcrumbs.phtml; this drops the notches and repaints the rest.
   ============================================================================ */
.breadcrumbs {
    background: #ffffff;
    padding: 5px 0 0;
    /* themev2.css puts a soft rgb(34,34,34) 0 1px 10px -6px under the bar; there is no
       border-bottom, the shadow was the line */
    box-shadow: none;
}
/* themev2 pins this at 40px with line-height 0, which set the bar's height regardless of
   what is in it */
.breadcrumbs ul.breadcrumbs-list {
    height: auto;
    line-height: normal;
}
/* absolutely positioned, so it does not follow the shorter bar on its own */
.breadcrumbs .date-set {
    top: 5px;
}
/* the notches. Killing the pseudo-element also kills Foundation's "/" separator, which
   is set on the same li::after and would otherwise reappear now the triangle is gone */
.breadcrumbs ul.breadcrumbs-list li:before,
.breadcrumbs ul.breadcrumbs-list li:after {
    display: none;
}
/* No pill: plain text in grey, with the current page in black. themev2 fixes the row at
   30px tall with 5px above and below; both go, so the bar is only as tall as the text. */
.breadcrumbs ul.breadcrumbs-list li,
.breadcrumbs ul.breadcrumbs-list li.active {
    height: auto;
    margin: 0 16px 0 0;             /* horizontal gap only - no vertical margin */
    padding: 0;
    background: none;
    border-radius: 0;
    color: #6b7178;
    /* !important only because themev2 sets 8px that way. li.first stays at its own
       0 !important, which is what keeps the word "Home" hidden behind the icon. */
    font-size: 10px !important;
    line-height: 18px;
    overflow: visible;
}
.breadcrumbs ul.breadcrumbs-list li a {
    color: inherit;                 /* the li decides, not the link */
    /* themev2 gives this display:block, line-height:30px and a 1px transparent border, so
       every crumb that is a link measured 32px and set the row height on its own - only the
       last crumb, which is plain text, was ever 18px */
    display: inline;
    font-size: inherit;             /* themev2 sets 8px here too */
    line-height: 18px;
    border: 0;
}
.breadcrumbs ul.breadcrumbs-list li:hover,
.breadcrumbs ul.breadcrumbs-list li:hover a {
    background: none;
    color: #16181b;
}

/* where you are */
.breadcrumbs ul.breadcrumbs-list li.last,
.breadcrumbs ul.breadcrumbs-list li.last:hover {
    width: auto !important;
    padding: 0;
    background: none;
    border-radius: 0;
    color: #16181b;
    font-weight: normal;
}
.breadcrumbs ul.breadcrumbs-list li.last a,
.breadcrumbs ul.breadcrumbs-list li.last:hover a {
    color: #16181b;
}

/* Home. The icon moves off the li and onto its :before so it can be inverted on its
   own - icons8-home-96.png is dark artwork (mean luma 86 of 255), which was fine on the
   old mid-slate pill but would disappear into a dark grey one. Inverting the li itself
   would invert the pill with it. */
.breadcrumbs ul.breadcrumbs-list li.first {
    /* matched to the text line, or this one crumb sets the bar's height on its own - its
       :before is inset 0, so the li has to carry the size */
    width: 16px !important;
    height: 18px;
    padding: 0;
    background-color: transparent;
    background-image: none;
    border-radius: 0;
}
.breadcrumbs ul.breadcrumbs-list li.first:hover {
    background-color: transparent;
}
.breadcrumbs ul.breadcrumbs-list li.first:before {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    border: 0;
    background: url(../images/icons8-home-96.png) center / 14px 14px no-repeat;
    /* brightness(0) crushes the dark artwork (mean luma 86) to solid black, then opacity
       lifts it to about the grey the crumb text uses - it was inverted to white for the
       dark pill, which has gone */
    filter: brightness(0) opacity(0.55);
}
.breadcrumbs ul.breadcrumbs-list li.first:hover:before {
    filter: brightness(0) opacity(0.9);
}

/* the date, which was the last navy left in the bar */
.breadcrumbs .date-set {
    color: #3a3e44;
}
.breadcrumbs:hover .date-set {
    color: #16181b;
}

/* DCV1-2400: Add to cart inside a search result row. The shared .button-add-to-cart is
   sized for the item page - 100% wide and 2.5rem tall - which in a result row would be
   taller than the row it sits in. Same colour, so it stays the button people know. */
.search-table .search-cart-form {
    margin: 0;
}
.search-table .search-cart-form .button.button-add-to-cart {
    width: auto;
    height: 22px;
    padding: 0 10px;
    font-size: 11px;
    line-height: 22px;
    white-space: nowrap;
}

/* ============================================================================
   Buttons, repainted for the black header and footer.

   The rebrand took the header, footer and off-canvas menu to #16181b, which left
   every button on the site still speaking the old palette: Foundation's default
   blue (#1779ba) on the base .button, slate grey (#6d8595) in the actions
   wrapper and on the add-note button, and a spread of per-page accents.

   The rule from here on:
     - 5px corners on every button that draws a box
     - 20px 10px padding, 5px margin
     - no decorative icon on the button - the label carries it
     - primary  -> #777777 background, white text
     - cancel and other destructive actions -> #bb0a1e, white text
     - add to cart and the other cart actions -> #1e8449, white text

   Primary is a mid grey rather than the header's #16181b on purpose: a button in
   the same black as the chrome behind it stops reading as a raised control, and an
   actions bar sitting under a black header looked like part of it.

   Hover goes darker (#5e5e5e, 6.5:1), not lighter, which is the other way round
   from the breadcrumb pills. On a #16181b pill there is only room to go up; from
   #777777 there isn't much - white on #777777 measures 4.48:1, a shade under the
   4.5:1 AA line for the 13px bold label - so the hover holds the contrast rather
   than spending it. Worth knowing if these labels ever need to pass AA outright:
   #6f6f6f would do it at 4.74:1 and is indistinguishable at this size.

   Everything lives here rather than in themev2.css, which is minified onto one
   line and regenerated from sass/ by compile.sh - an edit there would be lost on
   the next compile. This file loads after it and wins on cascade order.

   !important appears in two situations only, both unavoidable:
     - themev2.css already used it on the actions-wrapper colour variants
     - dashboard buttons are styled from <style> blocks inside their own .phtml,
       which render in the body and so come after this file
   Where neither applies, the plain declaration is enough.
   ============================================================================ */

/* ── 1. The shared button ──────────────────────────────────────────────────
   .button carries Foundation's blue. 203 elements use it, and .button-primary
   (31 "Go" date-range buttons across the dashboards) had no rule of its own at
   all - it was inheriting that blue, which is why those read as unstyled. */
.button,
.button.disabled,
.button[disabled],
.button.disabled:hover,
.button[disabled]:hover,
.button.disabled:focus,
.button[disabled]:focus,
.button-primary,
.btn-primary {
    background-color: #777777;
    color: #ffffff;
    border-radius: 5px;
    padding: 20px 10px;
    margin: 5px;
}
.button:hover,
.button:focus,
.button-primary:hover,
.btn-primary:hover {
    background-color: #5e5e5e;
    color: #ffffff;
}

/* ── 2. The actions wrapper ────────────────────────────────────────────────
   Was slate grey with per-action colours layered on top: teal for Invoice, blue
   for Sales Return, navy for Credit Memo, sage for Create Zero Order. The set is
   now uniformly black, so the group reads as one bar of actions under the black
   header instead of five competing colours.

   The icon goes too - see section 3 - which is what frees the padding: the old
   `0 40px 0 8px` was asymmetric only to leave room for the badge hanging off the
   right edge. Height comes off with it, so the padding sets the button's size.

   themev2.css set each variant with !important, so these have to match it. */
.view-actions .button {
    background-color: #777777;
    border-radius: 5px;
    height: auto;
    padding: 20px 10px;
    /* horizontal gap only - the 5px top and bottom were adding 10px to the row's height */
    margin: 0 5px;
}
.view-actions .button:hover {
    background-color: #5e5e5e;
}
/* themev2.css singles out the first button for a tighter right margin, which the
   uniform gap replaces */
.view-actions .button:first-child {
    margin: 0 5px;
}
.view-actions .invoice,
.view-actions .return,
.view-actions .credit,
.view-actions .zero {
    background-color: #777777 !important;
}
.view-actions .invoice:hover,
.view-actions .return:hover,
.view-actions .credit:hover,
.view-actions .zero:hover {
    background-color: #5e5e5e !important;
}

/* Cancel Order. It was #BB0A1EFF with #cf5361 text - a mid red on a dark red,
   which was very close to unreadable. Same red, white text. */
.view-actions .cancel,
.button-action-cancel {
    background-color: #bb0a1e !important;
    color: #ffffff !important;
}
.view-actions .cancel:hover,
.button-action-cancel:hover {
    background-color: #8f0817 !important;
    color: #ffffff !important;
}
/* ── 3. The icons come off ─────────────────────────────────────────────────
   Every actions-wrapper button drew a decorative circle on :after - a "+" by
   default, and a NetWorldSports glyph per variant (invoice, cancel, the item and
   stock-report pages, the image gallery). They were the reason for the lopsided
   padding and the `overflow: hidden`, and on black they read as a smudge in the
   corner rather than an icon. Removed, so the label is the whole button.

   content AND the box: a bare `content: none` would leave the 30px absolutely
   positioned circle with its 2px border still drawn. */
.view-actions .button:after,
.view-actions .button:hover:after,
.view-actions .invoice:after,
.view-actions .return:after,
.view-actions .credit:after,
.view-actions .zero:after,
.view-actions .cancel:after,
.view-actions .cancel:hover:after,
.notes-title button:after,
.notes-title button:hover:after,
.nav-product-item-view .view-actions .button:after,
.image-view .view-actions button:after,
.nav-product-item-view .image-view .view-actions button:after,
.nav-product-stock-report .fieldset .buttons-set .button:after,
.button-create:after {
    display: none !important;
    content: none !important;
    border: 0 !important;
}
/* the clip was only there to crop the badge */
.view-actions .button {
    overflow: visible;
}

/* ── 4. Add note ───────────────────────────────────────────────────────────
   Targeted as `.notes-title button`, NOT `.button-notes`, for two reasons.

   It has to be at least that specific: themev2.css styles this button through
   `.notes-title button` - a class plus an element - which outranks a bare
   `.button-notes` and was still painting it #6d8595 with a #356582 hover. That is
   the blue that survived the first pass at this.

   And it must not be `.button-notes`, because that class is not only on the
   button. Nav_Core_Helper_View::renderNotes() (Helper/View.php:669) gives every
   note thread in the side panel `class="button-notes empty"` - they are white
   cards that happen to share the click handler in default.js:611, not buttons.
   Painting `.button-notes` black turned the whole notes panel black. The cards
   are left exactly as they were. */
.notes-title button {
    background-color: #777777;
    border-color: #777777;
    color: #ffffff;
    border-radius: 5px;
    height: auto;
    padding: 20px 10px;
    margin: 5px;
}
.notes-title button:hover {
    background-color: #5e5e5e;
    border-color: #5e5e5e;
    color: #ffffff;
}

/* ── 5. Cart actions ───────────────────────────────────────────────────────
   Add to cart was #7c9885, a sage that hovered to teal (#28666e) - not the same
   hue arriving as leaving. One green, and white text that actually passes
   contrast on it: #7c9885 against white is 2.8:1, #1e8449 is 4.6:1.

   Clear cart sits directly under Add to cart on the item page and was neutral
   grey; it empties the basket, so it reads as the destructive red. */
.button.button-add-to-cart,
.button.button-update-cart {
    background: #1e8449;
    color: #ffffff;
    border-radius: 5px;
}
.button.button-add-to-cart:hover,
.button.button-update-cart:hover {
    background: #186a3b;
    color: #ffffff;
}
.button.button-clear-cart {
    background: #bb0a1e;
    color: #ffffff;
    border-radius: 5px;
}
.button.button-clear-cart:hover {
    background: #8f0817;
    color: #ffffff;
}

/* ── 6. Submit buttons ─────────────────────────────────────────────────────
   The modal and form submits - .submit-report, .submit-form, .button-submit -
   were a 52px round blue blob with a `lightgray` tick on `#356582`, and the tick
   only went `white` on :hover. That is why they read as appearing on hover: at
   rest the icon was barely there. There is also a
   `:visited, :active { background-color: transparent !important }` rule, so
   clicking one made it vanish entirely.

   Now a regular green button: 5px corners, the site green, a white tick at rest,
   and the same padding and margin as everything else. font-size drops from 52px
   to 20px - these buttons contain nothing but an <i> glyph, so font-size *is*
   their size, and 52px is what made the circle enormous.

   min-width, because of that: with an icon and no label, 20px 10px alone gives a
   40px-wide, 60px-tall sliver. 60px makes it read as a button.

   !important on the fill and the label: it has to beat the :active rule above,
   which would otherwise blank the button mid-click. */
.submit-report,
.submit-form,
.button-submit,
.submit-report:visited,
.submit-form:visited,
.submit-report:active,
.submit-form:active {
    background: #1e8449 !important;
    background-color: #1e8449 !important;
    color: #ffffff !important;
    border-radius: 5px;
    font-size: 20px;
    min-width: 60px;
    height: auto;
    padding: 20px 10px;
    margin: 5px;
}
.submit-report:hover,
.submit-form:hover,
.button-submit:hover {
    background: #186a3b !important;
    background-color: #186a3b !important;
    color: #ffffff !important;
}

/* The three modal submits that set their colour inline - Cancel Order (#BB0A1E),
   Hold (#E07B00) and Unhold (#2E8B57) - keep it. An inline style outranks any
   selector here, and it should: the confirm button in the Cancel Order modal
   being red is the point of it. They pick up the shape and size, not the green. */

/* The DHL manifest page hid its submit outright - `font-size: 0`, transparent
   text, no background, and a 45px glyph dragged 41px to the left on :after. With
   submits now visible everywhere else, that page follows. */
.courierintegration-dhlmail-manifest .submit-report {
    font-size: 20px;
    color: #ffffff;
    background: #1e8449;
}
.courierintegration-dhlmail-manifest .submit-report:hover {
    background: #186a3b;
}
.courierintegration-dhlmail-manifest .submit-report:after,
.courierintegration-dhlmail-manifest .submit-report:hover:after {
    display: none;
    content: none;
}

/* ── 7. Buttons with no box ────────────────────────────────────────────────
   .button-search (header, footer, entity search) and the modal .close-button are
   transparent glyphs with nothing to round or fill - a fill would put a hard
   square in the middle of the header search field. Their themev2 rules are more
   specific than the .button rule above, so the colour never reaches them; these
   two declarations only keep the new padding and margin off them. */
.button-search,
.close-button {
    padding: 0;
    margin: 0;
}

/* ── 8. Round icon buttons keep their circle ───────────────────────────────
   The BOM add/remove controls and the report-request submit are icon circles by
   design, sized by their glyph. They take the colour, not the corner.

   The report-request button is a submit, so it takes the green rather than the
   grey - same rule as section 6, just keeping its circle. */
#requestReport #request_report_submit {
    background: #1e8449;
}
#requestReport #request_report_submit:hover {
    background: #186a3b;
}
.bom-add-btn {
    background: #777777;
}
.bom-add-btn:hover {
    background: #5e5e5e;
}
.bom-remove-btn {
    background: #bb0a1e;
}
.bom-remove-btn:hover {
    background: #8f0817;
}

/* ── 9. Theme buttons that carried their own colour ─────────────────────────
   .button-submit is not in this list - it is a submit, and section 6 takes it. */
.button-create,
.button-generate,
.button-download,
.button-edit,
.view-more-button,
.button-pause-refresh,
.bom-generate-btn,
.bom-confirm-btn,
.stock-update-lookup-btn,
.sdu-save-btn,
.sdu-csv-btn {
    background: #777777;
    background-color: #777777;
    color: #ffffff;
    border-radius: 5px;
    height: auto;
    padding: 20px 10px;
    margin: 5px;
}
.button-create:hover,
.button-generate:hover,
.button-download:hover,
.button-edit:hover,
.view-more-button:hover,
.button-pause-refresh:hover,
.stock-update-lookup-btn:hover,
.sdu-save-btn:hover,
.sdu-csv-btn:not(:disabled):hover {
    background: #5e5e5e;
    background-color: #5e5e5e;
    color: #ffffff;
}
/* these two carry :not(:disabled):hover earlier in this file, one of them with
   !important - the hover has to be written the same way to reach it */
.bom-generate-btn:not(:disabled):hover,
.bom-confirm-btn:not(:disabled):hover {
    background: #5e5e5e !important;
    color: #ffffff !important;
}

.button-delete-rows,
.bom-remove-all-btn {
    background: #bb0a1e;
    background-color: #bb0a1e;
    color: #ffffff;
    border-radius: 5px;
    height: auto;
    padding: 20px 10px;
    margin: 5px;
}
.button-delete-rows:hover,
.bom-remove-all-btn:hover {
    background: #8f0817;
    background-color: #8f0817;
    color: #ffffff;
}
/* Delete rows is already this red, but as a 20px pill, and it is set at
   (0,3) earlier in this file - matched here so the corner follows the rest */
.dynamic-row-section .actions .button-delete-rows {
    border-radius: 5px;
}

/* ── 10. Dashboard buttons ──────────────────────────────────────────────────
   The recent dashboards (unshipped, failed prints, pushback, bin values, pick
   walk, replenishment, sub-categories, stock update, Amazon listings, cron
   health) each ship a small self-contained button set in their own <style>
   block: a light "ghost" or "export" fill for secondary actions, an accent fill
   for the primary one, 4px corners throughout.

   Only the primary and destructive fills move to the site palette. The light
   secondary fills stay light - they are not primary buttons, and turning twenty
   toggles and resets black would leave those pages solid with black boxes. They
   take the 5px corner and nothing else.

   Colour and corner only here, deliberately not the 20px 10px / 5px sizing. Most
   of these sit inside a table row or a filter bar at 11-13px - .ch-view and
   .ch-kill are two buttons in a cron table cell, .sc-rm is a 34px remove box on a
   mapping row - and giving those a 5px margin would push the rows apart and
   re-wrap the toolbars. The sizing is for the site's own button chrome, where the
   complaint was. Say the word and it extends to these too.

   These need !important: each rule lives in a <style> block in the body, which
   the cascade puts after this file. */
.uns-export,
.fp-btn,
.pw-apply-btn,
.ff-apply-btn,
.create-picks-btn,
.picks-filter-apply,
.picks-submit-btn,
.reassign-submit-btn,
.sc-save,
.sc-transit-save,
#cronhealth .ch-view {
    background: #777777 !important;
    border-color: #777777 !important;
    color: #ffffff !important;
    border-radius: 5px !important;
}
.uns-export:hover,
.fp-btn:hover,
.pw-apply-btn:hover,
.ff-apply-btn:hover,
.create-picks-btn:hover,
.picks-filter-apply:hover,
.picks-submit-btn:hover,
.reassign-submit-btn:hover,
.sc-save:hover,
.sc-transit-save:hover,
#cronhealth .ch-view:hover {
    background: #5e5e5e !important;
    border-color: #5e5e5e !important;
    color: #ffffff !important;
}

/* destructive: kill a cron, delete a listing, remove a mapping row */
#cronhealth .ch-kill,
.amz-btn-delete-listing,
.sc-rm {
    background: #bb0a1e !important;
    border-color: #bb0a1e !important;
    color: #ffffff !important;
    border-radius: 5px !important;
}
#cronhealth .ch-kill:hover,
.amz-btn-delete-listing:hover,
.sc-rm:hover {
    background: #8f0817 !important;
    border-color: #8f0817 !important;
    color: #ffffff !important;
}

/* the one dashboard green, brought onto the site green. #27ae60 with white text is
   2.6:1 - it was the wrong green to put white on. */
.oos-actioned {
    background: #1e8449 !important;
    color: #ffffff !important;
    border-radius: 5px !important;
}
.oos-actioned:hover:not([disabled]) {
    background: #186a3b !important;
    color: #ffffff !important;
}

/* secondary and toggle buttons: corners only, fills untouched */
.oos-btn,
.oos-toggle-btn,
.geo-toggle-btn,
.uns-reset,
.fp-reset,
.fps-reset,
.ae-reset,
.fps-ms-btn,
.amz-btn-crawl,
.amz-btn-unblock,
.pw-zoom-reset,
.ow-beam-toggle,
.sc-add,
.sc-export-btn,
.sdu-add-btn,
.sdu-csv-btn,
.sdu-export-btn,
.sdu-pg-btn,
.sdu-settings-btn,
.search-deferred-btn,
.stock-update-select-all-btn,
.confignav-pager-btn,
#bv-dashboard .bv-btn,
.uns-pagination button {
    border-radius: 5px !important;
}

/* DCV1-2400: tighten the vertical rhythm above the content.

   Note the whitespace here is the theme's margin: 10px 0 20px - .view-actions carried no
   padding at all before this, so the 10px bottom padding is additive. Kept as asked; the
   margin is the lever if it needs to come in further. */
.view-actions {
    padding: 0px 0 10px;
    /* was margin: 10px 0 20px in themev2, which is where the space actually came from */
    margin: 0 0 10px;
}

/* ---- RESULTS SECTION SUBSECTIONS (DCV1-2546) -------------------------------
   Nav_Core_Helper_View::renderResultsSection() renders a nested array as
   .table-subsection - a grey h2 followed by rows inside .table-indent. Neither
   element had a container, and .table-indent had no rules at all, so the
   "indent" never existed and the subsection's rows ran straight into whatever
   followed. On the profit view the Amazon fee breakdown ran into Payment Fee /
   Total Cost / Profit with nothing to show where the breakdown ended.

   Boxing the subsection separates it wherever it appears. That helper has 23
   callers, so this applies to every page using these sections rather than to one
   report.

   The background is the same #b8b8b8 the h2 already uses, so header and body
   read as one block rather than a heading with loose rows under it. Rows carry no
   background of their own, so their text sits straight on the grey - inherited
   #01253b, which reads fine against it. The bottom padding leaves a visible lip
   below the last row so the block has a clear end. */

.table-content .table-subsection:not(.assembly-items) {
    border: 1px solid #c9d1d7;
    border-radius: 4px;
    overflow: hidden;                 /* clips the h2 to the rounded corners */
    margin: 0;
    padding: 0 0 10px;
    background: #b8b8b8;
}

.table-content .table-subsection:not(.assembly-items) > h2 {
    margin: 0;
    border-radius: 0;
    height: auto;                     /* was a fixed 29px, which clipped a long heading */
    min-height: 29px;
    box-sizing: border-box;
}

/* Horizontal breathing room so rows are not flush against the grey edge. No
   bottom padding here - the 10px on the subsection itself provides the lip, and
   setting it in both places would double it. */
.table-content .table-subsection:not(.assembly-items) > .table-indent {
    padding: 2px 8px 0 8px;
}

/* A subsection inside a subsection keeps the same grey and is separated by its own
   border and margin, rather than being tinted a colour nothing else in the theme
   uses. */
.table-content .table-subsection:not(.assembly-items) .table-subsection {
    margin: 8px 0;
}

/* the last row in a subsection should not leave a hanging separator against the
   box edge, if a page's row styling adds one */
.table-content .table-subsection:not(.assembly-items) > .table-indent > .row:last-child {
    border-bottom: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   DCV1-2885 — Prime Eligible Upload, in the Stock Update Settings modal.

   Tokens are taken from the existing sdu-* settings styles above (.68rem uppercase
   section titles in #6b7280, #f1f5f9 hairlines, and the --ok/--err status pair), so this
   section reads as part of the modal rather than a bolt-on. Buttons deliberately join the
   theme's grey button groups earlier in this file instead of carrying their own colour —
   the indigo .sdu-save-btn rule at the top of the sdu block is overridden there, so a new
   indigo button would have been the only indigo control on the screen.
   ───────────────────────────────────────────────────────────────────────────── */
.sdu-csv-help { font-size: .78rem; line-height: 1.5; color: #6b7280; margin: 0 0 .75rem; }

/* Standing warning, not a transient message — the operator needs to know the file is treated as
   the complete list BEFORE they pick one. Uses the same amber as the reset-confirmation result
   state below, so the colour already means "this can remove settings" by the time they see it there. */
.sdu-csv-warn { text-align: left; font-size: .76rem; line-height: 1.5; background: #fef3c7; color: #92400e; border-left: 3px solid #d97706; border-radius: 4px; padding: .55rem .7rem; margin: 0 0 .8rem; }
.sdu-csv-warn strong { display: block; margin-bottom: .2rem; }

/* The format example. A table, because the thing being described IS a table — showing it as
   prose or a code block would make the reader do the parsing themselves. */
.sdu-csv-example { width: auto; min-width: 100%; border-collapse: collapse; font-size: .72rem; margin-bottom: .9rem; }
.sdu-csv-example th,
.sdu-csv-example td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
/* Headers wrap so all five columns fit the modal; the monospace values stay on one line so a
   sku or template name is never split mid-token. */
.sdu-csv-example th { font-weight: 700; color: #6b7280; font-size: .64rem; line-height: 1.25; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sdu-csv-example td { white-space: nowrap; }
.sdu-csv-example td { color: #374151; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sdu-csv-example tr:last-child td { border-bottom: 0; }
.sdu-csv-example__wrap { overflow-x: auto; }
.sdu-csv-note { font-size: .72rem; color: #9ca3af; margin: 0 0 .9rem; }
.sdu-csv-note code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #6b7280; }

.sdu-csv-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
/* Not listed in the shared button group above — it is a native file input, not a button, and it
   owns its own radius so nothing button-shaped can leak onto it. */
.sdu-csv-file { flex: 1 1 14rem; min-width: 0; font-size: .78rem; padding: .3rem; border: 1px dashed #d1d5db; border-radius: 5px; background: none; color: #6b7280; }
.sdu-csv-btn { padding: .45rem 1.1rem; color: #fff; border: none; font-size: .8rem; font-weight: 700; cursor: pointer; }
.sdu-csv-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Result panel. Three states share one box so the section does not jump around as the
   operator moves preview -> confirm -> applied. */
.sdu-csv-result { margin-top: .9rem; font-size: .78rem; border-radius: 6px; padding: .6rem .75rem; display: none; }
.sdu-csv-result--open { display: block; }
.sdu-csv-result--ok   { background: #d1fae5; color: #065f46; }
.sdu-csv-result--warn { background: #fef3c7; color: #92400e; }
.sdu-csv-result--err  { background: #fee2e2; color: #991b1b; }
.sdu-csv-result__hd { font-weight: 700; margin-bottom: .35rem; }
.sdu-csv-result ul { margin: .3rem 0 0; padding-left: 1.1rem; max-height: 11rem; overflow-y: auto; }
.sdu-csv-result li { margin-bottom: .15rem; line-height: 1.45; }

/* The reset confirmation. Deliberately a checkbox the operator has to tick, not a second
   click on the same button: unmanaging listings is the one irreversible thing here. */
.sdu-csv-confirm { display: flex; gap: .45rem; align-items: flex-start; margin-top: .6rem; font-weight: 400; }
.sdu-csv-confirm input { margin: .15rem 0 0; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
    .sdu-csv-btn { transition: none; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   DCV1-2872 — Amazon Feed Throttle section on the Stock Update Dashboard.

   Tokens follow the sdu-* dashboard above: #6b7280 muted labels, #f1f5f9 hairlines, and the
   same #991b1b the error status uses, so a non-zero quota rejection reads as bad without
   needing a legend. The window bar is the only new visual idea and it earns its place: the
   whole point of this section is headroom, which a number alone does not convey at a glance.
   ───────────────────────────────────────────────────────────────────────────── */
/* min(13rem, 100%) rather than a bare 13rem: a fixed minimum track cannot shrink below itself, so on
   a container narrower than 13rem the grid overflows horizontally. CodeAnt on PR #109. */
.sdu-throttle__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: .75rem; }
.sdu-throttle__card { border: 1px solid #f1f5f9; border-radius: 6px; padding: .7rem .8rem; }
.sdu-throttle__region { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6b7280; margin-bottom: .5rem; padding-bottom: .35rem; border-bottom: 1px solid #f1f5f9; }
.sdu-throttle__row { display: flex; justify-content: space-between; align-items: baseline; font-size: .78rem; color: #6b7280; padding: .15rem 0; }
.sdu-throttle__row b { color: #374151; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Matched as `b.--bad`, not `.--bad` alone: `.sdu-throttle__row b` above is (0,1,1) and would
   otherwise out-specify a lone class and silently swallow the warning colour. It did exactly that
   until a computed-style check caught it. */
.sdu-throttle__row b.sdu-throttle__num--bad { color: #991b1b; }
.sdu-throttle__win { margin-top: .55rem; padding-top: .5rem; border-top: 1px solid #f1f5f9; }
.sdu-throttle__winlbl { font-size: .7rem; color: #9ca3af; margin-bottom: .3rem; }
.sdu-throttle__bar { height: 5px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.sdu-throttle__bar span { display: block; height: 100%; background: #6b7280; border-radius: 3px; }

/* ─────────────────────────────────────────────────────────────────────────────
   DCV1-2886 - the Customised item tick box on the DC zero order Lines rows.

   Targets the CONTROL via .row-checkbox, and adds no class to the cell at all: the cell is
   class="form-field small-number", byte-identical to the Qty column, so its width/float/margins
   come from a column that already lays out correctly on this page.

   Earlier attempts declared their own width/float/display against .entity-form-container
   .form-row .form-field rules from default.css - not the stylesheet this page loads - and the
   cell lost its float and dropped onto its own line.
   ───────────────────────────────────────────────────────────────────────────── */
.dynamic-row-section .row-checkbox {
    width: 16px;
    height: 16px;
    /* 12px sits the 16px box on the same optical line as the 40px inputs either side. */
    margin: 12px 0 0;
    cursor: pointer;
}

.dynamic-row-section .row-checkbox:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}



/* ─────────────────────────────────────────────────────────────────────────────
   DCV1-2928 — discontinued overlay on the item card's Stock Summary.

   A discontinued item with stock left reads as perfectly normal on this card. ~29% of the
   catalogue carries the flag (10,144 of 35,369), so this appears often and is styled to
   inform rather than alarm: a light wash rather than a solid block.

   Colours are the DC design system's semantic red trio — rule #D64F45, tint #FDF3F2,
   text #C0392F — rather than an invented red.
   ───────────────────────────────────────────────────────────────────────────── */
.stock-summary-discontinued {
    display: inline-block;
    width: 100%;
}

/* The positioning context for the overlay. Scoped to the table so the note below stays clear. */
.stock-summary-discontinued__table {
    position: relative;
}

/* 14% alpha on the rule red: enough to read as "struck through" at a glance, light enough that
   the quantities underneath stay legible — people still need them to sell the stock through.
   pointer-events:none so the table stays sortable/selectable underneath. */
.stock-summary-discontinued__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    /* TOP-RIGHT, not centred. Every discontinued item has exactly three stock rows (10,144 of
       10,144 on the replica), so a centred badge always lands squarely on one of them and hides
       its quantities with solid red - the precise thing the translucent wash exists to avoid.
       The top strip is .table-wrapper's 38px padding-top, which holds only the title. */
    align-items: flex-start;
    justify-content: flex-end;
    padding: 4px 8px 0 0;
    background: rgba(214, 79, 69, .14);
    pointer-events: none;
}

/* A solid band behind the word, because the table underneath has no consistent background —
   white text alone would drop out over a pale row. Uppercase + tracking is the design system's
   badge treatment; the markup keeps sentence case. */
.stock-summary-discontinued__label {
    padding: 6px 18px;
    border-radius: 4px;
    background: #D64F45;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(19, 21, 25, .08);
}

/* .table-wrapper carries margin-bottom:20px from default.css, which left the note floating away
   from the table it explains. Zeroed here so the two read as one block. */
.stock-summary-discontinued__table .table-wrapper {
    margin-bottom: 0;
}

/* Answers the question the overlay raises: why an item holding stock is not being pushed
   anywhere. Tint background ties it to the overlay without repeating the wash.

   !important because themev2.css (Foundation) sets a bare `p { margin-bottom: 1rem }`, and the
   1rem below is what keeps the next table off the note. */
.stock-summary-discontinued__note {
    margin: 10px 0 1rem 0 !important;
    padding: 8px 12px;
    background: #FDF3F2;
    border: 1px solid rgba(214, 79, 69, .25);
    border-radius: 6px;
    color: #C0392F;
    font-size: 12px;
    line-height: 1.45;
}

/* ============================================================================
   The header's account row: the company selector and the signed-in user.

   ⚠️ ONE POSITIONED ELEMENT, TWO CONTROLS. .header has no flow to lay out in -
   the burger and logo are absolute, the search box is absolute and centred, the
   basket and price-sheet icons are floated right - so each control added to it
   has reached for its own absolute corner. The selector and the user menu both
   reached for the SAME one, top:10px right:20px, and sat on top of each other.

   It was invisible on a one-company environment, because the selector renders
   nothing until there are two - so this was going to appear on production and
   nowhere else. The row is now the only positioned thing; the controls inside
   it are in normal flow and cannot collide by construction. Anything added to
   this corner later goes IN here rather than beside it.

   ⚠️ .header is overflow:hidden and 96px tall, so nothing can escape below it
   and the whole row has to fit inside that: a 34px row at top:10px ends at
   44px, leaving 48..93px for the 45px floated icons. The open menu panel is the
   deliberate exception and uses position:fixed to leave the clip - see DCV1-3443
   below.
   ============================================================================ */
.header-account {
    position: absolute;
    /*
     * ⚠️ calc(), NOT transform: translateY(-50%).
     *
     * Every other control in this header centres on 48px - the burger, the logo and the
     * search box all measured there, while this row sat at 27px and read noticeably high.
     * The obvious centring is top:50% with a translate, and it would BREAK THE OPEN MENU:
     * a transform on an element makes it the containing block for position:fixed
     * descendants, so the panel would stop escaping .header's overflow:hidden and be
     * clipped again - the exact failure the DCV1-3443 note below warns about.
     *
     * #bars centres itself the same way, with top:50% and a negative margin, for its own
     * reasons. Half of this row's 34px is 17px.
     */
    top: calc(50% - 17px);
    right: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    /* Wide enough to read as two controls, tight enough to read as one group. */
    gap: 12px;
    height: 34px;
    line-height: 1;
    /*
     * ⚠️ THE CAP IS WHAT KEEPS THIS OFF THE SEARCH BOX, AND IT IS DERIVED, NOT TUNED.
     *
     * The search box is CENTRED (left:50%, translate(-50%)), so its right edge moves with
     * the viewport while this row is pinned to the right edge. They met: measured at 1680
     * the row cleared it by 106px, at 1440 and at 1200 it OVERLAPPED it by 14px. A fixed
     * breakpoint would fix today's numbers and silently rot the next time the search box
     * is resized, so this is written from the box's own geometry instead:
     *
     *   50vw             its centre
     *   min(310px, 23vw) half its used width - it is width:620px capped at max-width:46vw
     *   32px             the 20px right inset plus a 12px gutter
     *
     * Change the search box's width and this follows it. The two media queries below
     * repeat it only because the box itself changes width there.
     */
    max-width: calc(50vw - min(310px, 23vw) - 32px);
}

/*
 * The name is the one thing here that may shrink. The selector must keep its width or it
 * cuts company names in half, and the avatar is fixed - so the cap above lands entirely on
 * the name, which ellipsises. min-width:0 at every level because a flex item's default
 * min-width is auto, and auto refuses to shrink below its content: without these three the
 * row simply overflows its own max-width and the cap does nothing.
 */
/*
 * ⚠️ THE SELECTOR IS THE ONLY THING THAT GIVES WAY.
 *
 * This used to be a hierarchy: the user's name shrank, then hid, then the company name
 * truncated to pay for it. It existed because the name sat in the bar beside the avatar, and
 * four controls want 552px - which needs a ~1788px viewport before the name is untouched.
 * Managing that produced two real failures on the way: the account control squeezed to ZERO
 * width at 1024 (the only route to logout, gone), and a 6px name at 1440.
 *
 * Moving the name into the open panel deleted the problem rather than tuning it. The three
 * icons are fixed, and the selector absorbs everything - a truncated company name is
 * recoverable, since the colour still codes it and the dropdown holds the full text.
 */
.header-account .entity-bar,
.header-account .header-entity-form { flex: 0 1 auto; min-width: 0; }

/*
 * ⚠️ min-width:0, AND NOT A FLOOR. A floor here does not keep the control readable, it makes
 * it OVERFLOW ITS OWN FORM: the form shrinks with the row, the select refuses to, and the
 * difference lands on whatever sits to the right. Measured at 743px with a 120px floor, the
 * company dropdown covered the account menu by 51px - a control sitting on top of the only
 * route to logout.
 *
 * Narrow and truncated is recoverable: the colour still codes the company and the dropdown
 * holds the full name. Overlapping is not.
 */
#header-entity-select { min-width: 0; max-width: 100%; }
/*
 * The basket and price-sheet icons, restyled to the row they now live in.
 *
 * They were bare 28px/36px outline glyphs in #dadada, floated, with a scale(1.1) hover -
 * fine when they sat alone in a corner, conspicuously the odd ones out next to a 34px
 * selector and a 34px account control. They are the same KIND of thing as the menu trigger
 * (a header control you press), so they take the same treatment: 34px square, the same 5px
 * radius as the search box and selector, the same translucent fill and hover.
 *
 * float is meaningless on a flex item, but both carry float:right from their original rules
 * and leaving it set would mislead the next person to read them. margin:0 likewise - the
 * basket carried a 25px right margin that the row's gap now provides.
 */
.header-account .basket,
.header-account .pricesheet {
    flex: 0 0 auto;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    /* themev2 animates these over a full second. Matched to the trigger's instant hover -
       a 1s fade on a button you are about to click reads as lag, not polish. */
    transition: background-color 0.15s ease;
}

.header-account .basket:hover,
.header-account .pricesheet:hover {
    background: rgba(255, 255, 255, 0.18);
    /* themev2 scales the basket 1.1x on hover. In a fixed-height row that nudges the glyph
       past the button's own edge, so the fill carries the hover instead. */
    scale: none;
}

/* The price sheet wraps its glyph in a link; it has to fill the button or only the glyph
   itself is clickable. */
.header-account .pricesheet a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ============================================================================
   DCV1-3445: the badge, and the disabled pricing sheet.

   Both icons are permanent now. They used to hide themselves when empty, which
   made them invisible affordances - you could not learn the basket existed
   until you had already used it - so the state is shown instead of the control
   being removed.

   ⚠️ position:absolute on the badge, so .header-account is NOT the thing it
   positions against. The row is the positioned ancestor for everything in it,
   so each icon has to establish its own containing block or both badges land
   in the row's top-right corner, stacked on each other.
   ============================================================================ */
.header-account .basket,
.header-account .pricesheet {
    position: relative;
}

.header-tool-badge {
    position: absolute;
    /* Tucked onto the corner rather than over it - at -5px the badge covered enough of the
       basket glyph to blunt it, and the glyph is what tells the two icons apart. */
    top: -7px;
    right: -7px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    /* The header's own near-black, so the badge reads as cut out of the icon
       rather than floating above it. */
    border: 2px solid #16181b;
    box-sizing: content-box;
    background: #C0392F;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

/*
 * The empty pricing sheet. Visible, so the feature is discoverable; inert, because
 * opening it shows an empty page.
 *
 * Dimmed rather than greyed to a different hue - the row is already two shades of
 * white on near-black, and a third colour for "off" would read as a fourth kind of
 * control rather than as this one being unavailable.
 */
.header-account .pricesheet.is-disabled {
    cursor: default;
    opacity: 0.4;
}

.header-account .pricesheet.is-disabled:hover {
    /* Explicitly flat: inheriting the hover fill would promise a click that the
       markup deliberately cannot deliver. */
    background: rgba(255, 255, 255, 0.1);
}

.header-account .pricesheet.is-disabled span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* The basket drawer's empty state. Until DCV1-3445 an empty basket rendered a blank
   box above the View cart / Clear cart buttons. */
.mini-cart-empty {
    margin: 0;
    padding: 24px 10px;
    color: #5b6872;
    font-size: 13px;
    text-align: center;
}

.header-account .basket i,
.header-account .pricesheet i {
    padding: 0;
    /* White to match the name beside them. #dadada read as disabled next to it. */
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
}
/* ⚠️ RIGID, AND THAT IS SAFE ONLY BECAUSE THE NAME IS GONE FROM THE BAR. While the name was
   here this had to be shrinkable, and min-width:0 let it shrink to NOTHING - measured at
   1024, the account control was 0px wide and logout was unreachable. A fixed 34px avatar
   cannot do that. */
.header-account .user-menu { flex: 0 0 auto; }

/* ============================================================================
   DCV1-2727: the site-wide company selector, in the header.

   The block and template shipped in August but were never placed, so this is the
   first CSS it has needed. Rendered as a plain block div it spanned the full width
   and sat under the floated icons.

   It no longer positions itself - .header-account above does, for both controls at
   once. The 34px height here is what keeps the row inside the 96px clipped header.
   ============================================================================ */
.entity-bar {
    display: flex;
    align-items: center;
    margin: 0;
    line-height: 1;
}

.entity-bar .header-entity-form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* 240px sits in the middle of the 200-300px the control was asked to occupy, and
   leaves the two company names it currently holds uncut. */
#header-entity-select {
    width: 240px;
    height: 34px;
    margin: 0;
    border: none;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    font-size: 13px;
    line-height: 34px;
    cursor: pointer;
    /* background-color and color are set inline per company, and inline wins - do not
       declare either here or the colour coding silently stops working. */
}

#header-entity-select:focus {
    outline: 2px solid #ffffff;
    outline-offset: 1px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* DCV1-2727 dropped these from vertically centred to margin-top:48px so they would clear
   the company selector. DCV1-3443 put them IN the row with it instead, so they are centred
   by the row and the offset is gone - see .header-account above. */

/* Narrower viewports: the centred search box shrinks at 1200 and 900, so the selector
   gives up width on the same breakpoints rather than meeting it in the middle. */
/* The search box drops to width:440px / max-width:40vw here, so the cap follows it. */
@media (max-width: 1200px) {
    #header-entity-select { width: 210px; }
    .header-account { max-width: calc(50vw - min(220px, 20vw) - 32px); }
}

/* And to a flat 260px here. The name is hidden below, so the cap only has to clear the
   selector and the avatar. */
@media (max-width: 900px) {
    #header-entity-select { width: 200px; font-size: 12px; }
    .header-account { max-width: calc(50vw - 162px); }
}

/* DCV1-2727 rule 4: the company chooser in a create flow's confirm modal.
   Sits directly above the confirm button - the last thing read before committing. */
.create-entity-chooser {
    margin: 16px auto 4px;
    padding: 12px 14px;
    max-width: 340px;
    background-color: #f6f7f8;
    border: 1px solid #dfe3e6;
    border-radius: 6px;
    text-align: left;
}

.create-entity-label {
    display: block;
    margin-bottom: 6px;
    color: #5b6470;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

#create-entity-select {
    width: 100%;
    height: 34px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #c9cfd4;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.create-entity-note {
    margin: 8px 0 0;
    color: #6b7580;
    font-size: 11px;
    line-height: 1.4;
}

/* Raised by the confirm handler when somebody tries to confirm without choosing. */
.create-entity-note.create-entity-required {
    color: #C0392F;
    font-weight: 600;
}

/* ============================================================================
   DCV1-3443: the signed-in user, in the header.

   ⚠️ THE PANEL IS position:fixed, AND THAT IS NOT A STYLE CHOICE. .header is
   overflow:hidden and 96px tall (measured in the browser - themev2 declares
   55px and something later overrides it, so trust the computed value, not the
   declaration). An absolutely positioned dropdown is clipped the moment it
   opens: it renders, and shows nothing. fixed takes it out of that clipping
   context entirely - measured open, the panel's bottom is 129px against a
   header bottom of 96px.

   That works here only because no ancestor creates a containing block -
   checked, zero ancestors with transform, filter or perspective. The
   off-canvas transform is on .off-canvas.position-left, the drawer itself, not
   on .off-canvas-content. If one is ever added to the content wrapper, fixed
   silently becomes absolute-within-it and this clips again. Check that before
   moving it.

   The panel is positioned from the viewport edge rather than from the trigger,
   because fixed cannot follow an element without JavaScript - and the header is
   a fixed height, so the geometry is known. right:20px matches .header-account's
   own right edge, which is why the panel lines up under the trigger: this menu
   is the LAST item in that row. Put something to the right of it and the panel
   stops agreeing with the trigger - give it its own offset then.

   The trigger itself is not positioned at all - it sits in .header-account's
   flex row, beside the company selector.
   ============================================================================ */
.user-menu {
    line-height: 1;
}

/*
 * The trigger IS the avatar - no label, no box around it.
 *
 * The box existed to hold the avatar and the name together. With the name moved into the
 * panel, a 34px square around a 34px circle is just a square around a circle. Being round is
 * also what separates this from the two square tool icons beside it: those act on the page,
 * this is you.
 *
 * The marker is the disclosure triangle browsers add to <summary>. It says "expandable",
 * which a clickable avatar already says, and it breaks the alignment.
 */
.user-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.user-menu-trigger::-webkit-details-marker { display: none; }
.user-menu-trigger::marker { content: ""; }

/* The avatar carries the hover, since there is no longer a box to light up. */
.user-menu-trigger:hover .user-menu-avatar { background: #4680a0; }

/* Keyboard users get the same outline the company selector beside this uses, so
   the two controls focus alike. */
.user-menu-trigger:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 50%;
}

/* ⚠️ flex:0 0 26px, not width:26px. The row is allowed to shrink (see .header-account),
   and a flex item with only a width set is squashed by it - the circle rendered as a
   visible ellipse at 1440px before this was added. The NAME absorbs the shrink; nothing
   else here may. */
.user-menu-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    transition: background-color 0.15s ease;
    border-radius: 50%;
    background: #356582;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}


.user-menu-panel {
    position: fixed;
    /*
     * A literal px, not a percentage: this is position:fixed, so 50% would resolve against
     * the VIEWPORT height, not the header. Derived from the header - 96px tall, so the
     * centred 34px row runs 31..65 - plus a 6px gap. Re-derive it if the header height
     * changes; it was 50px while the row sat at the top.
     */
    top: 71px;
    right: 20px;
    z-index: 2000;
    min-width: 220px;
    padding: 6px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    color: #16181b;
    font-size: 13px;
}

/* The name, read here rather than in the bar - two initials cannot answer "is this my
   account?", since AH is Alexander Hooson or Adam Hughes. */
.user-menu-fullname {
    margin: 0;
    padding: 8px 10px 2px;
    color: #16181b;
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

/* The address as well as the name, because the name may itself be a fallback - an email
   local part or a NAV login. The address is the one thing always literally true. */
.user-menu-identity {
    margin: 0;
    padding: 0 10px 8px;
    border-bottom: 1px solid #e3e7ea;
    color: #5b6872;
    font-size: 12px;
    word-break: break-all;
}

.user-menu-item {
    display: block;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 4px;
    color: #16181b;
    text-decoration: none;
}
.user-menu-item:hover,
.user-menu-item:focus-visible {
    background: #f1f4f6;
    color: #16181b;
}

/* With JavaScript off <details> still works; with CSS loaded and the panel
   fixed, an open menu must not be left hanging if the viewport is short.
   Note it has no light-dismiss - see the warning in usermenu.phtml. */
@media (max-height: 420px) {
    .user-menu-panel { max-height: 70vh; overflow-y: auto; }
}

/* The breakpoints that used to shrink and then hide the name in the bar are gone with it.
   The trigger is a fixed 34px avatar at every width, so there is nothing left to tune. */

/* DCV1-3691: the header search box's quick results dropdown */
.header-search-quick {
    position: fixed;
    z-index: 1000;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    padding: 6px 0;
    font-size: 14px;
}
.header-search-quick[hidden] { display: none; }
.header-search-quick-heading {
    padding: 8px 16px 4px;
    color: #7b8b95;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.header-search-quick-option {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 16px;
    color: #16181b;
    text-decoration: none;
}
.header-search-quick-option:hover,
.header-search-quick-option.is-active {
    background: #eef3fb;
    color: #16181b;
    text-decoration: none;
}
.header-search-quick-type {
    flex: 0 0 auto;
    min-width: 92px;
    color: #1d59d1;
    font-size: 12px;
    font-weight: 600;
}
.header-search-quick-label { flex: 0 1 auto; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-search-quick-meta { flex: 1 1 auto; color: #7b8b95; font-size: 12px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-search-quick-all { color: #1d59d1; font-weight: 600; }
.header-search-quick-option[data-kind="all"] { border-top: 1px solid #e6e9ec; margin-top: 4px; padding-top: 9px; }
/* typed past what is shown: the rows are no longer choosable until the new answer arrives */
.header-search-quick.is-stale .header-search-quick-option { opacity: 0.45; pointer-events: none; }
.header-search-quick-loading {
    height: 56px;
    background: url(../images/loading.gif) center / 32px no-repeat;
}
