﻿:root {
    --c-green: #9CBB28;
    --c-green-dark-1: #7d894c;
    --c-green-dark-2: #909c56;
    --c-white: #FFF;
    --c-gray-light-1: #EBEBEB;
    --c-gray-light-2: #717A79;
    --c-gray-dark-1: #464E51;
    --c-gray-dark-2: #58585A;
    --c-gray-dark-3: #717A79;
    --c-blue-1: #2f94ff;
    --c-blue-light-1: #D6E6EC;
    --c-blue-light-2: #BAD4ED;
    --c-orange-light-1: #FF8D2A;
    --c-orange-dark-2: #DB7923;
    --weight-extra-thin: 100;
    --weight-extra-light: 200;
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semi-bold: 600;
    --weight-bold: 700;
    --weight-extra-bold: 800;
    --weight-heavy: 900;

    --zindex-modal: 1050;
    --zindex-popover: 1060;
    --zindex-tooltip: 1070;
}

body {
    background-color: var(--c-gray-light-1);
}

button:focus {
    outline-color: initial;
    outline-style: initial;
    outline-width: 0px;
}

select, option, input {
    outline-color: initial;
    outline-style: initial;
    outline-width: 0px;
}

h1, h2, h3, h4, h5, h6, p, label, .font-weight-bold {
    color: var(--c-gray-dark-1);
}

.bg-green {
    color: #fff;
    background-color: var(--c-green);
}
.bg-green .nav-link {
    color: #fff;
}

.bg-dark-gray-2 {
    color: #fff;
    background-color: var(--c-gray-dark-2);
}

.bg-dark-gray-3 {
    color: #fff;
    background-color: var(--c-gray-dark-3);
}

.form-card {
    max-width: 40rem;
}

.card-body-fluid {
    width: 100%;
    padding: 1.25rem;
    margin-right: auto;
    margin-left: auto;
}

.card-header-green {
    color: #fff;
    background-color: var(--c-green);
}

.card-header.collapsing-card > a {
    text-decoration: none;
}

.card-header.collapsing-card .svg-inline--fa {
    transition: .3s transform ease-in-out;
}

.card-header.collapsing-card .collapsed .svg-inline--fa {
    transform: rotate(90deg);
}

.back-to-top {
    cursor: pointer;
    position: fixed;
    bottom: 30px;
    right: 5px;
    display: none;
}

.cursor-pointer {
    cursor: pointer;
}

.icon-center {
    text-align: center !important;
}

/*
 * Bootstrap related fixes/adjustments
 */

.content-wrap {
    padding-bottom: 1.5rem;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: var(--zindex-tooltip);
    height: 1.5rem;
}

.btn:disabled {
    cursor: default;
}

.readonly-primary {
    color: #fff;
    background-color:#717A79;
}
.readonly-secondary {
    color: #495057;
    background-color: #e9ecef;
    font-weight:bold;
}

.bootstrap-select .btn {
    color: #495057;
    background-color: var(--c-white);
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.bootstrap-select .dropdown-item:active {
    color: var(--c-white);
}

.bootstrap-select .dropdown-item.selected:hover {
    color: var(--c-white);
}

.bootstrap-select.show-tick .dropdown-item.selected:hover {
    color: var(--c-gray-dark-1);
}

.bootstrap-select .dropdown-item.selected:hover:active {
    color: var(--c-white);
}

.notification-row {
    margin-left: 0;
    margin-right: 0;
}

.notification-container-left {
    transform: initial;
    width: 0;
    z-index: var(--zindex-tooltip);
}

.notification-container-right {
    transform: initial;
    width: 0;
    margin-left: auto;
    z-index: var(--zindex-tooltip);
}

#notifyAreaLeft {
    position: fixed;
    z-index: var(--zindex-tooltip);
    width: 100%;
}

#notifyAreaRight {
    position: fixed;
    transform: translateX(-100%);
    z-index: var(--zindex-tooltip);
}

.toast {
    min-width: 250px;
}

.toast-primary .toast-header {
    color: var(--c-white);
    background-color: var(--primary);
}

.toast-success .toast-header {
    color: var(--c-white);
    background-color: var(--success);
}

.toast-warning .toast-header {
    color: var(--c-white);
    background-color: var(--warning);
}

.toast-danger .toast-header {
    color: var(--c-white);
    background-color: var(--danger);
}

.toast-info .toast-header {
    color: var(--c-white);
    background-color: var(--info);
}

.toast-primary .close,
.toast-success .close,
.toast-warning .close,
.toast-danger .close,
.toast-info .close {
    color: var(--c-white);
    opacity: 0.85;
}

.popover-body {
    color: var(--c-white);
    background-color: var(--c-gray-dark-3);
}

.popover.bs-popover-top .arrow::after {
    border-top-color: var(--c-gray-dark-3);
}

.popover.bs-popover-bottom .arrow::after {
    border-bottom-color: var(--c-gray-dark-3);
}

.popover.bs-popover-left .arrow::after {
    border-left-color: var(--c-gray-dark-3);
}

.popover.bs-popover-right .arrow::after {
    border-right-color: var(--c-gray-dark-3);
}

div.custom-control-right {
    padding-right: 24px;
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
}

div.custom-control-right .custom-control-label::after {
    right: -1.5rem;
    left: auto;
}

div.custom-control-right .custom-control-label::before {
    right: -2.35rem;
    left: auto;
}

/*
 * Kendo related fixes/adjustments
 */
.k-grid-toolbar {
    padding: 0.35em;
}

.k-grouping-header {
    padding: 0.35em;
}

.k-menu .k-item>.k-link{
    padding: 0.35em;
}

.k-grid-content {
    resize: vertical;
    height: 550px;
}

.k-grid td {
    padding: 0.25em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

th.k-header .k-link {
    background-color: inherit;
}

th.k-header .k-link:hover {
    background-color: inherit;
}

.k-master-row {
    background-color: white;
}

.k-grid-content-sticky {
    background-color: inherit;
}

/* Grid toolbar buttons carrying a Font Awesome glyph rather than a .k-icon, which is what
   normally supplies the alignment and the gap before the label. */
.k-button-icontext.wos-toolbar-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.k-pager-wrap {
    padding: 0.15em;
}

.k-calendar-view .k-state-selected {
    background-color: var(--c-blue-1);
}

.k-calendar-view .k-state-selected .k-link {
    color: var(--c-white);
}

.k-grid-search .k-i-search {
    color: var(--c-gray-light-2);
}

.grid-column-menu .k-header-column-menu {
    height: 35px;
    visibility: hidden;
    position: absolute;
    left: 0;
}

.k-datetimepicker .k-input {
    border-radius: 0.25rem;
    background-color: #FFF;
}

.k-input:focus {
    border-color: #80bdff !important;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.filter-bar {
    background-color: #fafafa;
}

.filter-item {
    display: inline-block;
    outline: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    color: #FFF;
    background-color: #445ae3;
}

.filter-close {
    color: #FFF;
    background-color: transparent;
    border: 0;
    padding: 0;
    font-size: 1rem;
}

.filter-close:hover {
    color: #EBEBEB;
}

span.k-widget {
    border: none;
}

input.kendo-autocomplete {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

select.kendo-multiselect {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.k-list-scroller .k-item.k-state-selected {
    color: #fff;
    background-color: #aacae9;
    border-color: #92bbe2;
}

.k-list-scroller .k-item.k-state-selected:hover {
    background-color: #92bbe2;
}

/* ===== Kendo Grid checkboxes ============================================
   Styling for the checkboxes rendered by `selectable: true` columns and
   the master select-all checkbox in the header. Default kendo styling is
   bare; this matches the project's blue theme and makes hit targets
   bigger so they're easier to tap. */
.k-grid .k-checkbox,
.k-grid .k-grid-header .k-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1.5px solid var(--c-gray-light-2);
    background-color: var(--c-white);
    cursor: pointer;
    transition: border-color 0.12s ease-in-out, background-color 0.12s ease-in-out, box-shadow 0.12s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    vertical-align: middle;
    margin: 0;
}

.k-grid .k-checkbox:hover,
.k-grid .k-grid-header .k-checkbox:hover {
    border-color: var(--c-blue-1);
}

.k-grid .k-checkbox:focus,
.k-grid .k-grid-header .k-checkbox:focus {
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(47, 148, 255, 0.35);
}

.k-grid .k-checkbox:checked,
.k-grid .k-checkbox.k-checked,
.k-grid .k-grid-header .k-checkbox:checked,
.k-grid .k-grid-header .k-checkbox.k-checked {
    background-color: var(--c-blue-1);
    border-color: var(--c-blue-1);
}

.k-grid .k-checkbox:checked::after,
.k-grid .k-checkbox.k-checked::after,
.k-grid .k-grid-header .k-checkbox:checked::after,
.k-grid .k-grid-header .k-checkbox.k-checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--c-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.k-grid .k-checkbox:indeterminate,
.k-grid .k-checkbox.k-indeterminate,
.k-grid .k-grid-header .k-checkbox:indeterminate,
.k-grid .k-grid-header .k-checkbox.k-indeterminate {
    background-color: var(--c-blue-1);
    border-color: var(--c-blue-1);
}

.k-grid .k-checkbox:indeterminate::after,
.k-grid .k-checkbox.k-indeterminate::after,
.k-grid .k-grid-header .k-checkbox:indeterminate::after,
.k-grid .k-grid-header .k-checkbox.k-indeterminate::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 7px;
    width: 10px;
    height: 2px;
    background-color: var(--c-white);
    border: 0;
    transform: none;
}

.k-grid .k-checkbox:disabled,
.k-grid .k-grid-header .k-checkbox:disabled {
    background-color: var(--c-gray-light-1);
    border-color: var(--c-gray-light-1);
    cursor: not-allowed;
}

/* Highlight the row for selected rows so the checkbox state is reinforced
   visually; row selection still drives the checkbox via kendo. */
.k-grid tr.k-state-selected > td {
    background-color: rgba(47, 148, 255, 0.08);
}

.vr {
    display: inline-block;
    align-self: stretch;
    vertical-align: middle;
    width: 1px;
    min-height: 1em;
    background-color: currentColor;
    opacity: 0.25;
}

.blog-card {
    aspect-ratio: 1.586; /* Maintain aspect ratio */
    overflow: hidden;
    position: relative;
}

.gradient-overlay {
    position: absolute;
    bottom: 43px;
    left: 0;
    width: 100%;
    height: 20%; /* Cover the entire card-body */
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.Releases {
    background: linear-gradient(to left, #4CAF50, #8BC34A);
}

.HowTos {
    background: linear-gradient(to left, #2f94ff, #5eb8ff);
}

.News {
    background: linear-gradient(to left, #ffc200, #ffd54f);
}

/* ============================================
   Three-Way Switch Component Styles
   ============================================ */

.three-way-switch-container {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.three-way-switch-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #495057;
}

.three-way-switch {
    display: inline-block;
}

.switch-track {
    display: flex;
    position: relative;
    background-color: #e9ecef;
    border-radius: 0.375rem;
    padding: 0.125rem;
    border: 1px solid #ced4da;
    user-select: none;
}

.switch-option {
    position: relative;
    z-index: 2;
    padding: 0.375rem 0.75rem;
    min-width: 4.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
    font-size: 0.875rem;
    color: #6c757d;
}

    .switch-option:hover:not(.active) {
        color: #495057;
    }

    .switch-option.active {
        color: #fff;
        font-weight: 500;
    }

.switch-option-label {
    position: relative;
    z-index: 2;
}

/* The sliding background indicator */
.switch-slider {
    position: absolute;
    top: 0.125rem;
    bottom: 0.125rem;
    width: calc(33.333% - 0.083rem);
    background-color: #6c757d;
    border-radius: 0.25rem;
    transition: transform 0.25s ease, background-color 0.25s ease;
    z-index: 1;
}

/* Slider positions based on active state - using :has() for modern browsers */
.switch-track:has(.switch-off.active) .switch-slider {
    transform: translateX(0);
    background-color: #dc3545; /* Bootstrap danger/red for "Off" */
}

.switch-track:has(.switch-neutral.active) .switch-slider {
    transform: translateX(100%);
    background-color: #6c757d; /* Bootstrap secondary/gray for "Neutral" */
}

.switch-track:has(.switch-on.active) .switch-slider {
    transform: translateX(200%);
    background-color: #28a745; /* Bootstrap success/green for "On" */
}

/* Fallback for browsers without :has() support - uses JS-added classes */
.switch-track.state-off .switch-slider {
    transform: translateX(0);
    background-color: #dc3545;
}

.switch-track.state-neutral .switch-slider {
    transform: translateX(100%);
    background-color: #6c757d;
}

.switch-track.state-on .switch-slider {
    transform: translateX(200%);
    background-color: #28a745;
}

/* Disabled state */
.three-way-switch.disabled .switch-track {
    opacity: 0.6;
    pointer-events: none;
}

.three-way-switch.disabled .switch-option {
    cursor: not-allowed;
}

/* Focus styles for accessibility */
.three-way-switch:focus-within .switch-track {
    outline: 2px solid #80bdff;
    outline-offset: 2px;
}

/* Compact variant */
.three-way-switch.compact .switch-option {
    padding: 0.25rem 0.5rem;
    min-width: 3rem;
    font-size: 0.75rem;
}

/* Alternative color schemes */
.three-way-switch.theme-blue .switch-track:has(.switch-off.active) .switch-slider,
.three-way-switch.theme-blue .switch-track.state-off .switch-slider {
    background-color: #6c757d;
}

.three-way-switch.theme-blue .switch-track:has(.switch-on.active) .switch-slider,
.three-way-switch.theme-blue .switch-track.state-on .switch-slider {
    background-color: #007bff;
}

/* Override indicator - subtle visual hint that this is an override control */
.three-way-switch-container.is-override .switch-track {
    border-color: #ffc107;
    border-width: 2px;
}

.three-way-switch-container.is-override .three-way-switch-label::after {
    content: " (Override)";
    font-size: 0.75rem;
    color: #856404;
    font-weight: normal;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .switch-option {
        padding: 0.375rem 0.5rem;
        min-width: 3.5rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   Card Header — Grid-Toolbar-Style Action Buttons
   ============================================
   Drop a `.card-header-actions` div inside any `.card-header` to host
   buttons that visually match the Kendo grid toolbar buttons. Buttons
   should use `.k-button.k-button-icontext`. Add `.icon-only` to a
   button that has no text label so it renders as a square. */

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header-actions .k-button {
    color: #ffffff;
    background-color: var(--c-green-dark-2);
    border-color: var(--c-green-dark-2);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 0.85rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1;
}

.card-header-actions .k-button:hover {
    color: #ffffff;
    background-color: var(--c-green-dark-1);
    border-color: var(--c-green-dark-1);
    box-shadow: none;
}

.card-header-actions .k-button.icon-only {
    width: 36px;
    padding: 0;
}

.card-header-title,
.card-header > h1,
.card-header > div > h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

/* When the host card header is bg-green, the title should read white */
.card-header.bg-green .card-header-title {
    color: #ffffff;
}

/* ============================================
   Keyboard-Shortcut Helper Badge
   ============================================
   `<span class="kbd-badge">Ctrl+S</span>` renders a small inline pill
   showing a keyboard shortcut. Auto-adjusts contrast against common
   button background colors. */

.kbd-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.12);
    color: inherit;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    margin-left: 0.4rem;
    line-height: 1.2;
    opacity: 0.85;
    white-space: nowrap;
}

.k-button .kbd-badge {
    background: rgba(0, 0, 0, 0.08);
    color: #495057;
}

.btn-primary .kbd-badge,
.btn-info .kbd-badge,
.btn-success .kbd-badge,
.btn-warning .kbd-badge,
.btn-danger .kbd-badge,
.card-header-actions .k-button .kbd-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* ============================================
   Icon-Only Action Buttons
   ============================================
   `.icon-action-btn` is a layout helper for tight rows of icon-only
   buttons (like the Allocate/Hold/Release toolbar on the Orders edit
   page). It centers the icon so the button doesn't read as right-heavy.
   Buttons that *also* have a text label should put `mr-1` (or similar)
   on the icon directly so spacing remains consistent. */

.icon-action-btn {
    margin-right: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-action-btn > i {
    margin-right: 0;
}

.icon-action-btn:last-child {
    margin-right: 0;
}

/* ============================================
   Section Cards (card-style tabs)
   ============================================
   A flexible replacement for Bootstrap nav-tabs. Each card switches a
   sibling `.section-pane` into view based on its `data-target` attribute.
   The active card and its companion pane both get the `.active` class.

   Usage:
     <div class="section-cards">
       <div class="section-card active" data-target="lines-pane" tabindex="0" role="button">
         <div class="section-card-icon"><i class="fa fa-list"></i></div>
         <div class="section-card-body">
           <div class="section-card-label">Lines</div>
           <div class="section-card-value">12 <span class="section-card-sub">units</span></div>
         </div>
       </div>
       ...
     </div>
     <div class="section-pane active" id="lines-pane">...</div>
     <div class="section-pane" id="other-pane">...</div>

   Pane switching is the host page's responsibility — there is no
   global JavaScript wired to these classes. */

.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.6rem;
}

.section-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease;
    outline: none;
}

.section-card:hover {
    border-color: #adb5bd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.section-card:focus-visible {
    border-color: var(--c-green);
    box-shadow: 0 0 0 3px rgba(156, 187, 40, 0.25);
}

.section-card.active {
    border-color: var(--c-green);
    box-shadow: inset 0 0 0 1px var(--c-green);
    background: #f7fcef;
}

/* Display-only stat cards that don't switch panes - strip the clickable affordances. */
.section-card.is-static {
    cursor: default;
}

.section-card.is-static:hover,
.section-card.is-static:focus-visible {
    border-color: #e9ecef;
    box-shadow: none;
}

/* Stacked "which of these did you mean" buttons for chooser modals. Same visual language as
   .section-card - neutral until you reach for it, green on intent - rather than a coloured
   button per option, which reads as a warning before the choice has been made. */
.wos-choice-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    background: var(--c-white);
    border: 1px solid #adb5bd;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--c-gray-dark-1);
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.wos-choice-btn:hover {
    border-color: var(--c-green);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    color: var(--c-gray-dark-1);
}

.wos-choice-btn:focus-visible {
    border-color: var(--c-green);
    box-shadow: 0 0 0 3px rgba(156, 187, 40, 0.25);
    outline: none;
}

.wos-choice-btn-chevron {
    color: var(--c-gray-light-2);
    transition: color 0.12s ease;
}

.wos-choice-btn:hover .wos-choice-btn-chevron {
    color: var(--c-green);
}

.section-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f3f5;
    color: var(--c-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.section-card.active .section-card-icon {
    background: var(--c-green);
    color: #ffffff;
}

.section-card-body {
    min-width: 0;
    line-height: 1.15;
}

.section-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    font-weight: 600;
}

.section-card-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
    margin-top: 0.1rem;
}

.section-card-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #868e96;
    margin-left: 0.25rem;
}

/* Separator between metric pairs in a dual-metric card value (e.g. the
   " / " between "5 total" and "12 units"). Matches .section-card-sub's
   muted weight/color so it doesn't compete with the bold numbers. */
.section-card-sep {
    font-size: 0.75rem;
    font-weight: 500;
    color: #868e96;
}

/* ============================================
   Stat Strip (read-only figures)
   ============================================
   Reuses the section-card markup for numbers that are purely
   informational. Users must be able to tell at a glance that these are
   not tabs, so the group renders as one recessed panel divided by
   hairlines rather than a row of separate cards: no per-item chrome, no
   hover or focus affordance, and a muted inline glyph in place of the
   filled icon tile.

   Usage: add `is-stat-strip` to the `.section-cards` container and
   `is-static` to every card inside it.

     <div class="section-cards is-stat-strip">
       <div class="section-card is-static">...</div>
       ...
     </div> */

.section-cards.is-stat-strip {
    display: flex;
    gap: 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0 0.15rem;
}

.section-cards.is-stat-strip .section-card {
    flex: 1 1 0;
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0.6rem 0.9rem;
    gap: 0.55rem;
}

.section-cards.is-stat-strip .section-card + .section-card {
    border-left: 1px solid #e3e6e8;
}

/* Plain glyph — the filled tile is what makes a tab card look pressable. */
.section-cards.is-stat-strip .section-card-icon {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    color: #adb5bd;
    font-size: 1rem;
}

/* Stack on narrow screens so the figures never squeeze; dividers follow. */
@media (max-width: 767.98px) {
    .section-cards.is-stat-strip {
        flex-direction: column;
    }

    .section-cards.is-stat-strip .section-card + .section-card {
        border-left: 0;
        border-top: 1px solid #e3e6e8;
    }
}

/* Modal section cards — slightly tighter for modal dialogs. */
.modal-section-cards {
    margin-bottom: 0.75rem;
}

.modal-section-cards .section-card-value {
    font-size: 0.95rem;
}

/* Section panes — only the active one is visible. */
.section-pane {
    display: none;
}

.section-pane.active {
    display: block;
}

/* ============================================
   Summary Header Hovercards
   ============================================
   Rich cards shown when the pointer or keyboard focus rests on one of the
   Orders/Edit summary inputs. One `.wos-hovercard-item` per batch or cart
   type; the card is only rendered when there is at least one of either, so it
   can never open empty. */

/* Fixed rather than absolute: the card is placed in viewport coordinates, so
   no scrolling or overflow-clipped ancestor of the summary block can cut it
   off. It closes on scroll, so it can never drift away from its input. */
.wos-hovercard {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--zindex-popover);
    width: 380px;
    max-width: calc(100vw - 16px);
    background-color: var(--c-white);
    border: 1px solid #d7dbe0;
    border-radius: 9px;
    box-shadow: 0 10px 30px -10px rgba(11, 11, 11, 0.3);
    overflow: hidden;
    text-align: left;
    line-height: 1.45;
    color: var(--c-gray-dark-1);
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.wos-hovercard.is-open {
    opacity: 1;
    transform: none;
}

/* The fade is decoration; the card still has to appear for anyone who has asked
   the system to hold still. */
@media (prefers-reduced-motion: reduce) {
    .wos-hovercard {
        transition: none;
        transform: none;
    }
}

/* An input only carries the attribute when it has something to show, so the
   cursor is the hover affordance and a zero count keeps an ordinary field. */
#advHeaderSummary input[data-hovercard] {
    cursor: help;
}

.wos-hovercard-item {
    padding: 12px 14px;
}

/* A hairline between entries rather than around them: the card is one surface,
   and boxing each entry would read as a list of cards. */
.wos-hovercard-item + .wos-hovercard-item {
    border-top: 1px solid #f0f0ed;
}

/* Baseline alignment sits the smaller facts on the title's baseline, and the
   flex gap is what spaces them, so the separator dots need no margins. */
.wos-hovercard-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.86rem;
}

/* The brand green sits at 2.14:1 against white, so the title uses the deeper
   shade of the same hue to stay legible as a link. */
.wos-hovercard-title {
    font-weight: var(--weight-semi-bold);
    color: #6E8C1B;
    text-decoration: none;
}

.wos-hovercard-title:hover,
.wos-hovercard-title:focus {
    color: #4B6112;
    text-decoration: underline;
}

/* Smaller than the label it follows and one step muted, so the new-tab mark reads
   as part of the link rather than a second fact competing with the name. Scoped
   under the title so it also wins against the FontAwesome kit's inline SVG rules,
   which are more specific than a bare class. */
.wos-hovercard-title .wos-hovercard-title-icon {
    font-size: 0.68em;
    margin-left: 0.35em;
    vertical-align: baseline;
    opacity: 0.7;
}

.wos-hovercard-sep {
    color: #c9c7c0;
}

.wos-hovercard-fact {
    font-size: 0.78rem;
    color: #52514e;
}

.wos-hovercard-meta {
    font-size: 0.74rem;
    color: #898781;
    margin: 4px 0 7px;
}

/* The track takes the width that is left after the percentage, so the number sits
   at a fixed right-hand edge no matter how wide the card's other lines run. */
.wos-hovercard-meter-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Two segments with a gap between them; a gap rather than a stroke, so neither
   segment carries a border that would misread as part of the fill. */
.wos-hovercard-meter {
    display: flex;
    flex: 1 1 auto;
    gap: 2px;
    height: 7px;
}

.wos-hovercard-meter-value {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    color: #898781;
}

.wos-hovercard-meter-done {
    background-color: #6E8C1B;
    border-radius: 5px;
}

.wos-hovercard-meter-remaining {
    background-color: #c4c8cb;
    border-radius: 5px;
}

.wos-hovercard-foot {
    font-size: 0.72rem;
    color: #898781;
    margin-top: 6px;
}
