.crm-ui-v2 {
    --accent: var(--crm-accent);
    --bg-card: var(--crm-surface);
    --border: var(--crm-border);
    --btn-shadow: 0 8px 18px rgb(52 92 255 / 48%);
    --active-border: #dce6f2;
    --crm-accent: #345cff;
    --crm-accent-hover: #075fd5;
    --crm-accent-soft: #f3f5fa;
    --crm-background: #f3f5fa;
    --crm-surface: #ffffff;
    --crm-surface-muted: #f3f5fa;
    --crm-border: #dce6f2;
    --crm-border-strong: #c8d7e8;
    --crm-text: #000;
    --crm-text-secondary: #000;
    --crm-text-muted: #000;
    --crm-success: #0b6ff4;
    --crm-danger: #dc2626;
    --crm-shadow: 0 12px 32px rgba(27, 57, 96, 0.06);
    --crm-radius-sm: 12px;
    --crm-radius-md: 12px;
    --crm-radius-lg: 16px;
    --crm-sidebar-width: 272px;
    --crm-sidebar-collapsed: 88px;
    --text-primary: var(--crm-text);
    --text-secondary: var(--crm-text-secondary);
    background: var(--crm-background);
    color: var(--crm-text);
    font-family: "Inter", sans-serif;
    margin: 0;
    min-width: 320px;
    padding: 0;
}
[data-theme="dark"] .crm-ui-v2 {
    --crm-accent: #4f9cff;
    --crm-accent-hover: #70adff;
    --crm-accent-soft: #152d4d;
    --crm-background: #0f1724;
    --crm-surface: #172131;
    --crm-surface-muted: #1b2738;
    --crm-border: #2b3a4e;
    --crm-border-strong: #3a4b62;
    --crm-text: #f3f7fc;
    --crm-text-secondary: #b5c1d1;
    --crm-text-muted: #8796aa;
    --crm-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}
.mbot20 {
    margin-bottom: 20px;
}
.crm-ui-v2 *, .crm-ui-v2 *::before, .crm-ui-v2 *::after {
    box-sizing: border-box;
}
.crm-ui-v2 button, .crm-ui-v2 input, .crm-ui-v2 select, .crm-ui-v2 textarea {
    font: inherit;
}
.crm-ui-v2 button, .crm-ui-v2 select {
    cursor: pointer;
}
.crm-icon-sprite {
    height: 0;
    overflow: hidden;
    position: absolute;
    width: 0;
}
.crm-icon {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 20px;
}
.crm-shell {
    display: grid;
    grid-template-columns: var(--crm-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 180ms ease;
}
.crm-sidebar {
    background: var(--crm-surface);
    border-right: 1px solid var(--crm-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 50;
}
.crm-sidebar__brand-row {
    align-items: center;
    display: flex;
    flex: 0 0 94px;
    gap: 12px;
    justify-content: space-between;
    padding: 20px 12px;
}
.crm-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}
.crm-brand__logo {
    background-color: var(--crm-accent);
    display: block;
    flex: none;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}
.crm-brand__logo--full {
    height: 46px;
    -webkit-mask-image: url("/assets/images/recepto-logo.svg");
    mask-image: url("/assets/images/recepto-logo.svg");
    width: 160px;
}
.crm-brand__logo--mark {
    display: none;
    height: 40px;
    -webkit-mask-image: url("/assets/images/recepto-mark.svg");
    mask-image: url("/assets/images/recepto-mark.svg");
    width: 40px;
}
.crm-icon-button {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text-secondary);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    width: 40px;
}
.crm-icon-button:hover, .crm-icon-button:focus-visible {
    background: var(--crm-accent-soft);
    border-color: var(--crm-accent);
    color: var(--crm-accent);
}
.crm-icon-button:focus-visible, .crm-sidebar__link:focus-visible, .crm-primary-action:focus-visible, .crm-user-menu:focus-visible, .crm-filter-reset:focus-visible, .crm-table-action:focus-visible, .crm-pagination a:focus-visible {
    outline: 3px solid rgba(11, 111, 244, 0.2);
    outline-offset: 2px;
}
.crm-sidebar__nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px;
}
.crm-sidebar__link {
    align-items: center;
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text-secondary);
    display: flex;
    font-size: 14px;
    font-weight: 500;
    gap: 14px;
    min-height: 50px;
    padding: 0 14px;
    position: relative;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}
.crm-sidebar__link::before {
    background: transparent;
    border-radius: 0 4px 4px 0;
    content: "";
    height: 30px;
    left: -16px;
    position: absolute;
    width: 4px;
}
.crm-sidebar__link:hover {
    background: var(--crm-surface-muted);
    color: var(--crm-text);
}
.crm-sidebar__link.is-active {
    background: var(--crm-accent-soft);
    color: var(--crm-accent);
    font-weight: 650;
}
.crm-sidebar__link.is-active::before {
    background: var(--crm-accent);
}
.crm-sidebar__link .crm-icon {
    flex: 0 0 21px;
    height: 21px;
    width: 21px;
}
.crm-sidebar__footer {
    padding: 16px;
}
.crm-support-card {
    align-items: center;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    color: var(--crm-accent);
    display: flex;
    gap: 12px;
    min-height: 76px;
    padding: 14px;
}
.crm-support-card span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.crm-support-card strong {
    color: var(--crm-text);
    font-size: 13px;
    font-weight: 600;
}
.crm-support-card small {
    color: var(--crm-text-muted);
    font-size: 11px;
    margin-top: 3px;
}
.crm-sidebar-overlay {
    background: rgba(15, 23, 36, 0.46);
    border: 0;
    display: none;
    inset: 0;
    padding: 0;
    position: fixed;
    z-index: 40;
}
.crm-workspace {
    min-width: 0;
}
.crm-topbar {
    align-items: center;
    background: color-mix(in srgb, var(--crm-background) 92%, transparent);
    border-bottom: 1px solid transparent;
    display: flex;
    height: 94px;
    justify-content: space-between;
    padding: 20px 28px 16px 32px;
    position: sticky;
    top: 0;
    backdrop-filter: blur(14px);
    z-index: 30;
}
.crm-topbar__heading {
    align-items: center;
    display: flex;
    gap: 12px;
}
.crm-topbar h1 {
    color: var(--crm-text);
    font-size: 25px;
    font-weight: 750;
    letter-spacing: 0;
    margin: 0;
}
.crm-topbar__actions {
    align-items: center;
    display: flex;
    gap: 10px;
}
.crm-topbar-mode-switches {
    align-items: center;
    display: flex;
    gap: 6px;
}
.crm-report-trigger {
    align-items: center;
    background: var(--crm-accent-soft);
    border: 1px solid var(--crm-accent);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-accent);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
    height: 36px;
    padding: 0 11px;
    transition: background-color 160ms ease, color 160ms ease;
    white-space: nowrap;
}
.crm-report-trigger:hover, .crm-report-trigger:focus-visible {
    background: var(--crm-accent);
    color: #ffffff;
    outline: 0;
}
.crm-report-trigger .crm-icon {
    height: 16px;
    width: 16px;
}
.crm-ui-v2 .crm-compact-switch {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: 999px;
    color: var(--crm-text-muted);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    gap: 6px;
    min-width: 83px;
    padding: 5px 7px;
    white-space: nowrap;
}
.crm-compact-switch__track {
    background: var(--crm-border-strong);
    border-radius: 999px;
    flex: 0 0 24px;
    height: 14px;
    position: relative;
    transition: background .2s ease;
    width: 24px;
}
.crm-compact-switch__track span {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .24);
    height: 10px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform .2s ease;
    width: 10px;
}
.crm-compact-switch[aria-checked="true"] {
    background: var(--crm-accent-soft);
    border-color: var(--crm-accent);
    color: var(--crm-accent);
}
.crm-compact-switch[aria-checked="true"] .crm-compact-switch__track {
    background: var(--crm-success);
}
.crm-compact-switch[aria-checked="true"] .crm-compact-switch__track span {
    transform: translateX(10px);
}
.crm-mobile-menu {
    display: none;
}
.crm-topbar .theme-toggle {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-sm);
    height: 40px;
    min-width: 40px;
    padding: 0;
    width: 40px;
}
.crm-topbar .theme-toggle::before {
    display: none;
}
.crm-theme-icon--dark {
    display: none;
}
[data-theme="dark"] .crm-theme-icon--light {
    display: none;
}
[data-theme="dark"] .crm-theme-icon--dark {
    display: block;
}
.crm-user-menu {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text);
    display: flex;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    text-decoration: none;
    transition: background-color 160ms ease;
}
.crm-user-menu:hover, .crm-user-menu:focus-visible, .crm-user-menu[aria-expanded="true"] {
    background: var(--crm-accent-soft);
}
.crm-user-dropdown {
    position: relative;
}
.crm-user-menu__avatar {
    align-items: center;
    background: var(--crm-accent);
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 14px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
}
.crm-user-menu__name {
    color: var(--crm-text);
    font-size: 14px;
    font-weight: 600;
}
.crm-user-menu .crm-icon {
    height: 16px;
    transition: transform 160ms ease;
    width: 16px;
}
.crm-user-menu[aria-expanded="true"] .crm-user-menu__chevron {
    transform: rotate(180deg);
}
.crm-user-dropdown__menu {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    box-shadow: 0 18px 44px rgba(27, 57, 96, 0.17);
    display: grid;
    gap: 3px;
    min-width: 190px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 120;
}
.crm-user-dropdown__menu[hidden] {
    display: none;
}
.crm-user-dropdown__item {
    align-items: center;
    border-radius: 8px;
    color: var(--crm-text);
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    text-decoration: none;
}
.crm-user-dropdown__item:hover, .crm-user-dropdown__item:focus-visible {
    background: var(--crm-surface-muted);
    outline: 0;
}
.crm-user-dropdown__item .crm-icon {
    color: var(--crm-text-secondary);
    height: 18px;
    width: 18px;
}
.crm-user-dropdown__item--logout {
    color: var(--crm-danger);
}
.crm-user-dropdown__item--logout .crm-icon {
    color: currentColor;
}
.crm-primary-action, .crm-ui-v2 a.crm-primary-action {
    align-items: center;
    background: var(--crm-accent);
    border: 1px solid var(--crm-accent);
    border-radius: var(--crm-radius-sm);
    box-shadow: var(--btn-shadow);
    color: #ffffff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 650;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.crm-primary-action:hover, .crm-ui-v2 a.crm-primary-action:hover {
    background: var(--crm-accent-hover);
    border-color: var(--crm-accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}
.crm-primary-action .crm-icon {
    height: 17px;
    width: 17px;
}
.crm-content {
    margin: 0;
    max-width: none;
    min-height: calc(100vh - 132px);
    padding: 10px 28px 32px 32px;
    width: 100%;
}
.crm-footer {
    color: var(--crm-text-muted);
    font-size: 12px;
    padding: 0 32px 20px;
    text-align: center;
}
.crm-footer p {
    margin: 0;
}
.crm-auth-layout {
    min-height: 100vh;
    width: 100%;
}
.crm-auth-content {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}
.crm-ui-v2 .system-message {
    border: 1px solid var(--crm-accent);
    border-radius: var(--crm-radius-md);
    background: var(--crm-surface);
    box-shadow: 0 14px 34px rgba(27, 57, 96, 0.14);
    color: var(--crm-accent);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    max-width: calc(100% - 48px);
    padding: 14px 48px 14px 16px;
    position: fixed;
    right: 450px;
    top: 20px;
    width: 380px;
    z-index: 9999;
}
.crm-ui-v2 .system-message.alert-error {
    border-color: var(--crm-danger);
    color: var(--crm-danger);
}
.crm-ui-v2 .system-message__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: currentColor;
    display: flex;
    font-size: 22px;
    height: 32px;
    justify-content: center;
    opacity: 0.7;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 6px;
    width: 32px;
}
.crm-ui-v2 .system-message__close:hover, .crm-ui-v2 .system-message__close:focus-visible {
    opacity: 1;
}
.crm-ui-v2 .toast-notification {
    align-items: flex-start;
    animation: crm-toast-in 260ms ease-out both;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    bottom: 24px;
    box-shadow: 0 20px 54px rgba(27, 57, 96, 0.2);
    color: var(--crm-text);
    display: flex;
    gap: 13px;
    max-width: calc(100% - 48px);
    min-width: 320px;
    padding: 16px 48px 16px 16px;
    position: fixed;
    right: 24px;
    width: 370px;
    z-index: 10002;
}
.crm-ui-v2 .toast-notification.is-closing {
    animation: crm-toast-out 240ms ease-in both;
}
.crm-ui-v2 .toast-icon {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: 10px;
    color: var(--crm-accent);
    display: flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
}
.crm-ui-v2 .toast-icon .crm-icon {
    height: 21px;
    width: 21px;
}
.crm-ui-v2 .toast-content {
    flex: 1;
    min-width: 0;
}
.crm-ui-v2 .toast-title {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    margin: 1px 0 3px;
}
.crm-ui-v2 .toast-body {
    color: var(--crm-text-secondary);
    font-size: 13px;
    line-height: 1.45;
}
.crm-ui-v2 .toast-link {
    color: var(--crm-accent);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
    text-decoration: none;
}
.crm-ui-v2 .toast-link:hover, .crm-ui-v2 .toast-link:focus-visible {
    color: var(--crm-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.crm-ui-v2 .toast-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--crm-text-muted);
    display: flex;
    font-size: 22px;
    height: 32px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 9px;
    top: 9px;
    width: 32px;
}
.crm-ui-v2 .toast-close:hover, .crm-ui-v2 .toast-close:focus-visible {
    background: var(--crm-surface-muted);
    color: var(--crm-text);
}
.crm-ui-v2 .browser-notification-banner {
    align-items: center;
    background: var(--crm-text);
    border: 1px solid transparent;
    border-radius: var(--crm-radius-md);
    bottom: 24px;
    box-shadow: 0 14px 36px rgba(27, 57, 96, 0.22);
    color: var(--crm-surface);
    display: flex;
    font-size: 13px;
    gap: 12px;
    left: 50%;
    line-height: 1.4;
    max-width: min(440px, calc(100% - 32px));
    padding: 11px 12px 11px 15px;
    position: fixed;
    transform: translateX(-50%);
    width: max-content;
    z-index: 10001;
}
.crm-ui-v2 .browser-notification-banner.is-denied {
    background: var(--crm-surface);
    border-color: var(--crm-danger);
    color: var(--crm-danger);
}
.crm-ui-v2 .browser-notification-banner__action {
    background: var(--crm-surface);
    border: 0;
    border-radius: 7px;
    color: var(--crm-text);
    font-weight: 700;
    padding: 7px 10px;
}
.crm-ui-v2 .browser-notification-banner__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: currentColor;
    display: flex;
    flex: 0 0 28px;
    font-size: 20px;
    height: 28px;
    justify-content: center;
    padding: 0;
}
.crm-ui-v2 .browser-notification-banner__close:hover, .crm-ui-v2 .browser-notification-banner__close:focus-visible {
    background: rgba(127, 127, 127, 0.18);
}
@keyframes crm-toast-in {
    from {
        opacity: 0;
        transform: translate3d(32px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
@keyframes crm-toast-out {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(32px, 0, 0);
    }
}
.crm-orders-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    width: 100%;
}
.crm-kpi-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
}
.crm-kpi-card {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    display: flex;
    gap: 18px;
    min-height: 116px;
    padding: 20px 22px;
}
.crm-kpi-card__icon {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: var(--crm-radius-md);
    color: var(--crm-accent);
    display: inline-flex;
    flex: 0 0 54px;
    height: 54px;
    justify-content: center;
}
.crm-kpi-card__icon .crm-icon {
    height: 27px;
    width: 27px;
}
.crm-kpi-card__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.crm-kpi-card__content strong {
    color: var(--crm-text);
    font-size: 24px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}
.crm-kpi-card__content span {
    color: var(--crm-text-secondary);
    font-size: 12px;
    font-weight: 500;
}
.crm-filter-panel {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    padding: 16px;
}
.crm-filter-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(140px, 1.05fr) minmax(175px, 1.25fr) repeat(4, minmax(135px, 1fr)) auto;
}
.crm-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.crm-filter-field--date {
    position: relative;
}
.crm-date-period-popover {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    box-shadow: 0 18px 40px rgba(27, 57, 96, 0.18);
    display: grid;
    gap: 10px;
    left: 0;
    padding: 14px;
    position: absolute;
    top: calc(100% + 10px);
    width: min(290px, calc(100vw - 32px));
    z-index: 10020;
}
.crm-date-period-popover::before {
    background: var(--crm-surface);
    border-left: 1px solid var(--crm-border);
    border-top: 1px solid var(--crm-border);
    content: '';
    height: 12px;
    left: 24px;
    position: absolute;
    top: -7px;
    transform: rotate(45deg);
    width: 12px;
}
.crm-date-period-popover[hidden] {
    display: none;
}
.crm-date-period-popover__field {
    display: grid;
    gap: 5px;
}
.crm-date-period-popover__field label {
    color: var(--crm-text-secondary);
    font-size: 11px;
    font-weight: 650;
}
.crm-date-period-popover .crm-input-icon input {
    height: 40px;
}
.crm-filter-field label {
    color: var(--crm-text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
}
.crm-filter-field input, .crm-filter-field select {
    appearance: none;
    background-color: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text);
    font: inherit;
    font-size: 12px;
    height: 44px;
    margin: 0;
    min-width: 0;
    padding: 0 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}
.crm-filter-field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--crm-text-muted) 50%), linear-gradient(135deg, var(--crm-text-muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 19px, calc(100% - 12px) 19px;
    background-repeat: no-repeat;
    background-size: 4px 4px, 4px 4px;
    padding-right: 28px;
}
.crm-filter-field input:focus, .crm-filter-field select:focus {
    border-color: var(--crm-accent);
    box-shadow: 0 0 0 3px rgba(11, 111, 244, 0.12);
    outline: 0;
}
.crm-input-icon {
    position: relative;
}
.crm-input-icon > .crm-icon {
    color: var(--crm-text-muted);
    height: 18px;
    left: 12px;
    pointer-events: none;
    position: absolute;
    top: 13px;
    width: 18px;
    z-index: 1;
}
.crm-input-icon > input {
    padding-left: 38px;
}
.crm-input-icon--end > input {
    padding-left: 12px;
    padding-right: 40px;
}
.crm-input-icon--end > button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--crm-text-muted);
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 2px;
    top: 2px;
    width: 38px;
}
.crm-input-icon--end > button:hover {
    color: var(--crm-accent);
}
.crm-filter-reset {
    align-items: center;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-accent);
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 7px;
    height: 44px;
    justify-content: center;
    padding: 0 12px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.crm-filter-reset:hover {
    background: var(--crm-accent-soft);
    border-color: var(--crm-accent);
}
.crm-filter-reset .crm-icon {
    height: 17px;
    width: 17px;
}
.crm-table-card {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    min-width: 0;
    overflow: visible;
}
.crm-table-scroll {
    border-radius: var(--crm-radius-lg) var(--crm-radius-lg) 0 0;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
}
.crm-orders-table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    min-width: 1100px;
    table-layout: auto;
    width: 100%;
}
.crm-orders-table thead {
    background: var(--crm-surface-muted);
}
.crm-orders-table th {
    background: var(--crm-surface-muted);
    border-bottom: 1px solid var(--crm-border);
    color: var(--crm-text-secondary);
    font-size: 11px;
    font-weight: 650;
    height: 50px;
    letter-spacing: 0.01em;
    padding: 0 14px;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
}
.crm-orders-table th:first-child {
    border-radius: var(--crm-radius-lg) 0 0 0;
}
.crm-orders-table th:last-child {
    border-radius: 0 var(--crm-radius-lg) 0 0;
}
.crm-orders-table td {
    background: var(--crm-surface);
    border-bottom: 1px solid var(--crm-border);
    color: var(--crm-text);
    font-size: 12px;
    height: 67px;
    line-height: 1.45;
    padding: 10px 14px;
    vertical-align: middle;
}
.crm-orders-table tbody tr:last-child td {
    border-bottom: 0;
}
.crm-orders-table tbody tr:hover td {
    background: var(--crm-surface-muted);
}
.crm-orders-table .crm-order-row {
    position: relative;
}
.crm-orders-table .crm-order-id {
    background: transparent;
    border: 0;
    color: var(--crm-accent);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--crm-accent) 35%, transparent);
    text-underline-offset: 3px;
}
.crm-order-customer {
    color: var(--crm-accent);
    font-weight: 500;
    text-decoration: none;
}
.crm-order-customer:hover {
    text-decoration: underline;
}
.crm-orders-table .crm-order-time, .crm-orders-table .crm-order-created, .crm-orders-table .crm-order-phone {
    white-space: nowrap;
}
.crm-orders-table .crm-order-address {
    max-width: 290px;
    min-width: 220px;
}
.crm-orders-table .order-status-picker {
    display: inline-flex;
}
.crm-orders-table .order-status-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--crm-text-secondary);
    display: inline-flex;
    gap: 6px;
    min-height: 36px;
    padding: 3px 7px 3px 3px;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}
.crm-orders-table .order-status-trigger:hover, .crm-orders-table .order-status-trigger:focus-visible, .crm-orders-table .order-status-trigger[aria-expanded="true"] {
    background: var(--crm-surface-muted);
    outline: 0;
}
.crm-orders-table .order-status-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(11, 111, 244, 0.18);
}
.crm-orders-table .order-status-trigger > .crm-icon {
    height: 15px;
    transition: transform 160ms ease;
    width: 15px;
}
.crm-orders-table .order-status-trigger[aria-expanded="true"] > .crm-icon {
    transform: rotate(180deg);
}
.crm-orders-table .order-status-menu {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    box-shadow: 0 18px 40px rgba(27, 57, 96, 0.16);
    display: grid;
    gap: 3px;
    min-width: 190px;
    padding: 6px;
    position: fixed;
    z-index: 10020;
}
.crm-orders-table .order-status-menu[hidden] {
    display: none;
}
.crm-ui-v2 .order-eta-tooltip {
    background: var(--crm-text);
    border: 1px solid var(--crm-text);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(27, 57, 96, 0.2);
    color: var(--crm-surface);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    max-width: 260px;
    padding: 8px 10px;
    pointer-events: none;
    position: fixed;
    text-align: center;
    white-space: nowrap;
    z-index: 10030;
}
.crm-ui-v2 .order-eta-tooltip[hidden] {
    display: none;
}
.crm-orders-table .order-status-option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: var(--crm-text);
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-height: 40px;
    padding: 5px 8px;
    text-align: left;
    width: 100%;
}
.crm-orders-table .order-status-option:hover, .crm-orders-table .order-status-option:focus-visible, .crm-orders-table .order-status-option.is-current {
    background: var(--crm-surface-muted);
    outline: 0;
}
.crm-orders-table .order-status-option > .order-status-option__check {
    color: var(--crm-accent);
    flex: 0 0 16px;
    height: 16px;
    width: 16px;
}
.crm-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    line-height: 1;
    min-height: 28px;
    padding: 7px 10px;
    white-space: nowrap;
}
.crm-status__dot {
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.62);
    flex: 0 0 7px;
    height: 7px;
    width: 7px;
}
.crm-status--new {
    background: #fff7d6;
    color: #956500;
}
.crm-status--processing {
    background: #fff0e5;
    color: #b54708;
}
.crm-status--in_transit {
    background: #eaf3ff;
    color: #075fd5;
}
.crm-status--completed {
    background: #e9f8ee;
    color: #16813a;
}
.crm-status--canceled {
    background: #feedef;
    color: #c72532;
}
[data-theme="dark"] .crm-status__dot {
    box-shadow: 0 0 0 3px rgba(15, 23, 36, 0.45);
}
[data-theme="dark"] .crm-status--new {
    background: #3c321a;
    color: #f4cf62;
}
[data-theme="dark"] .crm-status--processing {
    background: #40281d;
    color: #ffad78;
}
[data-theme="dark"] .crm-status--in_transit {
    background: #17365d;
    color: #80b8ff;
}
[data-theme="dark"] .crm-status--completed {
    background: #183b28;
    color: #72d695;
}
[data-theme="dark"] .crm-status--canceled {
    background: #45242a;
    color: #ff9aa3;
}
.crm-orders-table .order-row-select {
    appearance: none;
    background-color: var(--crm-surface);
    background-image: linear-gradient(45deg, transparent 50%, var(--crm-text-muted) 50%), linear-gradient(135deg, var(--crm-text-muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 15px, calc(100% - 12px) 15px;
    background-repeat: no-repeat;
    background-size: 4px 4px, 4px 4px;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text);
    font: inherit;
    font-weight: 600;
    height: 38px;
    min-width: 145px;
    padding: 0 30px 0 12px;
}
.crm-orders-table .order-row-select:hover, .crm-orders-table .order-row-select:focus {
    border-color: var(--crm-accent);
    outline: 0;
}
.crm-table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.crm-table-actions .crm-table-action, .crm-orders-table .crm-table-actions a.crm-table-action {
    align-items: center;
    background: var(--crm-accent-soft);
    border: 1px solid transparent;
    border-radius: var(--crm-radius-sm);
    color: var(--crm-accent);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
    width: 34px;
}
.crm-table-actions .crm-table-action:hover, .crm-orders-table .crm-table-actions a.crm-table-action:hover {
    background: var(--crm-accent);
    border-color: var(--crm-accent);
    color: #ffffff;
    transform: translateY(-1px);
}
.crm-table-action .crm-icon {
    height: 17px;
    width: 17px;
}
.crm-pagination {
    align-items: center;
    border-top: 1px solid var(--crm-border);
    color: var(--crm-text-secondary);
    display: grid;
    font-size: 12px;
    grid-template-columns: 1fr auto 1fr;
    min-height: 68px;
    padding: 12px 18px;
}
.crm-pagination__pages {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: center;
}
.crm-pagination__page, .crm-pagination__arrow {
    align-items: center;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text-secondary);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    min-width: 36px;
    padding: 0 8px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.crm-pagination__page:hover, .crm-pagination__arrow:hover {
    border-color: var(--crm-accent);
    color: var(--crm-accent);
}
.crm-pagination__page.is-active {
    background: var(--crm-accent);
    border-color: var(--crm-accent);
    color: #ffffff;
}
.crm-pagination__arrow .crm-icon {
    height: 16px;
    width: 16px;
}
.crm-pagination__size {
    justify-self: end;
}
.crm-ui-v2.is-sidebar-collapsed .crm-shell {
    grid-template-columns: var(--crm-sidebar-collapsed) minmax(0, 1fr);
}
.crm-ui-v2.is-sidebar-collapsed .crm-sidebar .crm-brand__logo--full, .crm-ui-v2.is-sidebar-collapsed .crm-sidebar__link span, .crm-ui-v2.is-sidebar-collapsed .crm-support-card span {
    display: none;
}
.crm-ui-v2.is-sidebar-collapsed .crm-sidebar .crm-brand__logo--mark {
    display: block;
}
.crm-ui-v2.is-sidebar-collapsed .crm-sidebar__brand-row {
    flex-direction: column;
    gap: 8px;
    height: 112px;
    padding: 12px;
}
.crm-ui-v2.is-sidebar-collapsed .crm-sidebar__collapse {
    height: 28px;
    width: 36px;
}
.crm-ui-v2.is-sidebar-collapsed .crm-sidebar__collapse .crm-icon {
    transform: rotate(180deg);
}
.crm-ui-v2.is-sidebar-collapsed .crm-sidebar__nav {
    padding: 10px 12px;
}
.crm-ui-v2.is-sidebar-collapsed .crm-sidebar__link {
    justify-content: center;
    padding: 0;
}
.crm-ui-v2.is-sidebar-collapsed .crm-sidebar__link::before {
    left: -12px;
}
.crm-ui-v2.is-sidebar-collapsed .crm-support-card {
    justify-content: center;
    padding: 10px;
}
.crm-ui-v2 .order-preview, .crm-ui-v2 .orders-report {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: 0 24px 72px rgba(27, 57, 96, 0.24);
    color: var(--crm-text);
    max-height: calc(100vh - 48px);
    max-width: calc(100vw - 32px);
    overflow: hidden;
    padding: 0;
    width: 440px;
}
.crm-ui-v2 .order-preview::backdrop, .crm-ui-v2 .orders-report::backdrop {
    backdrop-filter: blur(3px);
    background: rgba(15, 32, 54, 0.42);
}
.crm-ui-v2 .order-preview__header, .crm-ui-v2 .orders-report__header {
    align-items: center;
    border-bottom: 1px solid var(--crm-border);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 20px;
}
.crm-ui-v2 .order-preview__header h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
}
.crm-ui-v2 .order-preview__close, .crm-ui-v2 .orders-report__close {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: 10px;
    color: var(--crm-text-secondary);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 36px;
    font-family: inherit;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.crm-ui-v2 .order-preview__close:hover, .crm-ui-v2 .order-preview__close:focus-visible, .crm-ui-v2 .orders-report__close:hover, .crm-ui-v2 .orders-report__close:focus-visible {
    background: var(--crm-accent-soft);
    border-color: var(--crm-accent);
    color: var(--crm-accent);
}
.crm-ui-v2 .order-preview__body {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 20px;
}
.crm-ui-v2 .order-preview__body > strong:first-child {
    color: var(--crm-text-secondary);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.crm-ui-v2 .order-preview__items {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}
.crm-ui-v2 .order-preview__items li {
    align-items: flex-start;
    border-bottom: 1px solid var(--crm-border);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    line-height: 1.45;
    padding: 11px 0;
}
.crm-ui-v2 .order-preview__items li span:first-child {
    min-width: 0;
}
.crm-ui-v2 .order-preview__items li span:last-child {
    color: var(--crm-text-secondary);
    flex: 0 0 auto;
    font-weight: 600;
    white-space: nowrap;
}
.crm-ui-v2 .order-preview__items + strong {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: 10px;
    color: var(--crm-text);
    display: flex;
    font-size: 15px;
    justify-content: space-between;
    margin-top: 16px;
    padding: 13px 14px;
}
.crm-ui-v2 #order-preview-total {
    color: var(--crm-accent);
    font-size: 18px;
}
.crm-ui-v2 .orders-report {
    width: 880px;
}
.crm-ui-v2 .orders-report__header h2, .crm-ui-v2 .orders-report__header p, .crm-ui-v2 .orders-report__section h3, .crm-ui-v2 .orders-report__couriers h3 {
    margin: 0;
}
.crm-ui-v2 .orders-report__header h2 {
    font-size: 20px;
    line-height: 1.3;
}
.crm-ui-v2 .orders-report__header p {
    color: var(--crm-text-secondary);
    font-size: 12px;
    margin-top: 4px;
}
.crm-ui-v2 .orders-report__body {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 20px;
}
.crm-ui-v2 .orders-report__loading, .crm-ui-v2 .orders-report__error, .crm-ui-v2 .orders-report__empty {
    color: var(--crm-text-secondary);
    margin: 0;
    padding: 16px 0;
    text-align: center;
}
.crm-ui-v2 .orders-report__error {
    color: var(--crm-danger);
}
.crm-ui-v2 .orders-report__summary {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.crm-ui-v2 .orders-report__summary article {
    background: var(--crm-surface-muted);
    border-radius: var(--crm-radius-md);
    padding: 14px;
}
.crm-ui-v2 .orders-report__summary span, .crm-ui-v2 .orders-report__payment span {
    color: var(--crm-text-secondary);
    display: block;
}
.crm-ui-v2 .orders-report__summary strong {
    display: block;
    font-size: 21px;
    margin: 5px 0 2px;
}
.crm-ui-v2 .orders-report__section {
    border-top: 1px solid var(--crm-border);
    margin-top: 20px;
    padding-top: 16px;
}
.crm-ui-v2 .orders-report__section h3, .crm-ui-v2 .orders-report__couriers h3 {
    font-size: 15px;
}
.crm-ui-v2 .orders-report__payment {
    align-items: center;
    border-bottom: 1px solid var(--crm-border);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 11px 0;
}
.crm-ui-v2 .orders-report__payment:last-child {
    border-bottom: 0;
}
.crm-ui-v2 .orders-report__payment span {
    font-size: 11px;
    margin-top: 3px;
}
.crm-ui-v2 .orders-report__payment > strong {
    flex: 0 0 auto;
}
.crm-ui-v2 .orders-report__couriers {
    background: var(--crm-accent-soft);
    border-radius: var(--crm-radius-md);
    margin-top: 20px;
    padding: 16px;
}
.crm-ui-v2 .orders-report__table-wrap {
    margin-top: 10px;
    overflow-x: auto;
}
.crm-ui-v2 .orders-report table {
    border-collapse: collapse;
    min-width: 0;
    width: 100%;
}
.crm-ui-v2 .orders-report th, .crm-ui-v2 .orders-report td {
    border-bottom: 1px solid var(--crm-border);
    padding: 10px 8px;
    text-align: left;
}
.crm-ui-v2 .orders-report th {
    color: var(--crm-text-secondary);
    font-size: 11px;
    font-weight: 650;
}
.crm-ui-v2 .orders-report th:not(:first-child), .crm-ui-v2 .orders-report td:not(:first-child) {
    text-align: right;
}
.crm-ui-v2 .orders-report tbody tr:last-child td {
    border-bottom: 0;
}
.order-command-bar {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
    min-height: 72px;
    padding: 13px 16px 13px 20px;
}
.order-command-bar__context {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.order-command-bar__eyebrow {
    color: var(--crm-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.order-command-bar__context strong {
    color: var(--crm-text);
    font-size: 16px;
    font-weight: 700;
}
.order-command-bar__actions, .order-workspace-summary__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.crm-ui-v2 .btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--crm-radius-sm);
    display: inline-flex;
    font-size: 13px;
    font-weight: 650;
    gap: 7px;
    justify-content: center;
    line-height: 1;
    min-height: 40px;
    padding: 0 14px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.crm-ui-v2 .btn:hover {
    transform: translateY(-1px);
}
.crm-ui-v2 .btn:focus-visible {
    outline: 3px solid rgba(11, 111, 244, 0.18);
    outline-offset: 2px;
}
.crm-ui-v2 .btn-primary {
    background: var(--crm-accent);
    border-color: var(--crm-accent);
    box-shadow: var(--btn-shadow);
    color: #ffffff;
}
.crm-ui-v2 .btn-primary:hover {
    background: var(--crm-accent-hover);
    border-color: var(--crm-accent-hover);
    color: #ffffff;
}
.crm-ui-v2 .btn-secondary {
    background: var(--crm-surface);
    border-color: var(--crm-border-strong);
    color: var(--crm-text-secondary);
}
.crm-ui-v2 .btn-secondary:hover {
    background: var(--crm-accent-soft);
    border-color: var(--crm-accent);
    color: var(--crm-accent);
}
.crm-ui-v2 .btn-sm {
    min-height: 36px;
    padding: 0 12px;
}
.crm-ui-v2 .btn .crm-icon {
    height: 17px;
    width: 17px;
}
.order-workspace-form {
    margin: 0;
}
.order-workspace {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 650px;
    overflow: hidden;
}
.order-workspace__left, .order-workspace__right {
    min-width: 0;
}
.order-workspace__left {
    border-right: 1px solid var(--crm-border);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}
.order-workspace__right {
    background: var(--crm-surface-muted);
}
.order-editor-tabs {
    background: var(--crm-surface);
    border-bottom: 1px solid var(--crm-border);
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 10px;
}
.order-editor-tab {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--crm-text-secondary);
    display: flex;
    font-size: 12px;
    font-weight: 650;
    gap: 7px;
    justify-content: center;
    min-height: 42px;
    padding: 7px 9px;
    position: relative;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.order-editor-tab:hover {
    background: var(--crm-surface-muted);
    border-color: var(--crm-border);
    color: var(--crm-accent);
}
.order-editor-tab.is-active {
    background: var(--crm-accent-soft);
    border-color: var(--active-border);
    color: var(--crm-accent);
}
.order-editor-tab .crm-icon {
    height: 18px;
    width: 18px;
}
.order-editor-tab__count {
    align-items: center;
    background: var(--crm-accent);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 750;
    height: 19px;
    justify-content: center;
    min-width: 19px;
    padding: 0 5px;
}
.order-editor-panels {
    background: var(--crm-surface-muted);
    min-height: 0;
    overflow: auto;
    padding: 12px;
}
.order-editor-panel[hidden], [data-order-side][hidden], #address-container[hidden], #pickup-container[hidden], .item-row[hidden], .order-discount-line[hidden] {
    display: none;
}
.order-editor-col {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    min-height: 100%;
    padding: 16px;
}
.order-panel-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 15px;
}
.order-panel-heading h3, .order-catalog-toolbar h3 {
    color: var(--crm-text);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}
.order-panel-heading p, .order-catalog-toolbar p {
    color: var(--crm-text-secondary);
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}
.order-items-empty, .order-product-hint, .order-map-unavailable {
    align-items: center;
    color: var(--crm-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 240px;
    padding: 24px;
    text-align: center;
}
.order-items-empty .crm-icon, .order-product-hint .crm-icon, .order-map-unavailable .crm-icon {
    color: var(--crm-accent);
    height: 30px;
    opacity: 0.82;
    width: 30px;
}
.order-items-empty strong, .order-map-unavailable strong {
    color: var(--crm-text);
    font-size: 14px;
}
.order-items-empty span, .order-map-unavailable span {
    font-size: 12px;
    line-height: 1.45;
}
.order-items-list {
    display: grid;
    gap: 8px;
}
.order-line {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: 11px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 8px 9px 8px 12px;
}
.order-line__main {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(120px, 1fr) auto;
    min-width: 0;
}
.order-line__name {
    background: transparent;
    border: 0;
    color: var(--crm-text);
    flex: 1;
    font-weight: 650;
    min-width: 120px;
    height: 40px;
    padding: 0 11px 0 0;
}
.order-line__controls {
    align-items: center;
    display: flex;
    gap: 9px;
}
.order-line__controls label {
    margin: 0;
}
.crm-ui-v2 .order-line__controls .item-price {
    flex: 0 0 82px;
    width: 82px;
}
.order-quantity {
    align-items: center;
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: 9px;
    display: flex;
    overflow: hidden;
}
.order-quantity__button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--crm-accent);
    display: flex;
    font-size: 18px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 30px;
}
.order-quantity__button:hover {
    background: var(--crm-accent-soft);
}
.crm-ui-v2 .order-quantity .item-quantity, .crm-ui-v2 .delivery-fee-item .item-quantity {
    background: transparent;
    border: 0;
    flex: 0 0 38px;
    height: 32px;
    padding: 0 2px;
    text-align: center;
    width: 38px;
}
.order-line__sum {
    color: var(--crm-text);
    font-size: 13px;
    font-weight: 750;
    min-width: 78px;
    text-align: right;
    white-space: nowrap;
}
.order-line__remove {
    align-items: center;
    background: #fff1f2;
    border: 0;
    border-radius: 8px;
    color: var(--crm-danger);
    display: flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}
.order-line__remove:hover {
    background: #ffe4e6;
}
.order-line__remove .crm-icon {
    height: 16px;
    width: 16px;
}
.delivery-fee-item {
    background: #eff6ff;
    border-color: #bfdbfe;
    margin-top: 8px;
}
.order-discount-line {
    background: var(--crm-surface-muted);
    border-color: var(--crm-border-strong);
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 8px;
}
.order-discount-line .order-line__main {
    grid-template-columns: minmax(120px, 1fr) auto;
}
.order-discount-line__name {
    color: var(--crm-text);
    font-size: 13px;
    font-weight: 650;
}
.order-discount-line__controls {
    align-items: center;
    display: flex;
    gap: 6px;
}
.crm-ui-v2 .order-discount-line__controls input {
    height: 34px;
    padding: 0 9px;
    width: 82px;
}
.order-discount-line__controls span {
    color: var(--crm-text-secondary);
    font-size: 13px;
    font-weight: 650;
    min-width: 12px;
}
.order-discount-line .order-line__sum {
    color: var(--crm-danger);
}
.form-group {
    margin: 0;
    min-width: 0;
}
.form-group > label, .order-address-grid label, #previous-address-wrap label {
    color: var(--crm-text-secondary);
    display: block;
    font-size: 11px;
    font-weight: 650;
    margin: 0 0 6px;
}
.crm-ui-v2 .form-group input, .crm-ui-v2 .form-group select, .crm-ui-v2 .form-group textarea, .crm-ui-v2 .order-line input:not(.order-line__name):not(.item-quantity), .crm-ui-v2 #previous-address {
    background-color: var(--crm-surface);
    border: 1px solid var(--crm-border-strong);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text);
    font-size: 13px;
    margin: 0;
    min-width: 0;
    padding: 0 11px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}
.crm-ui-v2 .form-group input, .crm-ui-v2 .form-group select, .crm-ui-v2 .order-line input:not(.order-line__name):not(.item-quantity), .crm-ui-v2 #previous-address {
    height: 40px;
}
.crm-ui-v2 .form-group textarea {
    line-height: 1.5;
    min-height: 86px;
    padding: 10px 11px;
    resize: vertical;
}
.crm-ui-v2 .form-group input:focus, .crm-ui-v2 .form-group select:focus, .crm-ui-v2 .form-group textarea:focus, .crm-ui-v2 .order-line input:not(.order-line__name):not(.item-quantity):focus, .crm-ui-v2 #previous-address:focus {
    border-color: var(--crm-accent);
    box-shadow: 0 0 0 3px rgba(11, 111, 244, 0.11);
    outline: 0;
}
.order-fields-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.order-field-wide {
    grid-column: 1 / -1;
}
.order-address-grid {
    display: grid;
    gap: 9px;
    grid-template-columns: 2fr repeat(4, minmax(72px, 1fr));
    margin-top: 12px;
}
.address-suggest, .order-address-autocomplete {
    position: relative;
}
.address-suggest {
    margin-top: 12px;
}
.address-suggest__results {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border-strong);
    border-radius: var(--crm-radius-sm);
    box-shadow: 0 14px 34px rgba(27, 57, 96, 0.16);
    left: 0;
    max-height: 240px;
    overflow-y: auto;
    padding: 5px;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    z-index: 100;
    min-width: 260px;
    font-size: 14px;
}
.address-suggest__option {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--crm-text);
    display: block;
    font-size: 12px;
    line-height: 1.4;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}
.address-suggest__option:hover, .address-suggest__option:focus-visible {
    background: var(--crm-accent-soft);
    color: var(--crm-accent);
    outline: 0;
}
.delivery-calculation {
    border-top: 1px solid var(--crm-border);
    margin-top: 16px;
    padding-top: 14px;
}
.delivery-calculation__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.delivery-zone-status {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: 9px;
    color: var(--crm-text-secondary);
    font-size: 12px;
    line-height: 1.45;
    margin: 10px 0;
    padding: 10px 12px;
}
.order-time-options {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: 10px;
    display: flex;

    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 12px;
}
.order-time-options label {
    align-items: center;
    color: var(--crm-text);
    display: flex;
    font-size: 12px;
    gap: 7px;
    margin: 0;

    white-space: nowrap;
}
.crm-ui-v2 .order-time-options input {
    accent-color: var(--crm-accent);
    flex: 0 0 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    width: 16px;
}
#delivery_datetime_container {
    display: none;
    margin-top: 10px;
}
#delivery_datetime {
    cursor: pointer;
}
.crm-schedule-picker {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    color: var(--crm-text);
    margin: auto;
    max-height: calc(100dvh - 32px);
    max-width: calc(100vw - 32px);
    overflow: auto;
    padding: 16px;
    width: 420px;
}
.crm-schedule-picker::backdrop {
    background: rgba(18, 28, 45, 0.45);
}
.crm-schedule-picker h2 {
    font-size: 16px;
    margin: 0 0 12px;
}
.crm-schedule-picker__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}
.crm-schedule-picker__selected {
    background: var(--crm-surface);
    border-radius: 8px;
    color: var(--crm-text-secondary);
    font-size: 12px;
    padding: 9px 10px;
}
.crm-schedule-picker__selected strong {
    color: var(--crm-text);
    display: block;
    margin-top: 3px;
}
.crm-schedule-picker__label {
    color: var(--crm-text);
    font-size: 12px;
    font-weight: 700;
    margin: 12px 0 7px;
}
.crm-date-strip {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}
.crm-date-card {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: 9px;
    color: var(--crm-text);
    display: flex;
    flex: 0 0 67px;
    flex-direction: column;
    gap: 2px;
    padding: 8px 5px;
    scroll-snap-align: start;
}
.crm-date-card strong {
    font-size: 17px;
}
.crm-date-card span, .crm-date-card small {
    color: var(--crm-text-secondary);
    font-size: 10px;
    text-transform: capitalize;
}
.crm-date-card:hover, .crm-time-slot:hover {
    border-color: var(--crm-accent);
    color: var(--crm-accent);
}
.crm-date-card.is-selected, .crm-time-slot.is-selected {
    background: var(--crm-accent);
    border-color: var(--crm-accent);
    color: #ffffff;
}
.crm-date-card.is-selected span, .crm-date-card.is-selected small {
    color: #ffffff;
}
.crm-date-more {
    background: transparent;
    border: 0;
    color: var(--crm-accent);
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
    padding: 5px 0;
}
.crm-time-slots {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-height: 190px;
    overflow: auto;
}
.crm-time-slot {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: 8px;
    color: var(--crm-text);
    font-size: 12px;
    font-weight: 650;
    padding: 8px 4px;
}
.crm-time-message {
    color: var(--crm-text-secondary);
    font-size: 12px;
    padding: 10px;
    text-align: center;
}
.order-workspace-summary {
    align-items: center;
    background: var(--crm-surface);
    border-top: 1px solid var(--crm-border);
    box-shadow: 0 -8px 24px rgba(27, 57, 96, 0.05);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(130px, auto) minmax(180px, 1fr) auto;
    padding: 9px 12px;
}
.order-workspace-summary__discount {
    align-items: center;
    display: flex;
    gap: 6px;
}
.order-workspace-summary__totals span {
    color: var(--crm-text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.crm-ui-v2 .form-group.order-workspace-summary__discount select {
    height: 34px;
    padding-left: 9px;
    padding-right: 9px;
    width: 126px;
}
.order-workspace-summary__totals {
    align-items: flex-end;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.order-workspace-summary__total-values {
    align-items: baseline;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}
.order-workspace-summary__totals>span {
    padding: 0 0 4px;
}
.order-workspace-summary__total-values del {
    color: var(--crm-text-muted);
    font-size: 18px;
    font-weight: 650;
}
.order-workspace-summary__total-values strong {
    color: var(--crm-text);
    font-size: 21px;
    font-weight: 750;
}
.order-catalog-panel, .order-map-panel {
    height: 100%;
    min-height: 650px;
}
.order-catalog-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}
.order-catalog-toolbar {
    align-items: center;
    background: var(--crm-surface);
    border-bottom: 1px solid var(--crm-border);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
    min-height: 63px;
    padding: 11px 12px;
}
.order-catalog-toolbar > .form-group {
    margin-bottom: 0;
    min-width: 0;
}
.order-catalog-site {
    max-width: none;
}
.order-catalog-site[hidden] + .order-catalog-search {
    grid-column: 1 / -1;
}
.order-catalog-body {
    display: grid;
    grid-template-columns: minmax(125px, 26%) minmax(0, 1fr);
    min-height: 0;
}
.order-category-tiles {
    border-right: 1px solid var(--crm-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: auto;
    padding: 10px;
}
.order-category-tile {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: 9px;
    color: var(--crm-text);
    font-size: 11px;
    font-weight: 650;
    min-height: 40px;
    padding: 8px 10px;
    text-align: left;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.order-category-tile:hover, .order-category-tile.is-active {
    background: var(--crm-accent-soft);
    border-color: var(--active-border);
    color: var(--crm-accent);
}
.order-product-area {
    max-height: 66vh;
    min-width: 0;
    overflow: auto;
    padding: 10px;
}
.order-product-tiles {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.order-product-tile-wrap {
    min-width: 0;
    position: relative;
}
.order-product-tile-wrap.is-open {
    z-index: 30;
}
.order-product-tile {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: 10px;
    color: var(--crm-text);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    min-height: 92px;
    padding: 11px;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    width: 100%;
}
.order-product-tile:hover {
    border-color: var(--crm-accent);
    box-shadow: 0 9px 20px rgba(11, 111, 244, 0.12);
    transform: translateY(-1px);
}
.order-product-tile strong {
    font-size: 12px;
    line-height: 1.35;
}
.order-product-tile__price {
    color: var(--crm-accent);
    font-size: 14px;
    font-weight: 750;
}
.order-variant-picker {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
}
.order-variant-option {
    align-items: center;
    background: var(--crm-surface);
    border: 0;
    border-bottom: 1px solid var(--crm-border);
    color: var(--crm-text);
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 10px;
    text-align: left;
    width: 100%;
}
.order-variant-option:last-child {
    border-bottom: 0;
}
.order-variant-option:hover,
.order-variant-option:focus-visible {
    background: var(--crm-accent-soft);
    outline: none;
}
.order-variant-option__name {
    font-size: 12px;
    line-height: 1.3;
}
.order-variant-option__price {
    color: var(--crm-accent);
    flex: 0 0 auto;
    font-size: 12px;
}
.order-product-tooltip {
    background: #172033;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
    color: #ffffff;
    left: 0;
    max-width: min(320px, calc(100vw - 24px));
    opacity: 0;
    padding: 11px 13px;
    pointer-events: none;
    position: fixed;
    top: 0;
    transform: translateY(4px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
    visibility: hidden;
    width: max-content;
    z-index: 2200;
}
.order-product-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.order-product-tooltip__description, .order-product-tooltip__weight {
    display: block;
    font-size: 12px;
    line-height: 1.45;
}
.order-product-tooltip__description {
    color: #ffffff;
}
.order-product-tooltip__weight {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    margin-top: 8px;
    padding-top: 7px;
}
.order-product-tooltip__weight strong {
    color: #ffffff;
    font-weight: 700;
}
.order-map-panel {
    background: var(--crm-surface-muted);
}
.order-map-panel .delivery-map-section {
    height: calc(100% - 84px);
    margin: 0;
    padding: 12px;
}
.order-map-panel .delivery-zones-map {
    border-radius: var(--crm-radius-md);
    height: 100%;
    min-height: 540px;
    overflow: hidden;
}
.delivery-draggable-marker {
    background: var(--crm-accent);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(11, 111, 244, 0.35);
}
.crm-preorders-page .crm-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.crm-preorders-page .crm-kpi-card__content strong {
    font-size: 22px;
}
.crm-preorders-filter-form {
    grid-template-columns: minmax(280px, 520px) auto;
    justify-content: space-between;
}
.crm-preorders-filter-form .crm-filter-reset {
    min-width: 118px;
}
.crm-preorders-table {
    min-width: 940px;
}
.crm-preorders-table .crm-order-id {
    display: inline-flex;
    text-decoration: none;
}
.crm-preorder-date strong, .crm-preorder-date span {
    display: block;
    white-space: nowrap;
}
.crm-preorder-date strong {
    font-size: 13px;
    font-weight: 700;
}
.crm-preorder-date span {
    color: var(--crm-text-secondary);
    font-size: 11px;
    margin-top: 3px;
}
.crm-preorder-source {
    max-width: 230px;
}
td.crm-table-empty {
    padding: 64px 20px;
    text-align: center;
}
.crm-table-empty .crm-icon, .crm-table-empty strong, .crm-table-empty span {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.crm-table-empty .crm-icon {
    color: var(--crm-text-muted);
    height: 32px;
    margin-bottom: 12px;
    width: 32px;
}
.crm-table-empty strong {
    font-size: 14px;
}
.crm-table-empty span {
    color: var(--crm-text-secondary);
    font-size: 12px;
    margin-top: 5px;
}
.crm-customers-page .crm-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.crm-customers-page .crm-kpi-card__content strong {
    font-size: 22px;
}
.crm-customers-filter-form {
    grid-template-columns: minmax(280px, 520px) auto;
    justify-content: space-between;
}
.crm-customers-filter-form .crm-filter-reset {
    min-width: 118px;
}
.crm-customers-table {
    min-width: 900px;
}
.crm-customers-table .crm-order-id {
    display: inline-flex;
    text-decoration: none;
}
.crm-customer-name {
    font-weight: 650;
}
.crm-customer-orders-count {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: 999px;
    color: var(--crm-accent);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    justify-content: center;
    min-width: 30px;
    padding: 4px 9px;
}
.crm-customer-spent {
    font-weight: 700;
    white-space: nowrap;
}
.crm-customers-table .crm-customer-created {
    color: var(--crm-text-secondary);
    white-space: nowrap;
}
.crm-pagination__dots {
    color: var(--crm-text-muted);
    padding: 0 3px;
}
.crm-page-heading {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}
.crm-page-heading h2 {
    font-size: 20px;
    margin: 0;
}
.crm-page-heading p {
    color: var(--crm-text-secondary);
    font-size: 12px;
    margin: 5px 0 0;
}
.crm-couriers-page .crm-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.crm-couriers-page .crm-kpi-card__content strong {
    font-size: 22px;
}
.crm-kpi-card__icon--success {
    background: #e8f7ee;
    color: #159447;
}
.crm-kpi-card__icon--muted {
    background: var(--crm-surface-muted);
    color: var(--crm-text-muted);
}
.crm-couriers-filter-form {
    grid-template-columns: minmax(280px, 1.6fr) minmax(170px, .7fr) minmax(190px, .8fr) auto auto;
}
.crm-couriers-filter-form .crm-filter-reset {
    min-width: 118px;
}
.crm-couriers-filter-form .crm-primary-action {
    white-space: nowrap;
}
.crm-couriers-table {
    min-width: 880px;
}
.crm-couriers-table .crm-order-id {
    display: inline-flex;
    text-decoration: none;
}
.crm-courier-name {
    font-weight: 650;
}
.crm-courier-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    padding: 5px 10px;
    white-space: nowrap;
}
.crm-courier-status.is-active {
    background: #e8f7ee;
    color: #147a3d;
}
.crm-courier-status.is-inactive {
    background: #f1f3f6;
    color: #6f7887;
}
.crm-courier-status__dot {
    background: currentColor;
    border-radius: 50%;
    height: 7px;
    width: 7px;
}
.crm-couriers-table .crm-courier-created {
    color: var(--crm-text);
    font-weight: 600;
    white-space: nowrap;
}
.crm-courier-created span {
    color: var(--crm-text-secondary);
    display: block;
    font-size: 11px;
    font-weight: 500;
    margin-top: 3px;
}
.crm-table-actions .crm-table-action--danger:hover {
    background: #fff0f0;
    border-color: #ffcaca;
    color: #d93434;
}
.crm-page-heading__copy h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}
.crm-page-heading__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.crm-page-heading__actions .btn, .crm-order-view-heading .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
}
.crm-back-link {
    align-items: center;
    color: var(--crm-text-secondary);
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    margin-bottom: 10px;
    text-decoration: none;
}
.crm-back-link:hover {
    color: var(--crm-accent);
}
.crm-back-link .crm-icon {
    height: 16px;
    width: 16px;
}
.crm-order-view-page, .crm-customer-card-page, .statistics-page {
    display: grid;
    gap: 18px;
}
.crm-order-view-meta {
    color: var(--crm-text-secondary);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px 18px;
    margin-top: 8px;
}
.crm-order-view-card {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    padding: 22px;
}
.crm-order-view-card > .order-info {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.crm-order-view-card .oi-col {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    min-width: 0;
    padding: 14px 16px;
}
.crm-order-view-card .cell-title {
    color: var(--crm-text-muted);
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
}
.crm-order-view-card .oi-tx {
    margin-top: 8px;
}
.crm-order-view-card .oi-item {
    color: var(--crm-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}
.crm-order-view-card .commentinfo, .crm-order-view-card .col3-5 {
    grid-column: span 2;
}
.crm-order-view-card .orders-header, .crm-section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 26px 0 12px;
}
.crm-order-view-card .orders-header h2, .crm-section-heading h2, .crm-customer-card-page .customer-title {
    font-size: 16px;
    margin: 0;
}
.crm-order-view-card .tbl-wrapper, .crm-table-card {
    border: 1px solid var(--crm-border);
    overflow: auto;
}
.crm-order-view-card .orders-table, .crm-customer-card-page .orders-table, .statistics-table {
    border-collapse: collapse;
    min-width: 680px;
    width: 100%;
}
.crm-order-view-card .orders-table th, .crm-order-view-card .orders-table td, .crm-customer-card-page .orders-table th, .crm-customer-card-page .orders-table td, .statistics-table th, .statistics-table td {
    border-bottom: 1px solid var(--crm-border);
    font-size: 12px;
    padding: 12px 14px;
    text-align: left;
}
.crm-order-view-card .orders-table th, .crm-customer-card-page .orders-table th, .statistics-table th {
    background: var(--crm-surface-muted);
    color: var(--crm-text-secondary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.crm-order-view-card .orders-table tfoot th {
    background: var(--crm-accent-soft);
    color: var(--crm-text);
    font-size: 13px;
}
.crm-order-view-card .tx-right, .crm-customer-card-page .tx-right {
    text-align: right;
}
.crm-order-view-card .history-info {
    background: transparent;
    border: 0;
    padding: 0;
}
.crm-order-view-card .history-head, .crm-order-view-card .history-item {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 140px 1fr 1fr 1fr 1fr;
    padding: 11px 14px;
}
.crm-order-view-card .history-head {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md) var(--crm-radius-md) 0 0;
}
.crm-order-view-card .history-item {
    border: 1px solid var(--crm-border);
    border-top: 0;
    font-size: 12px;
}
.crm-customer-card-page .crm-kpi-grid, .statistics-kpis, .statistics-customer-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.crm-customer-card-page .crm-kpi-card, .statistics-kpi, .statistics-customer-kpis article {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    min-height: 112px;
    padding: 18px;
    position: relative;
}
.crm-customer-card-page .stat-card-icon, .statistics-kpi-icon {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: 10px;
    color: var(--crm-accent);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 38px;
}
.crm-customer-card-page .stat-value, .statistics-kpi strong, .statistics-customer-kpis strong {
    display: block;
    font-size: 22px;
    font-weight: 750;
    padding-right: 46px;
}
.crm-customer-card-page .stat-label, .statistics-kpi > span:last-child, .statistics-customer-kpis span {
    color: var(--crm-text-secondary);
    display: block;
    font-size: 11px;
    margin-top: 8px;
}
.crm-kpi-card__icon.crm-kpi-card__icon--danger {
    background: #fff0f0;
    color: var(--crm-danger);
}
.crm-customer-summary, .crm-customer-card-page .comments-section, .statistics-chart-card, .statistics-filter {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    padding: 20px;
}
.crm-customer-summary .info-card {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.crm-customer-summary .customer-title {
    grid-column: 1 / -1;
}
.crm-customer-summary .info-row {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    display: grid;
    gap: 7px;
    padding: 14px;
}
.crm-customer-summary .info-label {
    color: var(--crm-text-muted);
    font-size: 11px;
}
.crm-customer-summary .info-value {
    font-size: 13px;
    font-weight: 650;
}
.crm-customer-card-page .comments-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
}
.crm-customer-card-page .comments {
    display: grid;
    gap: 10px;
}
.crm-customer-card-page .customer-title {
    margin-bottom: 14px;
}
.crm-customer-card-page .comment-item, .crm-customer-card-page .comment-empty {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    padding: 14px;
}
.crm-customer-card-page .comment-header {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 8px;
}
.crm-customer-card-page .comment-author {
    font-size: 12px;
    font-weight: 700;
}
.crm-customer-card-page .comment-time, .crm-customer-card-page .comment-empty {
    color: var(--crm-text-muted);
    font-size: 11px;
}
.crm-customer-card-page .comment-body {
    font-size: 12px;
    line-height: 1.55;
}
.crm-customer-card-page .form-group {
    display: grid;
    gap: 7px;
}
.crm-customer-card-page .form-group label {
    color: var(--crm-text-secondary);
    font-size: 11px;
    font-weight: 650;
}
.crm-customer-card-page input, .crm-customer-card-page textarea {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border-strong);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text);
    min-height: 42px;
    padding: 10px 12px;
    resize: vertical;
    width: 100%;
}
.crm-customer-card-page .table-actions {
    display: inline-flex;
    gap: 7px;
}
.crm-customer-card-page .btn-action-icon {
    align-items: center;
    background: var(--crm-accent-soft);
    border: 1px solid transparent;
    border-radius: var(--crm-radius-sm);
    color: var(--crm-accent);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}
.statistics-section-title p {
    color: var(--crm-text-secondary);
    font-size: 12px;
    margin: 6px 0 0;
}
.statistics-tabs {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    display: flex;
    gap: 6px;
    padding: 6px;
}
.statistics-tab {
    align-items: center;
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text-secondary);
    display: inline-flex;
    font-size: 12px;
    font-weight: 650;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    text-decoration: none;
}
.statistics-tab:hover, .statistics-tab.is-active {
    background: var(--crm-accent-soft);
    color: var(--crm-accent);
}
.statistics-filter {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
}
.statistics-filter-field {
    display: grid;
    gap: 7px;
}
.statistics-filter-field label {
    color: var(--crm-text-secondary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.statistics-filter-field input, .statistics-filter-field select {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border-strong);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text);
    height: 42px;
    min-width: 0;
    padding: 0 11px;
    width: 100%;
}
.statistics-filter-actions {
    display: flex;
    gap: 8px;
}
.statistics-filter-actions .btn {
    align-items: center;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}
.statistics-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.statistics-kpi {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.statistics-chart-card h2, .statistics-section-title h2 {
    font-size: 16px;
    margin: 0;
}
.statistics-canvas {
    height: 260px;
    margin-top: 16px;
    position: relative;
}
.statistics-canvas-main {
    height: 340px;
}
.statistics-chart-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.statistics-products-layout, .statistics-customer-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
    margin-top: 16px;
}
.statistics-products-chart {
    margin-top: 0;
}
.statistics-customer-layout {
    grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
}
.statistics-customer-kpis article {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.statistics-customer-type {
    border-radius: 999px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 9px;
}
.statistics-customer-type.is-new {
    background: var(--crm-accent-soft);
    color: var(--crm-accent);
}
.statistics-customer-type.is-returning {
    background: #e8f7ee;
    color: #147a3d;
}
.statistics-table td.statistics-empty {
    color: var(--crm-text-muted);
    padding: 30px;
    text-align: center;
}
.statistics-loader {
    align-items: center;
    background: rgba(247, 249, 252, 0.82);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 160ms ease;
    visibility: hidden;
    z-index: 1000;
}
.statistics-loader.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
.statistics-loader__panel {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 30px;
}
.statistics-loader__panel img {
    height: 64px;
    width: 64px;
}
.statistics-loader__panel strong {
    font-size: 12px;
}
.receipt-sheet, .receipt-print-header {
    display: none;
}
.crm-auth-page {
    background: var(--crm-background);
}
.crm-login {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(420px, .82fr) minmax(540px, 1.18fr);
    min-height: 100vh;
    padding: 24px;
}
.crm-login__form-panel, .crm-login__showcase {
    border: 1px solid var(--crm-border);
    border-radius: 24px;
    min-width: 0;
}
.crm-login__form-panel {
    background: var(--crm-surface);
    display: flex;
    flex-direction: column;
    padding: clamp(36px, 5vw, 76px);
}
.crm-login__brand {
    align-items: center;
    align-self: flex-start;
    display: inline-flex;
    gap: 12px;
    text-decoration: none;
}
.crm-login__brand .crm-brand__logo--full {
    height: 52px;
    width: 180px;
}
.crm-login__intro {
    margin-top: clamp(72px, 12vh, 140px);
    max-width: 500px;
}
.crm-login__eyebrow, .crm-login__showcase-label {
    color: var(--crm-accent);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.crm-login__intro h1 {
    color: var(--crm-text);
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 750;
    line-height: 1.08;
    margin: 14px 0 12px;
}
.crm-login__intro p {
    color: var(--crm-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.crm-login__alert {
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 22px;
    padding: 12px 14px;
}
.crm-login__alert--error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #b42318;
}
.crm-login__alert--success {
    background: #ecfdf3;
    border-color: #bfdbfe;
    color: #147a3d;
}
.crm-login__form {
    display: grid;
    gap: 18px;
    margin-top: 30px;
    max-width: 500px;
}
.crm-login__field {
    color: var(--crm-text);
    display: grid;
    font-size: 12px;
    font-weight: 650;
    gap: 8px;
}
.crm-login__input {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border-strong);
    border-radius: 10px;
    color: var(--crm-text-muted);
    display: flex;
    min-height: 52px;
    padding: 0 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.crm-login__input:focus-within {
    border-color: var(--crm-accent);
    box-shadow: 0 0 0 4px rgba(11, 111, 244, .1);
    color: var(--crm-accent);
}
.crm-login__input > .crm-icon {
    flex: 0 0 20px;
}
.crm-login__input input {
    background: transparent;
    border: 0;
    color: var(--crm-text);
    flex: 1;
    height: 50px;
    min-width: 0;
    outline: 0;
    padding: 0 12px;
}
.crm-login__input input::placeholder {
    color: var(--crm-text-muted);
}
.crm-login__password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--crm-text-muted);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    transition: background-color 160ms ease, color 160ms ease;
}
.crm-login__password-toggle:hover, .crm-login__password-toggle:focus-visible, .crm-login__password-toggle[aria-pressed="true"] {
    background: var(--crm-accent-soft);
    color: var(--crm-accent);
}
.crm-login__password-toggle:focus-visible, .crm-login__submit:focus-visible {
    outline: 3px solid rgba(11, 111, 244, .2);
    outline-offset: 2px;
}
.crm-login__submit {
    align-items: center;
    background: var(--crm-accent);
    border: 1px solid var(--crm-accent);
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    font-size: 14px;
    font-weight: 650;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.crm-login__submit .crm-icon {
    margin-left: 10px;
    transition: transform 160ms ease;
}
.crm-login__submit:hover {
    background: var(--crm-accent-hover);
    border-color: var(--crm-accent-hover);
    box-shadow: 0 12px 24px rgba(11, 111, 244, .2);
    transform: translateY(-1px);
}
.crm-login__submit:hover .crm-icon {
    transform: translateX(3px);
}
.crm-login__note {
    color: var(--crm-text-muted);
    font-size: 11px;
    line-height: 1.5;
    margin: auto 0 0;
    padding-top: 36px;
}
.crm-login__showcase {
    background: linear-gradient(145deg, #eceff9 0%, #dce0ea 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(44px, 6vw, 88px);
    position: relative;
}
.crm-login__showcase::before, .crm-login__showcase::after {
    border: 1px solid rgba(11, 111, 244, .12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    position: absolute;
}
.crm-login__showcase::before {
    height: 380px;
    right: -170px;
    top: -170px;
    width: 380px;
}
.crm-login__showcase::after {
    bottom: -250px;
    height: 520px;
    left: -230px;
    width: 520px;
}
.crm-login__showcase-copy {
    max-width: 620px;
    position: relative;
    z-index: 2;
}
.crm-login__showcase-copy h2 {
    color: #102a4c;
    font-size: clamp(34px, 3.4vw, 54px);
    font-weight: 750;
    line-height: 1.08;
    margin: 16px 0;
}
.crm-login__showcase-copy p {
    color: #4b6482;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    max-width: 540px;
}
.crm-login-preview {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(38, 92, 153, .16);
    margin-top: clamp(40px, 7vh, 82px);
    padding: 18px;
    position: relative;
    transform: perspective(1200px) rotateX(2deg) rotateY(-3deg);
    z-index: 2;
}
.crm-login-preview__topbar {
    align-items: center;
    border-bottom: 1px solid #e7eef7;
    display: flex;
    gap: 6px;
    height: 24px;
    padding: 0 4px 12px;
}
.crm-login-preview__topbar span {
    background: #c9d8e9;
    border-radius: 50%;
    height: 6px;
    width: 6px;
}
.crm-login-preview__stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px 0 12px;
}
.crm-login-preview__stats > div {
    background: #f8fbff;
    border: 1px solid #e3edf8;
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 12px;
}
.crm-login-preview__icon {
    align-items: center;
    background: #eaf3ff;
    border-radius: 8px;
    color: var(--crm-accent);
    display: inline-flex;
    grid-row: span 2;
    height: 34px;
    justify-content: center;
    margin-right: 9px;
    width: 34px;
}
.crm-login-preview__icon .crm-icon {
    height: 17px;
    width: 17px;
}
.crm-login-preview__stats strong {
    color: #14263e;
    font-size: 14px;
    line-height: 1.2;
}
.crm-login-preview__stats small {
    color: #71839a;
    font-size: 8px;
    margin-top: 4px;
}
.crm-login-preview__orders {
    border: 1px solid #e3edf8;
    border-radius: 12px;
    overflow: hidden;
}
.crm-login-preview__orders > div {
    align-items: center;
    color: #59708d;
    display: grid;
    font-size: 10px;
    gap: 12px;
    grid-template-columns: 46px 1fr auto;
    min-height: 43px;
    padding: 0 14px;
}
.crm-login-preview__orders > div + div {
    border-top: 1px solid #e7eef7;
}
.crm-login-preview__orders span {
    color: var(--crm-accent);
    font-weight: 700;
}
.crm-login-preview__orders strong {
    color: #344b68;
    font-weight: 650;
}
.crm-login__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: auto;
    padding-top: 38px;
    position: relative;
    z-index: 2;
}
.crm-login__benefits span {
    align-items: center;
    color: #345372;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 8px;
}
.crm-login__benefits .crm-icon {
    color: #0b6ff4;
    height: 18px;
    width: 18px;
}
.crm-page-eyebrow {
    color: var(--crm-accent);
    display: block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    margin-bottom: 7px;
    text-transform: uppercase;
}
.crm-page-heading__copy > p {
    color: var(--crm-text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 7px 0 0;
}
.crm-ui-v2 input[type="checkbox"] {
    appearance: none;
    background-color: var(--crm-surface);
    border: 1px solid var(--crm-border-strong);
    border-radius: 5px;
    cursor: pointer;
    flex: 0 0 19px;
    height: 19px;
    margin: 0;
    padding: 0;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    width: 19px;
}
.crm-ui-v2 input[type="checkbox"]:checked {
    background-color: var(--crm-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='m3.5 8.2 2.8 2.8 6.2-6.2'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    border-color: var(--crm-accent);
}
.crm-ui-v2 input[type="checkbox"]:hover {
    border-color: var(--crm-accent);
}
.crm-ui-v2 input[type="checkbox"]:focus-visible {
    border-color: var(--crm-accent);
    box-shadow: 0 0 0 3px rgba(11, 111, 244, .16);
    outline: 0;
}
.crm-ui-v2 input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: .55;
}
.crm-ui-v2 .org-checkbox, .crm-ui-v2 .checkbox-label {
    align-items: center;
    color: var(--crm-text);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 550;
    gap: 9px;
    line-height: 1.4;
}
.crm-courier-card-page, .crm-import-page, .crm-profile-page {
    display: grid;
    gap: 18px;
}
.crm-courier-summary {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
}
.crm-courier-summary__identity {
    align-items: center;
    display: flex;
    gap: 16px;
    min-width: 0;
}
.crm-courier-summary__avatar {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: 14px;
    color: var(--crm-accent);
    display: inline-flex;
    flex: 0 0 58px;
    height: 58px;
    justify-content: center;
}
.crm-courier-summary__avatar .crm-icon {
    height: 28px;
    width: 28px;
}
.crm-courier-summary h2 {
    color: var(--crm-text);
    font-size: 23px;
    line-height: 1.2;
    margin: 0;
}
.crm-courier-summary__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.crm-courier-summary__meta > a {
    color: var(--crm-text-secondary);
    font-size: 12px;
    text-decoration: none;
}
.crm-courier-summary__meta > a:hover {
    color: var(--crm-accent);
}
.crm-state-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    gap: 6px;
    padding: 5px 9px;
}
.crm-state-badge > span {
    background: currentColor;
    border-radius: 50%;
    height: 7px;
    width: 7px;
}
.crm-state-badge.is-success {
    background: #e8f7ee;
    color: #147a3d;
}
.crm-state-badge.is-danger {
    background: #fff0f0;
    color: var(--crm-danger);
}
.crm-courier-period__form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(170px, 220px) minmax(170px, 220px) auto auto;
}
.crm-courier-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.crm-courier-kpis .crm-kpi-card {
    min-height: 112px;
    padding: 16px;
}
.crm-courier-kpis .crm-kpi-card__icon {
    flex-basis: 46px;
    height: 46px;
    width: 46px;
}
.crm-courier-kpis .crm-kpi-card__icon .crm-icon {
    height: 23px;
    width: 23px;
}
.crm-courier-kpis .crm-kpi-card__content strong {
    font-size: 19px;
}
.crm-courier-kpis .crm-kpi-card__content small {
    color: var(--crm-text-secondary);
    font-size: 11px;
}
.crm-table-panel {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    overflow: hidden;
}
.crm-table-panel .crm-section-heading {
    margin: 0;
    padding: 18px 20px 14px;
}
.crm-section-heading h3 {
    color: var(--crm-text);
    font-size: 15px;
    margin: 0;
}
.crm-section-heading p {
    color: var(--crm-text-muted);
    font-size: 11px;
    margin: 4px 0 0;
}
.crm-courier-orders .orders-table, .crm-profile-page .orders-table {
    border-collapse: collapse;
    min-width: 820px;
    width: 100%;
}
.crm-courier-orders .orders-table th, .crm-courier-orders .orders-table td, .crm-profile-page .orders-table th, .crm-profile-page .orders-table td {
    border-bottom: 1px solid var(--crm-border);
    font-size: 12px;
    padding: 12px 14px;
    text-align: left;
}
.crm-courier-orders .orders-table th, .crm-profile-page .orders-table th {
    background: var(--crm-surface-muted);
    color: var(--crm-text-secondary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.crm-courier-orders .orders-table tbody tr:hover td, .crm-profile-page .orders-table tbody tr:hover td {
    background: var(--crm-surface-muted);
}
.crm-order-link {
    color: var(--crm-accent);
    font-weight: 700;
    text-decoration: none;
}
.crm-order-link:hover {
    text-decoration: underline;
}
.crm-courier-orders .orders-table td.crm-empty-table, .crm-profile-page .orders-table td.crm-empty-table {
    color: var(--crm-text-muted);
    padding: 36px 16px;
    text-align: center;
}
.crm-courier-pagination {
    border-top: 1px solid var(--crm-border);
    justify-content: flex-end;
    padding: 14px 18px;
}
.crm-organization-page {
    align-content: start;
    display: grid;
    gap: 16px;
}
.org-tab-panel, [data-org-subpanel] {
    align-content: start;
    display: grid;
    gap: 16px;
}
.crm-import-tabs, .org-tabs {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    display: flex;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
    padding: 7px;
}
.crm-import-tab, .org-tab-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text-secondary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 650;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
}
.crm-import-tab:hover, .crm-import-tab:focus-visible, .org-tab-button:hover, .org-tab-button:focus-visible {
    background: var(--crm-surface-muted);
    color: var(--crm-text);
    outline: 0;
}
.crm-import-tab.active, .org-tab-button.active {
    background: var(--crm-accent-soft);
    border-color: color-mix(in srgb, var(--crm-accent) 28%, var(--crm-border));
    color: var(--crm-accent);
}
.org-subtabs {
    align-items: center;
    border-bottom: 1px solid var(--crm-border);
    display: flex;
    gap: 4px;
    margin: 0 0 16px;
    overflow-x: auto;
}
.org-subtab-button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--crm-text-secondary);
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 650;
    min-height: 38px;
    padding: 0 12px;
}
.org-subtab-button:hover, .org-subtab-button:focus-visible {
    color: var(--crm-text);
    outline: 0;
}
.org-subtab-button.active {
    border-bottom-color: var(--crm-accent);
    color: var(--crm-accent);
}
.crm-ui-v2 .org-compact-form .form-group input, .crm-ui-v2 .org-compact-form .form-group select {
    font-size: 13px;
    height: 36px;
}
.org-compact-form .form-group label {
    font-size: 12px;
    margin-bottom: 5px;
}
.org-checkbox-field {
    align-self: center;
}
.org-connection-card {
    display: grid;
    gap: 12px;
}
.org-delete-site-form {
    border-top: 1px solid var(--crm-border);
    padding-top: 12px;
}
.crm-ui-v2 [data-site-woo-fields][hidden], .crm-ui-v2 [data-org-subpanel][hidden] {
    display: none;
}
.crm-import-tab .crm-icon {
    height: 18px;
    width: 18px;
}
.crm-import-panel, .form-card {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    margin: 0;
    overflow: hidden;
}
.crm-import-panel[hidden], .org-tab-panel[hidden], .profile-subtab-panel[hidden] {
    display: none;
}
.crm-import-panel__intro {
    align-items: center;
    border-bottom: 1px solid var(--crm-border);
    display: flex;
    gap: 14px;
    padding: 19px 22px;
}
.crm-import-panel__icon {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: 11px;
    color: var(--crm-accent);
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
}
.crm-import-panel__icon .crm-icon {
    height: 22px;
    width: 22px;
}
.crm-import-panel__intro h2 {
    color: var(--crm-text);
    font-size: 16px;
    margin: 0;
}
.crm-import-panel__intro p {
    color: var(--crm-text-secondary);
    font-size: 12px;
    margin: 4px 0 0;
}
.crm-import-form {
    margin: 0;
    padding: 22px;
}
.crm-import-form__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
}
.crm-import-form__wide {
    grid-column: 1 / -1;
}
.crm-import-form .form-group small, .crm-profile-page .form-group small, .crm-profile-page .table-secondary, .crm-profile-page .page-subtitle {
    color: var(--crm-text-secondary);
    display: block;
    font-size: 12px;
    line-height: 1.55;
    margin-top: 5px;
}
.crm-import-actions, .form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}
.crm-import-example {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    display: grid;
    gap: 7px;
    margin-top: 18px;
    max-width: 900px;
    padding: 13px 15px;
}
.crm-import-example strong {
    color: var(--crm-text);
    font-size: 11px;
}
.crm-import-example code {
    color: var(--crm-text-secondary);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    overflow-wrap: anywhere;
}
.crm-ui-v2 input[type="file"] {
    height: auto;
    min-height: 46px;
    padding: 7px;
}
.crm-ui-v2 input[type="file"]::file-selector-button {
    background: var(--crm-accent-soft);
    border: 0;
    border-radius: 6px;
    color: var(--crm-accent);
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    margin-right: 10px;
    padding: 8px 10px;
}
.crm-ui-v2 input[type="color"] {
    appearance: none;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border-strong);
    border-radius: 10px;
    cursor: pointer;
    height: 40px;
    min-width: 48px;
    padding: 4px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    width: 48px;
}
.crm-ui-v2 input[type="color"]:hover {
    border-color: var(--crm-accent);
    transform: translateY(-1px);
}
.crm-ui-v2 input[type="color"]:focus-visible {
    border-color: var(--crm-accent);
    box-shadow: 0 0 0 3px rgba(11, 111, 244, .11);
    outline: 0;
}
.crm-ui-v2 input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.crm-ui-v2 input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 6px;
}
.crm-ui-v2 input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 6px;
}
.form-card-header {
    background: var(--crm-surface-muted);
    border-bottom: 1px solid var(--crm-border);
    padding: 16px 20px;
}
.form-card-header h3 {
    color: var(--crm-text);
    font-size: 15px;
    margin: 0;
}
.form-card-body {
    padding: 20px;
}
.crm-profile-page .grid {
    display: grid;
}
.crm-profile-page .grid-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.crm-profile-page .grid-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.profile-compact-fields {
    grid-template-columns: repeat(3, minmax(150px, 220px));
    max-width: 690px;
}
.crm-profile-page .gap15 {
    gap: 15px;
}
.crm-profile-page .mtop20 {
    margin-top: 20px;
}
.crm-profile-page .tx-right {
    text-align: right;
}
.crm-profile-page h4 {
    color: var(--crm-text);
    font-size: 14px;
    margin: 0 0 8px;
}
.crm-profile-page input:not([type="checkbox"]):not([type="hidden"]):not([type="color"]):not([type="file"]), .crm-profile-page select, .crm-profile-page textarea {
    background-color: var(--crm-surface);
    border: 1px solid var(--crm-border-strong);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text);
    font-size: 13px;
    min-width: 0;
    padding: 0 11px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}
.crm-profile-page input:not([type="checkbox"]):not([type="hidden"]):not([type="color"]):not([type="file"]), .crm-profile-page select {
    height: 40px;
}
.crm-profile-page textarea {
    line-height: 1.5;
    min-height: 86px;
    padding: 10px 11px;
    resize: vertical;
}
.crm-profile-page input:not([type="checkbox"]):not([type="hidden"]):not([type="color"]):not([type="file"]):focus, .crm-profile-page select:focus, .crm-profile-page textarea:focus {
    border-color: var(--crm-accent);
    box-shadow: 0 0 0 3px rgba(11, 111, 244, .11);
    outline: 0;
}
.profile-subtabs {
    border-bottom: 1px solid var(--crm-border);
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 22px;
}
.profile-subtab-button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--crm-text-secondary);
    font-size: 12px;
    font-weight: 650;
    min-height: 42px;
    padding: 0 2px;
}
.profile-subtab-button:hover, .profile-subtab-button:focus-visible {
    color: var(--crm-text);
    outline: 0;
}
.profile-subtab-button:focus-visible {
    box-shadow: 0 2px 0 var(--crm-accent);
}
.profile-subtab-button.active {
    border-bottom-color: var(--crm-accent);
    color: var(--crm-accent);
}
.profile-setting-field {
    max-width: 560px;
}
.profile-settings-block {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    padding: 18px;
}
.profile-settings-block-heading {
    margin-bottom: 16px;
}
.profile-settings-block-heading h4 {
    margin-bottom: 4px;
}
.crm-profile-page form > .form-actions {
    justify-content: flex-end;
}
.profile-save-status {
    color: var(--crm-text-secondary);
    font-size: 12px;
    font-weight: 650;
    margin-right: auto;
}
.profile-save-status.is-dirty {
    color: var(--crm-accent);
}
.business-hours-list, .profile-settings-list, .category-sort-list, .profile-selection-list {
    display: grid;
    gap: 9px;
}
.business-hours-row {
    align-items: center;
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(140px, 1fr) minmax(140px, auto) minmax(118px, 150px) minmax(118px, 150px);
    padding: 13px 15px;
}
.business-hours-row > strong {
    color: var(--crm-text);
    font-size: 12px;
}
.business-hours-time {
    align-items: center;
    display: grid;
    gap: 7px;
    grid-template-columns: 22px minmax(0, 1fr);
}
.business-hours-time > span {
    color: var(--crm-text-secondary);
    font-size: 11px;
    font-weight: 650;
}
.profile-settings-row {
    align-items: end;
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(220px, 1fr) auto auto auto;
    padding: 15px;
}
.delivery-time-option-row {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
}
.profile-settings-row .org-checkbox {
    min-height: 40px;
}
.category-sort-list, .profile-selection-list {
    max-width: 760px;
}
.category-sort-item, .profile-selection-item {
    align-items: center;
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-sm);
    display: flex;
    gap: 12px;
    min-height: 50px;
    padding: 10px 13px;
}
.category-sort-item {
    cursor: grab;
    user-select: none;
}
.category-sort-item:active {
    cursor: grabbing;
}
.category-sort-item.is-dragging {
    border-color: var(--crm-accent);
    opacity: .55;
}
.profile-selection-item-copy {
    display: grid;
    gap: 3px;
    margin-right: auto;
    min-width: 0;
}
.profile-selection-item-copy strong, .profile-selection-item-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-promo-card {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    display: block;
    margin-top: 10px;
    padding: 15px;
}
.profile-promo-card summary {
    color: var(--crm-text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
}
.profile-promo-card form + form {
    margin-top: 10px;
}
.delivery-zones-upload {
    max-width: 820px;
}
.delivery-zone-editor-heading, .delivery-zone-editor-footer {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}
.delivery-zone-editor-toolbar {
    align-items: end;
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    display: grid;
    gap: 11px;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) 72px;
    margin: 15px 0 12px;
    padding: 13px;
}
.delivery-zone-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 1 / -1;
}
.delivery-zone-editor-notice, .delivery-zones-empty {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    color: var(--crm-text-secondary);
    font-size: 12px;
    line-height: 1.5;
    padding: 12px 14px;
}
.delivery-zone-editor-notice {
    margin: 14px 0 12px;
}
.delivery-zone-editor-footer {
    margin-top: 12px;
}
.delivery-zones-map {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    height: 400px;
    overflow: hidden;
    width: 100%;
    z-index: 1;
}
.delivery-profile-map .delivery-zones-map {
    height: 600px;
}
.delivery-zones-table input[type="text"], .delivery-zones-table input[type="number"] {
    min-width: 110px;
    width: 100%;
}
.delivery-zone-color {
    background: var(--crm-accent);
    border: 2px solid var(--crm-surface);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--crm-border);
    display: inline-block;
    height: 28px;
    width: 28px;
}
.crm-profile-page .tbl-wrapper {
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    overflow-x: auto;
}
.crm-profile-page .inline-form {
    display: inline;
}
.crm-profile-page .badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 9px;
}
.crm-profile-page .badge-success {
    background: #e8f7ee;
    color: #147a3d;
}
.crm-profile-page .badge-danger {
    background: #fff0f0;
    color: var(--crm-danger);
}
.crm-ui-v2 .btn-danger {
    background: #fff0f0;
    border-color: #ffcaca;
    color: var(--crm-danger);
}
.crm-ui-v2 .btn-danger:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #b91c1c;
}
.crm-profile-page .btn-action {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text-secondary);
    display: inline-flex;
    font-size: 11px;
    font-weight: 650;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
}
.crm-profile-page .btn-action-edit:hover {
    background: var(--crm-accent-soft);
    border-color: var(--crm-accent);
    color: var(--crm-accent);
}
.crm-profile-page .btn-action-delete:hover {
    background: #fff0f0;
    border-color: #ffcaca;
    color: var(--crm-danger);
}
.crm-ui-v2 .tbl-wrapper.loyalty-history-table {
    margin-top: 15px;
    max-height: 360px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.crm-ui-v2 .tbl-wrapper.loyalty-history-table .orders-table thead th {
    background: var(--crm-surface-muted);
    position: sticky;
    top: 0;
    z-index: 2;
}
.crm-profile-page .loyalty-positive {
    color: var(--crm-success);
    font-weight: 700;
}
.crm-profile-page .loyalty-negative {
    color: var(--crm-danger);
    font-weight: 700;
}
.crm-courier-form-page {
    display: grid;
    gap: 18px;
    max-width: 960px;
}
.crm-courier-form {
    margin: 0;
}
.crm-courier-form-card {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    overflow: hidden;
    padding: 0;
}
.crm-courier-form-card__header {
    align-items: center;
    border-bottom: 1px solid var(--crm-border);
    display: flex;
    gap: 14px;
    padding: 22px 24px;
}
.crm-courier-form-card__icon {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: 12px;
    color: var(--crm-accent);
    display: flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
}
.crm-courier-form-card__icon .crm-icon {
    height: 22px;
    width: 22px;
}
.crm-courier-form-card__header h2 {
    font-size: 17px;
    line-height: 1.3;
    margin: 0;
}
.crm-courier-form-card__header p {
    color: var(--crm-text-secondary);
    font-size: 12px;
    margin: 4px 0 0;
}
.crm-courier-form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
}
.crm-courier-form-grid .form-group > label {
    color: var(--crm-text);
    font-size: 12px;
}
.crm-courier-form-grid .form-group > label span {
    color: var(--crm-danger);
}
.crm-courier-form-grid .form-group small {
    color: var(--crm-text-muted);
    display: block;
    font-size: 11px;
    line-height: 1.45;
    margin-top: 7px;
}
.crm-ui-v2 .crm-courier-form-grid input, .crm-ui-v2 .crm-courier-form-grid select {
    height: 44px;
}
.crm-courier-form-status {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
}
.crm-courier-form-actions {
    align-items: center;
    background: var(--crm-surface-muted);
    border-top: 1px solid var(--crm-border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 18px 24px;
}
.crm-courier-form-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    min-width: 136px;
    text-decoration: none;
}
.crm-courier-form-actions .crm-icon {
    height: 16px;
    width: 16px;
}
@page order-sheet {
    size: A4 portrait;
    margin: 5mm;
}
@page receipt-80-sheet {
    size: 80mm 297mm;
    margin: 4mm;
}
.crm-superadmin-page {
    display: grid;
    gap: 18px;
}
.crm-superadmin-hero {
    align-items: center;
    background: linear-gradient(125deg, var(--crm-surface) 0%, var(--crm-accent-soft) 145%);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    display: flex;
    justify-content: space-between;
    min-height: 126px;
    padding: 24px 26px;
}
.crm-superadmin-eyebrow {
    color: var(--crm-accent);
    display: block;
    font-size: 10px;
    font-weight: 750;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.crm-superadmin-hero h2 {
    font-size: 24px;
    margin: 0;
}
.crm-superadmin-hero p {
    color: var(--crm-text-muted);
    font-size: 12px;
    margin: 7px 0 0;
}
.crm-ui-v2 .crm-superadmin-add {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
}
.crm-superadmin-add .crm-icon {
    height: 17px;
    width: 17px;
}
.crm-superadmin-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.crm-superadmin-stat {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    display: flex;
    gap: 14px;
    min-height: 92px;
    padding: 18px 20px;
}
.crm-superadmin-stat__icon {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: var(--crm-radius-md);
    color: var(--crm-accent);
    display: inline-flex;
    flex: 0 0 48px;
    height: 48px;
    justify-content: center;
}
.crm-superadmin-stat__icon .crm-icon {
    height: 22px;
    width: 22px;
}
.crm-superadmin-stat strong, .crm-superadmin-stat small {
    display: block;
}
.crm-superadmin-stat strong {
    color: var(--crm-text);
    font-size: 22px;
    line-height: 1.1;
}
.crm-superadmin-stat small {
    color: var(--crm-text-muted);
    font-size: 11px;
    margin-top: 6px;
}
.crm-superadmin-card {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-lg);
    box-shadow: var(--crm-shadow);
    overflow: hidden;
}
.crm-superadmin-card__header {
    align-items: center;
    border-bottom: 1px solid var(--crm-border);
    display: flex;
    justify-content: space-between;
    min-height: 76px;
    padding: 16px 20px;
}
.crm-superadmin-card__header h3 {
    font-size: 15px;
    margin: 0;
}
.crm-superadmin-card__header p {
    color: var(--crm-text-muted);
    font-size: 11px;
    margin: 5px 0 0;
}
.crm-superadmin-card__count {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: 999px;
    color: var(--crm-accent);
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    height: 30px;
    justify-content: center;
    min-width: 30px;
    padding: 0 10px;
}
.crm-superadmin-table-wrap {
    overflow-x: auto;
}
.crm-superadmin-table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}
.crm-superadmin-table th {
    background: var(--crm-surface-muted);
    color: var(--crm-text-secondary);
    font-size: 10px;
    font-weight: 700;
    height: 44px;
    padding: 0 14px;
    text-align: left;
    text-transform: uppercase;
}
.crm-superadmin-table td {
    border-bottom: 1px solid var(--crm-border);
    color: var(--crm-text);
    font-size: 12px;
    height: 68px;
    padding: 10px 14px;
    vertical-align: middle;
}
.crm-superadmin-table tbody tr:last-child td {
    border-bottom: 0;
}
.crm-superadmin-table tbody tr:hover td {
    background: var(--crm-surface-muted);
}
.crm-superadmin-org {
    color: var(--crm-accent);
    font-weight: 700;
    text-decoration: none;
}
.crm-superadmin-org:hover {
    text-decoration: underline;
}
.crm-superadmin-contact, .crm-superadmin-secondary, .crm-superadmin-tariff {
    display: block;
}
.crm-superadmin-contact, .crm-superadmin-tariff {
    font-weight: 600;
}
.crm-superadmin-secondary {
    color: var(--crm-text-muted);
    font-size: 10px;
    margin-top: 4px;
}
.crm-superadmin-db {
    background: var(--crm-surface-muted);
    border: 1px solid var(--crm-border);
    border-radius: 7px;
    color: var(--crm-text-secondary);
    display: inline-flex;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    padding: 5px 7px;
}
.crm-superadmin-number {
    align-items: center;
    background: var(--crm-surface-muted);
    border-radius: 8px;
    display: inline-flex;
    font-weight: 700;
    height: 30px;
    justify-content: center;
    min-width: 30px;
}
.crm-superadmin-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 650;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    white-space: nowrap;
}
.crm-superadmin-badge i {
    border-radius: 50%;
    height: 7px;
    width: 7px;
}
.crm-superadmin-badge.is-active {
    background: rgba(34, 168, 91, 0.1);
    color: var(--crm-success);
}
.crm-superadmin-badge.is-active i {
    background: var(--crm-accent);
}
.crm-superadmin-badge.is-blocked {
    background: rgba(220, 53, 69, 0.1);
    color: var(--crm-danger);
}
.crm-superadmin-badge.is-blocked i {
    background: var(--crm-danger);
}
.crm-superadmin-open {
    align-items: center;
    background: var(--crm-accent-soft);
    border-radius: 8px;
    color: var(--crm-accent);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    transition: background-color 160ms ease, color 160ms ease;
    width: 34px;
}
.crm-superadmin-open:hover {
    background: var(--crm-accent);
    color: #ffffff;
}
.crm-superadmin-open .crm-icon {
    height: 16px;
    width: 16px;
}
.crm-select {
    display: inline-block;
    min-width: 0;
    position: relative;
    vertical-align: top;
    width: 100%;
}
.crm-select__native {
    display: none;
}
.crm-select__trigger {
    align-items: center;
    background: var(--crm-surface);
    border: 1px solid var(--crm-border-strong);
    border-radius: var(--crm-radius-sm);
    color: var(--crm-text);
    display: flex;
    font-size: 13px;
    gap: 8px;
    height: 40px;
    justify-content: space-between;
    margin: 0;
    min-width: 0;
    padding: 0 10px 0 11px;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    width: 100%;
}
.crm-select__trigger:hover, .crm-select__trigger:focus-visible, .crm-select.is-open .crm-select__trigger {
    border-color: var(--crm-accent);
    outline: 0;
}
.crm-select__trigger:focus-visible, .crm-select.is-open .crm-select__trigger {
    box-shadow: 0 0 0 3px rgba(11, 111, 244, 0.12);
}
.crm-select.is-invalid .crm-select__trigger {
    border-color: var(--crm-danger);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}
.crm-select__trigger:disabled {
    background: var(--crm-surface-muted);
    color: var(--crm-text-muted);
    cursor: not-allowed;
    opacity: 0.72;
}
.crm-select__value {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crm-select__chevron {
    color: var(--crm-text-muted);
    flex: 0 0 16px;
    height: 16px;
    transition: transform 160ms ease;
    width: 16px;
}
.crm-select.is-open .crm-select__chevron {
    transform: rotate(180deg);
}
.crm-select__menu {
    background: var(--crm-surface);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    box-shadow: 0 18px 40px rgba(27, 57, 96, 0.16);
    display: grid;
    gap: 3px;
    min-width: 190px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px;
    position: fixed;
    z-index: 10025;
}
.crm-select__menu[hidden] {
    display: none;
}
.crm-select__group {
    color: var(--crm-text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 8px 8px 4px;
    text-transform: uppercase;
}
.crm-select__option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: var(--crm-text);
    display: flex;
    font-size: 13px;
    gap: 8px;
    justify-content: space-between;
    min-height: 40px;
    padding: 6px 8px;
    text-align: left;
    width: 100%;
}
.crm-select__option:hover, .crm-select__option:focus-visible, .crm-select__option.is-current {
    background: var(--crm-surface-muted);
    outline: 0;
}
.crm-select__option:disabled {
    color: var(--crm-text-muted);
    cursor: not-allowed;
    opacity: 0.58;
}
.crm-select__option-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.crm-select__check {
    color: var(--crm-accent);
    flex: 0 0 16px;
    height: 16px;
    width: 16px;
}
.crm-filter-field .crm-select__trigger {
    border-color: var(--crm-border);
    font-size: 12px;
    height: 44px;
    padding-left: 12px;
}
.crm-orders-table .crm-select {
    min-width: 145px;
}
.crm-orders-table .crm-select__trigger {
    font-weight: 600;
    height: 38px;
    padding-left: 12px;
}
.order-workspace-summary__discount .crm-select {
    flex: 0 0 126px;
    width: 126px;
}
.order-workspace-summary__discount .crm-select__trigger {
    height: 34px;
    padding-left: 9px;
    padding-right: 9px;
}
.crm-courier-form-grid .crm-select__trigger {
    height: 44px;
}
/* Catalog manager */
.catalog-manager-toolbar {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px
}
.catalog-manager-toolbar .profile-setting-field {
    min-width:280px;
    margin:0
}
.catalog-card-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px
}
.catalog-card {
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;
    min-height:132px;
    padding:18px;
    border:1px solid var(--crm-border);
    border-radius:18px;
    background:var(--crm-surface);
    box-shadow:0 10px 30px rgba(25,36,54,.06);
    transition:transform .2s ease,border-color .2s ease
}
.catalog-card:hover {
    transform:translateY(-2px);
    border-color:var(--crm-accent)
}
.catalog-card.is-inactive {
    opacity:.62
}
.catalog-card-index,.catalog-badge-placeholder {
    display:grid;
    place-items:center;
    flex:0 0 46px;
    height:46px;
    border-radius:14px;
    background:var(--crm-accent-soft);
    color:var(--crm-accent);
    font-weight:800
}
.catalog-card-copy {
    min-width:0;
    flex:1
}
.catalog-price-editor {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px 12px;
    margin:6px 0;
}
.catalog-price-field {
    width:140px;
    max-width:100%;
    margin:0;
}
.catalog-price-field input {
    width:100%;
    min-width:0;
    font-weight:700;
}
.catalog-price-status {
    flex:1 1 100px;
    min-width:0;
    overflow-wrap:anywhere;
    font-size:12px;
    color:var(--crm-text-muted);
}
.catalog-price-status.catalog-error {
    color:var(--crm-danger);
}
.catalog-card-copy h4 {
    margin:4px 0 6px;
    font-size:17px
}
.catalog-card-copy p {
    display:-webkit-box;
    overflow:hidden;
    margin:0 0 6px;
    color:var(--text-secondary);
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical
}
.catalog-card-copy small {
    color:var(--crm-text-muted)
}
.catalog-state {
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--crm-success)
}
.catalog-card.is-inactive .catalog-state {
    color:var(--crm-text-muted)
}
.catalog-card-actions {
    display:flex;
    align-items:center;
    gap:8px
}
.catalog-product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
}
.catalog-product-list {
    display:flex;
    flex-direction:column;
    gap:10px
}
.catalog-product-row {
    min-height:88px;
    padding:10px 14px
}
.catalog-product-row .catalog-drag-handle {
    position:static;
    display:grid;
    place-items:center;
    flex:0 0 34px;
    width:34px;
    height:42px;
    padding:0;
    border:0;
    background:transparent;
    color:var(--crm-text-muted);
    font-size:20px;
    font-weight:800;
    cursor:grab
}
.catalog-product-row .catalog-drag-handle:active {
    cursor:grabbing
}
.catalog-product-row .catalog-product-image {
    flex-basis:68px;
    height:68px;
    border-radius:12px
}
.catalog-product-row .catalog-card-copy h4 {
    margin:3px 0 5px
}
.catalog-product-row .catalog-price-editor {
    flex:0 0 230px;
    margin:0
}
.catalog-product-row .catalog-price-field {
    width:118px
}
.catalog-product-row .catalog-card-actions {
    flex:0 0 auto
}
.catalog-product-image {
    display:grid;
    place-items:center;
    flex:0 0 104px;
    height:104px;
    overflow:hidden;
    border-radius:15px;
    background:var(--crm-surface-muted);
    color:var(--crm-text-muted);
    font-size:12px
}
.catalog-product-image img {
    width:100%;
    height:100%;
    object-fit:cover
}
.catalog-badge-icon {
    width:52px;
    height:52px;
    object-fit:contain
}
.catalog-error {
    padding:16px;
    border-radius:12px;
    background:rgba(220,53,69,.08);
    color:#c73545
}
.catalog-dialog {
    width: min(960px,calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: var(--crm-surface);
    color: var(--text-primary);
    box-shadow: 0 24px 80px rgba(11,22,40,.28);
    margin: 20px auto;
}
.catalog-dialog::backdrop {
    background:rgba(8,18,32,.58);
    backdrop-filter:blur(4px)
}
.catalog-dialog-shell {
    display:flex;
    flex-direction:column;
    max-height:calc(100vh - 32px)
}
.catalog-dialog-header,.catalog-dialog-footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:20px 24px;
    border-bottom:1px solid var(--crm-border)
}
.catalog-dialog-header h3 {
    margin:2px 0 0
}
.catalog-dialog-kicker {
    font-size:11px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:var(--crm-accent)
}
.catalog-dialog-body {
    overflow:auto;
    padding:24px
}
.catalog-dialog-footer {
    justify-content:flex-end;
    border-top:1px solid var(--crm-border);
    border-bottom:0
}
.catalog-form-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px
}
.catalog-variant-editor,.catalog-variant-list {
    display: grid;
    gap: 16px;
}
.catalog-parameter-builder,.catalog-variant-bulk {
    padding: 18px;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    background: var(--crm-surface);
}
.catalog-parameter-list {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}
.catalog-parameter-row {
    display: grid;
    grid-template-columns: minmax(160px,.7fr) minmax(280px,1.3fr) auto;
    align-items: end;
    gap: 12px;
}
.catalog-bulk-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(140px,1fr)) repeat(3,auto);
    align-items: end;
    gap: 12px;
}
.catalog-variant-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 767px) {
    .catalog-parameter-row,.catalog-bulk-grid { grid-template-columns: 1fr; }
}
.catalog-variant-toolbar,.catalog-variant-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.catalog-variant-toolbar h4 {
    margin: 0 0 4px;
}
.catalog-variant-row {
    padding: 18px;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    background: var(--crm-surface-muted);
}
.catalog-variant-row-header {
    margin-bottom: 16px;
}
.catalog-variant-current-image {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.catalog-variant-current-image img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-sm);
    background: #fff;
}
.catalog-field-full,.catalog-toggle-grid {
    grid-column:1/-1
}
.catalog-toggle-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
}
.catalog-check,.catalog-choice label {
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 13px;
    border:1px solid var(--crm-border);
    border-radius:12px
}
.catalog-choice {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:14px;
    border:1px solid var(--crm-border);
    border-radius:14px
}
.catalog-choice legend {
    padding:0 8px;
    font-weight:700
}
/* Integrated category card ordering */
.catalog-manager-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.catalog-order-status {
    color: var(--crm-text-muted);
    font-size: 13px;
}
.catalog-category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.catalog-category-row {
    min-height: 88px;
    padding: 13px 18px;
}
.catalog-category-row .catalog-card-copy {
    display: grid;
    grid-template-columns: minmax(170px, .8fr) minmax(220px, 1.3fr) minmax(150px, .7fr);
    align-items: center;
    gap: 16px;
}
.catalog-category-row .catalog-card-copy h4,.catalog-category-row .catalog-card-copy p {
    margin: 0;
}
.catalog-category-row .catalog-state {
    position: absolute;
    top: 8px;
    left: 79px;
}
.catalog-order-controls {
    display: flex;
    gap: 6px;
}
.catalog-order-button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--crm-border);
    border-radius: 10px;
    background: var(--crm-surface-muted);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
}
.catalog-order-button:hover:not(:disabled) {
    border-color: var(--crm-accent);
    color: var(--crm-accent);
}
.catalog-order-button:disabled {
    opacity: .35;
    cursor: default;
}
.catalog-product-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 16px;
}
.catalog-product-filters .profile-setting-field {
    min-width: 280px;
    margin: 0;
}
.catalog-card.is-dragging {
    opacity: .42;
    transform: scale(.98);
}
.catalog-drag-handle {
    position: absolute;
    top: 28px;
    right: 6px;
    color: var(--crm-text-muted);
    font-size: 18px;
    font-weight: 800;
    cursor: grab;
}
.catalog-card[draggable="true"] {
    cursor: grab;
}
.catalog-card[draggable="true"]:active {
    cursor: grabbing;
}
.catalog-gift-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.catalog-gift-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.catalog-gift-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #f8fafc;
}
.catalog-gift-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #eaf3ff;
  color: #0b6ff4;
}
.catalog-gift-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.promotion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.promotion-row {
    display: grid;
    grid-template-columns: 36px 96px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 128px;
}
.promotion-row.is-dragging {
    opacity: .48;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
}
.promotion-list.is-saving {
    pointer-events: none;
}
.promotion-drag-handle {
    display: grid;
    width: 36px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--crm-text-muted);
    cursor: grab;
}
.promotion-drag-handle:hover {
    background: var(--crm-surface-muted);
    color: var(--crm-accent);
}
.promotion-drag-handle:active {
    cursor: grabbing;
}
.promotion-drag-handle svg {
    width: 20px;
    height: 24px;
    fill: currentColor;
}
.promotion-row-image {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
}
.promotion-row .catalog-state {
    color: var(--crm-accent);
}
.promotion-row.is-inactive .catalog-state {
    color: var(--crm-text-muted);
}
.promotion-toggle-form {
    margin: 0;
}
.promotion-edit,
.promotion-delete {
    position: relative;
}
.promotion-edit > summary,
.promotion-delete > summary {
    list-style: none;
}
.promotion-edit > summary::-webkit-details-marker,
.promotion-delete > summary::-webkit-details-marker {
    display: none;
}
.promotion-edit[open],
.promotion-delete[open] {
    grid-column: 1 / -1;
    width: 100%;
}
.promotion-edit[open] > summary {
    width: fit-content;
    margin-left: auto;
}
.promotion-delete {
    justify-self: end;
}
.promotion-delete-button {
    list-style: none;
    cursor: pointer;
}
.promotion-delete-confirmation {
    display: flex;
    margin-top: 12px;
    padding: 14px;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    border: 1px solid rgba(220, 38, 38, .22);
    border-radius: 12px;
    background: rgba(220, 38, 38, .05);
}
.review-total {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.review-list {
    display: grid;
    gap: 16px;
}
.review-card {
    padding: 20px;
    border: 1px solid var(--crm-border);
    border-radius: 16px;
    background: var(--white);
}
.review-card-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
}
.review-card-copy,
.review-card-actions {
    min-width: 0;
}
.review-card-meta,
.review-statuses,
.review-form-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.review-card-meta time {
    color: var(--gray-500);
    font-size: 13px;
}
.review-card-copy h4 {
    margin: 12px 0 0;
}
.review-text,
.review-reply p {
    margin: 10px 0 0;
    overflow-wrap: anywhere;
    line-height: 1.6;
}
.review-stars {
    color: #f5a623;
    font-size: 18px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.review-stars span {
    color: var(--gray-200);
}
.review-reply {
    margin-top: 14px;
    padding: 14px 16px;
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: var(--gray-50);
}
.review-reply.is-draft {
    border-left-color: var(--gray-400);
    opacity: .75;
}
.review-statuses {
    margin-top: 14px;
}
.review-card-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 12px;
}
.review-edit {
    width: min(680px, calc(100vw - 96px));
}
.review-edit > summary {
    margin-left: auto;
    list-style: none;
    cursor: pointer;
}
.review-edit > summary::-webkit-details-marker {
    display: none;
}
.review-edit[open] {
    grid-column: 1 / -1;
}
.review-edit-form {
    display: grid;
    margin-top: 14px;
    padding: 20px;
    gap: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--gray-50);
}
.review-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.review-rating-field {
    margin: 0;
    padding: 0;
    border: 0;
}
.review-rating-field legend {
    margin-bottom: 7px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
}
.review-rating-options {
    display: flex;
    width: fit-content;
    flex-direction: row-reverse;
}
.review-rating-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.review-rating-options label {
    padding: 0 3px;
    color: var(--gray-300);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}
.review-rating-options input:checked ~ label,
.review-rating-options label:hover,
.review-rating-options label:hover ~ label {
    color: #f5a623;
}
.review-rating-options input:focus-visible + label {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.review-source-readonly {
    display: flex;
    min-height: 74px;
    padding: 12px 14px;
    justify-content: center;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--white);
}
.review-source-readonly span,
.review-source-readonly small {
    color: var(--gray-500);
    font-size: 12px;
}
/* Review notifications. */
.crm-notification-center {
    position: relative;
    flex: 0 0 auto;
}
.crm-notification-button {
    position: relative;
}
.crm-notification-center__dot {
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crm-accent);
    box-shadow: 0 0 0 2px var(--crm-surface);
    pointer-events: none;
}
.crm-notification-center__panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    width: min(260px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius-md);
    background: var(--crm-surface);
    color: var(--crm-text);
    box-shadow: var(--crm-shadow);
    font-size: 14px;
    line-height: 1.5;
}
.crm-notification-center__panel > div + div {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--crm-border);
}
.crm-notification-center__panel p {
    margin: 0 0 8px;
}
.crm-notification-center__panel a {
    color: var(--crm-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1500px) {
    .statistics-filter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .statistics-filter-actions {
        grid-column: span 3;
    }
    .crm-filter-form:not(.crm-couriers-filter-form) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1250px) {
    .crm-courier-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .crm-login {
        grid-template-columns: minmax(390px, .9fr) minmax(470px, 1.1fr);
    }
    .crm-login__form-panel, .crm-login__showcase {
        padding: 44px;
    }
    .crm-login-preview__stats > div {
        grid-template-columns: 1fr;
    }
    .crm-login-preview__icon {
        display: none;
    }
    .crm-order-view-card > .order-info, .crm-customer-summary .info-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .statistics-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .statistics-chart-grid {
        grid-template-columns: 1fr 1fr;
    }
    .crm-ui-v2 .system-message {
        right: 24px;
        top: 104px;
    }
    .crm-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .crm-filter-form {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .crm-filter-field--search {
        grid-column: span 2;
    }
    .crm-preorders-page .crm-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .crm-preorders-filter-form {
        grid-template-columns: 1fr auto;
    }
    .crm-customers-page .crm-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .crm-customers-filter-form {
        grid-template-columns: 1fr auto;
    }
    .crm-couriers-page .crm-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .crm-couriers-filter-form {
        grid-template-columns: minmax(220px, 1fr) minmax(140px, .55fr) minmax(160px, .65fr) auto auto;
    }
    .crm-couriers-filter-form .crm-filter-field--search {
        grid-column: auto;
    }
    .crm-filter-reset {
        grid-column: auto;
    }
    .order-product-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .order-address-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .order-address-street {
        grid-column: span 2;
    }
}
@media (max-width: 1024px) {
    .crm-report-trigger {
        justify-content: center;
        padding: 0;
        width: 36px;
    }
    .crm-report-trigger span {
        display: none;
    }
    .profile-settings-row {
        align-items: stretch;
        grid-template-columns: 1fr 1fr;
    }
    .profile-settings-row-name {
        grid-column: 1 / -1;
    }
    .delivery-time-option-row {
        align-items: end;
        grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
    }
    .delivery-time-option-row .profile-settings-row-name {
        grid-column: auto;
    }
    .crm-login {
        gap: 16px;
        grid-template-columns: minmax(370px, 1fr) minmax(390px, 1fr);
        padding: 16px;
    }
    .crm-login__form-panel, .crm-login__showcase {
        padding: 34px;
    }
    .crm-login__showcase-copy h2 {
        font-size: 36px;
    }
    .crm-login-preview {
        margin-top: 42px;
    }
    .statistics-products-layout, .statistics-customer-layout {
        grid-template-columns: 1fr;
    }
    .crm-order-view-card .history-head, .crm-order-view-card .history-item {
        grid-template-columns: 120px 1fr 1fr;
    }
    .crm-order-view-card .history-coll.old, .crm-order-view-card .history-coll.new {
        display: none;
    }
    .crm-shell {
        display: block;
    }
    .crm-sidebar {
        box-shadow: 20px 0 40px rgba(15, 23, 36, 0.18);
        position: fixed;
        transform: translateX(-105%);
        transition: transform 200ms ease;
        width: min(300px, calc(100vw - 44px));
    }
    .crm-ui-v2.is-sidebar-open .crm-sidebar {
        transform: translateX(0);
    }
    .crm-ui-v2.is-sidebar-open .crm-sidebar-overlay {
        display: block;
    }
    .crm-sidebar__collapse {
        display: none;
    }
    .crm-mobile-menu {
        display: inline-flex;
    }
    .crm-topbar {
        padding-left: 20px;
        padding-right: 20px;
    }
    .crm-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    .order-workspace {
        grid-template-columns: 1fr;
        overflow: visible;
    }
    .order-workspace__left {
        border-right: 0;
    }
    .order-workspace__right {
        border-top: 1px solid var(--crm-border);
        min-height: 520px;
    }
    .order-editor-panels {
        overflow: visible;
    }
    .order-catalog-panel, .order-map-panel {
        min-height: 520px;
    }
}
@media (max-width: 820px) {
    .crm-ui-v2 .orders-report__summary {
        grid-template-columns: 1fr;
    }
    .crm-courier-summary {
        align-items: flex-start;
        flex-direction: column;
    }
    .crm-courier-period__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .crm-courier-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .business-hours-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .delivery-zone-editor-heading, .delivery-zone-editor-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .delivery-zone-editor-toolbar {
        grid-template-columns: 1fr;
    }
    .delivery-zone-editor-actions {
        grid-column: auto;
    }
    .crm-login {
        display: block;
        padding: 14px;
    }
    .crm-login__form-panel {
        margin: 0 auto;
        max-width: 620px;
        min-height: calc(100vh - 28px);
        padding: 42px;
    }
    .crm-login__showcase {
        display: none;
    }
    .crm-login__intro {
        margin-top: 90px;
    }
    .crm-page-heading, .crm-order-view-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .crm-page-heading__actions {
        width: 100%;
    }
    .crm-customer-card-page .crm-kpi-grid, .statistics-kpis, .statistics-customer-kpis, .statistics-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .crm-customer-card-page .comments-grid {
        grid-template-columns: 1fr;
    }
    .statistics-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .statistics-filter-actions {
        grid-column: span 2;
    }
    .crm-topbar {
        height: 78px;
    }
    .crm-topbar h1 {
        font-size: 21px;
    }
    .crm-user-menu__name, .crm-user-menu > .crm-icon, .crm-topbar .theme-toggle {
        display: none;
    }
    .crm-primary-action {
        padding: 0 13px;
    }
    .crm-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .crm-kpi-card {
        min-height: 102px;
        padding: 16px;
    }
    .crm-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .crm-filter-field--search {
        grid-column: span 2;
    }
    .crm-preorders-page .crm-kpi-grid {
        grid-template-columns: 1fr;
    }
    .crm-preorders-filter-form {
        grid-template-columns: 1fr auto;
    }
    .crm-customers-page .crm-kpi-grid {
        grid-template-columns: 1fr;
    }
    .crm-customers-filter-form {
        grid-template-columns: 1fr auto;
    }
    .crm-couriers-page .crm-kpi-grid {
        grid-template-columns: 1fr;
    }
    .crm-couriers-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .crm-couriers-filter-form .crm-filter-field--search {
        grid-column: span 2;
    }
    .crm-pagination {
        gap: 12px;
        grid-template-columns: 1fr auto;
    }
    .crm-pagination__size {
        display: none;
    }
    .order-command-bar {
        align-items: flex-start;
        flex-direction: column;
    }
    .order-command-bar__actions {
        width: 100%;
    }
    .order-command-bar__actions .btn {
        flex: 1;
    }
    .order-line__main {
        align-items: stretch;
        gap: 7px;
        grid-template-columns: 1fr;
    }
    .crm-courier-form-grid {
        grid-template-columns: 1fr;
    }
    .crm-courier-form-status {
        grid-column: auto;
        max-width: none;
    }
}
@media (max-width: 576px) {
    .crm-courier-summary {
        padding: 16px;
    }
    .crm-courier-summary__identity {
        align-items: flex-start;
    }
    .crm-courier-summary__avatar {
        flex-basis: 46px;
        height: 46px;
    }
    .crm-courier-summary h2 {
        font-size: 20px;
    }
    .crm-courier-period__form, .crm-courier-kpis, .crm-import-form__grid, .crm-profile-page .grid-2col, .profile-settings-row, .business-hours-row {
        grid-template-columns: 1fr;
    }
    .delivery-time-option-row .btn {
        width: 100%;
    }
    .crm-courier-period__form .btn, .crm-courier-period__form > a, .crm-import-actions .btn, .crm-import-actions > a {
        width: 100%;
    }
    .crm-import-panel__intro, .crm-import-form, .form-card-body {
        padding: 16px;
    }
    .crm-import-tabs, .org-tabs {
        overflow-x: auto;
    }
    .order-catalog-toolbar {
        grid-template-columns: 1fr;
    }
    .order-catalog-site[hidden] + .order-catalog-search {
        grid-column: auto;
    }
    .crm-import-tab, .org-tab-button {
        min-height: 40px;
        padding: 0 11px;
    }
    .business-hours-time, .business-hours-toggle {
        grid-column: 1;
    }
    .crm-login {
        padding: 0;
    }
    .crm-login__form-panel {
        border: 0;
        border-radius: 0;
        min-height: 100vh;
        padding: 28px 22px;
    }
    .crm-login__brand .crm-brand__logo--full {
        height: 46px;
        width: 160px;
    }
    .crm-login__intro {
        margin-top: 76px;
    }
    .crm-login__intro h1 {
        font-size: 32px;
    }
    .crm-login__form {
        margin-top: 26px;
    }
    .crm-login__note {
        padding-top: 32px;
    }
    .crm-page-heading__copy h1 {
        font-size: 23px;
    }
    .crm-page-heading__actions .btn {
        flex: 1 1 auto;
    }
    .crm-courier-form-card__header, .crm-courier-form-grid, .crm-courier-form-actions {
        padding: 16px;
    }
    .crm-courier-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .crm-courier-form-actions .btn {
        width: 100%;
    }
    .crm-order-view-card {
        padding: 14px;
    }
    .crm-order-view-card > .order-info, .crm-customer-summary .info-card, .crm-customer-card-page .crm-kpi-grid, .statistics-kpis, .statistics-customer-kpis, .statistics-chart-grid, .statistics-filter {
        grid-template-columns: 1fr;
    }
    .crm-order-view-card .commentinfo, .crm-order-view-card .col3-5, .statistics-filter-actions {
        grid-column: auto;
    }
    .statistics-tabs {
        overflow-x: auto;
    }
    .statistics-tab {
        flex: 0 0 auto;
    }
    .statistics-filter-actions .btn {
        flex: 1;
    }
    .crm-order-view-card .history-head {
        display: none;
    }
    .crm-order-view-card .history-item {
        grid-template-columns: 1fr;
    }
    .crm-ui-v2 .system-message {
        max-width: calc(100% - 24px);
        right: 12px;
        top: 74px;
        width: calc(100% - 24px);
    }
    .crm-ui-v2 .toast-notification {
        bottom: 12px;
        max-width: calc(100% - 24px);
        min-width: 0;
        right: 12px;
        width: calc(100% - 24px);
    }
    .crm-ui-v2 .browser-notification-banner {
        align-items: stretch;
        bottom: 12px;
        flex-wrap: wrap;
        width: calc(100% - 24px);
    }
    .crm-topbar {
        padding: 14px 12px;
    }
    .crm-topbar__actions {
        gap: 6px;
    }
    .crm-user-menu {
        padding: 0;
    }
    .crm-user-menu__avatar {
        flex-basis: 36px;
        height: 36px;
    }
    .crm-primary-action {
        height: 40px;
        width: 40px;
    }
    .crm-primary-action span {
        display: none;
    }
    .crm-content {
        padding: 8px 12px 24px;
    }
    .crm-orders-page {
        gap: 12px;
    }
    .crm-kpi-grid {
        gap: 10px;
    }
    .crm-kpi-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        min-height: 132px;
    }
    .crm-kpi-card__icon {
        flex-basis: 42px;
        height: 42px;
        width: 42px;
    }
    .crm-kpi-card__icon .crm-icon {
        height: 21px;
        width: 21px;
    }
    .crm-kpi-card__content strong {
        font-size: 19px;
    }
    .crm-filter-panel {
        padding: 12px;
    }
    .crm-filter-form {
        grid-template-columns: 1fr;
    }
    .crm-filter-field--search {
        grid-column: auto;
    }
    .crm-preorders-filter-form {
        grid-template-columns: 1fr;
    }
    .crm-preorders-filter-form .crm-filter-reset {
        width: 100%;
    }
    .crm-customers-filter-form {
        grid-template-columns: 1fr;
    }
    .crm-customers-filter-form .crm-filter-reset {
        width: 100%;
    }
    .crm-page-heading {
        align-items: stretch;
        flex-direction: column;
    }
    .crm-couriers-filter-form {
        grid-template-columns: 1fr;
    }
    .crm-couriers-filter-form .crm-filter-field--search {
        grid-column: auto;
    }
    .crm-couriers-filter-form .crm-filter-reset {
        width: 100%;
    }
    .crm-couriers-filter-form .crm-primary-action {
        width: 100%;
    }
    .crm-pagination {
        display: flex;
        flex-direction: column;
    }
    .crm-pagination__pages {
        flex-wrap: wrap;
    }
    .crm-ui-v2 .order-preview, .crm-ui-v2 .orders-report {
        max-width: calc(100vw - 24px);
        width: calc(100vw - 24px);
    }
    .crm-ui-v2 .order-preview__header, .crm-ui-v2 .order-preview__body, .crm-ui-v2 .orders-report__header, .crm-ui-v2 .orders-report__body {
        padding: 16px;
    }
    .crm-ui-v2 .order-preview__items li {
        gap: 12px;
    }
    .crm-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
    .order-command-bar {
        margin-bottom: 12px;
        padding: 12px;
    }
    .order-command-bar__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .order-editor-tabs {
        gap: 3px;
        padding: 7px;
    }
    .order-editor-tab {
        flex-direction: column;
        font-size: 10px;
        gap: 3px;
        min-height: 52px;
        padding: 5px 2px;
    }
    .order-editor-tab__count {
        position: absolute;
        right: 3px;
        top: 3px;
    }
    .order-editor-panels {
        padding: 8px;
    }
    .order-editor-col {
        padding: 12px;
    }
    .order-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }
    .order-fields-grid, .order-address-grid {
        grid-template-columns: 1fr;
    }
    .order-field-wide, .order-address-street {
        grid-column: auto;
    }
    .order-time-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
    .crm-time-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .order-line {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .order-line__sum {
        grid-column: 1;
        text-align: left;
    }
    .order-line__remove {
        grid-column: 2;
        grid-row: 1;
    }
    .order-workspace-summary {
        align-items: stretch;
        bottom: 0;
        display: flex;
        flex-direction: column;
        position: sticky;
        z-index: 20;
    }
    .order-workspace-summary__discount {
        display: flex;
    }
    .order-workspace-summary__discount select {
        min-width: 0;
    }
    .order-workspace-summary__totals {
        justify-content: space-between;
    }
    .order-workspace-summary__actions {
        display: flex;
        flex-wrap: nowrap;
    }
    .order-workspace-summary__actions .btn {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        white-space: nowrap;
    }
    .order-catalog-body {
        grid-template-columns: 108px minmax(0, 1fr);
    }
    .order-product-tiles {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 820px) {
    .crm-superadmin-stats {
        grid-template-columns: 1fr;
    }
    .crm-superadmin-stat {
        min-height: 78px;
    }
}
@media (max-width: 576px) {
    .crm-superadmin-page {
        gap: 12px;
    }
    .crm-superadmin-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding: 18px;
    }
    .crm-superadmin-hero h2 {
        font-size: 22px;
    }
    .crm-ui-v2 .crm-superadmin-add {
        justify-content: center;
        width: 100%;
    }
    .crm-superadmin-stats {
        gap: 10px;
    }
    .crm-superadmin-stat {
        padding: 14px 16px;
    }
    .crm-superadmin-card__header {
        padding: 14px 16px;
    }
}
@media print {
    .crm-sidebar, .crm-sidebar-overlay, .crm-topbar, .crm-footer {
        display: none;
    }
    .crm-content {
        padding: 0;
    }
    html[data-print-mode] body {
        background: #ffffff;
        color: #000000;
        page: order-sheet;
    }
    html[data-print-mode][data-print-format="receipt_80"] body {
        page: receipt-80-sheet;
        width: 72mm;
    }
    html[data-print-mode] .crm-order-view-page, html[data-print-mode] .crm-content, html[data-print-mode] .main {
        display: block;
        margin: 0;
        max-width: none;
        padding: 0;
        width: 100%;
    }
    html[data-print-mode] .crm-order-view-page > .crm-order-view-heading, html[data-print-mode] .crm-order-view-page > .receipt-print-header, html[data-print-mode] .crm-order-view-page > .order-receipt {
        display: none;
    }
    html[data-print-mode] .receipt-sheet-a4 {
        border-collapse: collapse;
        color: #000000;
        display: table;
        table-layout: fixed;
        width: 100%;
    }
    html[data-print-mode] .receipt-sheet-80 {
        color: #000000;
        display: block;
        width: 72mm;
    }
    html[data-print-mode] .receipt-cell {
        padding: 0;
        vertical-align: top;
        width: 33.333%;
    }
    html[data-print-mode] .receipt-cell + .receipt-cell {
        border-left: 1px dashed #777777;
    }
    html[data-print-mode] .receipt-copy {
        break-inside: avoid;
        font-size: 6pt;
        line-height: 1.2;
        margin: 0;
        overflow: hidden;
        padding: 2.5mm 2mm;
        width: auto;
    }
    html[data-print-mode] .receipt-copy-header {
        margin-bottom: 2mm;
        text-align: center;
    }
    html[data-print-mode] .receipt-copy-organization {
        font-size: 9.5pt;
        font-weight: 800;
        line-height: 1.08;
    }
    html[data-print-mode] .receipt-copy-title {
        color: #000000;
        font-size: 7.5pt;
        font-weight: 700;
        margin-top: .7mm;
        text-transform: uppercase;
    }
    html[data-print-mode] .receipt-copy-number {
        color: #000000;
        font-size: 7pt;
        margin-top: .5mm;
    }
    html[data-print-mode] .receipt-details, html[data-print-mode] .receipt-products {
        border-collapse: collapse;
        width: 100%;
    }
    html[data-print-mode] .receipt-details {
        margin-bottom: 1.5mm;
        table-layout: fixed;
    }
    html[data-print-mode] .receipt-details th, html[data-print-mode] .receipt-details td {
        border: 1px solid #c8cdd5;
        padding: .6mm .7mm;
        text-align: left;
        vertical-align: top;
    }
    html[data-print-mode] .receipt-details th {
        color: #000000;
        font-size: 5.2pt;
        line-height: 1.8;
        text-transform: uppercase;
        width: 24%;
    }
    html[data-print-mode] .receipt-details td {
        font-size: 8pt;
        overflow-wrap: break-word;
        width: 76%;
    }
    html[data-print-mode] .receipt-products {
        display: table;
        font-size: 6pt;
        line-height: 1.15;
        table-layout: fixed;
    }
    html[data-print-mode] .receipt-products th, html[data-print-mode] .receipt-products td {
        border: 0;
        border-bottom: 1px solid #c8cdd5;
        font-size: 8pt;
        padding: .65mm .55mm;
        text-align: left;
    }
    html[data-print-mode] .receipt-products thead th {
        border-bottom: 1px solid #222222;
        border-top: 1px solid #222222;
        color: #000000;
        font-size: 5.1pt;
        text-transform: uppercase;
    }
    html[data-print-mode] .receipt-products thead th:first-child {
        width: 52%;
    }
    html[data-print-mode] .receipt-products thead th:nth-child(2) {
        width: 18%;
    }
    html[data-print-mode] .receipt-products thead th:nth-child(3) {
        width: 10%;
    }
    html[data-print-mode] .receipt-products thead th:nth-child(4) {
        width: 20%;
    }
    html[data-print-mode] .receipt-products tfoot th {
        border-bottom: 0;
        border-top: 1.5px solid #111827;
        color: #000000;
        font-size: 9pt;
    }
    html[data-print-mode] .receipt-products tfoot .receipt-discount-row th {
        border-top: 1px solid #9ca3af;
        font-size: 8pt;
    }
    html[data-print-mode] td.receipt-number-cell {
        text-align: right;
        white-space: nowrap;
    }
    html[data-print-mode] .receipt-comment {
        border: 1px solid #c8cdd5;
        margin-top: 1.2mm;
        overflow-wrap: break-word;
        padding: .8mm;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-copy {
        break-inside: avoid-page;
        font-size: 11.2pt;
        line-height: 1.2;
        padding: 0;
        width: 72mm;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-copy-organization {
        font-size: 16.8pt;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-copy-title {
        font-size: 12.6pt;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-copy-number {
        font-size: 10.5pt;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-details th {
        font-size: 9.1pt;
        line-height: 1.35;
        width: 27%;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-details td {
        font-size: 11.2pt;
        width: 73%;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-products th, html[data-print-mode][data-print-format="receipt_80"] .receipt-products td {
        font-size: 11.2pt;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-products thead th {
        font-size: 7.14pt;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-products thead th:first-child {
        width: 49%;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-products thead th:nth-child(2) {
        width: 18%;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-products thead th:nth-child(3) {
        width: 11%;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-products thead th:nth-child(4) {
        width: 22%;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-products tfoot th {
        font-size: 12.6pt;
    }
    html[data-print-mode][data-print-format="receipt_80"] .receipt-products tfoot .receipt-discount-row th {
        font-size: 10.5pt;
    }
}
@media (max-width: 1100px) {
    .catalog-card-grid,.catalog-product-grid {
        grid-template-columns:1fr
    }
}
@media (max-width: 700px) {
    .catalog-manager-toolbar {
        align-items:stretch;
        flex-direction:column
    }
    .catalog-manager-toolbar .profile-setting-field {
        min-width:0
    }
    .catalog-card {
        align-items:flex-start;
        flex-wrap:wrap
    }
    .catalog-card-actions {
        width:100%;
        justify-content:flex-end
    }
    .catalog-form-grid,.catalog-toggle-grid,.catalog-choice {
        grid-template-columns:1fr
    }
    .catalog-dialog-body {
        padding:18px
    }
    .catalog-dialog-header,.catalog-dialog-footer {
        padding:16px
    }
    .promotion-row {
        grid-template-columns: 32px 72px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }
    .promotion-row-image {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }
    .promotion-toggle-form {
        grid-column: 2 / 4;
    }
    .promotion-edit {
        grid-column: 2;
    }
    .promotion-delete {
        grid-column: 3;
    }
    .promotion-edit[open],
    .promotion-delete[open] {
        grid-column: 1 / -1;
    }
    .promotion-delete-confirmation {
        align-items: stretch;
        flex-direction: column;
    }
}
@media (max-width: 700px) {
    .catalog-manager-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .catalog-manager-actions .btn {
        width: 100%;
    }
    .catalog-product-row .catalog-drag-handle {
        flex-basis:34px;
    }
    .catalog-product-row .catalog-product-image {
        flex-basis:58px;
        height:58px;
    }
    .catalog-product-row .catalog-card-copy {
        flex:1 1 calc(100% - 132px);
    }
    .catalog-product-row .catalog-price-editor {
        flex:1 1 180px;
        order:5;
    }
    .catalog-product-row .catalog-order-controls {
        order:6;
    }
    .catalog-product-row .catalog-card-actions {
        order:7;
    }
    .catalog-category-row .catalog-card-copy {
        display: block;
    }
    .catalog-category-row .catalog-card-copy h4 {
        margin: 8px 0 4px;
    }
    .catalog-category-row .catalog-state {
        position: static;
    }
    .catalog-order-controls {
        margin-left: auto;
    }
    .catalog-product-filters {
        align-items: stretch;
        flex-direction: column;
    }
    .catalog-product-filters .profile-setting-field,.catalog-product-filters .btn {
        width: 100%;
        min-width: 0;
    }
}
@media (max-width: 700px) {
  .catalog-gift-picker {
    grid-template-columns: 1fr;
  }
  .review-card {
    padding: 16px;
  }
  .review-card-summary,
  .review-form-grid {
    grid-template-columns: 1fr;
  }
  .review-card-actions {
    width: 100%;
    align-items: stretch;
  }
  .review-edit {
    width: 100%;
  }
  .review-edit > summary {
    width: 100%;
    margin-left: 0;
  }
  .review-edit-form {
    padding: 16px;
  }
}
