/* mercha purple: #4C1AC9 */
.text-purple {
    color: #4C1AC9;
}

[x-cloak] {
    display: none !important;
}

.bg-purple{opacity:1; background-color:#4C1AC9 !important;}

.border-purple{ opacity:1; border-color:#4C1AC9 !important;
}

.btn-primary{color:#fff;background-color:#4C1AC9;border-color:#4C1AC9;}
.btn-primary:hover{color:#fff;background-color: #582DF0 !important;border-color:#582DF0 !important;}
.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#582DF0;border-color:#582DF0;box-shadow:0 0 0 .2rem rgba(138,31,214,.5)}
.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#582DF0;border-color:#582DF0}

.btn-outline-primary {
    --bs-btn-color: #4C1AC9;
    --bs-btn-border-color: #4C1AC9;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #582DF0;
    --bs-btn-hover-border-color: #582DF0;
    --bs-btn-focus-shadow-rgb: 59, 125, 221;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #582DF0;
    --bs-btn-active-border-color: #582DF0;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    --bs-btn-disabled-color: #582DF0;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #582DF0;
    --bs-gradient: none;
}

/*** boostrap callouts **/
.bd-callout-info {
    --bd-callout-color: var(--bs-info-text-emphasis);
    --bd-callout-bg: var(--bs-info-bg-subtle);
    --bd-callout-border: var(--bs-info-border-subtle);
}
.bd-callout {
    --bs-link-color-rgb: var(--bd-callout-link);
    --bs-code-color: var(--bd-callout-code-color);
    padding: 1.25rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    color: var(--bd-callout-color, inherit);
    background-color: var(--bd-callout-bg, var(--bs-gray-100));
    border-left: .25rem solid var(--bd-callout-border, var(--bs-gray-300));
}

.bd-callout .p {
    margin: 0 !important;
}

table td,
table th {
    vertical-align: top !important;
}

.nav {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: #000;
    --bs-nav-link-hover-color: #4C1AC9;
    --bs-nav-link-disabled-color: var(--bs-secondary-color);
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-tabs
{
    background-color: inherit;
    border-color: var(--bs-nav-tabs-link-active-border-color);
    color: #4C1AC9;
}

.breadcrumb a[href]:hover,
.breadcrumb a[href]:focus-visible {
    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

/** action buttons **/
.cursor-not-allowed {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Locked order and quote editors remain readable and permit image viewing only. */
.tab-content .form-control:disabled,
.tab-content .form-select:disabled {
    color: #212529 !important;
    -webkit-text-fill-color: #212529;
    opacity: 1;
}

.editor-locked .form-control.opacity-75,
.editor-locked .form-select.opacity-75 {
    color: #212529 !important;
    opacity: 1 !important;
}

.editor-locked .locked-image-gallery .product-img-box {
    cursor: default !important;
    pointer-events: none;
}

.editor-locked .locked-image-gallery .product-img-box a {
    cursor: zoom-in !important;
    pointer-events: auto;
}

.editor-locked .locked-image-gallery .remove-btn {
    display: none !important;
}
.action-buttons
{
    /*background: #fff !important;*/
    z-index: 3;
    padding: 10px 10px;
    /*border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;*/
}

.order-summary-actions > .btn,
.order-summary-actions > form > .btn,
.quote-summary-actions > .btn {
    margin-bottom: 0.5rem;
}

.actions-buttons.btn {
    height: 30px;
}

/** end action buttons **/

/** timeline start **/
/* 1) HARD RESET: remove any existing rails/dots from other CSS */
.timeline,
.timeline * {
    box-sizing: border-box;
}

.timeline::before,
.timeline::after,
.timeline-item::before,
.timeline-item::after,
.timeline-rail::after,
.timeline-icon::before,
.timeline-icon::after {
    content: none !important;
    display: none !important;
}

/** max height overrides **/
.max-height-400 {
    max-height: 400px !important;
    overflow-y: auto;
    padding-right: 8px;
}
.max-height-650 {
    max-height: 650px !important;
    overflow-y: auto;
    padding-right: 8px;
}
.max-height-1300 {
    max-height: 1300px !important;
    overflow-y: auto;
    padding-right: 8px;
}

/* Also kill any list markers (some browsers/themes add these) */
.timeline,
.timeline-item {
    list-style: none !important;
}
.timeline-item::marker {
    content: "" !important;
}

/* 2) REBUILD: our desired layout */
.timeline {
    margin: 0;
    padding: 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 28px;
}

.timeline-rail {
    position: relative;
    width: 56px;
    flex: 0 0 56px;
    display: flex;
    justify-content: center;
}

/* The ONLY rail */
.timeline-rail::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 48px;           /* start below icon */
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item:last-child .timeline-rail::before {
    display: none !important;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px #fff; /* clean cutout */
}

.timeline-content {
    flex: 1;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: 1rem;
}
/** timeline end **/

/** tiny, unobtrusive clear button **/
.dt-filter-wrap{
    position: relative;
    display: block;      /* important: prevents shrink-to-fit */
    width: 95%;         /* important: fill the cell/container */
    min-width: 0;        /* important: allow flex children to size correctly */
}

.dt-filter-wrap .input-group{
    width: 100%;
}

.dt-filter-wrap input,
.dt-filter-wrap select,
.dt-filter-wrap textarea{
    width: 100%;
}

.dt-filter-clear {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    font-size: 14px;
    color: #adb5bd;
    cursor: pointer;
    display: none;
}

.dt-filter-wrap:hover .dt-filter-clear {
    color: #495057;
}

.dt-filter-wrap.has-value .dt-filter-clear {
    display: block;
}

/* Make room so text doesn't go under the X */
.dt-filter-wrap input,
.dt-filter-wrap select {
    padding-right: 22px;
}

/** end tiny, unobtrusive clear button **/
 /** toastify **/
.toastify.admin-toast {
    display: flex;
    align-items: center;
    min-width: 320px;
    max-width: min(420px, calc(100vw - 30px));
    padding: .95rem 1rem;
    color: #fff;
    font-size: .9rem;
    background: #0969b5;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .75rem;
    box-shadow: 0 .8rem 1.8rem rgba(31, 42, 68, .2);
}

.toastify.admin-toast--primary,
.toastify.admin-toast--info {
    background: #0969b5;
}

.toastify.admin-toast--warning {
    color: #fff;
    background: #fcb92c;
    border-color: rgba(91, 49, 0, .2);
}

.toastify.admin-toast--danger {
    background: #c61f43;
}

.toastify.admin-toast--success {
    background: #14775b;
}

.toastify.admin-toast--purple {
    background: #5b3296;
}

.toastify.admin-toast--secondary {
    background: #55606f;
}

.admin-toast__content {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    gap: .8rem;
}

.admin-toast__icon {
    flex: 0 0 1.6rem;
    width: 1.6rem;
    font-size: 1.45rem;
    text-align: center;
}

.admin-toast__message {
    min-width: 0;
    font-weight: 500;
    line-height: 1.4;
}

.admin-toast__message a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .15em;
}

@media (min-width: 768px) {
    body.flyout-toast-offset .toastify.toastify-right {
        right: var(--admin-toast-right-offset, 466px) !important;
    }
}

.admin-toast .toast-close {
    flex: 0 0 auto;
    width: 1.5rem;
    margin-left: .9rem;
    padding: 0;
    font-family: sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    color: #fff !important;
    opacity: .8 !important;
}

.admin-toast .toast-close:hover,
.admin-toast .toast-close:focus-visible {
    opacity: 1 !important;
}

.admin-toast--warning .toast-close {
    color: #fff !important;
}

@media (max-width: 575.98px) {
    .toastify.admin-toast {
        min-width: 0;
        width: calc(100vw - 30px);
    }
}

/* Flyout panel */
.offcanvas {
    width: 500px; /* or 600px for your builder */
    border-left: 1px solid #eee;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.flyout {
    position: fixed;
    top: 0;
    right: -450px;               /* hidden position */
    width: 450px;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0,0,0,.15);
    z-index: 1055;
    display: flex;
    flex-direction: column;
    transition: right .3s ease;
}

/* Open state */
.flyout.show {
    right: 0;
}

/* Header */
.flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

/* Body */
.flyout-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

/* Backdrop */
.flyout-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1050;
}

.flyout-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/** prevent scrolling when flyout is open */
body.flyout-open {
    overflow: hidden;
}

/** responsive flyout panel - full screen on small screens */
@media (max-width: 576px) {
    .flyout {
        /*width: 100%;*/
    }
}

/** end flyout panel **/

.universal-search-octo-squid {
    padding: 1.5rem 1rem;
}

#searchResults .universal-search-result {
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

#searchResults .universal-search-result:last-child {
    margin-bottom: 0;
}

.universal-search-octo-squid-image {
    width: 210px;
    height: 210px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.universal-search-octo-squid-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/** divider with shadow **/
.shadow-hr {
    border: none; /* Removes the default line/border */
    height: 1px; /* Sets the visible height of the rule */
    background-color: #ccc; /* Optional: Sets the main line color */

    /* Apply the box-shadow */
    /* Syntax: h-offset v-offset blur spread color */
    box-shadow: 0 10px 10px -10px #333;

    /* Optional: Center the line and add some vertical spacing */
    width: 98%;
    margin-top: 0em;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 1.0em;
}
/** end divider with shadow **/

/** product builder - product search **/
.product-search-dropdown {
    max-height: 336px;
    overflow-y: auto;
}

/** tomselect **/
/** class needed when a field is readonly **/
/** https://github.com/orchidjs/tom-select/discussions/304 **/
.ts-readonly {
    background-color: #fff;
    opacity: 0.5;
    pointer-events: none !important;
}
/* Increase dropdown height */
.ts-dropdown {
    max-height: 500px;     /* default ~200px */
}

.tags-tomselect {

}

.tags-tomselect {
    font-size: 1.09375rem;
}

.prod-tomselect {
    font-size: 16px;
}

/* z-index fix for dropdowns in modals */
.modal .ts-dropdown {
    z-index: 2000 !important;
}

.tomselect-modal-dropdown {
    z-index: 2000 !important;
}

/* Ensure scrolling works */
.ts-dropdown-content {
    max-height: 500px;
}

/*.ts-control {
    font-size: 16px;
}*/
.ts-control .item {
    background-color: #4C1AC9;
    color: #fff;
}

.form-control > .form-select {
    max-width: 400px;
}

.form-100 {
    max-width: 100px;
}
.form-200 {
    max-width: 200px;
}
.form-400 {
    max-width: 400px;
}

.form-600 {
    max-width: 600px;
}

.form-control-height {
    height: 42.97px;
    min-height: 42.97px;
}

.company-record-link {
    --bs-btn-color: var(--bs-secondary-color);
    --bs-btn-border-color: var(--bs-secondary-color);
    --bs-btn-hover-color: var(--bs-secondary-color);
    --bs-btn-hover-border-color: var(--bs-secondary-color);
    --bs-btn-active-color: var(--bs-secondary-color);
    --bs-btn-active-border-color: var(--bs-secondary-color);
    border-color: var(--bs-secondary-color);
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.company-record-link i,
.company-record-link:hover i,
.company-record-link:focus i {
    color: var(--bs-secondary-color);
}

.company-record-link:hover,
.company-record-link:focus {
    background-color: #f1f3f5;
    border-color: #d7dce2;
    color: #000;
}


#attachCatalogueModal .modal-body {
    overflow: visible !important;
}

/** end tom select **/

/** badges **/
.badge-lg {
    font-size: 0.87rem;
    padding: 0.25em 0.65em;
    font-weight: 400;
    line-height: 1.5;
}

#ordersTable .tag-button,
#quotesTable .tag-button {
    display: inline-block;
    margin-bottom: 0.25rem;
}

.decoration-pill {
    background-color: #f3edff !important;
    border: 1px solid #ddd1ff !important;
    color: #5a3db2 !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    padding: 0.4rem 0.55rem;
}

.decoration-pill-action {
    appearance: none;
    cursor: pointer;
    box-shadow: none;
}

.decoration-pill-action:hover,
.decoration-pill-action:focus {
    background-color: #ece3ff !important;
    border-color: #cdbcf8 !important;
    color: #4c1ac9 !important;
}

.decoration-pill-action:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}
/** end badges **/

/** Adam's Awesome Product Builder **/
.builder-body {
    background: #f1f3f5;
}

.product-builder-row {
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.12);
}

.item-card {
    background:white;
    border-radius: 4px;
    border:1px solid #e0e0e0;
    padding:1rem;
    margin-bottom:1rem;
    box-shadow:0 2px 4px rgba(0,0,0,0.06);
}

.child-group {
    margin-left: 2rem;
    margin-top: 1rem;
    /*border-left: 3px solid #0d6efd;*/
    border-left: 3px solid #E0E2E4;
    padding-left: 1rem;
}

.child-row {
    background:#f8f9fa;
    border-radius: 4px;
    padding:1rem;
    margin-bottom:0.75rem;
    border:1px solid #e1e1e1;
}

.description-editor {
    min-height:70px;
}

.label-title {
    font-weight:600;
    font-size:0.9rem;
    color:#495057;
}

.item-header {
    font-size:1rem;
    font-weight:600;
    margin-bottom:0.5rem;
}

.badge-sub {
    background:#0d6efd;
}

.img-box {
    width:125px;
    height:125px;
    border:1px solid #cccccc;
    border-radius:4px;
    overflow:hidden;
}

.img-lg {
    width:300px;
    height:300px;
    overflow:hidden;
}

.img-med {
    width:125px;
    height:125px;
    overflow:hidden;
}

.img-tiny {
    width:60px;
    height:60px;
    overflow:hidden;
}

.image-box-300 {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    max-height: 300px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
}

.contained-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.asset-card {
    min-height: 350px;
}

.border-0 {
    box-shadow: none !important;
}

@keyframes highlight-shadow-blue {
    0% {
        box-shadow: 0 0 0 rgba(13, 110, 253, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(13, 110, 253, 0.8);
    }
    100% {
        box-shadow: 0 0 0 rgba(13, 110, 253, 0);
    }
}

@keyframes highlight-shadow-purple {
    0% {
        box-shadow: 0 0 0 RGB(76, 26, 201, 0);
    }
    50% {
        box-shadow: 0 0 15px RGB(76, 26, 201, 0.8);
    }
    100% {
        box-shadow: 0 0 0 RGB(76, 26, 201, 0);
    }
}

@keyframes highlight-shadow-orange {
    0% {
        box-shadow: 0 0 0 rgba(255, 165, 0, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 165, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 165, 0, 0);
    }
}

.order-totals-sticky {
    position: sticky;
    bottom: 0;
}

.description-editor {
    max-width: 100% !important;
}

/** hide image remove button **/
.remove-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    transform: scale(.95);
}

.product-img-box:hover .remove-btn {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/** end Adam's Awesome Product Builder **/

/*** fslightbox ***/
html.fslightbox-open {
    overflow: hidden !important;
    height: auto !important;
}

body.fslightbox-open {
    overflow: hidden;
    height: 100%;
}

/*** gmaps image box ***/
#addPersonModal .modal-content {
    max-height: calc(100vh - 3.5rem);
}

#addPersonForm {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 3.5rem);
}

#addPersonForm .modal-header,
#addPersonForm .modal-footer {
    flex: 0 0 auto;
}

#addPersonForm .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#addlocationModal .modal-content {
    max-height: calc(100vh - 3.5rem);
}

.company-location-modal-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 3.5rem);
}

.company-location-modal-form .modal-header,
.company-location-modal-form .modal-footer {
    flex: 0 0 auto;
}

.company-location-modal-form .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#mapBox img {
    max-height: 350px;
}

/*** beautiful buttons - if we need them ***/
.btn-azureblue { color:#fff; background-color:#007BFF; border-color:#007BFF; }
.btn-azureblue:hover { color:#fff; background-color:#3395FF; border-color:#3395FF; }
.btn-azureblue:focus { color:#fff; background-color:#3395FF; border-color:#3395FF; box-shadow:0 0 0 .2rem rgba(0,123,255,.4); }
.btn-azureblue:disabled { color:#fff; background-color:#3395FF; border-color:#3395FF; }

.btn-emerald { color:#fff; background-color:#00A86B; border-color:#00A86B; }
.btn-emerald:hover { color:#fff; background-color:#1BC98E; border-color:#1BC98E; }
.btn-emerald:focus { color:#fff; background-color:#1BC98E; border-color:#1BC98E; box-shadow:0 0 0 .2rem rgba(0,168,107,.4); }
.btn-emerald:disabled { color:#fff; background-color:#1BC98E; border-color:#1BC98E; }

.btn-sunsetorange { color:#fff; background-color:#FF6A00; border-color:#FF6A00; }
.btn-sunsetorange:hover { color:#fff; background-color:#FF8533; border-color:#FF8533; }
.btn-sunsetorange:focus { color:#fff; background-color:#FF8533; border-color:#FF8533; box-shadow:0 0 0 .2rem rgba(255,106,0,.4); }
.btn-sunsetorange:disabled { color:#fff; background-color:#FF8533; border-color:#FF8533; }

.proofs-skip-proof-btn { color:#fff; background-color:#F59E0B; border-color:#F59E0B; }
.proofs-skip-proof-btn:hover { color:#fff; background-color:#D97706; border-color:#D97706; }
.proofs-skip-proof-btn:focus { color:#fff; background-color:#D97706; border-color:#D97706; box-shadow:0 0 0 .2rem rgba(245,158,11,.4); }
.proofs-skip-proof-btn:disabled { color:#fff; background-color:#F59E0B; border-color:#F59E0B; }

.btn-production-start { color:#fff; background-color:#22C55E; border-color:#22C55E; }
.btn-production-start:hover { color:#fff; background-color:#4ADE80; border-color:#4ADE80; }
.btn-production-start:focus { color:#fff; background-color:#4ADE80; border-color:#4ADE80; box-shadow:0 0 0 .2rem rgba(34,197,94,.4); }
.btn-production-start:disabled { color:#fff; background-color:#4ADE80; border-color:#4ADE80; }

.btn-open-deliveries { color:#fff; background-color:#0D6E8C; border-color:#0D6E8C; }
.btn-open-deliveries:hover { color:#fff; background-color:#168AAD; border-color:#168AAD; }
.btn-open-deliveries:focus { color:#fff; background-color:#168AAD; border-color:#168AAD; box-shadow:0 0 0 .2rem rgba(13,110,140,.4); }
.btn-open-deliveries:disabled { color:#fff; background-color:#168AAD; border-color:#168AAD; }

.btn-open-designs { color:#fff; background-color:#86198F; border-color:#86198F; }
.btn-open-designs:hover { color:#fff; background-color:#A21CAF; border-color:#A21CAF; }
.btn-open-designs:focus { color:#fff; background-color:#A21CAF; border-color:#A21CAF; box-shadow:0 0 0 .2rem rgba(134,25,143,.4); }
.btn-open-designs:disabled { color:#fff; background-color:#A21CAF; border-color:#A21CAF; }

.btn-open-pams { color:#fff; background-color:#92400E; border-color:#92400E; }
.btn-open-pams:hover { color:#fff; background-color:#B45309; border-color:#B45309; }
.btn-open-pams:focus { color:#fff; background-color:#B45309; border-color:#B45309; box-shadow:0 0 0 .2rem rgba(146,64,14,.4); }
.btn-open-pams:disabled { color:#fff; background-color:#B45309; border-color:#B45309; }

.btn-crimson { color:#fff; background-color:#C1121F; border-color:#C1121F; }
.btn-crimson:hover { color:#fff; background-color:#E5383B; border-color:#E5383B; }
.btn-crimson:focus { color:#fff; background-color:#E5383B; border-color:#E5383B; box-shadow:0 0 0 .2rem rgba(193,18,31,.4); }
.btn-crimson:disabled { color:#fff; background-color:#E5383B; border-color:#E5383B; }

.btn-royalteal { color:#fff; background-color:#005F73; border-color:#005F73; }
.btn-royalteal:hover { color:#fff; background-color:#0A9396; border-color:#0A9396; }
.btn-royalteal:focus { color:#fff; background-color:#0A9396; border-color:#0A9396; box-shadow:0 0 0 .2rem rgba(0,95,115,.4); }
.btn-royalteal:disabled { color:#fff; background-color:#0A9396; border-color:#0A9396; }

.badge-royalteal { color:#fff; background-color:#005F73; }

.btn-goldensand { color:#000; background-color:#FFD166; border-color:#FFD166; }
.btn-goldensand:hover { color:#000; background-color:#FFE08A; border-color:#FFE08A; }
.btn-goldensand:focus { color:#000; background-color:#FFE08A; border-color:#FFE08A; box-shadow:0 0 0 .2rem rgba(255,209,102,.4); }
.btn-goldensand:disabled { color:#000; background-color:#FFE08A; border-color:#FFE08A; }

.btn-blushpink { color:#000; background-color:#FFB3C6; border-color:#FFB3C6; }
.btn-blushpink:hover { color:#000; background-color:#FFC2D1; border-color:#FFC2D1; }
.btn-blushpink:focus { color:#000; background-color:#FFC2D1; border-color:#FFC2D1; box-shadow:0 0 0 .2rem rgba(255,179,198,.4); }
.btn-blushpink:disabled { color:#000; background-color:#FFC2D1; border-color:#FFC2D1; }

.btn-mintfrost { color:#000; background-color:#A8E6CF; border-color:#A8E6CF; }
.btn-mintfrost:hover { color:#000; background-color:#C1F0DD; border-color:#C1F0DD; }
.btn-mintfrost:focus { color:#000; background-color:#C1F0DD; border-color:#C1F0DD; box-shadow:0 0 0 .2rem rgba(168,230,207,.4); }
.btn-mintfrost:disabled { color:#000; background-color:#C1F0DD; border-color:#C1F0DD; }

.btn-midnightnavy { color:#fff; background-color:#1B263B; border-color:#1B263B; }
.btn-midnightnavy:hover { color:#fff; background-color:#2C3E5C; border-color:#2C3E5C; }
.btn-midnightnavy:focus { color:#fff; background-color:#2C3E5C; border-color:#2C3E5C; box-shadow:0 0 0 .2rem rgba(27,38,59,.4); }
.btn-midnightnavy:disabled { color:#fff; background-color:#2C3E5C; border-color:#2C3E5C; }

.btn-lavendermist { color:#000; background-color:#E0BBE4; border-color:#E0BBE4; }
.btn-lavendermist:hover { color:#000; background-color:#E8C8EC; border-color:#E8C8EC; }
.btn-lavendermist:focus { color:#000; background-color:#E8C8EC; border-color:#E8C8EC; box-shadow:0 0 0 .2rem rgba(224,187,228,.4); }
.btn-lavendermist:disabled { color:#000; background-color:#E8C8EC; border-color:#E8C8EC; }

.comments-button-unread {
    color: #000 !important;
    background-color: #FFD166 !important;
    border-color: #FFD166 !important;
    box-shadow: 0 0 0 0.15rem rgba(255, 209, 102, 0.28);
}

.comments-button-unread:hover,
.comments-button-unread:focus {
    color: #000 !important;
    background-color: #FFE08A !important;
    border-color: #FFE08A !important;
}

.comments-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 0.2rem;
    background-color: #1B263B;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

/*** conversation bubbles ***/
.chat-wrapper {
    height: 100%;
}

.avatar {
    width: 42px;
    height: 42px;
    font-weight: 600;
    font-size: 0.85rem;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: min(480px, 100%);
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chat-bubble-operator {
    background: #c4c4c4;
    border-top-left-radius: 6px;
}

.chat-bubble-customer {
    background: #4C1AC9;
    color: #fff;
    border-top-right-radius: 6px;
}

/*.chat-bubble-operator:after {
    content: "";
    position: absolute;
    left: -6px;
    top: 14px;
    width: 12px;
    height: 12px;
    background: #f8f9fa;
    transform: rotate(45deg);
}*/

/*.chat-bubble-customer:after {
    content: "";
    position: absolute;
    right: -6px;
    top: 14px;
    width: 12px;
    height: 12px;
    background: #3163FD;
    transform: rotate(45deg);
}*/

.chat-messages {
    overflow-x: hidden;
}

.chat-messages .mb-4 {
    max-width: 100%;
}

.chat-messages .mb-4 > div:not(.flex-shrink-0) {
    min-width: 0;
    max-width: calc(100% - 54px);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}

/* Aggregate order and quote chat keeps its composer visible while history scrolls independently. */
#pane-chat .document-chat-messages {
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

#pane-chat .document-chat-message__content {
    min-width: 0;
}

#pane-chat .document-chat-message--reply {
    margin-left: 1rem;
}

#pane-chat .document-chat-message__avatar .avatar {
    display: block;
    object-fit: cover;
}

/*** login table ***/
.logintable {
    max-width: 520px;
}

/*** timeline bubbles ***/
.chat-timeline {
    position: relative;
    padding-left: 40px;
}

/* vertical timeline line */
.chat-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    width: 2px;
    height: 100%;
    background: #e9ecef;
}

/* message row */
.chat-timeline .mb-4 {
    position: relative;
}

/* avatar sits on timeline */
.chat-timeline .avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

/* message bubble spacing */
.chat-bubble {
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 10px;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    background: #f8f9fa;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* operator colour */
.chat-bubble-operator {
    background: #f3f1ff;
}

/* customer colour */
.chat-bubble-customer {
    background: #eef2ff;
    color: #000;
}

/* purple avatar */
.bg-purple {
    background-color: #4C1AC9;
}

/** dashboard dropshadows **/

.bg-cicada-stripes {
    background-color: #026873;
    background-size: 13px 13px, 29px 29px, 37px 37px, 53px 53px;
    background-image: -webkit-linear-gradient(0, rgba(255,255,255,.07) 50%, transparent 50%),
    -webkit-linear-gradient(0, rgba(255,255,255,.13) 50%, transparent 50%),
    -webkit-linear-gradient(0, transparent 50%, rgba(255,255,255,.17) 50%),
    -webkit-linear-gradient(0, transparent 50%, rgba(255,255,255,.19) 50%);
    background-image: -moz-linear-gradient(0, rgba(255,255,255,.07) 50%, transparent 50%),
    -moz-linear-gradient(0, rgba(255,255,255,.13) 50%, transparent 50%),
    -moz-linear-gradient(0, transparent 50%, rgba(255,255,255,.17) 50%),
    -moz-linear-gradient(0, transparent 50%, rgba(255,255,255,.19) 50%);
    background-image: linear-gradient(90deg, rgba(255,255,255,.07) 50%, transparent 50%),
    linear-gradient(90deg, rgba(255,255,255,.13) 50%, transparent 50%),
    linear-gradient(90deg, transparent 50%, rgba(255,255,255,.17) 50%),
    linear-gradient(90deg, transparent 50%, rgba(255,255,255,.19) 50%);
    -pie-background: linear-gradient(90deg, rgba(255,255,255,.07) 50%, transparent 50%) 0 0 / 13px,
    linear-gradient(90deg, rgba(255,255,255,.13) 50%, transparent 50%) 0 0 / 29px,
    linear-gradient(90deg, transparent 50%, rgba(255,255,255,.17) 50%) 0 0 / 37px,
    linear-gradient(90deg, transparent 50%, rgba(255,255,255,.19) 50%) 0 0 / 53px,
    #026873;
    /*behavior: url(/pie/PIE.htc);*/
}

.bg-green-angled {
    background-size: 50px 50px;
    background-color: #ac0;
    background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
    transparent 75%, transparent);
    background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
    transparent 75%, transparent);
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
    transparent 75%, transparent);
    -pie-background: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%,
    transparent 75%, transparent) 0 0 / 50px 50px #ac0;
    /*behavior: url(/pie/PIE.htc);*/
}

.sidebar {
    box-shadow: rgba(136, 165, 191, 0.48) 6px 2px 16px 0px, rgba(255, 255, 255, 0.8) -6px -2px 16px 0px;
}

.card-dropshadow {
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.order-document-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.order-document-preview {
    min-height: 108px;
    padding: 1rem;
    background:
        radial-gradient(circle at top left, rgba(112, 72, 232, 0.16), transparent 42%),
        linear-gradient(135deg, #f7f8fc 0%, #eef2f9 100%);
    border: 1px solid #e8edf5;
    border-radius: 12px;
}

.order-document-preview-icon {
    color: #7c3aed;
    font-size: 2rem;
}

.order-document-preview-image {
    max-height: 76px;
    object-fit: contain;
}

#productbuilder #order-summary .input-group{
    margin-top: 0px;
}

/* =========================================================
   QUOTE PRODUCTION PANE
   ========================================================= */

#pane-quoteproduction .card-body {
    padding-top: 1rem;
}

/* Board wrapper */
.production-board-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 4px;
}

/* Main grid:
   1 master column + 9 workflow columns
*/
.production-board-grid {
    display: grid;
    grid-template-columns: minmax(340px, 380px) repeat(var(--production-stage-count, 9), minmax(120px, 1fr));
    gap: 8px;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
}

/* Allows Alpine row wrappers to participate directly in grid */
.production-row-group,
.production-row {
    display: contents;
}

/* =========================================================
   HEADERS
   ========================================================= */

.production-head {
    background: #f3f3f5;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    min-height: 72px;
    padding: 12px 14px;
    box-sizing: border-box;
}

.production-head-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.production-head-item .text-purple {
    color: #5c3fd6 !important;
    font-weight: 700;
}

.production-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eee7ff;
    color: #6946dd;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.production-head-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    line-height: 1.35;
}

/* =========================================================
   PARENT ROWS
   ========================================================= */

.production-master-cell,
.production-stage-cell {
    min-height: 142px;
}

/* Parent card */
.production-master-card {
    height: 100%;
    display: grid;
    grid-template-columns: 28px 120px 1fr;
    gap: 12px;
    align-items: center;
    background: #f3f3f5;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
}

/* Left tiny number rail */
.production-item-index {
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #555b66;
    padding-top: 8px;
    line-height: 1;
}

/* Thumbnail */
.production-item-thumb {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #ededf1;
    border: 1px solid #e2e5ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.production-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.production-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.production-thumb-link:focus-visible {
    outline: 2px solid #7b61ff;
    outline-offset: -4px;
}

.production-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a3aab5;
    font-size: 30px;
    width: 100%;
    height: 100%;
}

/* Parent text area */
.production-item-main {
    min-width: 0;
}

.production-item-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.28;
    color: #2f333a;
    margin-bottom: 6px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.production-item-meta {
    font-size: 13px;
    color: #7a808b;
    line-height: 1.35;
}

/* Proof / action pill */
.production-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cdbcf8;
    background: #faf7ff;
    color: #4d3d8d;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 7px 14px;
    text-decoration: none;
    box-shadow: none;
}

.production-pill-btn:hover,
.production-pill-btn:focus {
    background: #f3edff;
    color: #3f3077;
    border-color: #b9a2f1;
    text-decoration: none;
    box-shadow: none;
}

/* =========================================================
   STAGE CELLS - PARENT ONLY
   ========================================================= */

.production-stage-box {
    height: 100%;
    min-height: 142px;
    background: #f3f3f5;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.production-stage-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

/* Complete */
.production-stage-icon.is-complete {
    background: #e6f7ed;
    color: #2ea665;
}

/* Warning */
.production-stage-icon.is-warning {
    background: #fbe9ed;
    color: #d94d6b;
}

/* Loading/active */
.production-stage-icon.is-active {
    background: #eaf1ff;
    color: #4f7ae8;
}

/* Empty */
.production-stage-icon.is-empty {
    background: #eeeff3;
    color: #b1b7c3;
}

.production-stage-icon > i {
    transform: scale(1.3);
    transform-origin: center center;
}

.quote-production-board .production-board-grid {
    grid-template-columns: minmax(340px, 380px) repeat(var(--production-stage-count, 9), minmax(78px, 0.6fr));
}

.quote-production-board .production-head {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 8px;
}

.quote-production-board .production-head-item {
    gap: 6px;
}

.quote-production-board .production-head-stage {
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.06em;
}

.quote-production-board .production-count-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 11px;
}

.quote-production-board .production-stage-cell,
.quote-production-board .production-stage-box {
    min-height: 86px;
}

.quote-production-board .production-stage-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.order-production-workflow .production-board-grid {
    grid-template-columns: repeat(var(--production-stage-count, 1), minmax(96px, 1fr));
    width: 100%;
}

.order-production-workflow .production-head {
    min-height: 58px;
    padding: 10px 8px;
}

.order-production-workflow .production-head-stage {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.04em;
}

.order-production-workflow .production-stage-cell,
.order-production-workflow .production-stage-box {
    min-height: 92px;
}

.order-production-workflow .production-stage-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
}

#pane-orderproduction .production-board-wrap .production-board-grid {
    grid-template-columns: minmax(280px, 320px) repeat(var(--production-stage-count, 1), minmax(96px, 1fr));
}

#pane-orderproduction .production-board-wrap .production-head {
    min-height: 58px;
    padding: 10px 8px;
}

#pane-orderproduction .production-board-wrap .production-head-stage {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.04em;
}

#pane-orderproduction .production-board-wrap .production-stage-cell,
#pane-orderproduction .production-board-wrap .production-stage-box {
    min-height: 92px;
}

#pane-orderproduction .production-board-wrap .production-stage-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
}

#pane-quoteproduction .production-board-wrap .production-board-grid {
    grid-template-columns: minmax(280px, 320px) repeat(var(--production-stage-count, 1), minmax(96px, 1fr));
}

#pane-quoteproduction .production-board-wrap .production-head {
    min-height: 58px;
    padding: 10px 8px;
}

#pane-quoteproduction .production-board-wrap .production-head-stage {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.04em;
}

#pane-quoteproduction .production-board-wrap .production-stage-cell,
#pane-quoteproduction .production-board-wrap .production-stage-box {
    min-height: 92px;
}

#pane-quoteproduction .production-board-wrap .production-stage-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
}

/* =========================================================
   CHILD FULL-WIDTH ROWS
   ========================================================= */

.production-child-fullrow {
    grid-column: 1 / -1;
}

.production-child-fullcard {
    min-height: 58px;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: center;
    background: #f8f8fa;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 10px 14px;
    box-sizing: border-box;
}

.production-child-indent {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9da4af;
    font-size: 14px;
    line-height: 1;
}

.production-child-fullmain {
    min-width: 0;
}

.production-child-fulltitlewrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content; /* Container expands to fit children */
    gap: 8px;
}

.production-child-title {
    font-size: 13px;
    font-weight: 600;
    color: #3a3f47;
    line-height: 1.35;
}

.production-child-badges {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Generic inline badge */
.production-inline-badge {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 9px;
    /*border-radius: 999px;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Nice default look if you're not using Bootstrap badge helpers */
/*.production-inline-badge:not(.bg-danger):not(.text-white) {
    background: #f3f4f7;
    color: #4d5562;
    border: 1px solid #d8dde7;
}*/

/* =========================================================
   OPTIONAL HELPER STYLES
   ========================================================= */

/* Slight visual separation between a parent group and next one */
.production-child-fullrow:last-of-type .production-child-fullcard {
    margin-bottom: 2px;
}

/* If there are links in rows */
#pane-quoteproduction a.production-pill-btn {
    text-decoration: none;
}

/* Make sure buttons don't look oversized inside cards */
#pane-quoteproduction .btn.production-pill-btn {
    min-height: auto;
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */

@media (max-width: 1600px) {
    .production-board-grid {
        grid-template-columns: minmax(320px, 360px) repeat(var(--production-stage-count, 9), minmax(110px, 1fr));
    }

    .quote-production-board .production-board-grid {
        grid-template-columns: minmax(320px, 360px) repeat(var(--production-stage-count, 9), minmax(72px, 0.58fr));
    }

    .production-master-card {
        grid-template-columns: 24px 104px 1fr;
    }

    .production-item-thumb {
        width: 104px;
        height: 104px;
    }

    .production-master-cell,
    .production-stage-cell,
    .production-stage-box {
        min-height: 128px;
    }

    .order-production-workflow .production-board-grid {
        grid-template-columns: repeat(var(--production-stage-count, 1), minmax(88px, 1fr));
    }

    #pane-orderproduction .production-board-wrap .production-board-grid {
        grid-template-columns: minmax(260px, 300px) repeat(var(--production-stage-count, 1), minmax(88px, 1fr));
    }

    #pane-quoteproduction .production-board-wrap .production-board-grid {
        grid-template-columns: minmax(260px, 300px) repeat(var(--production-stage-count, 1), minmax(88px, 1fr));
    }
}

@media (max-width: 1200px) {
    .production-item-title {
        font-size: 14px;
    }

    .production-item-meta {
        font-size: 12px;
    }

    .production-pill-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .order-production-workflow .production-head-stage {
        font-size: 9px;
    }

    .order-production-workflow .production-board-grid {
        grid-template-columns: repeat(var(--production-stage-count, 1), minmax(76px, 1fr));
    }

    #pane-orderproduction .production-board-wrap .production-head-stage {
        font-size: 9px;
    }

    #pane-orderproduction .production-board-wrap .production-board-grid {
        grid-template-columns: minmax(240px, 280px) repeat(var(--production-stage-count, 1), minmax(76px, 1fr));
    }

    #pane-quoteproduction .production-board-wrap .production-head-stage {
        font-size: 9px;
    }

    #pane-quoteproduction .production-board-wrap .production-board-grid {
        grid-template-columns: minmax(240px, 280px) repeat(var(--production-stage-count, 1), minmax(76px, 1fr));
    }
}

#pane-orderproduction .product-production-workflow .production-board-grid {
    grid-template-columns: minmax(220px, 260px) repeat(var(--production-stage-count, 1), minmax(72px, 1fr));
    gap: 6px;
    width: 100%;
}

#pane-orderproduction .product-production-workflow .production-head {
    min-height: 48px;
    padding: 8px 6px;
    border-radius: 8px;
}

#pane-orderproduction .product-production-workflow .production-head-stage {
    font-size: 9px;
    line-height: 1.18;
    letter-spacing: 0.03em;
}

#pane-orderproduction .product-production-workflow .production-master-cell,
#pane-orderproduction .product-production-workflow .production-stage-cell,
#pane-orderproduction .product-production-workflow .production-stage-box {
    min-height: 82px;
}

#pane-orderproduction .product-production-workflow .production-master-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
}

#pane-orderproduction .product-production-workflow .production-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
}

#pane-orderproduction .product-production-workflow .production-item-title {
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
}

#pane-orderproduction .product-production-workflow .production-item-meta {
    font-size: 11px;
    line-height: 1.2;
}

#pane-orderproduction .product-production-workflow .production-stage-box {
    border-radius: 8px;
    padding: 6px 4px;
    flex-direction: column;
    gap: 4px;
}

#pane-orderproduction .product-production-workflow .production-stage-icon {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

#pane-orderproduction .product-production-workflow .production-stage-icon > i {
    transform: scale(1.15);
}

#pane-orderproduction .product-production-workflow .proof-upload-stage-box .btn-sm {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    max-width: 66px;
    padding: 3px 4px;
    font-size: 10px;
    line-height: 1.1;
    white-space: normal;
}

#pane-orderproduction .product-production-workflow .proof-upload-stage-box .btn-sm i {
    margin-right: 0 !important;
}

/* =========================================================
   AI PRODUCT GENERATION MODAL
   ========================================================= */

.ai-generate-modal-content {
    position: relative;
}

.ai-generate-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(4px);
}

.ai-generate-loading-card {
    width: min(100%, 420px);
    padding: 26px 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    text-align: center;
}

.ai-generate-loading-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 18px;
    border: 3px solid rgba(76, 26, 201, 0.18);
    border-top-color: #5f72ff;
    border-radius: 50%;
    animation: ai-generate-spin 0.85s linear infinite;
}

.ai-generate-loading-title {
    color: #5f72ff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.ai-generate-loading-copy {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.4;
}

@keyframes ai-generate-spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-generate-tile {
    border: 1px dashed rgba(73, 38, 199, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
}

.ai-generate-tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ai-generate-preview-tile {
    height: 310px;
    min-height: 310px;
    overflow: hidden;
}

.ai-generate-preview-tile > .text-center {
    max-width: 100%;
}

.ai-generate-preview-tile > .text-center img,
.ai-generate-logo-tile img {
    max-height: 220px;
}

.ai-generate-product-grid-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.ai-generate-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    height: 100%;
}

.ai-generate-logo-tile {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ai-generate-logo-tile:hover,
.ai-generate-logo-tile:focus-visible {
    border-color: rgba(73, 38, 199, 0.55);
    box-shadow: 0 0 0 3px rgba(73, 38, 199, 0.08);
    outline: none;
}

.ai-generate-product-tile-wrap {
    position: relative;
    min-width: 0;
    min-height: 0;
}

.ai-generate-product-tile {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e5ec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    padding: 6px;
    width: 100%;
    height: 100%;
}

.ai-generate-product-grid .ai-generate-product-tile img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.ai-generate-product-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.94);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(30, 41, 59, 0.22);
}

.ai-generate-product-remove:hover,
.ai-generate-product-remove:focus {
    background: #bb2d3b;
    outline: none;
}

.ai-generate-prompt {
    min-height: 150px;
    border-radius: 0.2rem;
}

.ai-generate-badge {
    border: 0;
    border-radius: 999px;
    background: #efeafe;
    color: #4926c7;
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
}

.ai-generate-badge:hover {
    background: #e2d8ff;
}

.btn-edit-proof-metadata,
.btn-edit-design-metadata {
    background: #5c4b9f;
    border-color: #5c4b9f;
    color: #fff;
}

.btn-edit-proof-metadata:hover,
.btn-edit-proof-metadata:focus,
.btn-edit-design-metadata:hover,
.btn-edit-design-metadata:focus {
    background: #493a82;
    border-color: #493a82;
    color: #fff;
}

/* =========================================================
   ORDERS VIEW / NOTES COMPOSER + WORKFLOW
   ========================================================= */

.comment-composer {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 720px;
    padding: 10px;
    background: #f8f9fc;
    border: 1px solid #d9deea;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.comment-composer__field {
    flex: 1 1 auto;
    min-height: 44px;
    max-height: 160px;
    resize: none;
    overflow-y: hidden;
    border: 1px solid #cfd6e4;
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.4;
    box-shadow: none;
    margin: 0;
}

.comment-composer__field:focus {
    border-color: #7c5ddb;
    box-shadow: 0 0 0 0.2rem rgba(76, 26, 201, 0.12);
}

/* Internal order notes should begin with enough room for a short update. */
#pane-notes .comment-composer__field {
    min-height: 80px;
}

/* Keep the internal-notes reminder distinct from the pane title. */
#pane-notes .hub-notice-card--info {
    margin-top: .75rem;
}

.comment-composer__send {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 0 0 44px;
}

.comment-composer__send[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-mention-composer {
    position: relative;
}

.admin-mention-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + .4rem);
    left: 0;
    z-index: 1085;
    max-height: 260px;
    overflow-y: auto;
    padding: .35rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .35rem;
    box-shadow: 0 .5rem 1.25rem rgba(31, 42, 68, .16);
}

.admin-mention-option {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: .55rem .7rem;
    color: #243047;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: .25rem;
}

.admin-mention-option span {
    color: #6c757d;
    font-size: .75rem;
}

.admin-mention-option:hover,
.admin-mention-option.is-active {
    background: #eef3fb;
}

.chat-visibility-public {
    color: #0d6efd;
}

.chat-visibility-private {
    color: #6c757d;
}

.chat-inbox-nav-icon.has-unread i {
    color: var(--bs-warning, #fcb92c);
}

.chat-inbox-nav-badge {
    position: absolute;
    top: -.45rem;
    right: -.65rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 .25rem;
    color: #212529;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    background: var(--bs-warning, #fcb92c);
    border-radius: 999px;
}

.chat-inbox-flyout {
    width: min(470px, 100vw);
    right: min(-470px, -100vw);
}

.chat-inbox-list {
    padding: .75rem;
    background: #f5f7fb;
}

.chat-inbox-tile {
    position: relative;
    display: block;
    margin-bottom: .65rem;
    padding: .9rem 1rem 2.8rem;
    color: #243047;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e1e5ec;
    border-radius: .4rem;
    box-shadow: 0 .1rem .25rem rgba(31, 42, 68, .05);
}

.chat-inbox-tile:hover {
    color: #243047;
    text-decoration: none;
    border-color: #cbd3df;
    box-shadow: 0 .25rem .7rem rgba(31, 42, 68, .1);
}

.chat-inbox-tile.is-unread {
    border-color: rgba(225, 156, 0, .6);
}

.chat-inbox-tile__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.chat-inbox-tile__link:hover {
    color: inherit;
    text-decoration: none;
}

/* Match the conversation flyout: a fixed, circular identity marker with an
   image cropped inside it or purple initials when the sender has no photo. */
.chat-inbox-tile__link--with-avatar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    min-height: 42px;
}

.chat-inbox-tile__avatar {
    align-items: center;
    align-self: start;
    background: #4C1AC9;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: .85rem;
    font-weight: 600;
    height: 42px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    width: 42px;
}

.chat-inbox-tile__avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.chat-inbox-tile__header,
.chat-inbox-tile__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.chat-inbox-read-toggle {
    position: absolute;
    right: .75rem;
    bottom: .65rem;
    padding: .25rem .55rem;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.chat-inbox-read-toggle--read {
    color: #495057;
    background: #e1e5ec;
    border-color: #cbd3df;
}

.chat-inbox-read-toggle--unread {
    color: #4d3900;
    background: rgba(252, 185, 44, .55);
    border-color: rgba(225, 156, 0, .75);
}

.chat-inbox-read-toggle:disabled {
    cursor: wait;
    opacity: .65;
}

.chat-inbox-tile__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
}

.chat-inbox-tile__message {
    display: -webkit-box;
    margin: .45rem 0 .55rem;
    overflow: hidden;
    color: #4f5968;
    font-size: .82rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.chat-inbox-tile__meta {
    color: #7a8493;
    font-size: .72rem;
}

.chat-inbox-visibility {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.chat-inbox-empty {
    padding: 3rem 1rem;
    color: #7a8493;
    text-align: center;
}

@media (max-width: 575.98px) {
    .chat-inbox-tile__link--with-avatar {
        grid-template-columns: 51px minmax(0, 1fr);
        gap: .7rem;
        min-height: 64px;
    }

    .chat-inbox-tile__avatar {
        width: 51px;
        height: 51px;
        flex-basis: 51px;
        font-size: 1rem;
    }

    .chat-inbox-tile__meta {
        flex-wrap: wrap;
        gap: .25rem .5rem;
    }
}

.proof-upload-stage-box {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

/* =========================================================
   QUOTES VIEW / NOTES COMPOSER
   ========================================================= */

/* Uses the shared .comment-composer styles above */

/* =========================================================
   ORDERS + QUOTES / PRODUCT BUILDER CHILD THUMBNAILS
   ========================================================= */

.builder-child-thumb {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #d9deea;
    background: #eef1f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
}

.builder-child-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   CATALOGUES VIEW / ATTACHED PRODUCTS PANE
   ========================================================= */

.catalogue-products-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catalogue-product-group {
    border: 1px solid #d9deea;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(34, 42, 66, 0.05);
}

.catalogue-product-parent {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1rem 1.25rem;
    align-items: center;
    background: #f8f9fc;
}

.catalogue-product-thumb {
    width: 88px;
    height: 88px;
    border-radius: 1rem;
    overflow: hidden;
    background: #eef1f7;
    border: 1px solid #d9deea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalogue-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalogue-product-placeholder {
    color: #8b95a7;
    font-size: 1.4rem;
}

.catalogue-product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2b2f38;
    margin-bottom: 0.2rem;
}

.catalogue-product-subtitle {
    color: #697386;
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.catalogue-product-badges,
.catalogue-product-children-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.catalogue-product-children {
    padding: 0.3rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: #f8f9fc;
}

.catalogue-product-child {
    margin-left: 3rem;
    border: 1px solid #e3e7f0;
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.catalogue-product-child-title {
    font-weight: 600;
    color: #2b2f38;
    margin-bottom: 0.25rem;
}

.catalogue-product-child-thumb {
    width: 52px;
    height: 52px;
    border-radius: 0.7rem;
    overflow: hidden;
    background: #eef1f7;
    border: 1px solid #d9deea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.55rem;
    vertical-align: middle;
}

.catalogue-product-child-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalogue-product-child-thumb-placeholder {
    color: #8b95a7;
    font-size: 0.85rem;
}

/* =========================================================
   DELIVERIES CREATE / CHILD PRODUCT ROWS
   ========================================================= */

.delivery-parent-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delivery-parent-thumb {
    width: 65px;
    height: 65px;
    flex: 0 0 65px;
    padding: 3px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b95a7;
}

.delivery-parent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.delivery-child-row td {
    font-size: 0.84rem;
    background: rgba(0, 0, 0, 0.015);
}

.delivery-child-indent {
    padding-left: 1rem;
    border-left: 2px solid rgba(73, 38, 199, 0.18);
}

.delivery-child-title {
    font-size: 0.86rem;
    color: #374151;
}

.delivery-child-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

/* =========================================================
   DELIVERIES VIEW / CHILD PRODUCT ROWS
   ========================================================= */

.delivery-row-muted {
    opacity: 0.55;
}

.delivery-child-row td {
    font-size: 0.84rem;
    background: rgba(0, 0, 0, 0.015);
}

.delivery-child-indent {
    padding-left: 1rem;
    border-left: 2px solid rgba(73, 38, 199, 0.18);
}

.delivery-child-title {
    font-size: 0.86rem;
    color: #374151;
}

.delivery-child-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

/* =========================================================
   PAMS / NESTED PRODUCT ROWS
   ========================================================= */

#pamsTable .pams-order-row td {
    font-weight: 600;
    background: rgba(73, 38, 199, 0.035);
}

#pamsTable .pams-product-row td {
    font-size: 0.84rem;
    background: rgba(0, 0, 0, 0.015);
}

#pamsTable th:first-child,
#pamsTable td:first-child {
    width: 30%;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

#pamsTable th:nth-child(2),
#pamsTable td:nth-child(2) {
    width: 19%;
}

.pams-order-number {
    font-weight: 400;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pams-order-reference-inline {
    color: var(--mercha-admin-muted);
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.25;
    margin-left: .35rem;
}

.pams-account-name {
    color: #374151;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0.2rem;
}

.pams-order-reference {
    align-items: center;
    color: var(--mercha-admin-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-weight: 400;
    gap: .35rem;
    line-height: 1.25;
    margin-top: 0.15rem;
}

.pams-order-status .badge {
    font-size: .68rem;
    line-height: 1.2;
    padding: .2rem .45rem;
}

.pams-quantity {
    font-size: 0.97rem !important;
}

.pams-product-indent {
    padding-left: 1rem;
    border-left: 2px solid rgba(73, 38, 199, 0.18);
}

.pams-product-title {
    color: #374151;
}

.pams-manufacturing-request {
    line-height: 1.3;
    padding: .45rem .7rem;
}

.btn-pams-proof-notify { color: #fff; background-color: #2563EB; border-color: #2563EB; }
.btn-pams-proof-notify:hover { color: #fff; background-color: #1D4ED8; border-color: #1D4ED8; }
.btn-pams-proof-notify:focus { color: #fff; background-color: #1D4ED8; border-color: #1D4ED8; box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .4); }
.btn-pams-proof-notify:disabled { color: #fff; background-color: #1D4ED8; border-color: #1D4ED8; }

.btn-pams-return-design { color: #fff; background-color: #7C3AED; border-color: #7C3AED; }
.btn-pams-return-design:hover { color: #fff; background-color: #6D28D9; border-color: #6D28D9; }
.btn-pams-return-design:focus { color: #fff; background-color: #6D28D9; border-color: #6D28D9; box-shadow: 0 0 0 .2rem rgba(124, 58, 237, .4); }
.btn-pams-return-design:disabled { color: #fff; background-color: #6D28D9; border-color: #6D28D9; }

.pams-view-proof:disabled { color: #fff; background-color: #6B7280; border-color: #6B7280; opacity: .65; }

@media (max-width: 767.98px) {
    .comment-composer {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-composer__send {
        width: 100%;
    }

    .catalogue-product-parent,
    .catalogue-product-child {
        grid-template-columns: 1fr;
    }

    .catalogue-product-child {
        margin-left: 0;
    }
}
/* Dashboard */
.dashboard-activity-feed {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.dashboard-activity-feed {
    position: relative;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, 1) calc(100% - 36px), rgba(0, 0, 0, 0.25) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, 1) calc(100% - 36px), rgba(0, 0, 0, 0.25) 100%);
}

.dashboard-activity-row {
    margin-left: 0;
    margin-right: 0;
    padding: 0.75rem 0.5rem;
    border-radius: 0.65rem;
}

.dashboard-activity-row-alt {
    background: rgba(217, 222, 234, 0.45);
}

/* =========================================================
   ORDERS / QUOTES PRODUCT BUILDER BULK PRICING
   ========================================================= */

.bulk-pricing-field {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.35rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.2;
    overflow: hidden;
}

.bulk-pricing-tier-list {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.bulk-pricing-tier {
    color: #6b7280;
    font-weight: 500;
}

.bulk-pricing-tier.is-active {
    color: #2f3541;
}

.bulk-pricing-tier.is-applied {
    color: #111827;
    font-weight: 700;
}

.bulk-pricing-empty {
    color: #9ca3af;
}

/* =========================================================
   MERCHA HUB ADMIN THEME ALIGNMENT
   Admin-only shell and dashboard skin to match the main Hub.
   ========================================================= */

@font-face {
    font-family: "Akkurat Pro";
    src:
        url('/assets/admin/fonts/akkurat-pro-regular.woff') format('woff'),
        url('/assets/admin/fonts/akkurat-pro-regular.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: "Akkurat Pro";
    src:
        url('/assets/admin/fonts/akkurat-pro-italic.woff') format('woff'),
        url('/assets/admin/fonts/akkurat-pro-italic.woff2') format('woff2');
    font-style: italic;
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: "Akkurat Pro";
    src:
        url('/assets/admin/fonts/akkurat-pro-bold.woff') format('woff'),
        url('/assets/admin/fonts/akkurat-pro-bold.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
    font-weight: 700;
}

@font-face {
    font-family: "Akkurat Pro";
    src:
        url('/assets/admin/fonts/akkurat-pro-bold-italic.woff') format('woff'),
        url('/assets/admin/fonts/akkurat-pro-bold-italic.woff2') format('woff2');
    font-style: italic;
    font-display: swap;
    font-weight: 700;
}

:root {
    --mercha-admin-primary: #31017C;
    --mercha-admin-secondary: #5C00CC;
    --mercha-admin-primary-tint: #CBB8E5;
    --mercha-admin-primary-light: #EBDEFC;
    --mercha-admin-sidebar: #253241;
    --mercha-admin-sidebar-deep: #1E2936;
    --mercha-admin-sidebar-text: #D7DEE7;
    --mercha-admin-bg: #EBEBEB;
    --mercha-admin-shell: #F1F1F1;
    --mercha-admin-surface: #FFFFFF;
    --mercha-admin-text: #333333;
    --mercha-admin-muted: #6B7280;
    --mercha-admin-border: #E3E3E3;
    --mercha-admin-shadow: 0 12px 30px rgba(49, 1, 124, 0.08);
    --mercha-admin-radius: 12px;
}

body {
    background: var(--mercha-admin-bg);
    color: var(--mercha-admin-text);
    font-family: "Inter", sans-serif;
}

.wrapper {
    background: var(--mercha-admin-bg) !important;
}

.main,
.content,
.footer,
.navbar-bg {
    background: transparent;
}

.content {
    padding: 2rem 2rem 1rem;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
.card-title {
    font-family: "Akkurat Pro", sans-serif;
    color: var(--mercha-admin-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sidebar-brand-text {
    font-family: "Akkurat Pro", sans-serif;
    color: #F8FAFC;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding-left: .5rem;
}

.text-muted {
    color: var(--mercha-admin-muted) !important;
}

.text-purple,
.text-primary {
    color: var(--mercha-admin-primary) !important;
}

.bg-purple {
    background-color: var(--mercha-admin-primary) !important;
}

.border-purple {
    border-color: var(--mercha-admin-primary) !important;
}

.btn {
    border-radius: 999px;
    font-weight: 600;
}

.btn-primary {
    color: #fff;
    background-color: var(--mercha-admin-primary);
    border-color: var(--mercha-admin-primary);
    border-radius: 999px;
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus {
    color: #fff;
    background-color: var(--mercha-admin-secondary) !important;
    border-color: var(--mercha-admin-secondary) !important;
    box-shadow: 0 0 0 0.2rem rgba(92, 0, 204, 0.16);
}

.btn-primary.disabled,
.btn-primary:disabled {
    color: #fff;
    background-color: var(--mercha-admin-secondary);
    border-color: var(--mercha-admin-secondary);
}

.btn-outline-primary {
    --bs-btn-color: var(--mercha-admin-primary);
    --bs-btn-border-color: var(--mercha-admin-primary-tint);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--mercha-admin-primary);
    --bs-btn-hover-border-color: var(--mercha-admin-primary);
    --bs-btn-focus-shadow-rgb: 49, 1, 124;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--mercha-admin-primary);
    --bs-btn-active-border-color: var(--mercha-admin-primary);
    --bs-btn-disabled-color: var(--mercha-admin-primary);
    --bs-btn-disabled-border-color: var(--mercha-admin-primary-tint);
    border-radius: 999px;
}

.btn-danger {
    color: #fff;
    background-color: #E5484D;
    border-color: #E5484D;
    box-shadow: none;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger.focus {
    color: #fff;
    background-color: #D63C41 !important;
    border-color: #D63C41 !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 72, 77, 0.18);
}

.btn-danger.disabled,
.btn-danger:disabled {
    color: #fff;
    background-color: #D63C41;
    border-color: #D63C41;
}

.btn-outline-secondary {
    color: var(--mercha-admin-muted);
    border-color: var(--mercha-admin-border);
    background: #FFFFFF;
    box-shadow: none;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary.focus {
    color: var(--mercha-admin-primary);
    background: var(--mercha-admin-primary-light);
    border-color: var(--mercha-admin-primary-tint);
    box-shadow: 0 0 0 0.2rem rgba(203, 184, 229, 0.18);
}

.btn-outline-secondary.disabled,
.btn-outline-secondary:disabled {
    color: var(--mercha-admin-muted);
    background: #FFFFFF;
    border-color: var(--mercha-admin-border);
}

.action-buttons .btn,
.modal-footer .btn,
.dataTables_wrapper .btn,
.genericTable .btn {
    border-radius: 999px;
}

.adminUserForm .card {
    border: 0;
}

.sidebar {
    background: linear-gradient(180deg, var(--mercha-admin-sidebar-deep) 0%, var(--mercha-admin-sidebar) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.sidebar-content {
    background: transparent;
}

.sidebar-brand {
    background: rgba(255, 255, 255, 0.03);
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1.35rem;
    padding-bottom: 1.1rem;
}

.sidebar-brand-favicon {
    flex: 0 0 auto;
}

.sidebar-brand:hover {
    color: #FFFFFF;
}

.sidebar-brand .badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.sidebar-user {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
}

.sidebar-user-title,
.sidebar-user-subtitle {
    color: var(--mercha-admin-sidebar-text);
}

.sidebar-user .avatar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.sidebar-link,
.sidebar-link i,
.sidebar-link svg {
    color: var(--mercha-admin-sidebar-text);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-item.active .sidebar-link,
.sidebar-item.active .sidebar-link i,
.sidebar-item.active .sidebar-link svg,
.sidebar-link:hover,
.sidebar-link:hover i,
.sidebar-link:hover svg,
.sidebar-link:focus {
    color: #FFFFFF;
}

.sidebar-item.active .sidebar-link,
.sidebar-link:hover,
.sidebar-link:focus {
    background: linear-gradient(90deg, rgba(92, 0, 204, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 8px;
}

.sidebar-item.active .sidebar-link {
    box-shadow: inset 3px 0 0 var(--mercha-admin-secondary);
}

.sidebar-header hr {
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.navbar-bg {
    background: var(--mercha-admin-shell) !important;
    border-bottom: 1px solid var(--mercha-admin-border);
    box-shadow: none;
}

.navbar-light .navbar-nav .nav-link,
.nav-icon,
.navbar .hamburger,
.navbar .hamburger:after,
.navbar .hamburger:before {
    color: var(--mercha-admin-text);
}

.nav-icon:hover,
.nav-icon:focus {
    color: var(--mercha-admin-primary);
}

.card,
.card-dropshadow {
    background: var(--mercha-admin-surface);
    border: 1px solid var(--mercha-admin-border);
    border-radius: var(--mercha-admin-radius);
    box-shadow: var(--mercha-admin-shadow);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--mercha-admin-border);
    padding-top: 1rem;
    padding-bottom: 0.85rem;
}

.card-title {
    color: var(--mercha-admin-primary);
    font-size: 1rem;
}

.stat {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--mercha-admin-primary-light);
    color: var(--mercha-admin-primary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-secondary-light,
.badge-success-light,
.badge-danger-light {
    color: var(--mercha-admin-primary);
    background: var(--mercha-admin-primary-light);
    border: 1px solid var(--mercha-admin-primary-tint);
}

.badge.bg-primary-subtle,
.badge.bg-danger-subtle,
.badge.bg-light {
    border-radius: 999px;
}

.badge.bg-primary-subtle {
    background: var(--mercha-admin-primary-light) !important;
    border-color: var(--mercha-admin-primary-tint) !important;
    color: var(--mercha-admin-primary) !important;
}

.badge.bg-danger-subtle {
    background: #FCE7F3 !important;
    border-color: #F9A8D4 !important;
    color: #9D174D !important;
}

.badge.bg-light {
    background: #F7F7F7 !important;
    border-color: var(--mercha-admin-border) !important;
    color: var(--mercha-admin-text) !important;
}

.text-warning {
    color: #FCB92C !important;
}

.card.border-warning,
.card.border-warning-subtle {
    border-color: #FCB92C !important;
}

.card.border-warning > .card-header,
.card.border-warning-subtle > .card-header {
    color: #FCB92C;
}

.dashboard-activity-feed {
    padding-right: 0.25rem;
}

.dashboard-activity-row {
    background: #F7F7F7;
    border: 1px solid transparent;
}

.dashboard-activity-row-alt {
    background: #F1F1F1;
}

.dashboard-activity-row .avatar {
    box-shadow: none;
}

.footer {
    padding-top: 1rem;
}

.footer .text-muted,
.footer a.text-muted {
    color: var(--mercha-admin-muted) !important;
}

.table,
.dropdown-menu,
.flyout {
    border-color: var(--mercha-admin-border);
}

@media (max-width: 991.98px) {
    .content {
        padding: 1.25rem 1rem 0.75rem;
    }

    .sidebar,
    .navbar-bg {
        background: var(--mercha-admin-sidebar-deep) !important;
    }
}

/* PAMS supplier manufacturing request editor */
.pams-request {
    --pams-request-line: #e5e7eb;
    --pams-request-muted: #6b7280;
}

.pams-request-back {
    color: #2563eb;
    font-size: .875rem;
    text-decoration: none;
}

.pams-request-back:hover { text-decoration: underline; }

.pams-request-order {
    color: #374151;
    font-size: .85rem;
    font-weight: 500;
}

.pams-request-draft-note {
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.pams-request-editor {
    border: 1px solid var(--pams-request-line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.pams-request-editor-header {
    align-items: flex-start;
    background: #fff;
    border-bottom: 1px solid var(--pams-request-line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.25rem;
}

.pams-request-editor-header h5,
.pams-request-supplier h6,
.pams-request-items h6 {
    color: #1f2937;
    font-weight: 600;
}

.pams-request-editor-header p { font-size: .85rem; }

.pams-request-editor .form-label {
    color: var(--pams-request-muted);
    font-size: .75rem;
    font-weight: 500;
    margin-bottom: .35rem;
}

.pams-request-editor .form-control,
.pams-request-editor .form-select {
    background-color: #f9fafb;
    border-color: var(--pams-request-line);
}

.pams-request-editor .form-control:focus,
.pams-request-editor .form-select:focus {
    background-color: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .1);
}

.pams-request-supplier {
    border-bottom: 1px solid var(--pams-request-line);
    padding-bottom: 1.5rem;
}

.pams-request-manufacturing-route {
    background: #f1edff;
    border: 1px solid #4c1ac9;
    box-shadow: none;
    color: #4c1ac9;
    max-width: none;
}

.pams-request-manufacturing-route-body {
    padding: .75rem 1rem;
}

.pams-request-manufacturing-route h6 {
    color: #4c1ac9;
    font-size: 16px;
    line-height: 1.5;
}

.pams-request-manufacturing-route-badge {
    background-color: #4c1ac9;
    font-size: .8rem;
    margin-bottom: 2px;
    padding: .4rem .65rem;
    vertical-align: middle;
}

.pams-request-manufacturing-route-customer {
    color: #198754;
}

.pams-history-request-type--supplier {
    background-color: #4c1ac9;
    color: #fff;
}

.pams-history-request-type--customer {
    background-color: #198754;
    color: #fff;
}

.pams-request-notes {
    border-top: 1px solid var(--pams-request-line);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

/* Notifications template editor */
.notifications-editor > .row {
    margin-left: 0;
    margin-right: 0;
}

.notifications-editor-card,
.notifications-preview-pane {
    border: 1px solid #dbe1ea;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.notifications-editor-card .card-body { min-height: 680px; }

.notifications-editor-header,
.notifications-preview-header {
    align-items: flex-start;
    background: #fff;
    border-bottom: 1px solid #dbe1ea;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.25rem;
}

.notifications-editor-header h5,
.notifications-preview-header h5 { color: #1f2937; font-weight: 600; }
.notifications-editor-header p,
.notifications-preview-header p { font-size: .85rem; }

.notifications-source {
    background: #111827 !important;
    border-color: #111827 !important;
    color: #e5e7eb !important;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
    flex: 1 1 auto;
    font-size: .82rem;
    line-height: 1.55;
    min-height: 100%;
    padding-left: .85rem;
    resize: vertical;
    tab-size: 4;
    width: auto;
}

.notifications-source:focus { box-shadow: 0 0 0 .2rem rgba(76, 26, 201, .16); }
.notifications-source-wrap { background: #111827; display: flex; min-height: 540px; overflow: hidden; }
.notifications-source-wrap .cm-editor { flex: 1; height: 540px; }
.notifications-source-wrap .cm-scroller { font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .82rem; }
.notifications-source-wrap .cm-line { color: #f8fafc; }
.notifications-source-wrap .cm-gutters {
    background: #0b1220;
    border-right: 1px solid #1f2937;
    color: #cbd5e1;
    display: flex !important;
    min-width: 3.75rem;
}
.notifications-source-wrap .cm-lineNumbers .cm-gutterElement {
    color: #cbd5e1;
    min-width: 3.75rem;
    padding: 0 .65rem 0 .35rem;
    text-align: right;
}
.notifications-source-wrap .cm-editor--read-only .cm-content { cursor: default; }
.notifications-preview-pane { background: #fff; display: flex; flex-direction: column; }
.notifications-preview-frame-wrap { background: #f3f4f6; flex: 1; min-height: 680px; padding: 1rem; position: relative; }
.notifications-preview-frame { background: #fff; border: 1px solid #dbe1ea; height: 100%; min-height: 646px; width: 100%; }
.notifications-preview-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; margin-bottom: 1rem; padding: .75rem 1rem; white-space: pre-wrap; }
.notifications-preview-send { background: #fff; border: 1px solid #dbe1ea; padding: 1rem; }
.notifications-preview-send .ts-wrapper { flex: 1; min-width: 0; }
.notifications-status { font-size: .8rem; font-weight: 500; }
.notifications-status--saved { color: #047857; }
.notifications-status--saving { color: #4c1ac9; }
.notifications-status--error { color: #b91c1c; }

@media (max-width: 1439.98px) {
    .notifications-editor-card .card-body,
    .notifications-preview-frame-wrap { min-height: 560px; }
    .notifications-source,
    .notifications-preview-frame { min-height: 520px; }
    .notifications-source-wrap { min-height: 520px; }
    .notifications-source-wrap .cm-editor { height: 520px; }
}

.pams-request-table {
    border-color: var(--pams-request-line);
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

.pams-request-table thead th {
    background: #f8fafc;
    color: var(--pams-request-muted);
    font-size: .75rem;
    font-weight: 500;
    white-space: nowrap;
}

.pams-request-table .pams-request-select { text-align: center; width: 44px; }
.pams-request-table .pams-request-description { width: 280px; }
.pams-request-table .pams-request-qty { width: 64px; }
.pams-request-table .pams-request-price { text-align: right; width: 88px; }
.pams-request-table .pams-request-total { text-align: right; width: 112px; }
.pams-request-table .pams-request-proof { text-align: center; width: 108px; }
.pams-request-table td:last-child { white-space: nowrap; }

.pams-request-price-input {
    margin-left: auto;
    width: 76px;
}

.pams-request-price-input .input-group-text {
    font-size: inherit;
    padding-left: .35rem;
    padding-right: .35rem;
}

.pams-request-price-input .form-control {
    font-size: inherit;
}

.pams-request-source-row--parent > td {
    background: #f8fafc;
}

.pams-request-source-content {
    align-items: center;
    display: flex;
    gap: .45rem;
    min-height: 1.25rem;
}

.pams-request-source-title {
    color: #1f2937;
    font-weight: 500;
}

.pams-request-source-row--parent .pams-request-source-title {
    font-weight: 650;
}

.pams-request-source-design {
    padding-top: .25rem;
}

.pams-request-table > tbody > .pams-request-source-row--child > .pams-request-description {
    padding-left: 1rem;
}

.pams-request-editor-footer {
    background: #fff;
    border-top: 1px solid var(--pams-request-line);
    padding: 1.25rem;
}

.pams-request-totals { display: grid; gap: .55rem; }

.pams-request-totals > div,
.pams-request-preview-summary > div {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.pams-request-totals > div:not(.pams-request-grand) {
    color: var(--pams-request-muted);
    font-size: .875rem;
}

.pams-request-grand {
    border-top: 1px solid var(--pams-request-line);
    color: #1f2937;
    font-size: 1rem;
    padding-top: .65rem;
}

.pams-request-preview-pane {
    background: #d1d5db;
    border: 1px solid #c4cbd5;
    border-radius: .5rem;
    padding: 1.75rem;
}

.pams-request-preview-page {
    background: #fff;
    border: 1px solid #b8b8b8;
    box-shadow: 0 12px 30px rgba(31, 41, 55, .18);
    min-height: 50rem;
    padding: 2.5rem;
}

.pams-request-preview-head {
    border-bottom: 2px solid #111827;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding-bottom: 1.75rem;
}

.pams-request-preview-logo {
    display: block;
    height: auto;
    margin: 0 0 .65rem;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    width: 11.5rem;
}

.pams-request-preview-head p,
.pams-request-preview-addresses p {
    color: var(--pams-request-muted);
    font-size: .75rem;
    margin: .2rem 0;
}

.pams-request-preview-head strong {
    display: block;
    font-size: .85rem;
    letter-spacing: .04em;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.pams-request-preview-addresses { margin: 1.75rem 0; }

.pams-request-preview-addresses h6,
.pams-request-preview-lines h6,
.pams-request-preview-notes h6 {
    color: var(--pams-request-muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.pams-request-preview-lines table {
    border-color: #d1d5db;
    table-layout: fixed;
    width: 100%;
}

.pams-request-preview-notes {
    margin: 1.75rem 0;
}

.pams-request-preview-notes-content {
    border: 1px solid #d1d5db;
    padding: .85rem .65rem;
}

.pams-request-preview-lines th,
.pams-request-preview-lines td {
    font-size: .75rem;
    padding: .65rem;
}

.pams-request-preview-lines th {
    color: var(--pams-request-muted);
    font-weight: 500;
}

.pams-request-preview-filename {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pams-request-preview-lines td:first-child {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.pams-request-preview-lines td:nth-child(n + 2),
.pams-request-preview-lines th:nth-child(n + 2) {
    text-align: right;
    white-space: nowrap;
}

.pams-request-preview-summary {
    display: grid;
    font-size: .85rem;
    gap: .5rem;
    margin: 1.5rem 0 0 auto;
    max-width: 16rem;
}

.pams-request-preview-summary > div:not(.pams-request-preview-grand) {
    border-bottom: 1px solid var(--pams-request-line);
    padding-bottom: .5rem;
}

.pams-request-preview-grand { font-size: 1rem; padding-top: .15rem; }

.pams-request-preview-note {
    border-top: 1px solid #d1d5db;
    color: var(--pams-request-muted);
    font-size: .75rem;
    line-height: 1.5;
    margin-top: 2.5rem;
    padding-top: 1.1rem;
}

.pams-request-preview-attachments {
    margin-top: 1rem;
}

.pams-request-preview-attachments-heading {
    align-items: center;
    color: #374151;
    display: flex;
    font-size: .8rem;
    font-weight: 600;
    justify-content: space-between;
    margin-bottom: .7rem;
}

.pams-request-preview-attachments-heading small {
    color: var(--pams-request-muted);
    font-weight: 500;
}

.pams-request-attachment-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pams-request-attachment-tile {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: .7rem;
    box-shadow: 0 5px 12px rgba(31, 41, 55, .24);
    color: #374151;
    position: relative;
    display: flex;
    align-items: center;
    gap: .65rem;
    overflow: visible;
    padding: .45rem .65rem .45rem .45rem;
    text-decoration: none;
    width: min(100%, 20rem);
}

.pams-request-attachment-remove {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(31, 41, 55, .2);
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    font-size: .7rem;
    height: 1.55rem;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: -.45rem;
    top: -.45rem;
    width: 1.55rem;
    z-index: 1;
}

.pams-request-attachment-remove:hover,
.pams-request-attachment-remove:focus {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.pams-request-attachment-tile:hover {
    border-color: #7c3aed;
}

.pams-request-attachment-preview { display: flex; }

.pams-request-attachment-tile img,
.pams-request-attachment-pdf {
    align-items: center;
    background: #f1f5f9;
    border-radius: .5rem;
    flex: 0 0 4.4rem;
    display: flex;
    height: 4.4rem;
    justify-content: center;
    object-fit: cover;
    width: 4.4rem;
}

.pams-request-attachment-pdf {
    color: #b91c1c;
    flex-direction: column;
    gap: .25rem;
}

.pams-request-attachment-pdf i { font-size: 1.3rem; }
.pams-request-attachment-pdf strong { font-size: .7rem; letter-spacing: .05em; }

.pams-request-attachment-details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.pams-request-attachment-details > strong {
    color: #374151;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.pams-request-attachment-details > a {
    color: #7c3aed;
    font-size: .7rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pams-request-preview-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-primary.pams-request-send,
.btn-primary.pams-request-release {
    background-color: #4C1AC9;
    border-color: #4C1AC9;
    color: #fff;
}

.btn-primary.pams-request-send:hover:not(:disabled),
.btn-primary.pams-request-send:focus:not(:disabled),
.btn-primary.pams-request-release:hover:not(:disabled),
.btn-primary.pams-request-release:focus:not(:disabled) {
    background-color: var(--mercha-admin-primary) !important;
    border-color: var(--mercha-admin-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(49, 1, 124, 0.16);
    color: #fff;
}

.btn-primary.pams-request-send:disabled,
.btn-primary.pams-request-release:disabled {
    background-color: #6B7280;
    border-color: #6B7280;
    color: #fff;
    opacity: .65;
}

.pams-request-notice {
    align-items: center;
    background: #1f2937;
    border-radius: .45rem;
    bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(31, 41, 55, .24);
    color: #fff;
    display: flex;
    gap: 1rem;
    max-width: min(32rem, calc(100vw - 2rem));
    padding: .8rem 1rem;
    position: fixed;
    right: 1.5rem;
    z-index: 1055;
}

.pams-request-notice .btn-close { filter: invert(1); margin-left: auto; }

@media (max-width: 575.98px) {
    .pams-request-editor-header,
    .pams-request-preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pams-request-preview-pane { padding: .75rem; }
    .pams-request-preview-page { min-height: auto; padding: 1.25rem; }
}
.supplier-address-cell,
.supplier-gid-cell {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Shared persistent Hub notification card. */
.hub-notice-card {
    align-items: flex-start;
    border-radius: var(--mercha-admin-radius);
    display: flex;
    gap: 1rem;
    padding: 1rem 1.15rem;
}

.hub-notice-card__icon {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 2.25rem;
    font-size: 1rem;
    height: 2.25rem;
    justify-content: center;
    margin-top: .05rem;
    width: 2.25rem;
}

.hub-notice-card__content { min-width: 0; }

.hub-notice-card__title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
}

.hub-notice-card__help {
    font-size: .875rem;
    line-height: 1.45;
    margin-top: .2rem;
}

.hub-notice-card__issues {
    font-size: .875rem;
    line-height: 1.45;
    margin: .6rem 0 0;
    padding-left: 1.1rem;
}

.hub-notice-card__issues li + li { margin-top: .3rem; }

.hub-notice-card--danger {
    background: linear-gradient(135deg, #fffafa 0%, #fff4f4 100%);
    border: 1px solid #f2b8b8;
    border-left: 5px solid #e5383b;
    box-shadow: 0 .5rem 1.25rem rgba(141, 31, 35, .13);
    color: #4a1d1f;
}

.hub-notice-card--danger .hub-notice-card__icon { background: #e5383b; color: #fff; }
.hub-notice-card--danger .hub-notice-card__title { color: #a61b20; }
.hub-notice-card--danger .hub-notice-card__help { color: #6b2b2e; }
.hub-notice-card--danger .hub-notice-card__issues { color: #5d2528; }

.hub-notice-card--info {
    background: linear-gradient(135deg, #f3fbfe 0%, #edf8fc 100%);
    border: 1px solid #a9dbe8;
    border-left: 5px solid #168aad;
    box-shadow: 0 .5rem 1.25rem rgba(22, 138, 173, .13);
    color: #173f4c;
}

.hub-notice-card--info .hub-notice-card__icon { background: #168aad; color: #fff; }
.hub-notice-card--info .hub-notice-card__title { color: #0b6985; }
.hub-notice-card--info .hub-notice-card__issues { color: #28515e; }

html[data-bs-theme="dark"] .hub-notice-card--danger {
    background: linear-gradient(135deg, rgba(229, 56, 59, .2) 0%, rgba(102, 22, 26, .3) 100%);
    border-color: rgba(252, 165, 165, .5);
    color: #fee2e2;
}

html[data-bs-theme="dark"] .hub-notice-card--danger .hub-notice-card__title { color: #fecaca; }
html[data-bs-theme="dark"] .hub-notice-card--danger .hub-notice-card__help,
html[data-bs-theme="dark"] .hub-notice-card--danger .hub-notice-card__issues { color: #fee2e2; }

html[data-bs-theme="dark"] .hub-notice-card--info {
    background: linear-gradient(135deg, rgba(22, 138, 173, .24) 0%, rgba(10, 72, 92, .3) 100%);
    border-color: rgba(103, 232, 249, .45);
    color: #d5f7fc;
}

html[data-bs-theme="dark"] .hub-notice-card--info .hub-notice-card__title { color: #a5f3fc; }
html[data-bs-theme="dark"] .hub-notice-card--info .hub-notice-card__issues { color: #d5f7fc; }

@media (max-width: 575.98px) {
    .hub-notice-card { gap: .75rem; padding: .9rem; }
    .hub-notice-card__icon { flex-basis: 2rem; height: 2rem; width: 2rem; }
}

/* Shared detail cards use a little extra room below their final field. */
.card.mb-4.shadow-sm > .card-body {
    padding-bottom: 2rem;
}

.pams-product-status-filter {
    width: min(100%, 32rem);
}

.pams-product-status-filter .ts-wrapper {
    width: 100%;
}

.pams-product-status-filter .ts-dropdown .option {
    font-size: 14px;
}
