/* =============================================================
   Zosify adminv2 custom styles
   All portal-specific overrides for the Keenthemes (adminv2) theme.

   Font-size convention — never use hardcoded px values.
   Use KT rem scale (matches the fs-* utility classes):
     0.75rem  = fs-9   (~10px)
     0.85rem  = fs-8   (~11–12px)
     0.95rem  = fs-7   (~13px)
     var(--bs-body-font-size) / 1rem = fs-6/base  (~14px)
     1.075rem = fs-6   (~15–16px)
     1.15rem  = fs-5   (~17px)
     1.25rem  = fs-4   (~18px)
     1.5rem   = fs-2   (~20px)
   ============================================================= */

@media (min-width: 992px) {
    .content {
        padding: 0;
        border-radius: 0;
    }
}
/* Sidebar brand */
.aside .aside-logo a {
    min-width: 0;
    width: 100%;
}

.aside .aside-logo .logo-default {
    display: block;
    height: auto;
    max-height: 3.125rem;
    /*max-width: 100%;*/
    /*object-fit: contain;*/
    /*width: 12.5rem;*/
}

/* ── Order list: bootstrap-table selection controls ─────────── */
.order-v2-page #mzh_lg_datatable .bs-checkbox,
.order-v2-page #mzh_lg_datatable th:first-child,
.order-v2-page #mzh_lg_datatable td:first-child {
    text-align: center;
    vertical-align: middle;
    width: 42px;
}

/* AI Product Readiness app */
.ai-readiness-page .zs-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: var(--zosify-surface, #fff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.ai-readiness-page .zs-page-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-readiness-page .zs-page-header h1 {
    color: var(--zosify-ink, #111827);
    font-size: var(--zs-font-page, 1.5rem);
    font-weight: var(--zs-weight-medium, 700);
    margin: .25rem 0;
}

.ai-readiness-page .zs-page-header p {
    color: #64748b;
    margin: 0;
}

.ai-readiness-recommendation-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0 1rem;
}

.ai-readiness-recommendation-strip span {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: .78rem;
    padding: .35rem .65rem;
}

.ai-readiness-fix-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-readiness-fix {
    align-items: flex-start;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    justify-content: space-between;
    min-height: 150px;
    padding: 1rem;
}

.ai-readiness-fix strong,
.ai-readiness-suggestion strong {
    color: var(--zosify-ink, #111827);
    display: block;
    font-size: .95rem;
}

.ai-readiness-fix p,
.ai-readiness-suggestion-reason {
    color: #64748b;
    font-size: .85rem;
    line-height: 1.45;
    margin: .35rem 0 0;
}

.ai-readiness-suggestions {
    display: grid;
    gap: 1rem;
}

.ai-readiness-suggestion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.ai-readiness-suggestion-head,
.ai-readiness-suggestion-actions,
.ai-readiness-card-header {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.ai-readiness-suggestion-head span:not(.zs-badge) {
    color: #94a3b8;
    display: block;
    font-size: .75rem;
    margin-top: .15rem;
}

.ai-readiness-preview-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.ai-readiness-preview-grid label {
    color: #64748b;
    display: block;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.ai-readiness-preview-grid pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-family: inherit;
    font-size: .84rem;
    line-height: 1.5;
    margin: 0;
    max-height: 260px;
    min-height: 96px;
    overflow: auto;
    padding: .8rem;
    white-space: pre-wrap;
}

.ai-readiness-suggestion-actions {
    justify-content: flex-end;
    margin-top: 1rem;
}

.ai-readiness-suggestion-actions form {
    margin: 0;
}

.ai-readiness-actions,
.ai-readiness-bulk-actions,
.ai-readiness-row-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ai-readiness-actions form,
.ai-readiness-bulk-actions form,
.ai-readiness-row-actions form {
    margin: 0;
}

.ai-readiness-health-controls {
    display: grid;
    gap: 1rem;
}

.ai-readiness-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ai-readiness-filter {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: .82rem;
    font-weight: 600;
    padding: .45rem .75rem;
    text-decoration: none;
}

.ai-readiness-filter.is-active,
.ai-readiness-filter:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.ai-readiness-priority-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-readiness-priority-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: .35rem;
    min-height: 120px;
    padding: .9rem;
    text-decoration: none;
}

.ai-readiness-priority-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
}

.ai-readiness-priority-item strong {
    color: var(--zosify-ink, #111827);
    font-size: .9rem;
    line-height: 1.35;
}

.ai-readiness-priority-item span {
    color: #1d4ed8;
    font-size: .85rem;
    font-weight: 700;
}

.ai-readiness-priority-item small {
    color: #64748b;
    line-height: 1.4;
}

.ai-readiness-status-draft {
    background: #eff6ff;
    color: #1d4ed8;
}

.ai-readiness-status-approved {
    background: #ecfdf5;
    color: #047857;
}

.ai-readiness-status-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.ai-readiness-status-applied {
    background: #f0fdf4;
    color: #15803d;
}

.product-ai-readiness-widget .card-header {
    align-items: flex-start;
    gap: .75rem;
}

.product-ai-readiness-widget .badge {
    white-space: nowrap;
}

.product-ai-readiness-list {
    color: #475569;
    display: grid;
    font-size: .82rem;
    gap: .45rem;
    line-height: 1.4;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.product-ai-readiness-list li {
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: .45rem;
}

.product-ai-readiness-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-ai-inline-warning {
    border-radius: 8px;
}

.product-ai-inline-warning .btn {
    flex: 0 0 auto;
}

.product-ai-readiness-menu {
    position: relative;
}

.product-ai-readiness-trigger {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 16px 18px;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    background: var(--zosify-surface, #fff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.product-ai-readiness-trigger:hover,
.product-ai-readiness-trigger.show {
    border-color: rgba(62, 151, 255, 0.28);
    background: #fbfdff;
}

.product-ai-readiness-dropdown .card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.product-ai-readiness-dropdown .card-header,
.product-ai-readiness-dropdown .card-footer {
    min-height: auto;
}

@media (max-width: 991.98px) {
    .ai-readiness-fix-grid,
    .ai-readiness-preview-grid,
    .ai-readiness-priority-grid {
        grid-template-columns: 1fr;
    }

    .ai-readiness-page .zs-page-header,
    .ai-readiness-suggestion-head,
    .ai-readiness-suggestion-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-ai-inline-warning {
        align-items: flex-start !important;
        flex-direction: column;
    }
}

/* AI Product Readiness */
.ai-readiness-page {
	padding: 24px 0;
}

.ai-readiness-page .zs-page-header {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 24px;
}

.ai-readiness-page h1 {
	font-size: var(--zs-font-page, 28px);
	margin: 0 0 6px;
}

.ai-readiness-page h2 {
	font-size: var(--zs-font-section, 18px);
	margin: 0 0 16px;
}

.ai-readiness-page p {
	color: #5f6b7a;
	margin: 0;
}

.ai-readiness-metrics {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	margin-bottom: 18px;
}

.ai-readiness-metric,
.ai-readiness-page .zs-card {
	background: var(--zosify-surface, #fff);
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	padding: 18px;
}

.ai-readiness-label {
	color: #667085;
	font-size: var(--zs-font-label, 12px);
	text-transform: uppercase;
}

.ai-readiness-value {
	color: #101828;
	font-size: 24px;
	font-weight: 700;
	margin-top: 6px;
}

.ai-readiness-card-header {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.ai-readiness-table {
	width: 100%;
}

.ai-readiness-score {
	background: #eef4ff;
	color: #3538cd;
}

.ai-readiness-detail-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-bottom: 18px;
}

.ai-readiness-breakdown-row,
.ai-readiness-fix {
	align-items: center;
	border-top: 1px solid #eef1f5;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 12px 0;
}

.ai-readiness-list {
	margin: 0;
	padding-left: 18px;
}

.ai-readiness-fixes {
	display: grid;
	gap: 8px;
}

@media (max-width: 767px) {
	.ai-readiness-page .zs-page-header,
	.ai-readiness-detail-grid,
	.ai-readiness-fix {
		display: block;
	}

	.ai-readiness-page .zs-page-header form,
	.ai-readiness-fix .btn {
		margin-top: 12px;
	}
}

.order-v2-page #mzh_lg_datatable .bs-checkbox .form-check-input,
.order-v2-page #mzh_lg_datatable th:first-child .form-check-input,
.order-v2-page #mzh_lg_datatable td:first-child .form-check-input {
    cursor: pointer;
    float: none;
    height: 1.5rem;
    margin: 0;
    width: 1.5rem;
}

.order-v2-page #mzh_lg_datatable .bs-checkbox .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.zs-order-form-drawer-backdrop {
    background: var(--bs-gray-900);
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity .2s ease;
    z-index: 1090;
}

.zs-order-form-drawer-backdrop.is-open {
    opacity: .32;
}

.zs-order-form-drawer {
    bottom: 0;
    box-shadow: var(--bs-box-shadow-xl);
    display: flex;
    flex-direction: column;
    max-width: 100%;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform .24s ease;
    width: min(720px, 100vw);
    z-index: 1091;
}

.zs-order-form-drawer.is-open {
    transform: translateX(0);
}

.zs-order-form-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

body.zs-order-form-drawer-open {
    overflow: hidden;
}

.zs-order-form-drawer .fulfillment-modal {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.zs-order-form-drawer .fulfillment-modal-hero {
    gap: 1rem;
}

.zs-order-form-drawer .fulfillment-modal-title {
    display: none;
}

.zs-order-form-drawer .fulfillment-warehouse-field {
    min-width: min(240px, 100%) !important;
}

.zs-order-form-drawer .fulfillment-section {
    padding: 1.15rem;
}

.zs-order-form-drawer .fulfillment-item {
    align-items: flex-start !important;
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .zs-order-form-drawer {
        width: 100vw;
    }

    .zs-order-form-drawer-body {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.fulfillment-modal-hero {
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: var(--bs-gutter-y, 1.5rem);
}

.fulfillment-modal-title {
    color: #071437;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0;
}

.fulfillment-section {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .475rem;
    padding: 1.35rem;
}

.fulfillment-section-title {
    color: #071437;
    font-size: var(--zs-font-section, 1rem);
    font-weight: var(--zs-weight-medium, 700);
    letter-spacing: 0;
}

.fulfillment-section-subtitle {
    color: var(--zs-fulfillment-muted);
    font-size: .85rem;
    font-weight: 500;
}

.fulfillment-form-label {
    color: #071437;
    font-size: var(--zs-font-label, .95rem);
    font-weight: var(--zs-weight-medium, 600);
    margin-bottom: .5rem;
}

.fulfillment-item {
    background-color: var(--kt-input-solid-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .475rem;
    margin-bottom: .75rem;
    padding: 1rem;
}

.fulfillment-item:last-child {
    margin-bottom: 0;
}

.fulfillment-modal-footer {
    border-top: 1px dashed var(--bs-border-color);
    padding-top: 1.25rem;
}

.order-v2-list-card .card-header {
    min-height: auto;
}

.zo-order-detail-v2 .zs-order-progress-card .card-body {
    padding-left: 2rem;
    padding-right: 2rem;
}

.zo-order-detail-v2 .zs-order-progress-track {
    --zs-progress-line: #eef2f7;
    --zs-progress-done: #50cd89;
    align-items: flex-start;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
}

.zo-order-detail-v2 .zs-order-progress-node {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
    position: relative;
    text-align: center;
}

.zo-order-detail-v2 .zs-order-progress-node:before,
.zo-order-detail-v2 .zs-order-progress-node:after {
    background: var(--zs-progress-line);
    content: "";
    height: 4px;
    position: absolute;
    top: 18px;
    width: 50%;
    z-index: 0;
}

.zo-order-detail-v2 .zs-order-progress-node:before {
    left: 0;
}

.zo-order-detail-v2 .zs-order-progress-node:after {
    right: 0;
}

.zo-order-detail-v2 .zs-order-progress-node:first-child:before,
.zo-order-detail-v2 .zs-order-progress-node:last-child:after {
    display: none;
}

.zo-order-detail-v2 .zs-order-progress-node.is-complete:before,
.zo-order-detail-v2 .zs-order-progress-node.is-complete:after,
.zo-order-detail-v2 .zs-order-progress-node.is-current:before {
    background: linear-gradient(90deg, rgba(80, 205, 137, .95), rgba(62, 151, 255, .72));
}

.zo-order-detail-v2 .zs-order-progress-node .symbol {
    position: relative;
    z-index: 1;
}

.zo-order-detail-v2 .zs-order-progress-node .symbol-label {
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    height: 38px;
    width: 38px;
}

.zo-order-detail-v2 .zs-order-progress-node.is-complete .symbol-label {
    background-color: #dcfce7 !important;
    color: #17a36b !important;
}

.zo-order-detail-v2 .zs-order-progress-node.is-current .symbol-label {
    background-color: #e9f3ff !important;
    color: #3e97ff !important;
    outline: 4px solid rgba(62, 151, 255, .12);
}

.zo-order-detail-v2 .zs-order-progress-node.is-pending .symbol-label {
    background-color: var(--zosify-surface-subtle, #f6f8fb) !important;
    color: #b5bfd3 !important;
}

.zo-order-detail-v2 .zs-order-progress-node strong {
    color: #071437;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.zo-order-detail-v2 .zs-order-progress-node.is-pending strong {
    color: #7e8bad;
    font-weight: 600;
}

.zs-order-progress-track {
    --zs-progress-line: #eef2f7;
    --zs-progress-done: #50cd89;
    align-items: flex-start;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
}

.zs-order-progress-node {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: .75rem;
    min-width: 0;
    position: relative;
    text-align: center;
}

.zs-order-progress-node:before,
.zs-order-progress-node:after {
    background: var(--zs-progress-line);
    content: "";
    height: 4px;
    position: absolute;
    top: 18px;
    width: 50%;
    z-index: 0;
}

.zs-order-progress-node:before {
    left: 0;
}

.zs-order-progress-node:after {
    right: 0;
}

.zs-order-progress-node:first-child:before,
.zs-order-progress-node:last-child:after {
    display: none;
}

.zs-order-progress-node.is-complete:before,
.zs-order-progress-node.is-complete:after,
.zs-order-progress-node.is-current:before {
    background: linear-gradient(90deg, rgba(80, 205, 137, .95), rgba(62, 151, 255, .72));
}

.zs-order-progress-node .symbol {
    position: relative;
    z-index: 1;
}

.zs-order-progress-node .symbol-label {
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    height: 38px;
    width: 38px;
}

.zs-order-progress-node.is-complete .symbol-label {
    background-color: #dcfce7 !important;
    color: #17a36b !important;
}

.zs-order-progress-node.is-current .symbol-label {
    background-color: #e9f3ff !important;
    color: #3e97ff !important;
    outline: 4px solid rgba(62, 151, 255, .12);
}

.zs-order-progress-node.is-pending .symbol-label {
    background-color: var(--zosify-surface-subtle, #f6f8fb) !important;
    color: #b5bfd3 !important;
}

.zs-order-progress-node strong {
    color: #071437;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.zs-order-progress-node.is-pending strong {
    color: #7e8bad;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .zs-order-progress-card .card-body,
    .zo-order-detail-v2 .zs-order-progress-card .card-body {
        overflow-x: auto;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .zs-order-progress-track,
    .zo-order-detail-v2 .zs-order-progress-track {
        grid-template-columns: repeat(5, minmax(118px, 1fr));
        min-width: 590px;
    }
}

.order-v2-view-tabs {
    overflow-x: auto;
    scrollbar-width: none;
}

.order-v2-view-tabs::-webkit-scrollbar {
    display: none;
}

.order-v2-view-tabs .nav-link {
    background: transparent;
    border: 0;
    color: var(--kt-text-muted);
    margin-right: 2rem;
}

.order-v2-view-tabs .nav-link.active,
.order-v2-view-tabs .nav-link.is-active {
    color: var(--bs-primary);
}

.order-v2-page #mzh_lg_datatable th:first-child .form-check,
.order-v2-page #mzh_lg_datatable td:first-child .form-check {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.order-v2-page #mzh_lg_datatable th:first-child .form-check-input,
.order-v2-page #mzh_lg_datatable td:first-child .form-check-input {
    border-color: var(--bs-border-color);
}

/* Fulfillment queue: KT table/tabs alignment */
.fulfillment-queue-card .card-header {
    min-height: auto;
}

.fulfillment-queue-card .card-body {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.fulfillment-queue-tabs {
    max-width: 100%;
    scrollbar-width: none;
}

.fulfillment-queue-tabs::-webkit-scrollbar {
    display: none;
}

.fulfillment-queue-tabs .nav-link {
    color: var(--kt-text-muted);
    min-height: 4rem;
}

.fulfillment-queue-tabs .nav-link.active {
    color: var(--bs-primary);
}

.fulfillment-queue-card .mzh_lg_datatable_searchbar {
    min-height: 3.25rem;
}

.fulfillment-queue-card #mzh_lg_datatable_container {
    overflow-x: auto;
}

.fulfillment-queue-card #mzh_lg_datatable,
.fulfillment-queue-card #mzh_lg_datatable th:first-child,
.fulfillment-queue-card #mzh_lg_datatable td:first-child {
    text-align: left;
    width: auto;
}

.fulfillment-queue-card #mzh_lg_datatable,
.fulfillment-queue-table {
    min-width: 100%;
    width: 100% !important;
}

.fulfillment-queue-table thead th {
    background-color: var(--kt-input-solid-bg);
    border-bottom: 0 !important;
    color: var(--kt-text-muted);
    font-size: var(--zs-font-label, 0.95rem);
    padding-bottom: 1.15rem;
    padding-top: 1.15rem;
    text-transform: uppercase;
}

.fulfillment-queue-table thead th:first-child {
    border-bottom-left-radius: .475rem;
    border-top-left-radius: .475rem;
}

.fulfillment-queue-table thead th:last-child {
    border-bottom-right-radius: .475rem;
    border-top-right-radius: .475rem;
}

.fulfillment-queue-table tbody td {
    padding-bottom: 1.1rem;
    padding-top: 1.1rem;
}

.fulfillment-queue-table tbody tr {
    transition: background-color .15s ease;
}

.fulfillment-queue-table tbody tr.fulfillment-queue-detail-row,
.fulfillment-queue-table tbody tr.fulfillment-queue-detail-row:hover {
    background-color: transparent;
}

.fulfillment-queue-table tbody tr.fulfillment-queue-detail-row td {
    padding-bottom: 0;
    padding-top: 0;
}

/* Visual anchor: left accent border on expanded item rows */
.fulfillment-queue-detail-row .collapse > div {
    border-left: 3px solid var(--bs-gray-200);
    margin-left: 12px;
    background: var(--bs-gray-50, #fafafa);
    border-radius: 0 0 0.375rem 0.375rem;
}

.fulfillment-queue-table tbody tr:hover {
    background-color: var(--kt-input-solid-bg);
}

.fulfillment-queue-table .btn-link:hover {
    color: var(--bs-primary) !important;
}

@media (max-width: 767.98px) {
    .order-v2-page #mzh_lg_datatable,
    .order-v2-page #mzh_lg_datatable tbody,
    .order-v2-page #mzh_lg_datatable tr {
        display: block;
        width: 100%;
    }

    .order-v2-page #mzh_lg_datatable thead {
        display: none;
    }

    .order-v2-page #mzh_lg_datatable tbody tr {
        border-bottom: 1px solid var(--bs-border-color);
        margin-bottom: 0;
        position: relative;
    }

    .order-v2-page #mzh_lg_datatable tbody td {
        display: none;
        padding: 0;
    }

    .order-v2-page #mzh_lg_datatable tbody td:first-child {
        display: block;
        left: 0px;
        position: absolute;
        top: 50px;
        width: auto;
        z-index: 2;
    }

    .order-v2-page #mzh_lg_datatable tbody td:nth-child(3) {
        display: block;
        padding: 25px 15px 18px 30px;
        width: 100%;
    }

    .order-v2-page #mzh_lg_datatable tbody td:nth-child(3) > a,
    .order-v2-page #mzh_lg_datatable tbody td:nth-child(3) > .d-flex {
        display: none !important;
    }

    .order-v2-mobile-summary {
        display: block !important;
    }

    .order-v2-mobile-date {
        color: #4b5675;
        font-size: 0.85rem; /* fs-8 */
        font-weight: 600;
        margin-bottom: 10px;
    }

    .order-v2-mobile-main {
        align-items: center;
        display: flex;
        gap: 12px;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .order-v2-mobile-ref,
    .order-v2-mobile-amount {
        color: #071437;
        font-size: 1.075rem; /* fs-6 */
        font-weight: 800;
        line-height: 1.25;
    }

    .order-v2-mobile-ref {
        min-width: 0;
        overflow-wrap: anywhere;
        text-decoration: none;
    }

    .order-v2-mobile-amount {
        flex: 0 0 auto;
        text-align: right;
        white-space: nowrap;
    }

    .order-v2-mobile-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 12px;
    }

    .order-v2-mobile-badges .badge {
        font-size: 0.85rem; /* fs-8 */
        font-weight: 700;
        padding: 4px 7px;
    }

    .order-v2-mobile-customer {
        color: #071437;
        font-size: 0.85rem; /* fs-8 */
        font-weight: 600;
    }

    .fulfillment-queue-card .card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .fulfillment-queue-card #mzh_lg_datatable_container {
        overflow-x: visible;
    }

    .order-v2-page .fulfillment-queue-card #mzh_lg_datatable tbody tr.fulfillment-queue-main-row {
        display: block;
        margin-bottom: 0;
        padding: 1.25rem;
        width: 100%;
    }

    .order-v2-page .fulfillment-queue-card #mzh_lg_datatable tbody tr.fulfillment-queue-detail-row {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }

    .order-v2-page .fulfillment-queue-card #mzh_lg_datatable tbody tr.fulfillment-queue-main-row td,
    .order-v2-page .fulfillment-queue-card #mzh_lg_datatable tbody tr.fulfillment-queue-detail-row td {
        display: block;
        padding: 0;
        position: static;
        width: 100%;
    }

    .order-v2-page .fulfillment-queue-card #mzh_lg_datatable tbody tr.fulfillment-queue-main-row td::before,
    .order-v2-page .fulfillment-queue-card #mzh_lg_datatable tbody tr.fulfillment-queue-detail-row td::before {
        content: none !important;
        display: none !important;
    }

    .order-v2-page .fulfillment-queue-card #mzh_lg_datatable tbody tr.fulfillment-queue-detail-row:not(:has(.collapse.show)) {
        display: none;
    }

    .order-v2-page .fulfillment-queue-card #mzh_lg_datatable tbody tr.fulfillment-queue-main-row td[data-label="Actions"] {
        margin-top: 1rem;
        text-align: left;
    }

    .order-v2-page .fulfillment-queue-card #mzh_lg_datatable tbody tr.fulfillment-queue-main-row td[data-label="Actions"] > .d-flex {
        justify-content: flex-end !important;
    }

    .fulfillment-queue-shipment-summary {
        padding-top: .5rem;
    }

    .fulfillment-queue-detail-row .collapse > .bg-light {
        margin-bottom: 0 !important;
        padding: 1rem !important;
    }

    .fulfillment-queue-detail-row .bg-body {
        align-items: flex-start !important;
        flex-direction: column;
        gap: .75rem !important;
        padding: 1rem !important;
    }
}

/* ── Summernote editor isolation ────────────────────────────── *
 * KT's style.bundle resets many elements. These rules protect the
 * Summernote editor UI from being overridden.
 */
.note-editor {
    font-family: inherit;
}

.note-editor.note-frame {
    border: 0 !important;
    /*border-radius: 8px !important;*/
    overflow: hidden;
}

.note-editor .note-toolbar {
    background: #f9f9f9 !important;
    border-bottom: 1px solid #e4e6ef !important;
    padding: 5px 0px !important;
    font-size: 9px;
    color: aquamarine;
    min-height: 50px;
    font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    padding: 8px;
    border: 1px solid var(--bs-border-color);
    border-top-left-radius: 1.15rem;
    border-top-right-radius: 1.15rem;
}

.note-editor .note-toolbar .note-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #7e8299;
    height: 28px;
    padding: 0 6px;
}

.note-editor .note-toolbar .note-btn:hover {
    background: #f5f5f5;
    border-color: #e4e6ef;
    color: #181c32;
}

.note-editor .note-toolbar .note-btn.active {
    background: var(--zosify-accent-soft);
    border-color: var(--bs-primary-border-subtle);
    color: var(--zosify-accent-hover);
}

.note-editor .note-editable {
    padding: 16px !important;
    min-height: 180px;
    font-size: var(--bs-body-font-size);
    color: inherit;
    line-height: 1.6;
}

.note-editor .note-statusbar {
    background: #f9f9f9 !important;
    border-top: 1px solid #e4e6ef !important;
}

.note-editor .note-statusbar .note-resizebar {
    cursor: ns-resize;
}

.note-editor .dropdown-menu {
    font-size: 0.95rem;
}

/* fs-7 — toolbar dropdowns one step below body */
.note-editor .note-color-select {
    display: inline-flex;
}

/* ── Product page sticky bottom bar ────────────────────────── */
.product-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 265px; /* aside width */
    right: 0;
    z-index: 100;
    background: var(--zosify-surface, #fff);
    border-top: 1px solid var(--bs-border-color, #e4e6ef);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .product-bottom-bar {
        left: 0;
    }
}

/* ── Tagsinput plugin overrides ──────────────────────────────── */
div.tagsinput {
    background: var(--kt-input-solid-bg, var(--bs-gray-100));
    border: 1px solid var(--kt-input-solid-bg, var(--bs-gray-100));
    border-radius: var(--bs-border-radius);
    padding: 0.375rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.625rem;
    height: auto !important;
}

div.tagsinput:focus-within {
    background: var(--bs-body-bg);
    border-color: var(--bs-primary);
    box-shadow: none;
}

div.tagsinput .tag {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    background: var(--bs-primary-light) !important;
    border: 1px solid var(--bs-primary-light) !important;
    border-radius: var(--bs-border-radius-sm) !important;
    color: var(--bs-primary) !important;
    font-weight: 500;
    line-height: 1;
    padding: 0.3125rem 0.5rem 0.3125rem 0.625rem !important;
    margin: 0 !important;
    white-space: nowrap;
    position: relative;
}

div.tagsinput .tag a {
    color: var(--bs-primary) !important;
    text-decoration: none;
    margin-left: 0.25rem;
    opacity: 0.6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

div.tagsinput .tag a:hover {
    opacity: 1;
}

div.tagsinput .tag a::before {
    content: "×";
    font-size: 1.075rem; /* fs-6 — close × needs to be visible */
    font-weight: 600;
    line-height: 1;
}

div.tagsinput input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    font-size: 0.95rem; /* fs-7 */
    color: #181c32;
    min-width: 140px;
    flex: 1;
    height: 28px;
    padding: 0 !important;
    margin: 0 !important;
}

div.tagsinput .tag a::before {
    background: none !important;
    content: "\00d7";
    display: inline-block;
    font-size: inherit !important;
    font-weight: 600;
    height: auto !important;
    left: auto !important;
    line-height: 1;
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
}

div.tagsinput .tag a::after {
    content: none !important;
    display: none !important;
}

div.tagsinput input {
    color: var(--bs-gray-900);
    font-size: inherit !important;
    height: 1.75rem;
    min-width: 8.75rem;
}

/* ── Product variant options view ───────────────────────────── */
.product-variant-options-view {
    border-top: 1px solid var(--bs-border-color);
}

.product-variant-options-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 14px 16px 8px 52px;
}

.product-variant-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-variant-option-row {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow-sm);
    display: flex;
    align-items: stretch;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow .15s, border-color .15s;
}

.product-variant-option-row:hover {
    border-color: var(--bs-gray-400);
    box-shadow: var(--bs-box-shadow);
}

.product-variant-option-handle {
    align-items: center;
    background: transparent;
    border: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
    cursor: grab;
    display: flex;
    height: auto !important;
    justify-content: center;
    padding: 0 0.75rem;
    position: static !important;
    text-indent: 0 !important;
    color: var(--bs-gray-400);
    width: auto !important;
}

.product-variant-option-handle::before,
.product-variant-option-handle::after {
    content: none !important;
    display: none !important;
}

.product-variant-option-handle:hover {
    color: var(--bs-gray-600);
}

.product-variant-option-handle:active {
    cursor: grabbing;
}

.product-variant-option-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: center;
    flex: 1;
    min-height: 4rem;
    padding: 1rem;
}

@media (max-width: 767px) {
    .product-variant-option-content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
}

/* Chips in view mode */
.product-variant-value-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-variant-value-chip {
    align-items: center;
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    color: var(--bs-gray-900);
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    min-height: 2rem;
    min-width: 2rem;
    padding: 0.25rem 0.75rem;
    justify-content: center;
    transition: background .15s, border-color .15s;
}

.product-variant-value-chip:hover {
    background: var(--bs-primary-light);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.product-variant-value-chip.customize_varinats_type {
    cursor: pointer;
}

.variant-value-style-modal {
    padding: 1.5rem 0 0.5rem;
}

.variant-value-preview,
.variant-value-editor-panel {
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 1rem;
}

.variant-value-preview-swatch,
.variant-color-preview {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    flex-shrink: 0;
}

.variant-value-preview-swatch {
    height: 2.25rem;
    width: 2.25rem;
}

.variant-value-preview-image {
    align-items: center;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    display: flex;
    height: 2.5rem;
    justify-content: center;
    overflow: hidden;
    width: 2.5rem;
}

.variant-value-preview-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.variant-color-control {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.variant-color-preview {
    height: 2.75rem;
    width: 2.75rem;
}

.variant-color-inputs {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.variant-color-native {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    height: 2.75rem;
    padding: 0.25rem;
    width: 3.25rem;
}

.variant-color-native::-webkit-color-swatch-wrapper {
    padding: 0;
}

.variant-color-native::-webkit-color-swatch {
    border: 0;
    border-radius: calc(var(--bs-border-radius) * 0.75);
}

.product-image-alt-list {
    display: grid;
    gap: 1rem;
}

.product-image-alt-row {
    /*align-items: start;*/
    /*background: var(--bs-body-bg);*/
    /*border: 1px solid var(--bs-border-color);*/
    /*border-radius: var(--bs-border-radius);*/
    /*display: grid;*/
    /*gap: 1rem;*/
    /*grid-template-columns: auto minmax(0, 1fr);*/
    /*padding: 1rem;*/
}

.product-image-alt-thumb {
    align-items: center;
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    display: flex;
    height: 5rem;
    justify-content: center;
    overflow: hidden;
    width: 5rem;
}

.product-image-alt-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.product-image-alt-field {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .variant-color-control,
    .variant-color-inputs {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-image-alt-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.product-variant-value-swatch {
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
}

.product-variant-value-image {
    background-size: cover;
    background-position: center;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    display: inline-block;
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
}

/* ── Variant edit form ───────────────────────────────────────── */
.product_variant_options_line_tree {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0 !important;
}

.product_variant_options_line_tree .vl_product_variant_line {
    margin: 0 !important;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 1rem;
}

.product_variant_options_line_tree .vl_product_variant_line + .vl_product_variant_line {
    margin-top: 0.75rem !important;
}

.variant-option-edit-row {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(8rem, 0.75fr) minmax(8rem, 0.65fr) minmax(16rem, 2fr) auto;
}

.variant-option-edit-actions {
    align-self: start;
}

.variant-option-edit-actions.has-label {
    padding-top: 2rem;
}

.variant-option-type-lock {
    position: relative;
}

.variant-option-type-lock .form-select:disabled {
    background-image: none;
    padding-right: 2.5rem;
}

.variant-option-type-lock-icon {
    align-items: center;
    background: var(--kt-input-solid-bg, var(--bs-gray-100));
    color: var(--bs-gray-500);
    cursor: help;
    display: inline-flex;
    height: 100%;
    inset-inline-end: 0.875rem;
    justify-content: center;
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    z-index: 2;
}

.variant-option-type-lock-icon:hover {
    color: var(--bs-primary);
}

/* Tagsinput inside variant edit form */
.product_variant_options_form div.tagsinput {
    background: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

.product_variant_options_form div.tagsinput:focus-within {
    border-color: var(--bs-primary) !important;
}

@media (max-width: 991.98px) {
    .variant-option-edit-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .variant-option-edit-values,
    .variant-option-edit-actions {
        grid-column: 1 / -1;
    }

    .variant-option-edit-actions.has-label {
        padding-top: 0;
    }
}

@media (max-width: 575.98px) {
    .variant-option-edit-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── Variant filter bar ─────────────────────────────────────── */
.product-variant-filter-bar .btn.is-active,
.product-variant-filter-bar button.is-active {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary-inverse) !important;
    box-shadow: var(--bs-box-shadow-sm);
}

/* Product variant detail */
.product-variant-editor-layout {
    align-items: flex-start;
}

.product-variant-nav-card,
.product-variant-detail .card {
    border: 1px solid var(--bs-border-color);
    box-shadow: var(--bs-box-shadow-sm);
}

.product-variant-detail .card {
    border-radius: var(--bs-card-border-radius);
}

.variant-options-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.variant-options-list {
    display: grid;
    gap: 0.75rem;
}

.variant-options-head,
.variant-option-row {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.variant-option-row {
    align-items: center;
}

.variant-image-picker {
    min-width: 8rem;
}

.variant-image-tile {
    align-items: center;
    background: var(--bs-gray-100);
    border: 1px dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    color: var(--bs-gray-500);
    cursor: pointer;
    display: flex;
    justify-content: center;
    min-height: 8rem;
    overflow: hidden;
}

.variant-image-tile:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.variant-image-tile img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.variant-color-swatch {
    border: 1px solid var(--bs-border-color);
}

@media (max-width: 991.98px) {
    .variant-options-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .variant-image-picker {
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .variant-options-head {
        display: none;
    }

    .variant-option-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── Inventory mode toggle ──────────────────────────────────── */
.inventory_add_stock_mode input[type="radio"] {
    display: none;
}

/* ── Product description tabs ───────────────────────────────── */
.product_info_tabs_list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product_info_tabs_list .nav-link {
    color: var(--bs-gray-600);
    border-bottom: 2px solid transparent;
    padding-bottom: 0.625rem;
    margin-right: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.product_info_tabs_list .nav-link.active,
.product_info_tabs_list .nav-link:hover {
    color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
}

.product_info_tabs_list .nav-link h4,
.product_info_tabs_list .nav-link .edit_text_input {
    font-weight: 600;
    margin: 0;
    color: inherit;
    border-bottom: 1px dashed var(--bs-gray-400);
    cursor: pointer;
}

.product_info_tabs_list .nav-link h4:focus,
.product_info_tabs_list .nav-link .edit_text_input:focus {
    outline: none;
    border-bottom-color: var(--bs-primary);
}

.product_info_tabs_list .product-info-tab-remove {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--bs-gray-500);
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.product_info_tabs_list .product-info-tab-remove:hover {
    color: var(--bs-danger);
}

.product_info_tabs_list .nav-link.btn {
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.pd-shortdesc-switch {
    justify-content: flex-end;
}

/* ── SEO preview block ──────────────────────────────────────── */
.seo-preview-block {
    background: #f9f9f9;
}

.seo-preview-block .seo-page-title {
    color: #1a0dab;
    font-size: 1.25rem;
}

/* fs-4 — Google title scale */
.seo-preview-block .text-primary {
    color: #006621 !important;
}

/* ── Input hint / guidance text ─────────────────────────────── */
[data-product-character-guidance],
.product-character-guidance {
    font-size: 0.85rem; /* fs-8 — subtle, below the input */
    color: #a1a5b7;
    margin-top: 4px;
}

[data-product-character-guidance].is-warning,
.product-character-guidance.is-warning {
    color: #b5940a;
}

[data-product-character-guidance].is-good,
.product-character-guidance.is-good {
    color: #3d8f61;
}

.seo-title-hint,
.seo-desc-hint,
.help-block,
.help-block.with-errors {
    font-size: 0.85rem; /* fs-8 */
    color: #a1a5b7;
    margin-top: 4px;
}

/* ── Mobile table card rows ──────────────────────────────────── *
 * Wrap any table in .mzh-mobile-table-wrap to get card-row style
 * on mobile. JS auto-injects data-label from thead.
 */
@media (max-width: 767.98px) {
    .mzh-mobile-table-wrap table {
        min-width: 0 !important;
    }

    .mzh-mobile-table-wrap table thead {
        display: none !important;
    }

    .mzh-mobile-table-wrap table tbody tr {
        display: block !important;
        background: var(--zosify-surface, #fff);
        border: 1px solid #eef1f6;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
        margin-bottom: 10px;
        padding: 12px 16px;
    }

    .mzh-mobile-table-wrap table tbody td {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        padding: 4px 0 !important;
        border: none !important;
        font-size: var(--zs-font-base, 0.95rem); /* fs-7 — comfortable mobile reading */
        gap: 8px;
    }

    .mzh-mobile-table-wrap table tbody td::before {
        content: attr(data-label);
        font-size: var(--zs-font-base, 0.75rem); /* fs-9 — tiny label above value */
        font-weight: 600;
        color: #a1a5b7;
        min-width: 90px;
        flex-shrink: 0;
        padding-top: 1px;
        text-transform: uppercase;
        letter-spacing: .4px;
    }

    .mzh-mobile-table-wrap table tbody td:empty {
        display: none !important;
    }

    /* Amount always right */
    .mzh-mobile-table-wrap table tbody td.td-amount,
    .mzh-mobile-table-wrap table tbody td[data-label="Amount"],
    .mzh-mobile-table-wrap table tbody td[data-label="Total"],
    .mzh-mobile-table-wrap table tbody td[data-label="Price"],
    .mzh-mobile-table-wrap table tbody td[data-label="Refund"] {
        justify-content: flex-end;
        font-weight: 700;
        color: #071437;
    }

    .mzh-mobile-table-wrap table tbody td[data-label="Amount"]::before,
    .mzh-mobile-table-wrap table tbody td[data-label="Total"]::before,
    .mzh-mobile-table-wrap table tbody td[data-label="Price"]::before,
    .mzh-mobile-table-wrap table tbody td[data-label="Refund"]::before {
        display: none;
    }
}

/* ── SEO section ────────────────────────────────────────────── */
.seo-preview-block {
    background: #f9f9f9;
}

.seo-preview-block .seo-page-title {
    color: #1a0dab;
    font-size: 1.25rem;
}

.seo-preview-block .text-primary {
    color: #006621 !important;
}

@media (max-width: 767.98px) {
    .fulfillment-queue-card .mzh-mobile-table-wrap table tbody td::before {
        content: none !important;
        display: none !important;
    }

    .fulfillment-queue-card .fulfillment-queue-table tbody tr.fulfillment-queue-main-row {
        border: 1px solid var(--bs-border-color) !important;
        border-radius: .475rem !important;
        box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
        padding: 1.25rem !important;
    }

    .fulfillment-queue-card .fulfillment-queue-table tbody tr.fulfillment-queue-detail-row {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    .fulfillment-queue-card .fulfillment-queue-table tbody tr.fulfillment-queue-main-row td,
    .fulfillment-queue-card .fulfillment-queue-table tbody tr.fulfillment-queue-detail-row td {
        display: block !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .fulfillment-queue-card .fulfillment-queue-table tbody tr.fulfillment-queue-main-row td + td {
        margin-top: 1rem;
    }

    .fulfillment-queue-card .fulfillment-queue-table tbody tr.fulfillment-queue-main-row td > .d-flex {
        justify-content: flex-end !important;
    }

    .fulfillment-queue-card .fulfillment-queue-table tbody tr.fulfillment-queue-main-row td:first-child > .d-flex {
        justify-content: flex-start !important;
    }
}

/* ── Order detail page components (ported from v1) ─────────── */
.zs-fulfillment-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px
}

.zs-fulfillment-header span {
    color: #667085;
    text-transform: uppercase
}

.zs-fulfillment-header h1 {
    color: var(--zosify-ink, #111827);
    line-height: 1.2;
    margin: 4px 0
}

.zs-fulfillment-header p {
    color: #667085;
    margin: 0
}

@media (max-width: 575.98px) {
    .zs-fulfillment-page {
        margin-left: -12px;
        margin-right: -12px;
        padding: 14px 12px 32px
    }

    .zs-fulfillment-filter, .zs-fulfillment-header {
        align-items: stretch;
        flex-direction: column
    }

    .zs-fulfillment-summary {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

@media (min-width: 768px) {
    .zs-fulfillment-page {
        margin: 0 auto;
        max-width: 1360px;
        padding: 28px 24px 48px
    }

    .zs-fulfillment-header {
        align-items: flex-start;
        margin-bottom: 22px
    }

    .zs-fulfillment-header > div:first-child {
        max-width: 720px
    }

    .zs-fulfillment-header span {
        letter-spacing: .06em
    }

    .zs-fulfillment-header h1 {
        letter-spacing: 0;
        margin: 5px 0 7px
    }

    .zs-fulfillment-header p {
        line-height: 1.55
    }

    .zs-fulfillment-header .btn {
        border-radius: 10px;
        min-height: 40px;
        padding: 10px 14px
    }

    .zs-fulfillment-summary {
        grid-template-columns:repeat(4, minmax(0, 1fr))
    }

    .zs-fulfillment-card, .zs-fulfillment-filter, .zs-fulfillment-table {
        border-color: #e5eaf3;
        box-shadow: none
    }

    .zs-fulfillment-card {
        background: linear-gradient(180deg, #fff, #fbfcff);
        min-height: 118px;
        padding: 18px
    }

    .zs-fulfillment-card span {
        color: #64748b
    }

    .zs-fulfillment-card strong {
        margin-top: 10px
    }

    .zs-fulfillment-card small {
        color: #94a3b8;
        display: block;
        line-height: 1.35;
        margin-top: 6px
    }

    .zs-fulfillment-tabs a {
        padding: 9px 13px
    }

    .zs-fulfillment-actions .btn:focus-visible, .zs-fulfillment-tabs a:focus-visible {
        box-shadow: 0 0 0 3px rgba(124, 58, 237, .18);
        outline: 0
    }

    .zs-fulfillment-filter {
        padding: 14px
    }

    .zs-fulfillment-filter .form-control {
        border-color: #dbe3ef;
        border-radius: 10px;
        min-height: 42px
    }

    .zs-fulfillment-filter .btn {
        border-radius: 10px;
        min-height: 42px;
        padding-left: 18px;
        padding-right: 18px
    }

    .zs-fulfillment-table {
        padding: 10px
    }

    .zs-fulfillment-list {
        gap: 10px
    }

    .zs-fulfillment-row {
        align-items: center;
        border-color: #edf1f7;
        border-radius: 14px;
        gap: 18px;
        grid-template-columns:minmax(210px, 1.2fr) minmax(220px, .95fr) minmax(190px, .85fr) minmax(250px, auto);
        padding: 16px
    }

    .zs-fulfillment-order {
        line-height: 1.25
    }

    .zs-fulfillment-row-main span {
        color: #344054;
        margin-top: 3px
    }

    .zs-fulfillment-row-main small {
        margin-top: 3px
    }

    .zs-fulfillment-pills {
        align-content: center
    }

    .zs-fulfillment-pills span {
        background: var(--zosify-surface-subtle, #f8fafc);
        border-color: #e2e8f0
    }

    .zs-fulfillment-shipping small:first-child {
        color: #94a3b8;
        letter-spacing: .04em;
        line-height: 1.2;
        margin-bottom: 4px;
        text-transform: uppercase
    }

    .zs-fulfillment-shipping strong {
        color: var(--zosify-ink, #111827);
        line-height: 1.3
    }

    .zs-fulfillment-actions {
        gap: 7px;
        justify-content: flex-end
    }

    .zs-fulfillment-actions .btn {
        border-radius: 9px;
        min-height: 34px;
        padding: 8px 11px
    }

    .zs-fulfillment-actions .fulfillment-action-primary {
        background: var(--primary-main);
        border-color: var(--primary-main);
        color: #fff
    }

    .zs-fulfillment-actions .fulfillment-action-secondary {
        background: var(--zosify-surface-subtle, #f8fafc);
        border-color: #e2e8f0;
        color: #344054
    }
}

.order-items-list-card {
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    overflow: hidden
}

.order-items-list {
    margin: 0;
    width: 100%
}

.order-items-list tr + tr {
    border-top: 1px solid #edf0f3
}

.order-items-list td {
    font-size: var(--zs-font-base, var(--order-text));
    padding: 14px;
    vertical-align: middle
}

.order-item-product-row {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0
}

.order-item-row-image {
    background: #f6f7f8;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    height: 42px;
    object-fit: cover;
    width: 42px
}

.order-item-row-title {
    color: #202223;
    display: block;
    font-size: var(--order-text);
    line-height: 1.35
}

.order-item-row-options {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px
}

.order-item-row-meta, .order-item-row-note, .order-item-row-option {
    color: var(--order-muted);
    font-size: var(--order-small)
}

.order-item-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px
}

.order-item-row-money, .order-item-row-total {
    color: #202223;
    font-size: var(--order-text);
    white-space: nowrap
}

.order-item-row-qty {
    align-items: center;
    background: #edf0f2;
    border-radius: 999px;
    color: #5f6368;
    display: inline-flex;
    font-size: var(--order-small);
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 7px
}

.order-summary-label, .order-summary-value {
    color: #202223;
    font-size: var(--order-text)
}

.order-summary-value {
    white-space: nowrap
}

.order-summary-total .order-summary-label, .order-summary-total .order-summary-value {
    color: #0f172a
}

.order-summary-adjust-link {
    color: inherit;
    cursor: pointer;
    text-decoration: none
}

.order-summary-adjust-link:hover {
    color: #0d6efd;
    text-decoration: underline
}

.order-fulfillment-card, .order-payment-card {
    margin-bottom: 18px;
    padding: 16px
}

.order-fulfillment-head, .order-payment-head {
    align-items: center;
    gap: 8px;
    margin-bottom: 10px
}

.order-fulfillment-badges, .order-payment-badges {
    gap: 8px
}

.order-fulfillment-ref, .order-payment-ref {
    color: #202223;
    font-size: var(--order-small)
}

.order-fulfillment-date, .order-payment-date {
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    color: #202223;
    font-size: var(--order-text);
    gap: 8px;
    margin-bottom: 8px;
    padding: 13px
}

.order-fulfillment-items, .order-payment-lines {
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    overflow: hidden
}

.fulfilled-items-list {
    margin: 0;
    width: 100%
}

.fulfilled-items-list tr + tr {
    border-top: 1px solid #edf0f3
}

.fulfilled-items-list td {
    font-size: var(--zs-font-base, var(--order-text));
    padding: 12px 14px;
    vertical-align: middle
}

.fulfilled-item-product {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0
}

.fulfilled-item-image {
    background: #f6f7f8;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    height: 38px;
    object-fit: cover;
    width: 38px
}

.fulfilled-item-title {
    color: #202223;
    display: block;
    font-size: var(--order-text);
    line-height: 1.35
}

.fulfilled-item-options {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px
}

.fulfilled-item-option {
    background: #edf0f2;
    border-radius: 999px;
    color: #585d63;
    font-size: var(--order-small);
    line-height: 1;
    padding: 4px 7px
}

.fulfilled-item-money, .fulfilled-item-total {
    color: #202223;
    font-size: var(--order-text);
    white-space: nowrap
}

.fulfilled-item-qty {
    align-items: center;
    background: #edf0f2;
    border-radius: 999px;
    color: #5f6368;
    display: inline-flex;
    font-size: var(--order-small);
    height: 22px;
    justify-content: center;
    min-width: 22px
}

.order-payment-note {
    color: var(--order-muted);
    font-size: var(--order-small);
    margin-top: 4px
}

.order-track-panel {
    overflow: hidden
}

.order-track-status {
    background: #67addd;
    color: #fff;
    font-size: var(--order-text);
    letter-spacing: 0;
    padding: 18px;
    text-align: center;
    text-transform: uppercase
}

.order-track-list {
    padding: 20px 18px 12px
}

.order-track-item {
    grid-template-columns:120px 42px 1fr;
    min-height: 74px
}

.order-track-date {
    color: #202223;
    font-size: var(--order-small);
    line-height: 1.25
}

.order-track-time {
    color: var(--order-muted);
    font-size: var(--order-small);
    margin-top: 3px
}

.order-track-marker:before {
    background: #e8ebef;
    bottom: 0;
    content: "";
    left: 20px;
    position: absolute;
    top: -24px;
    width: 1px
}

.order-track-item:first-child .order-track-marker:before {
    top: 18px
}

.order-track-item:last-child .order-track-marker:before {
    bottom: auto;
    height: 18px
}

.order-track-dot {
    background: #e8eaed;
    border: 2px solid #f7f8f9;
    color: #8b9299;
    display: flex;
    height: 40px;
    width: 40px
}

.order-track-dot.is-active {
    background: #f4a23b;
    color: #fff
}

.order-track-body {
    padding: 0 0 22px 14px
}

.order-track-title {
    color: #202223;
    font-size: var(--order-text);
    line-height: 1.35
}

.order-track-message {
    color: var(--order-muted);
    font-size: var(--order-small);
    line-height: 1.4;
    margin-top: 3px
}

.order-track-meta {
    align-items: center;
    margin-top: 7px
}

.order-track-chip {
    background: #f1f2f4;
    border-radius: 999px;
    color: #5f6368;
    line-height: 1;
    padding: 5px 7px;
    text-transform: capitalize
}

.order-internal-note-form {
    padding: 16px 18px
}

.order-internal-note-form label {
    color: #202223;
    font-size: var(--zs-font-label, var(--order-small))
}

.order-internal-note-form textarea {
    min-height: 92px;
    resize: vertical
}

.order-internal-note-helper {
    color: var(--order-muted);
    font-size: var(--order-small)
}

@media (max-width: 575.98px) {
    .order-items-list td {
        display: block;
        padding: 10px 12px;
        text-align: left !important
    }

    .order-items-list td:not(:first-child) {
        display: inline-block;
        padding-top: 0
    }

    .order-fulfillment-card, .order-payment-card {
        padding: 12px
    }

    .order-fulfillment-head, .order-payment-head, .order-payment-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px
    }

    .order-fulfillment-ref, .order-payment-ref {
        white-space: normal
    }

    .fulfilled-items-list td {
        display: block;
        padding: 10px 12px;
        text-align: left !important
    }

    .fulfilled-items-list td:not(:first-child) {
        display: inline-block;
        padding-top: 0
    }

    .order-track-list {
        padding: 18px 12px 10px
    }

    .order-track-item {
        grid-template-columns:82px 34px 1fr
    }

    .order-track-dot {
        height: 32px;
        width: 32px
    }

    .order-track-marker:before {
        left: 16px
    }

    .order-internal-note-actions {
        align-items: stretch;
        flex-direction: column
    }
}

.box-style, .card, .customer-panel, .domain-card, .element-box, .mzh-element-box, .order-adjustments-card, .order-fulfillment-card, .order-items-card, .order-payment-card, .purchase-panel, .purchase-summary-card, .tax-card {
    /*border-radius: var(--portal-radius) !important*/
    padding: 8px 0;
}

.fulfilled-item-options, .order-item-row-options {
    color: var(--zos-shell-muted);
    display: block !important;
    line-height: 1.35;
    margin-top: 3px
}

.fulfilled-item-option, .order-item-row-option {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    display: inline !important;
    line-height: inherit !important;
    padding: 0 !important
}

.fulfilled-item-option:not(:last-child):after, .order-item-row-option:not(:last-child):after {
    color: #9aa4b5;
    content: " / "
}

.order-fulfillment-card, .order-payment-card {
    margin-bottom: 12px;
    padding: 14px
}

.order-fulfillment-head, .order-payment-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between
}

.order-fulfillment-badges, .order-payment-badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.order-fulfillment-chip, .order-payment-chip, .order-track-chip {
    align-items: center;
    background: var(--zosify-surface, #fff);
    border: 1px solid #dfe7f1;
    border-radius: 999px;
    color: #40506a;
    display: inline-flex;
    gap: 6px;
    line-height: 1;
    padding: 6px 9px
}

.order-fulfillment-ref, .order-payment-ref {
    color: #61708a;
    white-space: nowrap
}

.order-fulfillment-date, .order-payment-date {
    align-items: center;
    color: #61708a;
    display: flex;
    gap: 7px;
    margin-top: 8px
}

.order-payment-note {
    color: var(--zos-shell-muted);
    margin-top: 2px
}

.order-track-panel {
    display: grid;
    gap: 18px
}

.order-internal-note-form {
    border-radius: 10px;
    padding: 14px
}

.order-internal-note-form label {
    color: var(--zos-shell-text);
    display: block;
    margin-bottom: 8px
}

.order-internal-note-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 8px
}

.order-internal-note-helper {
    color: var(--zos-shell-muted)
}

.order-track-list {
    display: grid;
    gap: 0
}

.order-track-item {
    display: grid;
    grid-template-columns:118px 28px minmax(0, 1fr);
    gap: 12px;
    position: relative
}

.order-track-item:not(:last-child) {
    padding-bottom: 18px
}

.order-track-date {
    color: #61708a;
    padding-top: 2px;
    text-align: right
}

.order-track-time {
    color: #8390a8;
    display: block;
    margin-top: 2px
}

.order-track-marker {
    display: flex;
    justify-content: center;
    position: relative
}

.order-track-marker:before {
    display: none !important
}

.order-track-marker:after {
    background: #dfe7f1;
    content: "";
    inset: 28px auto -18px 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 2px
}

.order-track-item:last-child .order-track-marker:after {
    display: none
}

.order-track-dot {
    align-items: center;
    background: #eef2f7;
    border: 1px solid #d8e0ec;
    border-radius: 50%;
    color: #536078;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    position: relative;
    width: 28px;
    z-index: 1
}

.order-track-dot.is-active {
    background: #eed0f4;
    border-color: #c7d2fe;
    color: var(--zos-shell-primary)
}

.order-track-body {
    background: var(--zosify-surface, #fff);
    border: 1px solid #edf1f6;
    border-radius: 10px;
    padding: 12px
}

.order-track-title {
    color: var(--zos-shell-text)
}

.order-track-message {
    color: var(--zos-shell-muted);
    margin-top: 4px
}

.order-track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px
}

.order-detail-page .fs-6, .order-detail-page .fs-7, .order-detail-page .order-adjustments-table td, .order-detail-page .order-item-row-title, .order-detail-page .order-payment-amount, .order-detail-page .order-payment-label, .order-detail-page .order-summary-label, .order-detail-page .order-summary-value, .order-detail-page .order-track-title {
    font-size: var(--order-detail-text) !important;
    line-height: 1.4
}

.order-detail-page .order-internal-note-helper, .order-detail-page .order-item-row-meta, .order-detail-page .order-item-row-note, .order-detail-page .order-payment-note, .order-detail-page .order-summary-note, .order-detail-page .order-track-chip, .order-detail-page .order-track-date, .order-detail-page .order-track-message, .order-detail-page .payment-empty-note, .order-detail-page .text-gray-400, .order-detail-page .text-gray-500, .order-detail-page .text-gray-600, .order-detail-page .text-gray-700, .order-detail-page .text-muted {
    color: var(--order-detail-muted) !important;
    font-size: var(--order-detail-small) !important;
    line-height: 1.45
}

.order-detail-page .order-detail-source, .order-detail-page .order-fulfillment-chip, .order-detail-page .order-payment-chip, .order-detail-page .order-status-badge, .order-detail-page .order-track-chip {
    letter-spacing: 0
}

.order-detail-page .order-adjustments-table td:last-child, .order-detail-page .order-item-row-total, .order-detail-page .order-payment-amount, .order-detail-page .order-summary-value {
    color: var(--order-detail-ink) !important
}

.order-detail-page .order-items-card .order-notes-box, .order-detail-page .order-items-card .order-summary-wrap, .order-detail-page .order-items-list-card, .order-detail-page .order-payment-lines {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important
}

.order-detail-page .order-items-list tr + tr {
    border-top: 1px solid #edf1f6
}

.order-detail-page .order-items-list td {
    padding: 12px 0 !important
}

.order-detail-page .order-items-list td + td {
    padding-left: 12px !important
}

.order-detail-page .order-payment-card {
    margin-bottom: 0
}

.order-detail-page .order-track-panel {
    gap: 14px
}

.order-detail-page .order-internal-note-form {
    border-radius: 8px
}

.order-detail-page .order-track-body {
    padding: 10px 12px
}

@media (max-width: 991.98px) {
    .order-detail-header {
        display: flex
    }

    .order-detail-desktop-actions {
        justify-content: flex-start;
        margin-top: 12px;
        max-width: none
    }

    .order-track-item {
        grid-template-columns:28px minmax(0, 1fr)
    }

    .order-track-date {
        grid-column: 2;
        order: 2;
        padding-top: 0;
        text-align: left
    }

    .order-track-marker {
        grid-column: 1;
        grid-row: 1/span 2
    }

    .order-track-body {
        grid-column: 2
    }
}

@media (max-width: 575.98px) {
    .order-detail-page {
        --order-detail-title: 15px;
        --order-detail-heading: 13px;
        --order-detail-text: 12px;
        --order-detail-small: 11px
    }

    .order-detail-page .order-detail-header {
        display: block
    }

    .order-detail-page .order-detail-title-row {
        gap: 6px
    }

    .order-detail-page .order-detail-title {
        max-width: calc(100vw - 104px);
        white-space: normal
    }

    .order-detail-page .order-detail-desktop-actions {
        display: none !important
    }

    .order-detail-page .order-detail-mobile-menu-trigger {
        display: inline-flex !important
    }

    .order-detail-page .order-detail-meta-row {
        gap: 8px;
        margin-top: 7px
    }

    .order-detail-page > .d-flex.flex-column.flex-lg-row {
        display: flex !important
    }

    .order-detail-page .flex-lg-row-fluid {
        display: contents
    }

    .order-detail-page .flex-lg-row-fluid > .mzh-element-box {
        order: 1;
        width: 100%
    }

    .order-detail-page .order-items-card {
        order: 1 !important
    }

    .order-detail-page .order-adjustments-section {
        order: 2 !important
    }

    .order-detail-page .order-fulfillment-card {
        order: 3 !important;
        width: 100%
    }

    .order-detail-page .order-payment-section {
        order: 4 !important
    }

    .order-detail-page .order-returns-section {
        order: 5 !important
    }

    .order-detail-page .flex-column.flex-lg-row-auto {
        order: 8;
        width: 100% !important
    }

    .order-detail-page .order-activity-section {
        order: 10 !important;
        width: 100%
    }

    .order-detail-page .order-detail-date {
        font-size: var(--order-detail-small)
    }

    .order-detail-page .order-status-badge {
        min-height: 22px;
        padding: 5px 8px
    }

    .order-detail-page .mzh-element-box {
        border-radius: 8px !important;
        margin-bottom: 10px !important;
        padding: 12px !important
    }

    .order-detail-page .order-items-card .row {
        margin-left: 0;
        margin-right: 0
    }

    .order-detail-page .order-items-card .row > [class*=col-] {
        padding-left: 0;
        padding-right: 0
    }

    .order-detail-page .order-items-list, .order-detail-page .order-items-list tbody, .order-detail-page .order-items-list tr {
        display: block;
        width: 100%
    }

    .order-detail-page .order-items-list tr {
        display: grid;
        grid-template-columns:minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px 0
    }

    .order-detail-page .order-items-list tr + tr {
        border-top: 1px solid #edf1f6
    }

    .order-detail-page .order-items-list td {
        display: block !important;
        padding: 0 !important
    }

    .order-detail-page .order-items-list td:nth-child(2) {
        display: none !important
    }

    .order-detail-page .order-items-list td:nth-child(3) {
        align-self: start;
        text-align: right !important
    }

    .order-detail-page .order-items-list-card {
        overflow: visible
    }

    .order-detail-page .order-items-list tr:first-child {
        padding-top: 0
    }

    .order-detail-page .order-items-list tr:last-child {
        padding-bottom: 0
    }

    .order-detail-page .order-item-product-row {
        align-items: flex-start;
        gap: 9px
    }

    .order-detail-page .order-item-row-image {
        border-radius: 7px;
        height: 36px;
        width: 36px
    }

    .order-detail-page .order-item-row-title {
        display: -webkit-box;
        line-height: 1.3;
        overflow: hidden;
        -webkit-line-clamp: 2
    }

    .order-detail-page .order-item-row-options {
        margin-top: 2px
    }

    .order-detail-page .order-item-row-meta {
        gap: 5px 8px;
        margin-top: 4px
    }

    .order-detail-page .order-item-row-meta span {
        color: #64748b;
        display: inline-flex;
        line-height: 1.25
    }

    .order-detail-page .order-item-row-total {
        display: block;
        line-height: 1.2;
        white-space: nowrap
    }

    .order-detail-page .order-items-card .row {
        display: grid;
        gap: 10px
    }

    .order-detail-page .order-items-card .order-notes-box {
        border-radius: 8px !important
    }

    .order-detail-page .order-items-card .order-notes-box label {
        display: block;
        margin-bottom: 6px
    }

    .order-detail-page .order-notes-box textarea[disabled] {
        border: 1px solid #dfe7f1 !important;
        min-height: 76px
    }

    .order-detail-page .order-summary-wrap {
        background: var(--zosify-surface-subtle, #f8fafc) !important;
        border: 1px solid #e5eaf3 !important;
        border-radius: 8px !important;
        padding: 8px 10px !important
    }

    .order-detail-page .order-summary-wrap .order-summary-table td {
        padding-bottom: 8px !important;
        padding-top: 8px !important
    }

    .order-detail-page .order-summary-label, .order-detail-page .order-summary-value {
        line-height: 1.3
    }

    .order-detail-page .order-adjustments-table, .order-detail-page .order-adjustments-table tbody, .order-detail-page .order-adjustments-table tr {
        display: block;
        width: 100%
    }

    .order-detail-page .order-adjustments-table thead {
        display: none
    }

    .order-detail-page .order-adjustments-table tr {
        display: grid;
        grid-template-columns:minmax(0, 1fr) auto;
        gap: 5px 10px;
        padding: 12px 0
    }

    .order-detail-page .order-adjustments-table tr + tr {
        border-top: 1px solid #edf1f6
    }

    .order-detail-page .order-adjustments-table td {
        border: 0 !important;
        display: block;
        padding: 0 !important
    }

    .order-detail-page .order-adjustments-table td:nth-child(6) {
        grid-column: 2;
        grid-row: 1/span 5;
        line-height: 1.25;
        text-align: right !important;
        white-space: nowrap
    }

    .order-detail-page .order-adjustments-table td:first-child {
        color: #64748b;
        font-size: var(--zs-font-base, var(--order-detail-small)) !important;
        line-height: 1.25
    }

    .order-detail-page .order-adjustments-table td:nth-child(3) {
        line-height: 1.3
    }

    .order-detail-page .order-adjustments-table td:nth-child(5) {
        color: #334155;
        line-height: 1.35
    }

    .order-detail-page .order-adjustments-table td:nth-child(2), .order-detail-page .order-adjustments-table td:nth-child(4) {
        color: #64748b;
        font-size: var(--zs-font-base, var(--order-detail-small)) !important
    }

    .order-detail-page .order-payment-card {
        padding: 12px
    }

    .order-detail-page .order-internal-note-actions, .order-detail-page .order-payment-head, .order-detail-page .order-payment-line {
        align-items: stretch;
        flex-direction: column;
        gap: 8px
    }

    .order-detail-page .order-payment-ref {
        white-space: normal
    }

    .order-detail-page .order-track-list {
        padding: 0
    }

    .order-detail-page .order-track-item {
        gap: 9px;
        grid-template-columns:24px minmax(0, 1fr);
        padding-bottom: 12px
    }

    .order-detail-page .order-track-dot {
        box-shadow: 0 0 0 3px #fff;
        height: 22px;
        width: 22px
    }

    .order-detail-page .order-track-marker:after {
        inset: 24px auto -12px 50%
    }

    .order-detail-page .order-track-date {
        color: #64748b;
        margin-bottom: 5px
    }

    .order-detail-page .order-track-body {
        background: var(--zosify-surface, #fff);
        border: 1px solid #e5eaf3;
        border-radius: 8px;
        padding: 10px
    }

    .order-detail-page .order-track-title {
        line-height: 1.35
    }

    .order-detail-page .order-track-message {
        line-height: 1.4;
        margin-top: 3px
    }

    .order-detail-page .order-track-meta {
        gap: 5px;
        margin-top: 8px
    }

    .order-detail-page .order-track-chip {
        background: var(--zosify-surface-subtle, #f8fafc);
        border: 1px solid #e5eaf3;
        border-radius: 999px;
        color: #526173;
        line-height: 1;
        padding: 5px 7px
    }

    .abandoned-cart-topbar, .draft-create-topbar, .order-list-topbar {
        align-items: flex-start;
        flex-direction: column
    }

    .abandoned-cart-actions, .draft-create-actions, .order-list-actions {
        justify-content: flex-start;
        width: 100%
    }

    .order-fulfillment-head, .order-internal-note-actions, .order-payment-head {
        align-items: flex-start;
        flex-direction: column
    }
}

.zs-order-detail-page {
    color: var(--zosify-ink, #111827);
    min-height: 100vh;
    padding-bottom: 24px
}

.zs-order-detail-page .zs-order-hero {
    align-items: flex-start;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e3e8f2;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 0 22px;
    padding: 28px 4px;
    position: relative;
    z-index: 1
}

.zs-order-detail-page .order-detail-title-wrap {
    align-items: flex-start;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;
    min-width: 0;
    width: auto
}

.zs-order-detail-page .order-detail-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0
}

.zs-order-back, .zs-order-detail-page .order-detail-icon-btn, .zs-order-detail-page .order-detail-nav .btn {
    align-items: center;
    background: var(--zosify-surface, #fff);
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    color: #4b5563;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    width: 38px
}

.zs-order-back:hover, .zs-order-detail-page .order-detail-icon-btn:hover {
    background: var(--zosify-surface-subtle, #f8fafc);
    color: var(--zosify-ink, #111827);
    text-decoration: none
}

.zs-order-detail-page .order-detail-title {
    color: var(--zosify-ink, #111827);
    display: block;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.zs-order-detail-page .order-detail-date, .zs-order-subtitle {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.35;
    margin-top: 4px
}

.zs-order-detail-page .order-detail-meta-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 16px;
    padding-left: 50px
}

.zs-order-detail-page .order-detail-desktop-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    margin-left: auto
}

.zs-order-detail-page .order-detail-nav {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: 0
}

.zs-order-detail-page .zs-order-card {
    background: var(--zosify-surface, #fff);
    border: 1px solid #e3e8f2;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
    margin-bottom: 18px;
    overflow: hidden;
    padding: 18px !important
}

.zs-order-detail-page .order-detail-actions-menu .dropdown-item, .zs-order-detail-page .order-detail-actions-trigger, .zs-order-detail-page .order-detail-menu .menu-link {
    align-items: center;
    display: flex;
    gap: 10px;
    line-height: 1.3;
    min-height: 38px
}

.zs-order-detail-page .order-detail-actions-menu {
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    min-width: 220px;
    padding: 8px
}

.zs-order-detail-page .order-detail-actions-menu .dropdown-item {
    border-radius: 10px;
    color: #344054;
    padding: 10px 12px
}

.zs-order-detail-page .order-detail-actions-menu .dropdown-item i, .zs-order-detail-page .order-detail-menu .menu-link i {
    color: var(--primary-main);
    text-align: center;
    width: 16px
}

.zs-order-detail-page .zs-order-card .text-gray-800, .zs-order-detail-page .zs-order-card .text-gray-900, .zs-order-detail-page .zs-order-card h2, .zs-order-detail-page .zs-order-card h3 {
    color: var(--zosify-ink, #111827) !important;
    line-height: 1.3
}

.zs-order-detail-page .order-activity-section h2, .zs-order-detail-page .order-items-header .text-gray-900, .zs-order-detail-page .zs-order-customer-card > .d-flex:first-child h2, .zs-order-detail-page .zs-order-meta-card h2, .zs-order-detail-page .zs-order-section-title {
    color: var(--zosify-ink, #111827) !important;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0
}

.zs-order-detail-page .zs-order-customer-card h3 {
    color: var(--zosify-ink, #111827) !important;
    line-height: 1.35;
    margin: 0
}

.zs-order-detail-page .zs-order-card .text-gray-600, .zs-order-detail-page .zs-order-card .text-gray-700, .zs-order-detail-page .zs-order-card .text-muted {
    color: #667085 !important
}

.zs-order-activity > .d-flex:first-child, .zs-order-customer-card > .d-flex:first-child, .zs-order-fulfillment-section .order-fulfillment-section-head, .zs-order-meta-card > .d-flex:first-child, .zs-order-payment-card > .d-flex:first-child, .zs-order-summary-card .order-items-header {
    border-bottom: 1px solid #edf1f7;
    margin: -18px -18px 16px;
    padding: 16px 18px
}

.zs-order-items-list {
    border-collapse: collapse;
    width: 100%
}

.zs-order-items-list tr {
    border-bottom: 1px solid #edf1f7
}

.zs-order-items-list tr:last-child {
    border-bottom: 0
}

.zs-order-items-list td {
    padding: 14px 0;
    vertical-align: top
}

.zs-order-items-list td:first-child {
    padding-right: 14px;
    width: 100%
}

.zs-order-items-list td:nth-child(2) {
    color: #667085;
    min-width: 116px
}

.zs-order-items-list td:last-child {
    min-width: 110px
}

.zs-order-detail-page .order-item-product-row {
    align-items: flex-start;
    display: flex;
    gap: 12px
}

.zs-order-detail-page .order-item-row-image {
    border: 1px solid #edf1f7;
    border-radius: 12px;
    height: 58px;
    object-fit: cover;
    width: 58px
}

.zs-order-detail-page .order-item-row-title {
    color: var(--zosify-ink, #111827);
    display: block;
    line-height: 1.35
}

.zs-order-detail-page .order-item-row-meta, .zs-order-detail-page .order-item-row-note, .zs-order-detail-page .order-item-row-options {
    color: #667085;
    line-height: 1.45;
    margin-top: 4px
}

.zs-order-detail-page .order-item-row-money, .zs-order-detail-page .order-item-row-total {
    color: var(--zosify-ink, #111827)
}

.zs-order-detail-page .order-notes-box {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid #e5ebf3;
    border-radius: 14px;
    padding: 12px
}

.zs-order-detail-page .order-notes-box textarea {
    background: var(--zosify-surface, #fff);
    border-color: #dbe3ef;
    border-radius: 12px;
    color: #344054
}

.zs-order-summary-table .order-summary-label, .zs-order-summary-table .order-summary-note {
    color: #667085;
    display: block
}

.zs-order-summary-table .order-summary-value {
    color: var(--zosify-ink, #111827)
}

.zs-order-summary-table tr:last-child .order-summary-label, .zs-order-summary-table tr:last-child .order-summary-value {
    color: var(--zosify-ink, #111827)
}

.zs-order-detail-page .order-adjustments-table {
    min-width: 0
}

.zs-order-detail-page .order-adjustments-table th {
    color: #667085;
    text-transform: uppercase
}

.zs-order-detail-page .order-adjustments-table td {
    color: #273149;
    vertical-align: top
}

.zs-order-detail-page .order-fulfillment-head, .zs-order-detail-page .order-payment-head {
    align-items: flex-start;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px
}

.zs-order-detail-page .order-fulfillment-badges, .zs-order-detail-page .order-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.zs-order-detail-page .order-fulfillment-chip, .zs-order-detail-page .order-payment-chip {
    align-items: center;
    background: #f3f6fb;
    border: 1px solid #e3e8f2;
    border-radius: 999px;
    color: #344054;
    display: inline-flex;
    gap: 6px;
    padding: 7px 10px
}

.zs-order-detail-page .order-fulfillment-date, .zs-order-detail-page .order-payment-date {
    align-items: flex-start;
    color: #344054;
    display: flex;
    gap: 10px;
    margin: 8px 0
}

.zs-order-detail-page .order-fulfillment-ref, .zs-order-detail-page .order-payment-ref {
    color: #475467;
    line-height: 1.4;
    max-width: 220px;
    text-align: right;
    word-break: break-word
}

.zs-order-detail-page .order-fulfillment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px
}

.zs-order-detail-page .order-fulfillment-track-btn, .zs-order-detail-page .zs-order-activity-toggle {
    align-items: center;
    background: var(--zosify-surface, #fff);
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    color: #155eef;
    display: inline-flex;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    text-decoration: none
}

.zs-order-payment-card .order-payment-card {
    box-shadow: none;
    margin: 0;
    padding: 0
}

.zs-order-detail-page .order-payment-amount, .zs-order-detail-page .order-payment-label, .zs-order-detail-page .order-payment-ref {
    color: var(--zosify-ink, #111827)
}

.zs-order-detail-page .order-payment-note, .zs-order-detail-page .payment-empty-note {
    color: #667085;
    line-height: 1.45
}

.zs-order-customer-card .symbol {
    background: #ede9fe;
    border-radius: 999px;
    height: 48px !important;
    overflow: hidden;
    width: 48px !important
}

.zs-order-customer-card .separator {
    border-color: #edf1f7
}

.zs-order-customer-card table {
    margin: 0
}

.zs-order-customer-card td {
    border: 0;
    color: #344054 !important;
    padding: 2px 0 !important
}

.zs-order-detail-page .order-returns-section .border-bottom {
    border-color: #edf1f7 !important;
    gap: 12px
}

.zs-order-detail-page .order-returns-section strong {
    color: var(--zosify-ink, #111827)
}

.zs-order-detail-page .order-returns-section .btn {
    border-radius: 10px;
    min-height: 34px;
    padding: 7px 12px
}

.zs-order-meta-card .d-flex.justify-content-between.mb-3 {
    align-items: flex-start;
    gap: 12px
}

.zs-order-meta-card .fw-semibold {
    color: #667085 !important
}

.zs-order-meta-card .fw-bold {
    color: var(--zosify-ink, #111827) !important
}

.zs-order-activity .order-track-panel {
    background: transparent;
    border: 0;
    padding: 0
}

.zs-order-activity .order-internal-note-form {
    margin-bottom: 16px;
    padding: 12px
}

.zs-order-activity .order-internal-note-form label {
    color: #344054
}

.zs-order-activity .order-internal-note-form textarea {
    background: var(--zosify-surface, #fff);
    border-color: #dbe3ef;
    border-radius: 12px;
    color: #344054;
    line-height: 1.45;
    min-height: 92px
}

.zs-order-activity .order-internal-note-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 8px
}

.zs-order-activity .order-internal-note-helper {
    color: #667085;
    line-height: 1.4
}

.zs-order-activity .order-internal-note-actions .btn {
    border-radius: 11px;
    min-height: 36px;
    padding: 8px 14px
}

.zs-order-activity .order-track-list {
    display: grid;
    gap: 0
}

.zs-order-activity .order-track-item {
    display: grid;
    gap: 10px;
    grid-template-columns:74px 24px minmax(0, 1fr);
    position: relative
}

.zs-order-activity .order-track-marker:before {
    background: #e5ebf3;
    bottom: -8px;
    content: "";
    left: 11px;
    position: absolute;
    top: 24px;
    width: 2px
}

.zs-order-activity .order-track-item:last-child .order-track-marker:before {
    display: none
}

.zs-order-activity .order-track-date {
    color: #667085;
    line-height: 1.4;
    padding-top: 3px
}

.zs-order-activity .order-track-time {
    display: block
}

.zs-order-activity .order-track-dot {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #d7e7ff;
    border-radius: 999px;
    color: #155eef;
    display: flex;
    height: 24px;
    justify-content: center;
    position: relative;
    width: 22px;
    z-index: 1
}

.zs-order-activity .order-track-body {
    background: linear-gradient(180deg, #fff, #fbfcff);
    border: 1px solid #edf1f7;
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 12px
}

.zs-order-activity .order-track-title {
    color: var(--zosify-ink, #111827);
    line-height: 1.35
}

.zs-order-activity .order-track-message {
    color: #667085;
    line-height: 1.45;
    margin-top: 5px
}

.zs-order-activity .order-track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px
}

.zs-order-activity .order-track-chip {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid #e5ebf3;
    border-radius: 999px;
    color: #667085;
    padding: 4px 8px;
    text-transform: capitalize
}

@media (min-width: 992px) {
    .zs-order-detail-page {
        padding: 18px
    }

    .zs-order-detail-page .zs-order-hero {
        position: relative
    }

    .zs-order-layout > .flex-lg-row-fluid {
        max-width: calc(100% - 340px)
    }

    .zs-order-layout > .flex-column {
        flex: 0 0 320px;
        width: 320px !important
    }
}

@media (max-width: 991.98px) {
    .zs-order-detail-page {
        display: flex;
        flex-direction: column;
        margin-left: -12px;
        margin-right: -12px;
        padding: 10px 12px 24px
    }

    .zs-order-detail-page .zs-order-hero {
        background: #f4f6fa;
        border: 0;
        border-bottom: 1px solid #e3e8f2;
        border-radius: 0;
        box-shadow: none;
        margin: 0 0 18px;
        padding: 8px 0 24px;
        position: relative
    }

    .zs-order-detail-page .order-detail-title-wrap {
        display: grid;
        column-gap: 10px;
        row-gap: 8px;
        grid-template-columns:42px minmax(0, 1fr) 42px;
        grid-template-rows:58px 42px;
        width: 100%
    }

    .zs-order-detail-page .order-detail-meta-row, .zs-order-detail-page .order-detail-status-row, .zs-order-detail-page .order-detail-title-row {
        display: contents
    }

    .zs-order-detail-page .zs-order-back {
        align-self: center;
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        position: static
    }

    .zs-order-detail-page .order-detail-date, .zs-order-detail-page .order-detail-nav {
        display: none
    }

    .zs-order-title-block {
        align-self: center;
        grid-column: 1/-1;
        grid-row: 1;
        padding-left: 64px;
        padding-right: 50px;
        text-align: left
    }

    .zs-order-detail-page .order-detail-status-row {
        align-items: center;
        display: flex;
        gap: 10px;
        justify-content: space-between;
        padding-left: 0;
        width: 100%
    }

    .zs-order-detail-page .order-detail-mobile-menu-trigger {
        align-self: center;
        display: inline-flex !important;
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        position: static;
        z-index: 3
    }

    .zs-order-detail-page .zs-order-status-pills {
        align-self: center;
        grid-column: 2;
        grid-row: 2;
        justify-self: start
    }

    .zs-order-detail-page .order-detail-desktop-actions {
        display: none
    }

    .zs-order-detail-page .zs-order-card {
        border-radius: 16px;
        margin-bottom: 14px;
        padding: 14px !important
    }

    .zs-order-detail-page .zs-order-collapsible-card {
        padding: 0 !important
    }

    .zs-order-activity > .d-flex:first-child, .zs-order-customer-card > .d-flex:first-child, .zs-order-fulfillment-section .order-fulfillment-section-head, .zs-order-meta-card > .d-flex:first-child, .zs-order-payment-card > .d-flex:first-child, .zs-order-summary-card .order-items-header {
        margin: -14px -14px 14px;
        padding: 14px
    }

    .zs-order-section-summary {
        min-height: 54px;
        padding: 14px
    }

    .zs-order-section-status {
        max-width: 52vw
    }

    .zs-order-collapsible-body {
        padding: 14px
    }

    .zs-order-layout {
        display: contents !important
    }

    .zs-order-layout > .flex-column, .zs-order-layout > .flex-lg-row-fluid {
        display: contents
    }

    .zs-order-summary-card {
        order: 10
    }

    .order-adjustments-section {
        order: 20
    }

    .zs-order-fulfillment-section {
        order: 30
    }

    .zs-order-payment-card {
        order: 40
    }

    .order-returns-section {
        order: 50
    }

    .zs-order-customer-card {
        order: 60
    }

    .zs-order-meta-card {
        order: 70
    }

    .zs-order-activity {
        order: 90
    }

    .zs-order-detail-page .order-items-list-card, .zs-order-detail-page .table-responsive {
        overflow-x: visible
    }

    .zs-order-items-list tr {
        display: grid;
        grid-template-columns:minmax(0, 1fr) auto;
        gap: 12px;
        padding: 14px 0
    }

    .zs-order-items-list td {
        display: block;
        padding: 0 !important
    }

    .zs-order-items-list td:nth-child(2) {
        display: none
    }

    .zs-order-items-list td:last-child {
        min-width: 86px;
        text-align: right !important
    }

    .zs-order-detail-page .order-item-product-row {
        gap: 10px
    }

    .zs-order-detail-page .order-item-row-image {
        height: 52px;
        width: 52px
    }

    .zs-order-detail-page .order-notes-box, .zs-order-detail-page .order-summary-wrap {
        margin-top: 14px
    }

    .zs-order-detail-page .order-adjustments-table thead {
        display: none
    }

    .zs-order-detail-page .order-adjustments-table, .zs-order-detail-page .order-adjustments-table tbody, .zs-order-detail-page .order-adjustments-table td, .zs-order-detail-page .order-adjustments-table tr {
        display: block;
        width: 100%
    }

    .zs-order-detail-page .order-adjustments-table tr {
        border-bottom: 1px solid #edf1f7;
        display: grid;
        gap: 4px 12px;
        grid-template-columns:minmax(0, 1fr) auto;
        padding: 12px 0
    }

    .zs-order-detail-page .order-adjustments-table tr:last-child {
        border-bottom: 0
    }

    .zs-order-detail-page .order-adjustments-table td {
        padding: 0 !important
    }

    .zs-order-detail-page .order-adjustments-table td:nth-child(2), .zs-order-detail-page .order-adjustments-table td:nth-child(4) {
        color: #667085
    }

    .zs-order-detail-page .order-adjustments-table td:nth-child(6) {
        grid-column: 2;
        grid-row: 1/span 3;
        text-align: right !important
    }

    .zs-order-activity .order-internal-note-actions {
        align-items: stretch;
        flex-direction: column
    }

    .zs-order-activity .order-internal-note-actions .btn {
        width: 100%
    }

    .zs-order-activity:not(.is-expanded) .zs-order-timeline-item:nth-child(n+7) {
        display: none
    }

    .zs-order-detail-page .order-detail-icon-btn {
        background: #cf2fd7;
        border-color: #cf2fd7;
        box-shadow: 0 10px 22px rgba(207, 47, 215, .22);
        color: #fff
    }
}

@media (max-width: 575.98px) {
    .zs-order-status-pills {
        gap: 6px
    }

    .zs-order-status-pills .order-status-badge {
        padding: 7px 9px
    }

    .zs-order-detail-page .order-track-item {
        grid-template-columns:22px minmax(0, 1fr)
    }

    .zs-order-activity .order-track-date {
        grid-column: 2;
        padding-top: 0
    }

    .zs-order-activity .order-track-marker {
        grid-column: 1;
        grid-row: 1/span 2
    }

    .zs-order-activity .order-track-body {
        grid-column: 2
    }
}

.zs-communication-status-pill, .zs-communication-type-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap
}

.zo-order-detail-v2 {
    --zo-purple: var(--primary-main);
    --zo-purple-soft: #f1e8ff;
    --zo-ink: var(--zosify-ink, #111827);
    --zo-body: #344054;
    --zo-muted: #667085;
    --zo-border: #e4e7ec;
    --zo-bg: var(--zosify-surface-subtle, #f7f8fb);
    background: var(--zo-bg);
    color: var(--zo-body);
    line-height: 20px;
    margin: 0 auto;
    max-width: 1440px;
    padding: 24px
}

.zo-order-detail-v2 .zo-order-page-header {
    margin-bottom: 22px
}

.zo-order-detail-v2 .zo-back-link {
    align-items: center;
    color: var(--zo-muted);
    display: inline-flex;
    gap: 8px;
    margin-bottom: 12px;
    text-decoration: none
}

.zo-order-detail-v2 .zo-back-link:hover {
    color: var(--zo-purple)
}

.zo-order-detail-v2 .zo-order-header-row {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between
}

.zo-order-detail-v2 .zo-order-title-block {
    min-width: 0
}

.zo-order-detail-v2 .zo-order-title-block h1 {
    color: var(--zo-ink);
    letter-spacing: 0;
    line-height: 36px;
    margin: 0;
    overflow-wrap: anywhere
}

.zo-order-detail-v2 .zo-order-title-line {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0
}

.zo-order-detail-v2 .zo-order-title-block p {
    color: var(--zo-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    line-height: 13px;
    margin: 7px 6px 0
}

.zo-order-detail-v2 .zo-order-title-block p span + span:before {
    content: "\00B7";
    margin-right: 8px
}

.zo-order-detail-v2 .zo-order-actions, .zo-order-detail-v2 .zo-status-chip-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.zo-order-detail-v2 .zo-status-chip-row {
    margin-top: 12px
}

.zo-order-detail-v2 .zo-order-actions {
    justify-content: flex-end
}

.zo-order-detail-v2 .zo-order-actions .zo-icon-btn {
    display: inline-flex
}

.zo-order-detail-v2 .btn-sm, .zo-order-detail-v2 .order-detail-actions-trigger, .zo-order-detail-v2 .zo-icon-btn, .zo-order-detail-v2 .zo-small-btn {
    align-items: center;
    border: 1px solid var(--zo-border);
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    line-height: 16px;
    min-height: 36px;
    padding: 9px 12px;
    text-decoration: none
}

.zo-order-detail-v2 .zo-icon-btn {
    background: var(--zosify-surface, #fff);
    color: var(--zo-body);
    width: 36px
}

.zo-order-detail-v2 .zo-icon-btn.disabled {
    opacity: .45;
    pointer-events: none
}

.zo-order-detail-v2 .zo-order-detail-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns:minmax(0, 1fr) 340px
}

.zo-order-detail-v2 .zo-order-main-column, .zo-order-detail-v2 .zo-order-side-column {
    display: grid;
    gap: 16px;
    min-width: 0
}

.zo-order-detail-v2 .zo-order-side-column {
    position: sticky;
    top: 18px
}

.zo-order-detail-v2 .zo-card, .zo-order-detail-v2 .zo-side-card, .zo-order-detail-v2 .zs-order-card {
    background: var(--zosify-surface, #fff) !important;
    border: 1px solid var(--zo-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
    margin: 0 !important;
    padding: 20px !important
}

.zo-order-detail-v2 .zo-side-card {
    display: grid;
    gap: 14px
}

.zo-order-detail-v2 .zo-order-progress-card {
    display: grid;
    gap: 18px;
    padding-bottom: 18px !important
}

.zo-order-detail-v2 .zo-order-progress-head h2 {
    align-items: center;
    color: var(--zo-ink) !important;
    display: inline-flex;
    gap: 10px;
    line-height: 22px !important;
    margin: 0
}

.zo-order-detail-v2 .zo-order-progress-head h2 i {
    align-items: center;
    background: var(--zo-purple-soft);
    border-radius: 7px;
    color: var(--zo-purple);
    display: inline-flex;
    height: 22px;
    justify-content: center;
    width: 22px
}

.zo-order-detail-v2 .zo-order-progress-steps {
    display: grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    padding: 0 8px
}

.zo-order-detail-v2 .zo-order-progress-step {
    display: grid;
    gap: 8px;
    justify-items: center;
    position: relative;
    text-align: center
}

.zo-order-detail-v2 .zo-order-progress-step:after, .zo-order-detail-v2 .zo-order-progress-step:before {
    background: #d7dde8;
    content: "";
    height: 2px;
    position: absolute;
    top: 10px;
    width: calc(50% - 10px)
}

.zo-order-detail-v2 .zo-order-progress-step:before {
    left: 0
}

.zo-order-detail-v2 .zo-order-progress-step:after {
    right: 0
}

.zo-order-detail-v2 .zo-order-progress-step:first-child:before, .zo-order-detail-v2 .zo-order-progress-step:last-child:after {
    display: none
}

.zo-order-detail-v2 .zo-order-progress-step.is-complete:after, .zo-order-detail-v2 .zo-order-progress-step.is-complete:before, .zo-order-detail-v2 .zo-order-progress-step.is-current:before {
    background: var(--zo-purple)
}

.zo-order-detail-v2 .zo-order-progress-step span {
    align-items: center;
    background: var(--zosify-surface, #fff);
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #98a2b3;
    display: inline-flex;
    height: 22px;
    justify-content: center;
    position: relative;
    width: 22px;
    z-index: 1
}

.zo-order-detail-v2 .zo-order-progress-step span i {
    line-height: 1
}

.zo-order-detail-v2 .zo-order-progress-step.is-complete span {
    background: var(--zo-purple);
    border-color: var(--zo-purple);
    color: #fff
}

.zo-order-detail-v2 .zo-order-progress-step.is-current span {
    border-color: var(--zo-purple);
    box-shadow: 0 0 0 4px rgba(125, 46, 255, .16);
    color: var(--zo-purple)
}

.zo-order-detail-v2 .zo-order-progress-step strong {
    color: #667085;
    line-height: 16px
}

.zo-order-detail-v2 .zo-order-progress-step.is-complete strong, .zo-order-detail-v2 .zo-order-progress-step.is-current strong {
    color: var(--zo-ink)
}

.zo-order-detail-v2 .order-items-header, .zo-order-detail-v2 .zo-side-card-header, .zo-order-detail-v2 .zs-order-activity > .d-flex:first-child, .zo-order-detail-v2 .zs-order-communication-card > .d-flex:first-child, .zo-order-detail-v2 .zs-order-intelligence-card > .d-flex:first-child, .zo-order-detail-v2 .zs-order-section-summary {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between
}

.zo-order-detail-v2 .card-title h2, .zo-order-detail-v2 .zo-side-card-header h3, .zo-order-detail-v2 h2, .zo-order-detail-v2 h3 {
    color: var(--zo-ink) !important;
    letter-spacing: 0;
    line-height: 22px !important;
    margin: 0 !important
}

.zo-order-detail-v2 .order-fulfillment-chip, .zo-order-detail-v2 .order-payment-chip, .zo-order-detail-v2 .order-status-badge, .zo-order-detail-v2 .order-track-chip, .zo-order-detail-v2 .zo-chip, .zo-order-detail-v2 .zo-message-badge, .zo-order-detail-v2 .zo-risk-badge, .zo-order-detail-v2 .zs-communication-status-pill, .zo-order-detail-v2 .zs-communication-type-chip, .zo-order-detail-v2 .zs-order-alert-pill, .zo-order-detail-v2 .zs-order-risk-pill, .zo-order-detail-v2 .zs-order-section-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    line-height: 16px !important;
    min-height: 26px;
    padding: 5px 10px !important;
    white-space: nowrap
}

.zo-order-detail-v2 .zo-chip i, .zo-order-detail-v2 .zo-message-badge i, .zo-order-detail-v2 .zo-risk-badge i {
    margin-right: 6px
}

.zo-order-detail-v2 button.zo-message-badge, .zo-order-detail-v2 button.zo-risk-badge {
    border: 1px solid transparent;
    cursor: pointer
}

.zo-order-detail-v2 .zo-risk-badge-low {
    background: #ecfdf3 !important;
    color: #166534 !important
}

.zo-order-detail-v2 .zo-risk-badge-medium {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
    color: #c2410c !important
}

.zo-order-detail-v2 .zo-risk-badge-high {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #b42318 !important
}

.zo-order-detail-v2 .zo-message-badge {
    background: #eef4ff !important;
    border-color: #d1e0ff !important;
    color: #175cd3 !important
}

.zo-order-detail-v2 .zo-message-badge-warning {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
    color: #c2410c !important
}

.zo-order-detail-v2 .order-status-badge-success, .zo-order-detail-v2 .zo-chip-success {
    background: #dcfce7 !important;
    color: #166534 !important
}

.zo-order-detail-v2 .order-status-badge-info, .zo-order-detail-v2 .zo-chip-info {
    background: #ede9fe !important;
    color: #5b21b6 !important
}

.zo-order-detail-v2 .order-status-badge-warning, .zo-order-detail-v2 .zo-chip-warning {
    background: #fef3c7 !important;
    color: #92400e !important
}

.zo-order-detail-v2 .order-status-badge-danger, .zo-order-detail-v2 .zo-chip-danger {
    background: #fee2e2 !important;
    color: #991b1b !important
}

.zo-order-detail-v2 .order-status-badge-neutral, .zo-order-detail-v2 .zo-chip-neutral {
    background: #f2f4f7 !important;
    color: #475467 !important
}

.zo-order-detail-v2 .order-items-list-card {
    background: transparent;
    border: 0;
    padding: 0
}

.zo-order-detail-v2 .zs-order-items-list {
    border-collapse: collapse;
    width: 100%
}

.zo-order-detail-v2 .zs-order-items-list tr {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns:minmax(0, 1fr) minmax(120px, auto) minmax(120px, auto);
    padding: 18px 0
}

.zo-order-detail-v2 .zs-order-items-list tr + tr {
    border-top: 1px solid #edf1f7
}

.zo-order-detail-v2 .zs-order-items-list td {
    border: 0 !important;
    padding: 0 !important;
    vertical-align: top
}

.zo-order-detail-v2 .zs-order-items-list td:nth-child(2), .zo-order-detail-v2 .zs-order-items-list td:nth-child(3) {
    padding-top: 2px !important
}

.zo-order-detail-v2 .order-item-product-row {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    min-width: 0
}

.zo-order-detail-v2 .order-item-row-image {
    background: #f2f4f7;
    border: 1px solid var(--zo-border);
    border-radius: 12px;
    flex: 0 0 auto;
    height: 56px;
    object-fit: cover;
    width: 56px
}

.zo-order-detail-v2 .order-item-row-title, .zo-order-detail-v2 .order-item-row-total, .zo-order-detail-v2 .order-payment-amount, .zo-order-detail-v2 .order-summary-value {
    color: var(--zo-ink) !important;
    line-height: 20px !important
}

.zo-order-detail-v2 .order-item-row-title {
    display: block;
    letter-spacing: 0;
    margin-bottom: 4px
}

.zo-order-detail-v2 .order-item-row-money, .zo-order-detail-v2 .order-item-row-qty {
    color: var(--zo-ink);
    line-height: 18px;
    white-space: nowrap
}

.zo-order-detail-v2 .order-item-row-qty {
    align-items: center;
    background: #f2f4f7;
    border-radius: 999px;
    color: var(--zo-muted);
    display: inline-flex;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 7px
}

.zo-order-detail-v2 .order-item-row-meta, .zo-order-detail-v2 .order-item-row-note, .zo-order-detail-v2 .order-item-row-options, .zo-order-detail-v2 .order-summary-note, .zo-order-detail-v2 .payment-empty-note, .zo-order-detail-v2 .text-muted, .zo-order-detail-v2 .zo-muted {
    color: var(--zo-muted) !important;
    line-height: 16px !important
}

.zo-order-detail-v2 .order-item-row-meta, .zo-order-detail-v2 .order-item-row-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px
}

.zo-order-detail-v2 .order-item-row-meta span + span:before {
    color: #cbd5e1;
    content: "\2022";
    margin-right: 8px
}

.zo-order-detail-v2 .order-items-card .row {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns:minmax(260px, 1fr) minmax(320px, 380px);
    margin-left: 0;
    margin-right: 0
}

.zo-order-detail-v2 .order-items-card .row > [class*=col-] {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: auto
}

.zo-order-detail-v2 .order-notes-box textarea[disabled] {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid var(--zo-border);
    border-radius: 12px;
    color: var(--zo-body);
    min-height: 112px;
    resize: none
}

.zo-order-detail-v2 .order-notes-box label {
    color: var(--zo-muted) !important;
    letter-spacing: 0;
    line-height: 16px !important
}

.zo-order-detail-v2 .order-summary-wrap {
    background: #fbfcff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 14px 16px
}

.zo-order-detail-v2 .zos-order-total-list {
    display: grid;
    gap: 0;
    width: 100%
}

.zo-order-detail-v2 .zos-order-total-row {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns:minmax(0, 1fr) max-content;
    padding: 8px 0
}

.zo-order-detail-v2 .zos-order-total-row--discount .order-summary-label, .zo-order-detail-v2 .zos-order-total-row--discount .order-summary-value {
    color: #b42318 !important
}

.zo-order-detail-v2 .zos-order-total-row--final {
    border-top: 1px solid var(--zo-border);
    margin-top: 7px;
    padding-top: 13px
}

.zo-order-detail-v2 .zos-order-total-row--final .order-summary-label, .zo-order-detail-v2 .zos-order-total-row--final .order-summary-value {
    color: var(--zo-ink) !important;
    line-height: 23px !important
}

.zo-order-detail-v2 .zos-order-total-label, .zo-order-detail-v2 .zos-order-total-value {
    min-width: 0
}

.zo-order-detail-v2 .zos-order-total-value {
    text-align: right
}

.zo-order-detail-v2 .zs-order-summary-table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    width: 100%
}

.zo-order-detail-v2 .zs-order-summary-table thead {
    display: none
}

.zo-order-detail-v2 .zs-order-summary-table tbody, .zo-order-detail-v2 .zs-order-summary-table tr {
    display: block;
    width: 100%
}

.zo-order-detail-v2 .zs-order-summary-table tr {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns:minmax(0, 1fr) max-content;
    padding: 9px 0
}

.zo-order-detail-v2 .zs-order-summary-table td {
    border: 0 !important;
    display: block;
    padding: 0 !important;
    text-align: left !important
}

.zo-order-detail-v2 .zs-order-summary-table td:last-child {
    text-align: right !important
}

.zo-order-detail-v2 .zs-order-summary-table tr:last-child td {
    border-top: 1px solid var(--zo-border) !important;
    padding-top: 12px !important
}

.zo-order-detail-v2 .zs-order-summary-table tr:last-child {
    margin-top: 4px;
    padding-top: 4px
}

.zo-order-detail-v2 .zs-order-summary-table tr:last-child .order-summary-label, .zo-order-detail-v2 .zs-order-summary-table tr:last-child .order-summary-value {
    color: var(--zo-ink) !important;
    line-height: 23px !important
}

.zo-order-detail-v2 .order-summary-label {
    color: #667085;
    display: inline-flex;
    line-height: 18px
}

.zo-order-detail-v2 .order-summary-adjust-link {
    align-items: center;
    border-radius: 8px;
    color: var(--zo-purple) !important;
    display: inline-flex;
    gap: 6px;
    text-decoration: none
}

.zo-order-detail-v2 .order-summary-adjust-link:focus, .zo-order-detail-v2 .order-summary-adjust-link:hover {
    background: var(--zo-purple-soft);
    color: var(--zo-purple) !important;
    outline: none;
    text-decoration: none
}

.zo-order-detail-v2 .order-summary-label.order-summary-adjust-link {
    padding: 2px 6px 2px 0
}

.zo-order-detail-v2 .order-summary-label.order-summary-adjust-link:after {
    background: var(--zo-purple-soft);
    border: 1px solid #ddd6fe;
    border-radius: 999px;
    color: var(--zo-purple);
    content: "Edit";
    line-height: 14px;
    padding: 2px 7px
}

.zo-order-detail-v2 .order-summary-value.order-summary-adjust-link {
    justify-content: flex-end;
    padding: 2px 0 2px 6px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px
}

.zo-order-detail-v2 .order-summary-note {
    display: block;
    margin-top: 3px;
    max-width: 240px;
    text-align: left
}

.zo-order-detail-v2 .order-summary-value {
    white-space: nowrap
}

.zo-order-detail-v2 .order-items-card > .pt-4 {
    padding-top: 14px !important
}

.zo-order-detail-v2 .zs-order-items-list tr {
    gap: 14px;
    padding: 14px 0
}

.zo-order-detail-v2 .order-items-card .row {
    gap: 20px;
    grid-template-columns:minmax(0, .95fr) minmax(300px, .65fr)
}

.zo-order-detail-v2 .order-notes-box textarea[disabled] {
    min-height: 92px
}

.zo-order-detail-v2 .order-summary-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0
}

.zo-order-detail-v2 .zs-order-summary-table tr {
    gap: 12px;
    padding: 6px 0
}

.zo-order-detail-v2 .zs-order-summary-table tr:last-child {
    border-top: 1px solid var(--zo-border);
    margin-top: 6px;
    padding-top: 10px
}

.zo-order-detail-v2 .zs-order-summary-table tr:last-child td {
    border-top: 0 !important;
    padding-top: 0 !important
}

.zo-order-detail-v2 .zs-order-summary-table tr:last-child .order-summary-label, .zo-order-detail-v2 .zs-order-summary-table tr:last-child .order-summary-value {
    line-height: 22px !important
}

.zo-order-detail-v2 .order-summary-note {
    line-height: 14px !important;
    max-width: 260px
}

.zo-order-detail-v2 .order-summary-adjustment-note {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px dashed var(--zo-border);
    border-radius: 10px;
    color: var(--zo-muted);
    line-height: 17px;
    margin-top: 8px;
    padding: 10px 12px
}

.zo-order-detail-v2 .order-adjustments-toolbar {
    align-items: center;
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid #eef2f6;
    border-radius: 14px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 14px
}

.zo-order-detail-v2 .order-adjustments-toolbar span, .zo-order-detail-v2 .order-adjustments-toolbar strong {
    display: block
}

.zo-order-detail-v2 .order-adjustments-toolbar strong {
    color: var(--zo-ink);
    line-height: 20px
}

.zo-order-detail-v2 .order-adjustments-toolbar span {
    color: var(--zo-muted);
    line-height: 16px;
    margin-top: 2px
}

.zo-order-detail-v2 .zos-adjustment-list {
    display: grid;
    gap: 10px
}

.zo-order-detail-v2 .zos-adjustment-item {
    align-items: center;
    border-radius: 14px;
    display: grid;
    gap: 14px;
    grid-template-columns:minmax(0, 1fr) max-content;
    padding: 14px
}

.zo-order-detail-v2 .zos-adjustment-main {
    display: grid;
    gap: 5px;
    min-width: 0
}

.zo-order-detail-v2 .zos-adjustment-title {
    color: var(--zo-ink);
    line-height: 20px;
    overflow-wrap: anywhere
}

.zo-order-detail-v2 .zos-adjustment-meta, .zo-order-detail-v2 .zos-adjustment-reason {
    color: var(--zo-muted);
    line-height: 17px;
    overflow-wrap: anywhere
}

.zo-order-detail-v2 .zos-adjustment-meta {
    text-transform: capitalize
}

.zo-order-detail-v2 .zos-adjustment-meta span:before, .zo-order-detail-v2 .zos-adjustment-reason span:before {
    color: #cbd5e1;
    content: "\2022";
    margin: 0 7px
}

.zo-order-detail-v2 .zos-adjustment-amount {
    color: var(--zo-ink);
    line-height: 20px;
    text-align: right;
    white-space: nowrap
}

.zo-order-detail-v2 .zos-adjustment-amount--negative {
    color: #b42318
}

.zo-order-detail-v2 .zos-operational-list {
    margin-top: 0
}

.zo-order-detail-v2 .zos-operational-item {
    align-items: start
}

.zo-order-detail-v2 .zos-operational-item .order-fulfillment-card, .zo-order-detail-v2 .zos-operational-item .order-fulfillment-head, .zo-order-detail-v2 .zos-operational-item .order-payment-card, .zo-order-detail-v2 .zos-operational-item .order-payment-head {
    margin: 0
}

.zo-order-detail-v2 .zos-operational-item .order-payment-lines {
    margin-top: 8px
}

.zo-order-detail-v2 .zos-operational-item .order-payment-line {
    background: transparent;
    border: 0;
    padding: 0
}

.zo-order-detail-v2 .zos-operational-item .order-payment-line > .order-payment-amount {
    display: none
}

.zo-order-detail-v2 .order-fulfillment-actions, .zo-order-detail-v2 .zos-operational-side {
    align-items: flex-end;
    display: grid;
    gap: 8px;
    justify-items: end
}

.zo-order-detail-v2 .zos-operational-status {
    color: var(--zo-muted);
    text-transform: capitalize
}

.zo-order-detail-v2 .zos-operational-item .order-fulfillment-items {
    margin-top: 10px
}

.zo-order-detail-v2 .zos-operational-item .order-fulfillment-date, .zo-order-detail-v2 .zos-operational-item .order-payment-date {
    color: var(--zo-muted);
    line-height: 17px;
    margin-top: 7px
}

.zo-order-detail-v2 .zs-order-collapsible-card {
    overflow: hidden;
    padding: 0 !important
}

.zo-order-detail-v2 .zs-order-section-summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px
}

.zo-order-detail-v2 .zs-order-section-summary::-webkit-details-marker {
    display: none
}

.zo-order-detail-v2 .zs-order-section-summary:after {
    color: var(--zo-muted);
    content: "›";
    line-height: 1;
    transition: transform .15s ease
}

.zo-order-detail-v2 .zs-order-collapsible-card[open] .zs-order-section-summary:after {
    transform: rotate(90deg)
}

.zo-order-detail-v2 .card-title h2, .zo-order-detail-v2 .zo-side-card-header h3, .zo-order-detail-v2 .zs-order-activity h2, .zo-order-detail-v2 .zs-order-section-title {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    color: var(--zo-ink);
    letter-spacing: 0;
    line-height: 22px;
    margin: 0
}

.zo-order-detail-v2 .card-title h2:before, .zo-order-detail-v2 .zo-side-card-header h3:before, .zo-order-detail-v2 .zs-order-activity h2:before, .zo-order-detail-v2 .zs-order-section-title:before {
    align-items: center;
    background: var(--zo-purple-soft);
    border-radius: 7px;
    color: var(--zo-purple);
    display: inline-flex;
    flex: 0 0 22px;
    font-family: Font Awesome\ 5 Free;
    height: 22px;
    justify-content: center;
    line-height: 1;
    width: 22px
}

.zo-order-detail-v2 .zs-order-summary-card .card-title h2:before {
    content: "\f291"
}

.zo-order-detail-v2 .order-adjustments-section .zs-order-section-title:before {
    content: "\f0d6"
}

.zo-order-detail-v2 .zs-order-fulfillment-section .zs-order-section-title:before {
    content: "\f0d1"
}

.zo-order-detail-v2 .order-payment-section .zs-order-section-title:before, .zo-order-detail-v2 .order-payments-card .zs-order-section-title:before {
    content: "\f09d"
}

.zo-order-detail-v2 .order-returns-section .zs-order-section-title:before {
    content: "\f2ea"
}

.zo-order-detail-v2 .zs-order-activity h2:before {
    content: "\f1da"
}

.zo-order-detail-v2 .zo-side-card-header h3:before {
    content: "\f05a"
}

.zo-order-detail-v2 .zs-order-customer-card .zo-side-card-header h3:before {
    content: "\f007"
}

.zo-order-detail-v2 .zs-order-ai-insight-card .zo-side-card-header h3:before {
    content: "\f0eb"
}

.zo-order-detail-v2 .zs-order-shipping-card .zo-side-card-header h3:before {
    content: "\f3c5"
}

.zo-order-detail-v2 .zs-order-billing-card .zo-side-card-header h3:before {
    content: "\f2bb"
}

.zo-order-detail-v2 .zs-order-meta-card .zo-side-card-header h3:before {
    content: "\f05a"
}

.zo-order-detail-v2 .zs-order-section-summary:after {
    content: "\f105";
    font-family: Font Awesome\ 5 Free
}

.zo-order-detail-v2 .zo-customer-summary-line {
    color: var(--zo-muted);
    line-height: 17px
}

.zo-order-detail-v2 .zo-customer-view-btn {
    align-items: center;
    background: var(--zosify-surface, #fff);
    border: 1px solid var(--zo-border);
    border-radius: 10px;
    color: var(--zo-purple) !important;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    min-height: 36px;
    padding: 9px 12px;
    text-decoration: none
}

.zo-order-detail-v2 .zo-customer-view-btn:focus, .zo-order-detail-v2 .zo-customer-view-btn:hover {
    background: var(--zo-purple-soft);
    border-color: #d6bbfb;
    color: var(--zo-purple) !important;
    text-decoration: none
}

.zo-order-detail-v2 .zs-order-ai-insight-card {
    background: linear-gradient(180deg, #fbf7ff, #fff) !important;
    border-color: #d6bbfb !important;
    box-shadow: 0 14px 36px rgba(125, 46, 255, .08) !important
}

.zo-order-detail-v2 .zo-ai-insight-list {
    display: grid;
    gap: 0;
    position: relative
}

.zo-order-detail-v2 .zo-ai-insight-list:before {
    background: #d8c5ff;
    bottom: 14px;
    content: "";
    left: 15px;
    position: absolute;
    top: 14px;
    width: 1px
}

.zo-order-detail-v2 .zo-ai-insight-item {
    display: grid;
    gap: 10px;
    grid-template-columns:30px minmax(0, 1fr);
    position: relative
}

.zo-order-detail-v2 .zo-ai-insight-item + .zo-ai-insight-item {
    margin-top: 14px
}

.zo-order-detail-v2 .zo-ai-insight-item span {
    align-items: center;
    background: var(--zosify-surface, #fff);
    border: 1px solid #d6bbfb;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(125, 46, 255, .08);
    color: var(--zo-purple);
    display: inline-flex;
    height: 30px;
    justify-content: center;
    position: relative;
    width: 30px;
    z-index: 1
}

.zo-order-detail-v2 .zo-ai-insight-item span i {
    line-height: 1
}

.zo-order-detail-v2 .zo-ai-insight-item p {
    color: var(--zo-body);
    line-height: 19px;
    margin: 4px 0 0
}

.zo-order-detail-v2 .zo-ai-insight-cta {
    align-items: center;
    background: var(--zo-purple);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(125, 46, 255, .22);
    color: #fff;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    width: 100%
}

.zo-order-detail-v2 .zo-ai-insight-cta:focus, .zo-order-detail-v2 .zo-ai-insight-cta:hover {
    background: var(--primary-hover);
    color: #fff
}

.zo-communication-drawer-backdrop, .zo-risk-drawer-backdrop {
    background: rgba(15, 23, 42, .34);
    inset: 0;
    position: fixed;
    z-index: 1090
}

.zo-communication-drawer, .zo-risk-drawer {
    background: var(--zosify-surface, #fff);
    border-left: 1px solid #e4e7ec;
    box-shadow: -18px 0 48px rgba(15, 23, 42, .16);
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100vh;
    max-width: 520px;
    overflow-y: auto;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(104%);
    transition: transform .2s ease;
    width: min(520px, 92vw);
    z-index: 1100
}

.zo-communication-drawer.is-open, .zo-risk-drawer.is-open {
    transform: translateX(0)
}

.zo-communication-drawer-actions, .zo-communication-drawer-header, .zo-communication-drawer-title, .zo-risk-drawer-actions, .zo-risk-drawer-header, .zo-risk-drawer-title {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between
}

.zo-communication-drawer-title, .zo-risk-drawer-title {
    justify-content: flex-start
}

.zo-communication-drawer-title strong, .zo-risk-drawer-title strong {
    color: var(--zosify-ink, #111827);
    display: block;
    line-height: 24px
}

.zo-communication-drawer-title span:not(.zo-communication-spark), .zo-risk-drawer-title span:not(.zo-risk-spark) {
    color: #667085;
    display: block
}

.zo-communication-spark, .zo-risk-signal-icon, .zo-risk-spark {
    align-items: center;
    background: #f1e8ff;
    border-radius: 12px;
    color: var(--primary-hover);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px
}

.zo-communication-close, .zo-risk-close {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    color: #667085;
    height: 34px;
    width: 34px
}

.zo-communication-list {
    display: grid;
    gap: 12px
}

.zo-communication-item {
    border: 1px solid #eef2f6;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns:minmax(0, 1fr) auto;
    padding: 12px
}

.zo-communication-item-main {
    display: grid;
    gap: 6px;
    min-width: 0
}

.zo-communication-item-main strong {
    color: var(--zosify-ink, #111827);
    line-height: 18px
}

.zo-communication-meta, .zo-communication-subject {
    color: #667085;
    line-height: 17px;
    overflow-wrap: anywhere
}

.zo-communication-item-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.zo-communication-empty {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #667085;
    padding: 14px
}

.zo-risk-section {
    display: grid;
    gap: 10px
}

.zo-risk-section h3 {
    align-items: center;
    color: var(--zosify-ink, #111827);
    display: flex;
    gap: 8px;
    line-height: 20px;
    margin: 0
}

.zo-risk-section h3 i {
    color: var(--primary-main)
}

.zo-risk-section p {
    color: #475467;
    line-height: 20px;
    margin: 0
}

.zo-risk-signal {
    align-items: flex-start;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns:36px minmax(0, 1fr) auto;
    padding: 12px
}

.zo-risk-signal-alert {
    background: #fff7ed;
    color: #c2410c
}

.zo-risk-signal strong {
    color: var(--zosify-ink, #111827);
    display: block;
    line-height: 18px
}

.zo-risk-signal p {
    color: #667085;
    line-height: 17px;
    margin-top: 2px
}

.zo-risk-next-actions, .zo-risk-signal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.zo-risk-next-actions {
    display: grid
}

.zo-risk-next-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center
}

.zo-risk-empty {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #667085;
    padding: 14px
}

.zo-risk-powered {
    color: #98a2b3;
    text-align: center
}

body.zo-communication-drawer-open, body.zo-risk-drawer-open {
    overflow: hidden
}

.zo-order-detail-v2 .zs-order-section-status {
    background: #f2f4f7;
    color: #475467;
    margin-left: auto;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis
}

.zo-order-detail-v2 .zs-order-collapsible-body {
    border-top: 1px solid var(--zo-border);
    padding: 18px 20px 20px
}

.zo-order-detail-v2 .order-fulfillment-card, .zo-order-detail-v2 .order-payment-card, .zo-order-detail-v2 .zs-communication-row, .zo-order-detail-v2 .zs-intelligence-row {
    border-radius: 14px;
    margin-top: 12px;
    padding: 14px
}

.zo-order-detail-v2 .zs-customer-tracking-panel, .zo-order-detail-v2 .zs-fulfillment-overview {
    align-items: center;
    background: var(--zosify-surface, #fff);
    border: 1px solid #eef2f6;
    border-radius: 14px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 14px
}

.zo-order-detail-v2 .zos-fulfillment-notice {
    align-items: flex-start;
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns:32px minmax(0, 1fr);
    margin-bottom: 14px;
    padding: 12px 14px
}

.zo-order-detail-v2 .zos-fulfillment-notice__icon {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #d1e0ff;
    border-radius: 999px;
    color: #175cd3;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px
}

.zo-order-detail-v2 .zos-fulfillment-notice__icon i {
    line-height: 1
}

.zo-order-detail-v2 .zos-fulfillment-notice__content {
    display: grid;
    gap: 3px;
    min-width: 0
}

.zo-order-detail-v2 .zos-fulfillment-notice__title {
    color: var(--zo-ink);
    line-height: 18px
}

.zo-order-detail-v2 .zos-fulfillment-notice__text {
    color: var(--zo-muted);
    line-height: 17px
}

.zo-order-detail-v2 .zs-latest-tracking-event {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid #eef2f6;
    border-radius: 14px;
    margin-top: 14px;
    padding: 14px
}

.zo-order-detail-v2 .order-fulfillment-head, .zo-order-detail-v2 .order-payment-head, .zo-order-detail-v2 .order-payment-line, .zo-order-detail-v2 .zs-communication-row, .zo-order-detail-v2 .zs-intelligence-row {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between
}

.zo-order-detail-v2 .zo-customer-mini {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0
}

.zo-order-detail-v2 .zo-avatar {
    align-items: center;
    background: var(--zo-purple-soft);
    border-radius: 14px;
    color: var(--zo-purple);
    display: flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    width: 42px
}

.zo-order-detail-v2 .zo-address-lines strong, .zo-order-detail-v2 .zo-customer-mini strong {
    color: var(--zo-ink);
    display: block;
    line-height: 20px
}

.zo-order-detail-v2 .zo-address-lines span, .zo-order-detail-v2 .zo-customer-mini span {
    color: var(--zo-muted);
    display: block;
    line-height: 19px;
    overflow-wrap: anywhere
}

.zo-order-detail-v2 .zo-small-btn {
    background: var(--zosify-surface-subtle, #f8fafc);
    color: var(--zo-body);
    min-height: 30px;
    padding: 6px 10px
}

.zo-order-detail-v2 .zo-meta-list {
    display: grid;
    gap: 10px
}

.zo-order-detail-v2 .zo-meta-row {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between
}

.zo-order-detail-v2 .zo-meta-row span {
    color: var(--zo-muted);
    line-height: 16px
}

.zo-order-detail-v2 .zo-meta-row strong {
    color: var(--zo-ink);
    line-height: 18px;
    text-align: right;
    text-transform: capitalize
}

.zo-order-detail-v2 .zs-order-activity {
    padding: 20px !important
}

.zo-order-detail-v2 .order-internal-note-form {
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid #eef2f6;
    border-radius: 14px;
    margin-bottom: 18px;
    padding: 14px
}

.zo-order-detail-v2 .order-track-item {
    display: grid;
    gap: 10px;
    grid-template-columns:82px 18px minmax(0, 1fr);
    position: relative
}

.zo-order-detail-v2 .order-track-item + .order-track-item {
    margin-top: 10px
}

.zo-order-detail-v2 .order-track-date {
    color: var(--zo-muted);
    line-height: 16px
}

.zo-order-detail-v2 .zos-activity-date-heading {
    color: #344054;
    display: block;
    margin-bottom: 2px
}

.zo-order-detail-v2 .order-track-time {
    display: block
}

.zo-order-detail-v2 .order-track-marker {
    position: relative
}

.zo-order-detail-v2 .order-track-marker:before {
    background: #e5e7eb;
    bottom: -16px;
    content: "";
    left: 50%;
    position: absolute;
    top: 18px;
    width: 1px
}

.zo-order-detail-v2 .order-track-item:last-child .order-track-marker:before {
    display: none
}

.zo-order-detail-v2 .order-track-dot {
    align-items: center;
    background: var(--zosify-surface, #fff);
    border: 1px solid var(--zo-border);
    border-radius: 999px;
    color: var(--zo-purple);
    display: flex;
    height: 18px;
    justify-content: center;
    width: 18px
}

.zo-order-detail-v2 .order-track-body {
    background: var(--zosify-surface, #fff);
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 9px 11px
}

.zo-order-detail-v2 .order-track-title {
    color: var(--zo-ink);
    line-height: 18px
}

.zo-order-detail-v2 .order-track-message {
    color: var(--zo-muted);
    line-height: 16px;
    margin-top: 2px
}

.zo-order-detail-v2 .order-track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px
}

.zo-order-detail-v2 .zos-activity-pill {
    background: var(--zosify-surface-subtle, #f8fafc) !important;
    border: 1px solid #e2e8f0;
    color: #475467 !important;
    min-height: 20px;
    padding: 2px 7px !important
}

.zo-order-detail-v2 .zs-order-activity:not(.is-expanded) .zs-order-timeline-item:nth-child(n+6) {
    display: none
}

.zo-order-detail-v2 .zos-activity-show-more {
    justify-self: center;
    margin-top: 14px
}

.zo-order-detail-v2 .order-mobile-action-row, .zo-order-detail-v2 .order-mobile-customer-delivery-title, .zo-order-detail-v2 .order-mobile-header-more, .zo-order-detail-v2 .order-mobile-header-total, .zo-order-detail-v2 .order-mobile-hero-card, .zo-order-detail-v2 .order-mobile-insight-summary, .zo-order-detail-v2 .order-mobile-items-card, .zo-order-detail-v2 .order-mobile-note-toggle, .zo-order-detail-v2 .order-mobile-total-breakdown-toggle, .zo-order-detail-v2 .order-mobile-total-card {
    display: none
}

.zo-order-detail-v2 .order-mobile-manage-card {
    display: contents
}

.zo-order-detail-v2 .order-mobile-manage-card > h2 {
    display: none
}

@media (max-width: 1100px) {
    .zo-order-detail-v2 .zo-order-detail-layout {
        grid-template-columns:1fr
    }

    .zo-order-detail-v2 .zo-order-side-column {
        position: static
    }
}

.zs-order-detail-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--zs-space-6)
}

.zs-order-detail-back {
    align-items: center;
    color: var(--zs-text-secondary);
    display: inline-flex;
    gap: var(--zs-space-2);
    margin-bottom: var(--zs-space-3);
    text-decoration: none
}

.zs-order-detail-back:hover {
    color: var(--zs-primary);
    text-decoration: none
}

.zs-order-detail-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--zs-space-2);
    margin-top: var(--zs-space-3)
}

.zs-order-detail-risk-button {
    border: 0;
    cursor: pointer
}

.zs-order-detail-layout {
    align-items: flex-start;
    grid-template-columns:minmax(0, 1fr) 360px
}

.zs-order-detail-layout, .zs-order-detail-main, .zs-order-detail-sidebar {
    display: grid;
    gap: var(--zs-space-5)
}

.zs-order-detail-sidebar {
    position: sticky;
    top: var(--zs-space-4)
}

.zs-order-detail-summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between
}

.zs-order-progress-card .zs-card-header {
    align-items: center;
    display: flex;
    gap: var(--zs-space-3);
    justify-content: space-between;
    padding-bottom: var(--zs-space-2)
}

.zs-order-progress-card .zs-card-body {
    overflow-x: auto;
    padding-top: var(--zs-space-2);
    padding-bottom: var(--zs-space-3)
}

.zs-order-progress-steps {
    display: grid;
    gap: 0;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    padding: 0
}

.zs-order-progress-step {
    align-items: center;
    color: var(--zs-text-secondary);
    display: grid;
    gap: var(--zs-space-1);
    justify-items: center;
    min-width: 0;
    position: relative;
    text-align: center
}

.zs-order-progress-step:not(:last-child):after {
    background: var(--zs-border);
    content: "";
    height: 1px;
    left: calc(50% + 12px);
    position: absolute;
    right: calc(-50% + 12px);
    top: 11px;
    z-index: 0
}

.zs-order-progress-step.is-complete:not(:last-child):after {
    background: var(--zs-success-soft)
}

.zs-order-progress-marker {
    align-items: center;
    background: var(--zs-bg-soft);
    border: 1px solid var(--zs-border);
    border-radius: var(--zs-radius-pill);
    box-shadow: 0 0 0 3px var(--zs-bg-card);
    display: flex;
    font-size: 0;
    height: 22px;
    justify-content: center;
    position: relative;
    width: 22px;
    z-index: 1
}

.zs-order-progress-marker i {
    display: none
}

.zs-order-progress-marker:before {
    background: var(--zs-text-muted);
    border-radius: var(--zs-radius-pill);
    content: "";
    height: 5px;
    width: 5px
}

.zs-order-progress-step.is-complete .zs-order-progress-marker {
    background: var(--zs-success-soft);
    border-color: transparent;
    color: var(--zs-success)
}

.zs-order-progress-step.is-complete .zs-order-progress-marker:before {
    background: var(--zs-success)
}

.zs-order-progress-step.is-current .zs-order-progress-marker {
    background: var(--zs-primary-soft);
    border-color: transparent;
    color: var(--zs-primary)
}

.zs-order-progress-step.is-current .zs-order-progress-marker:before {
    background: var(--zs-primary);
    height: 6px;
    width: 6px
}

.zs-order-progress-step strong {
    color: var(--zs-text-secondary);
    font-size: 11px;
    font-weight: 400;
    line-height: var(--zs-line-tight)
}

.zs-order-progress-step.is-complete strong, .zs-order-progress-step.is-current strong {
    color: var(--zs-text-primary);
    font-weight: 500
}

.zs-order-summary-card .zs-card-header {
    align-items: center;
    display: flex;
    gap: var(--zs-space-3);
    justify-content: space-between
}

.zs-order-summary-card .zs-card-actions {
    display: inline-flex;
    justify-content: flex-end;
    margin-left: auto
}

.zs-order-summary-card .order-items-list-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0
}

.zs-order-summary-card .zs-order-items-list {
    border-collapse: collapse
}

.zs-order-summary-card .zs-order-items-list tr {
    border-bottom: 1px solid var(--zs-border-soft)
}

.zs-order-summary-card .zs-order-items-list tr:last-child {
    border-bottom: 0
}

.zs-order-detail-money-cell {
    text-align: right
}

.zos-order-total-list {
    display: grid;
    gap: var(--zs-space-2)
}

.zos-order-total-row {
    align-items: flex-start;
    display: flex;
    gap: var(--zs-space-3);
    justify-content: space-between
}

.zos-order-total-row--discount .order-summary-label, .zs-order-money-negative {
    color: var(--zs-danger)
}

.zs-order-money-positive {
    color: var(--zs-success)
}

.zos-order-total-row--final {
    border-top: 1px solid var(--zs-border);
    margin-top: var(--zs-space-2);
    padding-top: var(--zs-space-3)
}

.zos-order-total-row--final .order-summary-label, .zos-order-total-row--final .order-summary-value {
    color: var(--zs-text-primary);
    font-size: var(--zs-font-lg);
    font-weight: var(--zs-weight-bold)
}

.order-mobile-total-breakdown-toggle, .order-summary-adjustment-note {
    margin-top: var(--zs-space-3)
}

.zs-order-adjustment-row {
    align-items: flex-start;
    background: var(--zs-bg-soft);
    border: 1px solid var(--zs-border-soft);
    border-radius: var(--zs-radius-md);
    display: flex;
    gap: var(--zs-space-4);
    justify-content: space-between;
    padding: var(--zs-space-4)
}

.order-adjustments-toolbar, .zs-customer-tracking-panel, .zs-fulfillment-header-row {
    align-items: center;
    display: flex;
    gap: var(--zs-space-4);
    justify-content: space-between;
    margin-bottom: var(--zs-space-4)
}

.zs-fulfillment-status-block {
    display: grid;
    gap: var(--zs-space-1)
}

.zs-fulfillment-status-label {
    color: var(--zs-text-muted);
    font-size: var(--zs-font-label, var(--zs-font-xs));
    font-weight: var(--zs-weight-medium, var(--zs-weight-semibold));
    text-transform: uppercase
}

.zs-fulfillment-status-value {
    color: var(--zs-text-primary);
    font-weight: var(--zs-weight-bold)
}

.zs-order-fulfillment-section .zs-customer-tracking-panel, .zs-order-fulfillment-section .zs-fulfillment-header-row {
    margin-bottom: 0
}

.zs-shipment-list {
    display: grid;
    gap: var(--zs-space-3)
}

.zs-shipment-card {
    background: var(--zs-bg-soft);
    border: 1px solid var(--zs-border-soft);
    border-radius: var(--zs-radius-md);
    padding: var(--zs-space-4)
}

.zs-shipment-head {
    align-items: flex-start;
    display: flex;
    gap: var(--zs-space-3);
    justify-content: space-between
}

.zs-shipment-badges, .zs-shipment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--zs-space-2)
}

.zs-shipment-meta, .zs-shipment-ref {
    color: var(--zs-text-muted);
    font-size: var(--zs-font-sm)
}

.zs-latest-tracking-event, .zs-shipment-items, .zs-shipment-meta, .zs-shipment-track-link {
    margin-top: var(--zs-space-3)
}

.zs-latest-tracking-event {
    background: var(--zs-bg-soft);
    border-radius: var(--zs-radius-md);
    display: grid;
    gap: var(--zs-space-1);
    padding: var(--zs-space-3)
}

.order-payment-head {
    display: flex;
    gap: var(--zs-space-3);
    justify-content: space-between
}

.order-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--zs-space-2)
}

.order-payment-date, .order-payment-note-line, .order-payment-ref {
    color: var(--zs-text-muted);
    font-size: var(--zs-font-sm)
}

.order-payment-date {
    margin-top: var(--zs-space-3)
}

.order-payment-note-line {
    margin-top: var(--zs-space-1)
}

.zs-order-customer-note {
    background: var(--zs-bg-subtle, #f9f9fb);
    border: 1px solid var(--zs-border-color, #e5e7eb);
    border-radius: var(--zs-radius-md);
    color: var(--zs-text-primary);
    font-size: var(--zs-font-sm);
    line-height: var(--zs-line-normal);
    min-height: 72px;
    padding: var(--zs-space-3)
}

.zs-order-customer-note--empty {
    color: var(--zs-text-muted);
    font-style: italic;
    min-height: 0
}

.zo-customer-mini {
    gap: var(--zs-space-3)
}

.zo-avatar, .zo-customer-mini {
    align-items: center;
    display: flex
}

.zo-avatar {
    background: var(--zs-primary-soft);
    border-radius: var(--zs-radius-pill);
    color: var(--zs-primary);
    flex: 0 0 32px;
    font-size: 12px;
    font-weight: var(--zs-weight-bold);
    height: 32px;
    justify-content: center;
    width: 32px
}

.zo-address-lines, .zo-ai-insight-list, .zo-customer-mini > div:last-child, .zs-order-meta-list {
    display: grid;
    gap: var(--zs-space-1)
}

.zo-ai-insight-item {
    align-items: flex-start;
    display: flex;
    gap: var(--zs-space-3)
}

.zo-ai-insight-item p {
    color: var(--zs-text-secondary);
    margin: 0
}

.order-mobile-insight-summary {
    display: none
}

.zs-order-meta-row {
    align-items: flex-start;
    display: flex;
    gap: var(--zs-space-3);
    justify-content: space-between
}

.order-track-panel {
    display: grid;
    gap: var(--zs-space-4)
}

.order-internal-note-form {
    display: grid;
    gap: var(--zs-space-3)
}

.order-internal-note-actions {
    align-items: center;
    display: flex;
    gap: var(--zs-space-3);
    justify-content: space-between
}

.order-track-list {
    display: grid;
    gap: var(--zs-space-4)
}

.order-track-item {
    display: grid;
    gap: var(--zs-space-3);
    grid-template-columns:120px 28px minmax(0, 1fr)
}

.order-track-body, .order-track-date, .order-track-meta {
    display: grid;
    gap: var(--zs-space-1)
}

.order-track-dot, .order-track-marker {
    display: flex;
    justify-content: center
}

.order-track-dot {
    align-items: center;
    background: var(--zs-bg-soft);
    border: 1px solid var(--zs-border);
    border-radius: var(--zs-radius-pill);
    color: var(--zs-text-muted);
    height: 28px;
    width: 28px
}

.order-track-dot.is-active {
    background: var(--zs-primary-soft);
    border-color: transparent;
    color: var(--zs-primary)
}

.order-track-meta {
    display: flex;
    flex-wrap: wrap
}

.order-track-chip {
    background: var(--zs-bg-soft);
    border-radius: var(--zs-radius-pill);
    padding: 4px 8px
}

@media (max-width: 1199px) {
    .zs-orders-metrics {
        flex-wrap: wrap
    }

    .zs-orders-metric {
        flex: 1 1 140px
    }

    .zs-orders-filter-grid {
        grid-template-columns:repeat(3, minmax(150px, 1fr))
    }

    .zs-order-detail-layout {
        grid-template-columns:1fr
    }

    .zs-order-detail-sidebar {
        position: static
    }
}

@media (max-width: 767px) {
    .zs-orders-page {
        border-radius: 0;
        margin: 0;
        padding: 16px 16px 36px
    }

    .zs-orders-page .zs-page-header {
        display: block;
        padding: 0 0 14px
    }

    .zs-orders-page .zs-page-header:after {
        display: none
    }

    .zs-orders-page .zs-page-actions {
        justify-content: flex-start;
        margin-top: 12px;
        overflow-x: auto
    }

    .zs-orders-hero-side {
        align-items: stretch;
        justify-items: stretch;
        margin-top: 16px;
        min-width: 0
    }

    .zs-orders-metrics {
        display: grid;
        flex-wrap: unset;
        grid-template-columns:1fr 1fr;
        overflow-x: visible
    }

    .zs-orders-metric-period {
        display: none
    }

    .zs-orders-metric {
        border-bottom: 1px solid var(--orders-line);
        border-right: none;
        min-height: 64px;
        padding: 12px 12px 13px
    }

    .zs-orders-metric:nth-child(2n) {
        border-right: 1px solid var(--orders-line)
    }

    .zs-orders-metric:last-child, .zs-orders-metric:nth-last-child(2) {
        border-bottom: none
    }

    .zs-orders-metric-label {
        white-space: normal;
        overflow: visible;
        text-overflow: unset
    }

    .zs-orders-metric-value {
        flex-wrap: wrap;
        margin-top: 2px
    }

    .zs-orders-metric-bar {
        width: 52px
    }

    .zs-orders-filter-grid {
        grid-template-columns:1fr
    }

    .zs-orders-page .zs-list-toolbar {
        align-items: stretch !important;
        flex-direction: column;
        padding: 12px 14px
    }

    .order-search-wrap {
        flex: 1 1 auto;
        width: 100%
    }

    .zs-orders-bulk-toolbar {
        align-items: flex-start;
        flex-direction: column
    }

    .zs-order-detail-page {
        padding: var(--zs-space-3)
    }

    .zs-order-summary-grid {
        grid-template-columns:1fr
    }

    .zs-order-progress-card .zs-card-header {
        align-items: flex-start
    }

    .zs-order-progress-steps {
        grid-template-columns:repeat(5, minmax(88px, 1fr));
        min-width: 460px;
        padding-bottom: var(--zs-space-2)
    }

    .zs-order-progress-step {
        gap: var(--zs-space-1)
    }

    .zs-order-progress-step:not(:last-child):after {
        left: calc(50% + 15px);
        right: calc(-50% + 15px);
        top: 15px
    }

    .zs-order-progress-marker {
        box-shadow: 0 0 0 5px var(--zs-bg-card);
        height: 30px;
        width: 30px
    }

    .zs-order-progress-step strong {
        font-size: var(--zs-font-xs)
    }

    .order-adjustments-toolbar, .order-internal-note-actions, .order-payment-head, .order-payment-line, .zs-customer-tracking-panel, .zs-fulfillment-header-row, .zs-order-adjustment-row {
        align-items: flex-start;
        flex-direction: column
    }

    .order-track-item {
        grid-template-columns:1fr
    }
}

.order-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--zs-space-1);
    margin: 2px
}

.order-tag-pill .evt_remove_tag {
    background: none;
    border: none;
    padding: 0;
    margin-left: 2px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .6;
    font-size: 1em
}

.order-tag-pill .evt_remove_tag:hover {
    opacity: 1
}

.order-tags-card .zs-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--zs-space-3)
}

.order-predefined-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.order-predefined-tag {
    background: var(--zs-bg-subtle, #f4f4f6);
    border: 1px solid var(--zs-border-color, #e5e7eb);
    border-radius: 20px;
    color: var(--zs-text-secondary);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    padding: 4px 10px;
    transition: background .12s, color .12s, border-color .12s;
    white-space: nowrap
}

.order-predefined-tag:hover:not([disabled]) {
    background: var(--zs-primary-soft, #ede9ff);
    border-color: var(--zs-primary);
    color: var(--zs-primary)
}

.order-predefined-tag.is-active, .order-predefined-tag[disabled] {
    background: var(--zs-primary-soft, #ede9ff);
    border-color: var(--zs-primary-soft, #ede9ff);
    color: var(--zs-primary);
    cursor: default;
    opacity: .55
}

.order-tag-filter-wrap, .order-tag-input-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column
}

.order-tag-filter-wrap .order-tag-filter-input, .order-tag-input-wrap .order-tag-input {
    width: 160px
}

.order-tag-filter-suggestions, .order-tag-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 200;
    background: var(--zs-surface);
    border: 1px solid var(--zs-border-soft);
    border-radius: var(--zs-radius-md);
    box-shadow: var(--zs-shadow-sm);
    min-width: 160px;
    max-height: 200px;
    overflow-y: auto
}

.zo-order-detail-v2 {
    font-family: var(--font-sans);
    color: var(--color-text-primary)
}

.zo-order-detail-v2 .zo-order-detail-layout {
    display: grid;
    grid-template-columns:1fr 272px;
    gap: 20px;
    align-items: start
}

.zo-order-detail-v2 .zo-order-main-column {
    min-width: 0
}

.zo-order-detail-v2 .zo-order-main-column, .zo-order-detail-v2 .zo-order-side-column {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.zo-order-detail-v2 .zo-order-page-header {
    margin-bottom: 20px
}

.zo-order-detail-v2 .zo-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--color-text-tertiary);
    text-decoration: none;
    margin-bottom: 14px;
    font-family: var(--font-sans);
    transition: color .1s
}

.zo-order-detail-v2 .zo-back-link:hover {
    color: var(--color-text-primary);
    text-decoration: none
}

.zo-order-detail-v2 .zo-back-link i {
    font-size: 14px;
    line-height: 1
}

.zo-order-detail-v2 .zo-order-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px
}

.zo-order-detail-v2 .zo-order-title-block {
    flex: 1;
    min-width: 0
}

.zo-order-detail-v2 .zo-order-title-line {
    display: flex;
    align-items: center;
    gap: 8px
}

.zo-order-detail-v2 .zo-order-title-line h1 {
    font-size: var(--zs-font-page, 20px) !important; /* !important: custom.css sets .order-detail-page h5/h6 on most headings */
    font-weight: var(--zs-weight-medium, 600) !important;
    letter-spacing: -.4px;
    color: var(--color-text-primary);
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.2
}

.zo-order-detail-v2 .zo-order-title-block > p {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin: 5px 0 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-order-title-block > p span + span:before {
    content: "·";
    margin-right: 6px;
    opacity: .5
}

.zo-order-detail-v2 .zo-status-chip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap
}

.zo-order-detail-v2 .zo-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 10px;
    line-height: 1.4;
    white-space: nowrap;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-chip i {
    font-size: 11px;
    line-height: 1
}

.zo-order-detail-v2 .zo-chip-success {
    background: var(--color-success-bg);
    color: var(--color-success-text)
}

.zo-order-detail-v2 .zo-chip-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning-text)
}

.zo-order-detail-v2 .zo-chip-info {
    background: var(--color-brand-mid);
    color: var(--color-brand-dark)
}

.zo-order-detail-v2 .zo-chip-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger-text)
}

.zo-order-detail-v2 .zo-chip-neutral {
    background: rgba(0, 0, 0, .05);
    color: var(--color-text-tertiary)
}

.zo-order-detail-v2 .zo-risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--zs-font-xs, 11px);
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 10px;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-risk-badge i {
    font-size: 11px
}

.zo-order-detail-v2 .zo-risk-badge-low {
    background: rgba(0, 0, 0, .05);
    color: var(--color-text-tertiary)
}

.zo-order-detail-v2 .zo-risk-badge-medium {
    background: var(--color-warning-bg);
    color: var(--color-warning-text)
}

.zo-order-detail-v2 .zo-risk-badge-high {
    background: var(--color-danger-bg);
    color: var(--color-danger-text)
}

.zo-order-detail-v2 .zo-order-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0
}

.zo-order-detail-v2 .order-detail-actions-trigger, .zo-order-detail-v2 .order-detail-desktop-actions .btn {
    font-size: 12px !important; /* !important: Bootstrap .btn sets font-size */
    font-weight: 500 !important;
    padding: 5px 12px !important;
    border-radius: var(--radius-sm) !important;
    border: .5px solid var(--color-border-strong) !important;
    background: var(--color-card) !important;
    color: var(--color-text-primary) !important;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background .12s;
    height: auto !important;
    line-height: 1.5 !important;
    box-shadow: none !important
}

.zo-order-detail-v2 .order-detail-actions-trigger:hover, .zo-order-detail-v2 .order-detail-desktop-actions .btn:hover {
    background: var(--color-surface) !important;
    color: var(--color-text-primary) !important
}

.zo-order-detail-v2 .zo-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: .5px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: background .12s
}

.zo-order-detail-v2 .zo-icon-btn:hover {
    background: var(--color-surface);
    text-decoration: none
}

.zo-order-detail-v2 .zo-icon-btn.disabled {
    opacity: .35;
    pointer-events: none
}

.zo-order-detail-v2 .order-detail-actions-menu {
    border: .5px solid var(--color-border-strong) !important;
    border-radius: var(--radius-md) !important;
    padding: 4px !important;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08) !important
}

.zo-order-detail-v2 .order-detail-actions-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--color-text-primary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .order-detail-actions-menu .dropdown-item i {
    font-size: 14px;
    color: var(--color-text-tertiary);
    width: 16px;
    text-align: center;
    flex-shrink: 0
}

.zo-order-detail-v2 .order-detail-actions-menu .dropdown-item:focus, .zo-order-detail-v2 .order-detail-actions-menu .dropdown-item:hover {
    background: var(--color-surface);
    color: var(--color-text-primary)
}

.zo-order-detail-v2 .order-detail-actions-menu .dropdown-item.text-danger, .zo-order-detail-v2 .order-detail-actions-menu .dropdown-item.text-danger i {
    color: var(--color-danger-text) !important
}

.zo-order-detail-v2 .order-detail-actions-menu .dropdown-divider {
    margin: 3px 0;
    border-color: var(--color-border)
}

.zo-order-detail-v2 .order-activity-section, .zo-order-detail-v2 .order-items-card, .zo-order-detail-v2 .order-returns-section, .zo-order-detail-v2 .zo-order-progress-card, .zo-order-detail-v2 .zo-side-card, .zo-order-detail-v2 .zs-order-card {
    background: var(--color-card) !important;
    border: .5px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: none !important /* !important: KT adds box-shadow to .mzh-element-box */
}

.zo-order-detail-v2 .zo-order-progress-head, .zo-order-detail-v2 .zo-side-card-header, .zo-order-detail-v2 .zs-card-header, .zo-order-detail-v2 .zs-order-detail-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px
}

.zo-order-detail-v2 .zo-order-progress-head > :first-child, .zo-order-detail-v2 .zo-side-card-header > :first-child, .zo-order-detail-v2 .zs-card-header > :first-child, .zo-order-detail-v2 .zs-order-detail-summary > :first-child {
    min-width: 0
}

.zo-order-detail-v2 .zo-order-progress-head > :last-child, .zo-order-detail-v2 .zo-side-card-header > :last-child, .zo-order-detail-v2 .zs-card-header > :last-child, .zo-order-detail-v2 .zs-order-detail-summary > :last-child {
    flex: 0 0 auto;
    margin-left: auto
}

.zo-order-detail-v2 .zo-side-card-header .btn, .zo-order-detail-v2 .zo-side-card-header .zs-btn, .zo-order-detail-v2 .zs-card-header .btn, .zo-order-detail-v2 .zs-card-header .zs-btn, .zo-order-detail-v2 .zs-order-detail-summary .btn, .zo-order-detail-v2 .zs-order-detail-summary .zs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap
}

.zo-order-detail-v2 .zs-order-detail-summary-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

.zo-order-detail-v2 .zs-order-detail-summary-desc {
    color: var(--color-text-tertiary);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4
}

.zo-order-detail-v2 .zs-order-detail-summary-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto
}

.zo-order-detail-v2 .order-activity-section .zs-card-header {
    padding-bottom: 14px;
    border-bottom: .5px solid var(--color-border)
}

.zo-order-detail-v2 .order-activity-section .order-mobile-note-toggle {
    margin-bottom: 0
}

.zo-order-detail-v2 .order-tags-card .zs-card-header > div {
    display: grid;
    gap: 4px
}

.zo-order-detail-v2 h2, .zo-order-detail-v2 h3 {
    font-size: var(--zs-font-section, 14px) !important; /* !important: custom.css overrides h2/h3 with larger sizes */
    font-weight: var(--zs-weight-medium, 500) !important;
    letter-spacing: -.1px;
    color: var(--color-text-primary);
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.3
}

.zo-order-detail-v2 .zo-order-progress-head h2 {
    display: flex;
    align-items: center;
    gap: 6px
}

.zo-order-detail-v2 .zo-order-progress-head h2 i {
    font-size: 14px;
    color: var(--color-text-tertiary);
    line-height: 1
}

.zo-order-detail-v2 .zo-order-progress-head > span {
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-weight: 400
}

.zo-order-detail-v2 .zo-side-card-header a, .zo-order-detail-v2 .zo-small-btn {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-brand);
    text-decoration: none
}

.zo-order-detail-v2 .zo-side-card-header a:hover, .zo-order-detail-v2 .zo-small-btn:hover {
    color: var(--color-brand-dark);
    text-decoration: none
}

.zo-order-detail-v2 .zo-order-progress-step:after, .zo-order-detail-v2 .zo-order-progress-step:before {
    height: 1px !important;
    background: var(--color-border) !important
}

.zo-order-detail-v2 .zo-order-progress-step.is-complete:after, .zo-order-detail-v2 .zo-order-progress-step.is-complete:before, .zo-order-detail-v2 .zo-order-progress-step.is-current:before {
    background: var(--color-brand) !important
}

.zo-order-detail-v2 .zo-order-progress-step span {
    background: var(--color-surface) !important;
    border-color: var(--color-border-strong) !important;
    color: var(--color-text-tertiary) !important;
    font-size: 10px
}

.zo-order-detail-v2 .zo-order-progress-step.is-complete span {
    background: var(--color-brand) !important;
    border-color: var(--color-brand) !important;
    color: #fff !important
}

.zo-order-detail-v2 .zo-order-progress-step.is-current span {
    background: var(--color-brand-light) !important;
    border-color: var(--color-brand) !important;
    color: var(--color-brand) !important;
    box-shadow: 0 0 0 4px rgba(108, 71, 255, .12) !important
}

.zo-order-detail-v2 .zo-order-progress-step strong {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans);
    line-height: 1.3
}

.zo-order-detail-v2 .zo-order-progress-step.is-complete strong {
    color: var(--color-brand) !important
}

.zo-order-detail-v2 .zo-order-progress-step.is-current strong {
    color: var(--color-text-primary) !important;
    font-weight: 600
}

.zo-order-detail-v2 .order-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0
}

.zo-order-detail-v2 .btn-outline.btn-active-light-primary, .zo-order-detail-v2 .evt_fullfill_items {
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: var(--radius-sm) !important;
    border: .5px solid var(--color-border-strong) !important;
    background: var(--color-card) !important;
    color: var(--color-text-primary) !important;
    text-decoration: none;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.5 !important
}

.zo-order-detail-v2 .evt_fullfill_items:hover {
    background: var(--color-surface) !important;
    color: var(--color-text-primary) !important
}

.zo-order-detail-v2 .zos-order-total-list {
    border-top: .5px solid var(--color-border);
    padding-top: 12px;
    margin-top: 12px
}

.zo-order-detail-v2 .zos-order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0
}

.zo-order-detail-v2 .zos-order-total-label {
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zos-order-total-value {
    font-family: var(--font-mono);
    font-weight: 400
}

.zo-order-detail-v2 .order-summary-label {
    font-size: var(--zs-font-label, 13px);
    color: var(--color-text-secondary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .order-summary-value {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-weight: 400
}

.zo-order-detail-v2 .order-summary-note {
    font-size: 11px;
    color: var(--color-text-tertiary);
    display: block;
    margin-top: 1px;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zos-order-total-row--discount .order-summary-value, .zo-order-detail-v2 .zos-order-total-row--discount .zos-order-total-value {
    color: var(--color-success-text)
}

.zo-order-detail-v2 .zos-order-total-row--final {
    border-top: .5px solid var(--color-border);
    margin-top: 8px;
    padding-top: 12px
}

.zo-order-detail-v2 .zos-order-total-row--final .order-summary-label, .zo-order-detail-v2 .zos-order-total-row--final .zos-order-total-label {
    font-size: var(--zs-font-label, 15px);
    font-weight: var(--zs-weight-medium, 600);
    color: var(--color-text-primary)
}

.zo-order-detail-v2 .zos-order-total-row--final .order-summary-value, .zo-order-detail-v2 .zos-order-total-row--final .zos-order-total-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    font-family: var(--font-mono)
}

.zo-order-detail-v2 .order-summary-adjust-link {
    color: var(--color-brand);
    text-decoration: none
}

.zo-order-detail-v2 .order-summary-adjust-link:hover {
    color: var(--color-brand-dark);
    text-decoration: underline
}

.zo-order-detail-v2 .order-summary-adjustment-note {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-top: 8px;
    font-family: var(--font-sans);
    line-height: 1.5
}

.zo-order-detail-v2 .order-mobile-customer-delivery-title {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 8px;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-customer-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px
}

.zo-order-detail-v2 .zo-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-brand-light);
    color: var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-customer-mini > div {
    display: flex;
    flex-direction: column;
    gap: 1px
}

.zo-order-detail-v2 .zo-customer-mini strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-customer-mini span {
    display: block;
    font-size: 12px;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-customer-summary-line {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-bottom: 10px;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-customer-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--zs-font-label, 11px);
    font-weight: var(--zs-weight-medium, 500);
    color: var(--color-brand);
    text-decoration: none;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-customer-view-btn:hover {
    color: var(--color-brand-dark);
    text-decoration: none
}

.zo-order-detail-v2 .zo-customer-view-btn i {
    font-size: 11px
}

.zo-order-detail-v2 .zs-order-ai-insight-card {
    background: #f7f5ff !important;
    border-color: #d4caff !important
}

.zo-order-detail-v2 .zs-order-ai-insight-card .zo-side-card-header h3 {
    color: var(--color-brand-dark)
}

.zo-order-detail-v2 .zo-ai-insight-body {
    display: block
}

.zo-order-detail-v2 .zo-ai-insight-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.zo-order-detail-v2 .zo-ai-insight-item {
    display: flex;
    align-items: flex-start;
    gap: 8px
}

.zo-order-detail-v2 .zo-ai-insight-item > span {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--color-brand);
    margin-top: 1px;
    line-height: 1
}

.zo-order-detail-v2 .zo-ai-insight-item p {
    font-size: 12px;
    color: var(--color-brand-dark);
    margin: 0;
    line-height: 1.5;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-address-lines {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.zo-order-detail-v2 .zo-address-lines strong {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-primary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-address-lines span.zs-muted-text {
    font-size: var(--zs-font-xs, 12px);
    color: var(--color-text-secondary) !important; /* !important: .zs-muted-text sets color */
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-meta-list {
    display: flex;
    flex-direction: column
}

.zo-order-detail-v2 .zo-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: .5px solid var(--color-border);
    font-size: 12px
}

.zo-order-detail-v2 .zo-meta-row:last-child {
    border-bottom: none
}

.zo-order-detail-v2 .zo-meta-row > span {
    color: var(--color-text-tertiary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zo-meta-row > strong {
    color: var(--color-text-primary);
    font-weight: 500;
    font-family: var(--font-sans);
    text-align: right;
    font-size: 12px
}

.zo-order-detail-v2 .zos-activity-timeline {
    position: relative
}

.zo-order-detail-v2 .zos-activity-item {
    display: grid;
    grid-template-columns:60px 18px 1fr;
    align-items: start;
    padding-bottom: 14px;
    position: relative
}

.zo-order-detail-v2 .zos-activity-item:not(:last-child):before {
    content: "";
    position: absolute;
    left: 79px;
    top: 18px;
    bottom: 0;
    width: 1px;
    background: var(--color-border)
}

.zo-order-detail-v2 .zos-activity-date-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 1px;
    gap: 1px
}

.zo-order-detail-v2 .zos-activity-date-heading {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans);
    line-height: 1
}

.zo-order-detail-v2 .zos-activity-time {
    font-size: 10px;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans);
    line-height: 1
}

.zo-order-detail-v2 .order-track-marker {
    display: flex;
    justify-content: center;
    padding-top: 1px;
    position: relative;
    z-index: 1
}

.zo-order-detail-v2 .order-track-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--color-text-tertiary);
    flex-shrink: 0
}

.zo-order-detail-v2 .order-track-dot.is-active {
    background: var(--color-brand-light);
    border-color: var(--color-brand);
    color: var(--color-brand)
}

.zo-order-detail-v2 .zos-activity-content {
    padding-top: 0
}

.zo-order-detail-v2 .zos-activity-title {
    font-weight: 500;
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    margin-bottom: 2px
}

.zo-order-detail-v2 .order-track-message {
    font-size: 12px;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans);
    margin-bottom: 4px;
    line-height: 1.4
}

.zo-order-detail-v2 .zos-activity-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap
}

.zo-order-detail-v2 .zos-activity-pill {
    font-size: var(--zs-font-xs, 10px);
    color: var(--color-text-tertiary);
    background: rgba(0, 0, 0, .04);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .order-track-panel {
    margin-top: 4px
}

.zo-order-detail-v2 .order-internal-note-form {
    margin-bottom: 16px;
    display: none
}

.zo-order-detail-v2 [data-zs-order-activity].is-note-open .order-internal-note-form {
    display: block
}

.zo-order-detail-v2 .order-internal-note-form label {
    font-size: var(--zs-font-label, 11px);
    font-weight: var(--zs-weight-medium, 500);
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    display: block;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .order-internal-note-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
    flex-wrap: wrap
}

.zo-order-detail-v2 .order-internal-note-helper {
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .order-mobile-note-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-sm) !important;
    border: .5px solid var(--color-border-strong) !important;
    background: var(--color-card) !important;
    color: var(--color-text-primary) !important;
    margin-bottom: 12px;
    cursor: pointer;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .order-mobile-note-toggle, .zo-order-detail-v2 .save_internal_order_note {
    padding: 5px 12px !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.5 !important
}

.zo-order-detail-v2 .save_internal_order_note {
    font-size: 11px !important;
    font-weight: 500 !important;
    border-radius: var(--radius-sm) !important;
    background: var(--color-brand) !important;
    border-color: var(--color-brand) !important;
    color: #fff !important
}

.zo-order-detail-v2 .save_internal_order_note:hover {
    background: var(--color-brand-dark) !important;
    border-color: var(--color-brand-dark) !important
}

.zo-order-detail-v2 .zs-order-section-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    padding: 0
}

.zo-order-detail-v2 .zs-order-section-summary::-webkit-details-marker {
    display: none
}

.zo-order-detail-v2 .zs-order-section-title {
    font-size: var(--zs-font-section, 13px);
    font-weight: var(--zs-weight-medium, 500);
    color: var(--color-text-primary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zs-order-section-status {
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zs-order-collapsible-body {
    padding-top: 14px
}

.zo-order-detail-v2 .btn.btn-sm.btn-light-primary[href*=returns] {
    font-size: var(--zs-font-label, 11px) !important;
    font-weight: var(--zs-weight-medium, 500) !important;
    color: var(--color-brand) !important;
    background: var(--color-brand-light) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 4px 10px !important;
    text-decoration: none;
    height: auto !important;
    box-shadow: none !important
}

.zo-order-detail-v2 .zos-adjustment-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: .5px solid var(--color-border);
    gap: 12px
}

.zo-order-detail-v2 .zos-adjustment-item:last-child {
    border-bottom: none
}

.zo-order-detail-v2 .zos-adjustment-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-primary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zos-adjustment-meta, .zo-order-detail-v2 .zos-adjustment-reason {
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zos-adjustment-amount--negative {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-danger-text);
    font-family: var(--font-mono)
}

.zo-order-detail-v2 .zs-order-fulfillment-section > summary::-webkit-details-marker, .zo-order-detail-v2 .zs-order-fulfillment-section > summary::marker {
    display: none
}

.zo-order-detail-v2 .zs-fulfillment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    padding: 15px;
    margin-bottom: 14px
}

.zo-order-detail-v2 .zs-fulfillment-summary .zs-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--zs-font-section, 14px);
    font-weight: var(--zs-weight-medium, 500);
    color: var(--color-text-primary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zs-fulfillment-summary .zs-section-title i {
    font-size: 15px;
    color: var(--color-text-tertiary)
}

.zo-order-detail-v2 .zs-fulfillment-summary .zs-order-section-status {
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zs-fulfillment-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: 12px
}

.zo-order-detail-v2 .zs-fulfillment-status-block {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.zo-order-detail-v2 .zs-fulfillment-status-label {
    font-size: var(--zs-font-label, 10px);
    font-weight: var(--zs-weight-medium, 500);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zs-fulfillment-status-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zs-fulfillment-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--zs-font-label, 12px);
    font-weight: var(--zs-weight-medium, 500);
    color: var(--color-brand);
    text-decoration: none;
    font-family: var(--font-sans);
    white-space: nowrap;
    transition: color .12s
}

.zo-order-detail-v2 .zs-fulfillment-open-btn:hover {
    color: var(--color-brand-dark);
    text-decoration: none
}

.zo-order-detail-v2 .zs-fulfillment-open-btn i {
    font-size: 13px
}

.zo-order-detail-v2 .zs-fulfillment-notice {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: var(--color-text-secondary);
    background: rgba(0, 0, 0, .025);
    border: .5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    margin-bottom: 12px;
    font-family: var(--font-sans);
    line-height: 1.4
}

.zo-order-detail-v2 .zs-fulfillment-notice i {
    font-size: 14px;
    color: var(--color-text-tertiary);
    flex-shrink: 0;
    margin-top: 1px
}

.zo-order-detail-v2 .zs-shipment-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.zo-order-detail-v2 .zs-shipment-card {
    background: var(--color-surface);
    border: .5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 14px
}

.zo-order-detail-v2 .zs-shipment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px
}

.zo-order-detail-v2 .zs-shipment-badges {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap
}

.zo-order-detail-v2 .zs-shipment-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--color-brand-mid);
    color: var(--color-brand-dark);
    font-family: var(--font-sans);
    white-space: nowrap
}

.zo-order-detail-v2 .zs-shipment-chip i {
    font-size: 11px
}

.zo-order-detail-v2 .zs-shipment-chip--status {
    background: var(--color-success-bg);
    color: var(--color-success-text)
}

.zo-order-detail-v2 .zs-shipment-ref {
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-family: var(--font-mono);
    flex-shrink: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.zo-order-detail-v2 .zs-shipment-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px
}

.zo-order-detail-v2 .zs-shipment-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zs-shipment-meta i {
    font-size: 12px;
    color: var(--color-text-tertiary);
    flex-shrink: 0
}

.zo-order-detail-v2 .zs-shipment-items .fulfilled-items-list {
    width: 100%;
    border-collapse: collapse
}

.zo-order-detail-v2 .zs-shipment-items .fulfilled-items-list tr {
    border-top: .5px solid var(--color-border)
}

.zo-order-detail-v2 .zs-shipment-items .fulfilled-items-list td {
    padding: 8px 0;
    font-size: var(--zs-font-base, 12px);
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    vertical-align: middle
}

.zo-order-detail-v2 .fulfilled-item-product {
    display: flex;
    align-items: center;
    gap: 8px
}

.zo-order-detail-v2 .fulfilled-item-image {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: .5px solid var(--color-border)
}

.zo-order-detail-v2 .fulfilled-item-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-primary);
    display: block;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .fulfilled-item-options {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px
}

.zo-order-detail-v2 .fulfilled-item-option {
    font-size: 10px;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .fulfilled-item-money, .zo-order-detail-v2 .fulfilled-item-total {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--color-text-secondary);
    font-weight: 400
}

.zo-order-detail-v2 .fulfilled-item-qty {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--color-text-tertiary)
}

.zo-order-detail-v2 .zs-shipment-track-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-brand);
    text-decoration: none;
    margin-top: 8px;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zs-shipment-track-link:hover {
    color: var(--color-brand-dark);
    text-decoration: none
}

.zo-order-detail-v2 .zs-shipment-track-link i {
    font-size: 12px
}

.zo-order-detail-v2 .zs-latest-tracking-event {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 10px;
    font-family: var(--font-sans)
}

.zo-order-detail-v2 .zs-latest-tracking-event strong {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-primary);
    white-space: nowrap
}

.zo-order-detail-v2 .zs-latest-tracking-event .zs-muted-text {
    font-size: var(--zs-font-xs, 12px);
    color: var(--color-text-tertiary) !important
}

@media (max-width: 767px) {
    .zo-order-detail-v2 .zo-order-detail-layout {
        grid-template-columns:1fr
    }

    .zo-order-detail-v2 .zo-order-page-header, .zo-order-detail-v2 .zo-order-progress-card {
        display: none
    }
}

@media (min-width: 768px) {
    .zo-order-detail-v2 .order-mobile-hero-card, .zo-order-detail-v2 .order-mobile-items-card, .zo-order-detail-v2 .order-mobile-total-card {
        display: none
    }
}

.zo-order-detail-v2 .zs-card-title {
    font-size: var(--zs-font-section, 15px);
    font-weight: var(--zs-weight-medium, var(--zs-weight-semibold));
    color: var(--zs-text-primary)
}

.zo-order-detail-v2 .zs-page-title {
    font-size: var(--zs-font-page, 25px);
    line-height: 1.15;
    letter-spacing: 0
}

.zo-order-detail-v2 .zs-muted-text, .zo-order-detail-v2 .zs-order-detail-summary-desc, .zo-order-detail-v2 .zs-page-subtitle {
    color: var(--zs-text-secondary) !important
}

.zo-order-detail-v2 .zs-card {
    border-color: rgba(15, 23, 42, .1);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045)
}

.zo-order-detail-v2 .zs-card-header {
    min-height: 56px;
    padding: 16px 18px
}

.zo-order-detail-v2 .zs-card-body {
    padding: 16px 18px
}

.zo-order-detail-v2 .order-adjustments-card .zs-order-detail-summary, .zo-order-detail-v2 .order-adjustments-section .zs-order-detail-summary, .zo-order-detail-v2 .order-payment-section .zs-order-detail-summary, .zo-order-detail-v2 .order-returns-section .zs-order-detail-summary, .zo-order-detail-v2 .order-tags-card .zs-order-detail-summary {
    min-height: 52px;
    margin-bottom: 0;
    padding: 13px 18px
}

.zo-order-detail-v2 details.zs-order-detail-section:not([open]) .zs-card-body {
    display: none
}

.zo-order-detail-v2 .zs-page-actions .zs-btn-primary, .zo-order-detail-v2 .zs-page-header .evt_fullfill_items {
    background: var(--primary-main, var(--zs-primary)) !important;
    border-color: var(--primary-main, var(--zs-primary)) !important;
    box-shadow: 0 10px 20px rgba(108, 71, 255, .22) !important
}

.zo-order-detail-v2 .zs-order-summary-grid {
    grid-template-columns:minmax(220px, .9fr) minmax(300px, 1.1fr);
    gap: 28px;
    align-items: start
}

.zo-order-detail-v2 .zs-order-summary-grid > div + div {
    border-left: 1px solid var(--zs-border-soft);
    padding-left: 28px
}

.zo-order-detail-v2 .zos-order-total-list {
    border-top: 0;
    padding-top: 0;
    margin-top: 0
}

.zo-order-detail-v2 .zos-order-total-row {
    padding: 5px 0
}

.zo-order-detail-v2 .order-summary-label, .zo-order-detail-v2 .order-summary-value {
    font-size: 13px;
    color: var(--zs-text-primary)
}

.zo-order-detail-v2 .order-summary-note {
    color: var(--zs-text-secondary)
}

.zo-order-detail-v2 .zos-order-total-row--final {
    margin-top: 10px;
    padding: 14px 0 10px;
    border-top: 1px solid rgba(15, 23, 42, .14)
}

.zo-order-detail-v2 .zos-order-total-row--final .order-summary-label, .zo-order-detail-v2 .zos-order-total-row--final .zos-order-total-label {
    font-size: var(--zs-font-label, 16px);
    font-weight: var(--zs-weight-medium, 700)
}

.zo-order-detail-v2 .zos-order-total-row--final .order-summary-value, .zo-order-detail-v2 .zos-order-total-row--final .zos-order-total-value {
    font-size: 18px;
    font-weight: 700
}

.zo-order-detail-v2 .order-summary-adjustment-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 12px;
    background: var(--zs-primary-soft);
    border-color: rgba(108, 71, 255, .12);
    color: var(--zs-text-secondary)
}

.zo-order-detail-v2 .zs-fulfillment-summary {
    min-height: 58px;
    margin-bottom: 0;
    padding: 16px 18px
}

.zo-order-detail-v2 .zs-fulfillment-header-row {
    padding: 12px 14px
}

.zo-order-detail-v2 .zs-fulfillment-notice {
    background: var(--zosify-surface, #fff);
    color: var(--zs-text-secondary)
}

.zo-order-detail-v2 .zs-shipment-card {
    background: var(--zosify-surface, #fff);
    padding: 14px
}

.zo-order-detail-v2 .zs-shipment-ref {
    color: var(--zs-text-muted);
    font-size: 10px;
    max-width: 240px
}

.zo-order-detail-v2 .fulfilled-item-option, .zo-order-detail-v2 .zs-shipment-meta span {
    color: var(--zs-text-secondary)
}

.zo-order-detail-v2 .zs-shipment-items .fulfilled-items-list td {
    padding: 10px 0
}

.zo-order-detail-v2 .fulfilled-item-title {
    font-size: 13px;
    font-weight: 600
}

.zo-order-detail-v2 .fulfilled-item-money, .zo-order-detail-v2 .fulfilled-item-qty, .zo-order-detail-v2 .fulfilled-item-total {
    color: var(--zs-text-primary)
}

.zo-order-detail-v2 .order-track-panel {
    margin-top: 0;
    padding-top: 14px
}

.zo-order-detail-v2 .zos-activity-item {
    grid-template-columns:66px 22px 1fr;
    column-gap: 10px;
    padding-bottom: 10px
}

.zo-order-detail-v2 .zos-activity-item:not(:last-child):before {
    left: 87px;
    top: 22px
}

.zo-order-detail-v2 .order-track-dot {
    width: 22px;
    height: 22px;
    font-size: 10px;
    background: var(--zosify-surface, #fff)
}

.zo-order-detail-v2 .zos-activity-content {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--zs-border-soft);
    border-radius: 10px
}

.zo-order-detail-v2 .zos-activity-title {
    font-size: 13px;
    font-weight: 600
}

.zo-order-detail-v2 .zos-activity-date-heading, .zo-order-detail-v2 .zos-activity-time {
    color: var(--zs-text-secondary)
}

.zo-order-detail-v2 .zo-address-lines span.zs-muted-text, .zo-order-detail-v2 .zo-address-lines strong, .zo-order-detail-v2 .zo-customer-mini span, .zo-order-detail-v2 .zo-customer-summary-line, .zo-order-detail-v2 .zo-meta-row {
    font-size: 13px
}

@media (max-width: 767px) {
    .zo-order-detail-v2 .zs-order-summary-grid {
        grid-template-columns:1fr;
        gap: 18px
    }

    .zo-order-detail-v2 .zs-order-summary-grid > div + div {
        border-left: 0;
        border-top: 1px solid var(--zs-border-soft);
        padding-left: 0;
        padding-top: 16px
    }

    .zo-order-detail-v2 .zs-card-body, .zo-order-detail-v2 .zs-card-header {
        padding-left: 14px;
        padding-right: 14px
    }

    .zo-order-detail-v2 .zos-activity-item {
        grid-template-columns:52px 20px 1fr
    }

    .zo-order-detail-v2 .zos-activity-item:not(:last-child):before {
        left: 72px
    }
}

.zo-order-detail-v2 {
    font-size: 14px
}

.zo-order-detail-v2 .order-items-card, .zo-order-detail-v2 .order-track-message, .zo-order-detail-v2 .zs-body-text, .zo-order-detail-v2 .zs-form-label, .zo-order-detail-v2 .zs-list-table, .zo-order-detail-v2 .zs-table-list tbody td {
    font-size: 13px
}

.zo-order-detail-v2 .fulfilled-item-option, .zo-order-detail-v2 .order-summary-note, .zo-order-detail-v2 .zo-address-lines span.zs-muted-text, .zo-order-detail-v2 .zo-customer-mini span, .zo-order-detail-v2 .zo-meta-row > span, .zo-order-detail-v2 .zs-order-detail-summary-desc, .zo-order-detail-v2 .zs-shipment-meta span {
    color: #5f6673 !important
}

.zo-order-detail-v2 .zs-order-items-shell {
    margin-bottom: 14px
}

.zo-order-detail-v2 .zs-order-items-shell .zs-list-table, .zo-order-detail-v2 .zs-order-items-shell table {
    min-height: 0
}

.zo-order-detail-v2 .zs-order-items-shell td {
    padding-top: 12px;
    padding-bottom: 12px
}

.zo-order-detail-v2 .zs-order-summary-grid {
    padding-top: 14px;
    border-top: 1px solid var(--zs-border-soft)
}

.zo-order-detail-v2 .zs-order-customer-note {
    min-height: 44px;
    padding: 10px 12px
}

.zo-order-detail-v2 .zs-order-customer-note--empty {
    min-height: 44px
}

.zo-order-detail-v2 .fulfilled-item-product {
    gap: 10px
}

.zo-order-detail-v2 .fulfilled-item-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--zs-bg-soft)
}

.zo-order-detail-v2 .zs-shipment-items .fulfilled-items-list tr {
    background: var(--zosify-surface, #fff)
}

.zo-order-detail-v2 .zs-shipment-items .fulfilled-items-list tr + tr {
    border-top: 1px solid var(--zs-border-soft)
}

.zo-order-detail-v2 .zs-shipment-items .fulfilled-items-list td:first-child {
    padding-left: 2px
}

.zo-order-detail-v2 .zs-shipment-items .fulfilled-items-list td:not(:first-child) {
    text-align: right;
    white-space: nowrap
}

.zo-order-detail-v2 .zs-shipment-badges .zs-badge {
    font-size: var(--zs-font-xs, 12px)
}

.zo-order-detail-v2 .zos-activity-timeline {
    max-width: 100%
}

.zo-order-detail-v2 .zos-activity-item {
    grid-template-columns:74px 24px 1fr;
    column-gap: 8px;
    padding-bottom: 8px
}

.zo-order-detail-v2 .zos-activity-item:not(:last-child):before {
    left: 93px;
    top: 24px;
    background: rgba(108, 71, 255, .18)
}

.zo-order-detail-v2 .zos-activity-content {
    min-height: 42px;
    padding: 9px 11px;
    border-color: rgba(15, 23, 42, .08);
    background: var(--zosify-surface, #fff)
}

.zo-order-detail-v2 .zos-activity-date-group {
    padding-top: 3px
}

.zo-order-detail-v2 .zos-activity-date-heading {
    font-size: 10px;
    color: var(--zs-text-primary)
}

.zo-order-detail-v2 .zos-activity-time {
    font-size: 11px;
    color: #596170
}

.zo-order-detail-v2 .order-track-dot {
    width: 24px;
    height: 24px;
    border-color: rgba(108, 71, 255, .24)
}

.zo-order-detail-v2 .order-track-dot.is-active {
    box-shadow: 0 0 0 3px rgba(108, 71, 255, .1)
}

.zo-order-detail-v2 .zos-activity-title {
    line-height: 1.35
}

.zo-order-detail-v2 .zos-activity-pill {
    color: #526071;
    background: #f3f6fa;
    border: 1px solid rgba(15, 23, 42, .06)
}

.zo-order-detail-v2 .zo-meta-list {
    gap: 2px
}

.zo-order-detail-v2 .zo-meta-row {
    padding: 7px 0;
    align-items: flex-start;
    gap: 12px
}

.zo-order-detail-v2 .zo-meta-row > span {
    flex: 0 0 44%
}

.zo-order-detail-v2 .zo-meta-row > strong {
    flex: 1;
    font-size: 13px;
    line-height: 1.35
}

.zo-order-detail-v2 .zs-order-billing-card .zs-card-body, .zo-order-detail-v2 .zs-order-customer-card .zs-card-body, .zo-order-detail-v2 .zs-order-shipping-card .zs-card-body {
    line-height: 1.55
}

.zo-order-detail-v2 .zs-page-header {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 22px;
    padding: 0
}

.zo-order-detail-v2 .zs-order-detail-back-icon {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 7px;
    color: var(--zs-text-muted);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 16px;
    height: 30px;
    justify-content: center;
    line-height: 1;
    margin-right: 8px;
    text-decoration: none;
    transition: background .15s, color .15s;
    vertical-align: middle;
    width: 30px
}

.zo-order-detail-v2 .zs-order-detail-back-icon:hover {
    background: #e8edf4;
    color: var(--zs-text-primary);
    text-decoration: none
}

.zo-order-detail-v2 .zs-page-header .zs-eyebrow {
    color: var(--primary-main, #7d2eff);
    display: block;
    font-size: var(--zs-font-label, 11px);
    font-weight: var(--zs-weight-medium, 700);
    letter-spacing: .08em;
    margin-bottom: 4px;
    text-transform: uppercase
}

.zo-order-detail-v2 .zs-page-header .zs-page-title {
    color: var(--zs-text-primary);
    font-size: var(--zs-font-page, 26px) !important;
    font-weight: var(--zs-weight-medium, 700) !important;
    letter-spacing: -.3px;
    line-height: 1.15;
    margin-bottom: 4px
}

.zo-order-detail-v2 .zs-page-header .zs-page-subtitle {
    color: var(--zs-text-secondary) !important;
    font-size: var(--zs-font-xs, 13px);
    line-height: 1.5;
    margin: 0 0 10px
}

.zo-order-detail-v2 .zs-order-detail-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px
}

.zo-order-detail-v2 .zs-page-actions {
    align-items: center;
    gap: 8px
}

.zo-order-detail-v2 .zs-page-actions .zs-btn {
    border-radius: 10px !important;
    font-size: var(--zs-font-label, 13px);
    min-height: 38px;
    padding: 8px 16px !important
}

.zo-order-detail-v2 .zs-page-actions .zs-btn-primary, .zo-order-detail-v2 .zs-page-header .evt_fullfill_items {
    background: var(--primary-main, #7d2eff) !important;
    border-color: var(--primary-main, #7d2eff) !important;
    box-shadow: 0 4px 14px rgba(125, 46, 255, .22) !important;
    color: #fff !important
}

.zo-order-detail-v2 .order-detail-actions-trigger, .zo-order-detail-v2 .zs-page-actions .zs-btn-secondary {
    background: var(--zosify-surface, #fff) !important;
    border-color: rgba(15, 23, 42, .14) !important;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06) !important;
    color: var(--zs-text-primary) !important
}

.zo-order-detail-v2 .zs-order-nav-btn {
    align-items: center;
    background: var(--zosify-surface, #fff);
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 8px;
    color: var(--zs-text-primary);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    text-decoration: none;
    transition: border-color .15s, background .15s;
    width: 34px
}

.zo-order-detail-v2 .zs-order-nav-btn:hover {
    background: var(--zosify-surface-subtle, #f8fafc);
    border-color: rgba(15, 23, 42, .22);
    text-decoration: none
}

/* ── Order Detail v2 Mobile — compact layout matching v1 ── */
@media (max-width: 767px) {
    .zo-order-detail-v2.order-details-mobile-native {
        background: #f4f6fa;
        gap: 0 !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-detail-header {
        background: var(--zosify-surface, #fff);
        border-bottom: 1px solid rgba(15, 23, 42, .08);
        gap: 8px !important;
        margin-bottom: 10px;
        padding: 10px 14px 12px
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-detail-header h1.fs-3 {
        font-size: var(--zs-font-page, 16px) !important;
        font-weight: var(--zs-weight-medium, 700) !important;
        line-height: 1.3 !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-detail-header .text-gray-500.fs-6 {
        font-size: 12px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-detail-status-row {
        flex-wrap: nowrap !important;
        gap: 5px !important;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-detail-status-row::-webkit-scrollbar {
        display: none
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-detail-status-row .badge {
        font-size: var(--zs-font-xs, 11px) !important;
        min-height: 22px !important;
        padding: 3px 8px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-detail-header > .d-flex.align-items-center.gap-2 {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100%
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-detail-header .evt_fullfill_items {
        flex: 1;
        font-size: 13px !important;
        font-weight: 600 !important;
        justify-content: center;
        min-height: 36px;
        text-align: center
    }

    .zo-order-detail-v2.order-details-mobile-native > .d-flex.flex-column.flex-lg-row {
        gap: 0 !important;
        padding: 0 12px
    }

    .zo-order-detail-v2.order-details-mobile-native .card.card-flush {
        border: 1px solid rgba(15, 23, 42, .08) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        margin-bottom: 10px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .card.card-flush .card-header.min-h-50px {
        min-height: 44px !important;
        padding: 0 14px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .card.card-flush .card-body {
        padding: 4px 14px 14px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-progress-card .card-body {
        overflow-x: auto;
        padding-bottom: 16px !important;
        padding-top: 4px !important;
        scrollbar-width: none
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-progress-card .card-body::-webkit-scrollbar {
        display: none
    }

    .zo-order-detail-v2.order-details-mobile-native .flex-column.flex-lg-auto {
        margin-top: 0 !important
    }

    .zo-order-detail-v2.order-details-mobile-native details.card.card-flush > summary.card-header {
        cursor: pointer;
        list-style: none
    }

    .zo-order-detail-v2.order-details-mobile-native details.card.card-flush > summary.card-header::-webkit-details-marker {
        display: none
    }

    .zo-order-detail-v2.order-details-mobile-native .card.card-flush .card-header .card-title.fw-bold.fs-6 {
        font-size: var(--zs-font-section, 13px) !important;
        font-weight: var(--zs-weight-medium, 600) !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-detail-header .btn-icon.btn-light.btn-sm {
        background: var(--zosify-surface-subtle, #f8fafc);
        border: 1px solid #dfe5ef;
        border-radius: 10px;
        height: 34px;
        min-height: 34px;
        width: 34px
    }
}

@media (max-width: 767px) {
    .zo-order-detail-v2 .zos-activity-item {
        grid-template-columns:58px 22px 1fr
    }

    .zo-order-detail-v2 .zos-activity-item:not(:last-child):before {
        left: 79px
    }

    .zo-order-detail-v2 .zs-shipment-items .fulfilled-items-list td:not(:first-child) {
        text-align: left
    }
}

/* ── Order Detail v2 Mobile — inner section layouts ── */
@media (max-width: 767px) {
    /* ── Order summary: items table → block cards ── */
    .zo-order-detail-v2.order-details-mobile-native .zs-order-items-list, .zo-order-detail-v2.order-details-mobile-native .zs-order-items-list tbody, .zo-order-detail-v2.order-details-mobile-native .zs-order-items-list tr, .zo-order-detail-v2.order-details-mobile-native .zs-order-items-list td {
        display: block;
        width: 100%
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-items-list tr {
        padding: 10px 0;
        border-bottom: 1px solid rgba(15, 23, 42, .07);
        background: transparent
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-items-list tr:last-child {
        border-bottom: 0
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-items-list td {
        padding: 0 !important;
        text-align: left !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-items-list td:nth-child(2) {
        display: none !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-items-list td:nth-child(3) {
        margin-top: -36px;
        text-align: right !important
    }

    .zo-order-detail-v2.order-details-mobile-native .order-item-product-row {
        align-items: flex-start;
        gap: 10px
    }

    .zo-order-detail-v2.order-details-mobile-native .order-item-row-image {
        border-radius: 8px;
        height: 44px;
        width: 44px
    }

    .zo-order-detail-v2.order-details-mobile-native .order-item-row-title {
        font-size: 13px !important;
        line-height: 1.35
    }

    .zo-order-detail-v2.order-details-mobile-native .order-item-row-options, .zo-order-detail-v2.order-details-mobile-native .order-item-row-meta {
        font-size: 11px !important
    }

    /* ── Order summary: col-lg-6 grid → single column ── */
    .zo-order-detail-v2.order-details-mobile-native .zs-order-summary-card .row.g-5 {
        display: block
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-summary-card .col-lg-6 {
        padding: 0
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-summary-card .col-lg-6 + .col-lg-6 {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(15, 23, 42, .07)
    }

    /* ── Order totals: hide detail rows, show on expanded ── */
    .zo-order-detail-v2.order-details-mobile-native .zos-order-total-row--mobile-detail {
        display: none !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zos-order-total-list.is-total-expanded .zos-order-total-row--mobile-detail {
        display: flex !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zos-order-total-row {
        padding: 5px 0
    }

    .zo-order-detail-v2.order-details-mobile-native .order-summary-label {
        font-size: var(--zs-font-label, 12px) !important
    }

    .zo-order-detail-v2.order-details-mobile-native .order-summary-value {
        font-size: 12px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zos-order-total-row--final .order-summary-label, .zo-order-detail-v2.order-details-mobile-native .zos-order-total-row--final .order-summary-value {
        font-size: 14px !important;
        font-weight: 700 !important
    }

    .zo-order-detail-v2.order-details-mobile-native .order-mobile-total-breakdown-toggle {
        background: 0 0;
        border: 0;
        color: var(--primary-main, #7d2eff);
        font-size: 12px;
        font-weight: 600;
        padding: 0;
        margin-top: 8px
    }

    .zo-order-detail-v2.order-details-mobile-native .order-summary-adjustment-note {
        font-size: 11px !important;
        padding: 8px 10px
    }

    /* ── Fulfillment section inner layout ── */
    .zo-order-detail-v2.order-details-mobile-native .zs-fulfillment-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 0;
        background: transparent;
        border-radius: 0
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-shipment-card {
        padding: 10px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-shipment-head {
        flex-wrap: wrap;
        gap: 6px
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-shipment-ref {
        font-size: 10px !important;
        max-width: none
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-fulfillment-notice {
        font-size: 11px !important;
        padding: 8px 10px
    }

    /* ── Payment section inner layout ── */
    .zo-order-detail-v2.order-details-mobile-native .order-payment-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px
    }

    .zo-order-detail-v2.order-details-mobile-native .order-payment-card {
        margin-bottom: 0;
        padding: 10px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-adjustment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-money-positive, .zo-order-detail-v2.order-details-mobile-native .zs-order-money-negative {
        font-size: 12px !important
    }

    /* ── Adjustment section ── */
    .zo-order-detail-v2.order-details-mobile-native .order-adjustments-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px
    }

    /* ── Customer notes ── */
    .zo-order-detail-v2.order-details-mobile-native .zs-order-customer-note {
        font-size: 12px !important;
        padding: 8px 10px
    }

    /* ── Activity timeline compact ── */
    .zo-order-detail-v2.order-details-mobile-native .zos-activity-item {
        grid-template-columns:52px 20px 1fr;
        column-gap: 8px;
        padding-bottom: 10px
    }

    .zo-order-detail-v2.order-details-mobile-native .zos-activity-item:not(:last-child)::before {
        left: 71px;
        top: 20px
    }

    .zo-order-detail-v2.order-details-mobile-native .order-track-dot {
        height: 20px;
        width: 20px
    }

    .zo-order-detail-v2.order-details-mobile-native .zos-activity-content {
        padding: 8px 10px;
        min-height: 38px
    }

    .zo-order-detail-v2.order-details-mobile-native .zos-activity-title {
        font-size: 12px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .order-track-message {
        font-size: 11px !important;
        margin-top: 2px
    }

    .zo-order-detail-v2.order-details-mobile-native .zos-activity-date-heading {
        font-size: 9px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zos-activity-time {
        font-size: 10px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .order-track-chip {
        font-size: 10px !important;
        padding: 2px 6px !important;
        min-height: 18px
    }

    .zo-order-detail-v2.order-details-mobile-native .order-internal-note-form {
        display: none
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-activity.is-note-open .order-internal-note-form {
        display: block
    }

    .zo-order-detail-v2.order-details-mobile-native .order-mobile-note-toggle {
        font-size: 12px !important
    }

    /* ── Customer / address / meta sidebar cards ── */
    .zo-order-detail-v2.order-details-mobile-native .zo-customer-mini {
        gap: 8px
    }

    .zo-order-detail-v2.order-details-mobile-native .zo-address-lines span, .zo-order-detail-v2.order-details-mobile-native .zo-address-lines strong {
        font-size: 12px !important
    }

    .zo-order-detail-v2.order-details-mobile-native .zs-order-meta-row {
        font-size: 12px !important;
        padding: 5px 0
    }

    .zo-order-detail-v2.order-details-mobile-native .zo-ai-insight-item p {
        font-size: 11px !important
    }

    /* ── Shipment table: left-align price cols on mobile ── */
    .zo-order-detail-v2.order-details-mobile-native .fulfilled-items-list td:not(:first-child) {
        text-align: left !important;
        white-space: normal
    }
}

/* Order details adminv2 KT pass: replacement for legacy zo/zs visual hooks. */
.order-detail-v2-kt details.card > summary.card-header {
    cursor: pointer;
    list-style: none
}

.order-detail-v2-kt details.card > summary.card-header::-webkit-details-marker {
    display: none
}

.order-detail-v2-kt [data-order-total-list] .order-total-mobile-detail {
    display: flex
}

.order-detail-v2-kt [data-order-total-list]:not(.is-total-expanded) .order-total-mobile-detail {
    display: none
}

.order-detail-drawer-backdrop {
    background: rgba(var(--bs-body-color-rgb), .35);
    inset: 0;
    position: fixed;
    z-index: 1090
}

.order-detail-drawer {
    border-left: 1px solid var(--bs-border-color);
    box-shadow: var(--bs-box-shadow-lg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 32.5rem;
    overflow-y: auto;
    padding: 1.5rem;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(104%);
    transition: transform .2s ease;
    width: min(32.5rem, 92vw);
    z-index: 1100
}

.order-detail-drawer.is-open {
    transform: translateX(0)
}

body.order-detail-drawer-open {
    overflow: hidden
}

.order-detail-v2-kt [data-order-activity] .order-internal-note-form {
    background: var(--kt-input-solid-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .475rem;
    margin-bottom: 1.5rem;
    padding: 1rem
}

.order-detail-v2-kt [data-order-activity]:not(.is-note-open) .order-internal-note-form {
    display: none
}

.order-detail-v2-kt [data-order-activity] .order-internal-note-form textarea {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    border-radius: .475rem;
    min-height: 6.5rem
}

.order-detail-v2-kt [data-order-activity] .order-internal-note-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.order-detail-v2-kt [data-order-activity] .order-detail-activity-list {
    width: 100%
}

.order-detail-v2-kt [data-order-activity] .order-detail-activity-item {
    position: relative;
    width: 100%
}

.order-detail-v2-kt [data-order-activity] .order-detail-activity-time {
    flex: 0 0 5.75rem;
    line-height: 1.35;
    text-align: right;
    word-break: normal
}

.order-detail-v2-kt [data-order-activity] .order-detail-activity-badge {
    display: flex;
    flex: 0 0 2rem;
    justify-content: center;
    position: relative
}

.order-detail-v2-kt [data-order-activity] .order-detail-activity-badge:after {
    background: var(--bs-border-color);
    content: "";
    position: absolute;
    top: 2rem;
    bottom: -1.25rem;
    width: 1px
}

.order-detail-v2-kt [data-order-activity] .order-detail-activity-item:last-child .order-detail-activity-badge:after {
    display: none
}

.order-detail-v2-kt [data-order-activity] .order-detail-activity-badge .symbol {
    position: relative;
    z-index: 1
}

.order-detail-v2-kt [data-order-activity] .order-detail-activity-content {
    display: block;
    line-height: 1.45;
    max-width: none;
    min-width: 0;
    width: auto;
    word-break: normal;
    overflow-wrap: anywhere
}

.order-detail-v2-kt [data-order-activity] .order-detail-activity-content > .fw-semibold {
    font-size: .95rem;
    line-height: 1.45
}

@media (max-width: 767.98px) {
    .order-detail-v2-kt {
        gap: 1rem !important
    }

    .order-detail-v2-kt .card.card-flush {
        margin-bottom: 1rem !important
    }

    .order-detail-v2-kt .card-header {
        align-items: flex-start;
        gap: .75rem
    }

    .order-detail-v2-kt [data-order-activity] .order-internal-note-actions {
        align-items: stretch;
        flex-direction: column
    }

    .order-detail-v2-kt [data-order-activity] .order-detail-activity-item {
        gap: .75rem !important
    }

    .order-detail-v2-kt [data-order-activity] .order-detail-activity-time {
        flex-basis: 3.75rem;
        text-align: left
    }

    .order-detail-v2-kt [data-order-activity] .order-detail-activity-badge {
        flex-basis: 1.75rem
    }

    .order-detail-drawer {
        padding: 1rem;
        width: 100vw
    }
}

/* ── Order Details — mobile native pass ─────────────────────────────────── */
@media (max-width: 767.98px) {
    [data-order-detail-v2] {
        /*background: #f5f7fb;*/
        /*padding: 0 .75rem 1.25rem;*/
        gap: .75rem !important;
    }

    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child {
        position: sticky;
        top: 0;
        z-index: 20;
        margin: 0 -.75rem .75rem;
        padding: .75rem .75rem .65rem;
        background: rgba(255, 255, 255, .96);
        border-bottom: 1px solid rgba(226, 232, 240, .9);
        box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
        backdrop-filter: blur(14px);
    }

    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child .page-title {
        width: 100%;
        min-width: 0;
    }

    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child h1 {
        font-size: var(--zs-font-page, 15px) !important;
        line-height: 1.25;
        letter-spacing: 0;
        margin-bottom: .2rem !important;
    }

    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child .text-muted,
    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child .fw-semibold.fs-8 {
        font-size: 10.5px !important;
        line-height: 1.35;
    }

    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child .badge {
        font-size: 9.5px !important;
        padding: .26rem .44rem;
        border-radius: 7px;
        line-height: 1;
    }

    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child .d-flex.align-items-center.gap-2 {
        width: 100%;
        margin-top: .65rem;
        gap: .45rem !important;
    }

    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child .evt_fullfill_items {
        flex: 1 1 auto;
        min-height: 38px;
        border-radius: 10px !important;
        justify-content: center;
    }

    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child .btn:not(.evt_fullfill_items) {
        min-width: 38px;
        height: 38px;
        border-radius: 10px !important;
    }

    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child a[href*="order-details"]:has(.ki-left),
    [data-order-detail-v2] > .d-flex.flex-wrap.flex-stack:first-child a[href*="order-details"]:has(.ki-right) {
        display: none !important;
    }

    [data-order-detail-v2] .row.g-5,
    [data-order-detail-v2] .row.g-xl-8,
    [data-order-detail-v2] .g-5,
    [data-order-detail-v2] .g-xl-8 {
        --bs-gutter-x: 0;
        --bs-gutter-y: .75rem;
    }

    [data-order-detail-v2] .card.card-flush,
    [data-order-detail-v2] details.card {
        border: 1px solid rgba(226, 232, 240, .92) !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, .055) !important;
        overflow: hidden;
        margin-bottom: .75rem;
        background: var(--zosify-surface, #fff);
    }

    [data-order-detail-v2] .card-header {
        min-height: 0 !important;
        padding: .95rem 1rem .45rem !important;
        border-bottom: 0 !important;
    }

    [data-order-detail-v2] .card-title,
    [data-order-detail-v2] .card-label,
    [data-order-detail-v2] .fw-bold.fs-4,
    [data-order-detail-v2] .fw-bold.fs-5 {
        font-size: 13px !important;
        line-height: 1.25;
        font-weight: 800 !important;
        color: #071737 !important;
    }

    [data-order-detail-v2] .card-body {
        padding: .8rem 1rem 1rem !important;
    }

    [data-order-detail-v2] .btn {
        font-size: var(--zs-font-label, 11px);
        min-height: 34px;
        border-radius: 10px !important;
    }

    [data-order-detail-v2] .btn-sm {
        min-height: 30px;
        padding: .42rem .65rem;
    }

    [data-order-detail-v2] .badge {
        border-radius: 7px;
        font-size: 9.5px;
        font-weight: 700;
    }

    [data-order-detail-v2] .zs-order-progress-card .card-body {
        padding: .55rem .9rem .85rem !important;
        overflow: visible !important;
    }

    [data-order-detail-v2] .zs-order-progress-track {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        align-items: start !important;
        gap: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        padding-top: .25rem;
    }

    [data-order-detail-v2] .zs-order-progress-node {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: .38rem !important;
        min-width: 0 !important;
        text-align: center;
    }

    [data-order-detail-v2] .zs-order-progress-node::before {
        display: none !important;
        content: none !important;
    }

    [data-order-detail-v2] .zs-order-progress-node:not(:last-child)::after {
        top: 16px !important;
        left: calc(50% + 16px) !important;
        right: calc(-50% + 16px) !important;
        height: 3px !important;
        border-radius: 999px;
    }

    [data-order-detail-v2] .zs-order-progress-marker {
        width: 31px !important;
        height: 31px !important;
        box-shadow: 0 7px 16px rgba(24, 125, 255, .12);
    }

    [data-order-detail-v2] .zs-order-progress-marker i {
        font-size: 1rem !important;
    }

    [data-order-detail-v2] .zs-order-progress-label {
        max-width: 58px;
        font-size: var(--zs-font-label, 9.5px) !important;
        line-height: 1.15;
        font-weight: var(--zs-weight-medium, 700) !important;
        white-space: normal !important;
    }

    [data-order-detail-v2] .zo-order-line-item,
    [data-order-detail-v2] .zo-fulfillment-item,
    [data-order-detail-v2] .zo-payment-row,
    [data-order-detail-v2] .zo-adjustment-row {
        border-radius: 12px !important;
        padding: .7rem !important;
        background: #fbfcff;
        border: 1px solid rgba(226, 232, 240, .85);
    }

    [data-order-detail-v2] .symbol,
    [data-order-detail-v2] .symbol .symbol-label {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    [data-order-detail-v2] .zo-order-line-item .symbol,
    [data-order-detail-v2] .zo-order-line-item .symbol .symbol-label {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }

    [data-order-detail-v2] .fs-6 {
        font-size: 12px !important;
    }

    [data-order-detail-v2] .fs-7 {
        font-size: 10.8px !important;
    }

    [data-order-detail-v2] .fs-8 {
        font-size: 10px !important;
    }

    [data-order-detail-v2] .text-gray-800,
    [data-order-detail-v2] .text-gray-900 {
        color: #17213a !important;
    }

    [data-order-detail-v2] .text-muted,
    [data-order-detail-v2] .text-gray-600,
    [data-order-detail-v2] .text-gray-700 {
        color: #78849c !important;
    }

    [data-order-detail-v2] .alert,
    [data-order-detail-v2] .notice,
    [data-order-detail-v2] .zo-insight-item {
        border-radius: 11px !important;
        font-size: 11px !important;
        line-height: 1.35;
    }

    [data-order-detail-v2] [data-order-activity] .timeline {
        padding-left: .1rem;
    }

    [data-order-detail-v2] [data-order-activity] .timeline-item {
        min-height: 0;
    }

    [data-order-detail-v2] [data-order-activity] .timeline-icon {
        width: 24px;
        height: 24px;
        margin-left: -1px;
        background: #f8fbff;
        border: 1px solid rgba(226, 232, 240, .95);
    }

    [data-order-detail-v2] [data-order-activity] .timeline-icon i {
        font-size: 1rem !important;
    }

    [data-order-detail-v2] [data-order-activity] .timeline-content {
        margin-bottom: .8rem !important;
        padding-left: .65rem !important;
    }

    [data-order-detail-v2] [data-order-activity] .timeline-content .pe-3 {
        padding-right: 0 !important;
        margin-bottom: .15rem !important;
    }

    [data-order-detail-v2] [data-order-activity] .timeline-content .fs-5 {
        font-size: 12px !important;
        line-height: 1.35;
        margin-bottom: .2rem !important;
    }

    [data-order-detail-v2] [data-order-activity] .timeline-content .overflow-auto {
        padding-bottom: .25rem !important;
        overflow: visible !important;
    }

    [data-order-detail-v2] [data-order-activity] .timeline-content .d-flex.align-items-center {
        margin-top: 0 !important;
        flex-wrap: wrap;
        row-gap: .1rem;
    }

    [data-order-detail-v2] .zo-customer-card .card-body,
    [data-order-detail-v2] .zo-address-card .card-body,
    [data-order-detail-v2] .zo-meta-card .card-body {
        font-size: 11.5px;
        line-height: 1.4;
    }

    [data-order-detail-v2] .zo-insight-list {
        gap: .45rem !important;
    }

    [data-order-detail-v2] .zo-insight-item {
        padding: .55rem .65rem !important;
        background: var(--zosify-surface-subtle, #f8fafc);
    }

    [data-order-detail-v2] .form-control,
    [data-order-detail-v2] .form-select,
    [data-order-detail-v2] .select2-container--bootstrap5 .select2-selection {
        min-height: 38px;
        border-radius: 10px !important;
        font-size: 12px;
    }

    [data-order-detail-v2] .form-check.form-check-custom .form-check-input {
        width: 1.05rem;
        height: 1.05rem;
        border-radius: .35rem;
    }
}

/* ── Order Details — mobile order summary fixes ─────────────────────────── */
@media (max-width: 767.98px) {
    [data-order-detail-v2] .zs-order-items-wrap {
        margin-bottom: .9rem !important;
    }

    [data-order-detail-v2] .zs-order-items-list,
    [data-order-detail-v2] .zs-order-items-list tbody,
    [data-order-detail-v2] .zs-order-items-list tr,
    [data-order-detail-v2] .zs-order-items-list td {
        display: block !important;
        width: 100% !important;
    }

    [data-order-detail-v2] .zs-order-items-list tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        column-gap: .9rem;
        row-gap: .4rem;
        align-items: start;
        position: relative;
        padding: .25rem 0 .35rem !important;
        border: 0 !important;
    }

    [data-order-detail-v2] .zs-order-items-list td {
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
    }

    [data-order-detail-v2] .zs-order-items-list td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
        text-align: right !important;
    }

    [data-order-detail-v2] .zs-order-items-list td:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
        text-align: right !important;
    }

    [data-order-detail-v2] .order-item-product-row {
        display: block !important;
        padding-left: 0 !important;
    }

    [data-order-detail-v2] .order-item-product-row > div:last-child {
        width: 100%;
        min-width: 0;
    }

    [data-order-detail-v2] .order-item-row-image {
        display: none !important;
    }

    [data-order-detail-v2] .order-item-row-title {
        display: block;
        font-size: 12px !important;
        line-height: 1.35;
        text-align: left;
    }

    [data-order-detail-v2] .order-item-row-options,
    [data-order-detail-v2] .order-item-row-meta {
        justify-content: flex-start;
        gap: .35rem .7rem !important;
        text-align: left;
    }

    [data-order-detail-v2] .order-item-row-note {
        display: none !important;
    }

    [data-order-detail-v2] .order-item-row-money,
    [data-order-detail-v2] .order-item-row-qty,
    [data-order-detail-v2] .order-item-row-total {
        font-size: 11px !important;
    }

    [data-order-detail-v2] [data-order-total-list] .order-total-mobile-detail,
    [data-order-detail-v2] [data-order-total-list] .zos-order-total-row--mobile-detail {
        display: none !important;
    }

    [data-order-detail-v2] [data-order-total-list].is-total-expanded .order-total-mobile-detail,
    [data-order-detail-v2] [data-order-total-list].is-total-expanded .zos-order-total-row--mobile-detail {
        display: flex !important;
    }

    [data-order-detail-v2] [data-order-total-list] .order-summary-note {
        display: inline;
        margin-left: .2rem;
        font-size: 9.5px !important;
        line-height: 1.25;
    }
}

/* Admin v2 return creation page. */
[data-return-create-v2] .card {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

[data-return-create-v2] .card-header {
    border-bottom: 0;
    padding: 1.25rem 1.5rem .25rem;
}

[data-return-create-v2] .card-body {
    padding: 1rem 1.5rem 1.5rem;
}

[data-return-create-v2] .return-items-head,
[data-return-create-v2] .return-item-row {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 32px minmax(260px, 1fr) 110px 110px 120px;
}

[data-return-create-v2] .return-items-head {
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    padding-bottom: .75rem;
}

[data-return-create-v2] .return-items-list {
    display: flex;
    flex-direction: column;
}

[data-return-create-v2] .return-item-row {
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    padding: 1rem 0;
}

[data-return-create-v2] .return-item-row:last-child {
    border-bottom: 0;
}

[data-return-create-v2] .return-item-row.is-disabled {
    opacity: .58;
}

[data-return-create-v2] .return-product {
    align-items: center;
    display: flex;
    gap: .85rem;
    min-width: 0;
}

[data-return-create-v2] .symbol-label {
    background-position: center;
    background-size: cover;
}

[data-return-create-v2] .form-control,
[data-return-create-v2] .form-select {
    border-radius: .65rem;
}

@media (max-width: 991.98px) {
    [data-return-create-v2] .return-items-head {
        display: none;
    }

    [data-return-create-v2] .return-item-row {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: .6rem .85rem;
        align-items: start;
    }

    [data-return-create-v2] .return-product {
        grid-column: 2 / -1;
    }

    [data-return-create-v2] .return-item-row > div:nth-child(3),
    [data-return-create-v2] .return-item-row > div:nth-child(4) {
        grid-column: 2;
        color: #5e6278;
        font-size: .85rem;
    }

    [data-return-create-v2] .return-item-row > div:nth-child(5) {
        grid-column: 3;
        grid-row: 2 / span 2;
        min-width: 88px;
    }
}

@media (max-width: 767.98px) {
    [data-return-create-v2] {
        gap: 1rem !important;
    }

    [data-return-create-v2] .card {
        border-radius: 12px;
        box-shadow: 0 5px 16px rgba(15, 23, 42, .04);
        margin-bottom: .9rem !important;
    }

    [data-return-create-v2] .card-header,
    [data-return-create-v2] .card-body,
    [data-return-create-v2] .card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Admin v2 draft order creation. Keenthemes-aligned shell with legacy JS selectors preserved. */
[data-draft-order-v2] .manual-draft-order-form {
    display: block;
}

[data-draft-order-v2] .card {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

[data-draft-order-v2] .card-header {
    border-bottom: 0;
    padding: 1.25rem 1.5rem .25rem;
}

[data-draft-order-v2] .card-body {
    padding: 1rem 1.5rem 1.5rem;
}

[data-draft-order-v2] .draft-items-head,
[data-draft-order-v2] .draft-item-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) minmax(120px, .65fr) 86px 120px 120px 40px;
    gap: 1rem;
    align-items: center;
}

[data-draft-order-v2] .draft-items-head {
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    padding: 0 0 .75rem;
}

[data-draft-order-v2] .manual-draft-items {
    display: flex;
    flex-direction: column;
}

[data-draft-order-v2] .manual-draft-item {
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    padding: 1rem 0;
}

[data-draft-order-v2] .manual-draft-item:last-child {
    border-bottom: 0;
}

[data-draft-order-v2] .draft-item-product {
    align-items: center;
    display: flex;
    gap: .85rem;
    min-width: 0;
}

[data-draft-order-v2] .draft-item-product > div {
    flex: 1 1 auto;
    min-width: 0;
}

[data-draft-order-v2] .draft-item-thumb {
    align-items: center;
    background: #f5f8fa;
    border-radius: .65rem;
    color: #7e8299;
    display: inline-flex;
    flex: 0 0 auto;
    height: 45px;
    justify-content: center;
    overflow: hidden;
    width: 45px;
}

[data-draft-order-v2] .draft-item-total {
    text-align: right;
    white-space: nowrap;
}

[data-draft-order-v2] .form-label,
[data-draft-order-v2] .zs-form-label {
    color: #5e6278;
    font-size: var(--zs-font-label, .85rem);
    font-weight: var(--zs-weight-medium, 600);
    margin-bottom: .4rem;
}

[data-draft-order-v2] .draft-items-head + .manual-draft-items .manual-draft-item .form-label,
[data-draft-order-v2] .draft-items-head + .manual-draft-items .manual-draft-item .zs-form-label {
    display: none;
}

[data-draft-order-v2] .form-control,
[data-draft-order-v2] .form-select,
[data-draft-order-v2] .zs-form-control,
[data-draft-order-v2] .zs-form-select {
    background-color: var(--kt-input-solid-bg, #f5f8fa);
    border-color: var(--kt-input-solid-bg, #f5f8fa);
    border-radius: .65rem;
    color: #181c32;
    min-height: 42px;
}

[data-draft-order-v2] .remove-manual-draft-item {
    align-items: center;
    background: #f5f8fa;
    border: 0;
    border-radius: .65rem;
    color: #7e8299;
    display: inline-flex;
    font-size: .85rem;
    font-weight: 700;
    justify-content: center;
    min-height: 34px;
    padding: .45rem .7rem;
}

[data-draft-order-v2] .remove-manual-draft-item:hover {
    color: #f1416c;
}

[data-draft-order-v2] .draft-total-box {
    border-top: 1px solid rgba(226, 232, 240, .9);
    padding-top: 1rem;
}

[data-draft-order-v2] .draft-total-row {
    align-items: center;
    color: #5e6278;
    display: flex;
    font-size: .925rem;
    justify-content: space-between;
    padding: .45rem 0;
}

[data-draft-order-v2] .draft-total-row span:last-child {
    color: #181c32;
    font-weight: 700;
}

[data-draft-order-v2] .draft-total-row.is-total {
    border-top: 1px solid rgba(226, 232, 240, .9);
    color: #181c32;
    font-size: 1.05rem;
    font-weight: 800;
    margin-top: .5rem;
    padding-top: .9rem;
}

[data-draft-order-v2] .draft-search-icon {
    left: 1rem;
    top: 2.9rem;
    z-index: 1;
}

[data-draft-order-v2] .manual-draft-customer-results {
    background: var(--zosify-surface, #fff);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: .75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
    left: 0;
    margin-top: .5rem;
    max-height: 260px;
    overflow: auto;
    position: absolute;
    right: 0;
    z-index: 20;
}

[data-draft-order-v2] .manual-draft-customer-option {
    color: #181c32;
    font-size: .9rem;
    text-align: left !important;
}

[data-draft-order-v2] .manual-draft-customer-option:hover {
    background-color: var(--zosify-surface-subtle, #f8fafc) !important;
}

[data-draft-order-v2] .draft-billing-fields {
    display: none;
}

[data-draft-order-v2] .draft-billing-fields.is-visible {
    display: flex;
}

/* ── Product Picker Modal ── */
.common-product-picker-modal .common-product-picker-head,
.common-product-picker-modal .common-product-picker-row {
    display: grid;
    grid-template-columns: 28px 46px minmax(0, 1fr) 90px 90px;
    gap: .85rem;
    align-items: center;
}

.common-product-picker-modal .common-product-picker-head {
    grid-template-columns: minmax(0, 1fr) 90px 90px;
    border-bottom: 1px solid #e9edf1;
    padding: .5rem 1.5rem;
}

.common-product-picker-modal .common-product-picker-results {
    max-height: 420px;
    overflow-y: auto;
}

/* Row base */
.common-product-picker-modal .common-product-picker-row {
    border-bottom: 1px solid #f1f1f4;
    color: #181c32;
    min-height: 56px;
    padding: .65rem 1.5rem;
    transition: background .1s ease;
}

.common-product-picker-modal .common-product-picker-row:hover {
    background: #f9fafb;
}

.common-product-picker-modal .common-product-picker-row:last-child {
    border-bottom: 0;
}

/* Selected row highlight */
.common-product-picker-modal .common-product-picker-row:has(.common-product-picker-check:checked) {
    background: #eef6ff;
}

/* Variant row indent */
.common-product-picker-modal .common-product-picker-row.is-variant {
    grid-template-columns: 28px 46px minmax(0, 1fr) 90px 90px;
    padding-left: 3rem;
    background: #fafafa;
}

.common-product-picker-modal .common-product-picker-row.is-variant:hover {
    background: #f3f6f9;
}

/* Checkbox — styled to match KT accent */
.common-product-picker-modal .common-product-picker-check {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: var(--zosify-accent);
    border-radius: .25rem;
    flex-shrink: 0;
}

/* Thumbnail */
.common-product-picker-modal .common-product-picker-thumb {
    align-items: center;
    background: #f5f8fa;
    border-radius: .5rem;
    border: 1px solid #e9edf1;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    overflow: hidden;
    width: 40px;
    flex-shrink: 0;
    font-size: 0; /* hide ▦ placeholder text */
    color: transparent;
}

.common-product-picker-modal .common-product-picker-thumb::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-color: #b5b5c3;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2ZM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2ZM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.common-product-picker-modal .common-product-picker-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* When there IS an image, hide the ::after placeholder */
.common-product-picker-modal .common-product-picker-thumb img ~ *,
.common-product-picker-modal .common-product-picker-thumb:has(img)::after {
    display: none;
}

/* Title */
.common-product-picker-modal .common-product-picker-title {
    font-weight: 600;
    font-size: .9rem;
    min-width: 0;
    color: #181c32;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.common-product-picker-modal .common-product-picker-title-wrap {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

/* Subtitle (variant option text) + available */
.common-product-picker-modal .common-product-picker-subtitle,
.common-product-picker-modal .common-product-picker-available {
    color: #a1a5b7;
    font-size: .8rem;
    font-weight: 500;
}

/* Price */
.common-product-picker-modal .common-product-picker-price {
    color: #181c32;
    font-weight: 600;
    font-size: .875rem;
    text-align: right;
}

/* Empty / loading state */
.common-product-picker-modal .common-product-picker-results:empty::after {
    content: 'Search for products above';
    display: block;
    text-align: center;
    color: #a1a5b7;
    font-size: .85rem;
    padding: 2.5rem 1rem;
}

@media (max-width: 767.98px) {
    .common-product-picker-modal .modal-dialog {
        margin: .5rem;
    }

    .common-product-picker-modal .common-product-picker-head {
        display: none;
    }

    .common-product-picker-modal .common-product-picker-row,
    .common-product-picker-modal .common-product-picker-row.is-variant {
        grid-template-columns: 24px 40px minmax(0, 1fr);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .common-product-picker-modal .common-product-picker-available,
    .common-product-picker-modal .common-product-picker-price {
        grid-column: 3;
        text-align: left;
        font-size: .78rem;
    }
}

@media (max-width: 1199.98px) {
    [data-draft-order-v2] .draft-items-head {
        display: none;
    }

    [data-draft-order-v2] .draft-item-grid {
        grid-template-columns: minmax(0, 1fr) minmax(100px, auto);
    }

    [data-draft-order-v2] .draft-item-product {
        grid-column: 1 / -1;
    }

    [data-draft-order-v2] .draft-item-total {
        text-align: left;
    }

    [data-draft-order-v2] .draft-items-head + .manual-draft-items .manual-draft-item .form-label,
    [data-draft-order-v2] .draft-items-head + .manual-draft-items .manual-draft-item .zs-form-label {
        display: block;
    }
}

@media (max-width: 767.98px) {
    [data-draft-order-v2] {
        gap: 1rem !important;
    }

    [data-draft-order-v2] .card {
        border-radius: 12px;
        box-shadow: 0 5px 16px rgba(15, 23, 42, .04);
        margin-bottom: .9rem !important;
    }

    [data-draft-order-v2] .card-header,
    [data-draft-order-v2] .card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    [data-draft-order-v2] .draft-item-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    [data-draft-order-v2] .draft-item-product {
        align-items: flex-start;
    }

    [data-draft-order-v2] .card-toolbar {
        width: 100%;
        justify-content: stretch;
    }

    [data-draft-order-v2] .card-toolbar .btn {
        flex: 1 1 auto;
    }
}

/* Order detail hierarchy polish. Keep the action path prominent and supporting sections quiet. */
[data-order-detail-v2] {
    --zs-order-card-border: rgba(226, 232, 240, .9);
    --zs-order-soft-bg: #fbfcff;
    --zs-order-muted-bg: var(--zosify-surface-subtle, #f8fafc);
    --zs-order-shadow-primary: 0 14px 32px rgba(15, 23, 42, .075);
    --zs-order-shadow-secondary: 0 8px 20px rgba(15, 23, 42, .045);
    --zs-order-shadow-tertiary: 0 4px 14px rgba(15, 23, 42, .035);
}

[data-order-detail-v2] .order-primary-card {
    border-color: rgba(213, 220, 232, .95) !important;
    box-shadow: var(--zs-order-shadow-primary) !important;
}

[data-order-detail-v2] .order-secondary-card,
[data-order-detail-v2] .zs-order-progress-card {
    border-color: var(--zs-order-card-border) !important;
    box-shadow: var(--zs-order-shadow-secondary) !important;
}

[data-order-detail-v2] .order-tertiary-card {
    border-color: rgba(226, 232, 240, .78) !important;
    box-shadow: var(--zs-order-shadow-tertiary) !important;
    background: rgba(255, 255, 255, .96) !important;
}

[data-order-detail-v2] .order-tertiary-card .card-header {
    min-height: 46px !important;
}

[data-order-detail-v2] .order-tertiary-card .card-title {
    font-size: var(--zs-font-section, .95rem) !important;
    font-weight: var(--zs-weight-medium, 700) !important;
}

[data-order-detail-v2] .order-tertiary-card .card-body {
    padding-top: .75rem !important;
}

[data-order-detail-v2] .zs-order-progress-card .card-header {
    min-height: 44px !important;
}

[data-order-detail-v2] .zs-order-progress-card .card-body {
    padding-top: .65rem !important;
    padding-bottom: 1.15rem !important;
}

[data-order-detail-v2] .zs-order-progress-card .card-title {
    font-size: var(--zs-font-section, .95rem) !important;
    font-weight: var(--zs-weight-medium, 700) !important;
}

[data-order-detail-v2] .zs-order-progress-node.is-pending .symbol-label {
    background-color: var(--zosify-surface-subtle, #f8fafc) !important;
    color: #a1a9b8 !important;
}

[data-order-detail-v2] .alert.alert-info,
[data-order-detail-v2] .notice.notice-light-primary,
[data-order-detail-v2] .order-summary-adjustment-note,
[data-order-detail-v2] .payment-empty-note {
    background: var(--zs-order-muted-bg) !important;
    border: 1px solid rgba(213, 220, 232, .95) !important;
    color: #5e6b82 !important;
    box-shadow: none !important;
}

[data-order-detail-v2] .order-summary-adjustment-note,
[data-order-detail-v2] .payment-empty-note {
    font-weight: 500;
}

[data-order-detail-v2] .order-return-row,
[data-order-detail-v2] .order-payment-card .bg-light,
[data-order-detail-v2] .order-adjustments-card .bg-light {
    background-color: var(--zs-order-soft-bg) !important;
    border: 1px solid rgba(226, 232, 240, .75);
}

[data-order-detail-v2] .order-activity-card .timeline-icon {
    width: 26px;
    height: 26px;
    background: var(--zosify-surface-subtle, #f8fafc);
    border: 1px solid rgba(226, 232, 240, .95);
}

[data-order-detail-v2] .order-activity-card .timeline-icon i {
    color: #8a96aa !important;
    font-size: 1rem !important;
}

[data-order-detail-v2] .order-activity-card .timeline-line {
    border-left-color: rgba(213, 220, 232, .85) !important;
}

[data-order-detail-v2] .order-activity-card .timeline-content {
    margin-bottom: 1.75rem !important;
}

[data-order-detail-v2] .order-activity-card .order-activity-title {
    font-size: .875rem !important;
    line-height: 1.45;
    font-weight: 600 !important;
    color: #3f4b62 !important;
}

[data-order-detail-v2] .order-activity-card .order-activity-title a {
    font-weight: 600 !important;
}

[data-order-detail-v2] .order-activity-card .order-activity-meta,
[data-order-detail-v2] .order-activity-card .order-activity-meta .text-muted {
    color: #8a96aa !important;
}

[data-order-detail-v2] .order-activity-card [data-zs-order-activity-toggle] {
    background-color: var(--zosify-surface-subtle, #f8fafc) !important;
    border-color: rgba(226, 232, 240, .95) !important;
    color: #3f4b62 !important;
}

[data-order-detail-v2] .order-list-row {
    background: transparent !important;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    border-radius: 0 !important;
    padding: .85rem 0 !important;
}

[data-order-detail-v2] .order-list-row:first-child {
    padding-top: 0 !important;
}

[data-order-detail-v2] .order-list-row:last-child {
    border-bottom: 0;
    padding-bottom: 0 !important;
}

[data-order-detail-v2] .order-adjustments-toolbar {
    background: #fbfcff !important;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: .65rem;
    padding: .85rem 1rem !important;
}

[data-order-detail-v2] .order-subtle-note,
[data-order-detail-v2] .order-helper-note {
    align-items: flex-start;
    background: #fbfcff;
    border: 1px solid rgba(226, 232, 240, .85);
    border-radius: .65rem;
    color: #5e6b82 !important;
    display: flex;
    gap: .5rem;
    line-height: 1.45;
    padding: .75rem .85rem;
}

[data-order-detail-v2] .order-subtle-note-empty {
    color: #7b879a !important;
}

[data-order-detail-v2] .order-card-collapse-toggle {
    height: 30px;
    min-height: 30px;
    width: 30px;
}

[data-order-detail-v2] .order-card-collapse-toggle[aria-expanded="false"] i {
    transform: rotate(-90deg);
}

[data-order-detail-v2] .order-card-collapse-toggle i {
    transition: transform .16s ease;
}

[data-order-detail-v2] .text-gray-400.fs-8,
[data-order-detail-v2] .text-gray-500.fs-8,
[data-order-detail-v2] .text-muted.fs-8 {
    color: #6f7b90 !important;
}

@media (max-width: 991.98px) {
    [data-order-detail-v2] .order-primary-card {
        box-shadow: 0 10px 24px rgba(15, 23, 42, .07) !important;
    }

    [data-order-detail-v2] .order-secondary-card,
    [data-order-detail-v2] .order-tertiary-card {
        box-shadow: 0 5px 16px rgba(15, 23, 42, .04) !important;
    }

    [data-order-detail-v2] .order-tertiary-card .card-header {
        padding-bottom: .25rem !important;
    }

    [data-order-detail-v2] .order-activity-card .timeline-content {
        margin-bottom: 1.1rem !important;
    }

    [data-order-detail-v2] .order-activity-card .order-activity-title {
        font-size: 11.5px !important;
        color: #4b5870 !important;
    }
}

/* Order items: keep thumbnails inline and reserve the right edge for totals on mobile. */
@media (max-width: 767px) {
    [data-order-detail-v2] .zs-order-items-list tr,
    [data-order-detail-v2] .fulfilled-items-list tr {
        align-items: start !important;
        display: grid !important;
        gap: 6px 10px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        padding: 12px 0 !important;
    }

    [data-order-detail-v2] .zs-order-items-list td,
    [data-order-detail-v2] .fulfilled-items-list td {
        display: block !important;
        margin: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    [data-order-detail-v2] .zs-order-items-list td:first-child,
    [data-order-detail-v2] .fulfilled-items-list td:first-child {
        grid-column: 1 / -1 !important;
    }

    [data-order-detail-v2] .zs-order-items-list td:nth-child(2),
    [data-order-detail-v2] .fulfilled-items-list td:nth-child(2) {
        grid-column: 1 !important;
        text-align: left !important;
    }

    [data-order-detail-v2] .zs-order-items-list td:nth-child(2) > .d-flex {
        justify-content: flex-start !important;
    }

    [data-order-detail-v2] .zs-order-items-list td:last-child,
    [data-order-detail-v2] .fulfilled-items-list td:last-child {
        grid-column: 2 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    [data-order-detail-v2] .order-item-product-row,
    [data-order-detail-v2] .fulfilled-item-product {
        align-items: flex-start !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    [data-order-detail-v2] .order-item-product-row .symbol,
    [data-order-detail-v2] .fulfilled-item-product .symbol {
        flex: 0 0 42px !important;
        height: 42px !important;
        width: 42px !important;
    }

    [data-order-detail-v2] .order-item-product-row .symbol-label,
    [data-order-detail-v2] .fulfilled-item-product .symbol-label {
        background-position: center !important;
        background-size: cover !important;
        height: 42px !important;
        width: 42px !important;
    }

    [data-order-detail-v2] .order-item-row-title,
    [data-order-detail-v2] .fulfilled-item-title {
        display: block !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
    }
}

/* ── Order Details — combined customer/address card ─────────────────────── */
.order-contact-card .order-contact-section + .order-contact-section {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(148, 163, 184, .55);
}

.order-contact-card .order-contact-section h3 {
    letter-spacing: 0;
}

[data-order-detail-v2] .order-header-neutral-tag,
[data-order-detail-v2] .order-header-signal-btn {
    border-radius: .5rem !important;
    min-height: 2rem !important;
    padding: .45rem .75rem !important;
}

@media (max-width: 767.98px) {
    [data-order-detail-v2] .order-contact-card .card-body {
        padding: 1rem !important;
    }

    [data-order-detail-v2] .order-contact-card .order-contact-section + .order-contact-section {
        margin-top: .95rem;
        padding-top: .95rem;
    }
}

/* ── Order Details — mobile fulfillment item rows ───────────────────────── */
@media (max-width: 767.98px) {
    [data-order-detail-v2] .fulfilled-items-list,
    [data-order-detail-v2] .fulfilled-items-list tbody,
    [data-order-detail-v2] .fulfilled-items-list tr,
    [data-order-detail-v2] .fulfilled-items-list td {
        display: block !important;
        width: 100% !important;
    }

    [data-order-detail-v2] .fulfilled-items-list tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        column-gap: .9rem;
        row-gap: .4rem;
        align-items: start;
        padding: .25rem 0 .35rem !important;
        border: 0 !important;
    }

    [data-order-detail-v2] .fulfilled-items-list td {
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
    }

    [data-order-detail-v2] .fulfilled-items-list td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        text-align: right !important;
    }

    [data-order-detail-v2] .fulfilled-items-list td:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        text-align: right !important;
    }

    [data-order-detail-v2] .fulfilled-item-product {
        display: block !important;
        padding-left: 0 !important;
    }

    [data-order-detail-v2] .fulfilled-item-product > div:last-child {
        width: 100%;
        min-width: 0;
    }

    [data-order-detail-v2] .fulfilled-item-image {
        display: none !important;
    }

    [data-order-detail-v2] .fulfilled-item-title {
        display: block;
        font-size: 12px !important;
        line-height: 1.35;
        text-align: left;
    }

    [data-order-detail-v2] .fulfilled-item-options {
        justify-content: flex-start;
        gap: .35rem .7rem !important;
        text-align: left;
    }

    [data-order-detail-v2] .fulfilled-item-money,
    [data-order-detail-v2] .fulfilled-item-qty,
    [data-order-detail-v2] .fulfilled-item-total {
        font-size: 11px !important;
        white-space: nowrap;
    }
}

/* Final mobile order item layout override. Keep product thumbnails inline in adminv2. */
@media (max-width: 767.98px) {
    [data-order-detail-v2] .zs-order-items-list tr,
    [data-order-detail-v2] .fulfilled-items-list tr {
        align-items: start !important;
        display: grid !important;
        gap: .4rem .75rem !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        padding: .75rem 0 !important;
    }

    [data-order-detail-v2] .zs-order-items-list td,
    [data-order-detail-v2] .fulfilled-items-list td {
        display: block !important;
        margin: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }

    [data-order-detail-v2] .zs-order-items-list td:first-child,
    [data-order-detail-v2] .fulfilled-items-list td:first-child {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }

    [data-order-detail-v2] .zs-order-items-list td:nth-child(2),
    [data-order-detail-v2] .fulfilled-items-list td:nth-child(2) {
        grid-column: 1 !important;
        grid-row: 2 !important;
        text-align: left !important;
    }

    [data-order-detail-v2] .zs-order-items-list td:nth-child(2) > .d-flex {
        justify-content: flex-start !important;
    }

    [data-order-detail-v2] .zs-order-items-list td:last-child,
    [data-order-detail-v2] .fulfilled-items-list td:last-child {
        grid-column: 2 !important;
        grid-row: 2 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    [data-order-detail-v2] .order-item-product-row,
    [data-order-detail-v2] .fulfilled-item-product {
        align-items: flex-start !important;
        display: flex !important;
        flex-direction: row !important;
        gap: .75rem !important;
        min-width: 0 !important;
    }

    [data-order-detail-v2] .order-item-product-row .symbol,
    [data-order-detail-v2] .fulfilled-item-product .symbol {
        display: inline-flex !important;
        flex: 0 0 42px !important;
        height: 42px !important;
        width: 42px !important;
    }

    [data-order-detail-v2] .order-item-product-row .symbol-label,
    [data-order-detail-v2] .fulfilled-item-product .symbol-label {
        background-position: center !important;
        background-size: cover !important;
        height: 42px !important;
        width: 42px !important;
    }

    [data-order-detail-v2] .order-item-product-row > div:last-child,
    [data-order-detail-v2] .fulfilled-item-product > div:last-child {
        min-width: 0 !important;
    }

    [data-order-detail-v2] .order-item-row-title,
    [data-order-detail-v2] .fulfilled-item-title {
        display: block !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
    }
}

/* ── Variant nav tree: active row ─────────────────────────────
 * Applied by custom.js on .gt_variant_details click; marks which
 * variant is currently loaded in the right-hand detail panel.
 */
.variant-nav-row.is-active {
    background-color: var(--bs-primary-light, #f1f3ff);
    border-left: 3px solid var(--bs-primary, #5e6cf5);
    padding-left: calc(1.5rem - 3px);
}

.variant-nav-row.is-active .gt_variant_details {
    color: var(--bs-primary, #5e6cf5) !important;
}

.variant-nav-row.is-active .ki-right {
    color: var(--bs-primary, #5e6cf5);
    opacity: 1;
}

/* ── Size chart feature ──────────────────────────────────────────────────── */

.sz-tpl-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2px;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.sz-tpl-nav::-webkit-scrollbar {
    display: none;
}

.sz-tpl-nav .nav-link {
    white-space: nowrap;
    border-radius: 6px;
    color: #6b7280;
}

.sz-tpl-nav .nav-link:hover {
    background: #f3f4f6;
    color: #374151;
}

.sz-tpl-nav .nav-link.active {
    background: var(--bs-primary, #5e6cf5);
    color: #fff;
}

.sz-tpl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.sz-tpl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 8px;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    font-size: var(--zs-font-label, 11px);
    font-weight: var(--zs-weight-medium, 600);
    letter-spacing: 0.02em;
    text-align: center;
    color: #6b7280;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
}

.sz-tpl-btn:hover {
    border-color: var(--bs-primary, #5e6cf5);
    background: var(--zosify-surface, #fff);
    box-shadow: 0 2px 8px rgba(94, 108, 245, 0.1);
    color: var(--bs-primary, #5e6cf5);
}

.sz-tpl-btn.sz-tpl-active {
    border-color: var(--bs-primary, #5e6cf5);
    background: var(--zosify-surface, #fff);
    color: var(--bs-primary, #5e6cf5);
    box-shadow: 0 0 0 3px rgba(94, 108, 245, 0.12);
}

.sz-tpl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #f0f1f5;
    flex-shrink: 0;
    transition: background 0.15s;
}

.sz-tpl-btn:hover .sz-tpl-icon,
.sz-tpl-btn.sz-tpl-active .sz-tpl-icon {
    background: rgba(94, 108, 245, 0.1);
}

.sz-editor-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 360px;
}

.sz-editor-table th,
.sz-editor-table td {
    border: 1px solid #e5e7eb;
    padding: 0;
}

.sz-editor-table thead th {
    background: #f9fafb;
    min-width: 80px;
}

.sz-editor-table th.sz-del-col,
.sz-editor-table td.sz-del-col {
    border: 0;
    width: 32px;
    padding: 4px;
    vertical-align: middle;
}

.sz-cell {
    padding: 8px 10px;
    outline: none;
    font-size: 13px;
}

.sz-header-cell {
    font-weight: 600;
}

.sz-cell:focus {
    background: #f0f7ff;
}

.sz-del-row {
    background: none;
    border: none;
    cursor: pointer;
    color: #dc2626;
    font-size: 16px;
    line-height: 1;
    padding: 2px 4px;
}

.sz-del-row:hover {
    color: #991b1b;
}

/* Size chart preview table (product card assigned state) */
#sz-chart-preview table {
    border-collapse: collapse;
    font-size: 12px;
    width: 100%;
}

#sz-chart-preview th {
    border: 1px solid #e5e7eb;
    padding: 5px 8px;
    background: #f9fafb;
    font-weight: 600;
}

#sz-chart-preview td {
    border: 1px solid #e5e7eb;
    padding: 5px 8px;
}

/* ── Returns detail page — progress stepper ──────────────────────────────── */
.rtn-stepper {
    display: flex;
    align-items: flex-start;
}

.rtn-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.rtn-step-last {
    flex: 0;
}

.rtn-step-track {
    display: flex;
    align-items: center;
    width: 100%;
}

.rtn-step-dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.rtn-dot-complete { background-color: var(--kt-success, #50cd89); }
.rtn-dot-current  { background-color: var(--zosify-accent); }
.rtn-dot-pending  { background-color: var(--kt-gray-200, #eff2f5); border: 2px solid var(--kt-gray-300, #e4e6ef); }

.rtn-step-line {
    flex-grow: 1;
    height: 2px;
}

.rtn-line-done    { background-color: var(--kt-success, #50cd89); }
.rtn-line-pending { background-color: var(--kt-gray-300, #e4e6ef); }

.rtn-step-label {
    text-align: center;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
    min-width: 5rem;
}

@media (max-width: 575px) {
    .rtn-stepper { flex-direction: column; gap: 0.5rem; }
    .rtn-step, .rtn-step-last { flex: none; width: 100%; flex-direction: row; align-items: center; gap: 0.75rem; }
    .rtn-step-track { width: auto; flex-direction: column; align-items: center; }
    .rtn-step-line  { width: 2px; height: 1.5rem; flex-grow: 0; }
    .rtn-step-label { text-align: left; margin-top: 0; }
}

/* ── Apps Marketplace ─────────────────────────────────────────────────────── */
/*
   All styles for the /portal/apps page live here, scoped under
   .apps-marketplace so they never bleed into other pages.

   Font-size note: follows the rem scale in the file header (no hardcoded px).
*/
.apps-marketplace {
    color: var(--kt-gray-900, #181c32);
}

/* Hero */
.apps-marketplace .apps-title {
    font-size: 2.375rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
}

.apps-marketplace .apps-subtitle,
.apps-marketplace .apps-section-subtitle {
    color: var(--kt-gray-600, #7e8299);
}

/* Toolbar */
.apps-marketplace .apps-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr auto;
    gap: 1rem;
    align-items: center;
}

.apps-marketplace .apps-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.apps-marketplace .apps-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 2.375rem;
    padding: 0 1rem;
    border: 1px solid var(--kt-border-color, #e4e6ef);
    background: var(--zosify-surface, #fff);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(24, 28, 50, 0.04);
    color: var(--kt-gray-700, #5e6278);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

.apps-marketplace .apps-pill:hover {
    border-color: #b59cff;
    color: #5f2cff;
}

.apps-marketplace .apps-pill.active {
    color: #5f2cff;
    border-color: #b59cff;
    background: #fbf8ff;
    box-shadow: 0 0 0 3px rgba(95, 44, 255, 0.08);
}

.apps-marketplace .apps-sort-cell {
    min-width: 185px;
}

/* Summary stats panel */
.apps-marketplace .apps-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1.75rem 1.875rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--kt-border-color, #e4e6ef);
    border-radius: 0.75rem;
    box-shadow: 0 1.125rem 2.8125rem rgba(24, 28, 50, 0.08);
}

.apps-marketplace .apps-summary-item {
    display: flex;
    align-items: center;
    gap: 1.375rem;
    padding: 0 2.125rem;
    border-right: 1px solid var(--kt-border-color, #e4e6ef);
}

.apps-marketplace .apps-summary-item:first-child { padding-left: 0; }
.apps-marketplace .apps-summary-item:last-child  { border-right: 0; padding-right: 0; }

.apps-marketplace .apps-icon {
    width: 4.375rem;
    height: 4.375rem;
    border-radius: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 4.375rem;
}

.apps-marketplace .apps-stat-label {
    color: var(--kt-gray-700, #5e6278);
    font-weight: var(--zs-weight-medium, 600);
    font-size: var(--zs-font-label, 0.9rem);
    margin-bottom: 0.2rem;
}

.apps-marketplace .apps-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--kt-gray-900, #181c32);
}

.apps-marketplace .apps-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Section headers */
.apps-marketplace .apps-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.apps-marketplace .apps-section-title {
    font-size: var(--zs-font-section, 1.25rem);
    font-weight: var(--zs-weight-medium, 800);
    margin-bottom: 0.25rem;
    color: var(--kt-gray-900, #181c32);
}

/* Color tone palette — shared by icon backgrounds in cards and summary */
.apps-marketplace .tone-violet { background: #eee6ff; color: #6738ff; }
.apps-marketplace .tone-green  { background: #e5f8ec; color: #16a85a; }
.apps-marketplace .tone-amber  { background: #fff5d9; color: #f2aa00; }
.apps-marketplace .tone-purple { background: #f0e9ff; color: #6738ff; }
.apps-marketplace .tone-pink   { background: #ffe7f1; color: #ef2a79; }
.apps-marketplace .tone-blue   { background: #e8f3ff; color: #3892f8; }
.apps-marketplace .tone-orange { background: #ffeadf; color: #ff7a2f; }

/* App cards grid — 4 columns on large screens */
.apps-marketplace .apps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.apps-marketplace .app-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    background: var(--zosify-surface, #fff);
    border: 1px solid var(--kt-border-color, #e4e6ef);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 2rem rgba(24, 28, 50, 0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.apps-marketplace .app-card:hover {
    border-color: #c9b8ff;
    box-shadow: 0 1rem 2.5rem rgba(95, 44, 255, 0.13);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.apps-marketplace .app-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.apps-marketplace .app-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3.25rem;
    font-size: 1.5625rem;
}

.apps-marketplace .app-card h3 {
    font-size: var(--zs-font-section, 1.025rem);
    font-weight: var(--zs-weight-medium, 800);
    margin: 0 0 0.4rem;
    color: var(--kt-gray-900, #181c32);
}

.apps-marketplace .app-card p {
    color: var(--kt-gray-600, #7e8299);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 0.75rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Category chip */
.apps-marketplace .app-chip {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.56rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 800;
}

.apps-marketplace .chip-violet { background: #f0e9ff; color: #5f2cff; }
.apps-marketplace .chip-green  { background: #e7f8ee; color: #169c54; }
.apps-marketplace .chip-orange { background: #fff2dc; color: #f29a00; }
.apps-marketplace .chip-pink   { background: #ffe6f1; color: #d92773; }
.apps-marketplace .chip-blue   { background: #e8f3ff; color: #2b84de; }

/* Card action row */
.apps-marketplace .app-actions {
    display: grid;
    grid-template-columns: 1fr 2.375rem;
    gap: 0.5625rem;
    margin-top: 0.875rem;
}

.apps-marketplace .app-primary-action,
.apps-marketplace .app-more {
    height: 2.375rem;
    border-radius: 0.4375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
}

.apps-marketplace .app-primary-action {
    background: linear-gradient(180deg, #7748ff, #5424e8);
    color: #fff;
    transition: filter 0.15s;
}

.apps-marketplace .app-card:hover .app-primary-action:not(.soft) {
    filter: brightness(1.08);
}

.apps-marketplace .app-primary-action.soft {
    background: #f1eaff;
    color: #5f2cff;
}

.apps-marketplace .app-more {
    border: 1px solid var(--kt-border-color, #e4e6ef);
    color: var(--kt-gray-700, #5e6278);
}

/* No-results empty state */
.apps-marketplace .apps-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

/* Coming soon section */
.apps-marketplace .apps-coming-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.apps-marketplace .coming-card,
.apps-marketplace .idea-card {
    min-height: 7.875rem;
    padding: 1.375rem;
    background: var(--zosify-surface, #fff);
    border: 1px solid var(--kt-border-color, #e4e6ef);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 2rem rgba(24, 28, 50, 0.06);
}

.apps-marketplace .coming-card {
    display: flex;
    gap: 1.125rem;
    align-items: center;
}

.apps-marketplace .coming-card h3,
.apps-marketplace .idea-card h3 {
    font-size: var(--zs-font-section, 1.025rem);
    font-weight: var(--zs-weight-medium, 800);
    margin: 0 0 0.3rem;
    color: var(--kt-gray-900, #181c32);
}

.apps-marketplace .coming-card p,
.apps-marketplace .idea-card p {
    color: var(--kt-gray-600, #7e8299);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 0.5rem;
}

.apps-marketplace .coming-icon {
    width: 3.875rem;
    height: 3.875rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3.875rem;
}

.apps-marketplace .idea-card {
    display: flex;
    align-items: center;
    gap: 1.375rem;
    background: linear-gradient(135deg, #f8f1ff 0%, #eee3ff 54%, #ddcbff 100%);
    border-color: #c8b3ff;
}

.apps-marketplace .idea-card .coming-icon {
    background: rgba(255, 255, 255, 0.7);
    color: #5f2cff;
}

/* Responsive breakpoints */
@media (max-width: 1399px) {
    .apps-marketplace .apps-grid,
    .apps-marketplace .apps-coming-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .apps-marketplace .apps-toolbar {
        grid-template-columns: 1fr;
    }

    .apps-marketplace .apps-sort-cell {
        min-width: 0;
        width: 100%;
    }

    .apps-marketplace .apps-summary {
        grid-template-columns: 1fr;
    }

    .apps-marketplace .apps-summary-item {
        padding: 1.25rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--kt-border-color, #e4e6ef);
    }

    .apps-marketplace .apps-summary-item:first-child { padding-top: 0; }

    .apps-marketplace .apps-summary-item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .apps-marketplace .apps-grid,
    .apps-marketplace .apps-coming-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .apps-marketplace .apps-title { font-size: 1.875rem; }

    .apps-marketplace .apps-grid,
    .apps-marketplace .apps-coming-grid {
        grid-template-columns: 1fr;
    }

    .apps-marketplace .apps-summary {
        padding: 1.375rem;
    }

    .apps-marketplace .coming-card,
    .apps-marketplace .idea-card {
        align-items: flex-start;
    }
}

/* ══════════════════════════════════════════════════════════════
   ORDER LIST v2 — Premium redesign (2026-06)
   All rules scoped to .order-v2-page / .order-v2-list-card.
   No changes to shared components.
   ══════════════════════════════════════════════════════════════ */

/* ── Metric cards: colored left-accent bar ──────────────────── */
.order-metric-card {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}
.order-metric-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}
.order-metric-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07) !important;
}
.order-metric-tone-primary::before { background: var(--bs-primary); }
.order-metric-tone-info::before    { background: var(--bs-info); }
.order-metric-tone-warning::before { background: var(--bs-warning); }
.order-metric-tone-success::before { background: var(--bs-success); }

/* ── Fulfillment queue: metric card urgency accent (only when count > 0) */
.fq-metric-card {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}
.fq-metric-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
    background: transparent;
}
.fq-metric-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07) !important; }
.fq-metric-tone-primary::before { background: var(--bs-primary); }
.fq-metric-tone-info::before    { background: var(--bs-info); }
.fq-metric-tone-warning::before { background: var(--bs-warning); }
.fq-metric-tone-danger::before  { background: var(--bs-danger); }

/* ── Fulfillment queue: table row hover */
.fulfillment-queue-table tbody tr.fulfillment-queue-main-row {
    transition: background-color 0.1s ease;
}
.fulfillment-queue-table tbody tr.fulfillment-queue-main-row:hover > td {
    background-color: var(--bs-gray-100, #f9fafb);
}

/* ── Fulfillment queue: item expand toggle */
.fq-items-toggle {
    color: var(--bs-gray-500) !important;
    font-size: 0.75rem !important;
    padding: 2px 4px !important;
    border-radius: 4px;
}
.fq-items-toggle:hover {
    color: var(--bs-primary) !important;
    background-color: var(--bs-light-primary) !important;
}
.fq-items-toggle .ki-up  { transition: transform 0.18s ease; }
.fq-items-toggle[aria-expanded="false"] .ki-up { transform: rotate(180deg); }

/* ── Fulfillment queue: dropdown z-index — Bootstrap table rows create stacking
      contexts that clip dropdowns from non-last rows. Force the menu above them. */
.fulfillment-queue-card .card-body { overflow: visible; }
.fulfillment-queue-table .dropdown-menu { z-index: 1060; }

/* ── Fulfillment queue: qty columns (desktop-only) */
.fq-qty-col { width: 68px; text-align: center; }
.fq-qty-val { font-size: 1rem; font-weight: 700; line-height: 1; }
.fq-qty-val.is-zero { color: var(--bs-gray-300, #d1d5db); font-weight: 400; }
.fq-qty-label { font-size: var(--zs-font-label, 0.68rem); color: var(--bs-gray-400, #9ca3af); margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }

/* ── Fulfillment queue: dots "more actions" button */
.fq-more-btn { color: var(--bs-gray-400) !important; }
.fq-more-btn:hover { color: var(--bs-gray-700) !important; background-color: var(--bs-gray-100) !important; }

/* ── Table: tighter row dividers + hover ────────────────────── */
.order-v2-list-card #mzh_lg_datatable tbody tr {
    transition: background-color 0.12s ease;
}
.order-v2-list-card #mzh_lg_datatable tbody tr:hover > td {
    background-color: var(--bs-gray-100, #f9fafb);
}

/* ── Order reference link ───────────────────────────────────── */
.order-v2-ref-link {
    color: var(--bs-gray-900);
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 5px;
    text-decoration: none;
}
.order-v2-ref-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Badge groups: status | warnings ───────────────────────── */
.order-v2-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.order-v2-status-group,
.order-v2-warn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.order-v2-warn-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: var(--bs-gray-300, #d1d5db);
    flex-shrink: 0;
    align-self: center;
}

/* ── Tag pills — distinct from status badges ────────────────── */
.order-v2-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.order-v2-tag-pill {
    background: transparent;
    border: 1px solid var(--bs-gray-300, #d1d5db);
    border-radius: 4px;
    color: var(--bs-gray-600, #6b7280);
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 2px 6px;
}

/* ── Customer cell ──────────────────────────────────────────── */
.order-v2-customer-name {
    color: var(--bs-gray-900);
    font-size: 0.9rem;
    font-weight: 600;
}
.order-v2-customer-email {
    color: var(--bs-gray-500);
    font-size: 0.78rem;
    text-decoration: none;
    display: block;
}
.order-v2-customer-email:hover {
    color: var(--bs-primary);
}

/* ── Date cell ──────────────────────────────────────────────── */
.order-v2-date-primary {
    color: var(--bs-gray-800, #1f2937);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.order-v2-date-time {
    color: var(--bs-gray-400, #9ca3af);
    font-size: 0.75rem;
    margin-top: 2px;
    white-space: nowrap;
}

/* ── Total cell ─────────────────────────────────────────────── */
.order-v2-total-amount {
    color: var(--bs-gray-900);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.order-v2-item-count {
    color: var(--bs-gray-400, #9ca3af);
    font-size: 0.73rem;
    margin-top: 2px;
    white-space: nowrap;
}

/* ── Mobile card improvements (extends existing @media block) ── */
@media (max-width: 767.98px) {

    /* Hide new direct-child wrappers in the order cell */
    .order-v2-page #mzh_lg_datatable tbody td:nth-child(3) > .order-v2-badge-row,
    .order-v2-page #mzh_lg_datatable tbody td:nth-child(3) > .order-v2-tags-row {
        display: none !important;
    }

    /* Row: card frame */
    .order-v2-page #mzh_lg_datatable tbody tr {
        border-radius: 8px !important;
        border: 1px solid var(--bs-gray-200, #e5e7eb) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
        margin-bottom: 10px;
    }

    /* Checkbox: top-right of card */
    .order-v2-page #mzh_lg_datatable tbody td:first-child {
        top: 14px !important;
        left: auto !important;
        right: 10px !important;
    }

    /* Order cell padding */
    .order-v2-page #mzh_lg_datatable tbody td:nth-child(3) {
        padding: 14px 48px 14px 14px !important;
    }

    /* Date: uppercase micro-label */
    .order-v2-mobile-date {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
        color: var(--bs-gray-500, #6b7280) !important;
        margin-bottom: 5px !important;
    }

    /* Order ref: strong primary data */
    .order-v2-mobile-ref {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.01em !important;
    }

    /* Amount: heavy weight */
    .order-v2-mobile-amount {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        letter-spacing: -0.02em !important;
    }

    /* Badges: compact */
    .order-v2-mobile-badges {
        margin-bottom: 8px !important;
    }
    .order-v2-mobile-badges .badge {
        font-size: 0.72rem !important;
        padding: 3px 7px !important;
    }

    /* Customer: subdued footer text */
    .order-v2-mobile-customer {
        color: var(--bs-gray-500, #6b7280) !important;
        font-size: 0.75rem !important;
        font-weight: 500 !important;
        margin-top: 4px !important;
    }
}


/* ══════════════════════════════════════════════════════════════
   FULFILLMENT CREATE — two-column page (fc-*)
   Scope: .fulfillment-create-page
   ══════════════════════════════════════════════════════════════ */

/* ── Main card ─────────────────────────────────────────────── */
.fc-main-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
}

/* ── Items list: item rows ──────────────────────────────────── */
.fc-fulfill-item:last-child {
    border-bottom: none !important;
}
.fc-item-meta { line-height: 1.6; }
.fc-qty-input {
    width: 72px !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ── Sidebar cards ──────────────────────────────────────────── */
.fc-sidebar-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    border: 1px solid var(--bs-gray-200, #e5e7eb);
}

/* ── Overall progress bar ───────────────────────────────────── */
.fc-progress-track {
    height: 5px;
    background: var(--bs-gray-200, #e5e7eb);
    border-radius: 99px;
    overflow: hidden;
}
.fc-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
    min-width: 2px;
}

/* ── Item qty chips ─────────────────────────────────────────── */
.fc-qty-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 6px;
    background: var(--bs-gray-100, #f3f4f6);
    color: var(--bs-gray-600, #6b7280);
    white-space: nowrap;
}
.fc-qty-chip.fc-qty-fulfilled { background: #dcfce7; color: #166534; }
.fc-qty-chip.fc-qty-remaining { background: #eff6ff; color: var(--bs-primary, #5a45f5); }
.fc-qty-chip.fc-qty-done      { background: #dcfce7; color: #166534; }

/* ── Shipment row chips ─────────────────────────────────────── */
.fc-ship-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--bs-gray-600, #6b7280);
    background: var(--bs-gray-100, #f3f4f6);
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
}
.fc-ship-tracking { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.68rem; letter-spacing: .02em; }
.fc-ship-no-track { background: #fef9c3; color: #854d0e; }

/* ── Responsive: stack sidebar below on < xl ────────────────── */
@media (max-width: 1199.98px) {
    .fc-sidebar-card {
        box-shadow: none !important;
    }
}

/* ── Collection details ──────────────────────────────────────── */

/* Product list rows: last row has no bottom border */
.collection-product-list .collection-product-row:last-child,
.collection-product-list .collection-product-row.border-bottom-0 {
    border-bottom: none !important;
}

/* Remove button: neutral until hovered */
.collection-product-row .btn-active-light-danger {
    color: #b5b5c3;
}
.collection-product-row .btn-active-light-danger:hover {
    color: #f1416c;
    background-color: #fff5f8;
}

/* ── Returns dashboard ───────────────────────────────────────── */

/* Clickable table rows */
[data-returns-dashboard] .returns-table-row {
    cursor: pointer;
}
[data-returns-dashboard] .returns-table-row:hover td {
    background-color: #f9fafb;
}

/* Summary card metric rows */
[data-returns-dashboard] .ret-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    position: relative;
    transition: background .1s ease;
}
[data-returns-dashboard] .ret-summary-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0;
    background: transparent;
    transition: background .15s ease;
}
[data-returns-dashboard] .ret-summary-row.is-alert::before {
    background: var(--bs-danger, #f1416c);
}
[data-returns-dashboard] .ret-summary-row.is-alert {
    background: #fff8f9;
}

/* Icon chip in each metric row */
[data-returns-dashboard] .ret-summary-icon {
    width: 34px;
    height: 34px;
    border-radius: .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f3f6f9;
    color: #a1a5b7;
}
[data-returns-dashboard] .ret-summary-icon.is-alert {
    background: #fff2f5;
    color: var(--bs-danger, #f1416c);
}

/* Insights section — visual break above avg. resolution rows */
[data-returns-dashboard] .ret-summary-insights {
    border-top: 1px solid rgba(226, 232, 240, .9);
    padding: .5rem 1.5rem .75rem;
    margin-top: 0;
}

/* Action Needed rows */
[data-returns-dashboard] .ret-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}
[data-returns-dashboard] .ret-action-row:last-of-type {
    border-bottom: none;
}
[data-returns-dashboard] .ret-action-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bs-danger, #f1416c);
    flex-shrink: 0;
    margin-top: 4px;
}

/* ── Draft order v2 refinements ─────────────────────────────── */

[data-draft-order-v2] .draft-breadcrumb-back {
    color: #a1a5b7;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .01em;
    transition: color .15s ease;
    width: fit-content;
}
[data-draft-order-v2] .draft-breadcrumb-back:hover {
    color: var(--zosify-accent-hover);
    text-decoration: none;
}

/* Remove double top-border on total box — .separator above it already draws the line */
[data-draft-order-v2] .draft-total-box {
    border-top: none;
    padding-top: 0;
}

/* Grand total row: remove CSS border (handled by .separator row + new tinted bg) */
[data-draft-order-v2] .draft-total-row.is-total {
    background: rgba(0, 158, 247, .05);
    border-top: none;
    border-radius: .65rem;
    padding: .8rem 1rem;
    margin: .5rem -.5rem 0;
}

/* Section divider inside summary card: "Charges & adjustments" label with trailing rule */
[data-draft-order-v2] .draft-section-divider {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .15rem 0;
}
[data-draft-order-v2] .draft-section-label {
    color: #a1a5b7;
    font-size: var(--zs-font-label, .72rem);
    font-weight: var(--zs-weight-medium, 700);
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
[data-draft-order-v2] .draft-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(226, 232, 240, .9);
}

/* Summary card footer */
[data-draft-order-v2] .draft-summary-card .card-footer {
    border-top: 1px solid rgba(226, 232, 240, .9);
    border-radius: 0 0 12px 12px;
    background: transparent;
    padding: 1rem 1.5rem;
}

/* Billing fields: was display:flex which broke Bootstrap .row inside it */
[data-draft-order-v2] .draft-billing-fields.is-visible {
    display: block !important;
}

/* ── Brand list & details ──────────────────────────────────────── */
/* Product rows: divider style, last row borderless */
.brand-product-list .brand-product-row:last-child,
.brand-product-list .brand-product-row.border-bottom-0 {
    border-bottom: none !important;
}
/* Remove button: neutral until hovered */
.brand-product-row .btn-active-light-danger { color: #b5b5c3; }
.brand-product-row .btn-active-light-danger:hover { color: #f1416c; background-color: #fff5f8; }

/* ── Transfer list & details ───────────────────────────────────── */
/* Items list: last row borderless */
.transfer-item-list .transfer-item-row:last-child { border-bottom: none !important; }
/* Remove button: neutral until hovered */
.transfer-item-row .btn-active-light-danger { color: #b5b5c3; }
.transfer-item-row .btn-active-light-danger:hover { color: #f1416c; background-color: #fff5f8; }
/* Receiving items: last row borderless */
.transfer-receive-item:last-child { border-bottom: none !important; }

/* ── Product picker type filter buttons ────────────────────────────────────
   Replaces the <select> to avoid select2 wrapping the 3-option dropdown.   */
.common-product-picker-type-btn {
    background: #f9fafb;
    color: #7e8299;
    border: 1px solid #e9edf1;
    border-radius: .5rem;
    font-size: var(--zs-font-label, .8rem);
    font-weight: var(--zs-weight-medium, 600);
    padding: .35rem .9rem;
    line-height: 1.5;
    white-space: nowrap;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.common-product-picker-type-btn:hover:not(.is-active) {
    background: #f1f1f4;
    color: #181c32;
    border-color: #d0d5dd;
}
.common-product-picker-type-btn.is-active {
    background: var(--zosify-accent);
    color: #fff;
    border-color: var(--zosify-accent);
}

/* ── Purchase orders ───────────────────────────────────────────────────────── */
/* Total metric card: primary border accent */
.purchase-total-metric-card { border: 2px solid var(--bs-primary) !important; }

/* Purchase order editor and explicit receiving mode, 2026-10-09. */
.purchase-details-page:not(.is-receiving) .purchase-receiving-only,
.purchase-details-page.is-receiving .purchase-ordering-only { display: none !important; }
.purchase-details-page .purchase-items-table { table-layout: fixed; width: 100%; min-width: 590px; }
.purchase-details-page .purchase-items-table th:first-child { width: 34%; min-width: 0 !important; }
.purchase-details-page .purchase-items-table th { font-size: var(--zs-font-label, 11px); white-space: normal; }
.purchase-details-page .purchase-items-table td { padding-left: .4rem; padding-right: .4rem; }
.purchase-details-page .purchase-items-table input { width: 100%; min-width: 0; padding-left: .4rem; padding-right: .4rem; }
.purchase-details-page .purchase-product-title { white-space: normal; overflow-wrap: anywhere; }
.purchase-details-page .purchase-product-cell { display: flex; align-items: center; gap: .65rem; }
.purchase-details-page .purchase-product-placeholder { display: inline-flex; flex: 0 0 36px; height: 36px; align-items: center; justify-content: center; background: var(--bs-gray-100); border-radius: .5rem; color: var(--bs-gray-500); }
.purchase-details-page .purchase-product-meta,
.purchase-details-page .purchase-variant-options { color: var(--bs-gray-600); font-size: 11px; overflow-wrap: anywhere; }
.purchase-details-page.is-receiving .purchase-items-table th:first-child { width: 28%; }
.purchase-details-page.is-receiving .purchase-items-table th:last-of-type { width: auto; }
.purchase-details-page .purchase-activity-list { max-height: 300px; overflow-y: auto; }
.purchase-details-page .purchase-receiving-only details label { display: block; }
.purchase-details-page .purchase-receiving-only summary { cursor: pointer; }
/* Audit log: remove last entry's bottom border */
.purchase-audit-item:last-child { border-bottom: none !important; }
/* Attachment list: remove last attachment's bottom border */
.purchase-attachment-item:last-child { border-bottom: none !important; }
/* Remove line button: neutral until hover */
.purchase-item-row .btn-active-light-danger { color: #b5b5c3; }
.purchase-item-row .btn-active-light-danger:hover { color: #f1416c; background-color: #fff5f8; }

/* ── Discounts ─────────────────────────────────────────────────────────────── */
/* Sidebar sticky card */
.discount-sidebar-sticky { position: sticky; top: 20px; }
/* Selected product/collection item remove button: neutral until hover */
.adjustment-selected-list .btn-active-light-danger { color: #b5b5c3; }
.adjustment-selected-list .btn-active-light-danger:hover { color: #f1416c; background-color: #fff5f8; }

/* ── Location list ─────────────────────────────────────────────────────────── */
.location-list-item:last-child { border-bottom: none !important; }
/* Deactivate button: neutral until hover */
.location-list-item .btn-active-light-danger { color: #b5b5c3; }
.location-list-item .btn-active-light-danger:hover { color: #f1416c; background-color: #fff5f8; }

/* ── Tax classes ───────────────────────────────────────────────────────────── */
.tax-class-item:last-child { border-bottom: none !important; }

/* ── Navigation menu list ──────────────────────────────────────────────────── */
.nav-menu-row:last-child { border-bottom: none !important; }

/* ── Navigation tree (Nestable) ────────────────────────────────────────────── */
/*
 * The <li class="dd-item"> stays display:block (Nestable requires it).
 * Flex layout lives on .nav-tree-row — an inner wrapper div.
 */

/* Nestable list resets */
.dd-menu-item ol,
.dd-menu-item ul { list-style: none; margin: 0; padding: 0; }
.dd-menu-item .dd-list { padding: 0; }
.dd-menu-item .dd-item { display: block !important; position: relative; }

/* Hide Nestable's auto-inserted collapse/expand buttons */
.dd-menu-item .dd-collapse,
.dd-menu-item .dd-expand { display: none; }

/* Sub-list indentation */
.dd-menu-item .dd-item > .dd-list { margin-top: 4px; padding-left: 28px; }

/* The flex row card — border, radius, and row layout live here */
.nav-tree-row {
    display: flex;
    align-items: stretch;
    background: var(--bs-white);
    border: 1px solid var(--bs-gray-200);
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden; /* clips radius on child borders */
    transition: box-shadow .12s ease;
}
.nav-tree-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* Drag handle strip */
.nav-tree-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 32px;
    min-height: 52px;
    cursor: grab;
    border-right: 1px solid var(--bs-gray-200);
    flex-shrink: 0;
    color: var(--bs-gray-300);
}
.nav-tree-handle:active { cursor: grabbing; }

/* Nestable drag placeholder */
.dd-placeholder {
    background: var(--bs-light);
    border: 2px dashed var(--bs-primary);
    border-radius: 8px;
    min-height: 52px;
    margin-bottom: 6px;
}
/* Dragging ghost card */
.dd-dragel .nav-tree-row {
    box-shadow: 0 6px 20px rgba(0,0,0,.14);
    opacity: .9;
}

/* Action buttons: neutral grey until hover */
.nav-tree-action-btn { color: #b5b5c3 !important; }
.nav-tree-action-btn.btn-active-light-primary:hover { color: var(--bs-primary) !important; background-color: var(--bs-light-primary) !important; }
.nav-tree-action-btn.btn-active-light-danger:hover { color: #f1416c !important; background-color: #fff5f8 !important; }
/* Eye toggle: primary-coloured when visible, grey when hidden */
.nav-tree-eye-toggle.text-primary { color: var(--bs-primary) !important; }
.nav-tree-eye-toggle:not(.text-primary) { color: #b5b5c3 !important; }
.nav-tree-eye-toggle:hover { background-color: var(--bs-light) !important; }

/* ============================================================
 * Mega menu builder — sidebar + editor layout
 * ============================================================ */
.mega-builder-sidebar {
    width: 230px;
    min-width: 230px;
    flex-shrink: 0;
    border-right: 1px solid var(--bs-gray-200);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}
.mega-builder-editor {
    flex: 1 1 auto;
    min-width: 0;
    overflow-y: auto;
}

/* Sidebar section labels */
.mega-builder-sidebar .mega-section-label {
    font-size: var(--zs-font-label, 10px);
    font-weight: var(--zs-weight-medium, 700);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bs-gray-500);
    margin-bottom: 6px;
}

/* Preset buttons */
.navigation-preset-card {
    background: transparent;
    transition: background 0.1s, border-color 0.1s;
    cursor: pointer;
}
.navigation-preset-card:hover:not(.border-primary) {
    background-color: var(--bs-light) !important;
}
/* Layout SVG diagrams — grey by default, primary when active */
.navigation-preset-card .preset-layout-svg rect {
    fill: var(--bs-gray-300);
    transition: fill 0.1s;
}
.navigation-preset-card.border-primary .preset-layout-svg rect {
    fill: var(--bs-primary);
}
/* Preset description text */
.navigation-preset-card .preset-desc {
    color: var(--bs-gray-500);
}
.navigation-preset-card.border-primary .preset-desc {
    color: var(--bs-primary-active);
    opacity: 0.8;
}

/* Block list — scrollable within sidebar */
.navigation-block-list {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Block row */
.navigation-mega-block {
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
    user-select: none;
}
.navigation-mega-block:hover:not(.border-primary) {
    background-color: var(--bs-light) !important;
    border-color: var(--bs-gray-300) !important;
}

/* Action buttons: hidden until hover or active */
.navigation-mega-block .mega-block-actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
}
.navigation-mega-block:hover .mega-block-actions,
.navigation-mega-block.border-primary .mega-block-actions {
    opacity: 1;
    pointer-events: auto;
}
/* Tiny icon buttons in block rows */
.mega-block-actions .btn-xs {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
}

/* ============================================================
 * Legal Documents settings page
 * ============================================================ */

/* Doc card: subtle left border accent matching the category tone */
.doc-card { transition: box-shadow 0.15s ease; border: 1px solid var(--bs-gray-200); }
.doc-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.07); }

/* Empty (not-yet-created) cards get a dashed border */
.doc-card-empty {
    border-style: dashed !important;
    border-color: var(--bs-gray-300) !important;
    background: var(--bs-gray-50, #fafafa);
}
.doc-card-empty:hover { box-shadow: none; border-color: var(--bs-primary) !important; }

/* Template option rows: hover + selected state */
.doc-template-option { cursor: pointer; transition: background 0.1s, border-color 0.1s; }
.doc-template-option:hover:not(.border-primary) { background: var(--bs-light) !important; }

/* Progress circle inside the required-docs banner */
.progress-circle circle { transform-origin: 18px 18px; }

/* ── Document editor page ────────────────────────────────────────────── */
.doc-editor-layout { align-items: flex-start; }

.doc-editor-sidebar {
    width: 260px;
    position: sticky;
    top: 80px;
}

/* Quill editor card — toolbar sits flush at top */
.doc-editor-card .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid var(--bs-gray-200);
    background: var(--bs-gray-100);
    border-radius: var(--bs-card-border-radius) var(--bs-card-border-radius) 0 0;
    padding: .6rem 1rem;
}

.doc-editor-card .ql-container.ql-snow {
    border: none;
    font-family: inherit;
}

.doc-editor-quill-content { min-height: 420px; }

.doc-editor-card .ql-editor {
    min-height: 420px;
    font-size: var(--bs-font-size-base, .9375rem);
    line-height: 1.75;
    padding: 1.25rem 1.5rem;
    color: var(--bs-gray-800);
}

.doc-editor-card .ql-editor h1,
.doc-editor-card .ql-editor h2,
.doc-editor-card .ql-editor h3 { color: var(--bs-gray-900); margin-top: 1.25em; }

.doc-editor-card .ql-editor p { margin-bottom: .75em; }

/* Status option rows */
.doc-status-option {
    padding: .5rem .6rem;
    border-radius: .5rem;
    border: 1.5px solid transparent;
    transition: background .1s, border-color .1s;
}
.doc-status-option:hover { background: var(--bs-light); }
.doc-status-option.selected { border-color: var(--bs-primary); background: var(--bs-light-primary); }

/* Sidebar action buttons */
.doc-action-btn { border-radius: .5rem !important; }

/* ── Document list rows ─────────────────────────────────────────────── */
.doc-list-row { transition: background 0.1s ease; }
.doc-list-row:hover { background: var(--bs-light); }

.doc-list-section-divider { background: var(--bs-gray-50, #f9f9f9); }

/* "Add more" dropdown — allow description text to wrap */
.doc-addmore-menu .doc-addmore-item { white-space: normal !important; }
.doc-addmore-menu .doc-addmore-item:hover .fw-semibold { color: var(--bs-primary) !important; }

/* ── Document editor — Summernote overrides ─────────────────────────── */
.doc-editor-card .note-editor.note-frame { border: none; border-radius: var(--bs-card-border-radius); }
.doc-editor-card .note-toolbar { border-bottom: 1px solid var(--bs-gray-200) !important; background: var(--bs-gray-100) !important; border-radius: var(--bs-card-border-radius) var(--bs-card-border-radius) 0 0 !important; }
.doc-editor-card .note-editing-area .note-editable { min-height: 420px; font-size: var(--bs-font-size-base, .9375rem); line-height: 1.75; padding: 1.25rem 1.5rem; color: var(--bs-gray-800); }

/* Reports & Analytics shared UX foundation */
.reports-trend-neutral {
    color: var(--bs-gray-700);
    background: var(--bs-gray-100);
}

.reports-saved-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--bs-gray-600);
    font-size: .875rem;
    background: var(--bs-gray-100);
    border: 1px dashed var(--bs-gray-300);
    border-radius: .75rem;
    line-height: 1.5;
}

.reports-empty-chart {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reports-empty-chart-grid {
    position: relative;
    min-height: 220px;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-radius: .75rem;
    background: linear-gradient(180deg, var(--bs-gray-100), var(--bs-body-bg));
}

.reports-empty-chart-grid > span {
    display: block;
    height: 1px;
    background: var(--bs-gray-200);
}

.reports-empty-chart-line {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 55%;
    height: 2px;
    border-radius: 50rem;
    background: var(--bs-gray-300);
    transform: rotate(-3deg);
}

.reports-empty-chart-markers {
    position: absolute;
    inset: 0;
}

.reports-empty-chart-markers i {
    position: absolute;
    top: calc(55% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-gray-400);
}

.reports-empty-chart-message {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.reports-empty-chart-message .reports-saved-empty {
    max-width: 560px;
    width: min(100%, 560px);
    background: rgba(255, 255, 255, .96);
    border-style: solid;
    box-shadow: var(--bs-box-shadow-sm);
}

.reports-empty-chart-axis {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--bs-gray-500);
    font-size: .75rem;
    font-weight: 600;
    padding-top: .5rem;
}

.reports-empty-state-icon {
    width: 34px;
    height: 34px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    background: var(--bs-light-primary);
}

.reports-empty-state-copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    max-width: 560px;
}

.reports-empty-state-copy strong {
    color: var(--bs-gray-900);
    font-size: .95rem;
    font-weight: 700;
}

.reports-empty-state-copy p {
    margin: 0;
    color: var(--bs-gray-700);
}

.reports-empty-state-copy span,
.reports-empty-state-copy em {
    color: var(--bs-gray-600);
    font-size: .825rem;
    font-style: normal;
}

.reports-empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.reports-empty-state-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: .35rem .75rem;
    border-radius: 50rem;
    border: 1px solid var(--bs-gray-300);
    color: var(--bs-gray-700);
    background: var(--bs-body-bg);
    font-size: .825rem;
    font-weight: 600;
    text-decoration: none;
}

.reports-empty-state-action-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary-light, rgba(0, 158, 247, .25));
    background: var(--bs-light-primary);
}

.reports-empty-state-action:hover {
    color: var(--bs-gray-900);
    background: var(--bs-gray-100);
    text-decoration: none;
}

.reports-intelligence-brief {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reports-brief-heading {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.reports-brief-heading > span {
    width: 36px;
    height: 36px;
    border-radius: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    background: var(--bs-light-primary);
    flex-shrink: 0;
}

.reports-brief-heading h2 {
    margin: 0 0 .25rem;
}

.reports-brief-heading p {
    margin: 0;
}

.reports-brief-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.reports-brief-grid > div,
.reports-action-card {
    border: 1px solid var(--bs-gray-200);
    border-radius: .65rem;
    background: var(--bs-gray-100);
    padding: .75rem;
}

.reports-brief-grid span,
.reports-action-card span,
.reports-readiness-list span {
    display: block;
    color: var(--bs-gray-600);
    font-size: .825rem;
    font-weight: 600;
}

.reports-brief-grid strong,
.reports-action-card strong {
    display: block;
    color: var(--bs-gray-900);
    font-size: .95rem;
    line-height: 1.35;
}

.reports-action-card-list {
    display: grid;
    gap: .75rem;
}

.reports-action-card {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-start;
}

.reports-action-card p {
    margin: .25rem 0 0;
}

.reports-action-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.reports-readiness-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1px;
    overflow: hidden;
    border-radius: .65rem;
    background: var(--bs-gray-200);
}

.reports-readiness-list li {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem .75rem;
    background: var(--bs-body-bg);
}

.reports-readiness-list strong {
    color: var(--bs-gray-700);
    font-size: .825rem;
    white-space: nowrap;
}

.reports-readiness-available {
    color: var(--bs-success) !important;
}

.reports-readiness-not-available-yet,
.reports-readiness-needs-attention,
.reports-readiness-waiting-for-traffic,
.reports-readiness-needs-sales-history,
.reports-readiness-needs-customer-history,
.reports-readiness-no-campaign-data-yet {
    color: var(--bs-warning) !important;
}

.reports-overview-readiness {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.reports-overview-readiness li {
    position: relative;
    padding: .45rem .65rem .45rem 1.75rem;
    border-radius: .65rem;
    background: var(--bs-gray-100);
    color: var(--bs-gray-600);
    font-size: .825rem;
    font-weight: 600;
}

.reports-overview-readiness li:before {
    content: "";
    position: absolute;
    left: .65rem;
    top: 50%;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--bs-warning);
}

.reports-overview-readiness li.is-ready {
    color: var(--bs-success);
    background: var(--bs-light-success);
}

.reports-overview-readiness li.is-ready:before {
    background: var(--bs-success);
}

/* Reports overview phase 3 polish */
.reports-ai-command {
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.reports-ai-command .card-body {
    padding: 1.45rem 1.65rem;
}

.reports-ai-input-row {
    align-items: center;
}

.reports-ai-input {
    min-height: 44px;
    border-radius: 50rem;
    background-color: var(--bs-gray-100);
    transition: background-color .15s ease, box-shadow .15s ease;
}

.reports-ai-input:focus {
    background-color: var(--bs-body-bg);
    box-shadow: 0 0 0 .2rem rgba(0, 158, 247, .12);
}

.reports-ai-submit {
    min-height: 42px;
    border-radius: 50rem;
    padding-inline: 1.25rem;
    font-weight: 700;
}

.reports-ai-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .9rem !important;
}

button.reports-prompt-chip,
.reports-prompt-chip-skeleton {
    appearance: none;
    border: 1px solid var(--bs-gray-200);
    border-radius: 50rem;
    background: var(--bs-body-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    color: var(--bs-gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: .45rem .85rem;
    font-size: .825rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

button.reports-prompt-chip:hover {
    color: var(--bs-primary);
    border-color: rgba(0, 158, 247, .32);
    background: var(--bs-light-primary);
    box-shadow: 0 6px 16px rgba(0, 158, 247, .10);
    transform: translateY(-1px);
}

button.reports-prompt-chip:focus {
    outline: none;
    border-color: rgba(0, 158, 247, .45);
    box-shadow: 0 0 0 .2rem rgba(0, 158, 247, .13);
}

.reports-prompt-chip-skeleton {
    width: 150px;
    color: transparent;
    background: linear-gradient(90deg, var(--bs-gray-100), var(--bs-gray-200), var(--bs-gray-100));
    background-size: 220% 100%;
    animation: reportsChipSkeleton 1.15s ease-in-out infinite;
}

@keyframes reportsChipSkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.reports-intelligence-brief.card,
.reports-recommended-actions.card {
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .055);
}

.reports-intelligence-brief.card {
    overflow: hidden;
    background: linear-gradient(180deg, var(--bs-body-bg) 0%, #fbfdff 100%);
}

.reports-intelligence-brief .card-body {
    padding: 2rem;
}

.reports-intelligence-brief .reports-brief-heading {
    align-items: center;
    gap: 1rem;
}

.reports-intelligence-brief .reports-brief-heading > span {
    width: 44px;
    height: 44px;
    border-radius: .9rem;
    box-shadow: inset 0 0 0 1px rgba(0, 158, 247, .12);
}

.reports-intelligence-brief .reports-brief-heading h2 {
    font-size: var(--zs-font-section, 1.25rem) !important;
    letter-spacing: 0;
}

.reports-intelligence-brief .reports-brief-heading p {
    max-width: 980px;
    color: var(--bs-gray-700) !important;
    font-size: .95rem;
    line-height: 1.55;
}

.reports-intelligence-brief .reports-brief-grid {
    gap: .85rem;
}

.reports-intelligence-brief .reports-brief-grid > div {
    border-color: var(--bs-gray-200);
    border-radius: .8rem;
    background: var(--bs-body-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
    min-height: 74px;
    padding: .85rem .95rem;
}

.reports-intelligence-brief .reports-brief-grid span {
    margin-bottom: .25rem;
    color: var(--bs-gray-600);
    font-size: .75rem;
}

.reports-intelligence-brief .reports-brief-grid strong {
    font-size: .925rem;
}

.reports-recommended-actions .card-header {
    min-height: auto;
    padding: 1.8rem 1.8rem .65rem;
    border-bottom: 0;
}

.reports-recommended-actions .card-title {
    font-size: var(--zs-font-section, 1.2rem);
    color: var(--bs-gray-900);
}

.reports-recommended-actions .card-body {
    padding: .65rem 1.8rem 1.8rem !important;
}

.reports-recommended-actions .reports-action-card-list {
    gap: .65rem;
}

.reports-recommended-actions .reports-action-card {
    position: relative;
    overflow: hidden;
    align-items: center;
    border-color: var(--bs-gray-200);
    border-radius: .85rem;
    background: var(--bs-body-bg);
    padding: .95rem 1rem .95rem 1.15rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.reports-recommended-actions .reports-action-card:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--bs-primary);
    opacity: .75;
}

.reports-recommended-actions .reports-action-card:hover {
    border-color: rgba(0, 158, 247, .26);
    background: #fbfdff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.reports-recommended-actions .reports-action-card > div:first-child {
    min-width: 0;
    padding-left: .35rem;
}

.reports-recommended-actions .reports-action-card span {
    margin-bottom: .15rem;
    color: var(--bs-gray-600);
    font-size: .74rem;
}

.reports-recommended-actions .reports-action-card strong {
    font-size: .95rem;
}

.reports-recommended-actions .reports-action-card p {
    color: var(--bs-gray-700);
    font-size: .925rem;
    line-height: 1.45;
}

.reports-recommended-actions .reports-action-card-actions {
    align-items: center;
}

.reports-recommended-actions .reports-action-card-actions .btn {
    border-radius: 50rem;
    min-height: 36px;
    padding-inline: 1rem;
    white-space: nowrap;
}

.reports-inventory-forecast,
.reports-restock-priority,
.reports-inventory-alerts-card,
.reports-inventory-actions-card {
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.reports-inventory-risk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.reports-inventory-risk-card {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    border: 1px solid var(--bs-gray-200);
    border-radius: .85rem;
    background: var(--bs-body-bg);
    padding: 1rem;
}

.reports-inventory-risk-card:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--bs-primary);
    opacity: .65;
}

.reports-inventory-risk-card.is-critical:before {
    background: var(--bs-danger);
}

.reports-inventory-risk-card.is-high:before {
    background: var(--bs-warning);
}

.reports-inventory-risk-card span {
    display: block;
    color: var(--bs-gray-600);
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.reports-inventory-risk-card strong {
    display: block;
    color: var(--bs-gray-900);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .65rem;
}

.reports-inventory-risk-card p {
    color: var(--bs-gray-700);
    font-size: .875rem;
    line-height: 1.45;
    margin: 0;
}

.reports-inventory-alert-list {
    display: grid;
    gap: .75rem;
}

.reports-inventory-alert-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    border: 1px solid var(--bs-gray-200);
    border-radius: .85rem;
    background: var(--bs-body-bg);
    padding: .95rem;
}

.reports-inventory-alert-item strong {
    color: var(--bs-gray-900);
    font-size: .95rem;
    line-height: 1.35;
}

.reports-inventory-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.reports-inventory-alert-actions .btn,
.reports-inventory-actions-card .btn {
    border-radius: 50rem;
    min-height: 36px;
    font-weight: var(--zs-weight-medium, 700);
}

.reports-sales-table-card,
.reports-sales-comparison-card,
.reports-sales-driver-card,
.reports-sales-actions-card {
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.reports-sales-comparison-row {
    gap: 1rem;
}

.reports-sales-driver {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bs-gray-200);
    border-radius: .85rem;
    background: var(--bs-body-bg);
    padding: 1rem 1rem 1rem 1.15rem;
}

.reports-sales-driver:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--bs-primary);
    opacity: .75;
}

.reports-sales-driver span {
    display: block;
    color: var(--bs-gray-600);
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.reports-sales-driver strong {
    display: block;
    color: var(--bs-gray-900);
    font-size: 1rem;
    line-height: 1.35;
}

.reports-sales-driver p {
    color: var(--bs-gray-700);
    font-size: .9rem;
    line-height: 1.45;
    margin: .35rem 0 0;
}

.reports-sales-actions-card .btn {
    border-radius: 50rem;
    min-height: 36px;
    font-weight: var(--zs-weight-medium, 700);
}

.reports-products-empty-chart-card,
.reports-product-table-card,
.reports-product-opportunities-card,
.reports-product-inventory-card {
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.reports-product-opportunity-list,
.reports-product-inventory-list {
    display: grid;
    gap: .75rem;
}

.reports-product-opportunity-item,
.reports-product-inventory-item {
    display: grid;
    gap: .75rem;
    border: 1px solid var(--bs-gray-200);
    border-radius: .85rem;
    background: var(--bs-body-bg);
    padding: .95rem;
}

.reports-product-opportunity-item {
    position: relative;
    overflow: hidden;
}

.reports-product-opportunity-item:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--bs-primary);
    opacity: .72;
}

.reports-product-opportunity-item > div {
    padding-left: .35rem;
}

.reports-product-opportunity-item span {
    display: block;
    color: var(--bs-gray-600);
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .15rem;
}

.reports-product-opportunity-item strong,
.reports-product-inventory-item strong {
    display: block;
    color: var(--bs-gray-900);
    font-size: .95rem;
    line-height: 1.35;
}

.reports-product-opportunity-item p {
    color: var(--bs-gray-700);
    font-size: .9rem;
    line-height: 1.45;
    margin: .35rem 0 0;
}

.reports-product-opportunity-item .btn,
.reports-product-inventory-actions .btn {
    border-radius: 50rem;
    min-height: 34px;
    font-weight: var(--zs-weight-medium, 700);
}

.reports-product-inventory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.reports-customer-growth-card,
.reports-customer-table-card,
.reports-customer-signals-card,
.reports-customer-actions-card {
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.reports-customer-signal-row {
    gap: 1rem;
}

.reports-customer-actions-card .btn {
    border-radius: 50rem;
    min-height: 36px;
    font-weight: var(--zs-weight-medium, 700);
}

.reports-finance-tabs {
    scrollbar-width: thin;
}

.reports-finance-tab {
    cursor: pointer;
}

.reports-finance-panel {
    display: none;
}

.reports-finance-panel.active {
    display: block;
}

.reports-finance-panel[hidden] {
    display: none !important;
}

.reports-finance-export-card,
.reports-finance-panel > .card,
.reports-finance-panel .card.card-flush {
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.reports-finance-link,
.reports-finance-export-card .btn {
    border-radius: 50rem;
    font-weight: 700;
}

.reports-finance-donut {
    border-radius: .85rem;
    background: var(--bs-gray-100);
    min-height: 74px;
}

.reports-finance-disclaimer {
    border: 1px solid var(--bs-gray-200);
    border-radius: .85rem;
}

.reports-finance-issues .reports-finance-issue:last-child,
.reports-finance-row:last-child {
    border-bottom: 0 !important;
}

.reports-marketing-empty-chart-card,
.reports-marketing-table-card,
.reports-marketing-actions-card,
.reports-marketing-attribution-card,
.reports-marketing-status-card {
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.reports-marketing-action-list {
    display: grid;
    gap: .75rem;
}

.reports-marketing-action-item,
.reports-marketing-attribution {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bs-gray-200);
    border-radius: .85rem;
    background: var(--bs-body-bg);
    padding: .95rem .95rem .95rem 1.15rem;
}

.reports-marketing-action-item:before,
.reports-marketing-attribution:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--bs-primary);
    opacity: .72;
}

.reports-marketing-action-item span,
.reports-marketing-attribution span {
    display: block;
    color: var(--bs-gray-600);
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .15rem;
}

.reports-marketing-action-item strong,
.reports-marketing-attribution strong {
    display: block;
    color: var(--bs-gray-900);
    font-size: .95rem;
    line-height: 1.35;
}

.reports-marketing-action-item p,
.reports-marketing-attribution p {
    color: var(--bs-gray-700);
    font-size: .9rem;
    line-height: 1.45;
    margin: .35rem 0 0;
}

.reports-marketing-action-item .btn {
    border-radius: 50rem;
    min-height: 34px;
    font-weight: var(--zs-weight-medium, 700);
    margin-top: .75rem;
}

@media print {
    .reports-finance-panel,
    .reports-finance-panel[hidden] {
        display: block !important;
    }

    .reports-finance-tabs {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .reports-brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reports-inventory-risk-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .reports-action-card { flex-direction: column; }
    .reports-action-card-actions { justify-content: flex-start; }

    .reports-ai-command .card-body,
    .reports-intelligence-brief .card-body,
    .reports-recommended-actions .card-body {
        padding: 1.25rem !important;
    }

    .reports-recommended-actions .card-header {
        padding: 1.25rem 1.25rem .35rem;
    }

    .reports-ai-input-row {
        align-items: stretch !important;
        flex-direction: column;
    }

    .reports-ai-submit {
        justify-content: center;
        width: 100%;
    }

    .reports-ai-prompts {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .2rem;
    }

    button.reports-prompt-chip,
    .reports-prompt-chip-skeleton {
        flex: 0 0 auto;
    }

    .reports-recommended-actions .reports-action-card {
        align-items: stretch;
    }

    .reports-recommended-actions .reports-action-card-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .reports-brief-grid { grid-template-columns: 1fr; }
    .reports-readiness-list li {
        align-items: flex-start;
        flex-direction: column;
        gap: .15rem;
    }
}

/* Reports phase 12 responsive polish */
.reports-analytics-page {
    gap: 1.75rem !important;
}

.reports-analytics-page.reports-page-loading,
.reports-analytics-page.reports-dashboard-loading {
    cursor: progress;
}

.reports-analytics-page.reports-page-loading .reports-ai-command,
.reports-analytics-page.reports-page-loading .reports-category-tabs,
.reports-analytics-page.reports-page-loading .reports-more-dropdown {
    pointer-events: none;
}

.reports-dashboard-shell {
    position: relative;
}

.reports-analytics-page.reports-dashboard-loading .reports-dashboard-shell:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 12;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(2px);
}

.reports-analytics-page.reports-dashboard-loading .reports-dashboard-shell:after {
    content: attr(data-reports-loading-message);
    position: absolute;
    left: 50%;
    top: 1.25rem;
    z-index: 13;
    min-height: 38px;
    max-width: min(92%, 460px);
    padding: .65rem 1rem .65rem 2.45rem;
    border: 1px solid var(--bs-gray-200);
    border-radius: 50rem;
    color: var(--bs-gray-800);
    background: var(--bs-body-bg);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .1);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.35;
    transform: translateX(-50%);
}

.reports-page-skeleton {
    border: 1px solid var(--bs-gray-200);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .055);
    padding: 1.5rem;
}

.reports-page-skeleton-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reports-page-skeleton-icon {
    width: 44px;
    height: 44px;
    border-radius: .9rem;
    background: var(--bs-light-primary);
    position: relative;
    flex-shrink: 0;
}

.reports-page-skeleton-icon:after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 2px solid rgba(0, 158, 247, .22);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: reportsSpin .8s linear infinite;
}

.reports-page-skeleton-header > div {
    display: grid;
    gap: .45rem;
    min-width: 0;
    flex: 1 1 auto;
}

.reports-page-skeleton-header strong {
    color: var(--bs-gray-800);
    font-size: .875rem;
    white-space: nowrap;
}

.reports-page-skeleton-line,
.reports-page-skeleton-metrics span,
.reports-page-skeleton-chart span {
    display: block;
    border-radius: 50rem;
    background: linear-gradient(90deg, var(--bs-gray-100), var(--bs-gray-200), var(--bs-gray-100));
    background-size: 220% 100%;
    animation: reportsSkeleton 1.15s ease-in-out infinite;
}

.reports-page-skeleton-title {
    width: min(260px, 70vw);
    height: 16px;
}

.reports-page-skeleton-subtitle {
    width: min(380px, 78vw);
    height: 11px;
}

.reports-page-skeleton-status {
    color: var(--bs-gray-600);
    font-size: .925rem;
    font-weight: 600;
    margin: .15rem 0 1.25rem;
}

.reports-page-skeleton-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.reports-page-skeleton-metrics span {
    height: 112px;
    border-radius: .9rem;
}

.reports-page-skeleton-chart span {
    height: 320px;
    border-radius: .9rem;
}

@keyframes reportsSkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@keyframes reportsSpin {
    to { transform: rotate(360deg); }
}

.reports-analytics-page > .card.card-flush,
.reports-dashboard-shell > .card.card-flush,
.reports-dashboard-shell .card.card-flush {
    border: 1px solid var(--bs-gray-200);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.reports-dashboard-shell {
    min-width: 0;
}

.reports-dashboard-shell > .d-flex.flex-column.mb-5 {
    margin-bottom: 1.35rem !important;
}

.reports-dashboard-shell .zs-card-title {
    color: var(--bs-gray-900) !important;
    font-size: var(--zs-font-section, 1.35rem) !important;
    line-height: 1.25;
}

.reports-dashboard-shell .zs-card-description,
.reports-dashboard-shell .text-gray-400,
.reports-dashboard-shell .text-gray-500 {
    color: var(--bs-gray-600) !important;
}

.reports-dashboard-shell .card-header {
    min-height: auto;
    padding: 1.5rem 1.5rem .75rem;
}

.reports-dashboard-shell .card-title,
.reports-dashboard-shell .card-title h2,
.reports-dashboard-shell .card-title h3 {
    color: var(--bs-gray-900);
    font-size: var(--zs-font-section, 1.05rem);
    line-height: 1.3;
}

.reports-dashboard-shell .card-toolbar {
    align-items: center;
    gap: .5rem;
}

.reports-dashboard-shell .card-body {
    padding: 1rem 1.5rem 1.5rem;
}

.reports-dashboard-shell .row {
    min-width: 0;
}

.reports-dashboard-shell .col-xl-4 > .card.card-flush {
    margin-bottom: 1.25rem !important;
}

.reports-category-tabs {
    gap: .35rem;
    min-width: 0;
    padding-inline-end: .5rem;
    scroll-snap-type: x proximity;
}

.reports-category-tabs::-webkit-scrollbar,
.reports-finance-tabs::-webkit-scrollbar,
.reports-ai-prompts::-webkit-scrollbar {
    height: 0;
}

.reports-category-tabs .nav-item {
    scroll-snap-align: start;
}

.reports-category-tabs .nav-link {
    border-radius: .65rem .65rem 0 0;
    min-height: 54px;
    padding-inline: .85rem;
    white-space: nowrap;
}

.reports-more-dropdown {
    padding-left: .75rem;
}

.reports-ai-command {
    margin-top: -.15rem;
}

.reports-ai-command .card-body {
    padding: 1.25rem 1.45rem !important;
}

.reports-ai-input {
    color: var(--bs-gray-800);
}

.reports-ai-input::placeholder {
    color: var(--bs-gray-500);
}

.reports-ai-prompts {
    align-items: center;
    gap: .45rem;
    min-width: 0;
}

button.reports-prompt-chip,
.reports-prompt-chip-skeleton {
    border-color: var(--bs-gray-300);
    color: var(--bs-gray-700);
    min-height: 34px;
    max-width: 100%;
    padding: .45rem .85rem;
    text-align: left;
}

.reports-prompt-priority-high {
    border-color: rgba(241, 65, 108, .2) !important;
    background: var(--bs-light-danger) !important;
    color: var(--bs-danger) !important;
}

.reports-prompt-priority-medium {
    border-color: rgba(255, 199, 0, .28) !important;
    background: var(--bs-light-warning) !important;
    color: var(--bs-gray-800) !important;
}

.reports-metric-card {
    min-height: 142px;
}

.reports-metric-card .card-header {
    padding: 1.35rem 1.35rem .75rem;
}

.reports-metric-card .card-body {
    padding: 0 1.35rem 1.2rem;
}

.reports-metric-card .zs-metric-value {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 2rem !important;
    letter-spacing: 0 !important;
}

/* Danger/warning-tone metric cards — card_tone and value_tone are set at the view
   layer when a tile's count indicates a risk state; controller data is unchanged. */
.reports-metric-card-danger {
    background: rgba(241, 65, 108, .05);
    border-color: rgba(241, 65, 108, .18);
}

.reports-metric-card-danger .zs-metric-label {
    color: var(--bs-danger, #f1416c) !important;
}

.reports-metric-card-warning {
    background: rgba(255, 199, 0, .06);
    border-color: rgba(255, 199, 0, .22);
}

.reports-metric-card-warning .zs-metric-label {
    color: var(--bs-warning-dark, #b08800) !important;
}

/* Warning-tone insight banner — used for Finance BAS disclaimer */
.reports-insight-banner-warning {
    background: rgba(255, 199, 0, .08);
    border-color: rgba(255, 199, 0, .28);
}

/* Finance sub-tab pill nav — replaces the overflowing nav-line-tabs row */
.reports-finance-tab-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--bs-gray-200, #eff2f5);
}

.reports-finance-tab-pills .reports-finance-tab {
    background: transparent;
    border: 1px solid var(--bs-gray-200, #eff2f5);
    border-radius: 6px;
    color: var(--bs-gray-700, #5e6278);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    padding: 5px 14px;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
    white-space: nowrap;
}

.reports-finance-tab-pills .reports-finance-tab.active {
    background: var(--zosify-accent);
    border-color: var(--zosify-accent);
    color: #fff;
}

.reports-finance-tab-pills .reports-finance-tab:hover:not(.active) {
    background: var(--bs-gray-100, #f9f9f9);
    border-color: var(--bs-gray-300, #e4e6ef);
}

/* Finance summary headline row — bold bottom row replacing the donut */
.reports-finance-headline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.875rem;
    border-top: 1px solid var(--bs-gray-200, #eff2f5);
    margin-top: 0.25rem;
}

.reports-finance-headline-row .reports-finance-headline-label {
    font-size: var(--zs-font-label, 0.925rem);
    font-weight: var(--zs-weight-medium, 600);
    color: var(--bs-gray-900, #181c32);
}

.reports-finance-headline-row .reports-finance-headline-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-gray-900, #181c32);
}

@media print {
    .reports-finance-tab-pills { display: none !important; }
}

.reports-metric-card .zs-metric-label {
    color: var(--bs-gray-600) !important;
    font-size: var(--zs-font-label, .9rem) !important;
    line-height: 1.35;
}

.reports-metric-card .badge {
    white-space: normal;
    text-align: left;
    line-height: 1.25;
}

.reports-empty-state,
.reports-saved-empty {
    align-items: center;
    border-radius: .85rem;
    gap: .85rem;
    padding: 1.1rem;
}

.reports-empty-state-copy {
    min-width: 0;
}

.reports-empty-state-copy p {
    line-height: 1.5;
}

.reports-empty-state-actions {
    align-items: center;
    justify-content: flex-start;
}

.reports-empty-state-action {
    min-height: 34px;
    padding-inline: .9rem;
    font-weight: 700;
}

.reports-dashboard-shell .table-responsive {
    border: 1px solid var(--bs-gray-200);
    border-radius: .85rem;
}

.reports-dashboard-shell .table {
    margin-bottom: 0;
}

.reports-dashboard-shell .table thead th {
    background: var(--bs-gray-100);
    color: var(--bs-gray-700);
    font-size: var(--zs-font-label, .75rem);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.reports-dashboard-shell .table tbody td {
    color: var(--bs-gray-800);
    font-size: var(--zs-font-base, .875rem);
    vertical-align: middle;
}

.reports-dashboard-shell .table tbody tr:hover td {
    background: #fbfdff;
}

.reports-action-link,
.reports-dashboard-shell .card-toolbar .btn,
.reports-dashboard-shell .btn-sm {
    align-items: center;
    border-radius: 50rem;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    white-space: nowrap;
}

.reports-insight-list {
    display: grid;
    gap: .85rem;
}

.reports-insight-card {
    border: 1px solid var(--bs-gray-200);
    border-radius: .85rem;
    padding: 1rem;
}

.reports-finance-tabs {
    gap: .4rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: .15rem;
    scroll-snap-type: x proximity;
    white-space: nowrap;
}

.reports-finance-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.reports-chart-summary {
    row-gap: .85rem !important;
}

@media (max-width: 1199.98px) {
    .reports-dashboard-shell .col-xl-4 {
        margin-top: .25rem;
    }
}

@media (max-width: 991.98px) {
    .reports-analytics-page {
        gap: 1.25rem !important;
    }

    .reports-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .reports-category-tabs {
        overflow-x: auto !important;
    }

    .reports-category-tabs .nav-link {
        min-height: 48px;
        padding-block: 1rem !important;
    }

    .reports-more-dropdown {
        padding-left: .5rem;
    }

    .reports-dashboard-shell .card-header {
        align-items: flex-start;
        gap: .75rem;
    }
}

@media (max-width: 767.98px) {
    .reports-dashboard-shell > .d-flex.flex-column.mb-5 {
        margin-bottom: 1rem !important;
    }

    .reports-dashboard-shell .zs-card-title {
        font-size: var(--zs-font-section, 1.2rem) !important;
    }

    .reports-dashboard-shell .card-header {
        padding: 1.2rem 1.2rem .55rem;
    }

    .reports-dashboard-shell .card-body {
        padding: .85rem 1.2rem 1.2rem;
    }

    .reports-ai-command .card-body {
        padding: 1rem !important;
    }

    .reports-ai-prompts {
        flex-wrap: nowrap;
        margin-inline: -1rem;
        overflow-x: auto;
        padding: .1rem 1rem .35rem;
    }

    button.reports-prompt-chip,
    .reports-prompt-chip-skeleton {
        flex: 0 0 auto;
        max-width: 82vw;
        white-space: normal;
    }

    .reports-metric-card {
        min-height: 126px;
    }

    .reports-metric-card .zs-metric-value {
        font-size: 1.65rem !important;
    }

    .reports-metric-card .card-header {
        padding: 1.15rem 1.15rem .6rem;
    }

    .reports-metric-card .card-body {
        align-items: flex-start !important;
        flex-direction: column;
        gap: .4rem;
        padding: 0 1.15rem 1.1rem;
    }

    .reports-empty-state,
    .reports-saved-empty {
        align-items: flex-start;
        text-align: left;
    }

    .reports-empty-state-actions {
        width: 100%;
    }

    .reports-empty-state-action,
    .reports-action-card-actions .btn {
        flex: 1 1 auto;
    }

    .reports-dashboard-shell .table-responsive {
        margin-inline: -.2rem;
    }

    .reports-dashboard-shell .table thead th,
    .reports-dashboard-shell .table tbody td {
        padding: .85rem;
    }

    .reports-finance-tabs {
        margin-inline: -1.2rem;
        padding-inline: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .reports-header-actions {
        align-items: stretch !important;
        flex-direction: column;
    }

    .reports-daterange-dropdown,
    .reports-export-dropdown,
    .reports-daterange-btn,
    .reports-export-btn {
        width: 100%;
    }

    .reports-export-btn,
    .reports-daterange-btn {
        justify-content: center;
    }

    .reports-dashboard-shell .card-header {
        flex-direction: column;
    }

    .reports-dashboard-shell .card-toolbar,
    .reports-dashboard-shell .card-toolbar .btn,
    .reports-action-link {
        width: 100%;
    }

    .reports-recommended-actions .reports-action-card-actions,
    .reports-action-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .reports-recommended-actions .reports-action-card-actions .btn,
    .reports-action-card-actions .btn,
    .reports-empty-state-action {
        width: 100%;
    }

    .reports-chart-summary > div {
        flex: 1 1 100%;
    }
}

/* ─── Reports overview redesign ─────────────────────────────────────────── */

/* KPI strip — auto-column grid on desktop, horizontal-scroll flex on mobile.
   grid-auto-flow: column lets any number of tiles share the row evenly
   (4 on Overview, 7 on Sales) without hardcoding a column count. */
.reports-kpi-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.reports-kpi-strip-item {
    min-width: 0;
}

/* Insight banner — single-row alert strip */
.reports-insight-banner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    background: rgba(0, 158, 247, 0.06);
    border: 1px solid rgba(0, 158, 247, 0.18);
    border-radius: 0.75rem;
}

.reports-insight-banner-icon {
    flex-shrink: 0;
}

.reports-insight-banner-copy {
    flex-grow: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-gray-800, #3f4254);
}

/* Priority actions compact list */
.reports-recommended-actions-compact .card-body {
    padding-top: 0.5rem;
}

.reports-priority-list {
    margin-bottom: 0;
}

.reports-priority-list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--bs-gray-200, #f1f1f2);
}

.reports-priority-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reports-priority-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--bs-gray-100, #f9f9f9);
    color: var(--bs-gray-600, #7e8299);
}

.reports-priority-list-label {
    flex-grow: 1;
    font-size: var(--zs-font-label, 0.875rem);
    font-weight: var(--zs-weight-medium, 500);
    color: var(--bs-gray-800, #3f4254);
    min-width: 0;
}

.reports-priority-list-chevron {
    display: none;
    flex-shrink: 0;
}

/* Rail AI card */
.reports-rail-ai-input {
    font-size: 0.875rem;
}

/* ─── Mobile overrides ───────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* KPI strip: two visible cards with peek of third */
    .reports-kpi-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.75rem;
        padding-bottom: 4px;
    }

    .reports-kpi-strip::-webkit-scrollbar {
        display: none;
    }

    .reports-kpi-strip-item {
        flex: 0 0 calc(50% - 0.375rem);
        scroll-snap-align: start;
    }

    /* Insight banner: stack icon+text, CTA below */
    .reports-insight-banner {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.625rem;
    }

    .reports-insight-banner-copy {
        font-size: 0.82rem;
    }

    /* Priority list: full-row tap, hide CTA button, show chevron */
    .reports-priority-list-item {
        cursor: pointer;
    }

    .reports-priority-list-cta {
        display: none;
    }

    .reports-priority-list-chevron {
        display: inline-flex;
    }
}
/* Portal dashboard sidebar widgets */
.zs-dashboard-widget {
    border: 1px solid rgba(99, 115, 129, 0.12);
}

.zs-dashboard-widget .card-header {
    min-height: 0;
}

.zs-dashboard-widget .card-title {
    color: #1f2937;
}

.zs-setup-widget,
.zs-storefront-widget {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.zs-widget-surface {
    border: 1px solid rgba(99, 115, 129, 0.08);
}

.zs-storefront-domain {
    background: #f6f7f9;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.zs-storefront-status-list {
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.zs-storefront-status-list .zs-status-row {
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.zs-storefront-status-list .zs-status-row:hover {
    background: rgba(15, 23, 42, 0.025);
}

.zs-priority-row,
.zs-prompt-row,
.zs-widget-link,
.zs-status-row {
    transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.zs-priority-row-alert {
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.zs-priority-row:hover,
.zs-prompt-row:hover,
.zs-widget-link:hover,
.zs-status-row:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.zs-priority-clear-list {
    border-top: 1px dashed rgba(99, 115, 129, 0.22);
    margin-top: 0.25rem;
    padding-top: 0.85rem;
}

.zs-priority-clear-row {
    border-radius: 0.45rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.zs-priority-clear-row:hover {
    background: rgba(80, 205, 137, 0.08);
}

.zs-prompt-row {
    border: 1px solid rgba(62, 151, 255, 0.14);
}

.zs-prompt-copy {
    display: -webkit-box !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
}

.zs-widget-link {
    border: 1px solid rgba(62, 151, 255, 0.16);
}

.zs-storefront-notice {
    border: 0;
    box-shadow: none;
}

.zs-storefront-notice-warning {
    background: #fff3d6;
}

.zs-storefront-notice-warning,
.zs-storefront-notice-warning .ki-duotone {
    color: #9a6a00;
}

.zs-storefront-notice-primary {
    background: var(--zosify-accent-soft);
}

.zs-storefront-notice-primary,
.zs-storefront-notice-primary .ki-duotone {
    color: var(--zosify-accent-hover);
}

.zs-storefront-setup {
    background: #eef6ff;
    border: 1px dashed rgba(62, 151, 255, 0.32);
}

.zs-storefront-setup .btn {
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .zs-dashboard-widget-side {
        max-width: 100%;
    }
}

.product-preview-page {
    max-width: 1280px;
    margin: 0 auto;
}

.product-preview-gallery,
.product-preview-buybox,
.product-preview-section {
    background: #fff;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.product-preview-gallery,
.product-preview-buybox,
.product-preview-section {
    padding: 24px;
}

.product-preview-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fb;
}

.product-preview-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-preview-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.product-preview-thumbs button {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    background: #fff;
}

.product-preview-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-preview-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-preview-info-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eff2f5;
}

.product-preview-info-list span {
    color: #7e8aa8;
}

.product-preview-info-list strong {
    color: #101b3d;
    text-align: right;
}

.product-preview-section h3 {
    margin-bottom: 16px;
    color: #101b3d;
    font-size: 18px;
    font-weight: 700;
}

.product-preview-description img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767.98px) {
    .product-preview-gallery,
    .product-preview-buybox,
    .product-preview-section {
        padding: 18px;
    }
}

/* Abandoned cart recovery workspace — 2026-09-09. */
.abandoned-recovery-workspace {
    --recovery-ink: var(--bs-gray-900, #18181b);
    --recovery-muted: var(--bs-gray-600, #6b7280);
}
.abandoned-recovery-workspace .recovery-notice {
    padding: 14px 18px;
    border: 1px solid var(--bs-gray-200, #e5e7eb);
    border-radius: 12px;
    background: var(--bs-gray-100, #f7f7f8);
    color: var(--recovery-ink);
    font-size: 13px;
}
.abandoned-recovery-workspace .recovery-tabs { overflow-x: auto; overflow-y: hidden; }
.abandoned-recovery-workspace .recovery-automation-details {
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: min(70vh, 560px);
    overflow-y: auto;
}
.abandoned-recovery-workspace .recovery-search-toolbar .card-title { margin: 0; }
.abandoned-recovery-workspace .recovery-tabs .nav-link { font-size: var(--zs-font-label, 13px); }
.abandoned-recovery-workspace .recovery-tabs .nav-link.active {
    color: var(--recovery-ink) !important;
    border-bottom-color: var(--recovery-ink) !important;
    box-shadow: inset 0 -2px currentColor;
}
.abandoned-recovery-workspace .card-header { min-height: 0; }
.abandoned-recovery-workspace .card-title { max-width: 480px; width: 100%; }
.abandoned-recovery-workspace .recovery-table {
    width: 100%;
    min-width: 900px;
    table-layout: fixed;
    margin-bottom: 0;
}
.abandoned-recovery-workspace .recovery-table thead th {
    color: var(--recovery-muted);
    font-size: var(--zs-font-label, 11px);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--bs-gray-200, #e5e7eb);
}
.abandoned-recovery-workspace .recovery-table th,
.abandoned-recovery-workspace .recovery-table td { padding: 18px 12px; }
.abandoned-recovery-workspace .recovery-table tbody td {
    border-bottom: 1px solid var(--bs-gray-200, #e5e7eb);
    vertical-align: middle;
}
.abandoned-recovery-workspace .recovery-table tbody tr:last-child td { border-bottom: 0; }
.abandoned-recovery-workspace .recovery-customer-col { width: 30%; }
.abandoned-recovery-workspace .recovery-cart-col { width: 13%; }
.abandoned-recovery-workspace .recovery-date-col { width: 16%; }
.abandoned-recovery-workspace .recovery-state-col { width: 23%; }
.abandoned-recovery-workspace .recovery-actions-col { width: 18%; }
.abandoned-recovery-workspace .recovery-customer { display: flex; align-items: center; gap: 12px; }
.abandoned-recovery-workspace .recovery-avatar {
    width: 36px; height: 36px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--bs-gray-100, #f7f7f8);
    color: var(--recovery-muted); font-size: 11px; font-weight: 600;
}
.abandoned-recovery-workspace .recovery-name,
.abandoned-recovery-workspace .recovery-value,
.abandoned-recovery-workspace .recovery-date {
    color: var(--recovery-ink); font-size: 13px; line-height: 1.5;
}
.abandoned-recovery-workspace .recovery-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.abandoned-recovery-workspace .recovery-name:hover,
.abandoned-recovery-workspace .recovery-view:hover { text-decoration: underline; }
.abandoned-recovery-workspace .recovery-value { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.abandoned-recovery-workspace .recovery-secondary { color: var(--recovery-muted); font-size: 12px; line-height: 1.5; margin-top: 3px; }
.abandoned-recovery-workspace .recovery-contact { overflow-wrap: anywhere; }
.abandoned-recovery-workspace .recovery-status { display: inline-flex; align-items: center; gap: 7px; color: var(--recovery-muted); font-size: 13px; font-weight: 600; }
.abandoned-recovery-workspace .recovery-status-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.abandoned-recovery-workspace .recovery-status--success { color: #18794e; }
.abandoned-recovery-workspace .recovery-status--ready { color: var(--recovery-ink); }
.abandoned-recovery-workspace .recovery-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.abandoned-recovery-workspace .recovery-send {
    background: #18181b !important; border: 1px solid #18181b !important; color: #fff !important;
    border-radius: 8px; padding: 9px 12px !important; font-size: 12px; white-space: nowrap;
}
.abandoned-recovery-workspace .recovery-send:hover { background: #343438 !important; }
.abandoned-recovery-workspace .recovery-view { color: var(--recovery-ink); font-size: 12px; font-weight: 500; white-space: nowrap; }
.abandoned-recovery-workspace .recovery-more { width: 28px; height: 32px; color: var(--recovery-muted); font-size: 20px; }
.abandoned-recovery-workspace .recovery-more:hover { background: var(--bs-gray-100, #f7f7f8); }
.abandoned-recovery-workspace a:focus-visible,
.abandoned-recovery-workspace button:focus-visible { outline: 2px solid var(--recovery-ink); outline-offset: 3px; }
@media (max-width: 991.98px) {
    .abandoned-recovery-workspace .recovery-table th,
    .abandoned-recovery-workspace .recovery-table td { padding: 16px 8px; }
    .abandoned-recovery-workspace .card-body { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 767.98px) {
    .abandoned-recovery-workspace { min-width: 0; }
    .abandoned-recovery-workspace > .card,
    .abandoned-recovery-workspace .recovery-notice { min-width: 0; max-width: 100%; }
    .abandoned-recovery-workspace .recovery-table { display: block; min-width: 0; }
    .abandoned-recovery-workspace .recovery-table thead { display: none; }
    .abandoned-recovery-workspace .recovery-table tbody { display: block; }
    .abandoned-recovery-workspace .recovery-table tbody tr {
        display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px;
        padding: 20px 8px; border-bottom: 1px solid var(--bs-gray-200, #e5e7eb);
    }
    .abandoned-recovery-workspace .recovery-table tbody td { display: block; padding: 0; border: 0; min-width: 0; text-align: left !important; }
    .abandoned-recovery-workspace .recovery-table tbody td.d-none { display: none !important; }
    .abandoned-recovery-workspace .recovery-table tbody td:nth-child(2),
    .abandoned-recovery-workspace .recovery-table tbody td:nth-child(5),
    .abandoned-recovery-workspace .recovery-table tbody td:last-child { grid-column: 1 / -1; }
    .abandoned-recovery-workspace .recovery-row-actions { justify-content: space-between; }
    .abandoned-recovery-workspace .recovery-table tbody td:nth-child(3)::before,
    .abandoned-recovery-workspace .recovery-table tbody td:nth-child(4)::before { display: block; font-size: var(--zs-font-base, 11px); color: var(--recovery-muted); margin-bottom: 4px; }
    .abandoned-recovery-workspace .recovery-table tbody td:nth-child(3)::before { content: 'Cart'; }
    .abandoned-recovery-workspace .recovery-table tbody td:nth-child(4)::before { content: 'Last activity'; }
}

/* Product list: scoped operational readability, 2026-09-20. */
.product-list-workspace .card-header { min-height: 0; }
.product-list-workspace .product-filter-chip { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.product-list-workspace .table tbody tr:hover { background: var(--bs-gray-100, #f5f8fa); }
.product-list-workspace a:focus-visible,
.product-list-workspace button:focus-visible { outline: 2px solid var(--bs-primary, #006bff); outline-offset: 3px; }
.product-list-workspace .badge-light-warning { color: #795000; background-color: #fff4ce; }
.product-list-workspace .badge-light-success { color: #126338; background-color: #dff5e8; }
.product-list-workspace .badge-light-danger { color: #a51d36; background-color: #ffe4e9; }
.product-list-workspace .badge-light-primary { color: #174ea6; background-color: #e3edff; }
.product-list-workspace [aria-busy="true"] { opacity: .55; pointer-events: none; }
.product-list-workspace .nav { overflow-x: auto; }

/* Inventory reorder dashboard — 2026-10-03. Scoped to the dashboard only. */
.inventory-list-page .inv-stock-health {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
    padding: 15px 22px; border: 1px solid var(--bs-gray-200, #eff2f5);
    border-radius: 14px; background: var(--bs-body-bg, #fff); color: var(--bs-gray-600, #7e8299);
}
.inventory-list-page .inv-stock-health strong { margin-left: 10px; color: var(--bs-gray-900, #181c32); }
.inventory-reorder-workspace { display: flex; flex-direction: column; gap: 24px; }
.inventory-reorder-workspace .card { border: 1px solid var(--bs-gray-200, #eff2f5); border-radius: 20px; }
.inventory-reorder-workspace .card-body { padding: 26px 28px; }
.inventory-reorder-workspace .inv-reorder-heading { font-size: 25px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 8px; }
.inv-reorder-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.inv-reorder-metric { display: flex; gap: 16px; align-items: center; min-width: 0; }
.inv-reorder-metric + .inv-reorder-metric { border-left: 1px solid var(--bs-gray-200, #eff2f5); padding-left: 24px; }
.inv-reorder-metric strong, .inv-reorder-metric span:not(.inv-reorder-icon), .inv-reorder-metric small { display: block; }
.inv-reorder-metric strong { font-size: 23px; line-height: 1.35; color: var(--bs-gray-900, #181c32); }
.inv-reorder-metric small { color: var(--bs-gray-600, #7e8299); margin-top: 3px; }
.inv-reorder-icon { display: flex; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; align-items: center; justify-content: center; }
.inv-reorder-settings > summary { cursor: pointer; width: fit-content; margin-left: auto; padding: 9px 18px; border: 1px solid var(--bs-gray-300, #e4e6ef); border-radius: 10px; background: var(--bs-light, #f5f8fa); }
.inv-reorder-settings[open] { border-top: 1px solid var(--bs-gray-200, #eff2f5); padding-top: 16px; }
.inv-reorder-help { max-width: 470px; }
.inv-reorder-help > summary { cursor: pointer; }
.inventory-reorder-workspace .inv-reorder-table { border-collapse: separate; border-spacing: 0 5px; min-width: 960px; }
.inventory-reorder-workspace .inv-reorder-table th { font-weight: 500; padding: 14px 12px; white-space: nowrap; }
.inventory-reorder-workspace .inv-reorder-table td { padding: 18px 12px; border: 0; }
.inventory-reorder-workspace .inv-reorder-table tr.is-selected td { background: var(--zosify-accent-soft); }
.inv-reorder-table td:first-child { border-radius: 12px 0 0 12px; }
.inv-reorder-table td:last-child { border-radius: 0 12px 12px 0; }
.inv-reorder-table td:nth-child(2) { min-width: 255px; }
.inv-reorder-thumbnail { display: flex; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; align-items: center; justify-content: center; background: var(--bs-light, #f5f8fa); }
.inv-reorder-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.inv-reorder-sort { border: 0; background: transparent; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.inv-reorder-sort span { margin-left: 4px; }
.inv-reorder-stepper { display: flex; width: 150px; height: 44px; border: 1px solid var(--bs-gray-300, #e4e6ef); border-radius: 10px; overflow: hidden; background: var(--bs-card-bg, #fff); }
.inv-reorder-stepper button { width: 40px; flex-shrink: 0; border: 0; background: transparent; color: var(--bs-gray-900, #181c32); font-size: 22px; }
.inv-reorder-stepper input { min-width: 0; width: 70px; border: 0; border-left: 1px solid var(--bs-gray-200, #eff2f5); border-right: 1px solid var(--bs-gray-200, #eff2f5); background: transparent; color: var(--bs-gray-900, #181c32); text-align: center; font-weight: 600; appearance: textfield; -moz-appearance: textfield; }
.inv-reorder-stepper input::-webkit-inner-spin-button, .inv-reorder-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.inv-reorder-stepper :disabled { opacity: .45; cursor: not-allowed; }
.inv-reorder-stepper input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--bs-danger, #f1416c); }
.inv-reorder-stepper :focus-visible, .inv-reorder-sort:focus-visible { outline: 2px solid var(--zosify-accent); outline-offset: -2px; }
.inv-reorder-actionbar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 14px; padding: 18px 20px; border: 1px solid var(--bs-gray-300, #e4e6ef); border-radius: 12px; background: var(--bs-light, #f5f8fa); }
.inv-reorder-selection { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; flex: 1; }
.inv-reorder-selection > span { color: var(--bs-gray-600, #7e8299); white-space: nowrap; }
.inv-reorder-total { font-size: 18px; color: var(--bs-gray-900, #181c32); margin-right: 8px; }
.inv-reorder-receive { display: flex; align-items: center; gap: 12px; }
.inv-reorder-receive select { min-width: 190px; max-width: 260px; }
.inv-reorder-actionbar > .btn { white-space: nowrap; }
.inv-reorder-note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; background: var(--zosify-accent-soft); color: var(--zosify-accent); border-radius: 10px; font-size: 12px; }
@media (max-width: 1199.98px) {
    .inv-reorder-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .inv-reorder-metric:nth-child(3) { border-left: 0; padding-left: 0; }
    .inv-reorder-selection { flex-basis: 100%; }
}
@media (max-width: 575.98px) {
    .inventory-reorder-workspace .card-body { padding: 20px 16px; }
    .inventory-reorder-workspace .inv-reorder-heading { font-size: 21px; }
    .inv-reorder-metric { gap: 10px; }
    .inv-reorder-metric + .inv-reorder-metric { padding-left: 0; border-left: 0; }
    .inv-reorder-icon { display: none; }
    .inv-reorder-metric strong { font-size: 21px; }
    .inv-reorder-actionbar { padding: 16px; }
    .inv-reorder-receive { width: 100%; flex-wrap: wrap; gap: 6px; }
    .inv-reorder-receive select, .inv-reorder-actionbar > .btn { width: 100%; max-width: none; }
    .inventory-list-page .inv-stock-health { gap: 10px 18px; padding: 14px 16px; }
}

/* Stock update keeps location beside the tabs and dashboard actions out of view. */
.inventory-list-page .inv-dashboard-actions { display: flex; }
.inventory-list-page .inv-tabs-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 24px; border-bottom: 1px solid var(--bs-gray-300, #e4e6ef);
}
.inventory-list-page .inv-tabs-header #inventory_tabs { border-bottom: 0; align-self: flex-end; }
.inventory-list-page .inv-tabs-location { display: none; align-items: center; gap: 14px; padding-bottom: 12px; }
.inventory-list-page .inv-tabs-location-control { width: 230px; }
.inventory-list-page:has(#inv-tab-stock.active) .inv-dashboard-actions { display: none; }
.inventory-list-page:has(#inv-tab-stock.active) .inv-tabs-location { display: flex; }
@media (max-width: 575.98px) {
    .inventory-list-page .inv-tabs-location { width: 100%; justify-content: space-between; }
    .inventory-list-page .inv-tabs-location-control { width: auto; min-width: 0; flex: 1; max-width: 230px; }
}

/* Marketing homepage: scoped AdminV2 presentation, 2026-10-04. */
.marketing-home { --mh-ink: var(--bs-gray-900, #151b32); --mh-muted: var(--bs-gray-600, #69748e); --mh-border: var(--bs-gray-200, #eaf0f5); --mh-surface: var(--bs-body-bg, #fff); color: var(--mh-ink); padding: 8px 0 24px; }
.marketing-home h1, .marketing-home h2, .marketing-home h3, .marketing-home p { margin: 0; }
.marketing-home h1 { font-size: var(--zs-font-page, clamp(25px, 2vw, 34px)); letter-spacing: -.9px; line-height: 1.2; font-weight: var(--zs-weight-medium, 750); margin: 7px 0 10px; }
.marketing-home h2 { font-size: var(--zs-font-section, 21px); font-weight: var(--zs-weight-medium, 700); letter-spacing: -.4px; }
.marketing-home h3 { font-size: var(--zs-font-section, 14px); font-weight: var(--zs-weight-medium, 650); line-height: 1.45; }
.marketing-home p { color: var(--mh-muted); line-height: 1.65; font-size: 13px; }
.marketing-home .btn { border-radius: 11px; font-weight: var(--zs-weight-medium, 600); white-space: normal; }
.marketing-home .mh-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.marketing-home .mh-eyebrow { color: var(--bs-primary, #1683ff); text-transform: uppercase; font-size: var(--zs-font-label, 10px); font-weight: var(--zs-weight-medium, 750); letter-spacing: 1.3px; }
.marketing-home .mh-header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.marketing-home .mh-secondary { background: var(--mh-surface); border: 1px solid var(--mh-border); color: var(--mh-ink); }
.marketing-home .mh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.marketing-home .mh-layout.mh-tools-only { grid-template-columns: minmax(0, 1fr); }
.marketing-home .mh-main, .marketing-home .mh-sidebar { display: grid; min-width: 0; gap: 26px; }
.marketing-home .mh-sidebar { gap: 18px; }
.marketing-home .mh-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.marketing-home .mh-stat, .marketing-home .mh-tool, .marketing-home .mh-panel { border: 1px solid var(--mh-border); background: var(--mh-surface); border-radius: 16px; box-shadow: 0 4px 18px rgba(25, 42, 70, .025); }
.marketing-home .mh-stat { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 3px 12px; padding: 14px 18px; color: var(--mh-ink); }
.marketing-home .mh-stat > .mh-icon { grid-column: 1; grid-row: 1 / 3; align-self: center; width: 38px; height: 38px; border-radius: 11px; }
.marketing-home .mh-stat-label { grid-column: 2; color: var(--mh-muted); font-size: var(--zs-font-label, 12px); line-height: 1.4; }
.marketing-home .mh-stat strong { grid-column: 2; font-size: 26px; line-height: 1.2; letter-spacing: -.8px; }
.marketing-home .mh-stat-note { grid-column: 1 / -1; margin-top: 5px; font-size: 11px; color: var(--mh-muted); display: flex; justify-content: space-between; gap: 5px; }
.marketing-home .mh-icon { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 13px; flex-shrink: 0; }
.marketing-home .mh-icon i { font-size: 24px; color: inherit; }
.marketing-home .mh-tone-primary { color: #1683ff; background: rgba(22, 131, 255, .09); }
.marketing-home .mh-tone-success { color: #12ae68; background: rgba(18, 174, 104, .09); }
.marketing-home .mh-tone-info { color: #8856ec; background: rgba(136, 86, 236, .09); }
.marketing-home .mh-tone-warning { color: #df9200; background: rgba(242, 173, 31, .1); }
.marketing-home .mh-welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 25px; border: 1px solid rgba(91, 135, 238, .1); border-radius: 16px; background: linear-gradient(115deg, rgba(22, 131, 255, .09), rgba(136, 86, 236, .055)); }
.marketing-home .mh-welcome h2 { margin: 7px 0 6px; font-size: var(--zs-font-section, 20px); }
.marketing-home .mh-welcome .btn { flex-shrink: 0; }
.marketing-home .mh-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.marketing-home .mh-section-heading p { margin-top: 5px; }
.marketing-home .mh-text-link { color: var(--bs-primary, #1683ff); font-weight: 600; font-size: 12px; line-height: 1.5; }
.marketing-home .mh-section-heading > a { flex-shrink: 0; }
.marketing-home .mh-tools, .marketing-home .mh-conversion { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.marketing-home .mh-tool { display: flex; flex-wrap: wrap; align-content: start; gap: 14px; padding: 20px; color: var(--mh-ink); min-width: 0; }
.marketing-home .mh-tool-copy { flex: 1; min-width: 100px; }
.marketing-home .mh-tool-copy p { margin-top: 8px; font-size: 12px; }
.marketing-home .mh-tool-footer { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.marketing-home .mh-badge { display: inline-block; padding: 3px 7px; border-radius: 6px; background: var(--bs-gray-100, #f5f7fa); color: var(--mh-muted); font-size: var(--zs-font-xs, 10px); font-weight: 500; white-space: nowrap; }
.marketing-home .mh-tool-compact { padding: 17px; gap: 11px; }
.marketing-home .mh-tool-compact .mh-icon { width: 35px; height: 35px; border-radius: 10px; }
.marketing-home .mh-tool-compact h3 { font-size: var(--zs-font-section, 12px); }
.marketing-home .mh-tool-compact .mh-text-link { display: block; margin-top: 10px; }
.marketing-home .mh-report { grid-column: 1 / -1; align-items: center; }
.marketing-home .mh-report .mh-tool-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.marketing-home .mh-report .mh-tool-copy p, .marketing-home .mh-report .mh-text-link { margin: 0; }
.marketing-home .mh-report .mh-text-link { margin-left: auto; }
.marketing-home .mh-panel { padding: 21px; }
.marketing-home .mh-panel-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.marketing-home .mh-panel h2 { font-size: var(--zs-font-section, 15px); line-height: 1.45; letter-spacing: -.2px; }
.marketing-home .mh-panel p { font-size: 12px; }
.marketing-home .mh-sparkle { font-size: 24px; color: var(--bs-primary, #1683ff); }
.marketing-home .mh-recommendations { background: linear-gradient(135deg, rgba(22, 131, 255, .07), rgba(136, 86, 236, .065)), var(--mh-surface); }
.marketing-home .mh-suggestion { padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--mh-border); }
.marketing-home .mh-suggestion p { margin: 6px 0 12px; }
.marketing-home .mh-opportunity { padding: 15px; border: 1px solid var(--mh-border); border-radius: 11px; margin-top: 12px; }
.marketing-home .mh-opportunity-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.marketing-home .mh-opportunity-title h3 { font-size: var(--zs-font-section, 12px); }
.marketing-home .mh-opportunity p { margin: 7px 0 11px; }
.marketing-home .mh-opportunity-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.marketing-home .mh-empty { padding: 24px 0 12px; }
.marketing-home .mh-empty h3 { margin: 12px 0 7px; }
.marketing-home .mh-panel-bottom { display: block; border-top: 1px solid var(--mh-border); padding-top: 15px; margin-top: 16px; }
.marketing-home .mh-report-link { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; background: rgba(18, 174, 104, .055); color: var(--mh-ink); }
.marketing-home .mh-report-link strong, .marketing-home .mh-report-link > span > span { display: block; font-size: 12px; }
.marketing-home .mh-report-link > span > span { margin-top: 5px; color: var(--mh-muted); }
.marketing-home a { text-decoration: none; }
.marketing-home a:focus-visible { outline: 3px solid var(--bs-primary, #1683ff); outline-offset: 4px; }
.marketing-home .mh-tool:hover, .marketing-home .mh-stat:hover { border-color: rgba(22, 131, 255, .4); box-shadow: 0 6px 20px rgba(22, 131, 255, .07); }
.marketing-home a.mh-text-link:hover { text-decoration: underline; }
@media (min-width: 1500px) { .marketing-home .mh-layout { grid-template-columns: minmax(0, 1fr) 330px; } }
@media (max-width: 1350px) { .marketing-home .mh-tools, .marketing-home .mh-conversion { grid-template-columns: repeat(2, minmax(0, 1fr)); } .marketing-home .mh-header { align-items: flex-start; flex-direction: column; } .marketing-home .mh-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .marketing-home .mh-welcome { align-items: flex-start; flex-direction: column; } }
@media (max-width: 1100px) { .marketing-home .mh-layout { grid-template-columns: minmax(0, 1fr); } .marketing-home .mh-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .marketing-home .mh-report-link { grid-column: 1 / -1; } }
@media (max-width: 575px) { .marketing-home .mh-tools, .marketing-home .mh-conversion, .marketing-home .mh-sidebar { grid-template-columns: minmax(0, 1fr); } .marketing-home .mh-header-actions { width: 100%; flex-wrap: wrap; } .marketing-home .mh-header-actions .btn { flex: 1; } .marketing-home .mh-section-heading { align-items: flex-start; flex-wrap: wrap; } .marketing-home .mh-stat { padding: 14px; } .marketing-home .mh-summary { gap: 10px; } .marketing-home .mh-report .mh-tool-copy { display: block; } .marketing-home .mh-report .mh-tool-copy p, .marketing-home .mh-report .mh-text-link { margin-top: 8px; } }

/* Management Hub v1 — scoped native AdminV2 overrides, 2026-10-04. */
.management-hub { --hub-bg: #f4f6fb; --hub-surface: #fff; --hub-ink: #17243d; --hub-muted: #64748b; --hub-line: #e3e8f1; --hub-accent: #315de6; background: var(--hub-bg); color: var(--hub-ink); }
[data-bs-theme="dark"] .management-hub { --hub-bg: #141b29; --hub-surface: #1d2738; --hub-ink: #e5ecf8; --hub-muted: #a4b2c8; --hub-line: #334155; --hub-accent: #88a5ff; }
.management-hub #kt_wrapper, .management-hub #kt_content, .management-hub .page { background: var(--hub-bg); }
.management-hub #kt_content_container { max-width: 1500px; padding-top: 12px; padding-bottom: 32px; }
.management-hub #kt_header { background: var(--hub-surface); border-bottom: 1px solid var(--hub-line); }
.management-hub #kt_aside { background: var(--hub-surface); border-right: 1px solid var(--hub-line); }
.management-hub .superadmin-aside-logo { height: 78px; border-bottom: 1px solid var(--hub-line); }
.management-hub .hub-brand { color: var(--hub-ink) !important; letter-spacing: -.6px; }
.management-hub .hub-brand .badge { background: #edf2ff; color: #315de6; font-size: var(--zs-font-xs, 10px); letter-spacing: .7px; text-transform: uppercase; }
.management-hub #kt_aside .menu { padding: 0 10px; gap: 4px; }
.management-hub #kt_aside .menu-link { border-radius: 10px; padding: 12px 14px; }
.management-hub #kt_aside .menu-title { color: var(--hub-muted); font-weight: 500; }
.management-hub #kt_aside .menu-link.active { background: #edf2ff; box-shadow: inset 3px 0 #315de6; }
.management-hub #kt_aside .menu-link.active .menu-title, .management-hub #kt_aside .menu-link.active .menu-icon i { color: #315de6; }
.management-hub .card { background: var(--hub-surface); border: 1px solid var(--hub-line); border-radius: 16px; box-shadow: 0 3px 14px rgba(23,36,61,.025); overflow: visible; }
.management-hub .card .card-body { padding: 28px; }
.management-hub .card .card-header { padding: 20px 28px; min-height: 68px; border-bottom: 1px solid var(--hub-line); align-items: center; }
.management-hub .card .card-header + .card-body { padding-top: 22px !important; }
.management-hub h2 { font-size: var(--zs-font-section, 21px); font-weight: var(--zs-weight-medium, 700); letter-spacing: -.35px; margin-bottom: 20px; color: var(--hub-ink); }
.management-hub h3 { font-size: var(--zs-font-section, 16px); font-weight: var(--zs-weight-medium, 650); margin-top: 22px; margin-bottom: 14px; color: var(--hub-ink); }
.management-hub .card-header h3 { margin: 0; }
.management-hub p { line-height: 1.65; }
.management-hub .hub-description { color: var(--hub-muted); margin-top: -8px; margin-bottom: 24px; max-width: 780px; }
.management-hub .hub-kicker { color: var(--hub-accent); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 8px; }
.management-hub .hub-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 8px 0 24px; }
.management-hub .hub-hero h2 { font-size: var(--zs-font-section, 29px); margin: 0 0 8px; }
.management-hub .hub-hero p { color: var(--hub-muted); margin: 0; }
.management-hub .form-control, .management-hub .form-select { border: 1px solid var(--hub-line); border-radius: 9px; min-height: 43px; color: var(--hub-ink); background-color: var(--hub-surface); padding: 10px 13px; }
.management-hub .form-control:focus, .management-hub .form-select:focus { border-color: var(--hub-accent); box-shadow: 0 0 0 3px rgba(49,93,230,.10); }
.management-hub .form-label { display: block; color: var(--hub-muted); font-size: var(--zs-font-label, 12px); font-weight: var(--zs-weight-medium, 600); margin-bottom: 7px; }
.management-hub .btn { border-radius: 9px; font-weight: var(--zs-weight-medium, 600); }
.management-hub .btn-primary { background: #315de6 !important; border-color: #315de6 !important; }
.management-hub .hub-filter { background: var(--hub-bg); border: 1px solid var(--hub-line); border-radius: 12px; padding: 18px; margin-bottom: 24px; }
.management-hub .table { color: var(--hub-ink); vertical-align: middle; margin-bottom: 0; }
.management-hub .table thead th { padding: 13px 14px; background: var(--hub-bg); color: var(--hub-muted); font-size: var(--zs-font-label, 11px); text-transform: uppercase; letter-spacing: .6px; font-weight: 650; border-bottom: 1px solid var(--hub-line); white-space: nowrap; }
.management-hub .table tbody td { padding: 16px 14px; border-bottom: 1px solid var(--hub-line); font-size: var(--zs-font-base, 13px); }
.management-hub .table tbody tr:last-child td { border-bottom: 0; }
.management-hub .table tbody tr:hover { background: var(--hub-bg); }
.management-hub .table-responsive { border: 1px solid var(--hub-line); border-radius: 10px; margin-bottom: 20px; }
.management-hub .hub-muted { color: var(--hub-muted); font-size: var(--zs-font-xs, 12px); margin-top: 5px; }
.management-hub .hub-status { display: inline-flex; align-items: center; border-radius: 6px; padding: 5px 9px; font-size: 11px; font-weight: 650; background: var(--hub-bg); border: 1px solid var(--hub-line); }
.management-hub .hub-status[data-state="RUNNING"], .management-hub .hub-status[data-state="running"] { color: #315de6; background: #edf2ff; border-color: #dce5ff; }
.management-hub .hub-status[data-state="APPROVED"], .management-hub .hub-status[data-state="released"] { color: #16734a; background: #e9f7f0; border-color: #cbead9; }
.management-hub .hub-status[data-state="BLOCKED"], .management-hub .hub-status[data-state="attention"] { color: #a85517; background: #fff4e5; border-color: #f4dfbf; }
.management-hub .hub-status[data-state="READY_FOR_REVIEW"] { color: #7443ad; background: #f4edff; border-color: #e7d7ff; }
.management-hub .hub-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 14px; margin-bottom: 24px; }
.management-hub .hub-metric { padding: 18px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-surface); }
.management-hub .hub-metric strong { display: block; font-size: var(--zs-font-summary, 25px); letter-spacing: -.7px; margin: 6px 0; }
.management-hub .hub-metric span { color: var(--hub-muted); font-size: 12px; }
.management-hub .hub-split { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(290px,1fr); gap: 24px; align-items: start; }
.management-hub .hub-panel { border: 1px solid var(--hub-line); border-radius: 12px; padding: 22px; margin-bottom: 22px; background: var(--hub-surface); }
.management-hub .hub-panel > h3:first-child { margin-top: 0; }
.management-hub details > summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.management-hub details[open] > summary { margin-bottom: 12px; }
.management-hub .hub-empty { text-align: center; padding: 42px 20px; color: var(--hub-muted); }
.management-hub .hub-pagination { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 20px; }
.management-hub .superadmin-empty-state { min-height: 190px; }
.management-hub code, .management-hub pre { overflow-wrap: anywhere; }
@media (max-width: 991px) { .management-hub .hub-split { grid-template-columns: 1fr; } .management-hub .hub-hero { flex-direction: column; align-items: flex-start; } .management-hub .card .card-body { padding: 20px; } }
@media (max-width: 575px) { .management-hub #kt_content_container { padding-left: 12px; padding-right: 12px; } .management-hub .card .card-body { padding: 16px; } .management-hub .hub-filter { padding: 12px; } .management-hub .hub-hero h2 { font-size: var(--zs-font-section, 24px); } }

/* Sales Channels & AI Discovery */
.sales-channels-app { --sc-ink: #17264b; --sc-muted: #687a9b; --sc-line: #e4eaf4; --sc-blue: #176df2; color: var(--sc-ink); }
.sales-channels-app .sc-page-header { padding: 4px 2px 0; }
.sales-channels-app .sc-breadcrumb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--sc-muted); font-size: 12px; margin-bottom: 19px; }
.sales-channels-app .sc-breadcrumb a { color: #647ba6; text-decoration: none; }
.sales-channels-app .sc-breadcrumb a:hover { color: var(--sc-blue); }
.sales-channels-app .sc-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.sales-channels-app .sc-eyebrow { color: var(--sc-blue); font-size: var(--zs-font-label, 10px); font-weight: var(--zs-weight-medium, 800); letter-spacing: .13em; margin-bottom: 6px; }
.sales-channels-app .sc-page-header h1 { color: #101e42; font-size: var(--zs-font-page, clamp(25px, 2.25vw, 34px)); font-weight: var(--zs-weight-medium, 750); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 8px; }
.sales-channels-app .sc-page-header p { color: var(--sc-muted); font-size: 15px; line-height: 1.5; margin: 0; max-width: 780px; }
.sales-channels-app .sc-mode-note { display: inline-flex; align-items: center; gap: 7px; background: #f3f7fe; border: 1px solid #e2eaf7; border-radius: 999px; color: #526a95; font-size: 11px; font-weight: 650; padding: 8px 12px; white-space: nowrap; }
.sales-channels-app .sc-tabs { display: flex; align-items: center; gap: 25px; overflow-x: auto; border-bottom: 1px solid var(--sc-line); scrollbar-width: thin; }
.sales-channels-app .sc-tab { border-bottom: 2px solid transparent; color: #6c7d9d; display: inline-flex; align-items: center; flex: 0 0 auto; font-size: 13px; font-weight: 600; min-height: 42px; padding: 5px 0 11px; text-decoration: none; white-space: nowrap; }
.sales-channels-app .sc-tab:hover, .sales-channels-app .sc-tab.active { border-bottom-color: var(--sc-blue); color: var(--sc-blue); }
.sales-channels-app .card { border: 1px solid var(--sc-line); border-radius: 13px; box-shadow: 0 5px 22px rgba(29, 55, 104, .035); overflow: hidden; }
.sales-channels-app .card-header { border-bottom: 0; min-height: auto; padding: 21px 23px 13px; }
.sales-channels-app .card-body { padding: 21px 23px; }
.sales-channels-app .card-title { color: #142347; font-weight: var(--zs-weight-medium, 700); letter-spacing: -.025em; }
.sales-channels-app .sc-card-description { color: var(--sc-muted); font-size: var(--zs-font-xs, 12px); line-height: 1.45; margin: 0; }
.sales-channels-app .sc-metric .card-body { align-items: center; display: flex; gap: 17px; min-height: 91px; padding: 19px; }
.sales-channels-app .sc-metric-icon { align-items: center; border-radius: 15px; display: inline-flex; flex: 0 0 48px; height: 48px; justify-content: center; }
.sales-channels-app .sc-tone-primary { background: #eaf3ff; color: #1671ed; }
.sales-channels-app .sc-tone-success { background: #e5f8ec; color: #06a763; }
.sales-channels-app .sc-tone-warning { background: #fff5e1; color: #f2a500; }
.sales-channels-app .sc-tone-danger { background: #ffedf0; color: #e84053; }
.sales-channels-app .sc-metric strong { color: #122246; display: block; font-size: 23px; letter-spacing: -.035em; line-height: 1.15; }
.sales-channels-app .sc-metric .card-body > div span { color: var(--sc-muted); display: block; font-size: 12px; margin-top: 5px; }
.sales-channels-app .sc-data-note { align-items: center; color: #6780a5; display: flex; font-size: 11px; gap: 7px; }
.sales-channels-app .table-responsive { border: 0; border-radius: 0; }
.sales-channels-app .table { margin-bottom: 0; }
.sales-channels-app .table thead { background: transparent; }
.sales-channels-app .table th { color: var(--bs-gray-500, #a1a5b7); font-size: var(--zs-font-label, 11px); font-weight: 700; padding: 12px 14px; text-transform: uppercase; white-space: nowrap; }
.sales-channels-app .table td { border-color: var(--bs-gray-200, #eff2f5); color: var(--bs-gray-700, #5e6278); font-size: var(--zs-font-base, 12px); padding: 12px 14px; vertical-align: middle; }
.sales-channels-app .table th:first-child, .sales-channels-app .table td:first-child { padding-left: 0; }
.sales-channels-app .table th:last-child, .sales-channels-app .table td:last-child { padding-right: 0; text-align: right; }
.sales-channels-app .table tbody tr:hover { background: #fbfcff; }
.sales-channels-app .sc-channel-name { align-items: center; display: inline-flex; font-weight: 650; gap: 10px; white-space: nowrap; }
.sales-channels-app .sc-channel-mark { align-items: center; background: #edf4ff; border-radius: 10px; color: #176df2; display: inline-flex; flex: 0 0 31px; font-size: 15px; font-weight: 800; height: 31px; justify-content: center; }
.sales-channels-app .sc-channel-meta_catalog { background: #eaf2ff; color: #1474ee; }
.sales-channels-app .sc-channel-openai { background: #eef0f7; color: #253151; }
.sales-channels-app .sc-channel-microsoft { background: #fff2e7; color: #e05f2b; }
.sales-channels-app .badge { border-radius: 8px; font-size: var(--zs-font-xs, 10px); font-weight: 650; padding: 8px 10px; white-space: nowrap; }
.sales-channels-app .btn { border-radius: 8px; font-weight: var(--zs-weight-medium, 650); }
.sales-channels-app .btn-sm { font-size: var(--zs-font-label, 11px); padding: 8px 13px; }
.sales-channels-app .sc-guidance { background: linear-gradient(155deg, #f4f8ff, #f8faff 70%, #fff); }
.sales-channels-app .sc-guidance .card-body { padding: 24px; }
.sales-channels-app .sc-guidance-icon { align-items: center; background: #e6efff; border-radius: 13px; color: var(--sc-blue); display: inline-flex; height: 44px; justify-content: center; margin-bottom: 18px; width: 44px; }
.sales-channels-app .sc-guidance p, .sales-channels-app .sc-guidance li { color: #60769b; font-size: 12px; line-height: 1.55; }
.sales-channels-app .sc-guidance ul { margin: 16px 0 19px; padding-left: 18px; }
.sales-channels-app .sc-guidance li + li { margin-top: 8px; }
.sales-channels-app .sc-empty-state { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 143px; padding: 20px; text-align: center; }
.sales-channels-app .sc-empty-icon { align-items: center; background: #f0f5ff; border-radius: 50%; color: #6c93d0; display: inline-flex; height: 42px; justify-content: center; margin-bottom: 12px; width: 42px; }
.sales-channels-app .sc-empty-state strong { color: var(--sc-ink); font-size: 13px; }
.sales-channels-app .sc-empty-state p { color: var(--sc-muted); font-size: 11px; margin: 6px 0 0; max-width: 300px; }
.sales-channels-app .sc-eligibility-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.sales-channels-app .sc-eligibility-summary > div { background: #f7faff; border: 1px solid #e9effa; border-radius: 9px; padding: 12px; }
.sales-channels-app .sc-eligibility-summary strong { color: #1d335d; display: block; font-size: 19px; }
.sales-channels-app .sc-eligibility-summary span { color: var(--sc-muted); display: block; font-size: 10px; margin-top: 3px; }
.sales-channels-app .sc-result-count { background: #f1f6fd; border-radius: 999px; color: #58739b; font-size: 11px; font-weight: 650; padding: 7px 11px; white-space: nowrap; }
.sales-channels-app .sc-filter-bar { display: flex; gap: 10px; }
.sales-channels-app .sc-filter-bar .form-control { flex: 1 1 auto; }
.sales-channels-app .form-control, .sales-channels-app .form-select { border-color: #dfe7f2; border-radius: 8px; font-size: 12px; }
.sales-channels-app .form-control:focus, .sales-channels-app .form-select:focus { border-color: #87b5fa; box-shadow: 0 0 0 3px rgba(23, 109, 242, .1); }
.sales-channels-app .card-footer { background: var(--zosify-surface, #fff); border-top: 1px solid var(--sc-line); }
.sales-channels-app a:focus-visible, .sales-channels-app button:focus-visible { outline: 2px solid var(--sc-blue); outline-offset: 2px; }
@media (max-width: 767px) { .sales-channels-app .sc-heading-row { flex-direction: column; } .sales-channels-app .sc-tabs { gap: 18px; } .sales-channels-app .card-header, .sales-channels-app .card-body { padding-left: 17px; padding-right: 17px; } .sales-channels-app .sc-eligibility-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .sales-channels-app .sc-filter-bar { flex-direction: column; } .sales-channels-app .sc-result-count { display: none; } .sales-channels-app .sc-eligibility-summary { grid-template-columns: 1fr; } }

/* Facebook & Instagram Settings: state-aware layout, 2026-10-07. */
.meta-integration { min-width: 0; }
.meta-integration .card { border: 1px solid var(--bs-gray-200, var(--zosify-outline, #edf0f4)); }
.meta-integration-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; }
.meta-integration-heading > .btn { flex-shrink: 0; }
.meta-brand-pair { display: flex; gap: .65rem; flex-shrink: 0; }
.meta-brand-pair img { width: 42px; height: 42px; object-fit: contain; }
.meta-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 2rem; align-items: center; padding: 2rem; }
.meta-hero h2 { max-width: 30rem; font-size: var(--zs-font-section, 1.65rem); line-height: 1.3; }
.meta-benefits { display: grid; gap: .65rem; }
.meta-benefits li { display: flex; align-items: baseline; gap: .6rem; }
.meta-benefits li > span { color: var(--bs-primary); font-weight: 700; }
.meta-commerce-visual { display: flex; flex-direction: column; align-items: center; gap: 1rem; border-radius: 1rem; background: var(--zosify-accent-soft); padding: 1.8rem 1rem; text-align: center; }
.meta-catalog-symbol { display: grid; place-items: center; width: 64px; height: 64px; background: var(--bs-body-bg, #fff); border-radius: 1rem; }
.meta-visual-line { height: 22px; width: 1px; background: var(--bs-gray-400); }
.meta-visual-platforms { display: flex; gap: 1rem; }
.meta-visual-platforms > span { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem; background: var(--bs-body-bg, #fff); border-radius: .75rem; font-size: .85rem; }
.meta-visual-platforms img { width: 32px; height: 32px; object-fit: contain; }
.meta-requirements-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.meta-requirement { border: 1px solid var(--bs-gray-200); border-radius: .75rem; padding: 1rem; }
.meta-checklist li { display: flex; align-items: center; gap: .85rem; padding: .9rem 0; border-bottom: 1px dashed var(--bs-gray-200); }
.meta-checklist li:last-child { border-bottom: 0; }
.meta-step-number { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; border-radius: 50%; background: var(--bs-gray-100); color: var(--bs-gray-700); font-weight: 600; }
.meta-help-steps { display: grid; gap: .8rem; line-height: 1.6; }
.meta-status-list > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--bs-gray-200); }
.meta-status-list > div:last-child { border-bottom: 0; }
.meta-status-list dt { font-weight: 500; color: var(--bs-gray-700); }
.meta-status-list dd { margin: 0; text-align: right; }
.meta-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.meta-metrics > div { display: flex; flex-direction: column; gap: .3rem; padding: .8rem; background: var(--bs-gray-100); border-radius: .65rem; }
.meta-metrics strong { font-size: 1.6rem; color: var(--bs-gray-900); }
.meta-metrics span { font-size: .8rem; color: var(--bs-gray-600); }
.meta-empty { min-height: 130px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .8rem; color: var(--bs-gray-600); font-size: .9rem; }
.meta-activity { display: flex; gap: .8rem; }
.meta-integration .modal-body { overflow-wrap: anywhere; }
.meta-integration .modal-content { min-width: 0; }
@media (max-width: 991.98px) {
    .meta-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .meta-commerce-visual { display: none; }
    .meta-requirements-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .meta-integration-heading { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
    .meta-brand-pair { gap: .35rem; }
    .meta-brand-pair img { width: 28px; height: 28px; }
    .meta-hero-grid { padding: 1.5rem; }
    .meta-hero h2 { font-size: var(--zs-font-section, 1.4rem); }
    .meta-checklist li { flex-wrap: wrap; }
    .meta-checklist li > .min-w-0 { flex-basis: calc(100% - 45px); }
    .meta-checklist li > .badge { margin-left: 40px; }
    .meta-status-list > div { gap: .5rem; }
}
/* Settings > Domains, mockup alignment, 2026-10-07 */
.zs-domains { position: relative; max-width: none; padding-top: 0; padding-bottom: 35px; }
.zs-domains-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.zs-domains-layout.has-panel { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); }
.zs-domains-main { min-width: 0; }
.zs-domains header { margin-bottom: 28px !important; }
.zs-domains header a { display: inline-block; margin-bottom: 3px; font-size: 12px !important; text-decoration: none; }
.zs-domains header h1 { font-size: var(--zs-font-page, 34px) !important; line-height: 1.16; letter-spacing: -.035em; }
.zs-domains header p { color: #7282a2 !important; font-size: 15px !important; }
.zs-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.zs-domains .zs-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.zs-domains .zs-icon-small { width: 16px; height: 16px; stroke-width: 2; }
.zs-domains .card { border: 1px solid #e9edf5; border-radius: 15px; box-shadow: 0 5px 16px rgba(21, 44, 91, .055); }
.zs-domains .card-body { padding: 25px 28px 27px; }
.zs-domains-title { display: flex; align-items: center; gap: 13px; }
.zs-domains-title h2 { font-size: var(--zs-font-section, 18px) !important; }
.zs-domains-icon { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border-radius: 50%; color: #1874f5; background: #e9f3ff; }
.zs-domains .card-body > p { color: #7b8aab !important; font-size: 13px !important; }
.zs-domain-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 67px; padding: 10px 18px; border-radius: 10px; background: #f7f9fc; }
.zs-domain-hero-address { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 15px; }
.zs-domain-link-icon { width: 32px; height: 32px; display: inline-grid; place-items: center; color: #1874f5; background: #edf5ff; border-radius: 50%; }
.zs-domain-badges, .zs-domain-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zs-domains .badge { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 8px; font-size: var(--zs-font-xs, 11px); font-weight: 600; }
.zs-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.zs-domain-hero-actions { margin-left: auto; }
.zs-domains .btn-light { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--zosify-surface, #fff); border: 1px solid #dfe5ef; color: #14254b; box-shadow: 0 1px 2px rgba(18, 41, 88, .025); }
.zs-domains .btn-light:hover { background: #f5f8fd; border-color: #bfd1ef; }
.zs-domains .btn-sm { min-height: 36px; padding: 7px 11px; border-radius: 8px; font-size: var(--zs-font-label, 11px); font-weight: var(--zs-weight-medium, 600); white-space: nowrap; }
.zs-domains .btn-primary { background: #1976f9; border-color: #1976f9; color: #fff; }
.zs-domains .btn-primary:hover { background: #0868e8; }
.zs-domain-connect-form { display: flex; gap: 12px; }
.zs-domain-connect-form .form-control { flex: 1 1 auto; min-width: 0; min-height: 52px; border: 1px solid var(--zosify-outline, #dce4ef); border-radius: 10px; background: var(--zosify-surface, #fff); padding-inline: 17px; }
.zs-domain-connect-form .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 205px; min-height: 52px; border-radius: 10px; }
.zs-domain-connect-form input:disabled { background: #f7f9fc; opacity: .65; }
.zs-domain-connect-form button:disabled { background: #1976f9; border-color: #1976f9; color: #fff; opacity: .75; }
.zs-domain-rows { display: grid; gap: 0; }
.zs-domain-row { display: grid; grid-template-columns: minmax(175px, 1.05fr) minmax(165px, .9fr) auto; align-items: center; gap: 12px; min-height: 82px; padding: 13px 17px; border: 1px solid var(--zosify-outline, #e7ebf2); border-radius: 10px; }
.zs-domain-row + .zs-domain-row { margin-top: 2px; }
.zs-domain-row-pending { background: #f2f7ff; }
.zs-domain-row-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.zs-domain-row-icon { display: inline-flex; flex: 0 0 42px; height: 42px; align-items: center; justify-content: center; color: #8294b9; }
.zs-domain-row-icon .zs-icon { width: 25px; height: 25px; }
.zs-domain-row-identity strong { font-size: 13px; }
.zs-domain-row-state { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.zs-domain-row-state .badge { white-space: nowrap; }
.zs-domain-checked, .zs-domain-warning { flex-basis: 100%; font-size: 11px !important; line-height: 1.35; }
.zs-domain-warning { display: flex; align-items: center; gap: 5px; }
.zs-domain-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.zs-domain-row-actions .dropdown > .btn { min-width: 34px; font-size: var(--zs-font-label, 19px); line-height: 1; color: #7186ad; border-color: transparent; }
.zs-domain-panel[hidden] { display: none; }
.zs-domain-panel { min-width: 0; min-height: 610px; }
.zs-domain-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 28px 26px 20px; }
.zs-domain-panel-header h2 { font-size: var(--zs-font-section, 21px) !important; margin-bottom: 5px; }
.zs-domain-panel-header .btn-close { flex: 0 0 auto; }
.zs-domain-panel-body { padding: 16px 26px 30px; }
.zs-domain-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-bottom: 30px; position: relative; }
.zs-domain-step:not(:last-child):before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 5px; width: 1px; background: #dbe6f7; }
.zs-domain-step h3 { margin: 4px 0 8px; }
.zs-domain-step p { color: #7b8aab !important; }
.zs-domain-step-number { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #1976f9; color: #fff; font-weight: 700; }
.zs-domain-dns-table { border: 1px solid #e0e6f0; border-radius: 10px; overflow: hidden; font-size: 12px; }
.zs-domain-dns-head, .zs-domain-dns-record { display: grid; grid-template-columns: 65px 90px minmax(0, 1fr) 34px; align-items: center; gap: 7px; padding: 10px; }
.zs-domain-dns-head { background: #f6f8fc; color: #7483a4; }
.zs-domain-dns-record { border-top: 1px solid #e0e6f0; }
.zs-domain-panel #zs-drawer-check { min-width: 215px; min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.zs-domains button:focus-visible, .zs-domains a:focus-visible { outline: 2px solid #1976f9; outline-offset: 2px; }
@media (max-width: 1350px) { .zs-domains-layout.has-panel { grid-template-columns: minmax(0, 1fr) minmax(330px, 380px); } .zs-domain-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .zs-domain-row-actions { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 990px) { .zs-domains-layout.has-panel { grid-template-columns: minmax(0, 1fr); } .zs-domain-panel { min-height: 0; } }
@media (max-width: 640px) { .zs-domains .card-body { padding: 20px 17px; } .zs-domain-connect-form { flex-direction: column; } .zs-domain-connect-form .btn { flex-basis: auto; } .zs-domain-hero-actions { margin-left: 0; } .zs-domain-row { grid-template-columns: minmax(0, 1fr); } .zs-domain-row-actions { grid-column: 1; } .zs-domain-panel-header, .zs-domain-panel-body { padding-inline: 17px; } .zs-domain-dns-head, .zs-domain-dns-record { grid-template-columns: 48px 62px minmax(0, 1fr) 28px; gap: 4px; padding: 8px; font-size: 11px; } }

/* Payments settings: compact AdminV2 overview and operational controls. */
.zs-payments-page { font-size: 14px; }
.zs-payments-page .fs-8 { font-size: 12.5px !important; }
.zs-payments-page h2 { font-size: var(--zs-font-section, 18px); font-weight: var(--zs-weight-medium, 700); margin: 0 0 4px; }
.zs-payments-page h3 { font-size: var(--zs-font-section, 14px); font-weight: var(--zs-weight-medium, 700); margin: 0; }
.zs-payments-page .badge { font-size: var(--zs-font-xs, 12px); white-space: normal; }
.zs-payments-page .btn-sm { font-size: var(--zs-font-label, 13px); white-space: nowrap; }
.zs-payments-page .payment-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zs-payments-page .payment-overview-card,
.zs-payments-page .payment-panel { background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-border-color, #e9ebf1); border-radius: 12px; box-shadow: 0 2px 4px rgba(20, 30, 60, .03); }
.zs-payments-page .payment-overview-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.zs-payments-page .payment-overview-card:hover { border-color: var(--zosify-accent); }
.zs-payments-page .payment-section { margin-top: 24px; scroll-margin-top: 90px; }
.zs-payments-page .payment-section-description { font-size: var(--zs-font-xs, 12.5px); color: var(--bs-gray-500, #78829d); margin-bottom: 10px; }
.zs-payments-page .payment-panel { padding: 18px 22px; }
.zs-payments-page .payment-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--zosify-accent-soft); color: var(--zosify-accent); }
.zs-payments-page .payment-icon i { color: inherit; }
.zs-payments-page .payment-stripe-icon { background: #635bff; color: #fff; font-size: 30px; font-weight: 800; }
.zs-payments-page .payment-provider-header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; }
.zs-payments-page .payment-account-meta { display: flex; flex-wrap: wrap; gap: 20px; background: var(--bs-gray-100, #f9f9f9); padding: 10px 16px; border-radius: 10px; font-size: 12.5px; }
.zs-payments-page .payment-account-meta > div + div { border-left: 1px solid var(--bs-border-color, #e9ebf1); padding-left: 20px; }
.zs-payments-page .payment-health { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--bs-border-color, #e9ebf1); border-radius: 10px; padding: 10px 0; gap: 0; font-size: 12.5px; }
.zs-payments-page .payment-health > div { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.zs-payments-page .payment-health > div + div { border-left: 1px solid var(--bs-border-color, #e9ebf1); }
.zs-payments-page .payment-health strong { font-weight: 600; }
.zs-payments-page .payment-health small { display: block; font-size: var(--zs-font-xs, 12px); color: var(--bs-gray-500, #78829d); margin-top: 3px; overflow-wrap: anywhere; }
.zs-payments-page .payment-state-icon { font-size: 17px; font-weight: 700; flex-shrink: 0; }
.zs-payments-page .payment-checkout-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; margin-top: 10px; }
.zs-payments-page .form-switch { flex-shrink: 0; padding: 0; margin: 0; }
.zs-payments-page .form-switch .form-check-input { margin: 0; width: 42px; height: 24px; cursor: pointer; }
.zs-payments-page .payment-wallet-footer { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.zs-payments-page .payment-details summary { cursor: pointer; width: fit-content; padding: 6px 0; }
.zs-payments-page .payment-details[open] { border-top: 1px solid var(--bs-border-color, #e9ebf1); padding-top: 10px; }
.zs-payments-page .payment-manual-panel { padding: 0; }
.zs-payments-page .payment-manual-method + .payment-manual-method { border-top: 1px solid var(--bs-border-color, #e9ebf1); }
.zs-payments-page .payment-manual-row { display: flex; align-items: center; gap: 20px; padding: 12px 22px; }
.zs-payments-page .payment-manual-description { flex: 1; min-width: 0; }
.zs-payments-page .payment-roadmap { border-style: dashed; padding-top: 14px; padding-bottom: 14px; }
.zs-payments-page [aria-busy=true] { cursor: progress; }
.zs-payments-page :focus-visible { outline: 2px solid var(--zosify-accent); outline-offset: 3px; }
@media (max-width: 991.98px) {
    .zs-payments-page .payment-overview { grid-template-columns: 1fr; }
    .zs-payments-page .payment-account-meta { width: 100%; }
}
@media (max-width: 575.98px) {
    .zs-payments-page .payment-panel { padding: 16px; }
    .zs-payments-page .payment-health { grid-template-columns: 1fr; gap: 12px; }
    .zs-payments-page .payment-health > div + div { border-left: 0; }
    .zs-payments-page .payment-wallet-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
    .zs-payments-page .payment-manual-panel { padding: 0; }
    .zs-payments-page .payment-manual-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 12px; padding: 14px; }
    .zs-payments-page .payment-manual-row > .btn { grid-column: 2; grid-row: 2; justify-self: start; }
    .zs-payments-page .payment-manual-row > .form-switch { grid-column: 3; grid-row: 1; }
    .zs-payments-page .payment-account-meta > div + div { border: 0; padding-left: 0; }
}

/* Settings > Email & notifications: compact operational dashboard. */
.email-dashboard { --email-border: var(--bs-gray-200, #e9edf3); display: flex; flex-direction: column; gap: 18px; color: var(--bs-gray-900, #17233b); }
.email-dashboard .email-panel { background: var(--bs-body-bg, #fff); border: 1px solid var(--email-border); border-radius: 14px; padding: 20px; box-shadow: 0 2px 4px rgba(24, 39, 75, .035); min-width: 0; }
.email-page-header, .email-page-actions, .email-panel-heading, .email-activity-actions { display: flex; align-items: center; gap: 14px; }
.email-page-header { justify-content: space-between; flex-wrap: wrap; }
.email-page-actions { gap: 10px; flex-wrap: wrap; }
.email-dashboard .btn { white-space: nowrap; }
.email-health { display: grid; grid-template-columns: 1.5fr 1fr .8fr; align-items: center; gap: 22px; border: 1px solid var(--email-border); border-radius: 12px; padding: 20px 24px; }
.email-health-success { background: var(--bs-success-light, #edfcf4); border-color: #b3edd2; }
.email-health-warning { background: var(--bs-warning-light, #fff8e6); border-color: #f1d89b; }
.email-health-danger { background: var(--bs-danger-light, #fff1f2); border-color: #f6c2c7; }
.email-health-info { background: var(--bs-gray-100, #f5f7fa); }
.email-health > div + div { border-left: 1px solid rgba(99, 115, 137, .18); padding-left: 24px; }
.email-health-message { display: flex; gap: 16px; align-items: center; }
.email-health .badge { margin-top: 4px; }
.email-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; }
.email-icon i { font-size: 25px; color: inherit; }
.email-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.email-dashboard .email-metric { display: flex; align-items: center; gap: 16px; padding: 18px; text-decoration: none; }
.email-dashboard .email-metric-alert { border-color: #f2bac2; }
.email-metric-note { color: var(--bs-gray-600, #667085); font-size: 12px; margin: -6px 0 0; }
.email-dashboard .email-tabs { gap: 24px; margin: 0; padding: 0 18px; background: var(--bs-body-bg, #fff); border-radius: 12px 12px 0 0; }
.email-dashboard .email-tabs .nav-link { margin: 0; padding: 13px 0; font-weight: var(--zs-weight-medium, 600); }
.email-overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
.email-panel-heading { margin-bottom: 16px; flex-wrap: wrap; }
.email-dashboard h2, .email-dashboard h3 { color: var(--bs-gray-900, #17233b); }
.email-panel-heading h2 { font-size: var(--zs-font-section, 16px); font-weight: var(--zs-weight-medium, 700); margin: 0 0 4px; }
.email-panel-heading p, .email-row-copy p, .email-system-heading p { font-size: 13px; color: var(--bs-gray-700, #526079); line-height: 1.5; margin: 0; }
.email-heading-icon { color: var(--bs-primary, #006bff); font-size: 22px; }
.email-heading-icon i { color: inherit; }
.email-row-icon { display: inline-flex; flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px; align-items: center; justify-content: center; }
.email-row-icon i { font-size: 20px; color: inherit; }
.email-category-row { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--email-border); }
.email-row-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.email-row-copy h3, .email-system-heading h3 { font-size: var(--zs-font-section, 14px); font-weight: var(--zs-weight-medium, 700); margin: 0 0 3px; }
.email-category-row .btn { min-width: 64px; }
.email-category-row .badge, .email-config-row .badge { font-weight: 500; flex-shrink: 0; }
.email-system-heading { display: flex; align-items: center; gap: 14px; border-top: 1px dashed var(--email-border); margin-top: 16px; padding-top: 16px; }
.email-system-heading i { font-size: 20px; }
.email-category-note { font-size: 12px; color: var(--bs-gray-700, #526079); margin: 14px 0 0; }
.email-config-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--email-border); padding: 15px 0; text-decoration: none; }
.email-config-row:last-child { border-bottom: 0; }
.email-recent { margin-top: 16px; }
.email-activity-actions { margin-left: auto; flex-wrap: wrap; }
.email-filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.email-filter { border: 1px solid var(--email-border); border-radius: 30px; background: var(--bs-gray-100, #f4f6fa); color: var(--bs-gray-700, #526079); padding: 7px 16px; font-size: 12px; line-height: 1.4; }
.email-filter.active { background: var(--bs-primary, #006bff); border-color: var(--bs-primary, #006bff); color: #fff; }
.email-activity-table { font-size: 13px; min-width: 650px; }
.email-activity-table th { text-transform: uppercase; font-size: var(--zs-font-label, 12px); color: var(--bs-gray-700, #526079); font-weight: 600; }
.email-activity-table th, .email-activity-table td { padding: 9px 10px; border-bottom: 1px solid var(--email-border); }
.email-activity-table time { white-space: nowrap; }
.email-activity-table tbody tr:last-child td { border-bottom: 0; }
.email-issue { display: inline-block; vertical-align: top; margin-left: 8px; max-width: 260px; }
.email-issue summary { cursor: pointer; color: var(--bs-primary, #006bff); text-decoration: underline; }
.email-issue-body { white-space: normal; padding: 10px 0; color: var(--bs-gray-700, #526079); }
.email-pagination { display: flex; gap: 14px; align-items: center; justify-content: flex-end; padding-top: 16px; }
.email-dashboard a:focus-visible, .email-dashboard button:focus-visible, .email-dashboard summary:focus-visible { outline: 3px solid var(--bs-primary, #006bff); outline-offset: 3px; }
.email-dashboard a.email-panel:hover, .email-config-row:hover { border-color: var(--bs-primary, #006bff); }
.email-dashboard [hidden] { display: none !important; }
@media (max-width: 1199.98px) {
    .email-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .email-overview-grid { grid-template-columns: 1fr; }
    .email-health { grid-template-columns: 1fr 1fr; }
    .email-health-message { grid-column: 1 / -1; }
    .email-health > div:nth-child(2) { padding-left: 0; border-left: 0; }
}
@media (max-width: 575.98px) {
    .email-dashboard { gap: 14px; }
    .email-metrics, .email-health { grid-template-columns: 1fr; }
    .email-health > div + div { padding-left: 0; border-left: 0; }
    .email-dashboard .email-panel { padding: 16px; }
    .email-dashboard .email-tabs { gap: 18px; padding: 0 10px; }
    .email-category-row { flex-wrap: wrap; gap: 10px; }
    .email-category-row .email-row-copy { flex-basis: calc(100% - 50px); }
    .email-category-row .badge { margin-left: 48px; }
    .email-category-row .btn { margin-left: auto; }
    .email-config-row { flex-wrap: wrap; }
    .email-config-row .badge { margin-left: 50px; }
    .email-activity-actions { margin-left: 0; }
    .email-page-actions .btn { min-height: 42px; }
}

/* Native fragment navigation highlights the requested email preference. */
#email_sender_form .email-preference-row { padding: 10px; margin: -1px -10px; border: 1px solid transparent; border-radius: 10px; scroll-margin-top: 120px; }
#email_sender_form .email-preference-selected { display: none; }
#email_sender_form .email-preference-row:target { background: var(--zosify-accent-soft); border-color: var(--bs-primary, #006bff); outline: 2px solid var(--bs-primary, #006bff); outline-offset: 2px; }
#email_sender_form .email-preference-row:target .email-preference-selected { display: block; margin-top: 4px; }

/* Email dashboard clarity and readable secondary text. */
.email-dashboard .text-gray-600, .email-dashboard .text-muted { color: var(--bs-gray-700, #526079) !important; }
.email-dashboard .fs-8, .email-dashboard .badge { font-size: 12px !important; }
.email-dashboard .badge-light-secondary { color: var(--bs-gray-700, #526079); }
.email-dashboard .text-success, .email-dashboard .badge-light-success { color: #087845 !important; }
.email-dashboard .text-warning, .email-dashboard .badge-light-warning { color: #8a5800 !important; }
.email-metric-note summary { cursor: pointer; color: var(--bs-gray-700, #526079); }
.email-metric-note p { margin: 8px 0 0; max-width: 850px; line-height: 1.5; }
.email-preference-group + .email-preference-group { border-top: 1px solid var(--email-border); margin-top: 16px; padding-top: 16px; }
.email-group-label { font-size: var(--zs-font-label, 12px); font-weight: var(--zs-weight-medium, 600); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.email-preference-group .email-category-row { border-bottom: 0; }
.email-dashboard .email-config-row .badge { display: inline-block; white-space: normal; margin: 6px 0 0; }
.email-dashboard .email-tabs { flex-wrap: wrap; }

/* Tax settings summary / inline editor (2026-10-08). */
.tax-settings-card .tax-settings-summary-grid,
.tax-settings-card #tax-settings-summary,
.tax-settings-card #tax-settings-subtitle { font-size: 14px; line-height: 1.5; }
.tax-settings-card .tax-settings-mode { animation: tax-settings-enter 180ms ease-out; }
@keyframes tax-settings-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .tax-settings-card .tax-settings-mode { animation: none; }
}

/* Legal Documents settings: scoped overview layout (2026-10-08). */
.legal-documents .card { border: 1px solid var(--bs-gray-200); border-radius: 1rem; }
.legal-documents .legal-setup { background: var(--bs-primary-light, #f1f7ff); }
.legal-setup-layout, .legal-template-layout { display: flex; align-items: center; gap: 2rem; padding: 1.75rem; }
.legal-setup-copy { flex: 1; min-width: 0; }
.legal-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: .85rem; flex-shrink: 0; }
.legal-setup-layout > .legal-icon { width: 4.5rem; height: 4.5rem; }
.legal-progress { display: block; appearance: none; border: 0; border-radius: 1rem; height: .65rem; width: 100%; overflow: hidden; background: var(--bs-gray-200); accent-color: var(--bs-primary); }
.legal-progress::-webkit-progress-bar { background: var(--bs-gray-200); }
.legal-progress::-webkit-progress-value { background: var(--bs-primary); border-radius: 1rem; }
.legal-progress::-moz-progress-bar { background: var(--bs-primary); border-radius: 1rem; }
.legal-list-body { padding: 1.5rem; }
.legal-policy-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 10rem 15rem; align-items: center; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--bs-gray-200); }
.legal-policy-row:last-child { padding-bottom: 0; }
.legal-policy-copy { min-width: 0; overflow-wrap: anywhere; }
.legal-policy-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.legal-policy-actions > .btn { flex: 1; }
.legal-documents .btn { min-height: 44px; }
.legal-documents .badge { white-space: normal; line-height: 1.4; }
.legal-documents :is(a, button, summary):focus-visible, .doc-template-option:focus-visible { outline: 3px solid var(--bs-primary); outline-offset: 3px; }
.legal-manual-documents summary { cursor: pointer; padding: .75rem; width: fit-content; }
@media (max-width: 1199.98px) {
    .legal-policy-row { grid-template-columns: 3.5rem minmax(0, 1fr) 9rem; gap: 1rem; }
    .legal-policy-actions { grid-column: 2 / 4; justify-self: end; }
    .legal-setup-layout, .legal-template-layout { gap: 1.25rem; padding: 1.5rem; flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
    .legal-setup-layout { align-items: flex-start; }
    .legal-setup-copy { flex-basis: calc(100% - 6rem); }
    .legal-setup-layout > .btn, .legal-template-layout > .btn { width: 100%; }
    .legal-list-body { padding: 1.25rem; }
    .legal-policy-row { grid-template-columns: 3rem minmax(0, 1fr); }
    .legal-policy-row .legal-icon { width: 3rem; height: 3rem; }
    .legal-policy-status { grid-column: 2; }
    .legal-policy-actions { grid-column: 1 / -1; width: 100%; }
    .legal-template-layout { align-items: flex-start; }
    .legal-template-layout > .flex-grow-1 { flex-basis: calc(100% - 5rem); min-width: 0; }
}

/* Settings homepage — scoped navigation refresh, 2026-10-08. */
.settings-home { --settings-accent: var(--zosify-accent); --settings-text: var(--bs-gray-900, #101a38); --settings-muted: var(--bs-gray-600, #626e85); container-type: inline-size; padding: 4px 0 16px; }
.settings-home svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.settings-home h1, .settings-home h2, .settings-home h3 { color: var(--settings-text); }
.settings-home p { color: var(--settings-muted); margin: 0; font-size: 14px; line-height: 1.55; }
.settings-home__toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 30px; }
.settings-home__toolbar > div:first-child { min-width: 0; }
.settings-home__eyebrow { color: var(--settings-accent); font-size: var(--zs-font-label, 12px); font-weight: var(--zs-weight-medium, 700); text-transform: uppercase; margin-bottom: 7px; }
.settings-home h1 { font-size: var(--zs-font-page, 34px); font-weight: var(--zs-weight-medium, 700); margin: 0 0 8px; letter-spacing: -.7px; }
.settings-home__toolbar p { font-size: 15px; }
.settings-home__search { position: relative; flex: 0 1 370px; min-width: 240px; margin-top: 10px; }
.settings-home__search svg { position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; color: var(--settings-muted); }
.settings-home__search .form-control { padding: 10px 14px 10px 42px; min-height: 42px; border: 1px solid var(--bs-gray-300, #dce2ed); border-radius: 10px; font-size: 14px; background: var(--bs-body-bg, #fff); }
.settings-home__setup { display: flex; align-items: center; gap: 22px; padding: 20px 24px; margin-bottom: 30px; border: 1px solid #ffdfcc; border-radius: 13px; background: rgba(255, 142, 67, .035); }
.settings-home__setup-icon { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 50%; background: #ffe1d0; color: #b83f00; font-size: 24px; font-weight: 700; }
.settings-home__setup-copy { flex: 1; }
.settings-home__setup h2 { font-size: var(--zs-font-section, 16px); font-weight: var(--zs-weight-medium, 650); margin: 0 0 5px; }
.settings-home__setup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.settings-home__setup-actions .btn { padding: 11px 18px !important; border-radius: 10px; font-size: var(--zs-font-label, 14px); font-weight: var(--zs-weight-medium, 600); white-space: nowrap; }
.settings-home .settings-home__primary { background: var(--settings-accent); color: #fff; border: 1px solid var(--settings-accent); }
.settings-home .settings-home__primary:hover { background: var(--zosify-accent-hover); color: #fff; }
.settings-home .settings-home__secondary { background: var(--bs-body-bg, #fff); color: var(--settings-accent); border: 1px solid var(--bs-gray-300, #dce2ed); }
.settings-home .settings-home__secondary:hover { border-color: var(--settings-accent); }
.settings-home__section { margin-bottom: 30px; }
.settings-home__section:last-child { margin-bottom: 0; }
.settings-home__section-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.settings-home__section-heading > svg { color: var(--settings-accent); width: 28px; height: 28px; margin-top: 2px; }
.settings-home__section-heading h2 { font-size: var(--zs-font-section, 20px); font-weight: var(--zs-weight-medium, 700); margin: 0 0 3px; letter-spacing: -.3px; }
.settings-home__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.settings-home__card { display: flex; align-items: flex-start; gap: 16px; height: 100%; min-width: 0; padding: 20px 18px; text-decoration: none; border: 1px solid var(--bs-gray-200, #e9edf4); border-radius: 13px; background: var(--bs-body-bg, #fff); box-shadow: 0 3px 10px rgba(20, 35, 60, .035); transition: border-color .15s, box-shadow .15s; }
.settings-home__card:hover { border-color: var(--zosify-accent); box-shadow: 0 5px 16px rgba(23, 32, 51, .08); }
.settings-home a:focus-visible, .settings-home input:focus-visible { outline: 3px solid var(--settings-accent); outline-offset: 3px; }
.settings-home__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; }
.settings-home__icon--blue { background: #e3f3ff; color: #0066ff; }
.settings-home__icon--purple { background: #f0e6ff; color: #7128e8; }
.settings-home__icon--green { background: #dcfced; color: #008b56; }
.settings-home__icon--pink { background: #ffe6ee; color: #ed2763; }
.settings-home__icon--gold { background: #fff4d9; color: #aa7100; }
.settings-home__card-copy { min-width: 0; flex: 1; }
.settings-home__card h3 { font-size: var(--zs-font-section, 15px); font-weight: var(--zs-weight-medium, 650); line-height: 1.4; margin: 6px 0 8px; }
.settings-home__card p { overflow-wrap: anywhere; }
.settings-home svg.settings-home__chevron { width: 15px; height: 18px; color: var(--settings-muted); margin-top: 7px; }
.settings-home__recovery { margin-top: 12px; }
.settings-home__card--compact { align-items: center; padding: 12px 18px; }
.settings-home__card--compact .settings-home__icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
.settings-home__card--compact h3 { margin: 0 0 3px; }
.settings-home__card--compact .settings-home__chevron { margin-top: 0; }
.settings-home__empty { text-align: center; padding: 40px 16px; }
.settings-home [hidden] { display: none !important; }
@container (max-width: 1239px) {
    .settings-home__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .settings-home__setup { flex-wrap: wrap; }
    .settings-home__setup-actions { margin-left: 74px; }
    .settings-home__toolbar { flex-wrap: wrap; }
    .settings-home__search { flex-basis: 420px; margin-top: 0; }
}
@container (max-width: 959px) {
    .settings-home__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 599px) {
    .settings-home__grid { grid-template-columns: minmax(0, 1fr); }
    .settings-home__toolbar { gap: 16px; margin-bottom: 22px; }
    .settings-home__search { flex-basis: 100%; min-width: 0; }
    .settings-home h1 { font-size: var(--zs-font-page, 28px); }
    .settings-home__setup { padding: 18px; gap: 14px; }
    .settings-home__setup-icon { flex-basis: 38px; height: 38px; }
    .settings-home__setup-copy { flex-basis: calc(100% - 52px); }
    .settings-home__setup-actions { margin-left: 0; width: 100%; }
    .settings-home__setup-actions .btn { flex: 1; }
    .settings-home__section-heading { gap: 12px; }
    .settings-home__section-heading h2 { font-size: var(--zs-font-section, 18px); }
}
@media (prefers-reduced-motion: reduce) {
    .settings-home__card { transition: none; }
}

/* Messages homepage, 2026-10-08: retain the portal default container width. */
.messages-home { container-type: inline-size; --mh-muted: var(--bs-gray-600, #66738c); --mh-ink: var(--bs-gray-900, #10203c); }
.messages-home svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.messages-home h1, .messages-home h2, .messages-home h3 { color: var(--mh-ink); font-weight: 700; }
.messages-home h1 { font-size: var(--zs-font-page, 32px); margin: 5px 0; letter-spacing: -.5px; }
.messages-home h2 { font-size: var(--zs-font-section, 19px); margin: 0; }
.messages-home h3 { font-size: var(--zs-font-section, 15px); margin: 12px 0 4px; }
.messages-home p { color: var(--mh-muted); font-size: 14px; line-height: 1.5; margin: 0; }
.messages-home__header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.messages-home__eyebrow { text-transform: uppercase; color: var(--zosify-accent); font-size: var(--zs-font-label, 12px); font-weight: var(--zs-weight-medium, 600); }
.messages-home__actions { display: flex; gap: 12px; flex-shrink: 0; }
.messages-home .btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border-radius: 10px; padding: 11px 18px !important; font-size: var(--zs-font-label, 14px); }
.messages-home .btn svg { width: 18px; height: 18px; }
.messages-home .btn-primary { background: var(--zosify-accent); border: 1px solid var(--zosify-accent); color: #fff; }
.messages-home .btn-primary:hover { background: var(--zosify-accent-hover); }
.messages-home .btn-light { background: var(--bs-body-bg, #fff); border: 1px solid var(--bs-gray-300, #dfe5ee); color: var(--mh-ink); }
.messages-home a:focus-visible, .messages-home button:focus-visible, .messages-home [role="tabpanel"]:focus-visible { outline: 3px solid var(--zosify-accent); outline-offset: 3px; }
.messages-home__metrics, .messages-home__channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.messages-home__metrics { margin-bottom: 20px; }
.messages-home__metric { display: flex; align-items: flex-start; gap: 18px; padding: 20px; border: 1px solid var(--bs-gray-200, #e8edf4); background: var(--bs-body-bg, #fff); border-radius: 14px; box-shadow: 0 3px 8px rgba(30, 45, 70, .035); text-decoration: none; }
.messages-home a.messages-home__metric:hover { border-color: var(--zosify-accent); }
.messages-home__metric-label { display: block; font-size: var(--zs-font-label, 14px); font-weight: var(--zs-weight-medium, 600); color: var(--mh-muted); margin: 6px 0; }
.messages-home__metric strong { display: block; font-size: var(--zs-font-summary, 29px); line-height: 1.15; color: var(--mh-ink); margin-bottom: 6px; }
.messages-home__metric p { font-size: 13px; }
.messages-home__icon { display: inline-grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 15px; }
.messages-home__icon--blue { background: #e4f2ff; color: #0066ff; }
.messages-home__icon--green { background: #ddfbed; color: #008c53; }
.messages-home__icon--pink { background: #ffe9ee; color: #e83055; }
.messages-home__icon--gold { background: #fff5dd; color: #a87200; }
.messages-home__icon--purple { background: #f0e7ff; color: #7733cf; }
.messages-home__panel { border: 1px solid var(--bs-gray-200, #e8edf4); border-radius: 14px; background: var(--bs-body-bg, #fff); padding: 22px; margin-bottom: 18px; box-shadow: 0 3px 8px rgba(30, 45, 70, .035); }
.messages-home__panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.messages-home__panel-heading p { margin-top: 4px; }
.messages-home__panel-heading > a { display: inline-flex; gap: 10px; align-items: center; color: var(--zosify-accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.messages-home__panel-heading > a svg { width: 17px; height: 17px; }
.messages-home__tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.messages-home__tabs button { border: 0; border-radius: 8px; background: transparent; color: var(--mh-muted); font-size: 13px; font-weight: 600; padding: 8px 12px; }
.messages-home__tabs button[aria-selected="true"] { background: var(--zosify-accent-soft); color: var(--zosify-accent-hover); }
.messages-home [hidden] { display: none !important; }
.messages-home__table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; color: var(--mh-muted); }
.messages-home__table th { font-weight: 600; font-size: var(--zs-font-label, 12px); background: var(--bs-gray-100, #f7f9fb); padding: 9px 10px; text-align: left; }
.messages-home__table th:nth-child(1) { width: 21%; }
.messages-home__table th:nth-child(2) { width: 15%; }
.messages-home__table th:nth-child(3) { width: 29%; }
.messages-home__table th:nth-child(4) { width: 13%; }
.messages-home__table th:nth-child(5) { width: 10%; }
.messages-home__table th:nth-child(6) { width: 12%; }
.messages-home__table td { padding: 12px 10px; border-bottom: 1px solid var(--bs-gray-200, #edf0f6); vertical-align: middle; }
.messages-home__table tr:last-child td { border-bottom: 0; }
.messages-home__table td a { display: block; color: var(--mh-ink); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.messages-home__table td a:hover { color: var(--zosify-accent); text-decoration: underline; }
.messages-home__customer { display: flex; align-items: center; gap: 10px; }
.messages-home__customer > div { min-width: 0; }
.messages-home__avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #eaf3ff; color: #005bd5; font-weight: 700; text-transform: uppercase; }
.messages-home__subtext { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--zs-font-xs, 12px); margin-top: 3px; }
.messages-home__channel-label { display: flex; gap: 8px; align-items: center; font-size: var(--zs-font-label, 12px); color: var(--mh-ink); }
.messages-home__channel-label svg { width: 18px; height: 18px; color: #0066ff; }
.messages-home__badge { display: inline-block; border-radius: 20px; padding: 4px 9px; background: var(--bs-gray-100, #f3f5f8); color: var(--mh-muted); font-size: var(--zs-font-xs, 12px); white-space: nowrap; }
.messages-home__badge--open { background: #dffbed; color: #087744; }
.messages-home__badge--pending, .messages-home__badge--normal { background: #fff3d8; color: #906000; }
.messages-home__badge--urgent, .messages-home__badge--high { background: #ffe8ec; color: #c72044; }
.messages-home__badge--low { background: #eaf3ff; color: #005bd5; }
.messages-home__reply { display: block; font-size: 11px; color: #005bd5; margin-top: 4px; }
.messages-home__channel-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--bs-gray-200, #e8edf4); border-radius: 12px; }
.messages-home__channel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.messages-home__channel-card .messages-home__icon { width: 44px; height: 44px; flex-basis: 44px; }
.messages-home__channel-card p { font-size: 13px; margin-bottom: 14px; }
.messages-home__channel-card .btn, .messages-home__unavailable { margin-top: auto; font-size: 13px; }
.messages-home__unavailable { display: block; text-align: center; border: 1px solid var(--bs-gray-200, #edf0f6); padding: 11px 8px; border-radius: 10px; color: var(--mh-muted); }
.messages-home__empty { text-align: center; padding: 30px 16px; color: var(--zosify-accent); }
@container (max-width: 1040px) {
 .messages-home__metrics, .messages-home__channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .messages-home__header { flex-wrap: wrap; }
}
@container (max-width: 760px) {
 .messages-home__table, .messages-home__table tbody { display: block; }
 .messages-home__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .messages-home__table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--bs-gray-200, #edf0f6); }
 .messages-home__table tr:last-child { border-bottom: 0; }
 .messages-home__table td { display: block; border: 0; padding: 0; min-width: 0; }
 .messages-home__table td::before { content: attr(data-label); display: block; font-size: var(--zs-font-base, 11px); margin-bottom: 4px; }
 .messages-home__table td:first-child, .messages-home__table td:nth-child(3) { grid-column: 1 / -1; }
 .messages-home__table td:nth-child(2) { grid-row: 3; }
 .messages-home__table td:nth-child(3) { grid-row: 2; }
 .messages-home__table td a, .messages-home__subject .messages-home__subtext { white-space: normal; overflow-wrap: anywhere; }
 .messages-home__panel-heading { align-items: flex-start; flex-wrap: wrap; }
}
@container (max-width: 460px) {
 .messages-home__metrics, .messages-home__channels { grid-template-columns: minmax(0, 1fr); gap: 12px; }
 .messages-home__panel { padding: 16px; }
 .messages-home__actions { flex-wrap: wrap; }
 .messages-home h1 { font-size: var(--zs-font-page, 28px); }
}
/* Customer workspace: scoped AdminV2 layout, 2026-10-08. */
.customer-segments-workspace .customer-segment-card > .card-body { padding: 16px 16px 10px; }
.customer-segments-workspace .customer-segment-card > .card-footer { padding: 0 16px 16px; }
.customer-segment-card .symbol-label { border-radius: 14px; }
.customer-segment-card h3, .customer-segment-card p { overflow-wrap: anywhere; }
.customer-workspace { max-width: 1440px; margin-inline: auto; width: 100%; }
.customer-workspace .card { border: 1px solid var(--bs-gray-200); border-radius: 14px; }
.customer-workspace .card-header { min-height: 64px; gap: 12px; align-items: center; }
.customer-workspace .text-gray-500 { color: var(--bs-gray-600) !important; }
.customer-workspace .fs-8 { font-size: .85rem !important; }
.customer-workspace .customer-caption { color: var(--bs-gray-600); font-size: .85rem; margin-bottom: 4px; }
.customer-workspace .customer-wrap, .customer-note-text { overflow-wrap: anywhere; }
.customer-note-text { white-space: pre-wrap; }
.customer-workspace summary { cursor: pointer; }
.customer-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.customer-main { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.customer-contact { grid-column: 1; grid-row: 1; min-width: 0; }
.customer-extras { grid-column: 1; grid-row: 2; min-width: 0; }
.customer-extras .card { margin-bottom: 0 !important; }
.customer-list-workspace .customer-search { flex: 1 1 260px; max-width: 440px; }
.customer-count-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0; padding: 14px 22px; border: 1px solid var(--bs-gray-200); border-radius: 14px; background: var(--bs-body-bg, #fff); }
.customer-count-item { display: flex; align-items: baseline; gap: 12px; }
.customer-count-item dt { font-size: 1rem; font-weight: 400; color: var(--bs-gray-600); }
.customer-count-item dd { margin: 0; font-size: 1rem; font-weight: 700; color: var(--bs-gray-900); }
.customer-list-workspace .mzh_lg_datatable_pagination:not(:empty) { padding-top: 16px; }
@media (max-width: 575.98px) {
    .customer-count-bar { gap: 12px 20px; padding: 12px 16px; }
    .customer-count-item { flex: 1 1 180px; justify-content: space-between; }
}
.customer-list-workspace #mzh_lg_datatable_container { height: auto !important; min-height: 0 !important; }
.customer-list-workspace .fixed-table-container { min-height: 0 !important; height: auto !important; padding-bottom: 0 !important; }
.customer-list-workspace tr[data-customer-row] { cursor: pointer; }
.customer-list-workspace tr[data-customer-row]:hover { background: var(--bs-light-primary); }
.customer-list-workspace .customer-profile-link:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 3px; }
@media (max-width: 991.98px) {
    .customer-profile-grid { display: flex; flex-direction: column; }
    .customer-profile-grid > * { width: 100%; }
    .customer-contact { order: 0; }
    .customer-main { order: 1; }
    .customer-extras { order: 2; }
    .customer-list-workspace .customer-search { max-width: none; }
    .customer-list-workspace .card-toolbar { width: 100% !important; justify-content: flex-start !important; }
}

/* Collection editor refinement, 2026-10-09. */
.collection-editor .collection-product-image { object-fit: cover; }
.collection-editor .note-editor .note-editable { min-height: 100px; max-height: 260px; overflow-y: auto; }
.collection-editor .collection-product-row:last-child { border-bottom: 0 !important; }
.collection-editor input[readonly] { cursor: default; color: var(--bs-gray-600); }
.collection-editor .collection-seo-details summary { width: fit-content; }

/* Dropify's minified animation name collides with the compat bundle spinner.
   Keep the collection upload target stationary and its prompt independent of
   the plugin's 50px file-icon span (which can contain the message paragraph). */
.collection-editor .dropify-wrapper,
.collection-editor .dropify-wrapper:hover {
    animation: none;
    transform: none;
    background-image: none;
    border: 1px dashed var(--bs-gray-300, #d8dce5);
    border-radius: 8px;
    font-family: inherit;
}
.collection-editor .dropify-wrapper:hover,
.collection-editor .dropify-wrapper:focus-within {
    border-color: var(--bs-primary, #006aff);
    background-color: var(--bs-gray-100, var(--zosify-surface-subtle, #f8f9fb));
}
.collection-editor .dropify-wrapper .dropify-message span.file-icon {
    display: block;
    font-size: 28px;
    color: var(--bs-gray-600, #626b7a);
}
.collection-editor .dropify-wrapper .dropify-message span.file-icon::before {
    content: "\2191";
    display: block;
    width: auto;
    margin: 0 auto 10px;
    font-family: sans-serif;
    font-size: 28px;
    line-height: 1;
}
.collection-editor .dropify-wrapper .dropify-message p {
    margin: 0;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

/* Brand details workspace — 2026-10-09. */
.brand-workspace .brand-help { color: var(--bs-gray-700, #5e6278); font-size: .9rem; font-weight: 400; }
.brand-workspace .card-title { margin-block: 18px; }
.brand-workspace .brand-visibility-option { cursor: pointer; }
.brand-workspace .brand-visibility-option.is-selected { border-color: var(--bs-primary) !important; background: var(--zosify-accent-soft); }
.brand-workspace .brand-logo-preview { display: block; width: 100%; height: 160px; object-fit: contain; }
.brand-workspace .brand-logo-dropzone { min-height: 180px; background: var(--bs-gray-100, #f5f8fa); }
.brand-workspace .brand-assigned-search { flex-basis: 220px; width: auto; }
.brand-workspace .brand-product-filter, .brand-workspace .brand-product-sort { width: auto; max-width: 150px; }
.brand-workspace .brand-product-table { min-width: 520px; }
.brand-workspace .brand-product-table td { padding-block: 10px; }
.brand-workspace .brand-product-table td:first-child { min-width: 180px; }
.brand-workspace .brand-product-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--bs-gray-100); border-radius: 6px; margin-right: 9px; }
.brand-workspace .note-editor.note-frame { border-color: var(--bs-gray-300); }
.brand-workspace .note-toolbar { background: var(--bs-gray-100); }
.parent-product-picker .common-product-picker-type-group,
.parent-product-picker .common-product-picker-head,
.parent-product-picker .common-product-picker-available,
.parent-product-picker .is-variant { display: none !important; }
.parent-product-picker .common-product-picker-row { grid-template-columns: 24px 40px minmax(0, 1fr) auto; }


/* Product Reviews moderation inbox — 2026-10-09. */
.z-product-reviews .z-review-search { flex: 1 1 280px; min-width: 200px; }
.z-product-reviews [data-review-filters] > .form-select { width: auto; min-width: 125px; }
.z-product-reviews .nav-tabs { overflow-x: auto; max-width: 100%; white-space: nowrap; }
.z-product-reviews .z-review-card { border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.z-product-reviews .z-review-card:hover { border-color: var(--bs-primary) !important; }
.z-product-reviews .z-review-card:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 3px; }
.z-product-reviews .z-review-card.border-primary { box-shadow: 0 0 0 1px var(--bs-primary); }
.z-product-reviews .z-review-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.z-product-reviews .z-review-card-actions .btn { padding: .5rem .9rem; }
#zProductReviewDrawer { width: min(440px, 100vw); }
#zProductReviewDrawer .offcanvas-header { flex-shrink: 0; }
#zProductReviewDrawerBody { min-height: 0; overflow-y: auto; overflow-wrap: anywhere; }
#zProductReviewDrawer .z-review-drawer-actions { flex-shrink: 0; border-top: 1px solid var(--bs-gray-200); background: var(--bs-body-bg, #fff); padding-bottom: max(1.25rem, env(safe-area-inset-bottom)) !important; }
#zProductReviewDrawer .z-review-ai-assist { background: var(--bs-primary-light, #f1efff); }
#zProductReviewDrawer summary { cursor: pointer; }
@media (max-width: 575.98px) {
  .z-product-reviews .z-review-search { flex-basis: 100%; }
  .z-product-reviews .z-review-card .symbol img, .z-product-reviews .z-review-card .symbol-label { width: 48px; height: 48px; }
  .z-product-reviews .z-review-card-actions { justify-content: flex-start !important; }
  .z-product-reviews > .card > .card-body { padding: 1rem; }
}

/* Customer segment details — scoped AdminV2 presentation, 2026-10-18. */
.customer-segment-detail .segment-detail-header { padding: .25rem 0 .5rem; }
.customer-segment-detail .segment-breadcrumb { display:flex; align-items:center; gap:.6rem; color:var(--bs-gray-600); }
.customer-segment-detail .segment-breadcrumb a { color:inherit; }
.customer-segment-detail .segment-breadcrumb a:hover { color:var(--bs-primary); }
.customer-segment-detail .segment-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:1.25rem 1.5rem; gap:1.25rem; background:var(--bs-body-bg); border:1px solid var(--bs-gray-200); border-radius:.75rem; }
.customer-segment-detail .segment-overview > div + div { border-left:1px solid var(--bs-gray-200); padding-left:1.25rem; }
.customer-segment-detail .segment-overview dt { color:var(--bs-gray-700); font-size:.8rem; font-weight:500; }
.customer-segment-detail .segment-overview dd { font-size:1.65rem; line-height:1.25; font-weight:600; margin:.4rem 0 .2rem; color:var(--bs-gray-900); font-variant-numeric:tabular-nums; }
.customer-segment-detail .segment-overview small,.customer-segment-detail .segment-about dd { color:var(--bs-gray-600); }
.customer-segment-detail .segment-detail-tabs { flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; }
.customer-segment-detail .segment-detail-tabs .nav-link { white-space:nowrap; padding:.85rem 1rem; }
.customer-segment-detail .segment-overview-panels .card { border:1px solid var(--bs-gray-200); }
.customer-segment-detail .segment-condition-meta { display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; border-top:1px solid var(--bs-gray-200); padding-top:1rem; margin-top:1.25rem; }
.customer-segment-detail .segment-resource-links { display:grid; gap:.25rem; }
.customer-segment-detail .segment-resource-links a { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:1rem; padding:.75rem .9rem; border:1px solid var(--bs-gray-200); border-radius:.5rem; color:var(--bs-gray-800); }
.customer-segment-detail .segment-resource-links a:hover,.customer-segment-detail .segment-resource-links a:focus-visible { border-color:var(--bs-primary); color:var(--bs-primary); }
.customer-segment-detail .segment-resource-links strong { font-variant-numeric:tabular-nums; }
.customer-segment-detail .segment-resource-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.customer-segment-detail .segment-resource-card { display:flex; flex-direction:column; min-width:0; padding:1.1rem 1.25rem; border:1px solid var(--bs-gray-200); border-radius:.65rem; background:var(--bs-body-bg); }
.customer-segment-detail .segment-resource-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:.75rem; }
.customer-segment-detail .segment-resource-card-head .badge { flex-shrink:0; }
.customer-segment-detail .segment-resource-value { font-size:1.2rem; line-height:1.3; font-weight:600; color:var(--bs-gray-900); margin:.8rem 0; }
.customer-segment-detail .segment-resource-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem 1rem; margin:.85rem 0 1rem; }
.customer-segment-detail .segment-resource-meta dt { color:var(--bs-gray-600); font-size:.75rem; font-weight:500; }
.customer-segment-detail .segment-resource-meta dd { color:var(--bs-gray-800); font-size:.85rem; margin:.15rem 0 0; overflow-wrap:anywhere; }
.customer-segment-detail .segment-resource-action { align-self:flex-start; margin-top:auto; font-size:.85rem; font-weight:600; }
.customer-segment-detail .segment-empty-state { padding:1.5rem; border:1px dashed var(--bs-gray-300); border-radius:.65rem; background:var(--bs-gray-100); }
.customer-segment-detail .segment-about dt { font-weight:600; margin-bottom:4px; }
.customer-segment-detail .segment-about dd { margin-bottom:20px; line-height:1.6; }
.customer-segment-detail .segment-customer-scroll { overflow-x:auto; }
.customer-segment-detail .segment-customer-table { min-width:940px; }
.customer-segment-detail .segment-customer-table th,.customer-segment-detail .segment-customer-table td { padding-inline:.75rem; }
.customer-segment-detail .segment-customer-table td:first-child { min-width:210px; }
.customer-segment-detail .segment-numeric { font-variant-numeric:tabular-nums; }
.customer-segment-detail .segment-email { overflow-wrap:anywhere; }
.customer-segment-detail .segment-geo-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin:0 0 1.5rem; }
.customer-segment-detail .segment-geo-summary > div { padding:1rem; border:1px solid var(--bs-gray-200); border-radius:.6rem; }
.customer-segment-detail .segment-geo-summary dt { color:var(--bs-gray-600); font-size:.8rem; font-weight:500; }
.customer-segment-detail .segment-geo-summary dd { color:var(--bs-gray-900); font-size:1.35rem; font-weight:600; margin:.25rem 0 0; font-variant-numeric:tabular-nums; }
.customer-segment-detail .segment-geo-coverage { max-width:620px; margin-bottom:1.5rem; }
.customer-segment-detail .segment-geo-bar { min-width:90px; height:8px; }
.customer-segment-detail .segment-geo-table table { min-width:650px; }
.customer-segment-detail .segment-geo-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem 1rem; }
@media(max-width:1199.98px) { .customer-segment-detail .segment-resource-grid { grid-template-columns:1fr; } }
@media(max-width:991.98px) { .customer-segment-detail .segment-overview,.customer-segment-detail .segment-geo-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } .customer-segment-detail .segment-overview > div:nth-child(3) { border-left:0; padding-left:0; } }
@media(max-width:575.98px) { .customer-segment-detail .segment-overview { grid-template-columns:1fr; gap:0; padding:1rem 1.25rem; } .customer-segment-detail .segment-overview > div + div,.customer-segment-detail .segment-overview > div:nth-child(3) { border-left:0; border-top:1px solid var(--bs-gray-200); padding:.75rem 0 0; margin-top:.75rem; } .customer-segment-detail .segment-resource-meta { grid-template-columns:1fr 1fr; } .customer-segment-detail .segment-geo-summary { gap:.5rem; } .customer-segment-detail .segment-geo-summary > div { padding:.75rem; } }

/* Navigation review, 2026-10-11: full-width draft hierarchy and compact overview. */
.nav-menu-row { gap: 1.5rem; border-radius: .65rem; padding-inline: .75rem; }
.nav-menu-row:hover { background: var(--bs-gray-100); }
.nav-menu-row:last-child { border-bottom: 0 !important; }
.navigation-workspace .dd { max-width: none; width: 100%; }
.navigation-draft-content { display: flex; align-items: center; gap: .65rem; padding: .85rem .65rem .85rem 1.75rem; border: 1px solid var(--bs-gray-200); border-radius: .65rem; background: var(--bs-body-bg); margin-bottom: .6rem; }
.navigation-draft-content:hover { border-color: var(--bs-primary); }
.navigation-draft-label { flex: 1; min-width: 0; }
.navigation-draft-actions { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.navigation-draft-actions .btn { padding: .4rem .55rem !important; font-size: var(--zs-font-label, .8rem); }
.navigation-workspace .navigation-draft-handle { position: static; display: flex; align-items: center; padding: .4rem; margin: 0; height: auto; border: 0; background: transparent; cursor: grab; font-size: 1.6rem; color: var(--bs-gray-600); }
.navigation-workspace .dd-list .dd-list { border-left: 2px solid var(--bs-gray-200); margin-left: 1rem; padding-left: 1rem; }
.navigation-workspace .dd-item > button[data-action] {
    width: 32px;
    height: 32px;
    margin-top: 1.2rem;
    border-radius: .5rem;
    font-size: 22px;
    line-height: 32px;
    color: var(--bs-gray-700);
}
.navigation-workspace .dd-item > button[data-action]:hover,
.navigation-workspace .dd-item > button[data-action]:focus-visible {
    color: var(--bs-primary);
    background: var(--bs-light-primary);
}
.navigation-workspace .dd-item > button[data-action]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}
.navigation-workspace .dd-placeholder { border: 2px dashed var(--bs-primary); background: var(--bs-light-primary); border-radius: .65rem; }
.navigation-item-drawer { width: min(480px, 100vw) !important; }
#navigation-resource-results { max-height: 260px; overflow: auto; }
.navigation-saving { pointer-events: none; opacity: .6; }
@media (max-width: 1199.98px) {
    .navigation-draft-content { flex-wrap: wrap; }
    .navigation-draft-actions { width: 100%; }
    .nav-menu-row { flex-wrap: wrap; }
    .nav-menu-row > div { flex-wrap: wrap; }
}
/* Discount editor — scoped mockup adaptation, 2026-10-18. */
.discount-editor-page { max-width: 1540px; margin: 0 auto; }
.discount-editor-page .discount-editor-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #9299ad; font-size: 12px; font-weight: 600; }
.discount-editor-page .discount-editor-breadcrumb a:hover,
.discount-editor-page .discount-editor-breadcrumb [aria-current="page"] { color: #6655ec; }
.discount-editor-page .discount-editor-heading { margin-bottom: 2px; }
.discount-editor-page .discount-editor-heading h1 { letter-spacing: -.035em; }
.discount-editor-page .discount-editor-heading .btn { min-height: 40px; border-radius: 9px; }
.discount-editor-page .discount-editor-card,
.discount-editor-page .discount-preview-card,
.discount-editor-page .discount-preview-tip { border: 1px solid #e6e9f2; border-radius: 15px; box-shadow: 0 5px 17px rgba(27, 34, 75, .035); overflow: hidden; }
.discount-editor-page .discount-editor-card .card-header,
.discount-editor-page .discount-preview-card .card-header { min-height: 0 !important; padding: 24px 26px 14px; border-bottom: 0; }
.discount-editor-page .discount-editor-card .card-body,
.discount-editor-page .discount-preview-card .card-body { padding: 0 26px 26px; }
.discount-editor-page .discount-editor-card-heading { display: flex; align-items: flex-start; gap: 13px; }
.discount-editor-page .discount-editor-card-heading h2 { margin: 0; color: #20243b; font-size: var(--zs-font-section, 16px); font-weight: var(--zs-weight-medium, 750); line-height: 1.4; }
.discount-editor-page .discount-editor-card-heading p { margin: 3px 0 0; color: #939ab0; font-size: 12px; line-height: 1.5; }
.discount-editor-page .discount-editor-step { display: inline-grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 8px; background: #f1eeff; color: #6655ec; font-size: 12px; font-weight: 800; }
.discount-editor-page .discount-editor-card .form-control,
.discount-editor-page .discount-editor-card .form-select,
.discount-editor-page .discount-editor-card .input-group-text { min-height: 42px; border: 1px solid #e5e9f2; border-radius: 8px; background: var(--zosify-surface-subtle, #fafbfe); }
.discount-editor-page .discount-editor-card .input-group .form-control { border-radius: 8px 0 0 8px; }
.discount-editor-page .discount-editor-card .input-group .input-group-text { border-radius: 0 8px 8px 0; }
.discount-editor-page .discount-editor-card .form-control:focus,
.discount-editor-page .discount-editor-card .form-select:focus { border-color: #aa9cff; background: var(--zosify-surface, #fff); box-shadow: 0 0 0 3px rgba(102, 85, 236, .09); }
.discount-editor-page .discount-method-choice,
.discount-editor-page .discount-eligibility-choice { min-height: 72px; border-color: #e6e9f2 !important; border-radius: 10px !important; background: var(--zosify-surface, #fff); transition: border-color .15s ease, background .15s ease; }
.discount-editor-page .discount-method-choice.border-primary,
.discount-editor-page .discount-eligibility-choice.border-primary { border-color: #aa9cff !important; background: #f7f5ff !important; }
.discount-editor-page .discount-eligibility-note { border: 1px solid #ece8ff; border-radius: 9px; background: var(--zosify-accent-soft, #faf9ff); color: #7366b6; padding: 12px 14px; font-size: 12px; line-height: 1.55; }
.discount-editor-page .discount-segment-options { max-height: 240px; overflow-y: auto; border-color: #e6e9f2 !important; }
.discount-editor-page .discount-segment-option + .discount-segment-option { border-top: 1px solid #eef0f5; }
.discount-editor-page .discount-segment-remove { border-radius: 999px; }
.discount-editor-page .discount-editor-date-note { border-top: 1px solid #eef0f5; padding-top: 14px; }
.discount-editor-page .discount-preview-card .card-title { font-size: 15px; }
.discount-editor-page .discount-preview-offer { position: relative; overflow: hidden; display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 25px 18px; border: 1px solid #e7e1ff; border-radius: 12px; background: linear-gradient(130deg,#f2eeff,#fbfaff); color: #342b76; }
.discount-editor-page .discount-preview-offer:after { content: ""; position: absolute; width: 165px; height: 165px; right: -90px; top: -105px; border: 19px solid rgba(143, 119, 255, .10); border-radius: 50%; pointer-events: none; }
.discount-editor-page .discount-preview-ticket { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: #6655ec; font-weight: 800; }
.discount-editor-page .adjustment-summary-value { font-size: clamp(25px, 2.3vw, 36px); line-height: 1.18; letter-spacing: -.045em; overflow-wrap: anywhere; }
.discount-editor-page .adjustment-summary-scope { color: #8178a7; font-size: 12px; }
.discount-editor-page .discount-preview-code { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 9px 12px; border: 1px dashed #aa9cff; border-radius: 8px; background: #fff; color: #6754df; font-size: 11px; font-weight: 800; }
.discount-editor-page .discount-preview-code:disabled { opacity: .7; cursor: default; }
.discount-editor-page .discount-preview-copy-label { font-size: 10px; font-weight: 600; }
.discount-editor-page .discount-preview-offer .adjustment-summary-mode-label { margin-top: 2px; }
.discount-editor-page .discount-preview-details-title { margin: 21px 0 8px; color: #9aa1b2; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.discount-editor-page .discount-preview-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 11px; line-height: 1.5; }
.discount-editor-page .discount-preview-facts span { color: #9099ae; }
.discount-editor-page .discount-preview-facts strong { color: #454b63; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.discount-editor-page .discount-preview-readiness { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; padding: 13px; border: 1px solid #e4e8f2; border-radius: 9px; background: #f8f9fc; color: #626c85; font-size: 11px; line-height: 1.5; }
.discount-editor-page .discount-preview-readiness strong { font-size: 12px; }
.discount-editor-page .discount-preview-readiness.is-ready { border-color: #d7eee4; background: #f0faf5; color: #24805c; }
.discount-editor-page .discount-preview-readiness.is-pending { border-color: #f6e7c9; background: #fff9ec; color: #966a23; }
.discount-editor-page .discount-preview-more { border-top: 1px solid #eef0f5; padding-top: 13px; color: #6d7490; font-size: 11px; }
.discount-editor-page .discount-preview-more summary { cursor: pointer; font-weight: 700; }
.discount-editor-page .discount-preview-more ul { margin-top: 10px; }
.discount-editor-page .discount-preview-tip .card-body { padding: 18px 20px; }
.discount-editor-page .discount-preview-tip strong { color: #373d5b; font-size: 12px; }
.discount-editor-page .discount-preview-tip p { margin-top: 6px; color: #919ab0; font-size: 11px; line-height: 1.6; }
@media (max-width: 991.98px) { .discount-editor-page .discount-sidebar-sticky { position: static; } }
@media (max-width: 575.98px) {
    .discount-editor-page .discount-editor-card .card-header,
    .discount-editor-page .discount-preview-card .card-header { padding: 20px 18px 13px; }
    .discount-editor-page .discount-editor-card .card-body,
    .discount-editor-page .discount-preview-card .card-body { padding: 0 18px 21px; }
    .discount-editor-page .discount-editor-heading .btn { flex: 1 1 auto; }
    .discount-editor-page .discount-segment-option { flex-wrap: wrap; }
}

/* Shared bootpag controls on AdminV2 portal tables. Bootpag emits plain li/a markup. */
.mzh_lg_datatable_pagination ul.bootpag {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mzh_lg_datatable_pagination .bootpag li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.125rem;
    min-height: 2.125rem;
    padding: .375rem .625rem;
    border: 0;
    border-radius: .625rem;
    background: var(--bs-gray-100, var(--zosify-surface-subtle, #f8f8fb));
    color: var(--bs-gray-700, var(--zosify-secondary-ink, #606676));
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}
.mzh_lg_datatable_pagination .bootpag li:not(.disabled):not(.active) a:hover {
    background: var(--bs-primary-light, var(--zosify-accent-soft, #f0eeff));
    color: var(--bs-primary, var(--zosify-accent, #6257e8));
}
.mzh_lg_datatable_pagination .bootpag li.active a {
    background: var(--bs-primary, var(--zosify-accent, #6257e8));
    color: #fff;
}
.mzh_lg_datatable_pagination .bootpag li.first a,
.mzh_lg_datatable_pagination .bootpag li.last a,
.mzh_lg_datatable_pagination .bootpag li.prev a,
.mzh_lg_datatable_pagination .bootpag li.next a {
    min-width: 4.75rem;
    padding-inline: .875rem;
}
.mzh_lg_datatable_pagination .bootpag li.prev a,
.mzh_lg_datatable_pagination .bootpag li.next a {
    font-size: 0;
}
.mzh_lg_datatable_pagination .bootpag li.first { margin-right: .25rem; }
.mzh_lg_datatable_pagination .bootpag li.prev { margin-right: .5rem; }
.mzh_lg_datatable_pagination .bootpag li.next { margin-left: .5rem; }
.mzh_lg_datatable_pagination .bootpag li.last { margin-left: .25rem; }
.mzh_lg_datatable_pagination .bootpag li.prev a::after,
.mzh_lg_datatable_pagination .bootpag li.next a::after {
    font-size: .85rem;
}
.mzh_lg_datatable_pagination .bootpag li.prev a::after { content: 'Previous'; }
.mzh_lg_datatable_pagination .bootpag li.next a::after { content: 'Next'; }
.mzh_lg_datatable_pagination .bootpag li.disabled a {
    opacity: .45;
    pointer-events: none;
}
.mzh_lg_datatable_pagination .bootpag li a:focus-visible {
    outline: 2px solid var(--bs-primary, var(--zosify-accent, #6257e8));
    outline-offset: 2px;
}

/* Keep the original product media grid visible while image writes are gated. */
.product-info-images #media-list.product-media-readonly { pointer-events: none; }
.product-info-images #media-list.product-media-readonly .myupload { cursor: not-allowed; }
