/* 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;
}

/** action buttons **/
.cursor-not-allowed {
    cursor: not-allowed !important;
    pointer-events: 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;*/
}

.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 {
    font-size: 1.1em;
    background: none;
    /*min-width: calc(80% - 20px);*/
}
.toast-close {
    font-family: sans-serif;
    color: #fff !important;
    opacity: 1 !important;
}

/* 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 **/

/** 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 **/
#productSearchDropdown {
    height: 400px;
    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;
}

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

/*.ts-control {
    font-size: 16px;
}*/
.ts-control .item {
    background-color: black;
}

.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;
}


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

#addPersonModal .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;
}
/** end badges **/

/** Adam's Awesome Product Builder **/
.builder-body {
    background: #f1f3f5;
}
.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 ***/
body.fslightbox-open {
    overflow: hidden;
    height: 100%;
}

/*** gmaps image box ***/
#addPersonForm .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#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; }

.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; }

.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;
}

/*** 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;
}

#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-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));
    }
}

/* =========================================================
   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);
}

.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;
}

.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-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;
}

@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: 300px;
    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;
}
