:root {
    --ws-page-bg: #f3faf9;
    --ws-surface: #ffffff;
    --ws-surface-soft: #eef8f7;
    --ws-border: #bfdad8;
    --ws-border-soft: #d6ebe8;
    --ws-text: #102a36;
    --ws-muted: #48636b;
    --ws-primary: #087ea4;
    --ws-primary-dark: #055f78;
    --ws-primary-soft: #e1f5f3;
    --ws-success: #25784f;
    --ws-warning: #b7791f;
    --ws-danger: #b42318;
    --ws-info: #177e89;
    --ws-radius: 8px;
    --ws-shadow-soft: 0 10px 30px rgba(20, 29, 43, 0.06);
}

body {
    background: var(--ws-page-bg);
    color: var(--ws-text);
    display: flex;
    flex-direction: column;
    font-size: 0.94rem;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.dropship-po-option {
    background: #ffffff;
    border: 1px solid #9fcfcc;
    border-left: 5px solid var(--ws-primary);
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(16, 42, 54, 0.06);
    color: var(--ws-text);
    padding: 0.85rem 1rem;
}

.dropship-po-option .small {
    color: var(--ws-muted);
}

.dropship-po-option .form-check-input {
    background-color: #fff;
    border-color: #0f5664;
    box-shadow: 0 0 0 2px rgba(8, 126, 164, 0.10);
}

.dropship-po-option .form-check-input:checked {
    background-color: var(--ws-primary);
    border-color: var(--ws-primary);
}

.dropship-po-option .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(8, 126, 164, 0.18);
}

.auth-shell {
    max-width: 520px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.auth-page {
    align-items: center;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    margin-inline: auto;
    min-height: calc(100vh - 180px);
    overflow: hidden;
    padding: 3rem 1rem;
    position: relative;
}

.auth-page-has-image {
    background-position: center;
    background-size: cover;
    color: #fff;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1rem, calc((100vw - 1140px) / 2));
    padding-right: max(1rem, calc((100vw - 1140px) / 2));
}

.auth-page-has-image::before {
    background: rgba(0, 0, 0, var(--auth-overlay, 0.45));
    content: "";
    inset: 0;
    position: absolute;
}

.auth-page-has-image .card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    color: #1f2937;
}

.auth-page-has-image a {
    color: #0d6efd;
}

.navbar.bg-dark {
    background: linear-gradient(180deg, #0f5664 0%, #0e4b58 100%) !important;
    border-bottom: 1px solid rgba(15, 70, 84, 0.18);
    box-shadow: 0 8px 22px rgba(15, 70, 84, 0.10);
    padding: 0.65rem 0.75rem 0.75rem;
}

.storefront-navbar {
    background: #ffffff;
    border-bottom: 1px solid #dce8e7;
    box-shadow: 0 8px 18px rgba(16, 42, 54, 0.05);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.storefront-navbar::before {
    background: #2263b8;
    content: "";
    height: 38px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.app-navbar-inner {
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
}

.storefront-navbar .app-navbar-inner {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-top: 38px;
    min-height: 88px;
    padding: 0.85rem 0.75rem;
    position: relative;
    z-index: 1;
}

.navbar-brand {
    min-height: 34px;
    margin-right: 1.35rem;
}

.navbar .nav-link,
.navbar .dropdown-item {
    font-size: 0.92rem;
}

.navbar .nav-link {
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 600;
    margin-inline: 0.05rem;
    padding: 0.48rem 0.72rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.navbar .nav-link.active,
.navbar .nav-link.show,
.navbar .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.storefront-navbar .navbar-brand {
    color: #102a36;
    margin-right: 2.2rem;
    max-width: 220px;
}

.storefront-navbar .nav-link,
.storefront-navbar .dropdown-item {
    color: #1f3440;
}

.storefront-navbar .nav-link:hover,
.storefront-navbar .nav-link:focus,
.storefront-navbar .nav-link.active {
    background: #eef8f7;
    color: #0f5664;
}

.storefront-navbar .btn-outline-light {
    background: transparent;
    border-color: transparent;
    color: #1f3440;
}

.storefront-navbar .btn-outline-light:hover,
.storefront-navbar .btn-outline-light:focus {
    background: #eef8f7;
    border-color: #d2e7e4;
    color: #0f5664;
}

.storefront-navbar .btn-light {
    background: transparent;
    border-color: transparent;
    color: #102a36;
}

.storefront-navbar .btn-light:hover,
.storefront-navbar .btn-light:focus {
    background: #eef8f7;
    border-color: #d2e7e4;
}

.storefront-navbar .text-bg-light {
    background-color: #e4f5f1 !important;
    color: #0f5664 !important;
}

.storefront-main-links {
    gap: 1.65rem;
}

.storefront-main-links a,
.storefront-menu-dropdown {
    background: transparent;
    border: 0;
    color: #152f3a;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
}

.storefront-main-links a:hover,
.storefront-main-links a:focus,
.storefront-menu-dropdown:hover,
.storefront-menu-dropdown:focus {
    color: #0f7085;
}

.storefront-actions {
    gap: 0.7rem;
}

.storefront-icon-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #102a36;
    display: inline-flex;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0.35rem 0.55rem;
    text-decoration: none;
}

.storefront-icon-button:hover,
.storefront-icon-button:focus {
    background: #eef8f7;
    border-color: #d2e7e4;
    color: #0f5664;
}

.storefront-icon-button svg {
    fill: none;
    height: 23px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 23px;
}

.storefront-cart-button {
    position: relative;
}

.storefront-cart-button .js-cart-count {
    align-items: center;
    background: #e4f5f1;
    border: 1px solid #b8deda;
    border-radius: 999px;
    color: #0f5664;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.08rem 0.35rem;
}

.storefront-user-button span {
    font-weight: 600;
}

.admin-shop-navbar .storefront-main-links a {
    color: rgba(255, 255, 255, 0.9);
}

.admin-shop-navbar .storefront-main-links a:hover,
.admin-shop-navbar .storefront-main-links a:focus {
    color: #ffffff;
}

.admin-shop-navbar .storefront-icon-button {
    color: #ffffff;
}

.admin-shop-navbar .storefront-icon-button:hover,
.admin-shop-navbar .storefront-icon-button:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.admin-shop-navbar .storefront-cart-button .js-cart-count {
    background: #ffffff;
    border-color: #ffffff;
    color: #0f5664;
}

.admin-menu-toggle {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    color: #0f5664;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.48rem 0.8rem;
    text-decoration: none;
    white-space: nowrap;
}

.admin-menu-toggle:hover,
.admin-menu-toggle:focus {
    background: #e7f6f3;
    color: #0f4654;
}

.navbar .btn-outline-light {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.35);
}

.app-navbar .btn-sm {
    border-radius: 6px;
    font-weight: 600;
    padding-inline: 0.72rem;
}

.admin-header-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    min-height: 34px;
    padding: 0.42rem 0.78rem;
    text-decoration: none;
    white-space: nowrap;
}

.admin-header-pill:hover,
.admin-header-pill:focus {
    background: rgba(255, 255, 255, 0.17);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.navbar .btn-light {
    border-color: rgba(255, 255, 255, 0.82);
    color: #0f4654;
}

.storefront-navbar .customer-nav-search {
    position: relative;
}

.customer-nav-search-panel {
    align-items: center;
    background: #ffffff;
    border: 1px solid #b8d8d5;
    border-radius: 999px;
    box-shadow: 0 0.85rem 1.6rem rgba(20, 61, 70, 0.16);
    display: none;
    gap: 0.45rem;
    min-width: min(22rem, calc(100vw - 2rem));
    padding: 0.4rem 0.45rem 0.4rem 0.75rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 1080;
}

.customer-nav-search.is-open .customer-nav-search-panel {
    display: flex;
}

.customer-nav-search-panel .form-control {
    border: 0;
    border-radius: 999px;
    color: #102a36;
    min-height: 2.15rem;
    padding-left: 0.35rem;
}

.customer-nav-search-panel .form-control:focus {
    box-shadow: none;
}

.customer-nav-search-panel .btn {
    border-radius: 999px;
    flex: 0 0 auto;
    padding-inline: 0.85rem;
}

.storefront-navbar .customer-nav-search .storefront-icon-button {
    position: relative;
    z-index: 2;
}

.storefront-navbar .customer-nav-search .storefront-icon-button:hover,
.storefront-navbar .customer-nav-search .storefront-icon-button:focus {
    background: #eef7f6;
    border-color: #c6dfdc;
}

.admin-shop-navbar .customer-nav-search-panel {
    border-color: rgba(255, 255, 255, 0.34);
}

.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--ws-primary-soft);
    --bs-dropdown-link-active-color: var(--ws-primary-dark);
    --bs-dropdown-link-hover-bg: #f2fbfa;
    border-color: var(--ws-border);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow-soft);
    min-width: 14rem;
    padding: 0.45rem;
}

.sales-collapsible-menu {
    max-height: min(72vh, 560px);
    min-width: 18rem;
    overflow-y: auto;
}

.dropdown-menu-section + .dropdown-menu-section {
    margin-top: .35rem;
}

.dropdown-section-toggle {
    align-items: center;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    font-size: .78rem;
    font-weight: 700;
    justify-content: space-between;
    letter-spacing: .03em;
    padding: .58rem .72rem;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
}

.dropdown-section-toggle::after {
    content: "+";
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    display: inline-flex;
    font-size: .8rem;
    height: 1.25rem;
    justify-content: center;
    line-height: 1.05rem;
    margin-left: .75rem;
    width: 1.25rem;
}

.dropdown-menu-section.is-open > .dropdown-section-toggle::after {
    content: "-";
}

.dropdown-section-toggle.menu-group-setup {
    background: #2f7898;
}

.dropdown-section-toggle.menu-group-people {
    background: #6b5a9e;
}

.dropdown-section-toggle.menu-group-process {
    background: #2d7a54;
}

.dropdown-section-toggle.menu-group-control {
    background: #b56b23;
}

.dropdown-section-toggle.menu-group-reports {
    background: #53677c;
}

.dropdown-section-toggle.menu-group-alert {
    background: #a94c68;
}

.dropdown-section-items {
    padding: .35rem 0 .15rem;
}

.dropdown-item {
    border-radius: 6px;
    color: var(--ws-text);
    padding: 0.42rem 0.65rem;
}

.dropdown-item.menu-item-setup {
    background: #f4f9fc;
}

.dropdown-item.menu-item-people {
    background: #f8f6fd;
}

.dropdown-item.menu-item-process {
    background: #f3faf6;
}

.dropdown-item.menu-item-control {
    background: #fff8ef;
}

.dropdown-item.menu-item-reports {
    background: #f7f8fa;
}

.dropdown-item.menu-item-alert {
    background: #fdf4f7;
}

.dropdown-item.menu-item-setup:hover,
.dropdown-item.menu-item-setup:focus {
    background: #e8f4fb;
}

.dropdown-item.menu-item-people:hover,
.dropdown-item.menu-item-people:focus {
    background: #f0edf9;
}

.dropdown-item.menu-item-process:hover,
.dropdown-item.menu-item-process:focus {
    background: #e8f6ef;
}

.dropdown-item.menu-item-control:hover,
.dropdown-item.menu-item-control:focus {
    background: #fff0df;
}

.dropdown-item.menu-item-reports:hover,
.dropdown-item.menu-item-reports:focus {
    background: #eef1f5;
}

.dropdown-item.menu-item-alert:hover,
.dropdown-item.menu-item-alert:focus {
    background: #fae8ee;
}

.dropdown-item.active,
.dropdown-item:active {
    font-weight: 700;
}

.dropdown-divider {
    border-color: var(--ws-border-soft);
    margin: 0.4rem 0.2rem;
}

.dropdown-header {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0.35rem 0.1rem 0.25rem;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    text-transform: uppercase;
}

.dropdown-header.menu-group-setup {
    background: #2f7898;
    color: #f5fbff;
}

.dropdown-header.menu-group-people {
    background: #6b5a9e;
    color: #fbf9ff;
}

.dropdown-header.menu-group-process {
    background: #2d7a54;
    color: #f4fff9;
}

.dropdown-header.menu-group-control {
    background: #b56b23;
    color: #fffaf4;
}

.dropdown-header.menu-group-reports {
    background: #53677c;
    color: #f7fbff;
}

.dropdown-header.menu-group-alert {
    background: #a94c68;
    color: #fff7fa;
}

.app-footer-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

.app-footer-details {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.app-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.contact-page-form {
    max-width: 760px;
}

.contact-page {
    background: linear-gradient(135deg, rgba(238, 248, 247, 0.95), rgba(255, 255, 255, 0.9) 42%, rgba(234, 246, 251, 0.88));
    border: 1px solid rgba(42, 116, 137, 0.12);
    border-radius: var(--ws-radius-lg);
    padding: 1rem;
}

.contact-page .contact-page-header {
    background: linear-gradient(135deg, #0f5664, #16866f);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.contact-page .contact-page-header .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

.contact-form-card,
.contact-details-card {
    border-color: rgba(42, 116, 137, 0.16);
    box-shadow: 0 12px 28px rgba(16, 42, 54, 0.08);
}

.contact-form-card > .card-header {
    align-items: center;
    background: linear-gradient(135deg, #0f5664, #16866f) !important;
    border-bottom-color: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: space-between;
}

.contact-form-card > .card-header span {
    font-weight: 650;
}

.contact-form-card > .card-header small {
    color: rgba(255, 255, 255, 0.78);
}

.contact-page :is(.form-control, .form-select) {
    background-color: #f0faf8;
    border-color: rgba(22, 134, 111, 0.22);
}

.contact-page :is(.form-control, .form-select):focus {
    background-color: #ffffff;
    border-color: #16866f;
    box-shadow: 0 0 0 0.2rem rgba(22, 134, 111, 0.12);
}

.contact-details-card {
    background: #d9f0ec;
}

.contact-details-card > .card-body {
    background: #d7eee8;
    border-radius: inherit;
}

.contact-details-card h2 {
    color: #0f5664;
    font-weight: 650;
}

.contact-details-card .text-muted {
    color: #0f5664 !important;
    font-size: 0.86rem;
    font-weight: 700;
}

.contact-details-card .contact-detail-value {
    color: #111827;
    font-weight: 400;
}

.contact-details-card .mb-3,
.contact-details-card > .card-body > div:last-of-type {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(42, 116, 137, 0.11);
    border-radius: 8px;
    padding: 0.75rem;
}

.checkout-summary-section-heading {
    background: #eef7f6;
    border: 1px solid #c6dfdc;
    border-radius: 7px;
    color: #174f59;
    font-weight: 700;
    padding: 0.45rem 0.6rem;
}

.checkout-form-card {
    border-color: rgba(42, 116, 137, 0.16);
}

.checkout-address-book {
    background: #f1f8f7;
    border: 1px solid #c6dfdc;
    border-radius: 8px;
    padding: 1rem;
}

.checkout-address-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.checkout-address-card {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #cbdeda;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    min-height: 100%;
    padding: 0.8rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.checkout-address-card:hover,
.checkout-address-card.is-selected {
    border-color: #2a7489;
    box-shadow: 0 8px 18px rgba(42, 116, 137, 0.12);
    transform: translateY(-1px);
}

.checkout-address-title {
    align-items: center;
    color: #173f49;
    display: flex;
    flex-wrap: wrap;
    font-weight: 700;
    gap: 0.4rem;
    line-height: 1.25;
}

.checkout-address-lines {
    color: #50636a;
    display: block;
    font-size: 0.88rem;
    line-height: 1.4;
    margin-top: 0.35rem;
}

.checkout-address-save-box {
    background: #ffffff;
    border: 1px solid #d9e7e5;
    border-radius: 8px;
    padding: 0.9rem;
}

.order-history-hero {
    align-items: center;
    background: linear-gradient(135deg, #155f72, #1f8a78);
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.25rem 1.35rem;
}

.order-history-hero .small {
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0;
}

.order-history-shop-button {
    border-color: rgba(255, 255, 255, 0.78);
    color: #155f72;
    font-weight: 700;
}

.order-history-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.order-history-summary > div {
    background: #f2f9f8;
    border: 1px solid #cce2df;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.order-history-summary span {
    color: #5a7075;
    display: block;
    font-size: 0.82rem;
}

.order-history-summary strong {
    color: #123f4a;
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
    margin-top: 0.15rem;
}

.order-progress-cell {
    min-width: 160px;
}

.order-progress-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.order-progress-badges .badge {
    font-weight: 650;
    line-height: 1.2;
    white-space: normal;
}

.customer-orders-card {
    border-color: rgba(42, 116, 137, 0.18);
    overflow: visible;
}

.customer-orders-card > .card-header {
    background: #f4faf9;
    border-bottom-color: #c8dfdc;
    padding: 1rem 1.15rem;
}

.customer-orders-table thead th {
    --bs-table-bg: #155f72;
    --bs-table-color: #ffffff;
    --bs-table-border-color: rgba(255, 255, 255, 0.5);
    background: #155f72;
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-weight: 650;
    position: sticky;
    top: 0;
    z-index: 2;
}

.customer-orders-table tbody tr:nth-child(odd) > * {
    background: #fbfdfd;
}

.customer-orders-table tbody tr:nth-child(even) > * {
    background: #f1f8f7;
}

.customer-orders-table tbody tr:hover > * {
    background: #e5f4f2;
}

.customer-orders-table > :not(caption) > * > * {
    border: 1px solid #cfdeda;
    padding: 0.72rem 0.85rem;
}

.customer-order-number {
    color: #123f4a;
    font-weight: 750;
    text-decoration: none;
}

.customer-order-number:hover,
.customer-order-number:focus {
    color: #1f7f9a;
    text-decoration: underline;
}

.customer-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.quick-stock-picker {
    display: grid;
    gap: 1rem;
}

.quick-picker-category-panel {
    background: linear-gradient(135deg, #eef8f7, #f8fcfb);
    border: 1px solid #c7dddf;
    border-radius: var(--ws-radius);
    box-shadow: 0 10px 24px rgba(16, 42, 54, 0.06);
    padding: 1rem;
}

.quick-picker-panel-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.quick-picker-panel-heading strong,
.quick-picker-panel-heading span {
    display: block;
}

.quick-picker-panel-heading strong {
    color: #0f5664;
    font-size: 1rem;
    font-weight: 700;
}

.quick-picker-panel-heading span {
    color: #496a72;
    font-size: 0.86rem;
}

.quick-picker-category-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.quick-picker-category-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c2dce0;
    border-radius: 0.85rem;
    color: #183f47;
    display: grid;
    flex: 0 0 8.5rem;
    gap: 0.35rem;
    justify-items: center;
    min-height: 7.5rem;
    padding: 0.7rem 0.6rem;
    text-align: center;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.quick-picker-category-button:hover,
.quick-picker-category-button:focus {
    border-color: #2d8c99;
    box-shadow: 0 10px 22px rgba(15, 55, 62, 0.12);
    transform: translateY(-1px);
}

.quick-picker-category-button.is-active {
    background: #0f5664;
    border-color: #0f5664;
    color: #ffffff;
}

.quick-picker-category-icon {
    align-items: center;
    background: #e5f5f4;
    border: 1px solid #add3d8;
    border-radius: 0.75rem;
    color: #0f5664;
    display: flex;
    font-size: 0.86rem;
    font-weight: 800;
    height: 3.1rem;
    justify-content: center;
    overflow: hidden;
    width: 3.1rem;
}

.quick-picker-category-button.is-active .quick-picker-category-icon {
    background: rgba(255, 255, 255, 0.92);
}

.quick-picker-category-icon img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.quick-picker-category-name {
    display: -webkit-box;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.15;
    min-height: 1.9rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.quick-picker-category-button small {
    color: #5e7880;
    font-size: 0.74rem;
    font-weight: 700;
}

.quick-picker-category-button.is-active small {
    color: rgba(255, 255, 255, 0.82);
}

.quick-picker-controls,
.quick-picker-products {
    background: #f6fbfb;
    border: 1px solid #c7dddf;
    border-radius: var(--ws-radius);
    padding: 1rem;
}

.quick-picker-stock-toggle {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #c7dddf;
    border-radius: 7px;
    padding: 0.6rem 0.75rem 0.6rem 2.25rem;
}

.quick-picker-product-search {
    border-color: #7bb6bd;
    box-shadow: 0 0 0 0.18rem rgba(45, 111, 122, 0.08);
    font-size: 1rem;
}

.quick-picker-lookup {
    position: relative;
}

.quick-picker-results {
    background: #fff;
    border: 1px solid #b8d5d8;
    border-radius: 7px;
    box-shadow: 0 0.75rem 1.5rem rgba(29, 54, 61, 0.14);
    left: 0;
    max-height: 18rem;
    overflow: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 20;
}

.quick-picker-results-toolbar {
    align-items: center;
    background: transparent;
    border: 0;
    color: #194f58;
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: flex-end;
    padding: 0;
    position: absolute;
    right: 0.25rem;
    top: 0.25rem;
    z-index: 3;
}

.quick-picker-results .quick-picker-results-toolbar button {
    align-items: center;
    background: #0f5664 !important;
    border: 1px solid #0f5664 !important;
    border-radius: 999px;
    color: #ffffff !important;
    display: inline-flex;
    gap: 0.25rem;
    font-size: 0.76rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 1.45rem;
    padding: 0.18rem 0.5rem;
}

.quick-picker-results .quick-picker-results-toolbar button span {
    font-size: 0.82rem;
    line-height: 1;
}

.quick-picker-results .quick-picker-results-toolbar button small {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.7rem;
    line-height: 1;
}

.quick-picker-results .quick-picker-results-toolbar button:hover,
.quick-picker-results .quick-picker-results-toolbar button:focus {
    background: #16866f !important;
    border-color: #16866f !important;
    color: #ffffff !important;
}

.quick-picker-results button {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e6eff0;
    color: #183f47;
    display: block;
    padding: 0.55rem 0.7rem;
    text-align: left;
    width: 100%;
}

.quick-picker-results button:hover,
.quick-picker-results button:focus,
.quick-picker-results button.is-active {
    background: #e9f5f6;
}

.quick-picker-results button.is-active {
    box-shadow: inset 4px 0 0 #2d6f7a;
}

.quick-picker-results strong,
.quick-picker-results small {
    display: block;
}

.quick-picker-results small {
    color: #667b80;
    font-size: 0.76rem;
}

.quick-picker-no-results {
    color: #667b80;
    padding: 0.65rem 0.75rem;
}

.quick-picker-section-heading {
    align-items: center;
    background: #2d6f7a;
    border-radius: 7px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.8rem;
}

.quick-picker-section-heading span {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 0.35rem;
    min-width: 1.8rem;
    padding: 0.08rem 0.45rem;
    text-align: center;
}

.quick-picker-section-heading small {
    color: rgba(255, 255, 255, 0.82);
}

.quick-picker-table-scroll {
    max-height: 62vh;
}

.quick-picker-table thead th {
    background: #d9eef0;
    color: #194f58;
    position: sticky;
    top: 0;
    z-index: 2;
}

.quick-picker-table tbody tr.is-over-on-hand > * {
    background: #fff3df;
}

.quick-picker-table td,
.quick-picker-table th {
    white-space: nowrap;
}

.sales-document-product-picker {
    border-color: #b7d5d8;
    margin-top: 1rem;
}

.sales-document-product-picker .quick-picker-results {
    z-index: 30;
}

.quick-picker-product-name {
    color: #244d54;
    display: block;
    font-weight: 650;
}

.quick-picker-table td small {
    color: #6b7c80;
    display: block;
    font-size: 0.76rem;
}

.quick-picker-qty {
    min-width: 5.5rem;
}

.quick-picker-backorder-note {
    background: #fff1d8;
    border: 1px solid #e7bb6d;
    border-radius: 7px;
    color: #6f4300;
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.7rem;
}

.quick-picker-total {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-width: 220px;
}

.quick-picker-report-toggle {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #d5e5e7;
    border-radius: 7px;
    padding: 0.55rem 0.65rem 0.55rem 2.2rem;
}

.quick-picker-footer {
    align-items: center;
    border-top: 1px solid #c7dddf;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
}

.quick-picker-status {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
}

.quick-picker-status.is-available {
    background: #e6f4f0;
    color: #19624d;
}

.quick-picker-status.is-backorder {
    background: #fff1d8;
    color: #8a5400;
}

.card,
.section-card,
.filter-card,
.document-card {
    background: var(--ws-surface);
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    box-shadow: none;
}

.card-header,
.section-card-header {
    background: var(--ws-surface-soft) !important;
    border-bottom: 1px solid var(--ws-border-soft);
    color: var(--ws-text);
    font-weight: 650;
}

.section-card-header-blue,
.section-card-header-green,
.section-card-header-orange {
    color: #fff !important;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.section-card-header-blue {
    background: #2f6f8f !important;
}

.section-card-header-green {
    background: #3f7d68 !important;
}

.section-card-header-orange {
    background: #b66a37 !important;
}

.section-card-header-blue h2,
.section-card-header-green h2,
.section-card-header-orange h2 {
    color: inherit;
    font-size: 1rem;
    margin: 0;
}

.section-card-header-blue span,
.section-card-header-green span,
.section-card-header-orange span {
    color: rgba(255, 255, 255, 0.82);
}

.clickable-work-row {
    cursor: pointer;
}

.clickable-work-row:hover,
.clickable-work-row:focus {
    outline: 2px solid rgba(47, 111, 143, 0.28);
    outline-offset: -2px;
}

.clickable-work-row:hover > * {
    background-color: rgba(47, 111, 143, 0.08) !important;
}

.clickable-work-row.is-selected > * {
    background-color: rgba(47, 111, 143, 0.16) !important;
}

.dropship-fulfilment-page .section-card {
    border-color: rgba(47, 111, 143, 0.18);
    box-shadow: 0 8px 24px rgba(28, 51, 61, 0.07);
}

.dropship-fulfilment-page .section-card-header {
    align-items: center;
    min-height: 54px;
    padding: 0.9rem 1.15rem;
}

.dropship-fulfilment-page .section-card-header h2 {
    font-size: 1.04rem;
    font-weight: 650;
    line-height: 1.25;
}

.dropship-fulfilment-page .section-card-header span {
    line-height: 1.25;
    text-align: right;
}

.dropship-fulfilment-page .card-body {
    padding: 1.1rem 1.2rem;
}

.dropship-status-card .card-body {
    background: rgba(47, 111, 143, 0.04);
}

.dropship-work-queue-table thead th,
.dropship-items-table thead th {
    border-color: rgba(255, 255, 255, 0.62);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dropship-work-queue-table thead th {
    background: #2f6f8f;
}

.dropship-items-table thead th {
    background: #a65f32;
}

.dropship-work-queue-table tbody td,
.dropship-items-table tbody td {
    border-color: rgba(28, 51, 61, 0.12);
    padding: 0.72rem 0.85rem;
}

.dropship-work-queue-table tbody tr:nth-child(even) > * {
    background-color: rgba(47, 111, 143, 0.035);
}

.dropship-items-table tbody tr:nth-child(even) > * {
    background-color: rgba(182, 106, 55, 0.04);
}

.dropship-work-queue-card .table-responsive,
.dropship-items-card .table-responsive {
    background: #fff;
}

.page-header {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    padding: 1rem 1.1rem;
}

.page-header h1 {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.2rem;
}

body.page-theme-setup {
    --page-theme-surface: #f4f9fc;
    --page-theme-border: #b7d8e7;
    --page-theme-header: #2f7898;
    --page-theme-header-text: #f5fbff;
}

body.page-theme-people {
    --page-theme-surface: #f8f6fd;
    --page-theme-border: #d8d0ef;
    --page-theme-header: #6b5a9e;
    --page-theme-header-text: #fbf9ff;
}

body.page-theme-process {
    --page-theme-surface: #f3faf6;
    --page-theme-border: #bfe3d0;
    --page-theme-header: #2d7a54;
    --page-theme-header-text: #f4fff9;
}

body.page-theme-control {
    --page-theme-surface: #fff8ef;
    --page-theme-border: #ebc693;
    --page-theme-header: #b56b23;
    --page-theme-header-text: #fffaf4;
}

body.page-theme-reports {
    --page-theme-surface: #f7f8fa;
    --page-theme-border: #ccd5df;
    --page-theme-header: #53677c;
    --page-theme-header-text: #f7fbff;
}

body.page-theme-alert {
    --page-theme-surface: #fdf4f7;
    --page-theme-border: #e6bac8;
    --page-theme-header: #a94c68;
    --page-theme-header-text: #fff7fa;
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) {
    background: var(--page-theme-surface);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) main.container {
    background: linear-gradient(180deg, var(--page-theme-surface) 0%, rgba(255, 255, 255, 0.94) 340px);
    border: 1px solid var(--page-theme-border);
    border-radius: var(--ws-radius);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) .page-header,
body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) main.container > .d-flex:first-child {
    background: var(--page-theme-header) !important;
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--page-theme-header-text);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) .page-header .text-muted,
body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) main.container > .d-flex:first-child .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) :is(.page-header, main.container > .d-flex:first-child) .platform-kicker {
    color: rgba(255, 255, 255, 0.88);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) .card-header,
body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) .section-card-header {
    background: var(--page-theme-header) !important;
    border-bottom-color: var(--page-theme-border);
    color: var(--page-theme-header-text);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) :is(.page-header, main.container > .d-flex:first-child, .card-header, .section-card-header) .btn:not(.btn-danger):not(.btn-warning):not(.btn-success) {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.72);
    color: var(--page-theme-header);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) :is(.page-header, main.container > .d-flex:first-child, .card-header, .section-card-header) .btn:not(.btn-danger):not(.btn-warning):not(.btn-success):hover,
body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) :is(.page-header, main.container > .d-flex:first-child, .card-header, .section-card-header) .btn:not(.btn-danger):not(.btn-warning):not(.btn-success):focus {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.95);
    color: var(--page-theme-header);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) :is(.page-header, main.container > .d-flex:first-child) {
    gap: 0.85rem;
    padding: 1rem 1.1rem;
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) :is(.page-header, main.container > .d-flex:first-child) > :last-child {
    padding-right: 0.1rem;
}

.page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.page-actions .btn {
    min-height: 2.15rem;
}

.filter-card {
    margin-bottom: 1rem;
    padding: 1rem;
}

.backup-export-page,
.migration-guide-page,
.gl-audit-page,
.trial-balance-page,
.gl-accounts-page,
.journal-page,
.gl-enquiries-page {
    display: grid;
    gap: 1rem;
}

.gl-account-detail-page {
    display: grid;
    gap: 1rem;
}

.backup-export-alert,
.migration-guide-note {
    border-color: #bddbd8;
    border-left: 4px solid var(--ws-primary);
    color: var(--ws-text);
}

.backup-export-fold-section {
    background: #fff;
    border: 1px solid #d9e7ea;
    border-radius: 8px;
    box-shadow: 0 .5rem 1.25rem rgba(15, 55, 62, .05);
    overflow: hidden;
}

.backup-export-fold-section > summary {
    align-items: center;
    background: #fff;
    color: #2f6b78;
    cursor: pointer;
    display: grid;
    gap: 0.85rem 1.35rem;
    grid-template-columns: minmax(0, 1fr) auto;
    list-style: none;
    padding: 1.15rem 1.35rem;
}

.backup-export-fold-section[open] > summary {
    background: #2f6b78;
    color: #fff;
}

.backup-export-fold-section > summary::-webkit-details-marker {
    display: none;
}

.backup-export-fold-section > summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 700;
    grid-column: 2;
    grid-row: 1;
    line-height: 1;
}

.backup-export-fold-section[open] > summary::after {
    content: "-";
}

.backup-export-fold-section > summary .small {
    color: #5c7680;
}

.backup-export-fold-section[open] > summary .small {
    color: rgba(255, 255, 255, .78);
}

.backup-export-fold-section > summary .badge {
    grid-column: 2;
    grid-row: 1;
    margin-right: 2rem;
    justify-self: end;
    min-width: 5.25rem;
}

.backup-export-fold-body {
    padding: 1.25rem;
}

.backup-export-fold-body.backup-export-table-wrap {
    padding: 0;
}

.backup-export-action-card .card-body,
.migration-path-card .card-body,
.migration-support-card .card-body {
    padding: 1rem 1.1rem;
}

.backup-export-action-card .section-card-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 3.35rem;
    padding: 0.85rem 1.1rem;
}

.backup-export-action-card .section-card-header > span:first-child {
    line-height: 1.25;
}

.migration-path-card .section-card-header {
    align-items: center;
    display: flex;
    font-size: 1.05rem;
    gap: .65rem;
    min-height: 3.4rem;
    padding-block: .9rem;
}

.migration-path-card .migration-path-header {
    padding-left: 1rem;
}

.backup-checklist,
.migration-checks {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.15rem;
}

.backup-export-table-wrap,
.gl-audit-table-wrap,
.trial-balance-table-wrap,
.gl-account-table-wrap,
.journal-table-wrap,
.gl-enquiries-table-wrap {
    max-height: 68vh;
    overflow: auto;
}

.backup-export-table thead th,
.trial-balance-table thead th,
.gl-account-table thead th,
.journal-lines-table thead th,
.gl-enquiries-table thead th {
    background: #dceef1;
    border-bottom: 1px solid #b6d4d9;
    color: #123744;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 3;
}

.gl-audit-table thead th {
    background: #2f6b8f !important;
    border: 1px solid #285b79 !important;
    color: #ffffff !important;
    font-weight: 650;
    position: sticky;
    top: 0;
    z-index: 3;
}

.gl-audit-print-card > .section-card-header {
    background: #2f6b8f !important;
    border-bottom: 1px solid #285b79;
    padding: 1rem 1.15rem;
}

.gl-audit-print-card > .section-card-header .fw-semibold {
    color: #ffffff;
    font-size: 1.12rem;
}

.gl-audit-print-card > .section-card-header .text-muted {
    color: rgba(255, 255, 255, .76) !important;
}

.gl-enquiries-accounts-card > .section-card-header {
    background: #2f6b8f !important;
    border-bottom: 1px solid #285b79;
    padding: 1rem 1.15rem;
}

.gl-enquiries-accounts-card > .section-card-header .fw-semibold {
    color: #ffffff;
    font-size: 1.12rem;
}

.gl-enquiries-accounts-card > .section-card-header .text-muted {
    color: rgba(255, 255, 255, .76) !important;
}

.gl-enquiries-table {
    min-width: 880px;
}

.gl-enquiries-table thead th {
    background: #255b78 !important;
    border: 1px solid #214e67 !important;
    color: #ffffff !important;
    font-weight: 650;
}

.gl-enquiries-table > :not(caption) > * > * {
    border: 1px solid #d3e3e0;
    padding: .72rem .85rem;
}

.gl-enquiries-table tbody tr:nth-child(odd) > * {
    background: #fbfdfd;
}

.gl-enquiries-table tbody tr:nth-child(even) > * {
    background: #f1f8f7;
}

.gl-enquiries-table tbody tr:hover > * {
    background: #e5f4f2;
}

.gl-enquiries-table a.fw-semibold {
    color: #123f4a;
    text-decoration: none;
}

.gl-enquiries-table a.fw-semibold:hover,
.gl-enquiries-table a.fw-semibold:focus {
    color: #1f6f86;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gl-audit-sort-link {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    gap: .35rem;
    text-decoration: none;
    white-space: nowrap;
}

.gl-audit-sort-link:hover,
.gl-audit-sort-link:focus,
.gl-audit-sort-link.is-active {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gl-audit-sort-arrow {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    display: inline-flex;
    font-size: .76rem;
    height: 1.25rem;
    justify-content: center;
    line-height: 1;
    min-width: 1.25rem;
    padding: .1rem .28rem;
}

.backup-export-table tbody tr:nth-child(even),
.gl-audit-line-row:nth-child(even),
.trial-balance-table tbody tr:nth-child(even),
.gl-account-table tbody tr:nth-child(even),
.journal-lines-table tbody tr:nth-child(even),
.gl-enquiries-table tbody tr:nth-child(even) {
    background: #fbfdfd;
}

.backup-export-table tbody tr:nth-child(odd) > * {
    background: #f7fbfc;
}

.backup-export-table tbody tr:nth-child(even) > * {
    background: #eef8f7;
}

.backup-export-table tbody tr:hover > * {
    background: #dff0f3;
}

.trial-balance-table tfoot td {
    background: #eef8f7;
    border-top: 2px solid #bcd9d7;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.trial-balance-monthly-wrap {
    max-height: 70vh;
    overflow: auto;
}

.trial-balance-monthly-table {
    min-width: 1250px;
}

.trial-balance-monthly-table th:first-child,
.trial-balance-monthly-table td:first-child {
    background: inherit;
    left: 0;
    min-width: 180px;
    position: sticky;
    z-index: 1;
}

.trial-balance-monthly-table thead th:first-child {
    z-index: 4;
}

.gl-account-setup-card .form-text,
.gl-account-form-card .form-text,
.gl-account-import-card .form-text {
    color: var(--ws-muted);
}

.gl-accounts-page {
    gap: 1.35rem;
}

.gl-accounts-page .page-header,
.gl-accounts-page .filter-card {
    margin-bottom: 0;
}

.gl-account-setup-card,
.gl-account-form-card,
.gl-account-import-card {
    overflow: visible;
}

.gl-account-fold-grid {
    margin-bottom: 0;
}

.gl-account-fold-section {
    display: block;
}

.gl-account-fold-header {
    align-items: center;
    background: #1f6f86;
    border-bottom: 1px solid #18586b;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: space-between;
    list-style: none;
    padding: 0.9rem 1rem;
}

.gl-account-fold-header::-webkit-details-marker {
    display: none;
}

.gl-account-fold-header::after {
    color: #ffffff;
    content: "Show";
    font-size: 0.78rem;
    font-weight: 800;
    margin-left: auto;
    text-transform: uppercase;
}

.gl-account-fold-section[open] > .gl-account-fold-header::after {
    content: "Hide";
}

.gl-account-fold-header span {
    font-weight: 800;
}

.gl-account-fold-header small {
    color: rgba(255, 255, 255, 0.82);
    flex: 1 1 260px;
    font-weight: 600;
}

.gl-account-fold-header .text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}

.gl-account-chart-section > .gl-account-fold-header {
    background: #155f77;
    border-bottom-color: #124d61;
}

.gl-account-setup-card > .gl-account-fold-header {
    background: #247b6f;
    border-bottom-color: #1c6259;
}

.gl-account-form-card > .gl-account-fold-header {
    background: #2a7489;
    border-bottom-color: #205a6b;
}

.gl-account-import-card > .gl-account-fold-header {
    background: #316f86;
    border-bottom-color: #26586a;
}

.gl-account-setup-card .card-body,
.gl-account-form-card .card-body,
.gl-account-import-card .card-body {
    padding: 1.2rem;
}

.gl-account-setup-card .row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.gl-account-setup-card .col-md-6,
.gl-account-form-card .card-body > .row,
.gl-account-import-card .card-body > .mb-3 {
    min-width: 0;
}

.gl-account-setup-card .form-label {
    color: var(--ws-text);
    font-weight: 700;
}

.gl-account-setup-card .form-select,
.gl-account-form-card .form-control,
.gl-account-form-card .form-select,
.gl-account-import-card .form-control {
    min-height: 2.45rem;
}

.gl-account-table {
    min-width: 1120px;
}

.gl-account-table > :not(caption) > * > * {
    padding: 0.72rem 0.85rem;
}

.gl-account-sample-table thead th {
    background: #eef8f7;
    color: #123744;
}

.journal-header-panel {
    background: #f8fcfb;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    margin-left: 0;
    margin-right: 0;
    padding: 0.15rem 0.15rem 1rem;
}

.journal-entry-card {
    overflow: visible;
}

.journal-lines-table {
    min-width: 1040px;
}

.journal-lines-table tfoot td {
    background: #eef8f7;
    border-top: 2px solid #bcd9d7;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.journal-footer {
    background: #f8fcfb;
    border-top-color: var(--ws-border-soft);
}

.gl-enquiry-stat {
    background: #ffffff;
    border: 1px solid var(--ws-border-soft);
    border-left: 4px solid #2a7489;
    border-radius: var(--ws-radius);
    height: 100%;
}

.gl-account-cashbook-table-wrap {
    max-height: 420px;
}

.gl-account-cashbook-table thead th {
    background: #dceef1;
    color: #123744;
    position: sticky;
    top: 0;
    z-index: 3;
}

.gl-account-cashbook-table tbody tr:nth-child(even) {
    background: #fbfdfd;
}

.migration-step-badge {
    background: #087ea4;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 700;
    justify-content: center;
    margin-right: 0;
    min-width: 2.8rem;
    padding: 0.28rem 0.65rem;
    text-transform: uppercase;
}

.migration-step-badge-in {
    background: #25784f;
}

.migration-steps {
    counter-reset: migration-step;
    display: grid;
    gap: 0.65rem;
    list-style: none;
    padding-left: 0;
}

.migration-steps li {
    background: #f8fcfb;
    border: 1px solid #d9ecea;
    border-radius: 8px;
    padding: 0.75rem 0.85rem 0.75rem 3rem;
    position: relative;
}

.migration-steps li:nth-child(even) {
    background: #eef8f7;
}

.migration-steps li:last-child {
    margin-bottom: 0;
}

.migration-steps li::before {
    align-items: center;
    background: #e1f5f3;
    border: 1px solid #bddbd8;
    border-radius: 999px;
    color: #075f75;
    content: counter(migration-step);
    counter-increment: migration-step;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    height: 1.35rem;
    justify-content: center;
    left: 0.85rem;
    position: absolute;
    top: 0.72rem;
    width: 1.35rem;
}

.gl-audit-filter {
    background: #ffffff;
}

.gl-audit-entry-row > td {
    background: #eef8f7;
    border: 1px solid #c7dedc;
    border-top: 2px solid #9ec2c6;
}

.gl-audit-line-row > td {
    background: #fbfdfd;
    border: 1px solid #e3efee;
}

.gl-audit-line-row td:first-child {
    background: linear-gradient(90deg, #dceef1 0, #dceef1 4px, transparent 4px);
}

.finance-dashboard,
.finance-report-page,
.report-centre {
    --finance-header-bg: #1f6f86;
    --finance-header-border: #18586b;
}

.finance-kpi-card .card-body {
    display: grid;
    gap: 0.45rem;
}

.finance-kpi-row {
    align-items: baseline;
    border-bottom: 1px solid #edf5f4;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.22rem 0;
}

.finance-kpi-row:last-child {
    border-bottom: 0;
}

.finance-kpi-row span {
    color: var(--ws-muted);
}

.finance-kpi-row strong {
    color: inherit;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.finance-panel-card .card-header,
.finance-kpi-card .card-header {
    background: #eaf6f5 !important;
}

.finance-table thead th,
.report-table-card .table thead th,
.finance-report-page .table thead th {
    --bs-table-bg: #2f6b8f;
    --bs-table-color: #ffffff;
    background: #2f6b8f !important;
    border-color: #285b79 !important;
    color: #ffffff !important;
}

.finance-table tbody tr:nth-child(odd) > *,
.report-table-card tbody tr:nth-child(odd) > * {
    background: #fbfefe;
}

.finance-table tbody tr:nth-child(even) > *,
.report-table-card tbody tr:nth-child(even) > * {
    background: #f3faf9;
}

.finance-table tbody tr:hover > *,
.report-table-card tbody tr:hover > * {
    background: #e8f6f8;
}

.finance-stat-card {
    border-left: 4px solid var(--ws-primary);
}

.report-tabs {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    gap: 0.35rem;
    padding: 0.45rem;
}

.report-tabs .nav-link {
    border: 0;
    border-radius: 6px;
    color: var(--ws-muted);
    font-weight: 650;
}

.report-tabs .nav-link.active {
    background: var(--ws-primary);
    color: #fff;
}

.report-summary-strip {
    background: #fff;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
}

.report-summary-strip > div {
    background: #fff;
}

.report-summary-strip .bg-light {
    background: #eaf6f5 !important;
}

.report-table-card {
    overflow: hidden;
}

.section-title {
    color: var(--ws-text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.workflow-panel > .card-body {
    padding: 1.35rem;
}

.form-label {
    color: #244653;
    font-size: 0.82rem;
    font-weight: 650;
    margin-bottom: 0.3rem;
}

.form-control,
.form-select {
    border-color: #cfd6df;
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ws-primary);
    box-shadow: 0 0 0 0.18rem rgba(8, 126, 164, 0.18);
}

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

.btn-primary {
    background: var(--ws-primary);
    border-color: var(--ws-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--ws-primary-dark);
    border-color: var(--ws-primary-dark);
}

.btn-outline-primary {
    border-color: var(--ws-primary);
    color: var(--ws-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--ws-primary);
    border-color: var(--ws-primary);
}

.table {
    color: var(--ws-text);
}

.table thead th {
    background: var(--ws-surface-soft);
    border-bottom: 1px solid var(--ws-border);
    color: #244653;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.customer-orders-table.table thead th {
    --bs-table-bg: #155f72;
    --bs-table-color: #ffffff;
    --bs-table-border-color: rgba(255, 255, 255, 0.5);
    background: #155f72 !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: inset 0 0 0 9999px #155f72;
    color: #ffffff !important;
    position: sticky;
    top: 0;
    z-index: 5;
}

.customer-orders-table-wrap.table-responsive {
    overflow: visible;
}

@media (max-width: 767.98px) {
    .customer-orders-table-wrap.table-responsive {
        overflow-x: auto;
    }
}

.table-hover tbody tr:hover {
    background-color: #f2fbfa;
}

.ledger-table > :not(caption) > * > * {
    padding: 0.62rem 0.75rem;
}

.badge {
    border-radius: 999px;
    font-weight: 650;
}

.order-workflow-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-workflow-stat {
    background: var(--ws-surface);
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    color: var(--ws-text);
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    text-decoration: none;
}

.order-workflow-stat:hover,
.order-workflow-stat:focus {
    border-color: var(--ws-primary);
    color: var(--ws-text);
}

.order-workflow-stat span {
    color: var(--ws-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.order-workflow-stat strong {
    color: var(--ws-primary-dark);
    font-size: 1.35rem;
    line-height: 1;
}

.order-workflow-stat-ready {
    background: #e8f8fb;
    border-color: #9ed9e2;
}

.order-workflow-card {
    overflow: visible;
}

#ordersTableScroll {
    overflow-x: auto;
    overflow-y: visible;
}

.orders-workflow-table .order-number-cell a {
    color: var(--ws-text);
    text-decoration: none;
}

.orders-workflow-table .order-number-cell a:hover,
.orders-workflow-table .order-number-cell a:focus {
    color: var(--ws-primary);
    text-decoration: underline;
}

.orders-workflow-table .order-row-ready > * {
    background: #f2fbfd;
}

.orders-workflow-table td {
    vertical-align: middle;
}

.orders-workflow-table .order-progress-cell {
    min-width: 260px;
    width: 260px;
}

.order-workflow-card.is-progress-expanded .orders-workflow-table .order-progress-cell {
    min-width: 560px;
    width: 560px;
}

.orders-workflow-table thead th {
    background: #1677a2;
    border-bottom-color: #0f6388;
    color: #fff;
}

.order-progress-header-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    display: inline-flex;
    font: inherit;
    font-weight: 650;
    gap: 0.45rem;
    padding: 0;
}

.order-progress-header-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    display: inline-flex;
    height: 1.25rem;
    justify-content: center;
    line-height: 1;
    transition: transform 0.16s ease;
    width: 1.25rem;
}

.order-workflow-card.is-progress-expanded .order-progress-header-icon,
.orders-progress-expanded .order-progress-header-icon {
    transform: rotate(90deg);
}

.order-flow-strip {
    display: none;
    gap: 0.25rem;
    grid-template-columns: repeat(5, minmax(82px, 1fr));
}

.order-workflow-card.is-progress-expanded .order-flow-strip {
    display: grid;
}

.order-flow-details {
    background: #f7fbfb;
    border: 1px solid #d4e5e7;
    border-radius: 7px;
    max-width: 520px;
    padding: 0.35rem 0.45rem;
}

.order-flow-summary {
    align-items: center;
    color: #315563;
    display: flex;
    gap: 0.55rem;
    justify-content: space-between;
}

.order-flow-summary span {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-flow-summary strong {
    color: #163f4d;
    font-size: 0.82rem;
}

.order-flow-step {
    background: #f4f8f9;
    border: 1px solid #d9e7ea;
    border-radius: 6px;
    color: #5d7078;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-height: 48px;
    padding: 0.35rem 0.45rem;
}

.order-flow-step span {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-flow-step strong {
    color: #263f48;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
}

.order-flow-step-done {
    background: #e7f5ef;
    border-color: #a7d8c2;
}

.order-flow-step-current {
    background: #fff8e6;
    border-color: #e8c46f;
}

.order-flow-step-blocked {
    background: #fdebec;
    border-color: #e3a2a8;
}

.completed-orders-folder > summary {
    cursor: pointer;
    list-style-position: inside;
    padding: 0.2rem 0;
}

.completed-orders-folder > summary::marker {
    color: var(--ws-primary);
}

.orders-floating-header,
.fulfilment-floating-header,
.fulfilment-recent-floating-header,
.fulfilment-lane-floating-header,
.product-floating-header,
.product-movement-floating-header,
.category-floating-header,
.supplier-price-floating-header,
.supplier-orders-floating-header,
.debtor-invoices-floating-header {
    display: none;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    z-index: 1030;
}

.orders-floating-header.is-visible,
.fulfilment-floating-header.is-visible,
.fulfilment-recent-floating-header.is-visible,
.fulfilment-lane-floating-header.is-visible,
.product-floating-header.is-visible,
.product-movement-floating-header.is-visible,
.category-floating-header.is-visible,
.supplier-price-floating-header.is-visible,
.supplier-orders-floating-header.is-visible,
.debtor-invoices-floating-header.is-visible {
    display: block;
}

.orders-floating-header table,
.fulfilment-floating-header table,
.fulfilment-recent-floating-header table,
.fulfilment-lane-floating-header table,
.product-floating-header table,
.product-movement-floating-header table,
.category-floating-header table,
.supplier-price-floating-header table,
.supplier-orders-floating-header table,
.debtor-invoices-floating-header table {
    margin-bottom: 0;
    table-layout: fixed;
}

.debtor-invoices-workflow-table thead th {
    background: #2f6f91;
    color: #fff;
    font-weight: 700;
    vertical-align: middle;
}

.debtor-invoices-workflow-table tbody tr:nth-of-type(odd) > * {
    background-color: #f6fafb;
}

#debtorInvoicesTableScroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#debtorInvoicesTableScroll::-webkit-scrollbar {
    display: none;
}

.matched-debtor-folder {
    background: #f7fbfa;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    padding: 0.75rem 0.85rem;
}

.matched-debtor-folder > summary {
    align-items: center;
    color: var(--ws-text);
    cursor: pointer;
    display: flex;
    font-weight: 700;
    gap: 0.75rem;
    justify-content: space-between;
}

.matched-debtor-folder > summary::marker {
    color: var(--ws-primary);
}

.debtor-fold-section {
    border-color: var(--ws-border-soft);
    overflow: visible;
}

.debtor-fold-header {
    align-items: center;
    background: var(--debtor-section-bg, #eef8f7);
    border-left: 5px solid var(--debtor-section-border, #2a7489);
    border-radius: var(--ws-radius) var(--ws-radius) 0 0;
    color: var(--debtor-section-text, #102a36);
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    font-weight: 800;
    gap: 0.75rem;
    justify-content: space-between;
    list-style-position: inside;
    padding: 0.85rem 1rem;
}

.debtor-fold-header::after {
    content: "Show";
    font-size: 0.78rem;
    font-weight: 800;
    opacity: 0.72;
}

.debtor-fold-section[open] > .debtor-fold-header::after {
    content: "Hide";
}

.debtor-fold-section > .table-responsive,
.debtor-fold-section > .row {
    border-top: 1px solid var(--ws-border-soft);
}

.setup-fold-grid {
    align-items: stretch;
}

.setup-fold-section {
    border-color: var(--ws-border-soft);
    overflow: visible;
}

.setup-fold-section > .setup-fold-header {
    align-items: center;
    background: var(--setup-section-bg, #eef8f7);
    border-left: 5px solid var(--setup-section-border, #2a7489);
    border-radius: var(--ws-radius) var(--ws-radius) 0 0;
    color: var(--setup-section-text, #102a36);
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    font-weight: 750;
    gap: 0.75rem;
    justify-content: space-between;
    list-style: none;
    padding: 0.85rem 1rem;
}

.setup-fold-section > .setup-fold-header::-webkit-details-marker {
    display: none;
}

.setup-fold-section > .setup-fold-header::after {
    content: "Show";
    font-size: 0.78rem;
    font-weight: 800;
    opacity: 0.72;
}

.setup-fold-section[open] > .setup-fold-header::after {
    content: "Hide";
}

.setup-fold-section > .setup-fold-header small {
    color: rgba(16, 42, 54, 0.72);
    font-weight: 650;
}

.setup-fold-section > .table-responsive,
.setup-fold-section > .card-body {
    border-top: 1px solid var(--ws-border-soft);
}

.setup-fold-toolbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid var(--ws-border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.setup-section-form {
    --setup-section-bg: #e9f7f5;
    --setup-section-border: #2a7489;
}

.setup-section-import {
    --setup-section-bg: #edf7ee;
    --setup-section-border: #4d8f62;
}

.setup-section-users {
    --setup-section-bg: #f4f1fb;
    --setup-section-border: #7462a8;
}

.setup-section-list {
    --setup-section-bg: #edf4fb;
    --setup-section-border: #446f95;
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) .setup-fold-section > .setup-fold-header {
    background: var(--setup-section-bg, var(--page-theme-header));
    border-left: 0;
    color: var(--page-theme-header-text);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) .setup-fold-section > .setup-fold-header small {
    color: rgba(255, 255, 255, 0.78);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) .setup-section-form {
    --setup-section-bg: color-mix(in srgb, var(--page-theme-header) 92%, white 8%);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) .setup-section-import {
    --setup-section-bg: color-mix(in srgb, var(--page-theme-header) 82%, white 18%);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) .setup-section-users {
    --setup-section-bg: color-mix(in srgb, var(--page-theme-header) 74%, white 26%);
}

body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) .setup-section-list {
    --setup-section-bg: color-mix(in srgb, var(--page-theme-header) 66%, white 34%);
}

.debtor-t-account-actions {
    align-items: center;
    background: #fbfdfd;
    border-top: 1px solid var(--ws-border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.debtor-t-account-actions span {
    display: block;
}

.debtor-support-table thead th {
    background: #2f6f91;
    color: #fff;
    font-weight: 700;
    vertical-align: middle;
}

.debtor-support-table tbody tr:nth-of-type(odd) > * {
    background-color: #f7fbfa;
}

.debtor-section-credit-notes {
    --debtor-section-bg: #edf7f8;
    --debtor-section-border: #2f6f91;
}

.debtor-section-t-account {
    --debtor-section-bg: #e9f7f3;
    --debtor-section-border: #16866f;
}

.debtor-section-summary {
    --debtor-section-bg: #f2f7fb;
    --debtor-section-border: #4e79a7;
}

.debtor-section-web-sales {
    --debtor-section-bg: #eef7ea;
    --debtor-section-border: #6c8d3f;
}

.debtor-section-receipts {
    --debtor-section-bg: #f0f8f8;
    --debtor-section-border: #0f8b8d;
}

.debtor-section-postings {
    --debtor-section-bg: #f7f4ea;
    --debtor-section-border: #9a7b2f;
}

.debtor-section-recent-matches {
    --debtor-section-bg: #edf4ff;
    --debtor-section-border: #4e79a7;
}

.debtor-match-summary {
    align-items: stretch;
}

.debtor-summary-tile {
    background: #f4faf9;
    border: 1px solid #d6e8e7;
    border-left: 4px solid #2a7489;
    border-radius: 8px;
    height: 100%;
    padding: 0.85rem 1rem;
}

.debtor-summary-tile span,
.debtor-summary-tile small {
    display: block;
}

.debtor-summary-tile span {
    color: var(--ws-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.debtor-summary-tile strong {
    color: var(--ws-text);
    display: block;
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0.18rem 0;
}

.debtor-summary-tile small {
    color: var(--ws-muted);
}

.debtor-summary-warning {
    background: #fff8e8;
    border-color: #efd59b;
    border-left-color: #c58a1f;
}

.debtor-match-panel,
.debtor-match-note-card {
    background: #fbfdfd;
    border-color: var(--ws-border-soft);
}

.debtor-match-panel .form-label {
    color: var(--ws-text);
    font-weight: 700;
}

.debtor-match-panel .btn {
    margin-bottom: 0.25rem;
}

.debtor-statement-card {
    border-color: var(--ws-border-soft);
    overflow: visible;
}

.debtor-statement-card .card-header {
    background: #eef8f7;
    border-bottom-color: var(--ws-border-soft);
    color: var(--ws-text);
}

#statement_debtor_id {
    max-width: 320px;
}

.fulfilment-lane-card {
    background: var(--ws-surface);
    border: 1px solid var(--ws-border-soft);
    border-left: 5px solid var(--ws-primary);
    border-radius: var(--ws-radius);
    color: var(--ws-text);
    display: block;
    height: 100%;
    padding: 1rem;
    text-decoration: none;
}

.fulfilment-lane-card:hover,
.fulfilment-lane-card:focus {
    border-color: var(--ws-primary);
    color: var(--ws-text);
}

.fulfilment-lane-card span {
    color: var(--ws-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.fulfilment-lane-card strong {
    display: block;
    font-size: 0.98rem;
}

.fulfilment-lane-card small {
    color: var(--ws-muted);
    display: block;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.fulfilment-lane-collection {
    border-left-color: #1677a2;
}

.fulfilment-lane-shipment {
    border-left-color: #25784f;
}

.fulfilment-lane-wip {
    border-left-color: #b7791f;
}

.fulfilment-pick-card {
    overflow: hidden;
}

.fulfilment-pick-card .section-card-header {
    padding: 1rem 1.15rem;
}

.fulfilment-queue-table thead th {
    background: #1677a2;
    border-bottom-color: #0f6388;
    color: #fff;
}

.fulfilment-queue-table tbody tr.fulfilment-queue-line-odd > * {
    background: #f8fcfd;
}

.fulfilment-queue-table tbody tr.fulfilment-queue-line-even > * {
    background: #eef8fb;
}

.fulfilment-queue-table tbody tr.fulfilment-queue-line:hover > * {
    background: #e3f3f7;
}

.fulfilment-queue-table > :not(caption) > * > * {
    padding: 0.5rem 0.55rem;
}

.bulk-picking-card {
    overflow: hidden;
}

.bulk-picking-toolbar {
    background: #f4faf9;
    border-bottom: 1px solid var(--ws-border-soft);
    padding: 1rem 1.15rem;
}

.bulk-picking-table thead th {
    background: #56798a;
    border-color: #436574;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.bulk-picking-table > :not(caption) > * > * {
    border-color: #cfdee2;
    padding: 0.55rem 0.65rem;
}

.bulk-picking-table tbody tr:nth-child(odd) > * {
    background: #f8fcfd;
}

.bulk-picking-table tbody tr:nth-child(even) > * {
    background: #eef8fb;
}

.bulk-picking-table tbody tr:hover > * {
    background: #e3f3f7;
}

.bulk-picking-muted > * {
    opacity: 0.72;
}

.bulk-picking-table-wrap {
    max-height: 68vh;
}

.bulk-picking-slip {
    margin-bottom: 1rem;
}

.bulk-picking-slip-break {
    break-before: page;
    page-break-before: always;
}

.recount-slip-banner {
    background: #fff3cd;
    border: 1px solid #e4bf5b;
    border-radius: 0.45rem;
    color: #6f4c00;
    font-weight: 750;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.7rem;
    text-align: center;
    text-transform: uppercase;
}

.fulfilment-serial-cell {
    max-width: 180px;
    min-width: 150px;
    white-space: normal;
}

.fulfilment-serial-cell .btn {
    white-space: nowrap;
}

.fulfilment-serial-cell .serial-summary {
    white-space: nowrap;
}

.fulfilment-serial-panel-row > td {
    background: #fff !important;
}

.fulfilment-serial-modal .modal-header {
    background: #eef8fb;
    border-bottom-color: #c5e0e8;
}

.fulfilment-serial-modal-status {
    align-items: center;
    background: #f4faf9;
    border: 1px solid #cfe3df;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .65rem .75rem;
}

.fulfilment-serial-modal-status > span {
    background: #ffffff;
    border: 1px solid #d8e8e5;
    border-radius: 999px;
    color: #244653;
    font-size: .82rem;
    font-weight: 650;
    padding: .22rem .65rem;
}

.fulfilment-serial-options {
    max-height: 44vh;
    overflow-y: auto;
    padding-right: .25rem;
}

.pick-serial-option .form-check-input:disabled + span {
    color: #8a9aa0;
}

.fulfilment-recent-table thead th {
    background: #56798a;
    border-bottom-color: #436574;
    color: #fff;
}

.fulfilment-recent-table tbody tr:nth-child(odd) > * {
    background: #fffaf0;
}

.fulfilment-recent-table tbody tr:nth-child(even) > * {
    background: #f8eddc;
}

.fulfilment-recent-table tbody tr:hover > * {
    background: #f2d8b6;
}

.fulfilment-lane-switcher .card-body {
    padding: 0.8rem 1rem;
}

.fulfilment-lane-tab-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.fulfilment-lane-tab {
    align-items: center;
    background: #f8fcfd;
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.45rem;
    color: var(--ws-text);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 650;
    min-height: 2.15rem;
    padding: 0.42rem 0.7rem;
    text-decoration: none;
}

.fulfilment-lane-tab:hover,
.fulfilment-lane-tab:focus {
    background: #eef8fb;
    border-color: #9bcfe0;
    color: var(--ws-text);
}

.fulfilment-lane-tab.is-active {
    background: #1677a2;
    border-color: #0f6388;
    color: #fff;
}

.fulfilment-process-banner {
    align-items: center;
    background: #f8fcfd;
    border: 1px solid var(--ws-border-soft);
    border-left: 5px solid #1677a2;
    border-radius: var(--ws-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.95rem 1.05rem;
}

.fulfilment-outstanding-card,
.fulfilment-lane-table-card {
    overflow: hidden;
}

.fulfilment-lane-bulk-actions .btn {
    white-space: nowrap;
}

.fulfilment-lane-table th:first-child,
.fulfilment-lane-table td:first-child {
    text-align: center;
    width: 72px;
}

.fulfilment-outstanding-table thead th,
.fulfilment-lane-table thead th {
    background: #56798a;
    border-bottom-color: #436574;
    color: #fff;
    white-space: nowrap;
}

.fulfilment-outstanding-table tbody tr:not(.table-warning):nth-child(odd) > *,
.fulfilment-lane-table tbody tr:nth-child(odd) > * {
    background: #f8fcfd;
}

.fulfilment-outstanding-table tbody tr:not(.table-warning):nth-child(even) > *,
.fulfilment-lane-table tbody tr:nth-child(even) > * {
    background: #eef8fb;
}

.fulfilment-outstanding-table tbody tr:not(.table-warning):hover > *,
.fulfilment-lane-table tbody tr:hover > * {
    background: #e3f3f7;
}

.fulfilment-lane-table > :not(caption) > * > * {
    padding: 0.65rem 0.7rem;
}

.fulfilment-confirmation-queue {
    overflow: hidden;
}

.fulfilment-confirmation-bulk-actions .btn {
    white-space: nowrap;
}

.fulfilment-confirmation-queue-table th:first-child,
.fulfilment-confirmation-queue-table td:first-child {
    text-align: center;
    width: 72px;
}

.fulfilment-confirmation-queue-table thead th {
    background: #56798a;
    border-bottom-color: #436574;
    color: #fff;
    white-space: nowrap;
}

.fulfilment-confirmation-queue-table tbody tr:nth-child(odd):not(.table-info) > * {
    background: #f8fcfd;
}

.fulfilment-confirmation-queue-table tbody tr:nth-child(even):not(.table-info) > * {
    background: #eef8fb;
}

.fulfilment-confirmation-queue-table tbody tr:hover > * {
    background: #e3f3f7;
}

.fulfilment-confirmation-queue-table > :not(caption) > * > * {
    border-color: #cfdee2;
    padding: 0.58rem 0.65rem;
}

.fulfilment-source-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.5rem;
}

.fulfilment-source-summary .ms-1 {
    margin-left: 0 !important;
}

.fulfilment-lane-action-panel {
    background: #ffffff;
    border: 1px solid #c8dde5;
    border-radius: 0.55rem;
    box-shadow: 0 10px 24px rgba(40, 89, 109, 0.1);
    margin: 0.45rem 0 0.85rem;
    overflow: hidden;
    width: 100%;
}

.fulfilment-lane-action-panel-title {
    background: #56798a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 0.8rem;
}

.fulfilment-lane-action-panel-success .fulfilment-lane-action-panel-title {
    background: #4f8176;
}

.fulfilment-lane-action-panel-danger .fulfilment-lane-action-panel-title {
    background: #a75a5a;
}

.fulfilment-lane-action-panel-body {
    background: #f8fcfd;
    padding: 1rem;
}

.fulfilment-lane-panel-form:last-child,
.fulfilment-lane-action-panel-body form:last-child {
    margin-bottom: 0 !important;
}

.fulfilment-complete-form-grid {
    margin-bottom: 0.25rem;
}

.fulfilment-complete-button {
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 2.35rem;
    white-space: normal;
}

.fulfilment-upload-form-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
    margin-right: 0;
}

.fulfilment-upload-form-grid > [class*="col-"] {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.fulfilment-upload-form-grid .form-control,
.fulfilment-upload-form-grid .form-select {
    min-height: 2.15rem;
}

.fulfilment-upload-button {
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 2.35rem;
    max-width: 180px;
}

.fulfilment-release-table {
    border: 1px solid #cfe0e5;
}

.fulfilment-release-table thead th {
    background: #e8f3f5;
    border-color: #c5dce2;
    color: #284e5b;
    font-size: 0.82rem;
    white-space: nowrap;
}

.fulfilment-release-table tbody td {
    border-color: #d8e8ec;
    vertical-align: middle;
}

.fulfilment-bay-form {
    overflow: hidden;
}

.fulfilment-bay-form .section-card-header,
.fulfilment-configured-bays-card .section-card-header {
    padding: 1.15rem 1.35rem;
}

.fulfilment-bay-form .card-body {
    padding: 1.35rem;
}

.fulfilment-bay-form-panel {
    background: #f8fcfd;
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.55rem;
    padding: 1.05rem;
}

.fulfilment-bays-table-card {
    overflow: hidden;
}

.fulfilment-bays-table thead th {
    background: #1677a2;
    border-bottom-color: #0f6388;
    color: #fff;
    white-space: nowrap;
}

.fulfilment-bays-table tbody tr:nth-child(4n + 1) > *,
.fulfilment-bays-table tbody tr:nth-child(4n + 2) > * {
    background: #f8fcfd;
}

.fulfilment-bays-table tbody tr:nth-child(4n + 3) > *,
.fulfilment-bays-table tbody tr:nth-child(4n + 4) > * {
    background: #eef8fb;
}

.fulfilment-bays-table tbody tr:hover > * {
    background: #e3f3f7;
}

.fulfilment-bays-table tr.collapse > td {
    background: #f8fbfc !important;
    border-top: 0;
}

.fulfilment-configured-bays-table-wrap {
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.55rem;
    margin: 1.35rem;
    overflow-x: auto;
}

.fulfilment-configured-bays-table-wrap .table {
    margin-bottom: 0;
}

.fulfilment-configured-bays-card .fulfilment-bays-table tr.collapse > td {
    padding: 1.15rem 1.25rem;
}

.fulfilment-scan-stations-card .section-card-header {
    padding: 1.15rem 1.35rem;
}

.fulfilment-scan-stations-card .card-body {
    padding: 1.35rem;
}

.fulfilment-scan-station-form {
    background: #f8fcfd;
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.55rem;
    padding: 1.05rem;
}

.fulfilment-scan-stations-list-header {
    border-top: 1px solid var(--ws-border-soft);
    padding: 1.15rem 1.35rem 0.75rem;
}

.fulfilment-scan-stations-table-wrap {
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.55rem;
    margin: 0 1.35rem 1.35rem;
    overflow-x: auto;
}

.fulfilment-scan-stations-table-wrap .table {
    margin-bottom: 0;
}

.fulfilment-scan-stations-card .fulfilment-bays-table tr.collapse > td {
    padding: 1.15rem 1.25rem;
}

.fulfilment-scan-form,
.fulfilment-parcel-card,
.fulfilment-parcel-contents-card,
.fulfilment-scan-status-card,
.fulfilment-scan-trail-card {
    overflow: hidden;
}

.fulfilment-scan-form .card-body,
.fulfilment-parcel-card .card-body,
.fulfilment-scan-status-card .card-body {
    padding: 1rem 1.15rem;
}

.fulfilment-scan-form #token {
    font-weight: 650;
    letter-spacing: 0;
}

.fulfilment-scan-facts > div {
    background: #f8fcfd;
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.45rem;
    padding: 0.65rem 0.75rem;
}

.fulfilment-scan-facts span {
    color: var(--ws-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 750;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.fulfilment-parcel-table thead th {
    background: #56798a;
    border-bottom-color: #436574;
    color: #fff;
    white-space: nowrap;
}

.fulfilment-parcel-table tbody tr:nth-child(odd) > * {
    background: #f8fcfd;
}

.fulfilment-parcel-table tbody tr:nth-child(even) > * {
    background: #eef8fb;
}

.fulfilment-parcel-table tbody tr:hover > * {
    background: #e3f3f7;
}

.fulfilment-scan-trail .list-group-item {
    border-color: var(--ws-border-soft);
    padding: 0.85rem 1rem;
}

.fulfilment-scan-trail .list-group-item:nth-child(odd) {
    background: #f8fcfd;
}

.fulfilment-pick-confirmation-scan,
.fulfilment-pick-confirmation-card,
.fulfilment-confirmation-history,
.fulfilment-picker-badges-card {
    overflow: hidden;
}

.fulfilment-pick-confirmation-scan .card-body,
.fulfilment-pick-confirmation-card .card-body,
.fulfilment-picker-badges-card .card-body {
    padding: 1.35rem;
}

.fulfilment-confirmation-summary {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fulfilment-confirmation-summary > div {
    background: #f8fcfd;
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.45rem;
    padding: 0.65rem 0.75rem;
}

.fulfilment-confirmation-summary span {
    color: var(--ws-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
}

.fulfilment-confirmation-table-wrap {
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.55rem;
    overflow-x: auto;
}

.fulfilment-confirmation-table thead th {
    background: #56798a;
    border-bottom-color: #436574;
    color: #fff;
    white-space: nowrap;
}

.fulfilment-confirmation-table tbody tr:nth-child(odd) > * {
    background: #f8fcfd;
}

.fulfilment-confirmation-table tbody tr:nth-child(even) > * {
    background: #eef8fb;
}

.fulfilment-confirmation-table tbody tr:hover > * {
    background: #e3f3f7;
}

.picker-badge-sheet {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.picker-badge-card {
    background: #fff;
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.55rem;
    max-width: 360px;
    padding: 1.25rem;
    text-align: center;
    width: 100%;
}

.picker-badge-card h1 {
    font-size: 1.35rem;
    margin: 0.2rem 0 0.75rem;
}

.picker-badge-barcode {
    height: 72px;
    margin: 0.75rem auto;
    max-width: 300px;
}

.picker-badge-barcode svg {
    height: 72px;
    max-width: 100%;
}

.picker-badge-token {
    font-weight: 750;
    letter-spacing: 0.04em;
}

.picking-slip {
    padding: 1.35rem;
}

.picking-slip-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--ws-border-soft);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.picking-slip-logo {
    display: block;
    max-height: 58px;
    max-width: 180px;
    object-fit: contain;
}

.picking-slip-reference {
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.45rem;
    min-width: 190px;
    padding: 0.65rem 0.75rem;
    text-align: right;
}

.picking-slip-reference-scan {
    border-top: 1px solid var(--ws-border-soft);
    margin-top: 0.55rem;
    padding-top: 0.55rem;
}

.picking-slip-reference-barcode {
    height: 42px;
    margin: 0.25rem 0 0.1rem auto;
    max-width: 190px;
    overflow: hidden;
}

.picking-slip-reference-barcode svg {
    height: 42px;
    max-width: 100%;
}

.picking-slip-facts {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.picking-slip-facts > div {
    background: #f8fcfd;
    border: 1px solid var(--ws-border-soft);
    border-radius: 0.45rem;
    padding: 0.55rem 0.65rem;
}

.picking-slip-facts span {
    color: var(--ws-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 750;
    margin-bottom: 0.18rem;
    text-transform: uppercase;
}

.picking-slip-table thead th {
    background: #56798a;
    border-bottom-color: #436574;
    color: #fff;
    white-space: nowrap;
}

.picking-slip-table tbody tr:nth-child(odd) > * {
    background: #f8fcfd;
}

.picking-slip-table tbody tr:nth-child(even) > * {
    background: #eef8fb;
}

.picking-slip-notes {
    margin-top: 1.25rem;
}

.picking-slip-notes > div:not(:first-child) {
    border-bottom: 1px solid #222;
    height: 28px;
}

.picking-slip-signature {
    align-items: flex-end;
    display: flex;
    gap: 1rem;
    margin-top: 2.25rem;
    max-width: 440px;
}

.picking-slip-signature span:last-child {
    border-bottom: 1px solid #222;
    flex: 1;
    min-height: 28px;
}

.picking-slip-controller-note {
    border-top: 1px dashed var(--ws-border);
    color: var(--ws-muted);
    font-size: 0.82rem;
    margin-top: 1rem;
    padding-top: 0.55rem;
}

.scan-station-user-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.order-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    min-width: 250px;
}

.order-action-stack .btn {
    white-space: nowrap;
}

.status-badge {
    border: 1px solid transparent;
    display: inline-flex;
    line-height: 1;
    padding: 0.36rem 0.55rem;
}

.document-card {
    box-shadow: var(--ws-shadow-soft);
    overflow: hidden;
}

.document-toolbar {
    background: var(--ws-surface-soft);
    border-bottom: 1px solid var(--ws-border-soft);
    padding: 1rem 1.25rem;
}

.document-paper {
    background: linear-gradient(180deg, #fff 0%, #f8fdfc 100%);
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.sales-document-form {
    --document-accent: #2f6f91;
    --document-accent-soft: #eef8f7;
    --document-accent-border: #bfdad8;
}

.sales-document-form .document-paper {
    border-top: 5px solid var(--document-accent);
}

.sales-document-form.document-type-quote {
    --document-accent: #4e79a7;
    --document-accent-soft: #edf4ff;
    --document-accent-border: #c7d7ea;
}

.sales-document-form.document-type-proforma {
    --document-accent: #16866f;
    --document-accent-soft: #e9f7f3;
    --document-accent-border: #bfe4dc;
}

.sales-document-form.document-type-invoice {
    --document-accent: #2f6f91;
    --document-accent-soft: #eef8f7;
    --document-accent-border: #bfdad8;
}

.sales-document-form.document-type-credit_note {
    --document-accent: #a15c18;
    --document-accent-soft: #fff4e7;
    --document-accent-border: #edc894;
}

.sales-document-status-card > .card-body {
    padding: 1.2rem 1.35rem;
}

.sales-document-status-form,
.sales-document-invoice-workflow {
    background: #f8fbfb;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    padding: 1rem;
}

.sales-document-invoice-workflow {
    margin-top: 1rem;
}

.sales-document-status-card .form-label,
.sales-document-invoice-workflow .fw-semibold {
    color: var(--ws-text);
}

.btn-document-primary-action {
    --bs-btn-bg: #2a7489;
    --bs-btn-border-color: #2a7489;
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #215f72;
    --bs-btn-hover-border-color: #215f72;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #194f60;
    --bs-btn-active-border-color: #194f60;
    --bs-btn-active-color: #ffffff;
    background-color: var(--bs-btn-bg) !important;
    border-color: var(--bs-btn-border-color) !important;
    color: var(--bs-btn-color) !important;
    font-weight: 700;
}

.btn-document-primary-action:hover,
.btn-document-primary-action:focus {
    background-color: var(--bs-btn-hover-bg) !important;
    border-color: var(--bs-btn-hover-border-color) !important;
    color: var(--bs-btn-hover-color) !important;
}

.btn-document-copy-action {
    --bs-btn-bg: #f3f8f7;
    --bs-btn-border-color: #c8dfdc;
    --bs-btn-color: #315563;
    --bs-btn-hover-bg: #e2f0ee;
    --bs-btn-hover-border-color: #a9c9c4;
    --bs-btn-hover-color: #204653;
    --bs-btn-active-bg: #d5e8e5;
    --bs-btn-active-border-color: #96bdb7;
    --bs-btn-active-color: #204653;
    background-color: var(--bs-btn-bg) !important;
    border-color: var(--bs-btn-border-color) !important;
    color: var(--bs-btn-color) !important;
    font-weight: 600;
}

.btn-document-copy-action:hover,
.btn-document-copy-action:focus {
    background-color: var(--bs-btn-hover-bg) !important;
    border-color: var(--bs-btn-hover-border-color) !important;
    color: var(--bs-btn-hover-color) !important;
}

.document-type-banner {
    align-items: center;
    background: var(--document-accent-soft);
    border: 1px solid var(--document-accent-border);
    border-left: 5px solid var(--document-accent);
    border-radius: var(--ws-radius);
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.document-type-banner > div {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.document-type-banner strong {
    color: var(--document-accent);
    font-size: 1rem;
}

.customer-details-section {
    background: var(--document-accent-soft);
    border: 1px solid var(--document-accent-border);
    border-left: 5px solid var(--document-accent);
    border-radius: var(--ws-radius);
    margin-top: 1rem !important;
    padding: 0.85rem 1rem;
}

.customer-detail-field {
    background: #ffffff;
    border: 1px solid var(--document-accent-border);
    border-radius: var(--ws-radius);
    padding: 0.8rem;
}

.customer-detail-field .form-label {
    color: var(--ws-text);
    font-weight: 700;
}

.sales-document-form #document_type {
    border-color: var(--document-accent);
    box-shadow: 0 0 0 0.08rem color-mix(in srgb, var(--document-accent) 18%, transparent);
}

.sales-document-form .dropship-po-option {
    border-color: var(--document-accent-border);
    border-left-color: var(--document-accent);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--document-accent) 10%, transparent);
}

.document-section {
    border-top: 1px solid var(--ws-border-soft);
    padding-top: 1rem;
}

.document-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.document-lines-table {
    min-width: 980px;
}

.document-lines-scroll {
    max-height: 560px;
}

.document-lines-table thead th {
    background: #2f6f91;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.document-lines-table tbody tr:nth-child(even) > * {
    background: #f7fbfa;
}

.document-lines-table > :not(caption) > * > * {
    padding: 0.55rem 0.55rem;
}

.document-stock-to-follow {
    background: #f8fbfb;
    border: 1px solid #bfdad8;
    border-left: 5px solid #2f6f91;
    border-radius: var(--ws-radius);
    margin: 1rem 0 1.25rem;
    padding: 0.9rem 1rem;
}

.document-stock-to-follow-table thead th {
    background: #2f6f91;
    color: #ffffff;
}

.document-stock-to-follow-table > :not(caption) > * > * {
    border-color: #d5e6e3;
    padding: 0.45rem 0.55rem;
}

.document-stock-to-follow-table tbody tr:nth-child(even) > * {
    background: #f1f8f7;
}

.document-lines-table .form-control,
.document-lines-table .form-select {
    min-width: 0;
}

.document-summary {
    background: var(--ws-surface-soft);
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    margin-left: auto;
    max-width: 360px;
    padding: 1rem;
}

.document-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0;
}

.document-summary-total {
    border-top: 1px solid var(--ws-border);
    font-size: 1.2rem;
    font-weight: 750;
    margin-top: 0.35rem;
    padding-top: 0.5rem;
}

.sales-document-history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sales-document-history-tabs a {
    background: #fff;
    border: 1px solid var(--ws-border-soft);
    border-radius: 999px;
    color: var(--ws-text);
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
}

.sales-document-history-tabs a:hover,
.sales-document-history-tabs a:focus {
    background: #eef8f7;
    color: var(--ws-primary-dark);
}

.sales-document-history-tabs a.active {
    background: #2f6f91;
    border-color: #2f6f91;
    color: #fff;
}

.sales-document-history-scroll {
    max-height: 620px;
}

.sales-document-history-table thead th {
    background: #2f6f91;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.sales-document-history-row {
    --document-accent: #2f6f91;
    --document-accent-soft: #eef8f7;
}

.sales-document-history-row.document-type-quote {
    --document-accent: #4e79a7;
    --document-accent-soft: #edf4ff;
}

.sales-document-history-row.document-type-proforma {
    --document-accent: #16866f;
    --document-accent-soft: #e9f7f3;
}

.sales-document-history-row.document-type-invoice {
    --document-accent: #2f6f91;
    --document-accent-soft: #eef8f7;
}

.sales-document-history-row.document-type-credit_note {
    --document-accent: #a15c18;
    --document-accent-soft: #fff4e7;
}

.sales-document-history-row > td:first-child {
    border-left: 5px solid var(--document-accent);
}

.document-type-pill {
    background: var(--document-accent-soft);
    border: 1px solid color-mix(in srgb, var(--document-accent) 35%, #ffffff);
    border-radius: 999px;
    color: var(--document-accent);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 0.35rem;
    padding: 0.28rem 0.5rem;
}

.document-notes-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-notes-grid > * {
    width: auto;
}

.document-display {
    margin-inline: auto;
    max-width: 1120px;
}

.document-display-header {
    align-items: flex-start;
    border-bottom: 2px solid var(--ws-primary);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.document-brand-block {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
}

.document-logo {
    background: #fff;
    border: 1px solid var(--ws-border-soft);
    border-radius: 6px;
    padding: 0.35rem;
}

.document-title-block {
    color: var(--ws-text);
    justify-self: stretch;
    text-align: left;
}

.document-title-block h2 {
    margin-bottom: 0.65rem;
}

.document-title-block h2 span {
    color: var(--ws-muted);
    font-size: 0.9em;
    font-weight: 650;
}

.document-title-row {
    align-items: baseline;
    border-bottom: 1px solid var(--ws-border-soft);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.18rem 0;
}

.document-title-row span {
    color: var(--ws-muted);
    font-size: 0.82rem;
}

.document-info-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.document-info-block {
    background: var(--ws-surface-soft);
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    padding: 1rem;
}

.document-customer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-customer-block {
    background: transparent;
    border: 0;
    padding: 0;
}

.document-customer-grid > div {
    background: var(--ws-surface-soft);
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    padding: 1rem;
}

.document-display .document-lines-table {
    min-width: 0;
}

.document-payment-footer {
    border-top: 1px solid var(--ws-border-soft);
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.document-payment-footer section {
    background: var(--ws-surface-soft);
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    padding: 0.85rem;
}

.platform-hero {
    background: linear-gradient(135deg, #f4fafb 0%, #eef8f4 48%, #ffffff 100%);
    border: 1px solid #d9e7ea;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.platform-hero-slide {
    align-items: center;
    background-position: center;
    background-size: cover;
    display: flex;
    min-height: clamp(430px, 56vw, 620px);
    padding: clamp(2rem, 5vw, 4.5rem);
    position: relative;
}

.platform-hero-slide::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .8) 52%, rgba(255, 255, 255, .25));
    content: "";
    inset: 0;
    position: absolute;
}

.platform-hero-copy {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.platform-hero-copy h1 {
    color: #173f48;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 750;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.platform-hero-copy p {
    color: #3f5960;
    font-size: 1.15rem;
    max-width: 660px;
}

.platform-hero-carousel .carousel-control-prev,
.platform-hero-carousel .carousel-control-next {
    opacity: .82;
    width: 4rem;
}

.platform-hero-carousel .carousel-control-prev-icon,
.platform-hero-carousel .carousel-control-next-icon {
    background-color: #2f6b78;
    border-radius: 999px;
    background-size: 55%;
    height: 2.4rem;
    width: 2.4rem;
}

.platform-hero-carousel .carousel-indicators {
    margin-bottom: 1rem;
}

.platform-hero-carousel .carousel-indicators [data-bs-target] {
    background-color: #2f6b78;
    height: .55rem;
    width: 2.1rem;
}

.platform-kicker {
    color: #2f6b78;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.platform-hero-panel {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #d9e7ea;
    border-radius: 8px;
    box-shadow: 0 1rem 2.5rem rgba(23, 63, 72, 0.08);
    padding: 1rem;
}

.platform-panel-row {
    align-items: center;
    border-bottom: 1px solid #d9e7ea;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.95rem 0.25rem;
}

.platform-panel-row:last-child {
    border-bottom: 0;
}

.platform-panel-row span {
    color: #547079;
    font-size: 0.85rem;
}

.platform-panel-row strong {
    color: #173f48;
    text-align: right;
}

.platform-action-strip {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.platform-action-strip a {
    background: linear-gradient(135deg, #f5f7f8, #d4dde2);
    border: 1px solid #95a7b0;
    border-radius: 8px;
    color: #173f48;
    display: grid;
    gap: .2rem;
    padding: 1rem 1.1rem;
    text-decoration: none;
}

.platform-action-strip a:nth-child(2) {
    background: linear-gradient(135deg, #dcefed, #9fcfcc);
    border-color: #5ca4a1;
}

.platform-action-strip a:nth-child(3) {
    background: linear-gradient(135deg, #c7e7d2, #e0f0c9);
    border-color: #8fc5a2;
}

.platform-action-strip a:hover,
.platform-action-strip a:focus {
    background: #f4fafb;
    border-color: #b8d4da;
    color: #0f596a;
}

.platform-action-strip span {
    color: #5c7680;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.platform-action-strip strong {
    font-size: 1rem;
}

.platform-band {
    background: #fff;
    border: 1px solid #d9e7ea;
    border-radius: 8px;
    padding: 1.5rem;
}

.platform-band-growth {
    background: linear-gradient(135deg, #bfe3e8, #d8efe5);
    border-color: #78b9c2;
}

.platform-band-tiers {
    background: linear-gradient(135deg, #c3daee, #dceafd);
    border-color: #7faccc;
}

.platform-band-questions {
    background: linear-gradient(135deg, #c7e7d2, #e0f0c9);
    border-color: #8fc5a2;
}

.platform-band-testimonials {
    background: linear-gradient(135deg, #e3eef7, #d2ece8);
    border-color: #86b7c2;
}

.platform-section-heading {
    margin-bottom: 1rem;
}

.platform-section-heading-row {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.platform-info-card,
.platform-plan-card {
    background: rgba(255, 255, 255, .95);
    border: 1px solid #d9e7ea;
    border-radius: 8px;
    height: 100%;
    padding: 1rem;
}

.platform-info-card {
    display: flex;
    flex-direction: column;
}

.platform-band-growth .platform-info-card {
    border-color: #6daeb8;
    box-shadow: 0 .75rem 1.6rem rgba(31, 107, 120, .12);
}

.platform-feature-image-card {
    background-position: center;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

.platform-feature-image-card.has-background-image {
    border-color: transparent;
    color: #fff;
    min-height: 270px;
}

.platform-feature-image-card.has-background-image::before {
    background: linear-gradient(135deg, rgba(12, 47, 55, .84), rgba(12, 47, 55, .48));
    content: "";
    inset: 0;
    position: absolute;
    z-index: 0;
}

.platform-feature-image-card.has-background-image > * {
    position: relative;
    z-index: 1;
}

.platform-feature-image-card.has-background-image h3,
.platform-feature-image-card.has-background-image p,
.platform-feature-image-card.has-background-image .text-muted {
    color: rgba(255, 255, 255, .92) !important;
}

.platform-feature-image-card.has-background-image > span {
    color: #fff !important;
}

.platform-feature-image-card.has-background-image .btn-outline-primary {
    background: #fff;
    border-color: #fff;
    color: #0f596a;
}

.platform-feature-image-card.has-background-image .btn-outline-primary:hover,
.platform-feature-image-card.has-background-image .btn-outline-primary:focus {
    background: #0f596a;
    border-color: #0f596a;
    color: #fff;
}

.platform-band-tiers .platform-plan-card {
    border-color: transparent;
    box-shadow: 0 .75rem 1.6rem rgba(31, 89, 120, .18);
}

.platform-band-questions .platform-info-card {
    border-color: #7bb38f;
    box-shadow: 0 .75rem 1.6rem rgba(47, 107, 93, .12);
}

.platform-info-card > span {
    color: #2f6b78;
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: .45rem;
    text-transform: uppercase;
}

.platform-info-card p {
    line-height: 1.55;
    margin-bottom: 1.25rem !important;
}

.platform-info-card .btn {
    align-self: stretch;
    margin-top: auto !important;
    min-height: 2.35rem;
}

.platform-band-growth .platform-info-card h3 {
    color: #173f48;
}

.platform-growth-card-0 .platform-info-card > span {
    color: #b73535;
}

.platform-growth-card-1 .platform-info-card > span {
    color: #245f9d;
}

.platform-growth-card-2 .platform-info-card > span {
    color: #2f7a3d;
}

.platform-growth-card-3 .platform-info-card > span {
    color: #f28c18;
}

.platform-tier-card-0 h3 {
    color: #fff;
}

.platform-tier-card-1 h3 {
    color: #fff;
}

.platform-tier-card-2 h3 {
    color: #fff;
}

.platform-tier-card-3 h3 {
    color: #fff;
}

.platform-tier-card-0 {
    background: linear-gradient(135deg, #7f2e2e, #4c1f24);
    color: #fff;
}

.platform-tier-card-0:hover,
.platform-tier-card-0:focus-within {
    background: linear-gradient(135deg, #a34545, #6a2b32);
}

.platform-tier-card-1 {
    background: linear-gradient(135deg, #245f9d, #173f63);
    color: #fff;
}

.platform-tier-card-1:hover,
.platform-tier-card-1:focus-within {
    background: linear-gradient(135deg, #3579bd, #24577f);
}

.platform-tier-card-2 {
    background: linear-gradient(135deg, #2f7a3d, #1f4f31);
    color: #fff;
}

.platform-tier-card-2:hover,
.platform-tier-card-2:focus-within {
    background: linear-gradient(135deg, #449856, #2f6842);
}

.platform-tier-card-3 {
    background: linear-gradient(135deg, #b76316, #6f3a10);
    color: #fff;
}

.platform-tier-card-3:hover,
.platform-tier-card-3:focus-within {
    background: linear-gradient(135deg, #d97d2b, #95531d);
}

.platform-tier-card-0 .platform-plan-price,
.platform-tier-card-1 .platform-plan-price,
.platform-tier-card-2 .platform-plan-price,
.platform-tier-card-3 .platform-plan-price {
    color: rgba(255, 255, 255, .9);
}

.platform-tier-card-0 .text-muted,
.platform-tier-card-1 .text-muted,
.platform-tier-card-2 .text-muted,
.platform-tier-card-3 .text-muted {
    color: rgba(255, 255, 255, .78) !important;
}

.platform-tier-card-0 .btn,
.platform-tier-card-1 .btn,
.platform-tier-card-2 .btn,
.platform-tier-card-3 .btn {
    background: #fff;
    border-color: #fff;
    color: #173f48;
}

.platform-tier-card-0 .btn:hover,
.platform-tier-card-1 .btn:hover,
.platform-tier-card-2 .btn:hover,
.platform-tier-card-3 .btn:hover,
.platform-tier-card-0 .btn:focus,
.platform-tier-card-1 .btn:focus,
.platform-tier-card-2 .btn:focus,
.platform-tier-card-3 .btn:focus {
    background: #f4fafb;
    border-color: #f4fafb;
    color: #0f596a;
}

.platform-pricing-card {
    border-color: transparent;
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.platform-pricing-card:hover,
.platform-pricing-card:focus-within {
    box-shadow: 0 1rem 2rem rgba(23, 63, 72, .2) !important;
    transform: translateY(-4px) scale(1.015);
}

.platform-pricing-card .card-body {
    color: #fff;
}

.platform-pricing-card .text-muted {
    color: rgba(255, 255, 255, .78) !important;
}

.platform-pricing-card .text-success {
    color: #d9f8df !important;
}

.platform-pricing-card .badge {
    background: rgba(255, 255, 255, .18) !important;
    border: 1px solid rgba(255, 255, 255, .38);
    color: #fff !important;
}

.platform-pricing-footer-cta {
    align-items: center;
    background: linear-gradient(135deg, #f4fafb, #e7f6ef);
    border: 1px solid #b8d4da;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.25rem;
}

.platform-feature-modal {
    border: 1px solid #d9e7ea;
    border-radius: .75rem;
    overflow: hidden;
}

.platform-feature-modal .modal-header {
    background: #f4fafb;
    border-bottom-color: #d9e7ea;
}

.platform-feature-modal .modal-body {
    color: #3f5960;
    line-height: 1.65;
}

.platform-question-strip {
    display: grid;
    gap: 1rem;
    grid-auto-columns: minmax(340px, 42%);
    grid-auto-flow: column;
    overflow-x: auto;
    padding: .25rem .25rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-color: #7bb38f #e0f0c9;
    scrollbar-width: thin;
}

.platform-question-strip::-webkit-scrollbar {
    height: .7rem;
}

.platform-question-strip::-webkit-scrollbar-track {
    background: #e0f0c9;
    border-radius: 999px;
}

.platform-question-strip::-webkit-scrollbar-thumb {
    background: #7bb38f;
    border-radius: 999px;
}

.platform-question-controls {
    display: flex;
    gap: .45rem;
}

.platform-question-controls .platform-question-all {
    min-width: 5.75rem;
    padding-inline: .9rem;
    width: auto;
}

.platform-question-controls .btn {
    align-items: center;
    border: 1px solid #7bb38f;
    color: #173f48;
    display: inline-flex;
    font-weight: 700;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.platform-question-controls .platform-question-all {
    width: auto;
}

.platform-faq-page {
    display: grid;
    gap: 1rem;
}

.platform-faq-hero {
    align-items: end;
    background: linear-gradient(135deg, #f4fafb, #e7f6ef);
    background-position: center;
    background-size: cover;
    border: 1px solid #b8d4da;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    min-height: 260px;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
}

.platform-faq-hero.has-background-image::before {
    background: linear-gradient(135deg, rgba(12, 47, 55, .84), rgba(12, 47, 55, .42));
    content: "";
    inset: 0;
    position: absolute;
    z-index: 0;
}

.platform-faq-hero > * {
    position: relative;
    z-index: 1;
}

.platform-faq-hero-copy {
    max-width: 680px;
}

.platform-faq-hero.has-background-image,
.platform-faq-hero.has-background-image .platform-kicker,
.platform-faq-hero.has-background-image p {
    color: #fff;
}

.platform-faq-hero.has-background-image .btn-outline-primary {
    background: #fff;
    border-color: #fff;
    color: #0f596a;
}

.platform-faq-hero.has-background-image .btn-outline-primary:hover,
.platform-faq-hero.has-background-image .btn-outline-primary:focus {
    background: #0f596a;
    border-color: #0f596a;
    color: #fff;
}

.platform-faq-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-question-card {
    min-height: 180px;
    scroll-snap-align: start;
}

.platform-testimonial-card {
    border-color: #9fc8d0;
    box-shadow: 0 .75rem 1.6rem rgba(31, 89, 120, .12);
    display: flex;
    flex-direction: column;
    flex: 0 0 min(380px, 82vw);
    height: 340px;
}

.platform-testimonial-marquee {
    cursor: pointer;
    overflow: hidden;
    padding: .25rem;
}

.platform-testimonial-track {
    animation: platform-testimonial-scroll 45s linear infinite;
    display: flex;
    gap: 1rem;
    width: max-content;
}

.platform-testimonial-marquee.is-paused .platform-testimonial-track {
    animation-play-state: paused;
}

.platform-testimonial-quote {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    color: #173f48;
    display: -webkit-box;
    font-size: 1rem;
    font-style: italic;
    height: 6.6em;
    line-height: 1.65;
    margin-bottom: 1rem;
    overflow: hidden;
}

.platform-testimonial-media {
    align-items: center;
    background: linear-gradient(135deg, #edf7f6, #f7fbfb);
    border: 1px dashed #9fc8d0;
    border-radius: 8px;
    color: #55717a;
    display: flex;
    font-size: .9rem;
    justify-content: center;
    margin-bottom: 1rem;
    height: 118px;
    overflow: hidden;
    padding: .75rem;
    text-align: center;
}

.platform-testimonial-media img {
    height: 118px;
    object-fit: cover;
    width: 100%;
}

.platform-testimonial-upload-preview {
    background: #f3faf9;
    border: 1px solid #d6e8e7;
    border-radius: 8px;
    max-width: 180px;
    overflow: hidden;
}

.platform-testimonial-upload-preview img {
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    width: 100%;
}

.platform-testimonial-person {
    border-top: 1px solid #d9e7ea;
    display: grid;
    gap: .15rem;
    margin-top: auto;
    padding-top: .9rem;
}

.platform-testimonial-person strong {
    color: #173f48;
}

.platform-testimonial-person span {
    color: #5c7680;
    font-size: .9rem;
}

@keyframes platform-testimonial-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - .5rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .platform-testimonial-track {
        animation: none;
    }
}

.platform-plan-card {
    display: flex;
    flex-direction: column;
}

.platform-band-growth .platform-info-card,
.platform-band-tiers .platform-plan-card {
    transform: translateY(0) scale(1);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.platform-band-growth .platform-info-card:hover,
.platform-band-growth .platform-info-card:focus-within,
.platform-band-tiers .platform-plan-card:hover,
.platform-band-tiers .platform-plan-card:focus-within {
    border-color: #2f6b78;
    box-shadow: 0 1rem 2rem rgba(23, 63, 72, .18);
    transform: translateY(-4px) scale(1.015);
}

.platform-plan-price {
    color: #2f6b78;
    font-weight: 700;
    margin-bottom: .6rem;
}

.platform-landing-editor {
    display: grid;
    gap: 1rem;
}

.platform-editor-section {
    background: #fff;
    border: 1px solid #d9e7ea;
    border-radius: .75rem;
    overflow: hidden;
}

.platform-editor-section > summary {
    align-items: center;
    background: #2f6b78;
    color: #fff;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    padding: 1rem 1.15rem;
}

.platform-editor-section > summary::-webkit-details-marker {
    display: none;
}

.platform-editor-section > summary .small {
    color: rgba(255, 255, 255, .78);
}

.platform-editor-body {
    padding: 1rem;
}

.platform-editor-card {
    background: #f9fcfd;
    border: 1px solid #d9e7ea;
    border-radius: .65rem;
    height: 100%;
    padding: 1rem;
}

.platform-hero-upload-preview {
    background: #eef6f8;
    border: 1px solid #c9dfe3;
    border-radius: .55rem;
    height: 120px;
    overflow: hidden;
}

.platform-hero-upload-preview img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.platform-faq-banner-preview {
    height: 160px;
}

.sticky-action-bar {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e7ea;
    border-radius: .75rem;
    bottom: 1rem;
    box-shadow: 0 1rem 2rem rgba(15, 55, 62, .08);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .85rem 1rem;
    position: sticky;
    z-index: 5;
}

.admin-users-card {
    border-color: #d9e7ea;
    overflow: visible;
}

.admin-users-table-wrap {
    max-height: 70vh;
    overflow: auto;
}

.admin-users-table thead th {
    background: #2f6b78;
    border-color: #275966;
    color: #fff;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 3;
}

.admin-users-table tbody tr:nth-child(odd) > * {
    background: #f7fbfc;
}

.admin-users-table tbody tr:nth-child(even) > * {
    background: #eef7f8;
}

.admin-users-table tbody tr:hover > * {
    background: #dff0f3;
}

.website-appearance-editor {
    display: grid;
    gap: 1rem;
}

.website-appearance-section {
    background: #fff;
    border: 1px solid #d9e7ea;
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.25rem rgba(15, 55, 62, .05);
    overflow: hidden;
}

.website-appearance-section > summary {
    align-items: center;
    background: #fff;
    color: #2f6b78;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    list-style: none;
    padding: 1rem 1.15rem;
}

.website-appearance-section[open] > summary {
    background: #2f6b78;
    color: #fff;
}

.website-appearance-section > summary::-webkit-details-marker {
    display: none;
}

.website-appearance-section > summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.website-appearance-section[open] > summary::after {
    content: "-";
}

.website-appearance-section > summary .badge {
    justify-self: end;
    min-width: 5.25rem;
}

.website-appearance-section > summary .small {
    color: #5c7680;
}

.website-appearance-section[open] > summary .small {
    color: rgba(255, 255, 255, .78);
}

.website-appearance-body {
    padding: 1rem;
}

.website-appearance-footer {
    border-top: 1px solid #d9e7ea;
    padding-top: 1rem;
}

.cookie-notice {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(20, 29, 43, 0.18);
    border-radius: 8px;
    bottom: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    left: 50%;
    max-width: min(960px, calc(100vw - 2rem));
    padding: 1rem;
    position: fixed;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1050;
}

.back-to-top {
    align-items: center;
    background: #0f4654;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    bottom: 1.25rem;
    box-shadow: 0 0.75rem 1.75rem rgba(15, 70, 84, 0.2);
    color: #fff;
    display: flex;
    font-size: 1.35rem;
    font-weight: 750;
    height: 2.75rem;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 1.25rem;
    transform: translateY(0.5rem);
    transition: opacity 0.18s ease, transform 0.18s ease;
    width: 2.75rem;
    z-index: 1040;
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--ws-primary);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.stat-card {
    min-height: 112px;
}

.table > :not(caption) > * > * {
    padding: 0.9rem 1rem;
}

.product-thumb {
    align-items: center;
    background: #eef1f6;
    border-radius: 6px;
    display: flex;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    width: 48px;
}

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

.product-list-card {
    overflow: visible;
}

.product-table-scroll {
    max-height: none;
}

.product-management-table {
    min-width: 1080px;
}

.product-management-table thead th {
    background: #1f7f9a;
    border-bottom-color: #176a82;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.product-management-table tbody tr:nth-child(even) > * {
    background: #f7fbfa;
}

.product-management-table td {
    vertical-align: middle;
}

.stock-pill {
    background: #e7f6f3;
    border: 1px solid #b7dcd7;
    border-radius: 999px;
    color: #15575f;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.32rem 0.55rem;
}

.stock-pill-low {
    background: #fff4e5;
    border-color: #f0bf72;
    color: #8a4f08;
}

.product-actions {
    white-space: nowrap;
}

.product-form-card {
    padding: 1.15rem;
}

.product-form-section-heading {
    align-items: center;
    background: #f6fbfa;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 0.35rem;
    padding: 0.8rem 0.9rem;
}

.product-form-section-heading h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.product-form-section-heading span {
    color: var(--ws-muted);
    font-size: 0.84rem;
}

.product-form-folds {
    display: grid;
    gap: 0.85rem;
}

.product-form-fold-section {
    background: #fff;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    overflow: hidden;
}

.product-form-fold-section > summary {
    align-items: center;
    background: #f6fbfa;
    color: #2a7489;
    cursor: pointer;
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    list-style: none;
    padding: 0.95rem 1.05rem;
}

.product-form-fold-section > summary::-webkit-details-marker {
    display: none;
}

.product-form-fold-section > summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.product-form-fold-section[open] > summary {
    background: #2a7489;
    color: #fff;
}

.product-form-fold-section[open] > summary::after {
    content: "-";
}

.product-form-fold-section > summary .small {
    color: var(--ws-muted);
}

.product-form-fold-section[open] > summary .small {
    color: rgba(255, 255, 255, 0.78);
}

.product-form-fold-section > summary .btn {
    justify-self: end;
}

.product-form-fold-body {
    padding: 1.05rem;
}

.product-form-new-row,
.product-form-new-row > td {
    background: #fff6d9;
    transition: background-color 1.2s ease;
}

.product-bundle-heading {
    background: #e8f3f5;
    border: 1px solid #c6dfe4;
    border-radius: 8px;
    color: #255d6a;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.55rem 0.65rem;
}

.product-current-bundle-row {
    background: #f6fbfa;
    border: 1px solid var(--ws-border-soft);
    border-radius: 8px;
    padding: 0.7rem;
}

.product-form-static-field {
    align-items: center;
    background: #eef7f6;
    color: #244c55;
    display: flex;
    min-height: 38px;
}

.product-option-check {
    background: #f8fcfb;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    min-height: 3.25rem;
    padding: 0.75rem 0.85rem 0.75rem 2.35rem;
    width: 100%;
}

.product-option-check .form-check-input {
    margin-left: -1.5rem;
}

.product-option-check-highlight {
    background: #e4f5f1;
    border-color: #a8d4ce;
}

.product-form-table-wrap {
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
}

.product-form-table {
    min-width: 1180px;
}

.product-form-table thead th {
    background: #2a7489;
    color: #fff;
}

.product-form-note {
    background: #f6fbfa;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    color: var(--ws-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    padding: 0.8rem 0.9rem;
}

.product-form-note strong {
    color: var(--ws-text);
}

.product-form-actions {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    bottom: 0.75rem;
    box-shadow: 0 8px 20px rgba(16, 42, 54, 0.08);
    padding: 0.85rem 1rem;
    position: sticky;
    z-index: 20;
}

.product-detail-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-detail-stat {
    background: #fff;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    padding: 0.8rem 0.9rem;
}

.product-detail-stat span {
    color: var(--ws-muted);
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-detail-stat strong {
    color: var(--ws-text);
    display: block;
    font-size: 0.98rem;
    line-height: 1.25;
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
}

.product-detail-card .card-header {
    background: #eef8f7 !important;
}

.product-detail-fields > div {
    background: #f9fcfb;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    padding: 0.75rem 0.85rem;
}

.product-detail-fields span {
    color: var(--ws-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-detail-table thead th {
    background: #2a7489;
    color: #fff;
}

.product-movement-table {
    min-width: 980px;
}

.product-movement-table tbody tr:nth-child(even) > * {
    background: #f7fbfa;
}

.category-form-card .card-body {
    padding: 1rem;
}

.category-form-section {
    color: var(--ws-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0.25rem 0 0.75rem;
    text-transform: uppercase;
}

.category-media-box {
    background: #f6fbfa;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    padding: 0.9rem;
}

.category-list-card {
    overflow: visible;
}

.category-table {
    min-width: 920px;
}

.category-table thead th {
    background: #2a7489;
    color: #fff;
}

.category-table tbody tr:nth-child(even) > * {
    background: #f7fbfa;
}

.supplier-price-card {
    overflow: visible;
}

.supplier-price-table {
    min-width: 960px;
}

.supplier-price-table thead th {
    background: #2a7489;
    color: #fff;
}

.supplier-price-table tbody tr:nth-child(even) > * {
    background: #f7fbfa;
}

.inventory-control-card,
.inventory-table-card {
    overflow: visible;
}

.inventory-control-card .card-header,
.inventory-table-card .card-header {
    background: #eef8f7;
    border-bottom-color: var(--ws-border-soft);
    color: var(--ws-text);
    font-weight: 650;
}

.inventory-control-card .card-body {
    padding: 1rem;
}

.inventory-section-nav {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.inventory-section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.inventory-section-links a {
    align-items: center;
    background: #eef8f7;
    border: 1px solid var(--ws-border-soft);
    border-radius: 999px;
    color: #0f5664;
    display: inline-flex;
    font-size: 0.86rem;
    gap: 0.45rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    text-decoration: none;
}

.inventory-section-links a span {
    background: #ffffff;
    border: 1px solid rgba(15, 86, 100, 0.18);
    border-radius: 999px;
    color: #0f5664;
    font-size: 0.76rem;
    line-height: 1;
    min-width: 1.55rem;
    padding: 0.22rem 0.4rem;
    text-align: center;
}

.inventory-section-links a.inventory-section-link-alert {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inventory-link-border, #0f5664) 36%, white);
}

.inventory-section-links a.inventory-section-link-alert span {
    background: color-mix(in srgb, var(--inventory-link-bg, #eef8f7) 64%, white);
    border-color: var(--inventory-link-border, #0f5664);
    color: var(--inventory-link-border, #0f5664);
}

.inventory-section-links a:hover,
.inventory-section-links a:focus {
    background: #dff2ef;
    color: #073f4b;
}

.inventory-section-links .inventory-link-manual {
    --inventory-link-bg: #e2f5ef;
    --inventory-link-border: #16866f;
}

.inventory-section-links .inventory-link-markup {
    --inventory-link-bg: #e4f3f8;
    --inventory-link-border: #2a7489;
}

.inventory-section-links .inventory-link-count {
    --inventory-link-bg: #eef5df;
    --inventory-link-border: #6c8d3f;
}

.inventory-section-links .inventory-link-preview {
    --inventory-link-bg: #fff4d6;
    --inventory-link-border: #c58a1f;
}

.inventory-section-links .inventory-link-serial {
    --inventory-link-bg: #e5effd;
    --inventory-link-border: #4e79a7;
}

.inventory-section-links .inventory-link-bulk {
    --inventory-link-bg: #e2f5f5;
    --inventory-link-border: #0f8b8d;
}

.inventory-section-links .inventory-link-reorder {
    --inventory-link-bg: #f4efd9;
    --inventory-link-border: #9a7b2f;
}

.inventory-section-links .inventory-link-movement {
    --inventory-link-bg: #e9eef2;
    --inventory-link-border: #64798a;
}

.inventory-section-links a[class*="inventory-link-"] {
    background: var(--inventory-link-bg);
    border-color: color-mix(in srgb, var(--inventory-link-border) 48%, white);
    color: #163844;
}

.inventory-section-links a[class*="inventory-link-"] span {
    border-color: color-mix(in srgb, var(--inventory-link-border) 42%, white);
    color: var(--inventory-link-border);
}

.inventory-section-links a[class*="inventory-link-"]:hover,
.inventory-section-links a[class*="inventory-link-"]:focus {
    background: color-mix(in srgb, var(--inventory-link-bg) 72%, var(--inventory-link-border));
    color: #ffffff;
}

.inventory-section-links a[class*="inventory-link-"]:hover span,
.inventory-section-links a[class*="inventory-link-"]:focus span {
    background: #ffffff;
}

.inventory-fold-header {
    border: 0;
    text-align: left;
    width: 100%;
}

.inventory-fold-header::after {
    content: "Hide";
    float: right;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.72;
}

.inventory-section-collapsed > :not(.inventory-fold-header) {
    display: none !important;
}

.inventory-section-collapsed > .inventory-fold-header::after {
    content: "Show";
}

.inventory-fold-section {
    --inventory-section-bg: #eef8f7;
    --inventory-section-border: #2a7489;
    --inventory-section-text: #102a36;
    scroll-margin-top: 7rem;
}

.inventory-fold-section .inventory-fold-header {
    background: #eef8f7 !important;
    border-left: 0;
    color: #102a36 !important;
    box-shadow: none;
}

.inventory-fold-section .inventory-fold-header + .table-responsive {
    border-top: 4px solid #ffffff;
}

.inventory-fold-section > :not(.inventory-fold-header) {
    background: #ffffff;
}

.inventory-fold-section {
    border-top: 0;
}

.inventory-fold-section .inventory-table thead th {
    background: #2a7489 !important;
    border-color: rgba(255, 255, 255, 0.36);
    color: #ffffff;
}

.inventory-section-manual {
    --inventory-section-bg: #e9f7f3;
    --inventory-section-border: #16866f;
}

.inventory-section-markup {
    --inventory-section-bg: #edf6fb;
    --inventory-section-border: #2a7489;
}

.inventory-section-count {
    --inventory-section-bg: #eef7ea;
    --inventory-section-border: #6c8d3f;
}

.inventory-section-preview {
    --inventory-section-bg: #fff8e8;
    --inventory-section-border: #c58a1f;
}

.inventory-section-serial {
    --inventory-section-bg: #edf4ff;
    --inventory-section-border: #4e79a7;
}

.inventory-section-bulk {
    --inventory-section-bg: #f0f8f8;
    --inventory-section-border: #0f8b8d;
}

.inventory-section-reorder {
    --inventory-section-bg: #f7f4ea;
    --inventory-section-border: #9a7b2f;
}

.inventory-section-movement {
    --inventory-section-bg: #f2f5f7;
    --inventory-section-border: #64798a;
}

.order-section-nav {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.order-section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.order-section-links a {
    background: #eef8f7;
    border: 1px solid var(--ws-border-soft);
    border-radius: 999px;
    color: #0f5664;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    text-decoration: none;
}

.order-section-links a:hover,
.order-section-links a:focus {
    background: #dff2ef;
    color: #073f4b;
}

.order-fold-header {
    background: var(--order-section-bg, #eef8f7) !important;
    border: 0;
    border-left: 5px solid var(--order-section-border, #2a7489);
    color: var(--order-section-text, #102a36);
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.order-fold-header::after {
    content: "Hide";
    float: right;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.72;
}

.order-section-collapsed > :not(.order-fold-header) {
    display: none !important;
}

.order-section-collapsed > .order-fold-header::after {
    content: "Show";
}

.order-fold-section.order-section-pending {
    --order-section-bg: #d8f8dc;
    --order-section-border: #16a34a;
    --order-section-text: #073f1f;
}

.order-fold-section.order-section-complete {
    --order-section-bg: #edf7f8;
    --order-section-border: #2a7489;
    --order-section-text: #102a36;
}

.supplier-section-nav {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.supplier-section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.supplier-section-links a {
    background: #eef8f7;
    border: 1px solid var(--ws-border-soft);
    border-radius: 999px;
    color: #0f5664;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    text-decoration: none;
}

.supplier-section-links a:hover,
.supplier-section-links a:focus {
    background: #dff2ef;
    color: #073f4b;
}

.supplier-dashboard-hero {
    align-items: center;
    background: linear-gradient(135deg, #155f72, #1f8a78);
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.25rem 1.35rem;
}

.supplier-dashboard-hero .small {
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0;
}

.supplier-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.supplier-dashboard-actions .btn-light {
    color: #155f72;
    font-weight: 700;
}

.supplier-dashboard-summary {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.supplier-dashboard-metric {
    background: #f2f9f8;
    border: 1px solid #cce2df;
    border-left: 5px solid #2a7489;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.supplier-dashboard-metric span {
    color: #5a7075;
    display: block;
    font-size: 0.82rem;
}

.supplier-dashboard-metric strong {
    color: #123f4a;
    display: block;
    font-size: 1.28rem;
    line-height: 1.2;
    margin-top: 0.15rem;
}

.supplier-dashboard-metric-ready {
    border-left-color: #1f8a78;
}

.supplier-dashboard-metric-paid {
    border-left-color: #3a8b4a;
}

.supplier-dashboard-metric-due {
    border-left-color: #c47c2b;
}

.supplier-dashboard-alert {
    align-items: center;
    background: #fff7e6;
    border: 1px solid #e6c982;
    border-left: 5px solid #d89a2b;
    border-radius: 8px;
    color: #61420c;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.supplier-dashboard-alert span {
    display: block;
    margin-top: 0.2rem;
}

.supplier-dashboard-card {
    border-color: rgba(42, 116, 137, 0.18);
    overflow: visible;
}

.supplier-dashboard-card > .card-header {
    background: #f4faf9;
    border-bottom-color: #c8dfdc;
    padding: 1rem 1.15rem;
}

.supplier-dashboard-table.table thead th {
    --bs-table-bg: #155f72;
    --bs-table-color: #ffffff;
    --bs-table-border-color: rgba(255, 255, 255, 0.5);
    background: #155f72 !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: inset 0 0 0 9999px #155f72;
    color: #ffffff !important;
    font-weight: 650;
    position: sticky;
    top: 0;
    z-index: 5;
}

.supplier-dashboard-table tbody tr:nth-child(odd) > * {
    background: #fbfdfd;
}

.supplier-dashboard-table tbody tr:nth-child(even) > * {
    background: #f1f8f7;
}

.supplier-dashboard-table tbody tr:hover > * {
    background: #e5f4f2;
}

.supplier-dashboard-table > :not(caption) > * > * {
    border: 1px solid #cfdeda;
    padding: 0.72rem 0.85rem;
}

.supplier-dashboard-table-wrap.table-responsive {
    overflow: visible;
}

.supplier-dashboard-order-link {
    color: #123f4a;
    font-weight: 750;
    text-decoration: none;
}

.supplier-dashboard-order-link:hover,
.supplier-dashboard-order-link:focus {
    color: #1f7f9a;
    text-decoration: underline;
}

.supplier-orders-filter {
    background: #f4faf9;
    border-color: #c8dfdc;
}

.supplier-orders-filter .form-label {
    color: #244653;
    font-weight: 650;
}

.supplier-orders-table {
    min-width: 1040px;
}

.supplier-orders-status-form .form-select {
    min-width: 178px;
}

.supplier-orders-status-form.is-saving .form-select {
    opacity: 0.72;
}

.supplier-inline-save-status {
    display: block;
    font-size: 0.76rem;
    min-height: 1rem;
    margin-top: 0.2rem;
}

.supplier-inline-save-status.is-success {
    color: #198754;
    font-weight: 650;
}

.supplier-inline-save-status.is-danger {
    color: #b02a37;
    font-weight: 650;
}

.supplier-orders-table td,
.supplier-orders-table th {
    white-space: nowrap;
}

.supplier-orders-table td:nth-child(3),
.supplier-orders-table td:nth-child(4),
.supplier-orders-table td:nth-child(5) {
    white-space: normal;
    min-width: 150px;
}

.supplier-orders-table .supplier-orders-meta-col {
    max-width: 155px;
    min-width: 130px;
    width: 145px;
    white-space: normal;
}

.supplier-products-table {
    min-width: 980px;
}

.supplier-products-history-table {
    min-width: 900px;
}

.supplier-products-table td,
.supplier-products-table th {
    white-space: nowrap;
}

.supplier-products-table td:nth-child(2),
.supplier-products-table td:last-child {
    white-space: normal;
}

.supplier-products-table .form-control {
    min-width: 130px;
}

.supplier-products-table td:last-child .form-control {
    min-width: 210px;
}

.supplier-products-action-bar {
    background: #f8fcfb;
    display: flex;
    justify-content: flex-end;
}

.supplier-products-fold-section {
    background: #ffffff;
    border: 1px solid rgba(42, 116, 137, 0.18);
    border-radius: 8px;
    overflow: visible;
}

.supplier-products-fold-section > summary {
    align-items: center;
    background: #155f72;
    border-radius: 8px 8px 0 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    padding: 1rem 1.15rem;
}

.supplier-products-fold-section > summary::-webkit-details-marker {
    display: none;
}

.supplier-products-fold-section > summary::after {
    content: "Open";
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 650;
    padding: 0.18rem 0.6rem;
}

.supplier-products-fold-section[open] > summary::after {
    content: "Close";
}

.supplier-products-fold-section:not([open]) > summary {
    border-radius: 8px;
}

.supplier-products-fold-section > summary .small {
    color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 767.98px) {
    .supplier-dashboard-table-wrap.table-responsive {
        overflow-x: auto;
    }
}

.supplier-fold-header {
    background: var(--supplier-section-bg, #eef8f7) !important;
    border: 0;
    border-left: 5px solid var(--supplier-section-border, #2a7489);
    color: var(--supplier-section-text, #102a36);
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.supplier-fold-header::after {
    content: "Hide";
    float: right;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.72;
}

.supplier-section-collapsed > :not(.supplier-fold-header) {
    display: none !important;
}

.supplier-section-collapsed > .supplier-fold-header::after {
    content: "Show";
}

.supplier-fold-section.supplier-section-pending {
    --supplier-section-bg: #d8f8dc;
    --supplier-section-border: #16a34a;
    --supplier-section-text: #073f1f;
}

.supplier-fold-section.supplier-section-complete {
    --supplier-section-bg: #edf7f8;
    --supplier-section-border: #2a7489;
    --supplier-section-text: #102a36;
}

.inventory-reference-list {
    border-top: 1px solid var(--ws-border-soft);
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 1rem 1rem;
}

.inventory-reference-list div {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
}

.inventory-reference-list strong {
    color: var(--ws-text);
    min-width: 5.2rem;
}

.inventory-reference-list span {
    background: #f7fbfa;
    border: 1px solid var(--ws-border-soft);
    border-radius: 999px;
    color: var(--ws-muted);
    padding: 0.12rem 0.45rem;
}

.inventory-count-panel {
    background: #f8fcfb;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    height: 100%;
    padding: 1rem;
}

.count-sheet-check {
    background: #eef8f7;
    border: 1px solid var(--ws-border-soft);
    border-radius: 6px;
    padding: 0.65rem 0.75rem 0.65rem 2.25rem;
    width: 100%;
}

.inventory-table-scroll {
    max-height: 560px;
}

.inventory-table {
    min-width: 760px;
}

.inventory-bulk-table {
    min-width: 900px;
}

.inventory-movement-table {
    min-width: 860px;
}

.inventory-table thead th {
    background: #2a7489;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.inventory-table tbody tr:nth-child(even) > * {
    background: #f7fbfa;
}

.inventory-table tbody tr.inventory-row-changed > * {
    background: #e8f7f3;
}

.inventory-table tbody tr.inventory-row-quantity-changed > *:first-child {
    border-left: 4px solid #d89a2b;
}

.inventory-table tbody tr.inventory-row-changed:hover > * {
    background: #dff2ef;
}

.inventory-batch-reversal {
    align-items: center;
    background: #fff8f0;
    border-top: 1px solid #efd0a8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.inventory-reversal-note {
    min-width: 240px;
}

.navbar-brand-logo {
    background: #fff;
    border-radius: 6px;
    height: 34px;
    object-fit: contain;
    padding: 3px;
    width: 34px;
}

.company-logo-preview {
    align-items: center;
    background: #fff;
    border: 1px dashed rgba(20, 29, 43, 0.22);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 150px;
    overflow: hidden;
}

.company-logo-preview img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
}

.company-favicon-preview {
    align-items: center;
    background: #fff;
    border: 1px dashed rgba(20, 29, 43, 0.22);
    border-radius: 8px;
    display: flex;
    height: 72px;
    justify-content: center;
    overflow: hidden;
    width: 72px;
}

.company-favicon-preview img {
    max-height: 48px;
    max-width: 48px;
    object-fit: contain;
}

.company-about-logo {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(20, 29, 43, 0.08);
    border-radius: 8px;
    display: flex;
    height: 96px;
    justify-content: center;
    overflow: hidden;
    width: 140px;
}

.company-about-logo img {
    max-height: 84px;
    max-width: 128px;
    object-fit: contain;
}

.about-directors-section {
    background: #f2f9f8;
    border: 1px solid #cfe3df;
    border-radius: 8px;
    padding: 1rem;
}

.about-directors-section h2,
.about-timeline-section h2 {
    color: #123f4a;
}

.about-timeline {
    display: grid;
    gap: 0.9rem;
    position: relative;
}

.about-timeline-item {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #d3e3e0;
    border-left: 5px solid #1f8a78;
    border-radius: 8px;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 0.95rem 1rem;
}

.about-timeline-year {
    background: #155f72;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 750;
    padding: 0.28rem 0.65rem;
    text-align: center;
}

.about-timeline-item h3 {
    color: #123f4a;
}

.about-timeline-item p {
    color: #4d6268;
}

.customer-landing-carousel {
    border-radius: 8px;
    overflow: hidden;
}

.customer-landing-slide {
    align-items: center;
    background: linear-gradient(135deg, #172033, #36516f);
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    min-height: 460px;
    padding: 3rem;
    position: relative;
}

.customer-landing-slide::before {
    background: rgba(0, 0, 0, var(--landing-overlay, 0.45));
    content: "";
    inset: 0;
    position: absolute;
}

.customer-landing-copy {
    max-width: 680px;
    position: relative;
    z-index: 3;
}

.customer-landing-copy h1 {
    font-size: 2.5rem;
    letter-spacing: 0;
    line-height: 1.1;
}

.customer-landing-carousel .carousel-control-prev,
.customer-landing-carousel .carousel-control-next {
    width: 4rem;
    z-index: 2;
}

.website-media-preview {
    align-items: center;
    background: #eef1f6;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 190px;
    overflow: hidden;
}

.website-media-preview img {
    height: 100%;
    max-height: 240px;
    object-fit: cover;
    width: 100%;
}

.page-image-hero {
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 1rem;
    min-height: 260px;
    overflow: hidden;
    position: relative;
}

.page-image-hero::before {
    background: rgba(0, 0, 0, var(--hero-overlay, 0.35));
    content: "";
    inset: 0;
    position: absolute;
}

.page-image-hero > * {
    position: relative;
}

.page-image-hero .text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}

.stock-input {
    max-width: 120px;
}

.stock-input.stock-input-changed {
    background-color: #f3fffb;
    border-color: #0f8b8d;
    box-shadow: 0 0 0 0.12rem rgba(15, 139, 141, 0.12);
    font-weight: 700;
}

.form-control[type="file"] {
    min-width: 0;
}

.image-upload-feedback {
    display: block;
}

.product-card {
    overflow: hidden;
}

.product-image,
.product-detail-image {
    align-items: center;
    background: #eef1f6;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    aspect-ratio: 4 / 3;
}

.product-detail-image {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
}

.product-image img,
.product-detail-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.image-fallback {
    display: none;
}

.image-fallback.is-visible {
    display: inline;
}

.quantity-input {
    max-width: 96px;
}

.cart-line-form {
    max-width: 120px;
}

.sticky-x-scroll {
    background: #fff;
    border: 1px solid rgba(20, 29, 43, 0.08);
    border-radius: 6px 6px 0 0;
    bottom: 0;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    position: sticky;
    z-index: 20;
}

.sticky-x-scroll-inner {
    height: 1px;
}

.report-sticky-x-scroll {
    border-radius: 6px 6px 0 0;
    bottom: auto;
    margin: 0 0 0.35rem;
    position: sticky;
    top: 0.5rem;
}

#reportTableScroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#reportTableScroll::-webkit-scrollbar {
    display: none;
}

#salesFulfilmentTableScroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#salesFulfilmentTableScroll::-webkit-scrollbar {
    display: none;
}

#supplierOrdersTableScroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#supplierOrdersTableScroll::-webkit-scrollbar {
    display: none;
}

.debtor-t-account .table > :not(caption) > * > * {
    padding: 0.55rem 0.65rem;
}

.debtor-match-amount {
    min-width: 7.5rem;
}

.creditor-match-summary {
    align-items: stretch;
}

.creditor-summary-tile {
    background: #f4faf9;
    border: 1px solid #d6e8e7;
    border-left: 4px solid #2a7489;
    border-radius: 8px;
    height: 100%;
    padding: 0.85rem 1rem;
}

.creditor-match-panel {
    background: #fbfdfd;
    border-color: #d7e8e7;
}

.creditor-match-legend,
.creditor-match-legend span,
.creditor-card-topline,
.creditor-card-values,
.creditor-card-match-row,
.creditor-allocation-bar,
.creditor-bar-actions {
    align-items: center;
    display: flex;
}

.creditor-match-legend {
    color: #49666c;
    font-size: 0.85rem;
    gap: 0.9rem;
}

.creditor-match-legend span {
    gap: 0.35rem;
}

.creditor-dot {
    border-radius: 999px;
    display: inline-block;
    height: 0.65rem;
    width: 0.65rem;
}

.creditor-dot-debit {
    background: #1f7a8c;
}

.creditor-dot-credit {
    background: #607d3b;
}

.creditor-visual-board {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.creditor-side-panel {
    background: #fff;
    border: 1px solid #d7e8e7;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(29, 68, 76, 0.06);
    min-width: 0;
    overflow: hidden;
}

.creditor-side-heading {
    align-items: center;
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
}

.creditor-side-heading p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
}

.creditor-side-panel-debit .creditor-side-heading {
    background: #1f7a8c;
}

.creditor-side-panel-credit .creditor-side-heading {
    background: #607d3b;
}

.creditor-scroll-list {
    background: #f8fbfb;
    display: grid;
    gap: 0.65rem;
    max-height: 560px;
    overflow-y: auto;
    padding: 0.85rem;
}

.creditor-table-list {
    display: block;
    padding: 0;
}

.creditor-visual-table {
    --creditor-row-hover: #eef7f6;
    font-size: 0.9rem;
}

.creditor-visual-table th {
    background: #e6f2f1;
    border-bottom: 1px solid #bcd9d6;
    color: #244a52;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 4;
}

.creditor-visual-table-credit th {
    background: #edf4e8;
    border-bottom-color: #cad9bd;
    color: #374d21;
}

.creditor-visual-table td,
.creditor-visual-table th {
    padding: 0.58rem 0.75rem;
    vertical-align: top;
}

.creditor-visual-table tbody tr {
    border-left: 5px solid transparent;
}

.creditor-visual-table tbody tr:nth-child(even) > * {
    background: #fbfdfd;
}

.creditor-visual-table tbody tr:hover > * {
    background: var(--creditor-row-hover);
}

.creditor-visual-table .js-creditor-source-card,
.creditor-visual-table .js-creditor-invoice-row {
    cursor: pointer;
}

.creditor-visual-table .js-creditor-source-card.is-selected {
    border-left-color: #1f7a8c;
}

.creditor-visual-table .js-creditor-source-card.is-selected > * {
    background: #e5f4f3;
}

.creditor-visual-table .js-creditor-invoice-row.is-selected {
    border-left-color: #607d3b;
}

.creditor-visual-table .js-creditor-invoice-row.is-selected > * {
    background: #eff6e9;
}

.creditor-visual-table .js-creditor-invoice-row.is-partial-allocation {
    border-right: 5px solid #c77d24;
}

.creditor-visual-table .is-adjustment > * {
    background: #fff7e8;
}

.creditor-visual-table .is-disabled {
    cursor: default;
    opacity: 0.68;
}

.creditor-empty-cell {
    color: #6b7a7f;
    padding: 1rem !important;
}

.creditor-transaction-card {
    background: #fff;
    border: 1px solid #d7e5e4;
    border-left: 5px solid #1f7a8c;
    border-radius: 9px;
    color: #24373b;
    display: grid;
    gap: 0.4rem;
    padding: 0.75rem 0.85rem;
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    width: 100%;
}

button.creditor-transaction-card {
    cursor: pointer;
}

.creditor-credit-card {
    border-left-color: #607d3b;
}

.creditor-transaction-card:hover {
    background: #f0f8f7;
    border-color: #9cc9c7;
    box-shadow: 0 8px 18px rgba(34, 78, 86, 0.1);
    transform: translateY(-1px);
}

.creditor-transaction-card.is-selected {
    background: #e8f5f4;
    border-color: #1f7a8c;
    box-shadow: 0 0 0 2px rgba(31, 122, 140, 0.16);
}

.creditor-credit-card.is-selected {
    background: #f1f7eb;
    border-color: #607d3b;
    box-shadow: 0 0 0 2px rgba(96, 125, 59, 0.16);
}

.creditor-transaction-card.is-partial-allocation {
    border-right: 5px solid #c77d24;
}

.creditor-transaction-card.is-disabled,
.creditor-transaction-card:disabled {
    cursor: default;
    opacity: 0.65;
    transform: none;
}

.creditor-card-topline,
.creditor-card-values,
.creditor-card-match-row {
    justify-content: space-between;
    gap: 0.8rem;
}

.creditor-card-topline,
.creditor-card-meta,
.creditor-card-note {
    color: #5f7075;
    font-size: 0.82rem;
}

.creditor-card-title {
    align-items: center;
    display: flex;
    font-weight: 700;
    gap: 0.5rem;
    min-width: 0;
}

.creditor-card-title a {
    color: inherit;
}

.creditor-card-values {
    border-top: 1px solid #e3eeee;
    padding-top: 0.45rem;
}

.creditor-card-match-row {
    background: #f7faf9;
    border-radius: 7px;
    padding: 0.45rem 0.5rem;
}

.creditor-card-link {
    font-size: 0.82rem;
    font-weight: 700;
}

.creditor-empty-state {
    background: #fff;
    border: 1px dashed #c9dada;
    border-radius: 8px;
    color: #6b7a7f;
    padding: 1rem;
}

.creditor-allocation-bar {
    background: #f2f8f7;
    border: 1px solid #cfe2df;
    border-radius: 10px;
    bottom: 0.85rem;
    box-shadow: 0 10px 22px rgba(24, 61, 67, 0.12);
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.75rem;
    position: sticky;
    z-index: 12;
}

.creditor-allocation-bar > div {
    min-width: 7.5rem;
}

.creditor-bar-label {
    color: #607077;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.creditor-bar-actions {
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
    margin-left: auto;
}

.creditor-t-account .table > :not(caption) > * > * {
    padding: 0.55rem 0.65rem;
}

.creditor-table-card {
    overflow: visible;
}

.creditor-table-scroll {
    max-height: 520px;
}

.creditor-table thead th {
    background: #2a7489;
    border-bottom-color: #2a7489;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.creditor-table tbody tr:nth-child(even) > * {
    background: #f7fbfa;
}

.creditor-table tbody tr:hover > * {
    background: #edf7f6;
}

.creditor-match-amount {
    max-width: 8rem;
    min-width: 7.5rem;
}

.creditor-transfer-panel {
    background: #fbfdfd;
    border-color: #d7e8e7;
    overflow: hidden;
}

.creditor-transfer-heading {
    background: #b77a86;
    color: #fff;
    padding: 0.9rem 1rem;
}

.creditor-transfer-heading p {
    color: rgba(255, 255, 255, 0.86);
}

.creditor-transfer-grid {
    align-items: stretch;
}

.creditor-transfer-field {
    display: flex;
    flex-direction: column;
}

.creditor-transfer-field .form-label {
    align-items: end;
    display: flex;
    min-height: 2.4rem;
}

.creditor-transfer-field .form-select,
.creditor-transfer-field .form-control {
    min-height: 2.45rem;
}

.creditor-transfer-action {
    align-self: end;
}

.creditor-transfer-action .btn {
    min-height: 2.45rem;
}

.creditor-enquiry-side-debit {
    background: #fbeff3;
}

.creditor-enquiry-side-credit {
    background: #edf6fb;
}

.creditor-enquiry-side .table {
    background: transparent;
}

.creditor-enquiry-side-debit thead th {
    background: #b77a86;
    border-color: #a86673;
    color: #fff;
}

.creditor-enquiry-side-credit thead th {
    background: #477c94;
    border-color: #376a80;
    color: #fff;
}

.creditor-enquiry-side-debit tbody td {
    background: #fff7f9;
}

.creditor-enquiry-side-credit tbody td {
    background: #f6fbfe;
}

.creditor-enquiry-side-debit tbody tr:nth-child(even) td {
    background: #fbeef2;
}

.creditor-enquiry-side-credit tbody tr:nth-child(even) td {
    background: #eaf5fb;
}

.creditor-enquiry-side-debit tbody tr:hover td {
    background: #f6e0e6;
}

.creditor-enquiry-side-credit tbody tr:hover td {
    background: #dceff8;
}

@media (max-width: 991.98px) {
    .creditor-visual-board {
        grid-template-columns: 1fr;
    }

    .creditor-scroll-list {
        max-height: 440px;
    }

    .creditor-allocation-bar {
        align-items: stretch;
        flex-direction: column;
        position: static;
    }

    .creditor-bar-actions {
        justify-content: flex-start;
        margin-left: 0;
    }
}

.pick-box {
    border: 1px solid #111827;
    height: 24px;
    width: 24px;
}

.serial-exception-list {
    max-height: 360px;
    overflow-y: auto;
}

.reveal-toggle,
.reveal-toggle-danger {
    background: #f8fafc;
    border: 1px solid #94a3b8;
    color: #1e293b;
    font-weight: 600;
}

.reveal-toggle:hover,
.reveal-toggle:focus {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #075985;
}

.reveal-toggle-danger {
    border-color: #fca5a5;
    color: #991b1b;
}

.reveal-toggle-danger:hover,
.reveal-toggle-danger:focus {
    background: #fee2e2;
    border-color: #dc2626;
    color: #7f1d1d;
}

.picking-slip-heading {
    border-bottom: 2px solid #111827;
    display: grid;
    gap: 0.18rem;
    grid-template-columns: 1fr auto;
    margin-bottom: 0.45rem;
    padding-bottom: 0.35rem;
}

.picking-slip-heading h1 {
    font-size: 1.15rem;
    margin: 0;
}

.picking-slip-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.picking-slip-meta {
    font-size: 0.74rem;
    text-align: right;
}

.picking-slip-client {
    grid-column: 1 / -1;
}

.picking-slip-table {
    border-collapse: collapse;
    font-size: 0.76rem;
    width: 100%;
}

.picking-slip-table th,
.picking-slip-table td {
    border-bottom: 1px solid #d1d5db;
    padding: 0.16rem 0.22rem;
    vertical-align: top;
}

.picking-slip-box {
    border: 1px solid #111827;
    display: inline-block;
    height: 13px;
    width: 13px;
}

.picking-slip-notes {
    font-size: 0.78rem;
    margin-top: 0.65rem;
}

.picking-slip-note-line {
    border-bottom: 1px solid #9ca3af;
    height: 0.62rem;
}

.picking-slip-signatures {
    font-size: 0.78rem;
    margin-top: 1.15rem;
}

.invoice-logo {
    max-height: 72px;
    max-width: 180px;
    object-fit: contain;
}

.invoice-address-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media print {
    .navbar,
    footer,
    .no-print,
    .sticky-x-scroll,
    .alert {
        display: none !important;
    }

    body {
        background: #fff;
    }

    main.container {
        max-width: none;
        padding: 0;
        width: 100%;
    }

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

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

    .document-display {
        max-width: none;
    }

    .document-paper {
        background: #fff;
        padding: 0;
    }

    .document-info-block,
    .document-summary {
        background: #fff;
    }

    .document-display-header {
        align-items: flex-start;
        gap: 1rem;
        grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
        margin-bottom: 0.8rem;
        padding-bottom: 0.55rem;
    }

    .document-brand-block,
    .document-title-block,
    .document-info-block,
    .document-summary {
        font-size: 0.86rem;
    }

    .document-info-grid {
        gap: 0.65rem;
        grid-template-columns: 1fr;
        margin-bottom: 0.65rem !important;
    }

    .document-info-block {
        padding: 0.55rem;
    }

    .document-customer-grid {
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .document-customer-grid > div {
        padding: 0.55rem;
    }

    .document-payment-footer {
        gap: 0.65rem;
        margin-top: 0.9rem;
        padding-top: 0.65rem;
    }

    .document-payment-footer section {
        background: #fff;
        break-inside: avoid;
        page-break-inside: avoid;
        padding: 0.55rem;
    }

    .document-title-block h2 {
        font-size: 1.25rem;
    }

    .document-title-row {
        padding: 0.1rem 0;
    }

    .document-logo {
        max-height: 52px;
        max-width: 140px;
    }

    .document-lines-table > :not(caption) > * > * {
        padding: 0.28rem 0.35rem;
    }

    .order-admin-screen {
        display: none !important;
    }

    .picking-slip {
        color: #111827;
        display: block !important;
        font-size: 10px;
        line-height: 1.18;
        padding: 0;
    }

    .picking-slip-header {
        margin-bottom: 0.55rem;
        padding-bottom: 0.45rem;
    }

    .picking-slip-logo {
        max-height: 42px;
        max-width: 130px;
    }

    .picking-slip-reference,
    .picking-slip-facts > div {
        background: #fff;
        padding: 0.35rem 0.45rem;
    }

    .picking-slip-reference-barcode,
    .picking-slip-reference-barcode svg {
        height: 32px;
    }

    .picking-slip-facts {
        gap: 0.35rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 0.55rem;
    }

    .picking-slip-table {
        font-size: 0.74rem;
    }

    .picking-slip-table > :not(caption) > * > * {
        padding: 0.18rem 0.25rem;
    }

    .picking-slip-notes {
        margin-top: 0.7rem;
    }

    .picking-slip-signature {
        margin-top: 1rem;
    }

    .picking-slip-controller-note {
        font-size: 0.68rem;
        margin-top: 0.55rem;
        padding-top: 0.35rem;
    }

    .invoice-address-grid {
        gap: 1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    @page {
        margin: 6mm;
        size: A4;
    }
}

@media (max-width: 575.98px) {
    body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) :is(.page-header, main.container > .d-flex:first-child) {
        padding: 1rem;
    }

    body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) :is(.page-header, main.container > .d-flex:first-child) .page-actions,
    body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) :is(.page-header, main.container > .d-flex:first-child) > :last-child {
        width: 100%;
    }

    body:is(.page-theme-setup, .page-theme-people, .page-theme-process, .page-theme-control, .page-theme-reports, .page-theme-alert) :is(.page-header, main.container > .d-flex:first-child) .btn {
        margin: 0.1rem 0.12rem;
    }
}

.category-media-preview {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.category-thumb {
    align-items: center;
    background: linear-gradient(135deg, #e6f4f1, #edf8fb);
    border: 1px solid #b7d7dc;
    border-radius: 0.6rem;
    color: #17545d;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    text-align: center;
    width: 46px;
}

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

.shop-category-dropdown {
    background: #ffffff;
    border: 1px solid var(--ws-border-soft);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow-soft);
}

.shop-category-dropdown summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    gap: 0.65rem;
    justify-content: space-between;
    list-style: none;
    padding: 0.8rem 1rem;
}

.shop-category-dropdown summary::-webkit-details-marker {
    display: none;
}

.shop-category-dropdown summary::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    height: 0.55rem;
    margin-left: 0.5rem;
    transform: rotate(45deg);
    transition: transform 0.16s ease;
    width: 0.55rem;
}

.shop-category-dropdown[open] summary::after {
    transform: rotate(225deg);
}

.shop-category-dropdown summary small {
    color: var(--ws-muted);
    font-weight: 600;
    margin-left: auto;
}

.shop-category-dropdown .shop-category-strip {
    border-top: 1px solid var(--ws-border-soft);
    margin-bottom: 0;
    padding: 0.9rem 1rem 1rem;
}

.shop-filter-notice {
    align-items: center;
    background: #eef8f7;
    border: 1px solid #b8deda;
    border-radius: var(--ws-radius);
    color: #173f49;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.8rem 1rem;
}

.shop-category-strip {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding: 0.1rem 0 0.55rem;
}

.shop-category-tile {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c9dfe3;
    border-radius: 0.75rem;
    box-shadow: 0 6px 16px rgba(15, 55, 62, 0.06);
    color: #184c55;
    display: flex;
    flex: 0 0 138px;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem 0.65rem;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.shop-category-tile:hover,
.shop-category-tile:focus {
    border-color: #2d8c99;
    box-shadow: 0 9px 20px rgba(15, 55, 62, 0.11);
    color: #123f47;
    transform: translateY(-1px);
}

.shop-category-tile.is-active {
    background: #e5f5f4;
    border-color: #247d8a;
    box-shadow: inset 0 0 0 1px rgba(36, 125, 138, 0.22);
}

.shop-category-tile-media {
    align-items: center;
    background: linear-gradient(135deg, #d9efef, #edf8fb);
    border: 1px solid #add3d8;
    border-radius: 0.7rem;
    color: #15515b;
    display: flex;
    font-size: 0.82rem;
    font-weight: 700;
    height: 62px;
    justify-content: center;
    line-height: 1.05;
    overflow: hidden;
    padding: 0.25rem;
    width: 62px;
}

.shop-category-tile-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.shop-category-tile-label {
    display: -webkit-box;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.15;
    min-height: 2rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.email-preview-subject {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    color: #173f49;
    font-weight: 700;
    padding: 0.75rem 0.85rem;
}

.email-template-preview-body {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    color: #1f2937;
    line-height: 1.55;
    min-height: 260px;
    padding: 1rem;
    white-space: pre-wrap;
}

@media (max-width: 767.98px) {
    .platform-hero {
        border-radius: 0;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .platform-hero-slide {
        min-height: 520px;
        padding: 2rem 1.25rem;
    }

    .platform-hero-slide::before {
        background: rgba(255, 255, 255, .9);
    }

    .sticky-action-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .platform-action-strip {
        grid-template-columns: 1fr;
    }

    .platform-faq-list {
        grid-template-columns: 1fr;
    }

    .cookie-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .app-footer-grid {
        grid-template-columns: 1fr;
    }

    .customer-landing-slide {
        min-height: 380px;
        padding: 2rem 1.25rem;
    }

    .customer-landing-copy h1 {
        font-size: 2rem;
    }

    .page-header {
        align-items: stretch;
    }

    .page-actions,
    .page-actions .btn {
        width: 100%;
    }

    .order-workflow-summary {
        grid-template-columns: 1fr;
    }

    .order-action-stack {
        justify-content: stretch;
        min-width: 0;
    }

    .order-action-stack .btn,
    .order-action-stack form {
        flex: 1 1 100%;
    }

    .order-action-stack form .btn {
        width: 100%;
    }

    .orders-workflow-table .order-progress-cell {
        min-width: 260px;
    }

    .order-flow-strip {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }

    .picking-slip-header {
        flex-direction: column;
    }

    .picking-slip-reference {
        text-align: left;
        width: 100%;
    }

    .picking-slip-facts {
        grid-template-columns: 1fr;
    }

    .document-notes-grid {
        grid-template-columns: 1fr;
    }

    .document-summary {
        max-width: none;
        width: 100%;
    }

    .document-display-header {
        grid-template-columns: 1fr;
    }

    .document-info-grid {
        grid-template-columns: 1fr;
    }

    .document-customer-grid {
        grid-template-columns: 1fr;
    }

    .document-payment-footer {
        grid-template-columns: 1fr;
    }

    .fulfilment-confirmation-summary {
        grid-template-columns: 1fr;
    }

    .product-detail-summary,
    .product-form-overview {
        grid-template-columns: 1fr;
    }

}

.order-flow-board {
    display: grid;
    gap: .9rem;
    padding: 1rem;
}

.order-flow-line {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 2.4fr);
    gap: .85rem;
    align-items: stretch;
    border: 1px solid #cfdae6;
    border-left: 5px solid #8fa9be;
    border-radius: 8px;
    background: #f8fbfd;
    padding: .85rem;
}

.order-flow-item {
    border-right: 1px solid #d9e2ec;
    padding-right: .75rem;
}

.order-flow-line-success {
    border-left-color: #3b8f62;
}

.order-flow-line-primary {
    border-left-color: #2f79a3;
}

.order-flow-line-warning {
    border-left-color: #c78628;
}

.order-flow-line-info {
    border-left-color: #4d93a8;
}

.order-flow-line-secondary {
    border-left-color: #8798aa;
}

.order-flow-product-name {
    color: #1f3b57;
    font-weight: 720;
    line-height: 1.25;
}

.order-flow-line-meta {
    color: #607185;
    font-size: .82rem;
    line-height: 1.35;
    margin-top: .35rem;
}

.order-flow-header-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.order-flow-summary-chip {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1;
    padding: .42rem .62rem;
}

.order-flow-summary-chip-pending {
    background: #fff6e8;
    border-color: #edc780;
    color: #8a570f;
}

.order-flow-summary-chip-ready {
    background: #e8f4fb;
    border-color: #9ccbe1;
    color: #1c6282;
}

.order-flow-summary-chip-done {
    background: #e9f7ef;
    border-color: #9cd1b4;
    color: #21633f;
}

.order-line-progress-meter {
    background: #e7edf2;
    border-radius: 999px;
    height: .42rem;
    margin-top: .7rem;
    overflow: hidden;
}

.order-line-progress-meter span {
    background: linear-gradient(90deg, #2f79a3, #3b8f62);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.order-flow-next-step {
    background: #ffffff;
    border: 1px solid #d5dee8;
    border-radius: 7px;
    margin-top: .75rem;
    padding: .45rem .55rem;
}

.order-flow-next-step span {
    color: #607185;
    display: block;
    font-size: .7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.order-flow-next-step strong {
    color: #1f3b57;
    display: block;
    font-size: .86rem;
    line-height: 1.25;
}

.order-flow-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(116px, 1fr));
    gap: .5rem;
}

.order-flow-stage {
    border: 1px solid #d5dee8;
    border-radius: 8px;
    background: #fff;
    min-height: 86px;
    padding: .55rem .65rem;
}

.order-flow-stage span,
.order-flow-stage small {
    display: block;
}

.order-flow-stage span {
    color: #5f7184;
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-flow-stage strong {
    display: block;
    color: #1f3b57;
    font-size: 1rem;
    margin: .1rem 0;
}

.order-flow-stage small {
    color: #607185;
    line-height: 1.25;
}

.order-flow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .5rem;
}

.order-flow-actions .btn {
    font-size: .72rem;
    line-height: 1.2;
    padding: .22rem .45rem;
}

.order-flow-stage-done {
    background: #eaf7f0;
    border-color: #9bd0b3;
}

.order-flow-stage-active {
    background: #eaf5fb;
    border-color: #8ec5de;
}

.order-flow-stage-blocked {
    background: #fff4e5;
    border-color: #e4b16d;
}

.order-flow-stage-waiting {
    background: #f8fafc;
    border-color: #d9e2ec;
}

@media (max-width: 991.98px) {
    .order-flow-line {
        grid-template-columns: 1fr;
    }

    .order-flow-item {
        border-right: 0;
        border-bottom: 1px solid #d9e2ec;
        padding: 0 0 .75rem;
    }

    .order-flow-track {
        overflow-x: auto;
        grid-template-columns: repeat(6, minmax(128px, 1fr));
    }
}

@media print {
    .picker-badge-sheet {
        padding: 0;
    }

    .picker-badge-card {
        border-color: #222;
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .document-customer-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .document-payment-footer {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .document-customer-grid > div {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
