
@media(max-width: 768px) {
    .btn-mobile-full-width {
        width: 100%;
        margin-top: 2px;
    }
}

.novafox-login-bg {
    background: rgb(125,55,0);
    background: url('/images/loginarty.png'), #202020;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
}

.novafox-login-box {
    padding:10px 10px;
    background: rgba(30, 25, 25, 0.59);
    border:1px #1E1919FF;
    border-radius: 10px;
    box-shadow:0 0 15px rgba(71, 71, 71, 0.59);
}

.novafox-gradient-bg {
    background: rgb(125,55,0);
    background: linear-gradient(180deg, rgb(92, 35, 0) 0%, rgba(255,111,0,1) 120%);
}

.novafox-gradient-blacktoorange-bg {
    background: rgb(30,25,25);
    background: linear-gradient(180deg, rgb(30, 25, 25) 0%, rgba(255,111,0,1) 120%);
}

.novafox-orange-bg {
    background:#ff6f00 !important;
}
.novafox-darkorange-bg {
    background:#5C2300FF !important;
}
.novafox-dark-bg {
    background: #332a26 !important;
}

.novafox-orange-bg-subtle {
    background: rgb(255, 176, 114);
}

.novafox-gradient-bg-subtle {
    background: rgb(163, 119, 98);
    background: linear-gradient(180deg, rgb(255, 111, 0) 0%, rgb(253, 143, 57) 50%);
}

.novafox-gray-bg {
    background:#1e1919;
    background-color:#1e1919;
}

.novafox-orange-fg {
    color:#ff6f00 !important;
}

.btn-novafox-orange {
    --bs-btn-color: #fff;
    --bs-btn-bg: #ff6f00;
    --bs-btn-border-color: #ff6f00;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d6895c;
    --bs-btn-hover-border-color: #d6895c;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ff6f00;
    --bs-btn-active-border-color: #ff6f00;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #434343;
    --bs-btn-disabled-bg: #777574;
    --bs-btn-disabled-border-color: #777574;
}

/* LEFT MENU */
.novafox-sidebar-brand {
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

.novafox-sidebar-job-search {
    padding: 10px 16px 0 !important;
}

.novafox-sidebar-job-search + .sidebar-wrapper nav {
    margin-top: 0 !important;
}

.novafox-sidebar-job-search + .sidebar-wrapper {
    padding-top: 10px !important;

}

.novafox-sidebar-job-search .input-group {
    width: 100%;
    height: 32px;
}

.novafox-sidebar-job-search .input-group > .dropdown {
    display: flex;
    height: 32px;
}

.novafox-sidebar-job-search .sidebar-search-type-button {
    width: 50px;
    padding: 0 7px;
    background-color: #212529 !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 0.375rem 0 0 0.375rem;
    color: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
}

.novafox-sidebar-job-search .sidebar-search-type-button .bi-search {
    font-size: 0.9rem;
}

.novafox-sidebar-job-search .sidebar-search-type-button:hover,
.novafox-sidebar-job-search .sidebar-search-type-button:focus,
.novafox-sidebar-job-search .sidebar-search-type-button.show {
    background-color: #212529 !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff;
    box-shadow: 0 0 0 0.15rem rgba(255, 111, 0, 0.18);
}

.novafox-sidebar-job-search .input-group-text,
.novafox-sidebar-job-search .form-control {
    background-color: #212529 !important;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    height: 32px;
}

.novafox-sidebar-job-search .input-group-text {
    width: 36px;
    justify-content: center;
    padding: 0;
}

.novafox-sidebar-job-search .form-control {
    min-width: 0;
    padding: 0 8px;
    font-size: 0.875rem;
    border-radius: 0 0.375rem 0.375rem 0;
}

.novafox-sidebar-job-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.novafox-sidebar-job-search .form-control:focus {
    background-color: #212529 !important;
    color: #fff;
    border: 0;
    box-shadow: 0 0 0 0.15rem rgba(255, 111, 0, 0.18);
}


.novafox-menu-seperator {
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

.novafox-sub-menu {
    background-color: rgba(255, 255, 255, 0.05);
}
.novafox-sub-button {
    background-color: rgba(255, 111, 0, 0.1);
}

.novafox-hascount-bg {
    background-color: rgba(255, 111, 0, 0.62);
}
.novafox-nocount-bg {
    background-color: rgba(255, 255, 255, 0.3);

}

/* LOGIN */
.novafox-login-card-body {
    background:#220f00;

}

/* NOVAFOX COMPONENT CONTROLS */

/* AdminLTE reserves a 0.75rem bottom gutter inside every page's main area.
   Keep the shared layout flush so short pages and table containers do not
   show an unexplained strip beneath their content. */
.app-main {
    padding-bottom: 0;
}

/* The fixed AdminLTE sidebar height does not account for NovaFox's job-search
   block between the brand and menu. Let the menu fill the remaining sidebar
   space instead of creating a height mismatch at the bottom of the layout. */
@media (min-width: 992px) {
    body.layout-fixed.sidebar-expand-lg .app-sidebar {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    body.layout-fixed.sidebar-expand-lg .app-sidebar .sidebar-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        overflow-y: auto;
        scrollbar-width: none;
    }

    body.layout-fixed.sidebar-expand-lg .app-sidebar .sidebar-wrapper::-webkit-scrollbar {
        display: none;
    }
}

/*Accordion*/

.novafox-accordion-button {
    background: linear-gradient(135deg, var(--novafox-accent-dark), var(--novafox-accent)) !important;
    color:#fff;
    padding-top: 10px;
    padding-bottom:10px;
    --bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")
}
.novafox-accordion-button:focus {
    border:none !important;
    box-shadow: none !important;
}
.novafox-accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--novafox-accent-dark), var(--novafox-accent)) !important;
    --bs-accordion-active-color: #fff;
}

.novafox-accordion-section {
    margin-bottom: .75rem;
}

/* Service Flow accordions are rendered open on the detail page. Keep the
   panels in normal document flow so a stale collapse transition cannot leave
   the page with two headers and an empty content area. */
.novafox-flow-page .flow-accordion-panel.show {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
}

.novafox-flow-page .app-content {
    min-height: 0;
}

/* The flow tabs and their filter bar share the same card content inset. The
   global subnavigation normally uses negative margins for full-width pages,
   so reset them here to keep both horizontal rules aligned. */
.novafox-flow-page #flowFilterBar {
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 0 .5rem !important;
}

/*Tabs*/
.novafox-tabs {
    --bs-nav-link-padding-y: 0.2rem;
    --bs-nav-link-color: #1e1919 !important;
    --bs-nav-link-hover-color: #1e1919 !important;
}

.novafox-tabs-link {
    --bs-nav-tabs-link-active-color: #fff !important;
    --bs-nav-tabs-link-active-bg: #6c757d !important;
}

.novafox-tabs-link-highlight {
    --bs-nav-tabs-link-active-color: #fff !important;
    --bs-nav-tabs-link-active-bg: var(--bs-primary) !important;
    background-color: var(--bs-primary-bg-subtle);
    color: #fff !important;
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
}
.novafox-tabs-link-highlight-yellow {
    --bs-nav-tabs-link-active-color: #fff !important;
    --bs-nav-tabs-link-active-bg: var(--bs-orange) !important;
    background-color: var(--bs-warning-bg-subtle);
    color: #fff !important;
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
}
.novafox-tabs-link-highlight-orange {
    --bs-nav-tabs-link-active-color: #fff !important;
    --bs-nav-tabs-link-active-bg: var(--bs-orange) !important;
    background-color: var(--bs-warning-bg-subtle);
    color: #fff !important;
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
}

.novafox-tabs-link-highlight-green {
    --bs-nav-tabs-link-active-color: #fff !important;
    --bs-nav-tabs-link-active-bg: var(--bs-success) !important;
    background-color: var(--bs-success-bg-subtle);
    color: #fff !important;
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
}

.novafox-tabs-link-highlight-purple {
    --bs-nav-tabs-link-active-color: #fff !important;
    --bs-nav-tabs-link-active-bg: #a271ca !important;
    background-color: #dfc2f1;
    color: #fff !important;
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
}

/* Marketplace Colors */
.amazon-text {
    color:#000000;
}

.amazon-icon {
    color:#FF9900;
    padding-right:2px;
}

.shopify-text {
    color:#000000;
}

.shopify-icon {
    color: #0f9700;
    padding-right:2px;
}



/* Tables */
.novafox-create-card {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    border-color: var(--bs-secondary-color) !important;
}

.novafox-create-card .novafox-create-shortcut {
    position: absolute;
    bottom: .65rem;
    left: 50%;
    transform: translateX(-50%);
    min-width: 1.35rem;
    padding: .15rem .45rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .25rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    color: var(--bs-secondary-color, #6c757d);
    font-size: .75rem;
    line-height: 1.1;
    white-space: nowrap;
}

.novafox-create-card:hover,
.novafox-create-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--bs-box-shadow-lg) !important;
    background-color: var(--bs-light-bg-subtle);
}

.novafox-table {
    --bs-table-bg: transparent !important;

}

.novafox-create-card > .card-body > i {
    color: var(--bs-secondary-color) !important;
    font-size: 2rem !important;
}

.novafox-user-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
}

.novafox-user-initials--large {
    width: 4rem;
    height: 4rem;
    margin-bottom: .35rem;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 1.35rem;
}

/* Line tables use the Sales Order surface: one clear outer edge with the
   normal lightweight row separators left inside the table. */
.novafox-table--outer-border {
    border: 1px solid var(--bs-border-color) !important;
    border-radius: .35rem;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.novafox-table--outer-border > tbody > tr:last-child > *,
.novafox-table--outer-border > tfoot > tr:last-child > * {
    border-bottom: 0 !important;
}

/* Dense data-entry tables keep rows compact without shrinking their controls. */
.novafox-table--compact > :not(caption) > * > * {
    padding-bottom: .45rem;
    padding-top: .45rem;
}

.novafox-table--compact {
    margin-bottom: .25rem;
}

.novafox-table-section {
    padding-bottom: .25rem !important;
}

.novafox-table--standalone {
    margin-top: .70rem;
}

/*.novafox-table-section--readonly {
    padding-top: .75rem !important;
}*/

.novafox-table--readonly > :not(caption) > tr:not(.sales-stock-detail-row) > :first-child,
.novafox-table--readonly > :not(caption) > tr:not(.sales-stock-detail-row) > :last-child {
    display: none;
}

.novafox-table--no-order-lines > :not(caption) > * > :first-child,
.novafox-table--no-order-lines > :not(caption) > * > :last-child {
    display: none;
}

.profit-margin-hidden .profit-margin-column {
    display: none !important;
}

.novafox-table-total-row .profit-margin-column {
    text-align: center !important;
}

/* Read-only rows do not need a wide SKU field; give the description and totals
   the reclaimed space while keeping the SKU readable. */
#salesLineTable.novafox-table--readonly > thead > tr > th:nth-child(4),
#salesLineTable.novafox-table--readonly > tbody > tr:not(.sales-stock-detail-row) > td:nth-child(4) {
    width: 90px;
    min-width: 90px;
    max-width: 120px;
}

#salesLineTable.novafox-table--readonly > tbody > tr:not(.sales-stock-detail-row) > td:nth-child(4) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novafox-table-total-row > * {
    background: var(--bs-tertiary-bg) !important;
    font-weight: 700;
}

/* GENERIC FORMATS */
.text-small {
    font-size:0.875rem;
}
.text-x-small {
    font-size:0.775rem;
}

/* Compact form controls for dense data-entry surfaces. */
.form-control-xs,
.form-select-xs {
    min-height: calc(1.5em + .25rem + calc(var(--bs-border-width) * 2));
    padding: .125rem .375rem;
    font-size: .75rem;
    border-radius: var(--bs-border-radius-sm);
}

.form-select-xs {
    padding-right: 1.75rem;
    background-position: right .375rem center;
    background-size: 12px 9px;
}

textarea.form-control-xs {
    min-height: calc(1.5em + .25rem + calc(var(--bs-border-width) * 2));
}

/* Keep autocomplete suggestions above the search grid without changing row height. */
.novafox-stock-search-panel .novafox-stock-search-primary > div,
.novafox-stock-search-panel .novafox-stock-search-refine > div {
    position: relative;
}

.novafox-stock-search-panel .bootstrap-autocomplete {
    position: absolute !important;
    z-index: 1080;
    width: 100% !important;
    margin-top: .15rem;
}

/* Keep line-item suggestions anchored to the active table cell and give them room for SKU text. */
.novafox-table td:has(.lineitemno) {
    position: relative;
}

.novafox-table td .bootstrap-autocomplete {
    position: fixed !important;
    z-index: 1080;
    min-width: min(720px, calc(100vw - 1rem));
    width: min(720px, calc(100vw - 1rem)) !important;
    margin-top: .15rem;
}

.novafox-table td:has(.lineitemno.novafox-line-item-searching)::after {
    position: absolute;
    top: 50%;
    right: .65rem;
    width: .9rem;
    height: .9rem;
    margin-top: -.45rem;
    border: .15rem solid var(--bs-border-color);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    animation: novafox-line-item-spin .7s linear infinite;
}

@keyframes novafox-line-item-spin {
    to { transform: rotate(360deg); }
}

.novafox-line-item-dropdown {
    padding: 0 !important;
    max-height: calc(100vh - 1rem);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    border-color: rgba(15, 23, 42, .2);
    box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .24), 0 .25rem .5rem rgba(15, 23, 42, .18);
}

.novafox-line-item-header,
.novafox-line-item-option {
    display: grid;
    grid-template-columns: 1.25rem 7rem minmax(0, 1fr) 4.5rem 3.75rem;
    align-items: center;
    column-gap: .2rem;
}

.novafox-line-item-header {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .35rem .35rem;
    background: var(--bs-tertiary-bg);
    border-bottom: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.novafox-line-item-header > span:first-child {
    text-align: center;
}

.novafox-line-item-dropdown .dropdown-item {
    padding: 0;
    white-space: normal;
}

.novafox-line-item-option {
    min-height: 2.1rem;
    padding: .25rem .35rem;
    color: var(--bs-body-color);
    font-size: .8rem;
}

.novafox-line-item-dropdown .dropdown-item:hover,
.novafox-line-item-dropdown .dropdown-item.active {
    background: var(--bs-primary-bg-subtle);
}

.novafox-line-item-dropdown .dropdown-item:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.novafox-line-item-dropdown .novafox-line-item-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .75rem;
    background: var(--bs-warning-bg-subtle);
    color: var(--bs-warning-text-emphasis);
    font-size: .8rem;
    font-style: italic;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

.novafox-line-item-dropdown .novafox-line-item-no-results::before {
    margin-right: .5rem;
    content: "\f33a";
    font-family: "bootstrap-icons";
    font-style: normal;
}

.novafox-line-item-option-number {
    color: var(--bs-secondary-color);
    font-size: .7rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.novafox-line-item-option-sku {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novafox-line-item-option-description {
    overflow: hidden;
    color: var(--bs-secondary-color);
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.25;
    white-space: normal;
}

.novafox-line-item-option-price {
    color: var(--bs-body-color);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.novafox-line-item-option-availability {
    justify-self: center;
    min-width: 2rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.novafox-location-stock-preview {
    max-height: 24rem;
    max-height: min(24rem, 50vh);
}

.novafox-location-stock-preview thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.novafox-stock-detail-table > :not(caption) > * > * {
    vertical-align: middle;
}

#shipmentTable thead th {
    white-space: nowrap;
}

#shipmentTable .shipment-meta-row > td {
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    font-size: .8rem;
    padding-top: .35rem;
    padding-bottom: .35rem;
}

#shipmentTable .shipment-meta-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, max-content));
    column-gap: 1.5rem;
    align-items: center;
}

#shipmentTable .shipment-meta-row strong {
    color: var(--bs-body-color);
}

/* Warning tables sit inside a coloured alert, but their rows need an opaque
   surface so the table remains readable and aligns with the main data tables. */
#saveAlert table.novafox-table {
    --bs-table-bg: var(--bs-body-bg) !important;
    font-size: .8rem;
}

#saveAlert table.novafox-table > :not(caption) > * > * {
    padding: .2rem .35rem;
    line-height: 1.2;
}

#saveAlert > .small {
    margin-top: .15rem !important;
    margin-bottom: .15rem;
}

#saveAlert table.novafox-table > tbody > * > * {
    background-color: var(--bs-body-bg) !important;
}

#saveAlert table.novafox-table > :not(caption) > * > * {
    border-left: 0;
    border-right: 0;
}

@media (max-width: 768px) {
    #shipmentTable .shipment-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: .25rem;
    }
}

/* Google Places uses a web component, so its visible input needs the app control tokens on the host. */
gmp-place-autocomplete.novafox-google-address-autocomplete {
    display: block;
    width: 100%;
    height: 2rem;
    min-height: 2rem;
    max-height: 2rem;
    padding: 0;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: var(--bs-body-font-family);
    font-size: .875rem;
    line-height: 1.5;
    --gmpx-color-surface: var(--bs-body-bg);
    --gmpx-color-on-surface: var(--bs-body-color);
    --gmpx-color-on-surface-variant: var(--bs-secondary-color);
    --gmpx-color-primary: var(--bs-primary);
    --gmpx-font-family-base: var(--bs-body-font-family);
    --gmpx-font-size-base: .8125rem;
}

gmp-place-autocomplete.novafox-google-address-autocomplete:focus-within {
    border-color: rgba(var(--bs-primary-rgb), .75);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

.shipping-address-toggle .form-check-input {
    margin-left: 0;
    margin-top: 0;
    flex: 0 0 auto;
}

.shipping-address-toggle {
    padding-left: 0 !important;
    white-space: nowrap;
}

.shipping-address-toggle label {
    margin-bottom: 0;
    line-height: 1.5;
}

/* Keep line actions centred in the full action column, including rows added by the modals. */
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:last-child {
    text-align: center;
    vertical-align: middle;
}

#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:last-child > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
}

#salesLineTable select[name^="linevat_"] {
    min-width: 110px;
}

/* Financial columns share a centred numeric treatment in every row state. */
#salesLineTable > thead > tr > th:nth-child(6),
#salesLineTable > thead > tr > th:nth-child(7),
#salesLineTable > thead > tr > th:nth-child(13),
#salesLineTable > thead > tr > th:nth-child(14),
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(6),
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(7),
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(13),
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(14) {
    text-align: center !important;
}

#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(6) input,
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(7) input {
    text-align: center !important;
}

/* Keep the quantity and fulfilment columns visually consistent with their headers. */
#salesLineTable > thead > tr > th:nth-child(8),
#salesLineTable > thead > tr > th:nth-child(9),
#salesLineTable > thead > tr > th:nth-child(10),
#salesLineTable > thead > tr > th:nth-child(11),
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(8),
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(9),
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(10),
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(11),
#salesLineTable > tfoot > tr > td:nth-child(8),
#salesLineTable > tfoot > tr > td:nth-child(9),
#salesLineTable > tfoot > tr > td:nth-child(10),
#salesLineTable > tfoot > tr > td:nth-child(11) {
    text-align: center !important;
}

#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(8) input,
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(9) input,
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(10) input,
#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(11) input {
    text-align: center !important;
}

#salesLineTable > tbody > tr:not(.sales-stock-detail-row):not(.stock-id-sale-detail):not(.location-sale-detail) > td:nth-child(10) a {
    text-decoration: none !important;
}

.novafox-stock-detail-table thead th {
    font-size: .75rem;
    font-weight: 700;
}

.novafox-stock-detail-table tbody td {
    font-size: .8rem;
}

.novafox-stock-detail-table .novafox-stock-detail-group-row th {
    padding: .35rem .5rem;
    background: var(--bs-tertiary-bg);
    border-right: 0;
    border-left: 0;
    color: var(--bs-secondary-color);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

div#inventoryTable_wrapper {
    width: 100% !important;
    box-sizing: border-box;
}

/* Keep DataTables' cloned header and scrolling body inside the results panel. */
#inventoryTable_wrapper,
#inventoryTable_wrapper .dt-scroll,
#inventoryTable_wrapper .dt-scroll-head,
#inventoryTable_wrapper .dt-scroll-body {
    max-width: 100%;
}

#inventoryTable_wrapper,
#inventoryTable_wrapper .dt-scroll {
    overflow: hidden;
}

#inventoryTable_wrapper .dt-scroll-body {
    overflow-x: auto !important;
    box-sizing: border-box;
}

#inventoryTable_wrapper .dt-scroll-head table,
#inventoryTable_wrapper .dt-scroll-body table {
    box-sizing: border-box;
    max-width: 100%;
    width: 100% !important;
}

#inventoryTable_wrapper .novafox-stock-qty-input {
    -moz-appearance: textfield;
}

#inventoryTable_wrapper .novafox-stock-qty-input::-webkit-inner-spin-button,
#inventoryTable_wrapper .novafox-stock-qty-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.novafox-stock-search-results {
    max-width: 100%;
    overflow: hidden;
}

.toast {
    --bs-toast-spacing: 0.5rem !important;
}

.novafox-call-progress-toast {
    border-left: .3rem solid #198754;
    box-shadow: 0 .45rem 1.25rem rgba(24, 48, 72, .18);
    min-width: 20rem;
}

.novafox-call-progress-toast .toast-header {
    animation: novafox-call-progress-header-pulse 3.8s ease-in-out infinite;
    background: linear-gradient(135deg, #eefaf3, #fff);
    background-size: 160% 160%;
    color: #184d35;
    padding: .7rem .8rem .6rem;
}

@keyframes novafox-call-progress-header-pulse {
    0%, 100% {
        background-position: 0 0;
        box-shadow: inset 0 -1px 0 rgba(25, 135, 84, .12);
    }
    50% {
        background-position: 100% 100%;
        box-shadow: inset 0 -1px 0 rgba(25, 135, 84, .3);
    }
}

.novafox-call-progress-toast .toast-body {
    background: #fff;
    padding: .7rem .8rem .8rem;
}

.novafox-call-progress-toast .toast-body .fw-semibold {
    color: #20312a;
    font-size: .92rem;
}

.novafox-call-progress-elapsed {
    align-items: baseline;
    color: #198754;
    display: flex;
    gap: .25rem;
}

.novafox-call-progress-elapsed > i {
    color: #198754;
}

.novafox-call-progress-timer {
    color: #176b43;
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
    margin-left: .15rem;
}

.novafox-call-progress-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.novafox-call-progress-actions .btn {
    font-weight: 600;
}

.novafox-call-progress-toast .open-progress-call-btn {
    box-shadow: 0 .15rem .35rem rgba(25, 135, 84, .16);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .novafox-call-progress-toast .toast-header {
        animation: none;
    }
}

.crm-call-form--notes-focus {
    background: linear-gradient(180deg, #f8fbfa, #fff 9rem);
    border: 1px solid rgba(25, 135, 84, .18);
    border-radius: .55rem;
    padding: 1rem;
}

.crm-call-form--notes-focus .crm-call-field-row:not(.crm-call-subject-row),
.crm-call-form--notes-focus .crm-call-notification-row {
    display: none;
}

.crm-call-form--notes-focus .crm-call-notes-row {
    border-top: 0 !important;
    margin-top: .25rem !important;
}

.crm-call-notes-hero {
    align-items: center;
    background: linear-gradient(135deg, #eefaf3, #fff);
    border: 1px solid rgba(25, 135, 84, .2);
    border-left: .3rem solid #198754;
    border-radius: .55rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .85rem 1rem;
}

.crm-call-notes-hero-main,
.crm-call-notes-hero-status,
.crm-call-notes-meta {
    align-items: center;
    display: flex;
}

.crm-call-notes-hero-main {
    gap: .75rem;
    min-width: 0;
}

.crm-call-notes-hero-icon {
    align-items: center;
    background: #198754;
    border-radius: .5rem;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.crm-call-notes-hero-kicker {
    color: #198754;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.crm-call-notes-hero-customer {
    color: #20312a;
    font-size: 1rem;
    font-weight: 700;
}

.crm-call-notes-hero-subject {
    color: var(--bs-secondary-color);
    font-size: .78rem;
    margin-top: .1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-call-notes-hero-status {
    align-items: flex-end;
    flex-direction: column;
    gap: .3rem;
    white-space: nowrap;
}

.crm-call-notes-hero-timer {
    color: #176b43;
    font-size: .8rem;
    font-weight: 600;
}

.crm-call-notes-meta {
    border-bottom: 1px solid rgba(44, 62, 80, .1);
    color: var(--bs-secondary-color);
    flex-wrap: wrap;
    font-size: .78rem;
    gap: .45rem 1.25rem;
    padding: 0 .25rem .7rem;
}

.crm-call-notes-meta i {
    color: #198754;
}

@media (max-width: 575.98px) {
    .crm-call-notes-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .crm-call-notes-hero-status {
        align-items: flex-start;
        flex-direction: row;
        width: 100%;
    }
}

/* Shared NovaFox components */
:root {
    --novafox-accent: #d96d16;
    --novafox-accent-dark: #9d4610;
    --novafox-progress-start: #9d4610;
    --novafox-progress-end: #d96d16;
}

.novafox-progress .progress {
    height: 0.65rem;
    background: #e9ecef;
}

.novafox-progress .progress-bar {
    background: linear-gradient(90deg, var(--novafox-progress-start), var(--novafox-progress-end));
}

.novafox-progress--compact {
    min-width: 7rem;
}

.novafox-progress--compact .progress {
    height: 0.75rem;
    margin-bottom: 0.35rem;
}

.novafox-progress--compact span {
    color: #5c636a;
    font-size: 0.75rem;
    font-weight: 400;
}

.novafox-progress--panel {
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(33, 37, 41, 0.1);
    border-radius: 0.55rem;
    background: #f8f9fa;
}

/* Service Contracts palette */
.novafox-contract-page {
    --novafox-accent: #d96d16;
    --novafox-accent-dark: #9d4610;
    --novafox-progress-start: var(--novafox-accent-dark);
    --novafox-progress-end: var(--novafox-accent);
}

/* Keep accordion headers compact while giving them a clear visual anchor. */
.novafox-accordion-header .novafox-accordion-button {
    min-height: 2.55rem !important;
    padding: .45rem .85rem;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.novafox-accordion-header .novafox-accordion-button > i {
    color: rgba(255, 255, 255, .9);
    font-size: 1rem;
}

.novafox-page-link,
.novafox-heading-icon {
    color: var(--novafox-accent-dark);
}

.novafox-page-header {
    border-bottom: 1px solid rgba(33, 37, 41, 0.12);
}

.novafox-table-card,
.novafox-detail-card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.novafox-table-card .table > :not(caption) > * > *,
.novafox-page .table > :not(caption) > * > * {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.novafox-action-btn {
    color: var(--novafox-accent-dark);
    border-color: rgba(217, 109, 22, 0.35);
    background: #fff;
}

.novafox-action-btn:hover,
.novafox-action-btn:focus {
    color: #fff;
    border-color: var(--novafox-accent-dark);
    background: var(--novafox-accent-dark);
}

.novafox-hero-card {
    overflow: hidden;
    border-radius: 0.75rem;
    background: #fff;
}

.novafox-hero-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--novafox-accent-dark), var(--novafox-accent));
}

.novafox-hero-card__body {
    padding: 1.5rem;
}

.novafox-hero-card__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.25rem;
}

.novafox-hero-card__status {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 4.5rem;
    flex-direction: column;
    font-size: 0.7rem;
    font-weight: 700;
    height: 4.5rem;
    justify-content: center;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    width: 4.5rem;
}

.novafox-hero-card__status i {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.novafox-hero-card__status--live {
    background: rgba(25, 135, 84, 0.34);
}

.novafox-hero-card__status--cancelled {
    background: rgba(220, 53, 69, 0.34);
}

.novafox-stat {
    display: flex;
    align-items: center;
    min-height: 4.4rem;
    gap: 0.8rem;
    padding: 0.9rem;
    border: 1px solid rgba(33, 37, 41, 0.1);
    border-radius: 0.6rem;
    background: #fffaf6;
}

.novafox-stat--compact {
    background: #fff;
}

.novafox-stat--link {
    color: inherit;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.novafox-stat--link:hover {
    color: inherit;
    border-color: rgba(217, 109, 22, 0.45);
    box-shadow: 0 0.4rem 1rem rgba(33, 37, 41, 0.08);
    transform: translateY(-1px);
}

.novafox-stat__icon {
    color: var(--novafox-accent-dark);
    font-size: 1.35rem;
}

.novafox-stat__label {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.novafox-stat__value {
    display: block;
    color: #212529;
    font-weight: 600;
}

.novafox-stat__arrow {
    margin-left: auto;
    color: var(--novafox-accent-dark);
}

.novafox-overview-card .card-header,
.novafox-table-card .card-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.novafox-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.novafox-detail-grid > div {
    padding: 0.9rem;
    border-radius: 0.55rem;
    background: #f8f9fa;
}

.novafox-detail-grid span,
.novafox-setting span {
    display: block;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.novafox-detail-grid strong,
.novafox-setting strong {
    display: block;
    margin-top: 0.2rem;
    color: #212529;
}

.novafox-setting {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(33, 37, 41, 0.08);
}

.novafox-setting:first-child {
    padding-top: 0;
}

.novafox-setting:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.novafox-form .accordion-button {
    min-height: 3.5rem;
}

.novafox-form .nav-tabs {
    gap: 0.25rem;
    padding-bottom: 0.5rem;
}

.novafox-form .nav-tabs .nav-link {
    border-radius: 0.45rem;
}

.novafox-form .form-control,
.novafox-form .form-select {
    min-height: 2.35rem;
    border-color: #ced4da;
}

.novafox-form .card.card-secondary {
    background: #fff;
}

.novafox-page .accordion-button {
    color: #fff;
    background: linear-gradient(135deg, var(--novafox-accent-dark), var(--novafox-accent));
    box-shadow: none;
}

.novafox-page .accordion-button::after {
    filter: brightness(0) invert(1);
}

.novafox-page .accordion-body {
    padding: 1.25rem;
    background: #fff;
}

.novafox-page .tab-content {
    padding-top: 1rem;
}

.novafox-page .card.card-secondary {
    margin: 0.5rem;
    border: 1px solid rgba(33, 37, 41, 0.12);
    border-radius: 0.65rem;
    box-shadow: none;
}

.novafox-page .card.card-secondary .card-body {
    padding: 1.25rem;
}

.novafox-page .form-label {
    margin-bottom: 0;
    color: #5c636a;
    font-weight: 600;
}

/* Contract forms use the same straightforward field hierarchy as Sales Orders. */
.novafox-contract-page .form-label {
    color: inherit;
    font-weight: 400;
}

.novafox-contract-page .card .row + .row {
    margin-top: 0;
}

/* Contracts use one aligned field column while retaining the Sales Order panel width. */
.novafox-contract-page .novafox-order-header-content {
    display: block;
}

.novafox-contract-page .novafox-order-header-content > .novafox-order-header-panel {
    display: block;
    flex: 0 0 auto;
    max-width: calc(50% - .25rem);
    width: calc(50% - .25rem);
}

@media (max-width: 767.98px) {
    .novafox-contract-page .novafox-order-header-content > .novafox-order-header-panel {
        max-width: 100%;
        width: 100%;
    }
}

.novafox-contract-page .novafox-order-header .accordion-body,
.novafox-contract-page .novafox-order-header .accordion-collapse,
.novafox-contract-page .novafox-order-header .tab-pane {
    min-height: 0;
    height: auto;
}

.novafox-contract-flows-panel .novafox-section-content-card {
    padding: .25rem;
}

.novafox-contract-flows-panel .novafox-subnav {
    margin-left: 0;
    margin-right: 0;
}

.novafox-page .card .row + .row {
    margin-top: 0.75rem;
}

/**
 * =====================================================================================================================
 * Page Header Information
 * =====================================================================================================================
 */

.novafox-page-header {
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 -.5rem 0.5rem;
    padding: .25rem .75rem;
}

.novafox-page-header .ms-1 {
    margin-left: 0 !important;
}

.novafox-page-header .btn-group {
    margin-left: 0 !important;
}

.novafox-page-header > .ms-md-auto {
    margin-left: auto !important;
}

.novafox-page-header .btn-mobile-full-width {
    width: auto;
}

.novafox-page-header-group {
    align-items: center;
}

@media (max-width: 575.98px) {
    .novafox-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .novafox-page-header > .btn,
    .novafox-page-header > .btn-group,
    .novafox-page-header > .novafox-subnav-group {
        width: 100%;
    }

    .novafox-page-header > .ms-md-auto {
        margin-left: 0 !important;
    }

    .novafox-page-header .btn-group > .btn {
        flex: 1 1 auto;
    }

    .novafox-page-header-group > .btn,
    .novafox-page-header-group > a.btn {
        flex: 1 1 auto;
    }
}

/**
 * =====================================================================================================================
 * Page Subnavigation - for Page Controls like buttons, modals, etc etc ...
 * =====================================================================================================================
 */

.novafox-subnav {
    align-items: center;
    background: var(--bs-light-rgb);
    border-bottom: 1px solid var(--bs-border-color);
    /* border-top: 1px solid var(--bs-border-color-translucent); */
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 -.5rem 0.5rem;
    min-height: 3.5rem;
    padding: .25rem .75rem;
}

.novafox-subnav .ms-1 {
    margin-left: 0 !important;
}

.novafox-subnav .btn-group {
    margin-left: 0 !important;
}

.novafox-subnav > .ms-md-auto {
    margin-left: auto !important;
}

.novafox-subnav .btn-mobile-full-width {
    width: auto;
}

.novafox-subnav-group {
    align-items: center;
}

@media (max-width: 575.98px) {
    .novafox-subnav {
        align-items: stretch;
        flex-direction: column;
    }

    .novafox-subnav > .btn,
    .novafox-subnav > .btn-group,
    .novafox-subnav > .novafox-subnav-group {
        width: 100%;
    }

    .novafox-subnav > .ms-md-auto {
        margin-left: 0 !important;
    }

    .novafox-subnav .btn-group > .btn {
        flex: 1 1 auto;
    }

    .novafox-subnav-group > .btn,
    .novafox-subnav-group > a.btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    .novafox-hero-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .novafox-hero-card__header .text-end {
        text-align: start !important;
    }

    .novafox-hero-card__body {
        padding: 1rem;
    }

    .novafox-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .novafox-page .accordion-body {
        padding: 1rem;
    }

    .novafox-page-header .btn {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .novafox-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #444;
}

.divider-text {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}


/* ================================================================================================================== */
/* Warehouse, Zone and Location Components */
/* ================================================================================================================== */

:root {
    --warehouse-radius: .75rem;
    --warehouse-orange: #f47c20;
    --warehouse-orange-dark: #c95d0d;
    --warehouse-orange-soft: #fff1e6;
}

.warehouse-hero,
.zone-hero,
.location-hero {
    background: linear-gradient(135deg, var(--warehouse-orange) 0%, var(--warehouse-orange-dark) 100%);
    border-radius: var(--warehouse-radius);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.warehouse-hero::after,
.zone-hero::after,
.location-hero::after {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    content: "";
    height: 260px;
    position: absolute;
    right: -70px;
    top: -120px;
    width: 260px;
}

.warehouse-hero-icon,
.zone-hero-icon,
.location-hero-icon {
    align-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: .85rem;
    display: flex;
    height: 4rem;
    justify-content: center;
    width: 4rem;
}

.warehouse-hero .warehouse-code,
.zone-hero .zone-code,
.location-hero .location-code {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: .3rem;
    font-size: .75rem;
    letter-spacing: .04em;
    padding: .35rem .55rem;
}

.warehouse-status,
.zone-status,
.location-status {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 2rem;
    font-size: .8rem;
    padding: .4rem .7rem;
    white-space: nowrap;
}

.warehouse-summary-card,
.zone-summary-card,
.location-summary-card {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: var(--warehouse-radius);
}

/* Find Stock modal filter layout. */
.novafox-stock-search-panel {
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    overflow: visible;
}

.novafox-stock-search-panel .card-body {
    padding: 1rem;
}

.novafox-stock-search-panel .form-label {
    margin-bottom: 0.35rem;
    color: #495057;
    font-size: 0.78rem;
    font-weight: 600;
}

.novafox-stock-search-primary .form-control,
.novafox-stock-search-refine .form-select {
    min-height: 2.4rem;
}

.novafox-stock-search-divider {
    height: 1px;
    margin: 1rem 0 0.85rem;
    background: rgba(33, 37, 41, 0.1);
}

.novafox-stock-search-refine .form-select {
    color: #343a40;
}

.novafox-stock-search-results {
    margin-top: 0.5rem;
}

.warehouse-summary-icon,
.zone-summary-icon,
.location-summary-icon {
    align-items: center;
    background: var(--warehouse-orange-soft);
    border-radius: .55rem;
    color: var(--warehouse-orange-dark);
    display: flex;
    flex: 0 0 2.25rem;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.warehouse-summary-label,
.warehouse-address-label,
.zone-summary-label,
.zone-address-label,
.location-summary-label,
.location-address-label {
    color: var(--bs-secondary-color);
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.warehouse-summary-value,
.zone-summary-value,
.location-summary-value {
    font-size: 1rem;
    font-weight: 600;
}

.location-settings-grid {
    --bs-gutter-x: .8rem;
    --bs-gutter-y: .8rem;
}

.location-settings-grid > .col,
.location-settings-grid > [class*="col-"] {
    min-width: 0;
}

.location-settings-grid .location-summary-label {
    font-size: .64rem;
    line-height: 1.1;
    margin-bottom: .18rem;
}

.location-settings-grid .location-summary-value {
    font-size: .92rem;
    line-height: 1.25;
}

.location-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.location-capability-badge {
    background: var(--warehouse-orange-soft);
    border: 1px solid rgba(239, 108, 0, .18);
    border-radius: 99rem;
    color: var(--warehouse-orange-dark);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
    padding: .28rem .45rem;
}

/* ================================================================================================================== */
/* Warehouse, Zone and Location Index Components */
/* ================================================================================================================== */

.warehouse-page-header,
.zone-page-header,
.location-page-header {
    border-bottom: 1px solid var(--bs-border-color);
}

.warehouse-card-link,
.zone-card-link,
.location-card-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.warehouse-card,
.zone-card,
.location-card {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: .75rem;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.warehouse-card::before,
.zone-card::before,
.location-card::before {
    background: var(--bs-orange);
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

.warehouse-card-link:hover .warehouse-card,
.warehouse-card-link:focus-visible .warehouse-card,
.zone-card-link:hover .zone-card,
.zone-card-link:focus-visible .zone-card,
.location-card-link:hover .location-card,
.location-card-link:focus-visible .location-card {
    border-color: var(--bs-danger-border-subtle);
    box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .12) !important;
    transform: translateY(-3px);
}

.warehouse-card-link:focus-visible,
.zone-card-link:focus-visible,
.location-card-link:focus-visible {
    outline: 0;
}

/* Warehouse index cards use the same orange visual language as the detail heroes. */
.warehouse-card--hero {
    background: linear-gradient(135deg, var(--warehouse-orange) 0%, var(--warehouse-orange-dark) 100%);
    border: 0;
    color: #fff;
}

.warehouse-card--hero::before {
    display: none;
}

.warehouse-card--hero::after {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    content: "";
    height: 220px;
    position: absolute;
    right: -84px;
    top: -110px;
    width: 220px;
}

.warehouse-card--hero .card-body,
.warehouse-card--hero .warehouse-action {
    position: relative;
    z-index: 1;
}

.warehouse-card--hero .warehouse-icon {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
}

.warehouse-card--hero .warehouse-code {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.warehouse-card--hero .text-muted,
.warehouse-card--hero .text-body {
    color: rgba(255, 255, 255, .82) !important;
}

.warehouse-card--hero .text-warning {
    color: rgba(255, 255, 255, .9) !important;
}

.warehouse-card--hero .warehouse-action {
    background: rgba(45, 22, 0, .16);
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
}

.warehouse-card-link:hover .warehouse-card--hero,
.warehouse-card-link:focus-visible .warehouse-card--hero {
    border-color: transparent;
    box-shadow: 0 .9rem 1.75rem rgba(137, 61, 0, .28) !important;
}

.warehouse-icon,
.zone-icon,
.location-icon {
    align-items: center;
    background: var(--bs-warning-bg-subtle);
    border-radius: .75rem;
    color: var(--bs-orange);
    display: flex;
    flex: 0 0 3rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.warehouse-card .warehouse-code,
.zone-card .zone-code,
.location-card .location-code {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .3rem;
    color: var(--bs-secondary-color);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .2rem .45rem;
}

.warehouse-detail,
.zone-detail,
.location-detail {
    background: var(--bs-tertiary-bg);
    border-radius: .5rem;
    padding: .65rem .75rem;
}

.warehouse-detail-label,
.zone-detail-label,
.location-detail-label {
    color: var(--bs-secondary-color);
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.warehouse-detail-value,
.zone-detail-value,
.location-detail-value {
    font-size: .875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.warehouse-action,
.zone-action,
.location-action {
    border-top: 1px solid var(--bs-border-color-translucent);
    color: var(--bs-orange);
    font-size: .875rem;
    font-weight: 600;
}

.warehouse-action i,
.zone-action i,
.location-action i {
    transition: transform .2s ease;
}

.warehouse-card-link:hover .warehouse-action i,
.warehouse-card-link:focus-visible .warehouse-action i,
.zone-card-link:hover .zone-action i,
.zone-card-link:focus-visible .zone-action i,
.location-card-link:hover .location-action i,
.location-card-link:focus-visible .location-action i {
    transform: translateX(4px);
}

.warehouse-fallback summary,
.zone-fallback summary,
.location-fallback summary {
    cursor: pointer;
}

/* Models / SKUs responsive detail panel. */
#modelTable_wrapper,
#modelTable_wrapper .dt-scroll,
#modelTable_wrapper .dt-scroll-head,
#modelTable_wrapper .dt-scroll-body {
    max-width: 100%;
}

#modelTable_wrapper,
#modelTable_wrapper .dt-scroll {
    overflow: hidden;
}

#modelTable_wrapper .dt-scroll-body {
    overflow-x: hidden !important;
    scrollbar-width: none;
}

#modelTable_wrapper .dt-scroll-body::-webkit-scrollbar {
    height: 0;
    width: 0;
}

#modelTable_wrapper .dt-scroll-head table,
#modelTable_wrapper .dt-scroll-body table {
    box-sizing: border-box;
    max-width: 100%;
}

#modelTable_wrapper tr.child > td {
    background: var(--bs-tertiary-bg);
    border-top: 1px solid var(--bs-border-color);
    padding: .35rem .75rem .55rem;
}

#modelTable_wrapper ul.dtr-details {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: .25rem 0;
    width: 100%;
}

#modelTable_wrapper ul.dtr-details > li {
    align-items: flex-start;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: .45rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin: 0;
    min-width: 0;
    padding: .5rem .65rem;
}

#modelTable_wrapper ul.dtr-details .dtr-title {
    color: var(--bs-secondary-color);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: left !important;
    width: 100% !important;
}

#modelTable_wrapper ul.dtr-details .dtr-data {
    color: var(--bs-emphasis-color);
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left !important;
    width: 100% !important;
}

@media (max-width: 1199.98px) {
    #modelTable_wrapper ul.dtr-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    #modelTable_wrapper ul.dtr-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    #modelTable_wrapper ul.dtr-details {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Full-screen flow picker: a focused workspace for selecting normal or contract flows. */
.novafox-flow-picker-modal {
    background: #f8fafc;
}

.novafox-flow-picker-header {
    background: #fff;
    border-bottom: 1px solid var(--bs-border-color);
    min-height: 4.75rem;
    padding: 1rem 1.5rem;
}

.novafox-flow-picker-icon {
    align-items: center;
    background: var(--bs-primary-bg-subtle);
    border: 1px solid var(--bs-primary-border-subtle);
    border-radius: .75rem;
    color: var(--bs-primary);
    display: inline-flex;
    flex: 0 0 2.75rem;
    font-size: 1.2rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.novafox-flow-picker-modal.contract-flow-picker .novafox-flow-picker-icon {
    background: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
    color: var(--bs-success);
}

.novafox-flow-picker-body {
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.5rem 1.5rem;
}

.novafox-flow-picker-body > .alert {
    background: #fff;
    border-color: var(--bs-success-border-subtle);
    border-left: .3rem solid var(--bs-success);
    border-radius: .6rem;
    box-shadow: 0 .25rem .75rem rgba(15, 23, 42, .05);
    color: var(--bs-body-color);
    padding: .85rem 1rem;
}

.novafox-flow-picker-body > .row {
    margin: 0 0 1rem;
}

.novafox-flow-picker-body > .row > .card {
    background: #fff;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: .75rem;
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .06);
    margin: 0 !important;
}

.novafox-flow-picker-body > .row > .card .card-body {
    padding: 1.15rem 1.25rem;
}

.novafox-flow-picker-body #flowsTable {
    background: #fff;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 0;
    overflow: hidden;
}

/* DataTables renders a cloned scrolling header; keep it the same width as
   the body from the first paint, including while the modal is transitioning. */
.novafox-flow-picker-body #flowsTable_wrapper,
.novafox-flow-picker-body #flowsTable_wrapper .dt-scroll,
.novafox-flow-picker-body #flowsTable_wrapper .dt-scroll-head,
.novafox-flow-picker-body #flowsTable_wrapper .dt-scroll-body {
    max-width: 100%;
}

.novafox-flow-picker-body #flowsTable_wrapper .dt-scroll-head table,
.novafox-flow-picker-body #flowsTable_wrapper .dt-scroll-body table {
    box-sizing: border-box;
    max-width: 100%;
    width: 100% !important;
}

.novafox-flow-picker-body #flowsTable thead th {
    background: #f1f5f9;
    border-bottom: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: .72rem;
    letter-spacing: .04em;
    padding: .8rem .65rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.novafox-flow-picker-body #flowsTable tbody td {
    padding: .75rem .65rem;
    vertical-align: middle;
}

.novafox-flow-picker-body #flowsTable tbody tr:hover {
    background: var(--bs-primary-bg-subtle);
}

.novafox-flow-picker-body .contract-flow-class-group td {
    background: #eef2f7;
    border-top: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: .55rem .75rem;
    text-transform: uppercase;
}

.novafox-flow-picker-footer {
    background: #fff;
    border-top: 1px solid var(--bs-border-color);
    gap: .6rem;
    padding: .85rem 1.5rem;
}

@media (max-width: 767.98px) {
    .novafox-flow-picker-header,
    .novafox-flow-picker-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .novafox-flow-picker-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Reusable section-tab widget, shared by detail views such as Warehouses and Contracts. */
.novafox-section-tab-strip {
    border-bottom: 1px solid var(--bs-border-color);
    gap: .2rem;
}

.novafox-section-tabs-widget > .tab-content,
.novafox-section-tab-strip + .tab-content {
    padding-top: 0;
}

/* The dashboard owns the page background; individual widgets keep their own surfaces. */
.dashboard-sections,
.dashboard-sections-content {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.novafox-section-tab {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-bottom: 2px solid transparent;
    border-radius: .5rem .5rem 0 0;
    color: var(--bs-secondary-color);
    font-size: .9rem;
    min-width: 108px;
    padding: .35rem .55rem;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.novafox-section-tab:hover,
.novafox-section-tab.active {
    background: #fff1e6;
    border-bottom-color: #f47c20;
    color: #c95d0d;
}

.novafox-section-tab-icon {
    align-items: center;
    background: var(--bs-tertiary-bg);
    border-radius: .35rem;
    display: inline-flex;
    height: 1.4rem;
    justify-content: center;
    margin-right: .3rem;
    width: 1.4rem;
}

.novafox-section-tab.active .novafox-section-tab-icon {
    background: #f47c20;
    color: #fff;
}

.novafox-section-content-card {
    background: #fff;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 0 0 .75rem .75rem;
    padding: .75rem;
}

/* Keep the dashboard content card separated from the tabs; the shared tab rule intentionally removes top padding. */
.novafox-section-tab-strip + .novafox-section-content-card {
    padding-top: 1rem;
}

/* Sales Order Header: one calm surface with a clear two-column split. */
.novafox-order-header .accordion-body {
    padding: .75rem;
    background: #fff;
}

.novafox-order-header-content,
.novafox-order-header-tab {
    margin: 0;
}

.novafox-order-header-tab > .card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0 !important;
    min-width: 0;
}

.novafox-order-header-tab > .card + .card {
    border-left: 1px solid var(--bs-border-color);
}

.novafox-order-header-tab .card-header {
    background: transparent;
    border-bottom: 1px solid var(--bs-border-color);
    margin: 0 !important;
    padding: .5rem .75rem !important;
}

.novafox-order-header-tab .card-body {
    padding: .5rem .75rem;
}

.novafox-order-header-tab textarea {
    text-align: left;
    white-space: pre-wrap;
}

.novafox-order-header-content > .novafox-order-header-panel:first-child .card-body {
    padding-left: .25rem;
}

.novafox-order-header-content > .novafox-order-header-panel:last-child .card-body {
    padding-right: .25rem;
}

@media (max-width: 767.98px) {
    .novafox-order-header-tab > .card + .card {
        border-top: 1px solid var(--bs-border-color);
        border-left: 0;
        padding-top: .75rem;
    }
}

/* Dashboard CRM call widget. */
.novafox-call-dashboard-header {
    align-items: center;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: .75rem .5rem .85rem;
}

.novafox-call-dashboard-icon {
    align-items: center;
    background: #f47c20;
    border-radius: .6rem;
    color: #fff;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.novafox-call-dashboard-summary {
    color: var(--bs-secondary-color);
    display: flex;
    flex-wrap: wrap;
    font-size: .8rem;
    gap: .75rem 1.25rem;
}

.novafox-call-dashboard-summary strong {
    color: #c95d0d;
    font-size: 1rem;
}

.novafox-call-filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .75rem .5rem;
}

.novafox-call-filter {
    align-items: center;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .45rem;
    color: var(--bs-secondary-color);
    display: inline-flex;
    gap: .45rem;
    padding: .45rem .7rem;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.novafox-call-filter:hover,
.novafox-call-filter.active {
    background: #fff1e6;
    border-color: #f47c20;
    color: #c95d0d;
}

.novafox-call-filter-count {
    background: var(--bs-tertiary-bg);
    border-radius: 999px;
    font-size: .75rem;
    line-height: 1.35;
    min-width: 1.35rem;
    padding: .1rem .35rem;
    text-align: center;
}

.novafox-call-filter.active .novafox-call-filter-count {
    background: #f47c20;
    color: #fff;
}

.novafox-call-dashboard-content {
    padding: 0 .5rem .5rem;
}

.novafox-call-table-card {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: .55rem;
    overflow: hidden;
}

.novafox-call-table thead th {
    background: var(--bs-tertiary-bg);
    border-bottom: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.novafox-call-table tbody td {
    padding-bottom: .7rem;
    padding-top: .7rem;
}

.novafox-call-group-row td {
    background: #fff8f1;
    border-top: 1px solid #f6d5b8;
    color: #8a4b1e;
    font-size: .85rem;
}

.novafox-call-empty-state {
    align-items: center;
    color: var(--bs-secondary-color);
    display: flex;
    gap: .85rem;
    justify-content: center;
    min-height: 8rem;
    padding: 1.5rem;
    text-align: left;
}

.novafox-call-empty-state > i {
    color: var(--bs-success);
    font-size: 1.8rem;
}

.novafox-call-empty-state strong,
.novafox-call-empty-state span {
    display: block;
}

.novafox-call-empty-state strong {
    color: var(--bs-body-color);
}

/* Sales dashboard refresh: presentation only; data ids, permissions and refresh logic remain unchanged. */
.novafox-sales-dashboard {
    padding: .15rem;
}

.novafox-sales-dashboard > .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    display: grid;
    gap: 1rem;
    margin-left: 0;
    margin-right: 0;
}

.novafox-sales-dashboard > .row:first-child {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.novafox-sales-dashboard > .row:first-child > .card {
    width: auto;
}

.novafox-sales-dashboard > .row:first-child > .card > .card-body > .row {
    display: grid;
    grid-template-columns: 1fr;
}

.novafox-sales-dashboard > .row:first-child > .card > .card-body > .row > .card {
    width: auto;
}

.novafox-sales-dashboard > .row:not(:first-child) {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1rem;
}

.novafox-sales-dashboard > .row:first-child > .card,
.novafox-sales-dashboard > .row:not(:first-child) > .card {
    background: #fff;
    border: 1px solid rgba(44, 62, 80, .14);
    border-radius: .65rem;
    box-shadow: 0 .2rem .7rem rgba(24, 48, 72, .08);
    overflow: hidden;
}

/* The legacy markup adds responsive side margins as well as row gutters. Use the row gutter once. */
.novafox-sales-dashboard > .row > .card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
}

.novafox-sales-dashboard > .row + .row {
    margin-top: 1rem;
}

.novafox-sales-dashboard > .row:first-child > .card > .card-header,
.novafox-sales-dashboard > .row:not(:first-child) > .card > .card-header {
    border-bottom: 0;
    font-size: .9rem;
    letter-spacing: .02em;
    padding: .65rem .8rem !important;
}

.novafox-sales-dashboard > .row:first-child > .card > .card-body {
    background: #f8fafc;
    padding: .65rem !important;
}

.novafox-sales-dashboard > .row:first-child > .card > .card-body > .row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
    gap: .75rem;
    margin: 0;
}

.novafox-sales-dashboard > .row:first-child > .card > .card-body > .row > .card {
    border: 1px solid rgba(44, 62, 80, .12);
    border-radius: .55rem;
    overflow: hidden;
}

.novafox-sales-dashboard > .row:first-child > .card > .card-body > .row > .card {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (min-width: 768px) {
    .novafox-sales-dashboard > .row:first-child {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .novafox-sales-dashboard > .row:first-child > .card > .card-body > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.novafox-sales-dashboard > .row:first-child > .card > .card-body > .row > .card > .card-header {
    border-bottom: 0;
    font-size: .85rem;
    padding: .55rem .65rem !important;
}

.novafox-sales-dashboard .small-box {
    border-radius: .45rem;
    box-shadow: 0 .12rem .35rem rgba(24, 48, 72, .08);
    min-height: 6.4rem;
}

.novafox-sales-dashboard .small-box .inner {
    padding: .8rem .7rem;
}

.novafox-sales-dashboard .small-box h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: .7rem;
}

.novafox-sales-dashboard .small-box p {
    font-size: .78rem;
    font-weight: 500;
    margin-bottom: 0;
}

.novafox-sales-dashboard > .row:not(:first-child) > .card > .card-body {
    padding: .35rem .65rem .65rem !important;
}

.novafox-section-action-btn {
    border-color: #f47c20;
    color: #c95d0d;
}

.novafox-section-action-btn:hover {
    background: #f47c20;
    border-color: #f47c20;
    color: #fff;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #444; /* match your dark theme border colour */
}

.divider-text {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}


/* ================================================================================================================== */
/* Warehouse, Zone and Location Components */
/* ================================================================================================================== */

:root {
    --warehouse-radius: .75rem;
    --warehouse-orange: #f47c20;
    --warehouse-orange-dark: #c95d0d;
    --warehouse-orange-soft: #fff1e6;
}

.warehouse-hero,
.zone-hero,
.location-hero {
    background: linear-gradient(135deg, var(--warehouse-orange) 0%, var(--warehouse-orange-dark) 100%);
    border-radius: var(--warehouse-radius);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.warehouse-hero::after,
.zone-hero::after,
.location-hero::after {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    content: "";
    height: 260px;
    position: absolute;
    right: -70px;
    top: -120px;
    width: 260px;
}

.warehouse-hero-icon,
.zone-hero-icon,
.location-hero-icon {
    align-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: .85rem;
    display: flex;
    height: 4rem;
    justify-content: center;
    width: 4rem;
}

.warehouse-hero .warehouse-code,
.zone-hero .zone-code,
.location-hero .location-code {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: .3rem;
    font-size: .75rem;
    letter-spacing: .04em;
    padding: .35rem .55rem;
}

.warehouse-status,
.zone-status,
.location-status {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 2rem;
    font-size: .8rem;
    padding: .4rem .7rem;
    white-space: nowrap;
}

.warehouse-summary-card,
.zone-summary-card,
.location-summary-card {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: var(--warehouse-radius);
    height: 100%;
}

.warehouse-summary-icon,
.zone-summary-icon,
.location-summary-icon {
    align-items: center;
    background: var(--warehouse-orange-soft);
    border-radius: .55rem;
    color: var(--warehouse-orange-dark);
    display: flex;
    flex: 0 0 2.25rem;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.warehouse-summary-label,
.warehouse-address-label,
.zone-summary-label,
.zone-address-label,
.location-summary-label,
.location-address-label {
    color: var(--bs-secondary-color);
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.warehouse-summary-value,
.zone-summary-value,
.location-summary-value {
    font-size: 1rem;
    font-weight: 600;
}

.location-settings-grid {
    --bs-gutter-x: .8rem;
    --bs-gutter-y: .8rem;
}

.location-settings-grid > .col,
.location-settings-grid > [class*="col-"] {
    min-width: 0;
}

.location-settings-grid .location-summary-label {
    font-size: .64rem;
    line-height: 1.1;
    margin-bottom: .18rem;
}

.location-settings-grid .location-summary-value {
    font-size: .92rem;
    line-height: 1.25;
}

.location-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.location-capability-badge {
    background: var(--warehouse-orange-soft);
    border: 1px solid rgba(239, 108, 0, .18);
    border-radius: 99rem;
    color: var(--warehouse-orange-dark);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
    padding: .28rem .45rem;
}

/* ================================================================================================================== */
/* Warehouse, Zone and Location Index Components */
/* ================================================================================================================== */

.warehouse-page-header,
.zone-page-header,
.location-page-header {
    border-bottom: 1px solid var(--bs-border-color);
}

.warehouse-card-link,
.zone-card-link,
.location-card-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.warehouse-card,
.zone-card,
.location-card {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: .75rem;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.warehouse-card::before,
.zone-card::before,
.location-card::before {
    background: var(--bs-orange);
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

.warehouse-card-link:hover .warehouse-card,
.warehouse-card-link:focus-visible .warehouse-card,
.zone-card-link:hover .zone-card,
.zone-card-link:focus-visible .zone-card,
.location-card-link:hover .location-card,
.location-card-link:focus-visible .location-card {
    border-color: var(--bs-danger-border-subtle);
    box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .12) !important;
    transform: translateY(-3px);
}

.warehouse-card-link:focus-visible,
.zone-card-link:focus-visible,
.location-card-link:focus-visible {
    outline: 0;
}

/* Warehouse index cards use the same orange visual language as the detail heroes. */
.warehouse-card--hero {
    background: linear-gradient(135deg, var(--warehouse-orange) 0%, var(--warehouse-orange-dark) 100%);
    border: 0;
    color: #fff;
}

.warehouse-card--hero::before {
    display: none;
}

.warehouse-card--hero::after {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    content: "";
    height: 220px;
    position: absolute;
    right: -84px;
    top: -110px;
    width: 220px;
}

.warehouse-card--hero .card-body,
.warehouse-card--hero .warehouse-action {
    position: relative;
    z-index: 1;
}

.warehouse-card--hero .warehouse-icon {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
}

.warehouse-card--hero .warehouse-code {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.warehouse-card--hero .text-muted,
.warehouse-card--hero .text-body {
    color: rgba(255, 255, 255, .82) !important;
}

.warehouse-card--hero .text-warning {
    color: rgba(255, 255, 255, .9) !important;
}

.warehouse-card--hero .warehouse-action {
    background: rgba(45, 22, 0, .16);
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
}

.warehouse-card-link:hover .warehouse-card--hero,
.warehouse-card-link:focus-visible .warehouse-card--hero {
    border-color: transparent;
    box-shadow: 0 .9rem 1.75rem rgba(137, 61, 0, .28) !important;
}

.warehouse-icon,
.zone-icon,
.location-icon {
    align-items: center;
    background: var(--bs-warning-bg-subtle);
    border-radius: .75rem;
    color: var(--bs-orange);
    display: flex;
    flex: 0 0 3rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.warehouse-card .warehouse-code,
.zone-card .zone-code,
.location-card .location-code {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .3rem;
    color: var(--bs-secondary-color);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .2rem .45rem;
}

.warehouse-detail,
.zone-detail,
.location-detail {
    background: var(--bs-tertiary-bg);
    border-radius: .5rem;
    padding: .65rem .75rem;
}

.warehouse-detail-label,
.zone-detail-label,
.location-detail-label {
    color: var(--bs-secondary-color);
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.warehouse-detail-value,
.zone-detail-value,
.location-detail-value {
    font-size: .875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.warehouse-action,
.zone-action,
.location-action {
    border-top: 1px solid var(--bs-border-color-translucent);
    color: var(--bs-orange);
    font-size: .875rem;
    font-weight: 600;
}

.warehouse-action i,
.zone-action i,
.location-action i {
    transition: transform .2s ease;
}

.warehouse-card-link:hover .warehouse-action i,
.warehouse-card-link:focus-visible .warehouse-action i,
.zone-card-link:hover .zone-action i,
.zone-card-link:focus-visible .zone-action i,
.location-card-link:hover .location-action i,
.location-card-link:focus-visible .location-action i {
    transform: translateX(4px);
}

.warehouse-fallback summary,
.zone-fallback summary,
.location-fallback summary {
    cursor: pointer;
}

.novafox-order-header .accordion-body {
    padding: .65rem .75rem;
}

.novafox-order-header .novafox-section-tab {
    padding: .35rem .55rem;
}

.novafox-order-header .novafox-section-tab-icon {
    height: 1.2rem;
    width: 1.2rem;
}

.novafox-order-header .novafox-order-header-content {
    --bs-gutter-x: .5rem;
    --bs-gutter-y: .35rem;
}

.novafox-order-header .novafox-order-header-panel .card-body {
    padding-top: .45rem;
    padding-bottom: .45rem;
}

/* Service Flow details use one full-height divider between the two form columns. */
.flow-details-grid {
    display: flex;
    flex-wrap: nowrap;
}

.flow-details-grid > .flow-details-column {
    flex: 0 0 50%;
    max-width: 50%;
}

.flow-table-container {
    max-width: 100%;
    overflow-x: auto;
}

.flow-table-container .dt-container,
.flow-table-container .dataTables_wrapper {
    max-width: 100%;
}

.novafox-data-table {
    border: 1px solid var(--bs-border-color);
    border-collapse: collapse;
}

.novafox-data-table > :not(caption) > * > * {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.novafox-data-table > thead > tr > * {
    border-top: 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.novafox-data-table > tbody > tr:last-child > * {
    border-bottom: 0;
}

.flow-table a {
    text-decoration: none;
}

.flow-table-container .dt-scroll-body {
    max-height: none !important;
    overflow-y: visible !important;
    border-bottom: 0 !important;
}

@media (min-width: 768px) {
    .flow-details-right {
        border-left: 1px solid var(--bs-border-color);
    }
}

@media (max-width: 767.98px) {
    .flow-details-grid {
        flex-wrap: wrap;
    }

    .flow-details-grid > .flow-details-column {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* The form panels share one surface; only the column divider remains visible. */
.novafox-page .novafox-order-header-tab > .card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0 !important;
}

.novafox-page .novafox-order-header-tab .card-body {
    padding: .5rem .75rem;
}

.novafox-order-header .form-label {
    margin-bottom: 0;
}

/* Compact Sales Order identity header. */
.novafox-order-summary {
    min-height: 4.25rem;
    padding: .65rem 1rem;
}

.novafox-order-summary .warehouse-hero-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.novafox-order-summary h1 {
    line-height: 1.15;
}


.novafox-create-card .card-body {
    padding-bottom: 2.5rem !important;
}

/* Warehouse pages use the shared global header breadcrumb. */
.warehouse-index-page .container-fluid > .d-flex.mb-3.small, .zone-index-page .container-fluid > .d-flex.mb-3.small, .zone-detail-page .container-fluid > .d-flex.mb-3.small, .location-index-page .container-fluid > .d-flex.mb-3.small, .location-detail-page .container-fluid > .d-flex.mb-3.small { display: none !important; }

.warehouse-detail-page .container-fluid > .d-flex.mb-3.small { display: none !important; }

/* Location picker tables: border the surfaces, keep inner cells open. */
.novafox-location-results-table, .novafox-location-stock-preview { border: 1px solid var(--bs-border-color); border-radius: .35rem; overflow: hidden; }
.novafox-location-results-table > table, .novafox-location-stock-preview-table { margin-bottom: 0; border: 0; }
.novafox-location-results-table th, .novafox-location-results-table td, .novafox-location-stock-preview-table th, .novafox-location-stock-preview-table td { border-left: 0 !important; border-right: 0 !important; }
.novafox-location-results-table thead th, .novafox-location-stock-preview-table thead th { border-top: 0 !important; }
.novafox-location-results-table tbody tr:last-child td, .novafox-location-stock-preview-table tbody tr:last-child td { border-bottom: 0 !important; }

.novafox-location-results-table table.dataTable, .novafox-location-stock-preview table.dataTable { border-bottom: 0 !important; }
.novafox-location-results-table .dataTables_wrapper, .novafox-location-stock-preview .dataTables_wrapper { border-bottom: 0 !important; }

/* DataTables adds a table-level rule which can appear as a heavy bottom edge. */
.novafox-location-results-table > table,
.novafox-location-results-table > table.dataTable,
.novafox-location-stock-preview > table,
.novafox-location-stock-preview > table.dataTable {
    border-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

.novafox-location-results-table > table > tbody > tr:last-child > td,
.novafox-location-stock-preview > table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

/* The expanded preview is part of the parent result; do not draw a dark divider between them. */
.novafox-location-results-table > table > tbody > tr:has(+ tr:not(.d-none)) > td,
.novafox-location-results-table > table > tbody > tr[id^="sell-location-stock-preview-"] > td {
    border-bottom: 0 !important;
}

/* Parent result rows should not carry Bootstrap's dark horizontal cell rule. */
.novafox-location-results-table > table > tbody > tr > td {
    border-bottom: 0 !important;
}

/* Keep the preview area open while giving its DataTable header a complete outline. */
.sell-location-preview-content,
.novafox-location-stock-preview {
    background: transparent !important;
    box-shadow: none !important;
}

.sell-location-preview-content {
    padding: .65rem .75rem .75rem;
}

.novafox-location-stock-preview {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

.novafox-location-stock-preview-table thead {
    border-top: 0 !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    outline: 0 !important;
}

.novafox-location-stock-preview-table > thead > tr > th {
    border-top: 0 !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
}

.novafox-location-stock-preview-table > thead > tr > th:first-child {
    border-left: 0 !important;
}

.novafox-location-stock-preview-table > thead > tr > th:last-child {
    border-right: 0 !important;
}

/* The child DataTable owns its full outer edge; body cells remain open. */
.novafox-location-stock-preview-table {
    border: 1px solid var(--bs-border-color) !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    border-collapse: separate !important;
    border-spacing: 0;
    box-shadow: none !important;
    margin: 0 !important;
}

/* Override the more-specific DataTables reset for the child table's bottom edge. */
.novafox-location-stock-preview > table.novafox-location-stock-preview-table {
    border-bottom: 1px solid var(--bs-border-color) !important;
}

#sell-by-location-results-table {
    border: 1px solid var(--bs-border-color) !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

#sell-by-location-results-table > thead > tr > th {
    border-top: 0 !important;
}

#sell-by-location-results-table > thead > tr > th:first-child {
    border-left: 0 !important;
}

#sell-by-location-results-table > thead > tr > th:last-child {
    border-right: 0 !important;
}

.novafox-location-stock-preview {
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
