:root {
    --qrm-surface: #ffffff;
    --qrm-surface-soft: #f8fbff;
    --qrm-border: #e6edf5;
    --qrm-text: #1f2937;
    --qrm-muted: #6b7280;
    --qrm-primary: #0d6efd;
    --qrm-primary-soft: #e7f0ff;
    --qrm-success-soft: #dff7ea;
    --qrm-danger-soft: #fde8e8;
    --qrm-warning-soft: #fff4d8;
    --qrm-info-soft: #e2f3ff;
    --qrm-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

body {
    background: #f4f7fb;
    color: var(--qrm-text);
}

.admin-shell .page-wrapper {
    background: linear-gradient(180deg, #f5f7fb 0%, #eef3f9 100%);
    min-height: 100vh;
}

.admin-shell .card.rounded-4 {
    border: 1px solid var(--qrm-border);
    box-shadow: var(--qrm-shadow);
}

.app-page-content {
    padding-top: 0.9rem;
    padding-bottom: 1.75rem;
}

.app-page-intro {
    margin-bottom: 1rem;
}

.app-page-intro h4 {
    margin-bottom: 0.35rem;
}

.top-header .navbar {
    padding: 0.75rem 1.35rem;
    min-height: 78px;
}

.top-header .app-topbar-btn {
    border-radius: 14px;
    border-color: var(--qrm-border);
}

.app-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    font-weight: 700;
}

.sidebar-wrapper .sidebar-header {
    padding-bottom: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-subtitle {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#menu {
    padding: 0.75rem 0 1.25rem;
}

#menu .menu-label {
    padding: 1rem 1.45rem 0.45rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    pointer-events: none;
}

.sidebar-wrapper .metismenu a {
    border-radius: 16px;
    margin: 0.18rem 0.85rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.sidebar-wrapper .metismenu .parent-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.sidebar-wrapper .metismenu li.mm-active > a,
.sidebar-wrapper .metismenu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sidebar-wrapper .metismenu li.mm-active > a .parent-icon,
.sidebar-wrapper .metismenu a:hover .parent-icon {
    background: rgba(255, 255, 255, 0.14);
}

.workspace-context-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.workspace-context-card .context-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--qrm-primary-soft);
    color: var(--qrm-primary);
    font-size: 1.3rem;
}

.workspace-context-card .context-meta {
    color: var(--qrm-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.dashboard-hero-card {
    border: 0 !important;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #38bdf8 100%);
    box-shadow: 0 28px 45px rgba(29, 78, 216, 0.22) !important;
}

.dashboard-hero-card .card-body {
    position: relative;
}

.hero-eyebrow {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.84);
    max-width: 700px;
}

.dashboard-hero-panel {
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.hero-panel-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.hero-link {
    color: #ffffff;
    font-weight: 600;
    word-break: break-all;
}

.hero-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.dashboard-mini-stat {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-mini-stat span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.88rem;
}

.dashboard-mini-stat strong {
    color: #ffffff;
    font-size: 0.95rem;
    text-align: right;
}

.dashboard-metric-card {
    overflow: hidden;
}

.dashboard-metric-card .metric-label {
    color: var(--qrm-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-metric-card .metric-value {
    margin-top: 0.9rem;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--qrm-text);
    line-height: 1;
}

.dashboard-metric-card .metric-hint {
    margin: 0.9rem 0 0;
    color: var(--qrm-muted);
    font-size: 0.9rem;
}

.dashboard-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dashboard-list-item {
    padding: 0.95rem 1rem;
    border: 1px solid var(--qrm-border);
    border-radius: 16px;
    background: #fff;
}

.dashboard-subpanel {
    padding: 1rem;
    border: 1px solid var(--qrm-border);
    border-radius: 20px;
    background: var(--qrm-surface-soft);
}

.preview-frame,
.qr-preview-box {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qrm-surface-soft);
    overflow: hidden;
    border: 1px dashed #d6e2ef;
    border-radius: 18px;
}

.preview-frame img,
.qr-preview-box img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.theme-option-card {
    transition: all 0.2s ease;
    height: 100%;
    border: 1px solid var(--qrm-border);
    border-radius: 22px;
    background: var(--qrm-surface);
    box-shadow: var(--qrm-shadow);
}

.theme-option-card.theme-option-active {
    border-color: var(--qrm-primary);
    box-shadow: 0 18px 42px rgba(13, 110, 253, 0.18);
}

.theme-option-card .theme-preview {
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    width: 100%;
}

.theme-palette-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-palette-row {
    display: flex;
    gap: 0.45rem;
}

.drag-handle {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--qrm-border);
    background: #fff;
    color: var(--qrm-muted);
    cursor: move;
}

.category-sortable-list,
.product-sortable-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-sortable-list > li + li,
.product-sortable-list > li + li {
    margin-top: 0.85rem;
}

.tree-node,
.product-item-card {
    border: 1px solid var(--qrm-border);
    border-radius: 18px;
    background: var(--qrm-surface-soft);
    padding: 1rem;
}

.tree-children {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px dashed #d8e2ef;
}

.category-sortable-list > li + li {
    margin-top: 0.65rem;
}

.category-sortable-list .tree-node {
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
}

.category-sortable-list .tree-children {
    margin-top: 0.75rem;
    padding-left: 0.75rem;
}

.category-sortable-list .drag-handle {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

.product-thumb {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: cover;
    background: #e5edf8;
}

.product-thumb-fallback {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #334155;
    font-weight: 700;
    text-transform: uppercase;
}

.quick-link-card,
.quick-action-tile {
    border: 1px solid var(--qrm-border);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: var(--qrm-surface-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: var(--qrm-text);
}

.quick-link-card:hover,
.quick-action-tile:hover {
    background: var(--qrm-primary-soft);
    color: var(--qrm-text);
}

.content-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.content-chip.chip-muted { background: #eef2f7; color: #475569; }
.content-chip.chip-success { background: var(--qrm-success-soft); color: #047857; }
.content-chip.chip-danger { background: var(--qrm-danger-soft); color: #b91c1c; }
.content-chip.chip-warning { background: var(--qrm-warning-soft); color: #b45309; }
.content-chip.chip-info { background: var(--qrm-info-soft); color: #0369a1; }
.content-chip.chip-primary { background: var(--qrm-primary-soft); color: #1d4ed8; }

.app-feedback {
    border-radius: 16px;
}

.admin-processing-panel {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 2050;
    width: min(420px, calc(100vw - 1.5rem));
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
}

#smart-import-screen-lock {
    position: fixed;
    inset: 0;
    z-index: 2040;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(2px);
}

.admin-processing-panel__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-processing-panel__message {
    font-size: 0.875rem;
    color: #475569;
}

.admin-processing-panel__meta {
    font-size: 0.78rem;
    color: #64748b;
}

.admin-processing-progress {
    height: 0.55rem;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.admin-processing-progress__bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transition: width 0.25s ease;
}

.admin-processing-progress__bar.is-indeterminate {
    width: 45%;
    animation: admin-processing-indeterminate 1.15s ease-in-out infinite;
}

.product-ai-report-card {
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.product-ai-report-card--highlight {
    border-color: rgba(37, 99, 235, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.product-ai-report-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
}

.product-ai-report-error {
    padding: 0.75rem 0.875rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.72);
}

@keyframes admin-processing-indeterminate {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(260%);
    }
}

.admin-toast-stack {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(360px, calc(100vw - 1.5rem));
    pointer-events: none;
}

.admin-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    color: #0f172a;
    transform: translate3d(0, -10px, 0);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(12px);
}

.admin-toast.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.admin-toast.hide {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
}

.admin-toast-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.admin-toast-body {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-toast-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.admin-toast-message {
    font-size: 0.875rem;
    line-height: 1.45;
    color: inherit;
    word-break: break-word;
}

.admin-toast-close {
    border: 0;
    background: transparent;
    color: inherit;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.admin-toast-close:hover {
    background: rgba(15, 23, 42, 0.06);
    opacity: 1;
}

.admin-toast-success {
    border-color: rgba(34, 197, 94, 0.18);
}

.admin-toast-success .admin-toast-icon {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.admin-toast-error {
    border-color: rgba(239, 68, 68, 0.18);
}

.admin-toast-error .admin-toast-icon {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.admin-toast-warning {
    border-color: rgba(245, 158, 11, 0.2);
}

.admin-toast-warning .admin-toast-icon {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.admin-toast-info {
    border-color: rgba(59, 130, 246, 0.18);
}

.admin-toast-info .admin-toast-icon {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.modal .card {
    border-radius: 18px;
}

.page-footer {
    padding: 1rem 1.5rem;
    color: var(--qrm-muted);
    background: transparent;
}

@media (max-width: 1199.98px) {
    .dashboard-mini-stat {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-mini-stat strong {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .app-page-content {
        padding-top: 0.75rem;
    }

    .top-header .navbar {
        padding-inline: 1rem;
    }
}
.app-page-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.app-side-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.app-page-content .page-breadcrumb {
    margin-bottom: 0.65rem !important;
}

.app-page-intro {
    margin-bottom: 0.85rem;
}

.workspace-context-card--compact .card-body {
    padding: 1rem 1.1rem;
}

.workspace-context-card--compact .context-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.workspace-context-card--compact .context-meta {
    margin-bottom: 0.1rem;
}

.workspace-context-card--compact .form-label {
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
}

.workspace-context-card--compact .context-current {
    padding-top: 0.2rem;
    border-top: 1px solid var(--qrm-border);
}

@media (min-width: 1200px) {
    .workspace-context-card--compact .context-current {
        padding-top: 0.65rem;
    }
}
body {
    background: #f4f7fb;
}

.admin-shell .page-wrapper {
    background: #f4f7fb;
    min-height: calc(100vh - 60px);
}

.app-page-content {
    padding-top: 1rem;
    padding-bottom: 1.75rem;
}

.app-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    font-weight: 700;
}

.sidebar-wrapper .sidebar-header {
    padding-bottom: 0;
    border-bottom: 0;
}

#menu {
    padding: 10px;
    margin-top: 60px;
}

#menu .menu-label {
    padding: 18px 12px 6px;
    color: #b0afaf;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-wrapper .metismenu a {
    border-radius: 10px;
    margin: 0;
    padding: 6px 16px;
}

.sidebar-wrapper .metismenu .parent-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
}

.sidebar-wrapper .metismenu li.mm-active > a,
.sidebar-wrapper .metismenu a:hover {
    background-color: rgba(0, 140, 255, 0.05);
    color: #008cff;
    box-shadow: none;
}

.sidebar-wrapper .metismenu li.mm-active > a .parent-icon,
.sidebar-wrapper .metismenu a:hover .parent-icon {
    background: transparent;
}

.topbar .app-topbar-btn {
    border-radius: 10px;
    border-color: var(--qrm-border);
    padding-inline: 0.95rem;
}

.app-page-content .page-breadcrumb {
    margin-bottom: 0.55rem !important;
}

.app-page-intro {
    margin-bottom: 1rem;
}
.bulk-toolbar {
    background: #fbfdff;
}

.admin-data-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--qrm-muted);
    white-space: nowrap;
}

.admin-data-table tbody td {
    vertical-align: middle;
}

.admin-data-table input[type="checkbox"],
.table-responsive input[type="checkbox"] {
    width: 1.4em;
    height: 1.4em;
}

.admin-data-table .btn {
    white-space: nowrap;
}

.admin-data-table .btn.btn-sm {
    padding: 0.32rem 0.6rem;
    font-size: 0.74rem;
    line-height: 1.15;
    border-radius: 0.7rem;
}

.admin-icon-action {
    width: 2.05rem;
    height: 2.05rem;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    flex: 0 0 auto;
}

.admin-icon-action i {
    font-size: 0.95rem;
    line-height: 1;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.admin-product-table {
    table-layout: fixed;
    width: 100%;
}

.admin-product-table th:nth-child(1),
.admin-product-table td:nth-child(1) {
    width: 44px;
}

.admin-product-table th:nth-child(2),
.admin-product-table td:nth-child(2) {
    width: 26%;
}

.admin-product-table th:nth-child(3),
.admin-product-table td:nth-child(3) {
    width: 11%;
}

.admin-product-table th:nth-child(4),
.admin-product-table td:nth-child(4) {
    width: 10%;
}

.admin-product-table th:nth-child(5),
.admin-product-table td:nth-child(5) {
    width: 12%;
}

.admin-product-table th:nth-child(6),
.admin-product-table td:nth-child(6) {
    width: 12%;
}

.admin-product-table th:nth-child(7),
.admin-product-table td:nth-child(7) {
    width: 8%;
}

.admin-product-table th:nth-child(8),
.admin-product-table td:nth-child(8) {
    width: 21%;
}

.product-table-main,
.product-table-copy {
    min-width: 0;
}

.product-table-title,
.product-table-description,
.product-table-category {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.product-table-title {
    -webkit-line-clamp: 1;
}

.product-table-description {
    -webkit-line-clamp: 2;
    word-break: break-word;
}

.product-table-category {
    max-width: 100%;
    white-space: normal;
}

.admin-product-table td:nth-child(7) {
    white-space: nowrap;
}

.admin-missing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    align-content: start;
}

.admin-missing-grid .content-chip {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
}

.product-action-stack {
    min-width: 0;
}

.admin-row-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 2.05rem);
    gap: 0.35rem !important;
    min-width: 0;
    align-items: center;
    justify-content: end;
    justify-items: center;
}

.admin-row-actions .btn {
    width: 2.05rem;
    min-width: 2.05rem;
    max-width: 2.05rem;
    height: 2.05rem;
    justify-content: center;
    align-items: center;
    justify-self: center;
}

@media (max-width: 1399.98px) {
    .admin-product-table {
        min-width: 1320px;
        table-layout: auto;
    }
}

.dashboard-layout-fix > .row > .col-xxl-8 {
    flex: 0 0 100%;
    max-width: 100%;
}

.workspace-context-card--sidebar .card-body {
    padding: 1rem;
}

.workspace-context-card--sidebar .context-icon {
    flex-shrink: 0;
}

.workspace-context-card--sidebar .row {
    row-gap: 0.85rem;
}

.workspace-context-card--sidebar .context-current {
    margin-top: 0.1rem;
}
#productModal .modal-dialog,
#categoryModal .modal-dialog {
    margin: 0.75rem auto;
}

#productModal .modal-dialog {
    max-width: min(1140px, calc(100vw - 1rem));
}

#categoryModal .modal-dialog {
    max-width: min(760px, calc(100vw - 1rem));
}

#productModal .modal-content,
#categoryModal .modal-content {
    height: calc(100vh - 1.5rem);
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#productModal .modal-header,
#productModal .modal-footer,
#categoryModal .modal-header,
#categoryModal .modal-footer {
    flex-shrink: 0;
}

#productModal #product-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

#productModal .modal-body,
#categoryModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 1rem;
}

#productModal .modal-footer,
#categoryModal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.06);
}

#product-groups {
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

#product-groups .row {
    flex-wrap: nowrap;
}

#product-groups .col-12.col-xl-6 {
    min-width: min(540px, 100%);
}

#product-groups .product-sortable-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

#product-groups .card-header {
    padding: 0.9rem 1rem;
}

#product-groups .card-body {
    padding: 0.9rem;
}

#product-groups .product-sortable-list > li + li {
    margin-top: 0.65rem;
}

#product-groups .product-item-card {
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
}

#product-groups .drag-handle {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

#product-groups .product-thumb,
#product-groups .product-thumb-fallback {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

@media (max-width: 991.98px) {
    #productModal .modal-dialog,
    #categoryModal .modal-dialog {
        max-width: calc(100vw - 0.75rem);
        margin: 0.375rem auto;
    }

    #productModal .modal-content,
    #categoryModal .modal-content {
        height: calc(100vh - 0.75rem);
    }

    #productModal .modal-body,
    #categoryModal .modal-body {
        padding-inline: 1rem;
    }

    #product-groups .row {
        flex-wrap: wrap;
    }

    #product-groups .col-12.col-xl-6 {
        min-width: 100%;
    }
}


.searchable-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.searchable-select__input {
    border-radius: 0.75rem;
}

.searchable-select select.form-select[multiple] {
    min-height: 12rem;
}

.searchable-select .form-select {
    border-radius: 0.75rem;
}

.auth-page-shell {
    min-height: 100vh;
    background: linear-gradient(135deg, #f4f7ff 0%, #eef2f7 100%);
}

.auth-page-wrapper {
    min-height: 100vh;
}

.auth-card-shell {
    backdrop-filter: blur(8px);
}

.auth-side-panel {
    background: linear-gradient(160deg, rgba(13, 110, 253, 0.95), rgba(102, 16, 242, 0.88));
    color: #fff;
}

.auth-side-panel__inner {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.auth-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.auth-brand-subtitle {
    font-size: 0.875rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-side-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-side-copy {
    font-size: 1rem;
    line-height: 1.75;
    opacity: 0.9;
}

.auth-form-panel {
    padding: 2.5rem 2rem;
}

.auth-form-panel .form-control,
.auth-form-panel .form-check-input,
.auth-form-panel .btn {
    border-radius: 0.9rem;
}

.auth-form-panel .form-control {
    min-height: 3rem;
}

.auth-form-panel .auth-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.auth-form-panel .auth-subtitle {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.auth-status {
    border-radius: 1rem;
}

@media (max-width: 991.98px) {
    .auth-form-panel {
        padding: 2rem 1.25rem;
    }
}

.listing-is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.admin-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.admin-board-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.admin-listing-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.admin-listing-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.admin-board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-preferences-menu {
    width: 280px;
}

.admin-density-compact .admin-data-table thead th,
.admin-density-compact .admin-data-table tbody td {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.admin-density-compact .content-chip {
    padding: 0.35rem 0.65rem;
}

.admin-density-compact .admin-board-card {
    padding: 0.85rem;
}

.admin-sidebar-pref-collapsed .wrapper.toggled .sidebar-wrapper {
    width: 80px;
}

.workspace-context-form-stack {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.workspace-context-card--sidebar {
    position: relative;
    overflow: hidden;
}

.workspace-context-card--sidebar .workspace-context-header {
    align-items: flex-start;
}

.workspace-context-card--sidebar .form-label {
    margin-bottom: 0.45rem;
}

.workspace-context-card--sidebar .context-current {
    padding-top: 0.15rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.app-side-stack .workspace-context-card {
    align-self: stretch;
}

.business-settings-section-card .card-header {
    border-bottom: 0;
    padding-bottom: 0;
}

.business-settings-section-card .card-body {
    padding-top: 1rem;
}

.slider-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.slider-chip-list .content-chip {
    margin: 0;
}

.integration-status-list {
    display: grid;
    gap: 0.9rem;
}

.integration-status-list dt {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qrm-muted);
    margin-bottom: 0.25rem;
}

.integration-status-list dd {
    margin-bottom: 0;
}

/* Dark mode completion + layout polish */
[data-bs-theme="dark"] {
    color-scheme: dark;
    --qrm-surface: #111827;
    --qrm-surface-soft: #182131;
    --qrm-border: #2c3a4d;
    --qrm-text: #e5edf7;
    --qrm-muted: #97a6ba;
    --qrm-primary-soft: rgba(59, 130, 246, 0.18);
    --qrm-success-soft: rgba(34, 197, 94, 0.18);
    --qrm-danger-soft: rgba(239, 68, 68, 0.18);
    --qrm-warning-soft: rgba(245, 158, 11, 0.18);
    --qrm-info-soft: rgba(14, 165, 233, 0.18);
    --qrm-shadow: 0 18px 34px rgba(2, 8, 23, 0.34);
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .admin-shell .page-wrapper,
[data-bs-theme="dark"] .admin-shell,
[data-bs-theme="dark"] .page-content,
[data-bs-theme="dark"] .app-page-content {
    background: #0b1220 !important;
    color: var(--qrm-text);
}

[data-bs-theme="dark"] .admin-shell .page-wrapper {
    background: linear-gradient(180deg, #0b1220 0%, #0f1726 100%) !important;
}

.admin-shell .page-wrapper {
    overflow-x: hidden;
}

.app-page-content {
    max-width: 1680px;
    margin: 0 auto;
    padding-inline: 1.15rem;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card.rounded-4,
[data-bs-theme="dark"] .dashboard-list-item,
[data-bs-theme="dark"] .dashboard-subpanel,
[data-bs-theme="dark"] .workspace-context-card,
[data-bs-theme="dark"] .bulk-toolbar,
[data-bs-theme="dark"] .preview-frame,
[data-bs-theme="dark"] .qr-preview-box,
[data-bs-theme="dark"] .theme-option-card,
[data-bs-theme="dark"] .tree-node,
[data-bs-theme="dark"] .product-item-card,
[data-bs-theme="dark"] .quick-link-card,
[data-bs-theme="dark"] .quick-action-tile,
[data-bs-theme="dark"] .admin-board-card,
[data-bs-theme="dark"] .drag-handle,
[data-bs-theme="dark"] .border.rounded-4,
[data-bs-theme="dark"] .border.rounded-3,
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .list-group-item {
    background: var(--qrm-surface) !important;
    border-color: var(--qrm-border) !important;
    color: var(--qrm-text) !important;
    box-shadow: var(--qrm-shadow);
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer,
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer,
[data-bs-theme="dark"] .table-responsive,
[data-bs-theme="dark"] .accordion-item,
[data-bs-theme="dark"] .accordion-button {
    background: transparent !important;
    border-color: var(--qrm-border) !important;
    color: var(--qrm-text) !important;
}

[data-bs-theme="dark"] .app-page-intro,
[data-bs-theme="dark"] .page-breadcrumb,
[data-bs-theme="dark"] .breadcrumb-item,
[data-bs-theme="dark"] .breadcrumb-item.active,
[data-bs-theme="dark"] .metric-value,
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .fw-semibold,
[data-bs-theme="dark"] .fw-bold,
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] dt,
[data-bs-theme="dark"] dd,
[data-bs-theme="dark"] label,
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .dropdown-item,
[data-bs-theme="dark"] .page-link,
[data-bs-theme="dark"] .nav-link,
[data-bs-theme="dark"] .table,
[data-bs-theme="dark"] .table th,
[data-bs-theme="dark"] .table td {
    color: var(--qrm-text) !important;
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .metric-label,
[data-bs-theme="dark"] .metric-hint,
[data-bs-theme="dark"] .form-text,
[data-bs-theme="dark"] small,
[data-bs-theme="dark"] .small,
[data-bs-theme="dark"] .context-meta,
[data-bs-theme="dark"] .context-current,
[data-bs-theme="dark"] .hero-panel-label,
[data-bs-theme="dark"] .dashboard-mini-stat span,
[data-bs-theme="dark"] .admin-board-meta,
[data-bs-theme="dark"] .table > :not(caption) > * > *,
[data-bs-theme="dark"] .breadcrumb a,
[data-bs-theme="dark"] .dropdown-item-text {
    color: var(--qrm-muted) !important;
}

[data-bs-theme="dark"] a:not(.btn):not(.dropdown-item):not(.page-link) {
    color: #8dc3ff;
}

[data-bs-theme="dark"] a:not(.btn):not(.dropdown-item):not(.page-link):hover {
    color: #b7d8ff;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .searchable-select__input,
[data-bs-theme="dark"] textarea,
[data-bs-theme="dark"] select,
[data-bs-theme="dark"] input[type="text"],
[data-bs-theme="dark"] input[type="email"],
[data-bs-theme="dark"] input[type="number"],
[data-bs-theme="dark"] input[type="password"],
[data-bs-theme="dark"] input[type="search"],
[data-bs-theme="dark"] input[type="url"],
[data-bs-theme="dark"] input[type="file"] {
    background: #0f1726 !important;
    border-color: var(--qrm-border) !important;
    color: var(--qrm-text) !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .searchable-select__input:focus,
[data-bs-theme="dark"] textarea:focus,
[data-bs-theme="dark"] select:focus {
    border-color: #4f8cff !important;
    box-shadow: 0 0 0 0.2rem rgba(79, 140, 255, 0.16) !important;
}

[data-bs-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] textarea::placeholder,
[data-bs-theme="dark"] input::placeholder {
    color: #7f90a7 !important;
}

[data-bs-theme="dark"] .form-check-input {
    background-color: #0f1726;
    border-color: var(--qrm-border);
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: var(--qrm-primary);
    border-color: var(--qrm-primary);
}

[data-bs-theme="dark"] .table,
[data-bs-theme="dark"] .table-responsive {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(96, 165, 250, 0.08);
    --bs-table-border-color: var(--qrm-border);
    color: var(--qrm-text);
}

[data-bs-theme="dark"] .admin-data-table thead th {
    color: #9fb0c6 !important;
    border-bottom-color: var(--qrm-border);
}

[data-bs-theme="dark"] .admin-data-table tbody tr,
[data-bs-theme="dark"] .admin-data-table tbody td {
    border-color: var(--qrm-border) !important;
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
    color: var(--qrm-text) !important;
}

[data-bs-theme="dark"] .pagination .page-link {
    background: #111a2b;
    border-color: var(--qrm-border);
    color: var(--qrm-text);
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background: var(--qrm-primary);
    border-color: var(--qrm-primary);
    color: #fff;
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
    background: #111a2b;
    color: #61748d;
}

.pagination svg {
    width: 1rem;
    height: 1rem;
    max-width: 1rem;
    max-height: 1rem;
    display: inline-block;
    vertical-align: middle;
}

[data-bs-theme="dark"] .alert.alert-info,
[data-bs-theme="dark"] .alert.alert-light,
[data-bs-theme="dark"] .alert.alert-secondary,
[data-bs-theme="dark"] .alert.alert-danger,
[data-bs-theme="dark"] .alert.alert-success {
    border-color: var(--qrm-border) !important;
}

[data-bs-theme="dark"] .alert.alert-light,
[data-bs-theme="dark"] .alert.alert-secondary {
    background: #131d2c !important;
    color: var(--qrm-text) !important;
}

[data-bs-theme="dark"] .admin-toast {
    background: rgba(13, 20, 32, 0.96);
    color: #e5edf7;
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.5);
}

[data-bs-theme="dark"] .admin-toast-close:hover {
    background: rgba(148, 163, 184, 0.1);
}

[data-bs-theme="dark"] .admin-toast-success .admin-toast-icon {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

[data-bs-theme="dark"] .admin-toast-error .admin-toast-icon {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

[data-bs-theme="dark"] .admin-toast-warning .admin-toast-icon {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}

[data-bs-theme="dark"] .admin-toast-info .admin-toast-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

[data-bs-theme="dark"] .admin-processing-panel {
    background: rgba(13, 20, 32, 0.94);
    border-color: rgba(59, 130, 246, 0.2);
}

[data-bs-theme="dark"] .admin-processing-panel__title {
    color: #e5edf7;
}

[data-bs-theme="dark"] .admin-processing-panel__message {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .admin-processing-panel__meta {
    color: #94a3b8;
}

[data-bs-theme="dark"] .admin-processing-progress {
    background: rgba(51, 65, 85, 0.72);
}

[data-bs-theme="dark"] .product-ai-report-card--highlight {
    border-color: rgba(96, 165, 250, 0.52) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

[data-bs-theme="dark"] .product-ai-report-details summary {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .product-ai-report-error {
    border-color: rgba(71, 85, 105, 0.8);
    background: rgba(15, 23, 42, 0.56);
}

[data-bs-theme="dark"] .content-chip.chip-muted {
    background: #1f2b3d;
    color: #c8d5e6;
}

[data-bs-theme="dark"] .content-chip.chip-success {
    color: #92f2b5;
}

[data-bs-theme="dark"] .content-chip.chip-danger {
    color: #ffb4b4;
}

[data-bs-theme="dark"] .content-chip.chip-warning {
    color: #ffd89a;
}

[data-bs-theme="dark"] .content-chip.chip-info {
    color: #9fdfff;
}

[data-bs-theme="dark"] .content-chip.chip-primary {
    color: #b8d4ff;
}

[data-bs-theme="dark"] .bg-light-primary,
[data-bs-theme="dark"] .bg-light-secondary,
[data-bs-theme="dark"] .bg-light-warning,
[data-bs-theme="dark"] .bg-light-success,
[data-bs-theme="dark"] .bg-light-danger {
    background: #182131 !important;
    border: 1px solid var(--qrm-border);
}

[data-bs-theme="dark"] .text-primary { color: #8dc3ff !important; }
[data-bs-theme="dark"] .text-warning { color: #ffd089 !important; }
[data-bs-theme="dark"] .text-success { color: #93efb3 !important; }
[data-bs-theme="dark"] .text-danger { color: #ffb2b2 !important; }
[data-bs-theme="dark"] .text-info { color: #9bdfff !important; }

[data-bs-theme="dark"] .btn-light,
[data-bs-theme="dark"] .btn-outline-secondary {
    background: #182131;
    border-color: var(--qrm-border);
    color: var(--qrm-text);
}

[data-bs-theme="dark"] .btn-light:hover,
[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background: #223049;
    border-color: #41536b;
    color: #fff;
}

[data-bs-theme="dark"] .btn-outline-danger,
[data-bs-theme="dark"] .btn-outline-info,
[data-bs-theme="dark"] .btn-outline-primary {
    background: transparent;
}

[data-bs-theme="dark"] #run-selected-product-ai-content.btn-outline-primary {
    color: #8fd3ff;
    border-color: rgba(97, 201, 255, 0.72);
    background: rgba(28, 95, 136, 0.28);
}

[data-bs-theme="dark"] #run-selected-product-ai-content.btn-outline-primary:hover,
[data-bs-theme="dark"] #run-selected-product-ai-content.btn-outline-primary:focus {
    color: #eaf8ff;
    border-color: rgba(127, 220, 255, 0.92);
    background: rgba(39, 124, 177, 0.46);
    box-shadow: 0 0 0 0.2rem rgba(80, 188, 255, 0.18);
}

[data-bs-theme="dark"] #generate-ai-content.btn-outline-dark {
    color: #ffd98a;
    border-color: rgba(255, 200, 92, 0.62);
    background: rgba(122, 83, 20, 0.24);
}

[data-bs-theme="dark"] #generate-ai-content.btn-outline-dark:hover,
[data-bs-theme="dark"] #generate-ai-content.btn-outline-dark:focus {
    color: #fff8e5;
    border-color: rgba(255, 211, 122, 0.9);
    background: rgba(155, 102, 18, 0.44);
    box-shadow: 0 0 0 0.2rem rgba(255, 191, 73, 0.16);
}

[data-bs-theme="dark"] .dropdown-menu {
    padding: 0.5rem;
}

[data-bs-theme="dark"] .dropdown-item {
    border-radius: 0.65rem;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background: #182131;
}

[data-bs-theme="dark"] .nav-tabs,
[data-bs-theme="dark"] .nav-tabs .nav-link,
[data-bs-theme="dark"] .tab-content,
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    border-color: var(--qrm-border);
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active,
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background: #182131;
    color: var(--qrm-text);
}

[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] #productModal .modal-footer,
[data-bs-theme="dark"] #categoryModal .modal-footer {
    background: var(--qrm-surface) !important;
}

[data-bs-theme="dark"] .preview-frame,
[data-bs-theme="dark"] .qr-preview-box {
    background: #0f1726;
    border-color: #334155;
}

[data-bs-theme="dark"] .drag-handle,
[data-bs-theme="dark"] .product-thumb,
[data-bs-theme="dark"] .product-thumb-fallback {
    background: #172133;
    color: var(--qrm-text);
}

[data-bs-theme="dark"] .tree-children {
    border-left-color: #314258;
}

[data-bs-theme="dark"] .theme-palette-dot {
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .searchable-select .form-select[multiple] option {
    background: #0f1726;
    color: var(--qrm-text);
}

[data-bs-theme="dark"] .topbar,
[data-bs-theme="dark"] .top-header,
[data-bs-theme="dark"] .page-footer {
    background: transparent !important;
}

[data-bs-theme="dark"] .sidebar-wrapper .metismenu li.mm-active > a,
[data-bs-theme="dark"] .sidebar-wrapper .metismenu a:hover {
    background: rgba(141, 195, 255, 0.12);
    color: #dcebff;
}

[data-bs-theme="dark"] .workspace-context-card--sidebar .context-current,
[data-bs-theme="dark"] .workspace-context-card--compact .context-current {
    border-top-color: var(--qrm-border);
}

[data-bs-theme="dark"] .empty-state-card,
[data-bs-theme="dark"] .text-center.py-5,
[data-bs-theme="dark"] .text-center.py-4 {
    color: var(--qrm-text);
}

[data-bs-theme="dark"] .bulk-toolbar {
    background: #151f30 !important;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] hr,
[data-bs-theme="dark"] .dropdown-divider {
    border-color: var(--qrm-border) !important;
}

@media (max-width: 767.98px) {
    .app-page-content {
        padding-inline: 0.85rem;
    }

    .admin-processing-panel {
        right: 0.75rem;
        bottom: 0.75rem;
        width: min(360px, calc(100vw - 1rem));
    }
}

.app-page-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.app-page-toolbar-actions {
    align-items: center;
}

.search-bar {
    min-width: 0;
}

.search-bar .btn {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .app-page-toolbar {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.85rem;
    }

    .app-page-toolbar .ps-3,
    .app-page-toolbar .ms-auto,
    .app-page-toolbar .btn-group,
    .app-page-toolbar .btn,
    .app-page-toolbar-actions {
        width: 100%;
    }

    .app-page-toolbar .ms-auto {
        margin-left: 0 !important;
    }

    .app-page-toolbar .btn-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .app-page-toolbar .btn-group > .btn {
        border-radius: 0.8rem !important;
        margin-left: 0 !important;
    }

    .app-page-toolbar-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.5rem !important;
    }

    .top-header .navbar {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.45rem;
        row-gap: 0;
    }

    .search-bar {
        flex: 1 1 auto;
        order: 0;
        min-width: 0;
    }

    .search-bar .btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .search-bar .btn span {
        display: none;
    }

    .search-bar .btn .bx {
        margin: 0 !important;
        font-size: 1.15rem;
    }

    .top-menu {
        order: 0;
        width: auto;
        flex: 0 0 auto;
    }

    .top-menu .navbar-nav {
        width: auto;
        justify-content: flex-end;
        gap: 0.4rem !important;
        flex-wrap: nowrap;
    }

    .top-menu .nav-item {
        flex: 0 0 auto;
    }

    .top-menu .app-topbar-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .top-menu .app-topbar-btn .bx {
        margin: 0 !important;
        font-size: 1.15rem;
    }

    .top-menu .app-topbar-btn.dropdown-toggle::after {
        display: none;
    }

    .user-box {
        margin-left: auto;
        padding-inline: 0 !important;
        flex: 0 0 auto;
    }

    .user-box .user-info {
        display: none;
    }

    .mobile-toggle-menu {
        flex: 0 0 auto;
    }

    .mobile-toggle-menu i {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--qrm-border);
    }

    .top-header .navbar .dropdown-toggle::after {
        margin-left: 0.15rem;
    }

    .app-user-avatar {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .top-header .navbar {
        gap: 0.35rem;
    }

    .search-bar .btn,
    .top-menu .app-topbar-btn,
    .mobile-toggle-menu i {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

/* Dark mode final wrapper normalization */
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] body .wrapper,
[data-bs-theme="dark"] body .page-wrapper,
[data-bs-theme="dark"] body .page-wrapper .page-content,
[data-bs-theme="dark"] body .topbar,
[data-bs-theme="dark"] body .page-footer {
    background-color: #0b1220 !important;
}

[data-bs-theme="dark"] body .page-wrapper {
    background-image: linear-gradient(180deg, #0b1220 0%, #0f1726 100%) !important;
}

[data-bs-theme="dark"] .dashboard-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #38bdf8 100%) !important;
    border-color: transparent !important;
}

[data-bs-theme="dark"] .dashboard-hero-card .card-body,
[data-bs-theme="dark"] .dashboard-hero-panel {
    background: transparent !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .dashboard-hero-panel {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-bs-theme="dark"] .dashboard-hero-card .metric-label,
[data-bs-theme="dark"] .dashboard-hero-card .metric-value,
[data-bs-theme="dark"] .dashboard-hero-card .metric-hint {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-dark {
    box-shadow: none;
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-info:hover,
[data-bs-theme="dark"] .btn-outline-danger:hover {
    color: #fff;
}

[data-bs-theme="dark"] .page-footer {
    border-top: 1px solid var(--qrm-border);
}

[data-bs-theme="dark"] .table-responsive,
[data-bs-theme="dark"] .admin-listing-toolbar,
[data-bs-theme="dark"] .app-page-stack,
[data-bs-theme="dark"] .app-side-stack {
    color: inherit;
}

[data-bs-theme="dark"] .searchable-select,
[data-bs-theme="dark"] .searchable-select .form-select,
[data-bs-theme="dark"] .searchable-select__input {
    background: transparent;
}

[data-bs-theme="dark"] select option {
    background: #0f1726;
    color: var(--qrm-text);
}

[data-bs-theme="dark"] .badge.text-primary,
[data-bs-theme="dark"] .badge.text-secondary,
[data-bs-theme="dark"] .badge.text-warning,
[data-bs-theme="dark"] .badge.text-success,
[data-bs-theme="dark"] .badge.text-danger {
    color: var(--qrm-text) !important;
}

[data-bs-theme="dark"] .badge.bg-light-primary,
[data-bs-theme="dark"] .badge.bg-light-secondary,
[data-bs-theme="dark"] .badge.bg-light-warning,
[data-bs-theme="dark"] .badge.bg-light-success,
[data-bs-theme="dark"] .badge.bg-light-danger {
    background: #182131 !important;
    border: 1px solid var(--qrm-border);
}

.admin-workspace-layout {
    --bs-gutter-x: 1.5rem;
}

.admin-workspace-main,
.admin-workspace-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-workspace-main > #categories-listing-root,
.admin-workspace-main > #products-listing-root,
.admin-workspace-main > .card,
.admin-workspace-side > .app-side-stack,
.app-side-stack > * {
    width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-data-table {
    min-width: 760px;
}

@media (max-width: 1199.98px) {
    .admin-data-table {
        min-width: 700px;
    }
}

.admin-global-loading-root {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.admin-global-loading-root.is-blocking {
    pointer-events: auto;
}

.admin-global-loading-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 18, 0.58);
    backdrop-filter: blur(4px);
}

.admin-global-loading-panel {
    position: relative;
    width: min(100%, 540px);
    z-index: 1;
}

.admin-global-loading-root .admin-processing-panel__meta {
    min-width: 0;
}

.admin-global-loading-root .content-chip {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .admin-global-loading-root {
        padding: 1rem;
        align-items: flex-end;
    }

    .admin-global-loading-panel {
        width: 100%;
    }
}
.release-note-table-thumb {
    width: 88px;
    min-width: 88px;
    height: 64px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.12);
}

.release-note-table-thumb img,
.release-note-cover-preview img,
.release-note-archive-cover img,
.release-note-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.release-note-cover-preview,
.release-note-detail-cover {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(148, 163, 184, 0.12);
}

.release-note-cover-preview {
    min-height: 220px;
}

.release-note-detail-cover {
    max-height: 420px;
}

.release-note-archive-cover {
    width: 100%;
    max-width: 280px;
    min-width: 220px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.12);
}

.release-note-usage-hint {
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(59, 130, 246, 0.08);
    color: var(--bs-body-color);
    border-radius: 18px;
    padding: 0.9rem 1rem;
}

.release-note-rich-content {
    color: var(--bs-body-color);
    line-height: 1.7;
}

.release-note-rich-content > * + * {
    margin-top: 1rem;
}

.release-note-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.release-note-rich-content a {
    color: var(--bs-primary);
    text-decoration: underline;
}

.note-editor.note-frame {
    border-radius: 20px;
    overflow: hidden;
    border-color: rgba(148, 163, 184, 0.22);
}

.note-editor .note-toolbar {
    background: rgba(15, 23, 42, 0.03);
}

.note-editor .note-editing-area .note-editable {
    min-height: 320px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

@media (max-width: 991.98px) {
    .release-note-archive-cover {
        max-width: 100%;
        min-width: 0;
    }
}
