        :root {
            --app-card-radius: 4px;
        }

        body {
            background: #f6f7fb;
        }

        .app-wrap {
            max-width: 1500px;
        }

        .topbar {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 292px;
            z-index: 30;
            overflow-y: auto;
            background: rgba(246, 247, 251, .96);
            backdrop-filter: blur(8px);
            border-right: 1px solid rgba(0, 0, 0, .06);
            transition: width .22s ease, transform .22s ease, box-shadow .22s ease;
        }

        .topbar .app-wrap {
            max-width: none;
            min-height: 100%;
            padding: 22px 18px !important;
            display: flex;
            flex-direction: column;
            transition: padding .22s ease;
        }

        .topbar-brand {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .topbar-brand-head {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .topbar-brand-copy {
            min-width: 0;
        }

        .topbar-brand-meta {
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }

        .app-main {
            margin-left: 292px;
            width: calc(100% - 292px);
            max-width: calc(100% - 292px);
            min-height: 100vh;
            transition: margin-left .22s ease, width .22s ease, max-width .22s ease;
        }

        .sidebar-toolbar {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
        }

        .sidebar-tool-btn,
        .sidebar-mode-btn,
        .sidebar-fab {
            border: 1px solid rgba(13, 110, 253, .14);
            background: rgba(255, 255, 255, .96);
            color: #315ca8;
            box-shadow: 0 10px 24px rgba(13, 110, 253, .10);
            transition: all .18s ease;
        }

        .sidebar-tool-btn:hover,
        .sidebar-mode-btn:hover,
        .sidebar-fab:hover {
            color: #0d6efd;
            border-color: rgba(13, 110, 253, .26);
            box-shadow: 0 14px 28px rgba(13, 110, 253, .14);
            transform: translateY(-1px);
        }

        .sidebar-tool-btn {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            flex: 0 0 auto;
        }

        .sidebar-tool-btn i,
        .sidebar-fab i {
            font-size: 1.35rem;
        }

        .sidebar-mode-btn {
            min-height: 44px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 0 14px;
            font-weight: 700;
            color: #315ca8;
        }

        .sidebar-mode-btn.active {
            background: linear-gradient(135deg, #0d6efd 0%, #2f80ff 100%);
            border-color: transparent;
            color: #fff;
            box-shadow: 0 14px 28px rgba(13, 110, 253, .18);
        }

        .sidebar-mode-btn i {
            font-size: 1rem;
        }

        .sidebar-fab {
            position: fixed;
            top: 18px;
            left: 18px;
            width: 46px;
            height: 46px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            z-index: 42;
        }

        .scroll-top-btn {
            position: fixed;
            right: 18px;
            bottom: 22px;
            z-index: 10050;
            min-height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 0 14px;
            border: 1px solid rgba(29, 78, 216, .18);
            border-radius: 8px;
            background: #1d4ed8;
            color: #ffffff;
            font-size: 14px;
            font-weight: 900;
            box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
        }

        .scroll-top-btn:hover {
            background: #1e40af;
            color: #ffffff;
            transform: translateY(-1px);
        }

        .scroll-top-btn i {
            font-size: 15px;
        }

        body:not(.sidebar-collapsed) .sidebar-fab {
            opacity: 0;
            pointer-events: none;
            transform: translateX(-8px);
        }

        .sidebar-overlay {
            position: fixed;
            inset: 0;
            z-index: 29;
            background: rgba(15, 23, 42, .26);
            opacity: 0;
            pointer-events: none;
            transition: opacity .18s ease;
        }

        body.sidebar-collapsed .topbar {
            transform: translateX(calc(-100% - 20px));
            box-shadow: none;
        }

        body.sidebar-collapsed .app-main {
            margin-left: 0;
            width: 100%;
            max-width: 100%;
        }

        body.sidebar-icon-only:not(.sidebar-collapsed) .topbar {
            width: 94px;
        }

        body.sidebar-icon-only .topbar .app-wrap {
            padding: 18px 10px !important;
            align-items: center;
        }

        body.sidebar-icon-only .sidebar-toolbar {
            width: 100%;
            flex-direction: column;
        }

        body.sidebar-icon-only .sidebar-mode-label,
        body.sidebar-icon-only .topbar-brand-copy,
        body.sidebar-icon-only .topbar-brand-meta {
            display: none;
        }

        body.sidebar-icon-only .topbar-brand {
            width: 100%;
            align-items: center;
            gap: 14px;
        }

        body.sidebar-icon-only .topbar-brand-head {
            flex-direction: column;
            justify-content: center;
            gap: 10px;
        }

        body.sidebar-icon-only .sidebar-mode-btn {
            width: 44px;
            justify-content: center;
            padding: 0;
        }

        .card,
        .modal-content,
        .app-card-shell,
        .panel {
            border-radius: var(--app-card-radius);
        }

        .panel {
            border: 0;
            box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
            background: #fff;
        }

        .panel-header {
            padding: 14px 16px;
            border-bottom: 1px solid rgba(0, 0, 0, .06);
        }

        .panel-body {
            padding: 16px;
        }

        .count-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 22px;
            padding: 0 10px;
            border-radius: 999px;
            border: 1px solid rgba(0, 0, 0, .12);
            background: rgba(0, 0, 0, .03);
            color: rgba(0, 0, 0, .65);
            font-weight: 900;
            font-size: 12px;
            line-height: 1;
            user-select: none;
        }

        .sidebar-today-sales {
            width: 100%;
            margin-top: auto;
            display: grid;
            grid-template-columns: 44px minmax(0, 1fr) auto;
            align-items: center;
            gap: 11px;
            min-height: 72px;
            padding: 12px 12px;
            border: 1px solid rgba(37, 99, 235, .16);
            border-radius: 16px;
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            color: #1e3a8a;
            box-shadow: 0 12px 24px rgba(37, 99, 235, .10);
        }

        .sidebar-today-sales-icon {
            width: 44px;
            height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: #2563eb;
            color: #ffffff;
            box-shadow: 0 8px 16px rgba(37, 99, 235, .22);
        }

        .sidebar-today-sales-icon i {
            font-size: 20px;
        }

        .sidebar-today-sales-copy {
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 3px;
        }

        .sidebar-today-sales-label {
            font-size: 13px;
            font-weight: 800;
            line-height: 1.1;
        }

        .sidebar-today-sales-sub {
            color: #1d4ed8;
            font-size: 11px;
            font-weight: 650;
            line-height: 1.1;
            opacity: .78;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sidebar-today-sales-count {
            min-width: 42px;
            height: 42px;
            padding: 0 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 22px;
            background: #6d28d9;
            color: #ffffff;
            font-size: 16px;
            font-weight: 900;
            line-height: 1;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
        }

        .sidebar-yesterday-sales-count {
            min-width: 70px;
            height: 21px;
            padding: 0 9px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            border: 1px solid rgba(37, 99, 235, .18);
            border-radius: 999px;
            background: #eff6ff;
            color: #1d4ed8;
            font-size: 10px;
            font-weight: 900;
            line-height: 1;
            white-space: nowrap;
            align-self: flex-start;
        }

        .sidebar-yesterday-sales-count strong {
            color: #1e40af;
            font-weight: 950;
        }

        .product-card {
            border: 1px solid #d7dee8;
            border-radius: 10px;
            box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
        }

        .product-card .card-body {
            padding: 14px;
        }

        .product-card-media {
            height: 288px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid #d7dee8;
            background: #fafbfc;
        }

        .product-card-title {
            font-weight: 700;
            color: #0f172a;
            line-height: 1.35;
        }

        .product-card-status-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            min-height: 24px;
        }

        .product-card-status {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 24px;
            padding: 0 12px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 650;
            letter-spacing: .01em;
            line-height: 1;
            white-space: nowrap;
        }

        .product-card-status .bi {
            color: currentColor;
            font-size: 12px;
            line-height: 1;
            margin-right: 4px;
        }

        .product-card-status--success {
            background: #198754;
            color: #fff;
        }

        .product-card-status--info {
            background: #2563eb;
            color: #fff;
        }

        .product-card-status--fixed {
            background: #7c3aed;
            color: #fff;
        }

        .product-card-status--danger {
            background: #dc3545;
            color: #fff;
        }

        .product-card-status--warning {
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #f3d38b;
        }

        .fixed-vector-card {
            border-radius: var(--app-card-radius);
        }

        .fixed-vector-card .card-body {
            padding: 14px;
        }

        .fixed-vector-file-status {
            display: block;
            min-height: 38px;
            font-size: 13px;
            color: #5a6678;
        }

        .fixed-vector-model-summary {
            min-height: 38px;
        }

        .table> :not(caption)>*>* {
            vertical-align: middle;
        }

        .tab-content {
            padding-top: 14px;
        }

        .tabs-shell {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            gap: 14px;
        }

        .tabs-group {
            display: flex;
            align-items: stretch;
            gap: 10px;
            width: 100%;
        }

        .tabs-group.ms-auto {
            margin-left: 0 !important;
        }

        .tabs-main.nav-pills,
        .tabs-side.nav-pills {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

        .tabs-main .nav-item,
        .tabs-side .nav-item {
            margin: 0 !important;
            width: 100%;
        }

        .tabs-main .nav-link,
        .tabs-side .nav-link {
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            min-height: 46px;
            width: 100%;
            padding: 10px 16px;
            border-radius: 14px;
            border: 1px solid rgba(13, 110, 253, .10);
            background: rgba(255, 255, 255, .88);
            color: #315ca8;
            font-weight: 700;
            justify-content: flex-start;
            box-shadow: 0 6px 16px rgba(13, 110, 253, .06);
            transition: all .18s ease;
        }

        .tabs-main .nav-link:hover,
        .tabs-side .nav-link:hover {
            transform: translateY(-1px);
            border-color: rgba(13, 110, 253, .22);
            background: #ffffff;
            color: #0d6efd;
            box-shadow: 0 10px 20px rgba(13, 110, 253, .10);
        }

        .tabs-main .nav-link.active,
        .tabs-side .nav-link.active {
            background: linear-gradient(135deg, #0d6efd 0%, #2f80ff 100%);
            border-color: transparent;
            color: #ffffff;
            box-shadow: 0 12px 24px rgba(13, 110, 253, .22);
        }

        .tabs-main .nav-link .count-pill,
        .tabs-side .nav-link .count-pill {
            height: 24px;
            background: rgba(0, 0, 0, .05);
            border-color: rgba(0, 0, 0, .10);
            margin-left: auto;
        }

        .tabs-main .nav-link.active .count-pill,
        .tabs-side .nav-link.active .count-pill {
            background: rgba(255, 255, 255, .18);
            border-color: rgba(255, 255, 255, .20);
            color: #ffffff;
        }

        .product-svg-workbench {
            margin-top: 0;
            border: 1px solid #428bca;
            border-radius: 4px;
            background: #428bca;
            overflow: hidden;
            box-shadow: none;
        }

        .product-import-mode-stack {
            display: grid;
            align-content: start;
            gap: 12px;
            height: 100%;
        }

        .product-import-mode-card {
            padding: 12px 14px !important;
        }

        .product-import-mode-card .form-check {
            margin-bottom: 0;
            min-height: 0;
        }

        .product-import-mode-card .form-check+.form-check {
            margin-top: 10px;
        }

        .product-import-mode-card .form-check-label {
            font-size: 16px;
            line-height: 1.2;
        }

        .product-import-mode-card .form-switch .form-check-input {
            margin-top: 0.30rem;
        }

        .product-image-workbench {
            display: grid;
            gap: 10px;
        }

        .product-image-preview-card {
            width: 100%;
            aspect-ratio: 1 / 1;
            border: 1px solid #d8dee9;
            border-radius: 8px;
            background: #ffffff;
            overflow: hidden;
        }

        .product-image-preview-inner {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
        }

        .product-image-action-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .product-image-action-grid .btn {
            min-height: 42px;
            padding: 8px 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border-radius: 6px;
            font-weight: 600;
            line-height: 1.15;
            white-space: normal;
            box-shadow: none;
        }

        .product-image-action-grid .btn.product-image-action-silhouette {
            background: #6f42c1;
            border-color: #6f42c1;
        }

        .product-image-action-grid .btn.product-image-action-silhouette:hover,
        .product-image-action-grid .btn.product-image-action-silhouette:focus {
            background: #5f35ad;
            border-color: #5a32a3;
        }

        .product-image-action-grid .btn.product-image-action-download {
            background: #198754;
            border-color: #198754;
        }

        .product-image-action-grid .btn.product-image-action-download:hover,
        .product-image-action-grid .btn.product-image-action-download:focus {
            background: #157347;
            border-color: #146c43;
        }

        .product-image-action-grid .btn i {
            font-size: 19px;
            line-height: 1;
            flex: 0 0 auto;
        }

        .product-image-action-grid .btn span {
            min-width: 0;
        }

        .product-image-help {
            grid-column: 1 / -1;
            color: #6c757d;
            font-size: 12px;
            line-height: 1.35;
            text-align: center;
        }

        .product-svg-tabbar.nav {
            display: flex;
            flex-wrap: nowrap;
            align-items: flex-end;
            gap: 0;
            margin-bottom: 0;
            position: relative;
            z-index: 1;
            background: transparent;
            padding: 5px 5px 0;
            min-height: 0;
            border-radius: 0;
        }

        .product-svg-tabbar .nav-link {
            border: 1px solid transparent;
            border-bottom: 0;
            border-radius: 4px 4px 0 0;
            background: transparent;
            color: #ffffff;
            font-weight: 500;
            font-size: 14px;
            line-height: 1.2;
            padding: 11px 18px 12px;
            min-height: 0;
            box-shadow: none;
            margin-top: 0;
            margin-right: 2px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background-color .16s ease, color .16s ease, border-color .16s ease;
        }

        .product-svg-tabbar .nav-link:hover:not(:disabled) {
            color: #ffffff;
            background: #3071a9;
            border-color: transparent;
        }

        .product-svg-tabbar .nav-link.active {
            background: #ffffff;
            color: #428bca;
            border-color: #428bca;
            border-bottom-color: transparent;
        }

        .product-svg-tabbar .nav-link:disabled,
        .product-svg-tabbar .nav-link.disabled {
            opacity: .58;
            background: transparent;
            color: rgba(255, 255, 255, .78);
            border-color: transparent;
        }

        .product-svg-panel {
            border: 0;
            border-radius: 0 0 3px 3px;
            background: #ffffff;
            padding: 16px 18px 18px;
            box-shadow: none;
        }

        .product-svg-panel .form-label.small {
            color: #587592;
            font-weight: 600;
        }

        .product-svg-section {
            position: relative;
            border: 0;
            border-radius: 0;
            background: transparent;
            padding: 0;
        }

        .product-svg-section+.product-svg-section {
            margin-top: 18px;
            padding-top: 18px;
            border-top: 1px solid #e5ecf3;
        }

        .product-svg-status-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            font-size: 11px;
            font-weight: 700;
            border-radius: 999px;
            padding: 5px 10px;
            z-index: 2;
        }

        .product-svg-section>.form-label.small {
            display: block;
            margin-right: 132px;
        }

        .product-svg-meta-label {
            margin-right: 0 !important;
        }

        .product-svg-meta-field {
            max-width: 220px;
        }

        .product-svg-preview-box {
            width: 200px;
            max-width: 48%;
            flex: 0 0 auto;
        }

        .product-svg-preview-wrap {
            width: 200px;
            max-width: 48%;
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
        }

        .product-svg-preview-wrap .product-svg-preview-box {
            width: 100%;
            max-width: 100%;
        }

        .product-svg-preview-size {
            min-height: 14px;
            font-size: 11px;
            line-height: 1.1;
            color: #6b7280;
            font-weight: 500;
            letter-spacing: .01em;
            text-align: left;
        }

        .product-svg-preview-loader {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: #4b5563;
            text-align: center;
            min-height: 96px;
            width: 100%;
        }

        .products-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }

        .products-toolbar-search {
            flex: 1 1 280px;
            max-width: 420px;
        }

        .products-header-actions {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            min-width: 0;
        }

        .products-search-field {
            position: relative;
            flex: 0 1 320px;
            width: clamp(210px, 24vw, 320px);
            min-width: 0;
        }

        .products-search-field .form-control {
            height: 40px;
            padding-left: 42px;
            padding-right: 14px;
            border-radius: 12px;
            border-color: #d6dbe6;
            box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
        }

        .products-search-field .form-control:focus {
            border-color: #93c5fd;
            box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .14);
        }

        .products-search-field .bi {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 24px;
            color: #9ca3af;
            pointer-events: none;
            line-height: 1;
        }

        .products-header-actions .btn {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .products-toolbar-meta {
            font-size: 12px;
            color: #6b7280;
            font-weight: 600;
            letter-spacing: .01em;
        }

        .products-processing-host {
            margin-bottom: 14px;
        }

        .products-processing-card {
            border: 1px solid rgba(13, 110, 253, .12);
            border-radius: 18px;
            background:
                radial-gradient(circle at top left, rgba(59, 130, 246, .12), transparent 42%),
                linear-gradient(180deg, #f8fbff 0%, #f2f6fd 100%);
            padding: 14px;
            box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
        }

        .products-processing-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        .products-processing-title {
            font-weight: 800;
            color: #1f2937;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .products-processing-title i {
            color: #2563eb;
        }

        .products-processing-subtitle {
            font-size: 12px;
            color: #64748b;
            margin-top: 3px;
        }

        .products-processing-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 34px;
            height: 34px;
            padding: 0 11px;
            border-radius: 999px;
            background: rgba(37, 99, 235, .10);
            color: #2563eb;
            border: 1px solid rgba(37, 99, 235, .18);
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
        }

        .products-processing-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 10px;
        }

        .products-processing-item {
            display: flex;
            align-items: center;
            gap: 12px;
            border: 1px solid rgba(148, 163, 184, .18);
            border-radius: 16px;
            background: rgba(255, 255, 255, .9);
            padding: 10px 12px;
            min-width: 0;
        }

        .products-processing-thumb {
            width: 52px;
            height: 52px;
            min-width: 52px;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid rgba(148, 163, 184, .18);
            background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
        }

        .products-processing-thumb img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            background: #fff;
        }

        .products-processing-body {
            min-width: 0;
            flex: 1 1 auto;
        }

        .products-processing-name {
            font-size: 14px;
            font-weight: 800;
            color: #1f2937;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .products-processing-meta {
            margin-top: 3px;
            font-size: 12px;
            color: #64748b;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .products-processing-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 6px;
            font-size: 12px;
            font-weight: 700;
        }

        .products-processing-status--sending {
            color: #2563eb;
        }

        .products-processing-status--saved {
            color: #0f766e;
        }

        .products-processing-status--error {
            color: #dc2626;
        }

        .products-processing-icon {
            width: 30px;
            min-width: 30px;
            height: 30px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .products-processing-icon--sending {
            background: rgba(37, 99, 235, .10);
            color: #2563eb;
        }

        .products-processing-icon--saved {
            background: rgba(15, 118, 110, .10);
            color: #0f766e;
        }

        .products-processing-icon--error {
            background: rgba(220, 38, 38, .10);
            color: #dc2626;
        }

        .product-card-thumb {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .product-card-thumb img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: 78%;
            display: block;
            opacity: 0;
            transition: opacity .18s ease;
        }

        .product-card-thumb.is-loaded img {
            opacity: 1;
        }

        .product-card-thumb-loader {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: #64748b;
            background: rgba(255, 255, 255, 0.78);
        }

        .product-card-thumb.is-loaded .product-card-thumb-loader,
        .product-card-thumb.is-error .product-card-thumb-loader {
            display: none;
        }

        .products-pagination {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 18px;
        }

        .products-pagination-meta {
            font-size: 12px;
            color: #6b7280;
            font-weight: 600;
        }

        .products-pagination-nav {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 4px;
            border: 1px solid #d8e3f2;
            border-radius: 14px;
            background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
            box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
        }

        .products-pagination-btn,
        .products-pagination-range {
            min-height: 38px;
            padding: 0 14px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
        }

        .products-pagination-btn {
            border: 0;
            background: #fff;
            color: #475569;
            box-shadow: inset 0 0 0 1px #d4dde9;
            transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
        }

        .products-pagination-btn:hover:not(:disabled) {
            background: #eff6ff;
            color: #2563eb;
            box-shadow: inset 0 0 0 1px #93c5fd;
        }

        .products-pagination-btn:disabled {
            background: #f8fafc;
            color: #94a3b8;
            box-shadow: inset 0 0 0 1px #e2e8f0;
            cursor: default;
        }

        .products-pagination-range {
            min-width: 86px;
            border: 0;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            color: #0f172a;
            box-shadow: inset 0 0 0 1px #d4dde9;
        }

        .done-page-header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
        }

        .done-page-subtitle {
            margin-top: 4px;
            color: #64748b;
            font-size: 13px;
            font-weight: 700;
        }

        .done-page-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
        }

        .done-search-field {
            position: relative;
            min-width: min(320px, 100%);
        }

        .done-search-field i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #64748b;
            pointer-events: none;
        }

        .done-search-field .form-control {
            min-height: 38px;
            padding-left: 36px;
            border-radius: 8px;
            font-size: 14px;
        }

        .done-restore-date {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }

        .done-restore-date .form-control {
            width: 156px;
            min-height: 38px;
            border-radius: 8px;
            font-size: 14px;
        }

        .done-sales-list {
            display: grid;
            gap: 16px;
        }

        .done-date-group {
            border: 1px solid #dbe4ef;
            border-radius: 8px;
            background: #ffffff;
            overflow: hidden;
        }

        .done-date-head {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 12px 14px;
            background: #f8fafc;
            border-bottom: 1px solid #e5edf6;
        }

        .done-date-title {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #0f172a;
            font-size: 14px;
            font-weight: 900;
        }

        .done-date-title i {
            color: #16a34a;
        }

        .done-date-count {
            color: #64748b;
            font-size: 12px;
            font-weight: 850;
        }

        .done-sale-row {
            display: grid;
            grid-template-columns: 64px minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            padding: 12px 14px;
        }

        .done-sale-row+.done-sale-row {
            border-top: 1px solid #eef2f7;
        }

        .done-sale-main {
            min-width: 0;
            display: grid;
            gap: 5px;
        }

        .done-sale-title {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            min-width: 0;
            color: #0f172a;
            font-size: 14px;
            font-weight: 900;
        }

        .done-sale-product {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .done-sale-seq {
            flex: 0 0 auto;
            padding: 2px 7px;
            border-radius: 999px;
            background: #eef6ff;
            color: #1d4ed8;
            font-size: 11px;
            font-weight: 900;
        }

        .done-sale-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            color: #475569;
            font-size: 12px;
            font-weight: 750;
        }

        .done-sale-meta span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            min-height: 22px;
            padding: 0 8px;
            border-radius: 999px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
        }

        .done-sale-note {
            color: #64748b;
            font-size: 12px;
            font-weight: 650;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .done-sale-actions {
            display: grid;
            justify-items: end;
            gap: 8px;
            min-width: 132px;
        }

        .done-sale-time {
            color: #334155;
            font-size: 12px;
            font-weight: 850;
            text-align: right;
        }

        .done-pagination {
            margin-top: 16px;
        }

        .done-empty-state {
            min-height: 220px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: #64748b;
            text-align: center;
            font-size: 14px;
            font-weight: 800;
            border: 1px dashed #cbd5e1;
            border-radius: 8px;
            background: #ffffff;
        }

        @media (max-width: 767.98px) {
            .done-page-actions,
            .done-search-field,
            .done-restore-date,
            .done-restore-date .form-control,
            .done-restore-date .btn {
                width: 100%;
            }

            .done-page-actions,
            .done-restore-date {
                justify-content: stretch;
            }

            .done-sale-row {
                grid-template-columns: 56px minmax(0, 1fr);
                align-items: start;
            }

            .done-sale-actions {
                grid-column: 1 / -1;
                grid-template-columns: 1fr auto;
                align-items: center;
                justify-items: stretch;
                min-width: 0;
            }

            .done-sale-time {
                text-align: left;
            }
        }

        body.sidebar-icon-only .tabs-main .nav-link,
        body.sidebar-icon-only .tabs-side .nav-link {
            justify-content: center;
            padding: 12px 10px;
            gap: 0;
            font-size: 0;
        }

        body.sidebar-icon-only .tabs-main .nav-link i,
        body.sidebar-icon-only .tabs-side .nav-link i {
            font-size: 1.2rem;
            margin: 0;
        }

        body.sidebar-icon-only .tabs-main .nav-link .count-pill,
        body.sidebar-icon-only .tabs-side .nav-link .count-pill {
            position: absolute;
            top: 5px;
            right: 5px;
            margin-left: 0;
            min-width: 20px;
            height: 20px;
            padding: 0 4px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
            font-weight: 900;
            line-height: 1;
            box-shadow: 0 4px 10px rgba(15, 23, 42, .12);
            z-index: 2;
            white-space: nowrap;
        }

        body.sidebar-icon-only .sidebar-today-sales {
            width: 54px;
            min-height: 60px;
            padding: 8px 6px;
            grid-template-columns: 1fr;
            justify-items: center;
            gap: 4px;
            border-radius: 18px;
        }

        body.sidebar-icon-only .sidebar-today-sales-icon {
            width: 30px;
            height: 30px;
            border-radius: 11px;
        }

        body.sidebar-icon-only .sidebar-today-sales-copy {
            display: none;
        }

        body.sidebar-icon-only .sidebar-today-sales-count {
            min-width: 28px;
            height: 22px;
            padding: 0 7px;
            font-size: 12px;
        }

        body.sidebar-icon-only .sidebar-yesterday-sales-count {
            display: none;
        }

        body.sidebar-icon-only:not(.sidebar-collapsed) .app-main {
            margin-left: 94px;
            width: calc(100% - 94px);
            max-width: calc(100% - 94px);
        }

        .pill-outline {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            height: 22px;
            padding: 0 10px;
            border-radius: 999px;

            border: 1px solid rgba(0, 0, 0, .14);
            background: rgba(0, 0, 0, .03);
            color: rgba(0, 0, 0, .70);

            font-weight: 900;
            font-size: 12px;
            line-height: 1;
            user-select: none;
            white-space: nowrap;
        }

        .pill-outline.pill-success {
            border-color: rgba(25, 135, 84, .35);
            background: rgba(25, 135, 84, .10);
            color: #198754;
        }

        .pill-outline.pill-danger {
            border-color: rgba(220, 53, 69, .35);
            background: rgba(220, 53, 69, .10);
            color: #dc3545;
        }

        .pill-outline.pill-muted {
            opacity: .7;
        }

        .pill-outline.pill-primary {
            border-color: rgba(13, 110, 253, .35);
            background: rgba(13, 110, 253, .10);
            color: #0d6efd;
        }

        .pill-outline.pill-purple {
            border-color: rgba(124, 58, 237, .35);
            background: rgba(124, 58, 237, .10);
            color: #7c3aed;
        }

        /* selecionar thumb para contagem */
        .thumb-wrap {
            display: inline-flex;
            padding: 2px;
            border-radius: 14px;
            cursor: pointer;
            user-select: none;
        }

        .thumb-wrap:hover {
            background: rgba(13, 110, 253, .06);
        }

        .thumb-wrap.is-selected {
            background: rgba(25, 135, 84, .14);
        }

        .thumb-wrap.is-selected .ratio {
            border-color: rgba(25, 135, 84, .75) !important;
        }

        .grouped-sale-actions {
            display: inline-flex;
            align-items: stretch;
            justify-content: flex-end;
            gap: 6px;
        }

        .grouped-sale-action-stack {
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 82px;
        }

        .grouped-sale-view-btn,
        .grouped-sale-svg-status {
            min-height: 28px;
            padding: 0 10px;
            border-radius: .25rem;
            font-size: .8125rem;
            font-weight: 700;
            line-height: 1;
        }

        .grouped-sale-view-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .grouped-sale-svg-status {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: 1px solid rgba(0, 0, 0, .12);
            user-select: none;
            white-space: nowrap;
        }

        .grouped-sale-svg-status.is-ready {
            border-color: rgba(25, 135, 84, .35);
            background: rgba(25, 135, 84, .10);
            color: #198754;
        }

        .grouped-sale-svg-status.is-missing {
            border-color: rgba(220, 53, 69, .35);
            background: rgba(220, 53, 69, .10);
            color: #dc3545;
        }

        .grouped-sale-edit-btn {
            width: 38px;
            min-height: 60px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: .25rem;
            flex: 0 0 auto;
        }

        .grouped-sale-edit-btn i {
            font-size: 17px;
        }

        .grouped-sales-header-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
        }

        .grouped-sales-command-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }

        .sales-production-action {
            position: relative;
            display: inline-flex;
        }

        .sales-production-warning-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            width: 18px;
            height: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: #f59e0b;
            color: #ffffff;
            font-size: 11px;
            font-weight: 900;
            line-height: 1;
            box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
            pointer-events: none;
        }

        #tbodySales .sales-item-row>td {
            padding: 10px 10px;
            border-bottom: 1px solid rgba(15, 23, 42, .10);
            vertical-align: middle;
        }

        #tbodySales .sales-item-row>td:first-child {
            border-left: 3px solid transparent;
            padding-left: 8px;
        }

        #tbodySales .sales-item-row.is-production>td:first-child {
            border-left-color: #198754;
        }

        #tbodySales .sales-item-row.is-blocked>td:first-child {
            border-left-color: #f59e0b;
        }

        #tbodySales .sales-item-row:hover>td {
            background: rgba(15, 23, 42, .025);
        }

        .sales-ident-cell {
            min-width: 154px;
        }

        .sales-ident-wrap {
            width: 150px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }

        .sales-ref-line {
            max-width: 150px;
            color: #111827;
            font-size: 12.5px;
            font-weight: 800;
            line-height: 1.15;
            white-space: nowrap;
        }

        .sales-product-title {
            color: #111827;
            font-size: 14.5px;
            font-weight: 800;
            line-height: 1.25;
        }

        .sales-product-cell .badge {
            margin-top: 6px;
            margin-left: 0 !important;
            border-radius: 6px;
        }

        .sales-meta-label {
            color: #64748b;
            font-size: 10.5px;
            font-weight: 800;
            line-height: 1.15;
            text-transform: uppercase;
            letter-spacing: 0;
        }

        .sales-name-value,
        .sales-base-value {
            color: #111827;
            font-size: 14px;
            font-weight: 750;
            line-height: 1.25;
        }

        .sales-base-line {
            display: flex;
            align-items: baseline;
            gap: 7px;
        }

        .sales-deadline-line {
            margin-top: 5px;
        }

        .sales-obs-line {
            max-width: 360px;
            margin-top: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
            color: #475569;
            font-size: 12.5px;
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sales-obs-line.is-empty {
            color: #64748b;
        }

        .sales-qty-badge {
            min-width: 32px;
            height: 24px;
            padding: 0 9px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: #64748b;
            color: #ffffff;
            font-size: 12px;
            font-weight: 900;
            line-height: 1;
        }

        .sales-row-actions {
            min-width: 270px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
        }

        .sales-action-btn {
            width: 32px;
            height: 32px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 7px;
            flex: 0 0 auto;
        }

        .sales-action-btn--production {
            width: 42px;
            height: 42px;
            border-radius: 8px;
        }

        .sales-action-btn--production i {
            font-size: 21px !important;
        }

        .sales-action-btn--slicer {
            border-color: rgba(15, 23, 42, .28);
            color: #0f172a;
            background: #ffffff;
        }

        .sales-action-btn--slicer:hover {
            border-color: #0f766e;
            color: #ffffff;
            background: #0f766e;
        }

        .slicer-page {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .slicer-top {
            border: 1px solid rgba(15, 23, 42, .10);
            border-radius: 8px;
            background: #ffffff;
            box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
            padding: 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .slicer-title-wrap {
            min-width: 0;
        }

        .slicer-kicker {
            color: #0f766e;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .slicer-title {
            margin: 1px 0 0;
            color: #0f172a;
            font-size: 24px;
            font-weight: 900;
            line-height: 1.1;
        }

        .slicer-subtitle {
            margin-top: 5px;
            color: #64748b;
            font-size: 13px;
            font-weight: 700;
        }

        .slicer-workbench {
            display: grid;
            grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
            gap: 16px;
            align-items: start;
        }

        .slicer-panel {
            border: 1px solid rgba(15, 23, 42, .10);
            border-radius: 8px;
            background: #ffffff;
            box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
            overflow: hidden;
        }

        .slicer-panel-head {
            padding: 14px 16px;
            border-bottom: 1px solid rgba(15, 23, 42, .08);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .slicer-panel-title {
            color: #0f172a;
            font-size: 14px;
            font-weight: 900;
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }

        .slicer-panel-body {
            padding: 16px;
        }

        .slicer-sale-card {
            display: grid;
            grid-template-columns: 74px minmax(0, 1fr);
            gap: 12px;
            align-items: center;
        }

        .slicer-sale-card .thumb-wrap,
        .slicer-sale-card img {
            width: 74px !important;
            height: 74px !important;
            border-radius: 8px;
        }

        .slicer-sale-ref {
            color: #2563eb;
            font-size: 12px;
            font-weight: 900;
            line-height: 1.15;
        }

        .slicer-sale-product {
            margin-top: 3px;
            color: #0f172a;
            font-size: 13.5px;
            font-weight: 850;
            line-height: 1.22;
        }

        .slicer-sale-meta {
            margin-top: 8px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .slicer-chip {
            min-height: 24px;
            padding: 4px 8px;
            border-radius: 999px;
            background: #f1f5f9;
            color: #334155;
            font-size: 11px;
            font-weight: 900;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .slicer-chip.is-green {
            background: #dcfce7;
            color: #166534;
        }

        .slicer-component-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }

        .slicer-kind-btn {
            min-height: 82px;
            border: 1px solid rgba(15, 23, 42, .12);
            border-radius: 8px;
            background: #ffffff;
            color: #0f172a;
            padding: 12px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
            text-align: left;
            box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
        }

        .slicer-kind-btn:hover:not(:disabled) {
            border-color: #0f766e;
            box-shadow: 0 10px 22px rgba(15, 118, 110, .12);
        }

        .slicer-kind-btn.active {
            border-color: #16a34a;
            background: #f0fdf4;
            color: #14532d;
        }

        .slicer-kind-btn:disabled {
            opacity: .55;
            cursor: not-allowed;
        }

        .slicer-kind-main {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 900;
        }

        .slicer-kind-main i {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #e0f2fe;
            color: #0369a1;
        }

        .slicer-kind-btn.active .slicer-kind-main i {
            background: #16a34a;
            color: #ffffff;
        }

        .slicer-kind-status {
            color: #64748b;
            font-size: 11px;
            font-weight: 850;
        }

        .slicer-form-grid {
            margin-top: 16px;
            display: grid;
            grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
            gap: 12px;
            align-items: end;
        }

        .slicer-form-grid label {
            color: #475569;
            font-size: 11px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0;
        }

        .slicer-action-row {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 8px;
        }

        .slicer-output-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 260px;
            gap: 16px;
            align-items: stretch;
        }

        .slicer-preview-host {
            min-height: 440px;
            border: 1px solid rgba(15, 23, 42, .10);
            border-radius: 8px;
            background:
                linear-gradient(45deg, #f8fafc 25%, transparent 25%),
                linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f8fafc 75%),
                linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
            background-size: 18px 18px;
            background-position: 0 0, 0 9px, 9px -9px, -9px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .slicer-preview-host svg,
        .slicer-preview-host img {
            width: 94%;
            height: 94%;
            max-width: 94%;
            max-height: 94%;
            display: block;
        }

        .slicer-preview-empty,
        .slicer-empty-shell {
            min-height: 260px;
            color: #64748b;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            text-align: center;
            font-size: 14px;
            font-weight: 800;
        }

        .slicer-preview-empty i,
        .slicer-empty-shell i {
            width: 46px;
            height: 46px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #ecfeff;
            color: #0f766e;
            font-size: 22px;
        }

        .slicer-summary-list {
            display: grid;
            gap: 10px;
        }

        .slicer-summary-item {
            border: 1px solid rgba(15, 23, 42, .08);
            border-radius: 8px;
            padding: 10px;
            background: #f8fafc;
        }

        .slicer-summary-label {
            color: #64748b;
            font-size: 11px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0;
        }

        .slicer-summary-value {
            margin-top: 2px;
            color: #0f172a;
            font-size: 16px;
            font-weight: 950;
            line-height: 1.2;
        }

        .slicer-alert {
            margin-top: 12px;
            border: 1px solid rgba(245, 158, 11, .32);
            border-radius: 8px;
            background: #fffbeb;
            color: #92400e;
            padding: 10px 12px;
            font-size: 12.5px;
            font-weight: 800;
        }

        @media (max-width: 991.98px) {
            .slicer-workbench,
            .slicer-output-grid {
                grid-template-columns: 1fr;
            }

            .slicer-component-grid {
                grid-template-columns: 1fr;
            }

            .slicer-preview-host {
                min-height: 340px;
            }
        }

        @media (max-width: 575.98px) {
            .slicer-top,
            .slicer-panel-head {
                align-items: flex-start;
                flex-direction: column;
            }

            .slicer-form-grid {
                grid-template-columns: 1fr;
            }

            .slicer-action-row .btn {
                width: 100%;
            }
        }

        .sales-single-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            width: 100%;
        }

        .sales-single-toolbar {
            flex: 1 1 auto;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
        }

        .sales-single-days,
        .sales-single-actions,
        .sales-toolbar-group {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }

        .sales-single-days {
            width: 100%;
        }

        .sales-single-actions {
            width: 100%;
            gap: 12px;
        }

        .sales-toolbar-group {
            padding: 4px;
            border: 1px solid rgba(15, 23, 42, .08);
            border-radius: 8px;
            background: rgba(248, 250, 252, .88);
        }

        .sales-toolbar-btn {
            min-height: 32px;
            border: 1px solid transparent;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 0 10px;
            font-size: .8125rem;
            font-weight: 700;
            line-height: 1;
            background: #fff;
            color: #475569;
            transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
            white-space: nowrap;
        }

        .sales-toolbar-btn:hover:not(:disabled) {
            box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
        }

        .sales-toolbar-btn:disabled {
            opacity: .48;
            cursor: not-allowed;
            box-shadow: none;
        }

        .sales-toolbar-btn .sales-toolbar-count {
            min-width: 22px;
            height: 20px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 7px;
            background: rgba(15, 23, 42, .07);
            color: inherit;
            font-size: .75rem;
            font-weight: 800;
        }

        .sales-toolbar-btn-primary {
            border-color: rgba(13, 110, 253, .24);
            color: #0d6efd;
        }

        .sales-toolbar-btn-warning {
            border-color: rgba(245, 158, 11, .35);
            color: #b45309;
        }

        .sales-toolbar-btn-neutral {
            border-color: rgba(100, 116, 139, .22);
            color: #475569;
        }

        .sales-toolbar-btn.is-active.sales-toolbar-btn-primary {
            background: #0d6efd;
            border-color: #0d6efd;
            color: #fff;
        }

        .sales-toolbar-btn.is-active.sales-toolbar-btn-warning {
            background: #f59e0b;
            border-color: #f59e0b;
            color: #111827;
        }

        @media (max-width: 767.98px) {
            .sales-single-header {
                flex-direction: column;
                gap: 12px;
            }

            .sales-single-toolbar,
            .sales-single-days,
            .sales-single-actions,
            .sales-toolbar-group {
                align-items: stretch;
                justify-content: flex-start;
            }

            .sales-toolbar-btn {
                flex: 1 1 auto;
            }

            .grouped-sales-header-actions,
            .grouped-sales-command-actions {
                width: 100%;
                justify-content: flex-start;
            }
        }

        .romaneio-swal-popup {
            width: min(620px, 96vw) !important;
        }

        .romaneio-swal-html {
            margin: 0;
            padding: 0 0 8px;
        }

        .romaneio-preview-shell {
            display: flex;
            justify-content: center;
            overflow: auto;
            padding: 12px;
            background: #f8fafc;
        }

        .romaneio-label-preview {
            width: 100mm;
            height: 150mm;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 1.5mm;
            padding: 4mm 5mm;
            border: 1px solid #111827;
            background: #fff;
            color: #111;
            font-family: Arial, Helvetica, sans-serif;
            text-align: left;
        }

        .romaneio-label-top {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: end;
            gap: 2mm;
            padding-bottom: 2mm;
            border-bottom: .35mm solid #111;
        }

        .romaneio-label-id {
            min-width: 0;
            overflow: hidden;
            color: #111;
            font-size: 5.4mm;
            font-weight: 900;
            line-height: .9;
            white-space: nowrap;
        }

        .romaneio-id-tail {
            display: inline-block;
            margin-left: .45mm;
            letter-spacing: .45mm;
        }

        .romaneio-label-id > .romaneio-id-tail:first-child {
            margin-left: 0;
        }

        .romaneio-label-qty {
            display: inline-flex;
            align-items: baseline;
            justify-content: flex-end;
            gap: .7mm;
            color: #111;
            line-height: 1;
            text-transform: uppercase;
        }

        .romaneio-label-qty strong {
            font-size: 8.5mm;
            font-weight: 900;
            line-height: .9;
        }

        .romaneio-label-qty span {
            font-size: 3.3mm;
            font-weight: 900;
            text-transform: lowercase;
        }

        .romaneio-label-customer {
            display: flex;
            align-items: baseline;
            gap: 1.3mm;
            overflow: hidden;
            color: #111;
            line-height: 1.1;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .romaneio-label-customer span {
            flex: 0 0 auto;
            font-size: 3mm;
            font-weight: 800;
        }

        .romaneio-label-customer strong {
            min-width: 0;
            overflow: hidden;
            font-size: 4.8mm;
            font-weight: 900;
            text-overflow: ellipsis;
        }

        .romaneio-label-trackline {
            display: flex;
            align-items: baseline;
            gap: 1.3mm;
            overflow: hidden;
            color: #111;
            line-height: 1.1;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .romaneio-label-trackline span {
            flex: 0 0 auto;
            font-size: 3mm;
            font-weight: 800;
        }

        .romaneio-label-trackline strong {
            min-width: 0;
            overflow: hidden;
            font-size: 4.2mm;
            font-weight: 900;
            text-overflow: ellipsis;
        }

        .romaneio-label-info {
            display: grid;
            gap: 1mm;
        }

        .romaneio-label-info > div {
            overflow: hidden;
            color: #111;
            line-height: 1.08;
            text-overflow: ellipsis;
        }

        .romaneio-label-personal {
            display: grid;
            gap: .7mm;
            padding: 1.5mm 2mm;
            border: .35mm solid #111;
            background: #fff;
        }

        .romaneio-label-child {
            overflow: hidden;
            font-size: 6.5mm;
            font-weight: 900;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .romaneio-label-base {
            overflow: hidden;
            font-size: 4.8mm;
            font-weight: 900;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .romaneio-label-obs {
            font-size: 3.8mm;
            font-weight: 900;
            white-space: nowrap;
        }

        .romaneio-label-media {
            display: grid;
            gap: 1mm;
            margin-top: auto;
        }

        .romaneio-label-variation,
        .romaneio-label-product {
            font-size: 3.8mm;
            font-weight: 900;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .romaneio-label-product {
            text-align: center;
        }

        .romaneio-label-image-card {
            width: 80mm;
            height: 80mm;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            border: .35mm solid #111;
            background: #fff;
            overflow: hidden;
        }

        .romaneio-label-image-card img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .romaneio-label-image-empty {
            color: #94a3b8;
            font-size: 14mm;
            line-height: 1;
        }
/* Lojas / Shopee */
.stores-workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stores-page-head,
.stores-channel-panel {
    border: 1px solid #d8e3f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.stores-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}

.stores-page-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
}

.stores-page-title i {
    color: #ee4d2d;
}

.stores-page-subtitle {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.stores-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.stores-connection-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.stores-connection-badge.is-connected {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.stores-connection-badge.is-ready {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.stores-channel-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stores-channel-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
    font-weight: 900;
}

.stores-channel-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ee4d2d;
    color: #ffffff;
    font-size: 12px;
}

.stores-channel-panel {
    padding: 14px;
}

.stores-view-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.stores-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.stores-view-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.stores-view-btn.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.stores-view-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 11px;
    font-weight: 900;
}

.stores-view-btn.is-active span {
    background: rgba(255, 255, 255, .20);
    color: #ffffff;
}

.stores-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.stores-toolbar-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.store-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-filter-btn {
    display: inline-grid;
    grid-template-columns: 24px auto minmax(24px, auto);
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.store-filter-btn.has-period-stats {
    grid-template-columns: 24px auto minmax(24px, auto);
    grid-template-rows: auto auto;
    padding-top: 6px;
    padding-bottom: 6px;
}

.store-filter-btn:hover {
    border-color: #22c55e;
    color: #15803d;
    background: #f0fdf4;
    transform: translateY(-1px);
}

.store-filter-btn.is-active {
    border-color: #16a34a;
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .18);
}

.store-filter-icon,
.store-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.store-filter-icon {
    width: 24px;
    height: 24px;
    background: #f1f5f9;
    color: #64748b;
}

.store-filter-count {
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.store-filter-btn.is-active .store-filter-icon,
.store-filter-btn.is-active .store-filter-count {
    background: rgba(255, 255, 255, .20);
    color: #ffffff;
}

.store-filter-period-stats {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 1px;
}

.store-filter-period-stats span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.store-filter-btn.is-active .store-filter-period-stats span {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}

.store-sort-wrap {
    position: relative;
    flex: 0 0 auto;
}

.store-sort-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.store-sort-trigger small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.store-sort-wrap.is-open .store-sort-trigger {
    background: #eff6ff;
}

.store-sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 60;
    min-width: 268px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
}

.store-sort-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px 30px;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.store-sort-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-sort-dir-btn {
    width: 28px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    background: #ffffff;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1;
}

.store-sort-dir-btn:hover,
.store-sort-dir-btn.is-active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.stores-sync-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.stores-messages-panel {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #d8e3f2;
    border-radius: 8px;
    background: #f8fafc;
}

.stores-messages-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.stores-messages-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.stores-messages-title i {
    color: #2563eb;
}

.stores-messages-subtitle {
    margin-top: 2px;
    color: #64748b;
    font-size: 16px;
    font-weight: 700;
}

.stores-messages-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    font-size: 16px;
    font-weight: 850;
    white-space: nowrap;
}

.stores-messages-refresh:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.stores-messages-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stores-messages-list .store-empty-state {
    grid-column: 1 / -1;
}

.store-message-card {
    min-width: 0;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid #d8e3f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.store-message-card.is-unread {
    border-color: #86efac;
    box-shadow: 0 10px 22px rgba(22, 163, 74, .12);
}

.store-message-card.is-forced {
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .12);
}

.store-message-card.is-focused {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18), 0 12px 26px rgba(15, 23, 42, .12);
}

.store-message-summary {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 9px;
}

.store-message-thumb {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #f8fafc;
    color: #94a3b8;
}

.store-message-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.store-message-main {
    min-width: 0;
}

.store-message-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.store-message-client {
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.store-message-order,
.store-message-product {
    color: #64748b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}

.store-message-product {
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.store-message-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
}

.store-message-badges .store-status-pill,
.store-message-badges .store-order-deadline {
    min-height: 22px;
    margin-top: 0;
    padding: 2px 7px;
    font-size: 13px;
    white-space: normal;
}

.store-message-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.store-message-new {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 13px;
    font-weight: 900;
}

.store-message-card .store-chat-composer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.store-message-card .store-chat-thread {
    flex: 1 1 auto;
    height: 416px;
    min-height: 416px;
    max-height: 416px;
    padding: 8px;
}

.store-message-card .store-chat-empty {
    flex: 1 1 auto;
    min-height: 416px;
}

.store-message-card .store-chat-bubble {
    max-width: 92%;
    padding: 7px 9px;
    font-size: 16px;
}

.store-message-card .store-chat-bubble span {
    font-size: 13px;
}

.store-message-card .store-chat-image-link img {
    max-width: 120px;
    max-height: 120px;
}

.store-message-card .store-chat-composer textarea {
    height: 38px;
    min-height: 38px;
    max-height: 88px;
    font-size: 16px;
}

.store-message-card .store-chat-composer-actions .btn,
.store-message-card .store-chat-composer-actions label.btn {
    font-size: 15px;
}

.stores-messages-panel .store-empty-state,
.store-message-card .store-chat-empty {
    font-size: 16px;
}

.store-message-card .store-chat-composer-hint {
    display: none;
}

.store-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-order-group {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.store-order-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 4px;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 900;
}

.store-order-group-head div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.store-order-group-head strong {
    color: #0f172a;
    font-size: 13px;
}

.store-order-group-items {
    display: grid;
    gap: 8px;
}

.store-empty-state {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
}

.store-order-card {
    display: grid;
    grid-template-columns: 120px minmax(300px, 1.35fr) minmax(160px, .55fr) minmax(300px, .9fr) minmax(116px, auto);
    gap: 14px;
    align-items: start;
    padding: 12px;
    border: 1px solid #d8e3f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.store-order-card.is-imported {
    background: #f8fafc;
}

.store-order-card.is-grouped {
    border-color: #c7d8ee;
    box-shadow: none;
}

.store-order-card.is-group-alt {
    background: #f8fbff;
}

.store-order-card.is-focused {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18), 0 12px 26px rgba(15, 23, 42, .12);
}

.store-order-thumb-wrap {
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    padding-top: 0;
}

.store-order-thumb {
    width: 108px;
    height: 108px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #f8fafc;
    color: #94a3b8;
    text-decoration: none;
}

.store-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-order-body,
.store-order-customer,
.store-order-map {
    min-width: 0;
}

.store-order-body,
.store-order-customer,
.store-order-map,
.store-order-actions {
    align-self: start;
}

.store-order-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.store-order-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.store-order-id {
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.store-order-shop,
.store-order-muted {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.store-order-deadline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 23px;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}

.store-order-deadline.is-late {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.store-order-deadline.is-muted {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.store-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.store-status-pill.ready_to_ship {
    background: #dbeafe;
    color: #1d4ed8;
}

.store-status-pill.processed {
    background: #e0f2fe;
    color: #0369a1;
}

.store-status-pill.shipped,
.store-status-pill.to_confirm_receive {
    background: #dcfce7;
    color: #166534;
}

.store-status-pill.completed {
    background: #f1f5f9;
    color: #475569;
}

.store-status-pill.cancelled,
.store-status-pill.in_cancel {
    background: #fee2e2;
    color: #b91c1c;
}

.store-status-pill.unpaid {
    background: #fef3c7;
    color: #92400e;
}

.store-status-pill.no_order {
    background: #f1f5f9;
    color: #475569;
}

.store-order-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.store-order-choices span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 800;
}

.store-order-choices .store-order-model-full-chip {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

.store-order-choices .store-order-qty-chip {
    gap: 5px;
    min-height: 26px;
    padding: 0 9px;
    font-size: 13px;
    font-weight: 950;
}

.store-order-choices .store-order-variation-qty-chip {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.store-order-choices .store-order-purchased-qty-chip {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.store-order-choices .store-order-purchased-qty-chip i {
    color: #7c3aed;
}

.store-order-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1px;
    padding-top: 7px;
    border-top: 1px dashed #dbe4f0;
}

.store-order-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.store-order-metrics .store-qty-breakdown,
.store-process-order-metrics .store-qty-breakdown {
    background: #ecfdf5;
    color: #166534;
    font-weight: 900;
}

.store-order-metrics .store-order-metric-price {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.store-order-metrics .store-order-metric-payment {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.store-order-metrics .store-order-metric-logistic {
    border-color: #dbe4f0;
    background: #f8fafc;
    color: #475569;
}

.store-order-metrics .store-order-metric-logistic.has-tracking {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.store-order-metrics .store-order-metric-tracking {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.store-order-section-label {
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.store-order-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin-bottom: 4px;
}

.store-order-section-head .store-order-section-label {
    margin-bottom: 0;
}

.store-order-debug-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #dbe4f0;
    border-radius: 4px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    line-height: 1;
}

.store-order-debug-btn:hover,
.store-order-debug-btn:focus-visible {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #0d6efd;
}

.store-order-customer-name,
.store-order-product-name {
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-order-customer-name.is-masked {
    color: #64748b;
}

.store-order-customer-line {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
    margin-top: 3px;
    color: #475569;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.store-order-customer-line i {
    margin-top: 1px;
    color: #64748b;
    font-size: 11px;
    flex: 0 0 auto;
}

.store-order-customer-document-images {
    display: grid;
    gap: 4px;
    margin-top: 5px;
}

.store-order-customer-document-images img {
    display: block;
    width: 100%;
    max-width: 240px;
    min-height: 18px;
    object-fit: contain;
    object-position: left center;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 4px;
    background: #fff;
}

.store-order-map {
    display: grid;
    gap: 6px;
}

.store-order-map-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 9px;
}

.store-order-map-content.has-thumb {
    grid-template-columns: 108px minmax(0, 1fr);
}

.store-order-map-thumb {
    width: 108px;
    height: 108px;
    flex: 0 0 108px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #94a3b8;
}

.store-order-map-thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.store-order-map-main {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 6px;
    justify-items: start;
}

.store-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: auto;
    max-width: max-content;
    gap: 6px;
    min-height: 28px;
    margin-top: 0;
    padding: 0 9px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #315ca8;
    font-size: 12px;
    font-weight: 850;
}

.store-link-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.store-link-btn.is-active {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.store-order-metric-photo-request {
    background: #f0fdf4 !important;
    color: #166534 !important;
}

.store-order-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 7px;
}

.store-chat-btn {
    position: relative;
    width: 100%;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
}

.store-chat-btn.has-history {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.store-chat-btn.has-alert {
    color: #166534;
    border-color: #86efac;
    background: #dcfce7;
}

.store-chat-btn.has-alert::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 2px #dcfce7;
}

.store-chat-btn span {
    position: absolute;
    right: -5px;
    top: -6px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.store-process-btn {
    min-height: 36px;
    font-weight: 850;
    width: 100%;
}

.store-product-pick {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
}

.store-product-pick-name {
    min-width: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.store-chat-product-picker {
    text-align: left;
}

.store-chat-product-picker-summary {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

#swal_store_chat_product_list {
    max-height: 390px;
    overflow: auto;
}

.store-map-summary,
.store-process-order {
    display: grid;
    gap: 12px;
    align-items: center;
}

.store-map-summary {
    grid-template-columns: 58px minmax(0, 1fr);
}

.store-process-order {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #d8e3f2;
    border-radius: 8px;
    background: #f8fafc;
}

.store-process-media {
    min-width: 0;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
}

.store-map-thumb,
.store-process-thumb {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #f8fafc;
    color: #94a3b8;
}

.store-process-order .store-process-thumb {
    width: 78px;
    height: 78px;
    background: #ffffff;
}

.store-map-thumb img,
.store-process-thumb img {
    width: 100%;
    height: 100%;
}

.store-map-thumb img {
    object-fit: cover;
}

.store-process-thumb img {
    object-fit: contain;
}

.store-process-media-pills {
    width: 100%;
    display: grid;
    gap: 5px;
}

.store-process-media-pills span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 22px;
    padding: 3px 6px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.store-process-media-pills .store-process-order-unit {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.store-process-media-pills .store-process-order-count {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.store-process-media-pills .store-process-order-paid {
    border-color: #dbe4f0;
    background: #ffffff;
    color: #475569;
}

.store-process-order-main {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 6px;
}

.store-process-order-status-row {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}

.store-process-order-status-row .store-status-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
}

.store-process-order-status-row .store-order-deadline {
    min-height: 24px;
    margin-top: 0;
    padding: 2px 7px;
    font-size: 10.5px;
}

.store-process-order-id {
    min-width: 0;
    color: #1d4ed8;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.store-process-order-deadline {
    min-width: 0;
}

.store-process-order-deadline .store-order-deadline {
    max-width: 100%;
    margin-top: 0;
    white-space: normal;
}

.store-process-order-choices {
    min-width: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.store-process-order-variation {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1e40af;
    font-size: 12px;
    line-height: 1.25;
}

.store-process-order-variation-chip {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.store-process-order-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.store-process-order-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.store-process-order-product {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-self: start;
    max-width: 100%;
    padding: 4px 7px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.store-process-order-product span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.store-process-swal {
    width: min(1220px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
}

.store-process-swal .swal2-title {
    align-self: stretch;
    width: 100%;
    margin: 0 0 12px;
    padding: 0 4px;
    color: #334155;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.25;
    text-align: left;
}

.store-process-swal .swal2-html-container {
    max-height: none;
    overflow: visible;
}

.store-process-grid {
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(280px, 1fr) minmax(320px, 1.05fr);
    gap: 12px;
    height: min(660px, calc(100vh - 190px));
    text-align: left;
}

.store-process-panel {
    min-width: 0;
    min-height: 0;
    padding: 12px;
    border: 1px solid #d8e3f2;
    border-radius: 8px;
    background: #ffffff;
    overflow: auto;
}

.store-process-panel:first-child {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.store-process-panel:first-child > .store-process-heading,
.store-process-panel:first-child > .store-process-order {
    flex: 0 0 auto;
}

.store-process-panel.is-chat-expanded > .store-process-heading,
.store-process-panel.is-chat-expanded > .store-process-order {
    display: none;
}

.store-process-panel.is-chat-expanded #swal_store_conversation_box {
    flex: 1 1 auto;
    min-height: 0;
}

.store-process-panel.is-chat-expanded #swal_store_conversation_box .store-chat-thread.is-compact {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
}

.store-process-heading {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.store-process-buyer-note {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
    padding: 10px 11px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    color: #7c2d12;
}

.store-process-buyer-note-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9a3412;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.store-process-buyer-note-body {
    color: #431407;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.store-process-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.store-process-paid-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 54%;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.1;
    text-align: right;
}

.store-process-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.store-process-mode button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    border: 1px solid #d7dee8;
    border-radius: 7px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
}

.store-process-mode button.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.store-product-list {
    max-height: 410px;
    overflow: auto;
}

.store-process-note {
    padding: 10px;
    border: 1px solid #bbf7d0;
    border-radius: 7px;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.store-process-merge-items {
    display: grid;
    gap: 8px;
    padding: 9px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.store-process-merge-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.store-process-merge-list {
    display: grid;
    gap: 6px;
}

.store-process-merge-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 8px;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
}

.store-process-merge-option span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.store-process-merge-option strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.store-process-merge-option small {
    color: #475569;
    font-size: 11px;
    font-weight: 750;
}

.store-new-product-image-block {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.store-new-product-image-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #cbdcf0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
}

.store-new-product-image-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.store-new-product-image-card > div {
    display: grid;
    place-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.store-new-product-image-card i {
    color: #2563eb;
    font-size: 32px;
}

.store-new-product-image-source {
    min-height: 16px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.store-new-product-image-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.store-process-sale-panel {
    padding: 10px;
}

.store-process-sale-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(100px, .56fr);
    gap: 8px;
}

.store-process-sale-grid .form-label {
    margin-bottom: 3px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.store-process-sale-full {
    grid-column: 1 / -1;
}

.store-personalization-reference {
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.store-personalization-reference-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
}

.store-personalization-reference-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.store-personalization-reference-pills span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    padding: 4px 8px;
    border: 1px solid #d8b4fe;
    border-radius: 999px;
    background: #faf5ff;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 900;
}

.store-personalization-reference-pills small {
    color: #7c3aed;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.store-personalization-reference-source {
    padding-top: 6px;
    border-top: 1px dashed #bfdbfe;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.store-process-sale-panel .border.rounded-2 {
    margin-top: 8px !important;
    padding: 8px 10px !important;
}

.store-process-sale-panel .form-check {
    min-height: 24px;
}

.store-process-sale-panel .form-check + .form-check {
    margin-top: 4px !important;
}

.store-process-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 8px;
}

.store-conversation-modal {
    text-align: left;
}

.store-conversation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.store-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #d8e3f2;
    border-radius: 8px;
    background: #f8fafc;
}

.store-chat-thread.is-compact {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
}

.store-message-card .store-chat-thread.is-compact {
    flex: 0 0 416px;
    height: 416px;
    min-height: 416px;
    max-height: 416px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.store-chat-head {
    display: grid;
    gap: 6px;
    margin: 2px 0 8px;
}

.store-chat-titlebar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
}

.store-chat-titlegroup {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.store-chat-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.store-chat-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.store-chat-updated {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 22px;
    max-width: 64%;
    padding: 3px 8px;
    border: 1px solid #d7e3f4;
    border-radius: 999px;
    background: #f8fbff;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.store-chat-updated-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 7px;
}

.store-chat-open-messages-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
}

.store-chat-open-messages-btn:hover {
    background: #eff6ff;
}

.store-chat-expand-btn {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 12px;
}

.store-chat-expand-btn:hover {
    background: #eff6ff;
}

.store-chat-row {
    display: flex;
}

.store-chat-row.is-me {
    justify-content: flex-end;
}

.store-chat-bubble {
    max-width: min(84%, 420px);
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
}

.store-chat-row.is-me .store-chat-bubble {
    background: #dcfce7;
}

.store-chat-display-text {
    color: #475569;
    font-style: italic;
}

.store-chat-order-ref {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d4ed8;
    font: inherit;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.store-chat-order-ref:hover {
    color: #1e40af;
}

.store-chat-order-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    min-width: min(300px, 100%);
    padding: 7px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.store-chat-order-thumb {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #c7d8ee;
    border-radius: 8px;
    background: #ffffff;
    color: #94a3b8;
}

.store-chat-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-chat-order-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.store-chat-order-title {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.store-chat-order-pills,
.store-chat-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.store-chat-order-pills span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 19px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 9.5px;
    font-weight: 900;
}

.store-chat-order-pills .store-chat-order-variation {
    border: 1px solid #bfdbfe;
    background: #ffffff;
    color: #1d4ed8;
}

.store-chat-order-pills .store-chat-order-units {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
}

.store-chat-order-pills .store-chat-order-count {
    border: 1px solid #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.store-chat-order-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 25px;
    flex: 1 1 94px;
    padding: 0 7px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 10.5px;
    font-weight: 900;
}

.store-chat-order-actions button:disabled {
    color: #64748b;
    background: #f8fafc;
}

.store-chat-bubble span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.store-chat-bubble .store-chat-order-pills span {
    display: inline-flex;
    margin-top: 0;
    color: #475569;
}

.store-chat-image-link {
    display: block;
    margin-bottom: 6px;
}

.store-chat-image-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0 6px 6px 0;
}

.store-chat-image-link img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 7px;
    display: block;
    cursor: grab;
}

.store-chat-image-use {
    border: 0;
    border-radius: 999px;
    padding: 3px 8px;
    background: #e0f2fe;
    color: #075985;
    font-size: 10px;
    font-weight: 800;
}

.store-chat-composer {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #d8e3f2;
    border-radius: 8px;
    background: #ffffff;
}

#swal_store_conversation_box {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

#swal_store_conversation_box .store-chat-composer {
    flex: 0 0 auto;
    margin-top: 10px;
}

#swal_store_conversation_box .store-chat-head {
    margin: 12px 0 8px;
    padding-top: 2px;
}

#swal_store_conversation_box .store-chat-titlebar {
    flex-wrap: nowrap;
    align-items: center;
}

#swal_store_conversation_box .store-chat-title {
    min-width: 0;
}

#swal_store_conversation_box .store-chat-updated {
    max-width: 100%;
    white-space: normal;
}

.store-chat-composer-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.store-chat-composer-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.store-chat-composer-hint {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.store-chat-attachment-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px;
    border: 1px solid #c7d8ee;
    border-radius: 7px;
    background: #f8fbff;
}

.store-chat-attachment-preview img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
}

.store-chat-attachment-preview span {
    min-width: 0;
    flex: 1;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.store-chat-attachment-preview button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 900;
}

.store-chat-empty {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 1599.98px) {
    .stores-messages-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .stores-page-head,
    .stores-toolbar {
        grid-template-columns: 1fr;
    }

    .stores-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .stores-page-actions {
        justify-content: flex-start;
    }

    .stores-toolbar {
        display: flex;
        flex-direction: column;
    }

    .stores-toolbar-controls {
        width: 100%;
    }

    .stores-sync-meta {
        width: 100%;
        white-space: normal;
    }

    .stores-messages-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-order-card {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
    }

    .store-order-customer,
    .store-order-map,
    .store-order-actions {
        grid-column: 2;
    }

    .store-order-actions {
        justify-content: flex-start;
    }

    .store-process-grid {
        height: auto;
        max-height: none;
        grid-template-columns: 1fr;
    }

    .store-process-swal .swal2-html-container {
        max-height: calc(100vh - 150px);
        overflow: auto;
    }

    .store-process-panel:first-child {
        max-height: none;
        overflow: visible;
    }

    #swal_store_conversation_box {
        flex: 0 0 auto;
        overflow: visible;
    }

    .store-chat-thread.is-compact {
        flex: 0 0 auto;
        height: clamp(260px, 48vh, 430px);
        max-height: clamp(260px, 48vh, 430px);
    }
}

@media (max-width: 575.98px) {
    .scroll-top-btn {
        right: 12px;
        bottom: 14px;
        min-height: 40px;
        padding: 0 12px;
    }

    .stores-channel-panel {
        padding: 10px;
    }

    .stores-view-btn {
        flex: 1 1 130px;
    }

    .store-filter-btn {
        grid-template-columns: 24px minmax(0, 1fr) minmax(24px, auto);
        width: 100%;
    }

    .store-sort-wrap,
    .store-sort-trigger,
    .store-sort-menu {
        width: 100%;
    }

    .store-sort-menu {
        min-width: 0;
    }

    .stores-messages-head,
    .store-message-topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .stores-messages-refresh {
        width: 100%;
    }

    .stores-messages-list {
        grid-template-columns: 1fr;
    }

    .store-message-meta {
        justify-content: flex-start;
        white-space: normal;
    }

    .store-message-summary,
    .store-chat-product-picker-summary {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .store-message-thumb {
        width: 48px;
        height: 48px;
    }

    .store-message-card .store-chat-composer-actions .btn,
    .store-message-card .store-chat-composer-actions label.btn {
        flex: 1 1 auto;
    }

    .store-order-card {
        grid-template-columns: 1fr;
    }

    .store-order-thumb-wrap,
    .store-order-customer,
    .store-order-map,
    .store-order-actions {
        grid-column: 1;
    }

    .store-order-thumb-wrap {
        align-self: start;
    }

    .store-order-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .store-order-topline,
    .store-conversation-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-process-two {
        grid-template-columns: 1fr;
    }

    .store-process-sale-grid {
        grid-template-columns: 1fr;
    }

    .store-process-sale-full {
        grid-column: 1;
    }

    .store-new-product-image-card {
        min-height: 190px;
    }
}
