/* Сброс стандартных опций браузера */
/* Руками не трогать! */
/* Ногами желательно тоже! */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, menu, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

* {
	margin: 0;
	padding: 0;
	outline: none;
}

*, *::before, *::after {
    box-sizing: border-box;
}

*[hidden] {
    display: none;
}

*+address, *+dl, *+fieldset, *+figure, *+ol, *+p, *+pre, *+ul, *+blockquote {
	margin-top: 20px;
}

body {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

article, aside, dialog, figcaption, figure,
footer, header, hgroup, main, nav, section {
    display: block;
}

a {
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

a,
button,
[role="button"],
input[type="button"],
input[type="submit"] {
    -webkit-tap-highlight-color: transparent;
    -moz-tap-highlight-color: transparent;
}

a:focus,
button:focus,
a:active,
button:active {
    outline: none;
    box-shadow: none;
}

menu, ol, ul {
    list-style: none;
}

img, video, svg {
    height: auto;
    max-width: 100%;
	display: block;
}

button {
	cursor: pointer;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td, th {
    padding: 0;
}

input, button, select, optgroup, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
	font-weight: 500;
}

h1 {
	font-size: 26px;
}

h2 {
	font-size: 24px;
}

h3 {
	font-size: 19px;
}

h4 {
	font-size: 16px;
}

h5 {
	font-size: 14px;
}

h6 {
	font-size: 13px;
}

.mid {
    margin: 0 auto;
    max-width: 1120px;
    padding-right: 1rem;
    padding-left: 1rem;
}

.checkbox, .radio {
	display: inline-block;
    height: 22px;
    width: 22px;
    overflow: hidden;
	margin-right: 15px;
    margin-top: -2px;
	cursor: pointer;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 50% 50%;
	background-size: 10px;
    border: 1px solid #ccc;
    transition: .2s ease-in-out;
    transition-property: background-color,border;
}

.checkbox {
	border-radius: 5px;
}

.radio {
	border-radius: 50%;
}

.checkbox:hover, .radio:hover {
	border-color: #bababa;
}

.checkbox:checked, .radio:checked {
	background-color: #3b93d8;
    border-color: transparent;
	background-image: url(data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9IkNhcGEgMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDM4NCI+PHBhdGggZD0iTTAgMjA4LjMzTDE3NS4zMyAzODQgNTEyIDQ3LjY2IDQ2My42NyAwIDE3NS4zMyAyODggNDcuNjYgMTYwLjMzeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==);
}

.input, .select, .textarea {
	border: 0 none;
	max-width: 100%;
    width: 100%;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #ccc;
	border-radius: 5px;
    transition: .2s ease-in-out;
    transition-property: color,background-color,border;
	outline: 0;
}

.input, .select {
	height: 40px;
}

.textarea {
	padding-top: 7px;
    padding-bottom: 7px;
    vertical-align: top;
    resize: none;
}

.input:focus, .select:focus, .textarea:focus {
    background-color: #fff;
    border-color: #3b93d8;
}

.table {
	border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 20px;
}

.table th, .table td {
	padding: 16px 12px;
    text-align: left;
    vertical-align: bottom;
}

.table > :not(:first-child) > tr {
	border-top: 1px solid #ccc;
}

.table td {
	padding: 16px 12px;
	vertical-align: top;
}

.button {
	margin: 0;
    border: none;
    overflow: visible;
    font: inherit;
    color: inherit;
    text-transform: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
    display: inline-block;
    box-sizing: border-box;
    padding: 0 30px;
	border-radius: 5px;
    vertical-align: middle;
    line-height: 38px;
    text-align: center;
    text-decoration: none;
    transition: .1s ease-in-out;
    transition-property: color,background-color,border-color;
}
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    user-select: none;
}

body {
    font-family: -apple-system, system-ui, "Roboto", sans-serif;
    background: var(--background-color);
    color: var(--text-color);
}

/* ==================== SCENES ==================== */

.stores,
.history,
.calendar,
.store,
.marked,
.order,
.ticket,
.profile,
.create,
.crpt,
.egais {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 20px;
    padding-bottom: 0;
    animation: sceneFadeIn 0.22s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .stores,
    .history,
    .calendar,
    .store,
    .marked,
    .order,
    .ticket,
    .profile,
    .create,
    .crpt,
    .egais {
        animation: none;
    }
}

/* ==================== STORES / HISTORY LIST ==================== */

#root {
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: 510px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.access-required {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.access-required__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.access-required__eyebrow {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.access-required__title {
    margin: 0;
    color: var(--text-color);
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
}

.access-required__text {
    margin: 0;
    color: var(--text-hint-color);
    font-size: 16px;
    line-height: 1.45;
}

.access-required__actions {
    width: 100%;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-required__button {
    width: 100%;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.access-required .access-required__button--max,
.access-required .access-required__button--max:hover,
.access-required .access-required__button--max:active,
.access-required .access-required__button--max:visited {
    background: linear-gradient(135deg, #7559ff 0%, #2196f3 100%);
    color: #fff;
}

.access-required .access-required__button--telegram,
.access-required .access-required__button--telegram:hover,
.access-required .access-required__button--telegram:active,
.access-required .access-required__button--telegram:visited {
    background: #229ed9;
    color: #fff;
}

.access-required__button:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 3px;
}

.access-required__button--disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.diagnostic-preview {
    position: sticky;
    z-index: 1000;
    top: 0;
    padding: 8px 12px;
    color: #fff;
    background: #7c3aed;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}

.diagnostic-preview--demo {
    margin-top: var(--top-inset, 0px);
}

.input {
    background: var(--background-secondary-color);
    border-color: var(--background-secondary-color);
    border-radius: 15px;
    color: var(--text-color);
    height: 45px;
    padding: 0 15px;
}

.input:focus {
    background: var(--background-secondary-color);
    border-color: var(--accent-color);
}

.textarea {
    background: var(--background-secondary-color);
    border-color: var(--background-secondary-color);
    border-radius: 15px;
    color: var(--text-color);
    padding: 12px 15px;
    resize: vertical;
    overflow: auto;
}

.textarea::-webkit-resizer {
    background:
        linear-gradient(135deg, transparent 0 50%, var(--text-hint-color) 50% 56%, transparent 56%),
        linear-gradient(135deg, transparent 0 68%, var(--text-hint-color) 68% 74%, transparent 74%);
}

.textarea:focus {
    background: var(--background-secondary-color);
    border-color: var(--accent-color);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==================== FILTER ==================== */

.filter {
    position: relative;
}

.filter-smooth-right::after,
.filter-smooth-left::before {
    animation: fadeIn 0.3s ease-in-out 0s 1 forwards;
    position: absolute;
    content: "";
    top: 0;
    width: 30px;
    height: 100%;
    z-index: 10;
}

.filter-smooth-right::after {
    right: 0;
    background: linear-gradient(to left, var(--background-color) 0%, transparent 100%);
}

.filter-smooth-left::before {
    left: 0;
    background: linear-gradient(to right, var(--background-color) 0%, transparent 100%);
}

.filter-items {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.filter-items::-webkit-scrollbar {
    display: none;
}

.filter-button {
    background: var(--background-secondary-color);
    padding: 5px 30px;
    border-radius: 15px;
    text-align: center;
    white-space: nowrap;
}

.filter-button.active {
    background: var(--accent-color);
}

/* ==================== HEADER ==================== */

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.header-title {
    font-size: 23px;
    font-weight: 600;
}

.header-description {
    text-align: center;
    color: var(--text-hint-color);
    padding: 0 20px;
}

/* ==================== COMMON ==================== */

.animation {
    width: 120px;
    height: 120px;
}

.button {
    font-size: 15px;
    line-height: 40px;
    height: 40px;
    cursor: pointer;
    text-align: center;
    padding: 0 20px;
    border-radius: 15px;
    width: 100%;
    background: var(--button-color);
    color: var(--button-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.button:hover {
    background: var(--button-hover-color);
    color: var(--button-text-color);
}

.button:disabled {
    cursor: default;
    opacity: 0.45;
}

.button-icon {
    width: 19px;
    height: 19px;
}

.banner-shell {
    position: relative;
    padding-bottom: 2px;
}

.banner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0 2px;
    scroll-padding: 0;
}

.banner::-webkit-scrollbar {
    display: none;
}

.banner-item {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 1008 / 308;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 15px;
    overflow: hidden;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.banner-item[aria-disabled="true"] {
    cursor: default;
    opacity: 1;
}

.banner-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
    pointer-events: none;
}

.banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.banner-dot--active {
    width: 24px;
    background: #fff;
}

body.stories-is-open {
    overflow: hidden;
}

.app-stories {
    --stories-tma-top: max(var(--tma-content-safe-area-inset-top, 0px), var(--tma-safe-area-inset-top, 0px));
    --stories-top-space: calc(var(--stories-tma-top) + 45px);
    --stories-bottom-space: var(--tma-content-safe-area-inset-bottom, var(--bottom-inset, 0px));

    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
}

.app-stories__progress {
    position: absolute;
    top: 10px;
    left: 24px;
    right: 24px;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(var(--stories-slides-count, 4), 1fr);
    gap: 5px;
    height: 4px;
    margin: 0;
}

.app-stories__progress-item {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(60, 60, 67, 0.24);
}

.app-stories__progress-fill {
    position: absolute;
    inset: 0;
    display: block;
    width: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.92);
}

.app-stories__progress-fill--complete {
    width: 100%;
}

.app-stories__progress-fill--active {
    animation: app-stories-progress var(--stories-progress-duration, 5000ms) linear forwards;
}

.app-stories__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(60, 60, 67, 0.32);
    color: rgba(255, 255, 255, 0.92);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.app-stories__close span {
    display: block;
    transform: translateY(-1px);
}

.app-stories__tap-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 35%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.app-stories__tap-zone--prev {
    left: 0;
}

.app-stories__tap-zone--next {
    right: 0;
}

.app-stories__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    height: 100vh;
    padding: var(--stories-top-space) 0 var(--stories-bottom-space);
    pointer-events: none;
}

.app-stories__image {
    width: min(58vw, 230px);
    max-height: 42vh;
    object-fit: contain;
}

.app-stories__media-frame {
    position: relative;
    aspect-ratio: 657 / 1280;
    width: 100vw;
    height: calc(100vh - var(--stories-top-space) - var(--stories-bottom-space));
    border-radius: 24px;
    background: var(--background-secondary-color);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    pointer-events: none;
}

.app-stories__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-stories__cta {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: calc(24px + var(--stories-bottom-space));
    z-index: 5;
    pointer-events: auto;
}

.app-stories__cta-button {
    min-height: 44px;
}

.app-stories__media-frame .app-stories__close {
    pointer-events: auto;
}

@media (min-width: 768px) and (hover: hover) {
    .app-stories {
        --stories-top-space: 0px;
        --stories-bottom-space: 0px;

        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--background-color) 92%, #000 8%);
    }

    .app-stories__content {
        justify-content: center;
    }

    .app-stories__media-frame {
        width: min(420px, calc(100vh * 0.5133));
        height: auto;
        max-height: 100vh;
    }

    .app-stories__progress {
        top: 18px;
    }

    .app-stories__close {
        top: 24px;
    }

    .app-stories__media {
        height: auto;
        object-fit: contain;
    }

    .app-stories__cta {
        bottom: 26px;
    }
}

.app-stories__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    border-radius: 32px;
    background: var(--background-secondary-color);
    color: var(--accent-color);
}

.app-stories__icon svg {
    width: 64px;
    height: 64px;
}

@keyframes app-stories-progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.content {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    padding: calc(30px + var(--top-inset, 0px)) 15px 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: calc(var(--navigation-bottom-space) + var(--bottom-inset, 0px));
    scrollbar-width: none;
}

.content.content--demo {
    padding-top: 30px;
}

.content.content--rating-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

.content-bottom-spacer {
    /* iOS WebView can omit a scroll container's trailing padding from its overflow area. */
    width: 100%;
    height: calc(var(--navigation-bottom-space) + var(--bottom-inset, 0px));
    flex: 0 0 calc(var(--navigation-bottom-space) + var(--bottom-inset, 0px));
    pointer-events: none;
}

.content::-webkit-scrollbar {
    display: none;
}

.content::before {
    content: '';
    position: absolute;
    width: 100%;
    height: calc(70px + var(--top-inset, 0px));
    pointer-events: none;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, var(--background-color) 0%, transparent 70%);
}

.content::after {
    content: '';
    position: absolute;
    width: 100%;
    height: calc(var(--navigation-bottom-space) + var(--bottom-inset, 0px));
    pointer-events: none;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, var(--background-color) 0%, transparent 70%);
}

/* Reusable layout primitives. Scene-specific classes may extend these rules. */

.ui-stack {
    display: flex;
    flex-direction: column;
}

.ui-stack--section {
    gap: var(--space-8);
}

.ui-section-title,
.stores-section-title {
    padding: 0 var(--space-1);
    color: var(--text-hint-color);
    font-size: var(--font-size-section);
    font-weight: 500;
    line-height: 19px;
}

.ui-surface {
    border-radius: var(--radius-card);
    background: var(--background-secondary-color);
}

.ui-list {
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--background-secondary-color);
}

.ui-list-row {
    display: flex;
    align-items: center;
    gap: var(--space-7);
    min-height: var(--size-touch-target);
    border-bottom: 1px solid var(--background-color);
    padding: var(--space-4);
    color: var(--text-color);
}

.ui-list-row:last-child {
    border-bottom: 0;
}

.ui-icon-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 var(--size-touch-target);
    width: var(--size-touch-target);
    height: var(--size-touch-target);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-hint-color);
}

.ui-icon-button svg {
    width: var(--size-icon-sm);
    height: var(--size-icon-sm);
}

.ui-muted {
    color: var(--text-hint-color);
    font-size: var(--font-size-caption);
    line-height: 1.35;
}

/* ==================== NAVIGATION ==================== */

.navigation {
    padding: var(--navigation-padding-top) 14px var(--navigation-padding-bottom);
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}

body.stories-is-open .navigation,
body.rating-modal-is-open .navigation,
body.keyboard-input-focused .navigation {
    display: none;
}

.navigation-items {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
    height: var(--navigation-height);
    padding: 5px;
    /*background: color-mix(in srgb, var(--background-color) 58%, transparent);*/
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 0.5px solid color-mix(in srgb, var(--text-hint-color) 24%, transparent);
    border-radius: 999px;
    background-clip: padding-box;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    pointer-events: auto;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

:root[data-theme="dark"] .navigation-items {
    background: rgba(18, 18, 18, 0.32);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    border-color: rgba(255, 255, 255, 0.12);
}

.navigation-button {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    height: 58px;
    border-radius: 999px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-hint-color);
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.navigation-button:hover {
    color: var(--icon-color);
}

.navigation-button.active {
    color: var(--button-color);
    background:
        radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--button-color) 10%, transparent), transparent 62%),
        color-mix(in srgb, var(--text-color) 6%, transparent);
    box-shadow: inset 0 0.5px 0 color-mix(in srgb, var(--text-hint-color) 22%, transparent);
}

.navigation-icon {
    width: 25px;
    height: 25px;
    margin: 0 auto;
}

.navigation-title {
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
}

/* ==================== LOADERS ==================== */

.preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.preloader-icon {
    width: 30px;
    animation: rotate 1s linear infinite;
}

.launch-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden;
    background: #000;
    opacity: 1;
    transition: opacity 0.42s ease-in-out;
}

.launch-splash--entered {
    opacity: 1;
}

.launch-splash--exiting {
    pointer-events: none;
    opacity: 0;
    transition-delay: 0.14s;
}

.launch-splash__video {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    filter: contrast(1.14) brightness(0.98);
    mix-blend-mode: screen;
    transform: translateY(-50%) scale(0.99);
    transition: transform 0.42s ease-out 0.12s;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.launch-splash--entered .launch-splash__video--ready {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.launch-splash--exiting .launch-splash__video {
    opacity: 0;
    transform: translateY(-50%) scale(1.015);
    transition: opacity 0.22s ease-out, transform 0.42s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .launch-splash {
        transition: none;
    }

    .launch-splash__video {
        transition: none;
    }
}

/* ==================== STORES / HISTORY LIST ==================== */

.stores-rows,
.history-rows,
.ui-list {
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--background-secondary-color);
}

.stores-row,
.history-row {
    display: flex;
    align-items: center;
    gap: var(--space-7);
    border-bottom: 1px solid var(--background-color);
    padding: var(--space-4);
    color: var(--text-color);
}

.stores-row:hover,
.history-row:hover {
    color: var(--text-color);
}

.stores-row-arrow,
.history-row-arrow,
.store-row-arrow {
    flex: 0 0 var(--size-icon-sm);
    margin-right: var(--space-4);
    color: var(--text-hint-color);
}

.stores-row-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.stores-row-meta .stores-row-arrow {
    margin-right: 0;
}

.stores-row-marker {
    display: block;
    flex: 0 0 10px;
    box-sizing: border-box;
    width: var(--space-4);
    height: var(--space-4);
    border-radius: 50%;
}

.stores-row-marker--success {
    background: #34c759;
}

.stores-row-marker--warning {
    background: #ff9f43;
}

.stores-row-marker--danger {
    background: #ef5350;
}

.stores-row-marker--inactive {
    background: transparent;
    border: 2px solid var(--text-hint-color);
    opacity: 0.75;
}

.store-row-arrow svg,
.stores-row-arrow svg,
.history-row-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Reusable three-dot action menu for list rows. */
.ui-row-actions {
    position: absolute;
    z-index: 2;
    right: 8px;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-row-actions__trigger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-hint-color);
    appearance: none;
    -webkit-appearance: none;
}

.ui-row-actions__trigger svg {
    width: 22px;
    height: 22px;
}

.ui-row-actions__menu {
    position: absolute;
    z-index: 20;
    right: 40px;
    top: 50%;
    min-width: 128px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--background-secondary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.34);
    transform: translateY(-50%);
}

.ui-row-actions__menu button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font: inherit;
    text-align: left;
}

.ui-row-actions__menu button + button {
    border-top: 1px solid var(--background-color);
}

.stores-row:last-child,
.history-row:last-child {
    border-bottom: 0;
}

.stores-row-image,
.history-row-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--size-avatar);
    height: var(--size-avatar);
    border-radius: var(--radius-pill);
    background: var(--background-color);
}

.stores-row-image svg {
    display: block;
    width: 24px;
    height: 24px;
    color: #fff;
}

.stores-row-content,
.history-row-content {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stores-row-title,
.history-row-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stores-row-address,
.history-row-address {
    font-size: var(--font-size-caption);
    color: var(--text-hint-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== ОБЩИЕ ТАБЛИЦЫ ==================== */

.store-object-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.store-table {
    border-radius: var(--radius-card);
    background: var(--background-secondary-color);
    overflow: hidden;
}

.store-header .store-table {
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.store-table-header {
    font-size: var(--font-size-body);
    color: var(--text-hint-color);
    padding: 0 5px;
}

.store-table-empty {
    text-align: center;
    padding: var(--space-8) 0;
    color: var(--text-hint-color);
}

.store-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-7);
    border-bottom: 1px solid var(--background-color);
    padding: var(--space-4);
    color: var(--text-color);
}

.store-table-row:last-child,
.store-table-link-row:last-child {
    border-bottom: 0;
}

.store-table-link-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    border-bottom: 1px solid var(--background-color);
    padding: var(--space-4);
    color: var(--text-color);
}

.store-table-link-row:hover {
    color: var(--text-color);
}

.store-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.store-section-icon svg {
    width: 24px;
    height: 24px;
}

.store-section-icon--egais {
    color: #4da3ff;
    background: rgba(77, 163, 255, 0.14);
}

.store-section-icon--markirovka {
    color: #ffd43b;
    background: rgba(255, 212, 59, 0.14);
}

.store-section-icon--tickets {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.14);
}

.store-section-icon--contracts {
    color: #34c759;
    background: rgba(52, 199, 89, 0.14);
}

.store-section-icon--iiko {
    color: #78b600;
    background: rgba(154, 205, 0, 0.14);
}

.store-section-icon--retail1c {
    color: #463900;
    background: #ffd400;
}

.store-table-title {
    flex-grow: 1;
}

.store-table-check {
    display: flex;
    align-items: center;
    gap: 13px;
}

.store-table-check-status {
    width: 9px;
    height: 9px;
    border-radius: 50px;
}

/* ===== Universal collapsible ===== */

.ui-arrow-icon {
    display: block;
    flex: 0 0 var(--size-icon-sm);
    width: var(--size-icon-sm);
    height: var(--size-icon-sm);
    overflow: visible;
}

.collapsible-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--text-hint-color);
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform var(--motion-standard);
}

.collapsible-arrow svg {
    display: block;
    width: var(--size-icon-sm);
    height: var(--size-icon-sm);
}

.collapsible-arrow--open {
    transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
    .collapsible-arrow,
    .sum-row-arrow {
        transition-duration: 0.01ms;
    }
}

.collapsible-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition:
        max-height 0.32s ease,
        opacity 0.22s ease,
        transform 0.22s ease,
        border-top-color 0.22s ease;
}

.collapsible-content--open {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
}

.app-info-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-hint-color);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.app-info-button::before {
    content: '';
    position: absolute;
    inset: -13px;
}

.app-info-button svg {
    width: 18px;
    height: 18px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-info-button:active {
    color: var(--text-color);
    transform: scale(0.94);
}

.app-info-button:focus-visible {
    outline: 2px solid var(--button-color);
    outline-offset: 3px;
}

@media (hover: hover) {
    .app-info-button:hover {
        color: var(--text-color);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-info-button {
        transition: none;
    }
}

/* ==================== EMPTY ==================== */

.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

.empty-title {
    color: var(--text-hint-color);
}

/* ==================== TIME PICKER ==================== */

.time-header {
    margin: 16px 0;
    text-align: center;
    font-weight: 500;
}

.time-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin: 0 0 24px;
}

.time-button {
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    background: var(--background-secondary-color);
    color: var(--text-color);
    cursor: pointer;
}

.time-button.active {
    background: var(--accent-color);
    color: white;
}

/* ==================== CALENDAR ==================== */

.calendar-header {
    position: relative;
}

.calendar-rows {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.calendar-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-row--timeline {
    padding-left: 28px;
}

.calendar-row--timeline:before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--background-color);
}

.calendar-row--timeline:after {
    content: "";
    position: absolute;
    top: 22px;
    left: 5px;
    width: 2px;
    height: calc(100% + 19px);
    background: var(--separator-color);
    border-radius: 50px;
}

.calendar-row:last-child:after {
    height: calc(100% - 22px);
}

.calendar-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 20px;
}

.calendar-row-title {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
}

.calendar-invoice {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-invoice-item,
.calendar-invoice-item:hover {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-height: 96px;
    padding: 14px 42px 14px 14px;
    color: var(--text-color);
    text-decoration: none;
    background: var(--background-secondary-color);
    border-radius: 15px;
    cursor: pointer;
}

.calendar-row--timeline .calendar-invoice-item,
.calendar-row--timeline .calendar-invoice-item:hover {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
}

.calendar-invoice-icon {
    flex: 0 0 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
}

.calendar-row--timeline .calendar-invoice-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
}

.calendar-invoice-icon svg {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    overflow: visible;
}

.calendar-invoice-icon--green svg { background: #1fa449; }
.calendar-invoice-icon--orange svg { background: #f07b16; }
.calendar-invoice-icon--violet svg { background: #7c3cff; }
.calendar-invoice-icon--teal svg { background: #10a6ad; }
.calendar-invoice-icon--pink svg { background: #df3d86; }
.calendar-invoice-icon--brown svg { background: #9a5a2a; }
.calendar-invoice-icon--blue svg { background: var(--accent-color); }
.calendar-invoice-icon--its svg { padding: 5px; }
.calendar-invoice-icon--default svg { padding: 8px; }

.calendar-invoice-icon-date {
    color: var(--text-hint-color);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.calendar-invoice-body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.calendar-row--timeline .calendar-invoice-body {
    grid-column: 2;
    grid-row: 1;
}

.calendar-invoice-title {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.calendar-invoice-note,
.calendar-invoice-object {
    color: var(--text-hint-color);
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.calendar-invoice-aside {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calendar-row--timeline .calendar-invoice-aside {
    position: static;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-content: flex-start;
}

.calendar-row:not(.calendar-row--timeline) .calendar-invoice-aside {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.calendar-invoice-aside:empty {
    display: none;
}

.calendar-invoice-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-hint-color);
    text-align: right;
    white-space: nowrap;
}

.calendar-invoice-deadline {
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.calendar-invoice-deadline--warning {
    color: #ff9f43;
}

.calendar-invoice-deadline--danger {
    color: #ff453a;
}

.calendar-invoice-item .calendar-invoice-info {
    position: absolute;
    top: 14px;
    right: 14px;
}

.calendar-invoice-bonus {
    color: var(--accent-color);
}

@media (max-width: 390px) {
    .calendar-invoice-item,
    .calendar-invoice-item:hover {
        gap: 10px;
        padding-right: 36px;
    }

    .calendar-invoice-icon {
        flex-basis: 58px;
    }

    .calendar-row--timeline .calendar-invoice-item,
    .calendar-row--timeline .calendar-invoice-item:hover {
        grid-template-columns: 58px minmax(0, 1fr);
        column-gap: 10px;
    }

    .calendar-invoice-icon svg {
        width: 40px;
        height: 40px;
    }

    .calendar-invoice-aside {
        min-width: 0;
        position: absolute;
        right: 14px;
        bottom: 12px;
    }
}

/* ==================== STORE BASE ==================== */

.store-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}

.iiko-departments .stores-row{position:relative;padding-right:52px}.iiko-departments.ui-list{overflow:visible}.iiko-department-row--menu-open{z-index:10}.iiko-department-menu-button,.iiko-department-restore{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;background:transparent;color:var(--text-hint-color)!important;display:grid;place-items:center;z-index:2}.iiko-department-menu-button svg,.iiko-department-restore svg{width:20px;height:20px}.iiko-department-menu{position:absolute;right:44px;top:50%;z-index:20;background:var(--background-secondary-color);border-radius:10px;box-shadow:0 4px 16px #0005;overflow:hidden}.iiko-department-menu button{display:block;box-sizing:border-box;width:100%;padding:10px 16px;border:0;background:transparent;color:var(--text-color);text-align:left}.iiko-archive{margin-top:20px}.iiko-archive__toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px;border:0;border-radius:15px;background:var(--background-secondary-color);color:var(--text-hint-color);font-size:16px;text-align:left}.iiko-archive__toggle .collapsible-arrow{display:inline-flex}

.store-header {
    width: 100%;
}

.store-header__title-row {
    display: grid;
    grid-template-columns: minmax(0, auto) 32px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0 16px;
}

.store-header__title {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
}

.store-header__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--text-hint-color);
    background: transparent;
    appearance: none;
}

.store-header__edit:active {
    color: var(--accent-color);
    background: var(--background-secondary-color);
}

.store-header__edit svg {
    width: 20px;
    height: 20px;
}

.store-name-modal__error {
    margin-top: 10px;
    color: #ef5350;
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 430px) {
    .store-header__title-row {
        padding: 0 8px;
    }
}

.store-finance {
    background: var(--background-secondary-color);
    border-radius: 15px;
    overflow: hidden;
}

.store-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 50px;
    overflow: hidden;
}

.store-image svg {
    display: block;
    width: 36px;
    height: 36px;
    color: #fff;
}

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

/* ===== Stores dashboard header ===== */

.stores-dashboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 16px;
    padding: 4px 4px 0;
}

.stores-dashboard-header__title {
    min-width: 0;
    color: var(--text-color);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 650;
}

.stores-dashboard-header__revenue-label {
    justify-self: end;
    color: var(--text-hint-color);
    line-height: 1.15;
    white-space: nowrap;
}

.stores-dashboard-header__revenue-value {
    justify-self: end;
    color: var(--accent-color);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 650;
    white-space: nowrap;
}

.stores-dashboard-header__revenue-empty {
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.3;
}

.loading-dots span {
    animation: loadingDots 1.2s ease-in-out infinite;
    opacity: 0.25;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes loadingDots {
    0%,
    80%,
    100% {
        opacity: 0.25;
    }

    40% {
        opacity: 1;
    }
}

@media (max-width: 430px) {
    .stores-dashboard-header__title {
        font-size: 21px;
    }

    .stores-dashboard-header__revenue-value {
        font-size: 21px;
    }
}

/* ===== Stores data provider error ===== */

.stores-provider-error {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 15px;
    background: var(--background-secondary-color);
}

.stores-provider-error__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.14);
}

.stores-provider-error__icon svg {
    width: 24px;
    height: 24px;
}

.stores-provider-error__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stores-provider-error__title {
    color: var(--text-color);
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
}

.stores-provider-error__text {
    color: var(--text-hint-color);
    font-size: 14px;
    line-height: 19px;
}

.stores-provider-error__button {
    margin-top: 2px;
}

/* ===== External service status ===== */

.service-status-section {
    display: flex;
    flex-direction: column;
    padding: 12px 14px 10px;
    border-radius: 15px;
    background: var(--background-secondary-color);
}

.service-status-section__head {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 32px;
}

.service-status-section__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.service-status-section__dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
}

.service-status-section__summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.service-status-section__title {
    color: var(--text-color);
    font-size: 15px;
    line-height: 19px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-status-section__description,
.service-status-section__time {
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.service-status-section__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 12px;
    border-top: 1px solid color-mix(in srgb, var(--background-color) 72%, transparent);
}

.service-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 8px 0 0;
}

.service-status-row--problem {
    flex-basis: 100%;
    align-items: flex-start;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--background-color) 72%, transparent);
}

.service-status-row--problem:last-child {
    border-bottom: 0;
}

.service-status-row--problem .service-status-row__main {
    flex: 1;
    width: 100%;
}

.service-status-row__main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.service-status-row__title {
    color: var(--text-color);
    font-size: 13px;
    line-height: 17px;
    white-space: nowrap;
}

.service-status-row__impact {
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.service-status-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 6px 12px;
    width: 100%;
    padding-top: 4px;
}

.service-status-checks__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    min-width: 0;
}

.service-status-checks__item:nth-child(2) {
    justify-self: center;
}

.service-status-checks__item:nth-child(3) {
    justify-self: end;
}

.service-status-checks__dot {
    flex: 0 0 auto;
}

.service-status-checks__title {
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 14px;
    white-space: nowrap;
}

.service-status-row__dot {
    flex: 0 0 auto;
    margin-top: 0;
}

.service-status-row--problem .service-status-row__dot {
    margin-top: 4px;
}

.service-status-section__refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-hint-color);
    line-height: 0;
}

.service-status-section__arrow-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-hint-color);
    line-height: 0;
}

.service-status-section__refresh:disabled {
    opacity: 0.6;
}

.service-status-section__refresh svg {
    width: 18px;
    height: 18px;
}

.service-status-section__refresh:active {
    background: var(--background-color);
}

.service-status-section__refresh--loading svg {
    animation: rotateReverse 0.9s linear infinite;
}

.service-status-section__arrow {
    margin-right: 10px;
}

.service-status-section__arrow.collapsible-arrow--open {
    transform: rotate(90deg);
}

.service-status-section__inner {
    padding: 8px 0 0;
}

/* ==================== STORE ==================== */

.store-ticket {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    color: var(--text-color);
}

.store-ticket-title {
    text-align: center;
}

.check-status-active {
    background: #4dbe0b;
}

.check-title-active {
    color: var(--text-color);
}

.check-status-inactive {
    background: #e54f2d;
}

.check-title-inactive {
    color: var(--text-hint-color);
}

/* ===== Store finance preview ===== */

.store-finance-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.store-finance-preview__label {
    padding: 0 5px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text-hint-color);
}

.store-ofd-connect .store-ticket {
    padding: 15px;
}

.store-ofd-connect .store-ticket-title {
    line-height: 1.35;
    color: var(--text-hint-color);
}

/* ===== Store finance card v2 ===== */

.store-finance-card {
    background: var(--background-secondary-color);
    border-radius: 18px;
    overflow: hidden;
}

.store-finance-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 150px;
    padding: 30px 20px;
    background: var(--background-secondary-color);
    border-radius: 18px;
    text-align: center;
}

.store-finance-loading__title {
    color: var(--text-color);
    font-size: 16px;
    line-height: 21px;
}

.store-finance-loading__text {
    max-width: 260px;
    color: var(--text-hint-color);
    font-size: 14px;
    line-height: 19px;
}

.store-finance-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--background-color);
}

.store-finance-card__summary-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.store-finance-card__summary-content {
    min-width: 0;
    flex: 1;
}

.store-finance-card__summary-title {
    font-size: 14px;
    line-height: 18px;
    color: var(--text-color);
    opacity: 0.92;
}

.store-finance-card__summary-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.store-finance-card__summary-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.store-finance-card__summary-trend {
    font-size: 15px;
    line-height: 18px;
    font-weight: 700;
    color: #34c759;
    white-space: nowrap;
}

.store-finance-card__summary-visual {
    flex: 0 0 auto;
    color: #34c759;
    opacity: 0.9;
}

.store-finance-card__summary-visual svg {
    display: block;
    width: 34px;
    height: 34px;
}

.store-finance-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.store-finance-card__cell {
    padding: 14px 16px;
    border-right: 1px solid var(--background-color);
    border-bottom: 1px solid var(--background-color);
}

.store-finance-card__cell:nth-child(2n) {
    border-right: 0;
}

.store-finance-card__cell:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.finance-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.finance-metric__content {
    min-width: 0;
    flex: 1;
}

.finance-metric__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex: 0 0 42px;
}

.finance-metric__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.finance-metric__icon--green {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.finance-metric__icon--blue {
    background: rgba(10, 132, 255, 0.12);
    color: #0a84ff;
}

.finance-metric__icon--purple {
    background: rgba(175, 82, 222, 0.12);
    color: #af52de;
}

.finance-metric__icon--orange {
    background: rgba(255, 149, 0, 0.12);
    color: #ff9500;
}

.finance-metric__title {
    font-size: 13px;
    line-height: 16px;
    color: var(--text-hint-color);
}

.finance-metric__value {
    margin-top: 5px;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.finance-metric--compact .finance-metric__value {
    font-size: 24px;
}

@media (max-width: 480px) {
    .store-finance-card__summary {
        align-items: flex-start;
    }

    .store-finance-card__summary-main {
        align-items: flex-start;
    }

    .store-finance-card__summary-value {
        font-size: 30px;
    }

    .finance-metric {
        align-items: flex-start;
    }

    .finance-metric--compact .finance-metric__value {
        font-size: 21px;
    }
}

/* ===== Store alerts ===== */

.store-alerts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-alerts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef5350;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.store-alert-link-row {
    align-items: center;
}

.store-alert-content {
    flex-grow: 1;
    min-width: 0;
}

/* ===== Store status dots ===== */

.store-alert-dot,
.store-kkt-dot {
    display: block;
    flex: 0 0 10px;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.store-kkt-dot {
    margin-top: 2px;
}

.store-alert-dot--warning,
.store-kkt-dot--warning {
    background: #ff9f43;
}

.store-alert-dot--danger,
.store-kkt-dot--danger {
    background: #ef5350;
}

.store-alert-dot--info,
.store-kkt-dot--info {
    background: #f6c453;
}

.store-alert-dot--success,
.store-kkt-dot--success {
    background: #34c759;
}

.store-alert-dot--bonus,
.store-kkt-dot--bonus {
    background: #4fc3f7;
}

.store-alert-dot--inactive,
.store-kkt-dot--inactive {
    background: transparent;
    border: 2px solid var(--text-hint-color);
    opacity: 0.75;
}

/* ===== Store KKT links ===== */

.store-kkt-link-row {
    position: relative;
    gap: 12px;
    padding-right: 52px;
}

.store-table:has(> .store-kkt-link-row) { overflow: visible; }
.store-table:has(> .store-kkt-link-row) > .store-kkt-link-row:first-child { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.store-table:has(> .store-kkt-link-row) > .store-kkt-link-row:last-child { border-radius: 0 0 var(--radius-card) var(--radius-card); }
.store-table:has(> .store-kkt-link-row) > .store-kkt-link-row:only-child { border-radius: var(--radius-card); }
.store-kkt-link-row--menu-open { z-index: 150; }

.store-kkt-menu-button,
.store-kkt-restore {
    position: absolute;
    right: 12px;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-hint-color);
}

.store-kkt-menu-button svg,
.store-kkt-restore svg { width: 20px; height: 20px; }

.store-kkt-menu {
    position: absolute;
    right: 44px;
    top: 50%;
    z-index: 20;
    overflow: hidden;
    transform: translateY(-50%);
    border-radius: 10px;
    background: var(--background-secondary-color);
    box-shadow: 0 4px 16px #0005;
}

.store-kkt-menu button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: var(--text-color);
    text-align: left;
}

.store-kkt-menu button + button { border-top: 1px solid var(--background-color); }
.store-kkt-badge { display: inline-flex; margin-left: 8px; padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle; }
.store-kkt-badge--danger { background: color-mix(in srgb, #ef5350 18%, transparent); color: #ef5350; }
.kkt-archive { overflow: hidden; margin-top: 12px; border-radius: 15px; background: var(--background-secondary-color); }
.kkt-archive--open .iiko-archive__toggle { border-radius: 15px 15px 0 0; }
.kkt-archive__rows { border-radius: 0 0 15px 15px; }

.store-alert-title {
    line-height: 1.35;
}

.store-alert-description {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-hint-color);
    line-height: 1.35;
}

.store-alert-link-row .store-row-arrow {
    align-self: center;
}

/* ===== Stores action dashboard ===== */

.iiko-departments-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.iiko-departments__icon {
    background: #4bd66a;
}

.iiko-departments__icon svg {
    color: #fff;
}

.iiko-departments__state {
    padding: 18px 15px;
    color: var(--text-hint-color);
    font-size: 13px;
}

.action-dashboard {
    border-radius: 15px;
}

.action-dashboard__head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px 14px 10px;
}

.action-dashboard__toggle {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.action-dashboard__summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.action-dashboard__title {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 400;
    line-height: 19px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-dashboard__description {
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-dashboard__refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-hint-color);
    line-height: 0;
}

.action-dashboard__refresh:disabled {
    opacity: 0.6;
}

.action-dashboard__refresh svg {
    width: 18px;
    height: 18px;
}

.action-dashboard__refresh:active {
    background: var(--background-color);
}

.action-dashboard__refresh--loading svg {
    animation: rotateReverse 0.9s linear infinite;
}

.action-dashboard__arrow-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-hint-color);
    line-height: 0;
}

.action-dashboard__arrow {
    margin-right: 10px;
}

.action-dashboard__arrow.collapsible-arrow--open {
    transform: rotate(90deg);
}

.action-dashboard__inner {
    padding: 0;
}

.action-dashboard__list {
    border-top: 1px solid var(--background-color);
}

.action-dashboard__item {
    min-height: 58px;
}

.action-dashboard__loading-row {
    min-height: 58px;
    color: var(--text-hint-color);
}

.action-dashboard__item-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.action-dashboard__item-button.action-dashboard__item--miniapp-rating {
    border-top: 1px solid var(--background-color);
}

.action-dashboard__empty {
    padding: 12px 14px;
    border-top: 1px solid var(--background-color);
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.35;
}

.store-finance-card__summary-trend--positive {
    color: #34c759;
}

.store-finance-card__summary-trend--negative {
    color: #ef5350;
}

.store-finance-card__summary-trend--neutral {
    color: var(--text-hint-color);
}

.store-kkt-content {
    flex: 1;
    min-width: 0;
}

.store-kkt-title {
    line-height: 1.35;
    color: var(--text-color);
}

.store-kkt-description {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-hint-color);
    line-height: 1.35;
    word-break: break-word;
}

.store-top-products {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.store-top-products__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 10px;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    color: var(--text-color);
    cursor: pointer;
}

.store-top-products__summary:focus,
.store-top-products__summary:active {
    outline: none;
    box-shadow: none;
}

.store-top-products__summary-content {
    flex: 1;
    min-width: 0;
}

.store-top-products__arrow {
    margin-right: 10px;
}

.store-top-products__list .collapsible-content__inner {
    padding: 6px 10px 10px;
}

.store-top-products__item {
    display: block;
    padding: 10px 0;
}

.store-top-products__item:not(:last-child) {
    border-bottom: 1px solid color-mix(in srgb, var(--background-color) 70%, transparent);
}

.store-top-products__item-main {
    min-width: 0;
}

.store-top-products__item-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-color);
}

.store-top-products__item-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3px;
    min-width: 0;
}

.store-top-products__item-subtitle {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.3;
    color: var(--text-hint-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-top-products__item-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 82px;
    min-width: 82px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--accent-color);
    text-align: center;
    white-space: nowrap;
}

.store-top-products__footnote {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-hint-color);
    text-align: right;
}
.iiko-archive__toggle{font:inherit;font-size:inherit;font-weight:inherit}
.iiko-department-menu-button{color:var(--text-hint-color)!important}
.iiko-archive{overflow:hidden;border-radius:15px;background:var(--background-secondary-color)}
.iiko-departments-section .iiko-archive{margin-top:0}
.iiko-archive__toggle{border-radius:15px;color:var(--text-color);font-weight:400}
.iiko-archive--open .iiko-archive__toggle{border-radius:15px 15px 0 0}
.iiko-archive__rows{border-radius:0 0 15px 15px}
.iiko-archive__rows .stores-row:first-child{border-radius:0}
.iiko-archive__rows .stores-row:first-child{border-top:1px solid var(--background-color)}
.iiko-archive__toggle .collapsible-arrow{width:18px;justify-content:center}
.iiko-archive__toggle{padding-right:20px}
.iiko-department-menu button+button{border-top:1px solid var(--background-color)}
.iiko-department-row--menu-open{z-index:150}
/* ==================== PROFILE IMAGE ==================== */

/* ==================== PROFILE IMAGE ==================== */

.profile-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 50px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image svg {
    width: 60%;
    height: 60%;
    color: #fff;
}

/* ==================== PROFILE / COMPANIES ==================== */

.company-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--background-color);
    padding: 10px;
    color: var(--text-color);
    cursor: pointer;
}

.company-item:last-child {
    border-bottom: 0;
}

.company-item:hover {
    color: var(--text-color);
}

.company-item--active {
    background: color-mix(in srgb, var(--text-color) 5%, transparent);
}

.store-table .company-item--active:first-child {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.store-table .company-item--active:last-child {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.company-item-content {
    flex-grow: 1;
    min-width: 0;
}

.company-item-name,
.company-item-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-item-description {
    margin-top: 2px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.25;
}

.company-item-dot {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34c759;
}

.company-item-dot--active {
    background: #34c759;
}

.profile-section-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #4da3ff;
    background: rgba(77, 163, 255, 0.14);
}

.profile-section-row-icon svg {
    width: 24px;
    height: 24px;
}

.profile-section-row-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--text-hint-color);
}

.profile-section-row-arrow svg {
    width: 18px;
    height: 18px;
}

/* ==================== PROFILE / COMPANIES + INTEGRATIONS ==================== */

.profile-company-card {
    overflow: hidden;
    border-bottom: 1px solid var(--background-color);
}

.profile-company-card:last-child {
    border-bottom: 0;
}

.profile-company-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    border: 0;
    padding: 10px;
    background: transparent;
    color: var(--text-color);
    text-align: left;
    appearance: none;
}

.profile-company-trigger--active {
    background: color-mix(in srgb, var(--text-color) 5%, transparent);
}

.profile-company-trigger .stores-row-marker {
    flex-basis: 10px;
}

.profile-integration-content {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-integration-title,
.profile-integration-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-integration-title {
    font-size: 15px;
    line-height: 1.3;
}

.profile-integration-description {
    margin-top: 3px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.3;
}

.profile-company-card .collapsible-content {
    border-top: 1px solid transparent;
}

.profile-company-card .collapsible-content--open {
    border-top-color: var(--background-color);
}

.profile-integration-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    border-bottom: 1px solid var(--background-color);
    padding: 9px 10px;
}

.profile-integration-row:last-child {
    border-bottom: 0;
}

.profile-integration-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.profile-integration-icon svg {
    width: 22px;
    height: 22px;
}

.profile-integration-icon--iiko {
    color: #a7e000;
    background: color-mix(in srgb, #a7e000 15%, transparent);
}

.profile-integration-icon--ofd {
    color: #4da3ff;
    background: color-mix(in srgb, #4da3ff 15%, transparent);
}

.profile-integration-icon--crpt {
    color: #22d3ee;
    background: color-mix(in srgb, #22d3ee 15%, transparent);
}

.profile-integration-icon--retail1c {
    color: #463900;
    background: #ffd400;
}

.profile-integration-icon--retail1c svg {
    width: 28px;
}


.profile-integration-status {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--text-hint-color);
    font-size: 12px;
    white-space: nowrap;
}

.profile-integration-status .stores-row-marker {
    flex-basis: 10px;
}

.profile-integrations-empty {
    border-bottom: 1px solid var(--background-color);
    padding: 14px 10px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.35;
}

.profile-company-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-top: 1px solid var(--background-color);
    padding: 10px 12px;
    background: transparent;
    color: var(--accent-color);
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    appearance: none;
}

.profile-integration-row + .profile-company-action,
.profile-integrations-empty + .profile-company-action {
    border-top: 0;
}

/* ==================== PROFILE / OTHER PLATFORM ==================== */

.profile-platform-card {
    overflow: hidden;
}

.profile-platform-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 70px;
    border: 0;
    padding: 12px 10px;
    background: transparent;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.profile-platform-row:disabled {
    cursor: default;
    opacity: 0.65;
}

.profile-platform-icon {
    color: #fff;
}

.profile-platform-icon--telegram {
    border-radius: 14px;
    background: #229ed9;
}

.profile-platform-icon--telegram svg {
    width: 25px;
    height: 25px;
}

.profile-platform-icon--max {
    background: linear-gradient(135deg, #00bfff 0%, #471aff 52%, #9500ff 100%);
}

.profile-platform-icon--max svg {
    width: 44px;
    height: 44px;
}

.profile-platform-row__content {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-platform-row__title,
.profile-platform-row__description {
    display: block;
}

.profile-platform-row__title {
    font-size: 15px;
    line-height: 1.3;
}

.profile-platform-row__description,
.profile-platform-card__error {
    margin-top: 4px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.35;
}

.profile-platform-card__error {
    margin: 0;
    border-top: 1px solid var(--background-color);
    padding: 10px 12px;
    color: var(--text-error-color);
}

/* ==================== PROFILE / BONUSES ==================== */

.bonus-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    color: var(--text-color);
    cursor: pointer;
}

.bonus-summary-content {
    flex-grow: 1;
    overflow: hidden;
}

.bonus-summary-description {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-hint-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bonus-summary-value {
    flex: 0 0 auto;
    font-size: 22px;
    color: var(--accent-color);
}

.bonus-history-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid var(--background-color);
}

.bonus-history-row:last-child {
    border-bottom: 0;
}

.bonus-history-row:has(+ .bonus-history-more) {
    border-bottom: 1px solid var(--background-color);
}

.bonus-history-main {
    flex-grow: 1;
    overflow: hidden;
}

.bonus-history-main--link {
    cursor: pointer;
}

.bonus-history-main--link:hover .bonus-history-title,
.bonus-history-main--link:focus .bonus-history-title,
.bonus-history-main--link:active .bonus-history-title {
    color: var(--accent-color);
}

.bonus-history-description {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-hint-color);
}

.bonus-history-date {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-hint-color);
}

.bonus-history-amount {
    flex: 0 0 auto;
    white-space: nowrap;
}

.bonus-history-amount--positive {
    color: var(--accent-color);
}

.bonus-history-amount--negative {
    color: var(--text-error-color);
}

.bonus-history-empty {
    padding: 14px 10px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.35;
}

.bonus-history-scroll {
    max-height: 330px;
    overflow-y: auto;
    overscroll-behavior: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.bonus-history-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.bonus-history-scroll-sentinel {
    min-height: 28px;
    pointer-events: none;
}

.bonus-history-more {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    appearance: none;
}

.bonus-history-more:disabled {
    color: var(--text-hint-color);
}

/* ==================== PROFILE / TASKS AND RATINGS ==================== */

.profile-actions-card {
    overflow: hidden;
}

.profile-actions-card__intro {
    padding: 14px 12px 12px;
}

.profile-actions-card__title {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.35;
}

.profile-actions-card__description {
    margin-top: 4px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.35;
}

.profile-action-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 76px;
    border: 0;
    border-top: 1px solid var(--background-color);
    padding: 12px 10px;
    background: transparent;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.profile-action-row__icon,
.profile-action-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #4da3ff;
    background: rgba(77, 163, 255, 0.14);
}

.profile-action-row__icon svg,
.profile-action-modal__icon svg {
    width: 24px;
    height: 24px;
}

.profile-action-row__content {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-action-row__title {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.3;
}

.profile-action-row__description {
    margin-top: 4px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-action-row__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: 10px;
}

.profile-action-row__reward {
    color: var(--accent-color);
    font-size: 18px;
    line-height: 1;
}

.profile-action-row__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--text-hint-color);
}

.profile-action-row__arrow svg {
    width: 18px;
    height: 18px;
}

.profile-action-history-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-top: 1px solid var(--background-color);
    padding: 12px 10px;
    background: transparent;
    color: var(--accent-color);
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    appearance: none;
}

.profile-action-history-row .profile-action-row__arrow {
    color: var(--accent-color);
}

.profile-rating-inline {
    padding: 14px 12px 16px;
    border-top: 1px solid var(--background-color);
}

.profile-app-feedback {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-app-feedback__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-app-feedback__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.profile-app-feedback__choices {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.profile-app-feedback__choices button {
    min-height: 44px;
    flex: 1;
    border: 0;
    border-radius: 12px;
    background: var(--background-color);
    color: var(--text-color);
    font: inherit;
    cursor: pointer;
}

.profile-app-feedback__choices .profile-app-feedback__choice--active {
    background: var(--button-color);
    color: var(--button-text-color);
}

.profile-app-feedback__message {
    width: 100%;
    min-height: 100px;
    border-radius: 12px;
    border-color: var(--background-color);
    resize: vertical;
}

.profile-app-feedback__message,
.profile-app-feedback__message:focus,
.profile-rating__comment,
.profile-rating__comment:focus {
    background-color: var(--background-color);
}

.profile-app-feedback .collapsible-content {
    background: transparent;
}

.profile-app-feedback__content {
    padding: 14px 12px 16px;
}

.profile-app-feedback__title {
    color: var(--text-color);
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
}

.profile-app-feedback__description {
    margin-top: 4px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 17px;
}

.profile-app-feedback__content .button {
    width: 100%;
    height: 42px;
    margin-top: 12px;
    border-radius: 14px;
}

.profile-rating-inline__title {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.35;
}

.profile-rating-inline__description {
    margin-top: 4px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.35;
}

.profile-action-modal {
    --profile-modal-tma-top: max(var(--tma-content-safe-area-inset-top, 0px), var(--tma-safe-area-inset-top, 0px));
    --profile-modal-top-space: calc(var(--profile-modal-tma-top) + 45px);
    --profile-modal-bottom-space: var(--tma-content-safe-area-inset-bottom, var(--bottom-inset, 0px));

    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--profile-modal-top-space) 20px calc(var(--profile-modal-bottom-space) + 20px);
    background: rgba(0, 0, 0, 0.48);
    animation: fadeIn 0.18s ease-in-out;
}

.profile-action-modal__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - var(--profile-modal-top-space) - var(--profile-modal-bottom-space) - 20px);
    max-height: calc(100dvh - var(--profile-modal-top-space) - var(--profile-modal-bottom-space) - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
    background: var(--background-secondary-color);
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.profile-action-modal__icon {
    margin: 0 auto 14px;
}

.profile-action-modal__title {
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
}

.profile-action-modal__description {
    margin-top: 8px;
    color: var(--text-hint-color);
    font-size: 14px;
    line-height: 1.4;
    text-align: justify;
    text-align-last: left;
}

.profile-action-modal__input {
    height: 44px;
    margin-top: 16px;
    border-radius: 12px;
    background: var(--background-color);
    border-color: var(--background-color);
}

.profile-action-modal .button {
    width: 100%;
    height: 42px;
    margin-top: 16px;
    border-radius: 14px;
}

.profile-rating-inline .button {
    width: 100%;
    height: 42px;
    margin-top: 12px;
    border-radius: 14px;
}

.profile-rating__order-link {
    color: inherit;
    text-decoration: none;
}

.profile-rating__order-link:hover,
.profile-rating__order-link:focus,
.profile-rating__order-link:active {
    color: var(--accent-color);
    text-decoration: none;
}

.profile-rating__stars {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin: 14px -2px 0;
}

.profile-rating__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-hint-color);
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    transform: translateY(0) scale(1);
    transition: color 0.16s ease, transform 0.18s cubic-bezier(0.2, 0.9, 0.25, 1);
    will-change: transform;
}

.profile-rating__star:active {
    transform: translateY(-1px) scale(1.04);
}

.profile-rating__star svg {
    width: 34px;
    height: 34px;
    transform-origin: 50% 55%;
}

.profile-rating__star--active {
    color: #ffcc33;
}

.profile-rating__star--pop svg {
    animation: profile-rating-star-pop 0.42s cubic-bezier(0.2, 0.9, 0.25, 1);
}

@keyframes profile-rating-star-pop {
    0% {
        transform: translateY(0) scale(1);
    }

    38% {
        transform: translateY(-5px) scale(1.16);
    }

    68% {
        transform: translateY(1px) scale(0.98);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-rating__star {
        transition: none;
    }

    .profile-rating__star--pop svg {
        animation: none;
    }
}

.profile-rating__comment {
    margin-top: 12px;
    min-height: 74px;
    border-radius: 12px;
    background: var(--background-color);
    border-color: var(--background-color);
}

.profile-rating__error {
    margin-top: 10px;
    color: #ef5350;
    font-size: 12px;
    line-height: 1.35;
}

.profile-action-modal .button:disabled,
.profile-rating-inline .button:disabled {
    opacity: 0.45;
}

@media (max-width: 430px) {
    .profile-action-row {
        min-height: 72px;
        padding: 11px 10px;
    }

    .profile-action-row__title {
        font-size: 14px;
    }

    .profile-action-row__description {
        font-size: 12px;
    }

    .profile-action-row__reward {
        font-size: 17px;
    }
}

/* ==================== HISTORY ==================== */

.history-placeholder {
    color: var(--text-hint-color);
    font-size: 15px;
    line-height: 21px;
    text-align: center;
}

.history-placeholder-support {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.history-placeholder-animation {
    width: 120px;
    height: 120px;
}

.tickets-coming-soon {
    gap: 8px;
}

.tickets-coming-soon .history-placeholder-animation {
    width: 96px;
    height: 96px;
}

.history-row-image {
    background: linear-gradient(to top, rgb(0, 152, 234), rgb(26, 173, 252));
}

.history-row-image svg {
    width: 24px;
    height: 24px;
}

.history-row-image-active svg {
    animation: rotate 2s linear infinite;
}

.ticket-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-card {
    overflow: hidden;
    border-radius: 14px;
    background: var(--background-secondary-color);
}

.ticket-card__summary {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 72px;
    padding: 10px 12px;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ticket-card__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.ticket-card__content {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
}

.ticket-card__title {
    overflow: hidden;
    color: var(--text-color);
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 4px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
}

.ticket-card__source {
    padding: 1px 7px;
    border-radius: 999px;
    line-height: 16px;
    white-space: nowrap;
}

.ticket-card__source--miniapp {
    color: var(--button-color);
    background: color-mix(in srgb, var(--button-color) 12%, transparent);
}

.ticket-card__source--unf {
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color) 14%, transparent);
}

.ticket-card__arrow {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
}

.ticket-card__arrow svg {
    width: 20px;
    height: 20px;
}

.ticket-card__collapse {
    border-top: 1px solid transparent;
}

.ticket-card__collapse.collapsible-content--open {
    border-top-color: var(--separator-color);
}

.ticket-card__details {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.ticket-card__detail {
    display: grid;
    grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 12px;
    color: var(--text-hint-color);
    font-size: 13px;
    line-height: 18px;
}

.ticket-card__detail strong {
    color: var(--text-color);
    font-weight: 400;
    text-align: left;
    overflow-wrap: anywhere;
}

.ticket-card__comment {
    padding-top: 2px;
    color: var(--text-hint-color);
    font-size: 13px;
}

.ticket-card__comment p {
    margin: 5px 0 0;
    color: var(--text-color);
    line-height: 18px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ticket-card__works {
    display: grid;
    gap: 10px;
    margin: 7px 0 0;
    padding: 0;
    list-style: none;
}

.ticket-card__works li {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--background-color);
}

.ticket-card__works li > span {
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
}

.ticket-card__works li p {
    margin-top: 3px;
}

.tickets-notice {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-hint-color);
    background: var(--background-secondary-color);
    font-size: 13px;
    line-height: 18px;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .ticket-card__collapse,
    .ticket-card__arrow {
        transition-duration: 0.01ms;
    }
}

/* ==================== ORDER MANAGER ==================== */

.order-manager {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
}

.order-manager__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(to top,rgb(218,62,67),rgb(215,117,120));
}

.order-manager__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-manager__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.order-manager__avatar-fallback svg {
    width: 60%;
    height: 60%;
}

.order-manager__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.order-manager__line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.25;
}

.order-manager__label {
    flex: 0 0 auto;
    color: var(--text-hint-color);
}

.order-manager__value {
    min-width: 0;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

a.order-manager__value {
    color: var(--text-color);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

a.order-manager__value:hover,
a.order-manager__value:focus,
a.order-manager__value:active {
    color: var(--accent-color);
}

a.order-manager__value:visited {
    color: var(--text-color);
}

/* ==================== ORDER DETAILS TABLE ==================== */

.table-order-details {
    background: var(--background-secondary-color);
    border-radius: 15px;
    overflow-x: auto;
    margin: 16px 0 24px;
    -webkit-overflow-scrolling: touch;
}

.table-order-details__header,
.table-order-details__row,
.table-order-details__total {
    display: grid;
    grid-template-columns: 4.8fr 70px 90px 100px;
    gap: 8px;
    padding: 10px 12px;
    align-items: start;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--text-color);
    min-width: 520px;
}

.table-order-details__header {
    background: color-mix(in srgb, var(--background-secondary-color) 72%, #000);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-hint-color);
    border-bottom: 1px solid var(--background-color);
    padding: 8px 12px;
}

.table-order-details__row {
    border-bottom: 1px solid var(--background-color);
}

.table-order-details__row:last-child {
    border-bottom: 0;
}

.table-order-details__col--name {
    text-align: left;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
}

.table-order-details__col--qty,
.table-order-details__col--price,
.table-order-details__col--amount {
    text-align: right;
}

.table-order-details__total {
    background: color-mix(in srgb, var(--background-secondary-color) 82%, #000);
    font-weight: 700;
    padding: 12px;
}

.table-order-details__total .table-order-details__col--amount.total {
    color: var(--accent-color);
}

/* ==================== ORDER SUM ROW ==================== */

.store-table-row.sum-row {
    display: flex;
    align-items: center;
    justify-content: initial;
    gap: 0;
    cursor: pointer;
}

.sum-row-part {
    display: flex;
    align-items: center;
    flex: 0 0 33.333%;
    max-width: 33.333%;
    min-width: 0;
}

.sum-row-part--left {
    justify-content: flex-start;
}

.sum-row-part--center {
    justify-content: center;
}

.sum-row-part--right {
    justify-content: flex-end;
    text-align: right;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sum-row-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--text-hint-color);
    transform: rotate(90deg);
    transform-origin: 50% 50%;
    transition: transform 0.28s ease;
}

.sum-row-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

.sum-row-arrow--open {
    transform: rotate(270deg);
}

/* ==================== ROOT ==================== */

/* ==================== ORDER DETAILS COLLAPSIBLE ==================== */

.order-details-card {
    border-bottom: 1px solid var(--background-color);
}

.order-details-card:last-child {
    border-bottom: 0;
}

.order-details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    color: var(--text-color);
    cursor: pointer;
    font: inherit;
}

.order-details-summary:focus,
.order-details-summary:active {
    outline: none;
    box-shadow: none;
}

.order-details-summary__title {
    flex: 1;
    min-width: 0;
}

.order-details-summary__value {
    flex: 0 0 auto;
    max-width: 120px;
    text-align: right;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.order-details-summary__arrow {
    margin-right: 10px;
}

.order-details-collapsible__inner {
    padding: 0;
}

.order-details-list {
    display: flex;
    flex-direction: column;
    background: var(--background-secondary-color);
}

.order-details-item {
    display: block;
    padding: 12px 10px;
    border-bottom: 1px solid var(--background-color);
}

.order-details-item:last-child {
    border-bottom: 0;
}

.order-details-item__content {
    min-width: 0;
}

.order-details-item__name {
    line-height: 1.35;
    color: var(--text-color);
    word-break: break-word;
}

.order-details-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--text-hint-color);
}

.order-details-item__amount {
    flex: 0 0 auto;
    max-width: 45%;
    text-align: right;
    font-weight: 600;
    color: var(--text-hint-color);
    overflow-wrap: anywhere;
}

.order-details-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 10px;
}

.order-details-total__title {
    color: var(--text-hint-color);
}

.order-details-total__value {
    color: var(--accent-color);
}

/* ===== Contracts scene ===== */

.contracts-section-head {
    margin-top: 8px;
}

.contracts-section-head__title {
    margin-bottom: 0;
}

.contracts-section-head__description {
    margin: 8px 5px 14px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--text-hint-color);
}

.store-contract:not(:last-child),
.contracts-module:not(:last-child) {
    border-bottom: 1px solid var(--background-color);
}

.store-contract__summary,
.contracts-module__row {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.store-contract__content {
    flex: 1;
    min-width: 0;
}

.contracts-row__head,
.contracts-row__subline {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.contracts-row__title {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
    color: var(--text-color);
}

.contracts-row__subline {
    margin-top: 4px;
}

.contracts-row__description {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-hint-color);
}

.contracts-row__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    flex: 0 0 auto;
}

.contracts-module__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-right: 2px;
}

.contracts-module__icon svg {
    width: 24px;
    height: 24px;
}

.contracts-module__icon--blue {
    color: #4da3ff;
    background: rgba(77, 163, 255, 0.14);
}

.contracts-module__icon--yellow {
    color: #ffd43b;
    background: rgba(255, 212, 59, 0.14);
}

.contracts-module__icon--purple {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.14);
}

.store-contract__details {
    background: transparent;
}

.store-contract__summary.store-table-link-row,
.contracts-module__row.store-table-link-row {
    font: inherit;
    color: inherit;
}

.contracts-comparison-table {
    width: 100%;
    border-radius: 15px;
    background: var(--background-secondary-color);
    overflow: hidden;
}

.contracts-comparison-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, 50px);
    align-items: stretch;
    min-height: 46px;
    border-bottom: 1px solid var(--background-color);
}

.contracts-comparison-row:last-child {
    border-bottom: 0;
}

.contracts-comparison-row--head {
    min-height: 40px;
    background: color-mix(in srgb, var(--background-secondary-color) 82%, #000);
}

.contracts-comparison-feature {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 10px;
    font-size: 13px;
    line-height: 1.25;
    color: var(--text-color);
}

.contracts-comparison-row--head .contracts-comparison-feature {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-hint-color);
}

.contracts-comparison-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-left: 1px solid var(--background-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-hint-color);
    text-align: center;
}

.contracts-comparison-cell--active {
    background: color-mix(in srgb, var(--text-color) 5%, #0000);
}

.contracts-comparison-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #34c759;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.contracts-comparison-empty {
    color: var(--text-hint-color);
    opacity: 0.55;
}

/* ===== Contracts comparison collapsible wrapper ===== */

.contracts-comparison {
    width: 100%;
}

.contracts-comparison-summary {
    width: 100%;
    border: 0;
    border-bottom: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.contracts-comparison-details {
    background: transparent;
}

.contracts-comparison-inner {
    padding: 0;
    border-top: 1px solid var(--background-color);
}

.contracts-comparison-table {
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.contracts-comparison-row {
    border-bottom: 1px solid var(--background-color);
}

.contracts-comparison-row:last-child {
    border-bottom: 0;
}

.contracts-comparison-feature {
    padding-left: 20px;
}

.contracts-comparison-cell {
    border-left: 1px solid var(--background-color);
}

/* ===== Contracts/modules service rows as table ===== */

.store-contract__details .collapsible-content__inner {
    padding: 0;
}

.store-contract__service {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--background-color);
}

.store-contract__service:last-child {
    border-bottom: 0;
}

.store-contract__service-dot {
    display: none;
}

.store-contract__service-text {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text-hint-color);
    opacity: 0.95;
    word-break: break-word;
}

/* ===== Contracts info buttons/modal ===== */

.contracts-comparison-feature {
    gap: 6px;
}

.contracts-comparison-feature__text {
    min-width: 0;
}

.store-finance-card__summary-info {
    padding-right: 5px;
}

@media (max-width: 480px) {
    .store-finance-card__summary-info > .app-info-button {
        align-self: flex-start;
        margin-top: 18px;
    }
}

.store-contract__service {
    justify-content: space-between;
    gap: 12px;
}

.store-contract__service-text {
    flex: 1;
    min-width: 0;
}

.contracts-info-modal {
    --contracts-modal-tma-top: max(var(--tma-content-safe-area-inset-top, 0px), var(--tma-safe-area-inset-top, 0px));
    --contracts-modal-top-space: calc(var(--contracts-modal-tma-top) + 45px);
    --contracts-modal-safe-bottom: max(var(--tma-content-safe-area-inset-bottom, 0px), var(--bottom-inset, 0px));
    --contracts-modal-bottom-space: calc(
        var(--contracts-modal-safe-bottom)
        + var(--navigation-height)
        + var(--navigation-padding-bottom)
        + 8px
    );

    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--contracts-modal-top-space) 20px var(--contracts-modal-bottom-space);
    overflow: hidden;
    overscroll-behavior: none;
    background: rgba(0, 0, 0, 0.48);
    animation: fadeIn 0.18s ease-in-out;
}

.contracts-info-modal__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - var(--contracts-modal-top-space) - var(--contracts-modal-bottom-space) - 20px);
    max-height: calc(100dvh - var(--contracts-modal-top-space) - var(--contracts-modal-bottom-space) - 20px);
    overflow: hidden;
    border-radius: 18px;
    background: var(--background-secondary-color);
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.contracts-info-modal__title {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
}

.contracts-info-modal__description {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-hint-color);
    text-align: justify;
    text-align-last: left;
}

.contracts-info-modal__link {
    flex: 0 0 auto;
    margin-top: 12px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.contracts-info-modal__button {
    flex: 0 0 auto;
    width: 100%;
    height: 42px;
    margin-top: 18px;
    border: 0;
    border-radius: 14px;
    background: var(--button-color);
    color: var(--button-text-color);
    font: inherit;
    cursor: pointer;
}

body.info-modal-is-open .content {
    overflow-y: hidden;
    overscroll-behavior: none;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

body.info-modal-is-open .navigation-items {
    pointer-events: none;
}

/* ===== Align info buttons in comparison table ===== */

.contracts-comparison-feature {
    justify-content: space-between;
    gap: 10px;
}

.contracts-comparison-feature__text {
    flex: 1;
    min-width: 0;
}

.contracts-comparison-feature .app-info-button {
    margin-left: auto;
}

/* ===== Larger height for contracts comparison dropdown ===== */

.contracts-comparison-details.collapsible-content--open {
    max-height: 5000px;
}

/* ==================== KASSA SCENE ==================== */

.kassa-page {
    gap: 20px;
}

/* ===== Kassa top ===== */

.kassa-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    margin: 0;
}

.kassa-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    text-align: center;
}

.kassa-heading__title {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-color);
}

.kassa-heading__description {
    font-size: 15px;
    line-height: 1.25;
    color: var(--text-hint-color);
}

.kassa-heading__address {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.35;
    color: var(--text-hint-color);
    opacity: 0.9;
}

/* ===== Kassa alert card ===== */

.kassa-alert {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 18px;
    border: 0;
    border-radius: 15px;
    background: var(--background-secondary-color);
    overflow: hidden;
}

.kassa-alert__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--text-hint-color);
    background: var(--background-color);
}

.kassa-alert__icon svg {
    display: block;
    width: 27px;
    height: 27px;
}

.kassa-alert__icon--success {
    color: #34c759;
    background: rgba(52, 199, 89, 0.14);
}

.kassa-alert__icon--warning {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.14);
}

.kassa-alert__icon--danger {
    color: #ff453a;
    background: rgba(255, 69, 58, 0.14);
}

.kassa-alert__body {
    flex: 1;
    min-width: 0;
}

.kassa-alert__title {
    line-height: 1.35;
    color: var(--text-color);
}

.kassa-alert__content {
    margin-top: 8px;
}

.kassa-alert__list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kassa-alert__item {
    font-size: 14px;
    line-height: 1.35;
    color: var(--text-color);
}

.kassa-alert__text {
    font-size: 14px;
    line-height: 1.35;
    color: var(--text-hint-color);
}

.kassa-alert__hint {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-hint-color);
}

.kassa-alert__button {
    grid-column: 1 / -1;
    width: min(100%, 386px);
    margin: 0 auto;
}

/* ===== Kassa state card ===== */

.kassa-state-card {
    width: 100%;
    border-radius: 15px;
    background: var(--background-secondary-color);
    overflow: hidden;
}

.kassa-state-card__title {
    padding: 14px 18px 10px;
    line-height: 1.25;
    color: var(--text-color);
}

.kassa-state-card__rows {
    padding: 0 18px 12px;
}

.kassa-state-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 9px;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    border-bottom: 1px solid color-mix(in srgb, var(--background-color) 75%, transparent);
}

.kassa-state-row:last-child {
    border-bottom: 0;
}

.kassa-state-row__title {
    min-width: 0;
    font-size: 14px;
    line-height: 1.25;
    color: var(--text-hint-color);
}

.kassa-state-row__value {
    max-width: 170px;
    font-size: 14px;
    line-height: 1.25;
    color: var(--text-color);
    text-align: right;
    overflow-wrap: anywhere;
}

.kassa-state-row__value--warning {
    color: var(--text-color);
}

.kassa-state-row__value--inactive,
.kassa-state-row__value--danger {
    color: var(--text-color);
}

.kassa-state-row__value--active {
    color: var(--text-color);
}

.kassa-state-row__dot {
    flex: 0 0 10px;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-hint-color);
    opacity: 0.7;
}

.kassa-state-row__dot--active {
    background: #34c759;
    opacity: 1;
}

.kassa-state-row__dot--inactive {
    background: transparent;
    border: 2px solid var(--text-hint-color);
    opacity: 0.75;
}

.kassa-state-row__dot--danger {
    background: #ff453a;
    opacity: 1;
}

.kassa-state-row__dot--warning {
    background: #ff9f43;
    opacity: 1;
}

.kassa-state-row__dot--neutral {
    background: transparent;
    border: 2px solid var(--text-hint-color);
    opacity: 0.75;
}

/* ===== Kassa info cards ===== */

.kassa-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kassa-info-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 138px;
    padding: 18px;
    border-radius: 15px;
    background: var(--background-secondary-color);
}

.kassa-info-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin-bottom: 16px;
}

.kassa-info-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.kassa-info-card__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.kassa-info-card__icon--green {
    color: #34c759;
    background: rgba(52, 199, 89, 0.14);
}

.kassa-info-card__icon--success {
    color: #34c759;
    background: rgba(52, 199, 89, 0.14);
}

.kassa-info-card__icon--warning {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.14);
}

.kassa-info-card__icon--danger {
    color: #ff453a;
    background: rgba(255, 69, 58, 0.14);
}

.kassa-info-card__icon--neutral {
    color: var(--text-hint-color);
    background: var(--field-bg-color);
}

.kassa-info-card__icon--blue {
    color: #0a84ff;
    background: rgba(10, 132, 255, 0.14);
}

.kassa-info-card__title {
    min-width: 0;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-color);
}

.kassa-info-card__label {
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-hint-color);
}

.kassa-info-card__value {
    margin-top: 5px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.kassa-info-card__value--green,
.kassa-info-card__value--success {
    color: #34c759;
}

.kassa-info-card__value--warning {
    color: #ff9f43;
}

.kassa-info-card__value--danger {
    color: #ff453a;
}

.kassa-info-card__value--neutral {
    color: var(--text-color);
}

.kassa-info-card__subvalue {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-hint-color);
}

.kassa-info-card__subvalue--warning {
    color: #ff9f43;
}

.kassa-info-card__subvalue--danger {
    color: #ff453a;
}

.kassa-info-card__divider {
    height: 1px;
    margin: 14px 0;
    background: var(--background-color);
}

.kassa-info-card__button {
    min-height: 44px;
    line-height: 1.2;
    padding: 0 12px;
    white-space: nowrap;
}

.kassa-calendar-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 18px;
    border-radius: 15px;
    background: rgba(52, 199, 89, 0.08);
    box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.24);
}

.kassa-calendar-card__title {
    grid-column: 1 / -1;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.kassa-calendar-card__description,
.kassa-calendar-card__hint {
    color: var(--text-hint-color);
    font-size: 13px;
    line-height: 1.3;
}

.kassa-calendar-card__button {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    line-height: 1;
}

@media (max-width: 390px) {
    .kassa-info-grid {
        gap: 12px;
    }

    .kassa-info-card {
        padding: 15px;
    }
}

/* ===== Kassa sections ===== */

.kassa-section {
    width: 100%;
    margin: 0;
    border-radius: 15px;
    background: var(--background-secondary-color);
    overflow: hidden;
}

.kassa-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 10px;
    border-bottom: 1px solid var(--background-color);
}

.kassa-section__title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.kassa-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--button-color) 14%, transparent);
    color: var(--button-color);
}

.kassa-section__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.kassa-section__title {
    min-width: 0;
    line-height: 1.35;
    font-weight: 600;
    color: var(--text-color);
}

.kassa-section__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    color: var(--text-hint-color);
}

.kassa-section__arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* ===== Kassa section grid ===== */

.kassa-section__grid {
    display: grid;
}

.kassa-section__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kassa-section__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kassa-section__cell {
    display: block;
    min-width: 0;
    padding: 16px 18px;
    border-right: 1px solid var(--background-color);
    text-align: left;
}

.kassa-section__cell:last-child {
    border-right: 0;
}

.kassa-section__grid--2 .kassa-section__cell:nth-child(2n) {
    border-right: 0;
}

.kassa-section__grid--3 .kassa-section__cell:nth-child(3n) {
    border-right: 0;
}

.kassa-section__label {
    width: 100%;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--text-hint-color);
    text-align: left;
}

.kassa-section__value-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
}

.kassa-section__value {
    min-width: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-color);
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding-left: 18px;
}

/* ===== Kassa statuses ===== */

.kassa-section__dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-radius: 50%;
}

.kassa-section__dot--active {
    background: #34c759;
}

.kassa-section__dot--inactive {
    background: #ff453a;
}

.kassa-section__dot--warning {
    background: #ff9f43;
}

.check-status-warning {
    background: #ff9f43;
}

.check-title-warning {
    color: var(--text-color);
}

/* ===== Kassa section icon colors ===== */

.kassa-section:nth-of-type(5) .kassa-section__icon {
    color: #34c759;
    background: rgba(52, 199, 89, 0.12);
}

.kassa-section:nth-of-type(6) .kassa-section__icon {
    color: #0a84ff;
    background: rgba(10, 132, 255, 0.12);
}

.kassa-section:nth-of-type(7) .kassa-section__icon {
    color: #bf5af2;
    background: rgba(191, 90, 242, 0.12);
}

/* ===== Kassa responsive ===== */

@media (max-width: 380px) {
    .kassa-info-grid {
        grid-template-columns: 1fr;
    }

    .kassa-section__grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kassa-section__grid--3 .kassa-section__cell:nth-child(3n) {
        border-right: 1px solid var(--background-color);
    }

    .kassa-section__grid--3 .kassa-section__cell:nth-child(2n) {
        border-right: 0;
    }
}

/* ===== Kassa technical dropdown ===== */

.kassa-technical {
    width: 100%;
}

.kassa-technical__summary.store-table-link-row {
    border-bottom: 0;
}

.kassa-technical__summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--text-hint-color);
    background: color-mix(in srgb, var(--text-hint-color) 18%, transparent);
}

.kassa-technical__summary-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.kassa-technical__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.kassa-technical-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 10px;
    border-bottom: 1px solid var(--background-color);
}

.kassa-technical-row:last-child {
    border-bottom: 0;
}

.kassa-technical-row__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.kassa-technical-row__title {
    min-width: 0;
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-hint-color);
}

.kassa-technical-row__value {
    max-width: 58%;
    font-size: 14px;
    line-height: 1.3;
    color: var(--text-color);
    text-align: right;
    overflow-wrap: anywhere;
}

.kassa-technical-row__dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.kassa-technical-row__dot--active {
    background: #34c759;
}

.kassa-technical-row__dot--inactive,
.kassa-technical-row__dot--danger {
    background: #ff453a;
}

.kassa-technical-row__dot--warning {
    background: #ff9f43;
}

.kassa-technical-row__dot--neutral {
    background: var(--text-hint-color);
    opacity: 0.55;
}

.kassa-technical .collapsible-content--open {
    max-height: 3000px;
}

.crpt {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Product groups carousel */

.crpt-product-groups {
    display: flex;
    gap: 8px;
    margin: 0 -10px;
    padding: 0 10px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.crpt-product-groups::-webkit-scrollbar {
    display: none;
}

.crpt-product-groups::after {
    content: '';
    flex: 0 0 2px;
    height: 1px;
}

.crpt-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crpt-product-groups .crpt-product-group-card {
    flex: 0 0 auto;
    min-width: max-content;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crpt-product-group-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 15px;
    background: var(--background-secondary-color);
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}

button.crpt-product-group-card {
    appearance: none;
}

.crpt-product-group-card--more {
    color: var(--text-color);
}

.crpt-product-groups-modal-overlay {
    z-index: 210;
}

.crpt-product-groups-modal {
    height: calc(100vh - var(--contracts-modal-top-space) - var(--contracts-modal-bottom-space) - 32px);
    height: min(
        620px,
        calc(100dvh - var(--contracts-modal-top-space) - var(--contracts-modal-bottom-space) - 32px)
    );
    max-height: calc(100vh - var(--contracts-modal-top-space) - var(--contracts-modal-bottom-space) - 32px);
    max-height: calc(100dvh - var(--contracts-modal-top-space) - var(--contracts-modal-bottom-space) - 32px);
    overflow: hidden;
}

.crpt-product-groups-modal .contracts-info-modal__title,
.crpt-product-groups-modal .contracts-info-modal__button {
    flex: 0 0 auto;
}

.crpt-product-groups-modal .contracts-info-modal__description {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    padding-right: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.crpt-product-groups-modal .contracts-info-modal__description::-webkit-scrollbar {
    display: none;
}

.crpt-product-groups-modal .contracts-info-modal__description p {
    margin: 0;
}

.crpt-product-groups-modal__subtitle {
    color: var(--text-color);
    font-size: 13px;
    line-height: 17px;
}

.crpt-product-groups-modal__tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
}

.crpt-product-groups-modal__tag {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 12px;
    background: var(--background-color);
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

.crpt-product-groups-modal__tag--active {
    color: var(--button-text-color);
    background: var(--button-color);
}

.crpt-product-groups-modal__button {
    flex: 0 0 42px;
    min-height: 42px;
    line-height: 18px;
}

/* Marking codes overview */

.crpt-codes-card {
    overflow: hidden;
    border-radius: 15px;
    background: var(--background-secondary-color);
}

.crpt-codes-summary {
    display: grid;
    grid-template-columns: 42px minmax(74px, 1fr) minmax(58px, 0.9fr) minmax(64px, 0.95fr) minmax(92px, 1.2fr) 18px;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 74px;
    padding: 12px;
    border: 0;
    background: transparent;
    color: var(--text-color);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.crpt-codes-summary:focus,
.crpt-codes-summary:active {
    outline: none;
    box-shadow: none;
}

.crpt-codes-summary__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #1c1c1e;
    background: #f4ee3f;
}

.crpt-codes-summary__icon svg {
    width: 31px;
    height: 31px;
}

.crpt-codes-summary__arrow {
    justify-self: end;
    margin-right: 10px;
}

.crpt-code-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    border-left: 1px solid var(--background-color);
}

.crpt-codes-summary > .crpt-code-metric:first-of-type {
    border-left: 0;
}

.crpt-codes-summary__icon + .crpt-code-metric {
    border-left: 0;
}

.crpt-code-metric__value {
    overflow: hidden;
    color: var(--text-color);
    font-size: 19px;
    line-height: 23px;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crpt-codes-summary > .crpt-code-metric:first-of-type .crpt-code-metric__value {
    font-size: 25px;
    line-height: 29px;
    text-align: left;
}

.crpt-code-metric__label {
    overflow: hidden;
    margin-top: 3px;
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crpt-codes-summary > .crpt-code-metric:first-of-type .crpt-code-metric__label {
    text-align: left;
}

.crpt-codes-summary > .crpt-code-metric:nth-of-type(5) .crpt-code-metric__label,
.crpt-codes-group-row .crpt-code-metric:last-child .crpt-code-metric__label {
    font-size: 10px;
    letter-spacing: 0;
    white-space: nowrap;
}

.crpt-codes-groups__inner {
    padding: 0 0 4px;
}

.crpt-codes-group-row {
    display: grid;
    grid-template-columns: minmax(128px, 1.25fr) minmax(58px, 0.85fr) minmax(62px, 0.85fr) minmax(104px, 1.1fr);
    align-items: center;
    gap: 6px;
    min-height: 70px;
    padding: 11px 12px;
    border-top: 1px solid var(--background-color);
}

.crpt-codes-group-row__main {
    min-width: 0;
}

.crpt-codes-group-row__title {
    overflow: hidden;
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crpt-codes-group-row__total {
    margin-top: 3px;
    color: var(--text-color);
    font-size: 20px;
    line-height: 23px;
    font-weight: 700;
}

.crpt-codes-group-row .crpt-code-metric {
    min-height: 38px;
}

.crpt-codes-group-row .crpt-code-metric__value {
    font-size: 17px;
    line-height: 21px;
}

.crpt-codes-group-row .crpt-code-metric__label {
    font-size: 10px;
    line-height: 13px;
}

/* Document counters */

.crpt-doc-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: var(--background-secondary-color);
    border-radius: 15px;
}

.crpt-doc-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 78px;
    padding: 14px;
    border-right: 1px solid var(--background-color);
    border-bottom: 1px solid var(--background-color);
}

.crpt-doc-stat:nth-child(2n) {
    border-right: 0;
}

.crpt-doc-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.crpt-doc-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    color: #0a84ff;
    background: rgba(10, 132, 255, 0.12);
}

.crpt-doc-stat:nth-child(1) .crpt-doc-stat__icon {
    color: #34c759;
    background: rgba(52, 199, 89, 0.12);
}

.crpt-doc-stat:nth-child(2) .crpt-doc-stat__icon {
    color: #0a84ff;
    background: rgba(10, 132, 255, 0.12);
}

.crpt-doc-stat:nth-child(3) .crpt-doc-stat__icon {
    color: #af52de;
    background: rgba(175, 82, 222, 0.14);
}

.crpt-doc-stat--danger .crpt-doc-stat__icon {
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.14);
}

.crpt-doc-stat__icon svg {
    width: 22px;
    height: 22px;
}

.crpt-doc-stat__main {
    min-width: 0;
}

.crpt-doc-stat__label {
    overflow: hidden;
    color: var(--text-hint-color);
    font-size: 13px;
    line-height: 17px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crpt-doc-stat__value {
    margin-top: 2px;
    color: var(--text-color);
    font-size: 24px;
    line-height: 28px;
    font-weight: 800;
}

.crpt-doc-stat--danger .crpt-doc-stat__value {
    color: #ff4d4f;
}

/* Generic tags */

.crpt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crpt-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 18px;
    background: var(--background-secondary-color);
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
}

/* Generic list */

.crpt-list {
    overflow: hidden;
    background: var(--background-secondary-color);
    border-radius: 15px;
}

.crpt-scroll-list {
    max-height: 300px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.crpt-scroll-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.crpt-scroll-sentinel {
    min-height: 28px;
    pointer-events: none;
}

.crpt-scroll-list--warehouse {
    max-height: 380px;
}

.crpt-list-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto 10px auto;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 10px;
    border-bottom: 1px solid var(--background-color);
}

button.crpt-list-row {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--background-color);
    border-left: 0;
    border-top: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    appearance: none;
}

button.store-alert-link-row {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-top: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    appearance: none;
}

.crpt-alert-row {
    position: relative;
    padding-right: 52px;
    overflow: visible;
}

.crpt-alert-row:has(.ui-row-actions__menu) {
    z-index: 30;
}

.crpt-alert-row .store-alert-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.crpt-alert-row--read .store-alert-title,
.crpt-alert-row--read .store-alert-description {
    color: var(--text-hint-color);
}

.crpt-alerts-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 22px;
    height: 30px;
}

.crpt-alerts-badge {
    position: relative;
    z-index: 2;
    border: 0;
}

.crpt-alerts-read-button {
    position: absolute;
    right: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 112px;
    height: 22px;
    padding: 0 38px 0 10px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #ef5350;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    white-space: nowrap;
    clip-path: inset(0 0 0 100% round 999px);
    will-change: clip-path, opacity;
    transition:
        clip-path 380ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 180ms ease-out;
}

.crpt-alerts-badge-wrap--open .crpt-alerts-read-button {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 999px);
}

.crpt-alert-dot-wrap,
.crpt-alert-content-button,
.crpt-alert-arrow {
    border: 0;
    background: transparent !important;
    color: inherit;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.crpt-alert-dot-wrap:active,
.crpt-alert-dot-wrap:focus,
.crpt-alert-content-button:active,
.crpt-alert-content-button:focus,
.crpt-alert-arrow:active,
.crpt-alert-arrow:focus {
    background: transparent !important;
    box-shadow: none;
}

.crpt-alert-dot-wrap {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 8px 10px 0;
}

.crpt-alert-content-button {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    text-align: left;
}

.crpt-alert-arrow {
    display: inline-flex;
    padding: 0;
}

.crpt-alert-popover {
    position: absolute;
    z-index: 2;
    left: 18px;
    top: 50%;
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--text-color);
    color: var(--button-text-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transform: translateY(-50%);
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.crpt-alert-popover[hidden] {
    display: none;
}

.crpt-document-alert-restore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: var(--background-secondary-color);
    color: var(--text-color);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
}

.crpt-document-alert-restore:active,
.crpt-document-alert-restore:focus {
    background: var(--background-secondary-color) !important;
    box-shadow: none;
}

.crpt-document-alert-restore svg {
    display: block;
    width: 17px;
    height: 17px;
}

.crpt-document-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.crpt-read-alerts {
    margin-top: 10px;
}

.crpt-read-alerts-summary .collapsible-arrow {
    margin-left: auto;
}

.crpt-list-row:last-child {
    border-bottom: 0;
}

.crpt-list-row__content {
    min-width: 0;
}

.crpt-list-row__title {
    overflow: hidden;
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crpt-list-row__description {
    overflow: hidden;
    margin-top: 3px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crpt-list-row__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    min-width: 78px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
    text-align: right;
    white-space: nowrap;
}

.crpt-list-row__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 22px;
    color: var(--text-hint-color);
    opacity: 0.75;
}

.crpt-list-row__arrow svg {
    width: 18px;
    height: 18px;
}

/* Warehouse */

.crpt-warehouse-list {
    overflow: hidden;
    border-radius: 15px;
    background: var(--background-secondary-color);
}

.crpt-warehouse-search {
    padding: 10px;
    border-bottom: 1px solid var(--background-color);
}

.crpt-warehouse-search__input {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 13px;
    padding: 0 13px;
    background: var(--background-color);
    color: var(--text-color);
    font: inherit;
    font-size: 14px;
    line-height: 18px;
    outline: none;
    appearance: none;
}

.crpt-warehouse-search__input::placeholder {
    color: var(--text-hint-color);
}

.crpt-warehouse-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.9fr);
    gap: 14px;
    align-items: center;
    min-height: 76px;
    padding: 12px;
    border-bottom: 1px solid var(--background-color);
}

.crpt-warehouse-row:last-of-type {
    border-bottom: 0;
}

.crpt-warehouse-row__main {
    min-width: 0;
}

.crpt-warehouse-row__title {
    overflow: hidden;
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crpt-warehouse-row__description {
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crpt-warehouse-row__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
}

.crpt-warehouse-metric {
    min-width: 0;
    padding: 0 8px;
    border-left: 1px solid var(--background-color);
    text-align: center;
}

.crpt-warehouse-metric__value {
    color: var(--text-color);
    font-size: 16px;
    line-height: 20px;
}

.crpt-warehouse-metric__label {
    overflow: hidden;
    margin-top: 2px;
    color: var(--text-hint-color);
    font-size: 10px;
    line-height: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crpt-warehouse-list .crpt-load-more {
    border-top: 1px solid var(--background-color);
}

.crpt-warehouse-empty {
    padding: 18px;
    color: var(--text-hint-color);
    font-size: 14px;
    line-height: 19px;
    text-align: center;
}

/* Document type icons */

.crpt-doc-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
}

.crpt-doc-icon svg {
    width: 20px;
    height: 20px;
}

.crpt-doc-icon--upd {
    color: #34c759;
    background: rgba(52, 199, 89, 0.14);
}

.crpt-doc-icon--ukd {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.14);
}

.crpt-doc-icon--gtin {
    color: #0a84ff;
    background: rgba(10, 132, 255, 0.14);
}

.crpt-doc-icon--default {
    color: #bf5af2;
    background: rgba(191, 90, 242, 0.14);
}

/* Document details */

.crpt-document__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    min-height: 58px;
    padding: 12px;
    background: var(--background-secondary-color);
    border-radius: 15px;
}

.crpt-document__summary .crpt-doc-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.crpt-summary__main {
    min-width: 0;
}

.crpt-summary__title {
    overflow: hidden;
    color: var(--text-color);
    font-size: 15px;
    line-height: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crpt-summary__meta {
    margin-top: 2px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
    overflow-wrap: anywhere;
    text-align: center;
}

.crpt-product-groups-modal__button {
    margin-top: 14px;
}

.crpt-detail-card {
    overflow: hidden;
}

.crpt-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--background-color);
}

.crpt-detail-row:last-child {
    border-bottom: 0;
}

.crpt-detail-row__label {
    flex: 0 0 auto;
    color: var(--text-hint-color);
    font-size: 13px;
    line-height: 18px;
}

.crpt-detail-row__value {
    min-width: 0;
    color: var(--text-color);
    font-size: 13px;
    line-height: 18px;
    text-align: right;
    overflow-wrap: anywhere;
}

.crpt-detail-row__value--compact {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    max-width: 64%;
    white-space: nowrap;
}

.crpt-detail-row__value--compact span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
}

.crpt-detail-row__value--compact svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--text-hint-color);
}

button.crpt-detail-row__value {
    border: 0;
    background: transparent;
    font: inherit;
    appearance: none;
}

.crpt-code-row {
    grid-template-columns: auto minmax(0, 1fr);
}

.crpt-product-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.crpt-load-more {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    appearance: none;
}

.crpt-list .crpt-load-more {
    border-top: 1px solid var(--background-color);
}

.crpt-list-row + .crpt-load-more {
    border-top: 0;
}

.crpt-load-more:disabled {
    color: var(--text-hint-color);
}

/* Feedback and states */

.crpt-copy-toast {
    position: fixed;
    left: 50%;
    bottom: 104px;
    z-index: 20;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(58, 58, 60, 0.94);
    color: var(--text-color);
    font-size: 13px;
    line-height: 17px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.crpt-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 180px;
    padding: 34px 20px;
    background: var(--background-secondary-color);
    border-radius: 15px;
    text-align: center;
}

.crpt-loading__title {
    color: var(--text-color);
    font-size: 16px;
    line-height: 21px;
}

.crpt-loading__text {
    color: var(--text-hint-color);
    font-size: 14px;
    line-height: 19px;
}

.crpt-empty {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crpt-empty__text {
    padding: 0 18px;
    color: var(--text-hint-color);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.crpt-empty__button {
    width: calc(100% - 36px);
    margin: 0 18px;
}

@media (max-width: 420px) {
    .crpt-doc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crpt-codes-summary {
        grid-template-columns: 34px minmax(54px, 0.95fr) minmax(46px, 0.85fr) minmax(54px, 0.9fr) minmax(72px, 1.15fr) 12px;
        gap: 4px;
        min-height: 66px;
        padding: 9px 7px;
    }

    .crpt-codes-summary__icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .crpt-codes-summary__icon svg {
        width: 26px;
        height: 26px;
    }

    .crpt-code-metric {
        min-height: 36px;
        padding-left: 5px;
    }

    .crpt-code-metric__value {
        font-size: 15px;
        line-height: 18px;
    }

    .crpt-codes-summary > .crpt-code-metric:first-of-type .crpt-code-metric__value {
        font-size: 20px;
        line-height: 23px;
    }

    .crpt-code-metric__label {
        font-size: 9px;
        line-height: 12px;
    }

    .crpt-codes-group-row {
        grid-template-columns: minmax(104px, 1.15fr) minmax(46px, 0.8fr) minmax(52px, 0.85fr) minmax(78px, 1.2fr);
        gap: 4px;
        min-height: 64px;
        padding: 10px 7px;
    }

    .crpt-codes-group-row__title {
        font-size: 10px;
        line-height: 13px;
    }

    .crpt-codes-group-row__total {
        font-size: 18px;
        line-height: 21px;
    }

    .crpt-codes-group-row .crpt-code-metric__value {
        font-size: 14px;
        line-height: 18px;
    }

    .crpt-codes-group-row .crpt-code-metric__label {
        font-size: 10px;
        line-height: 13px;
    }

    .crpt-codes-summary > .crpt-code-metric:nth-of-type(5) .crpt-code-metric__label,
    .crpt-codes-group-row .crpt-code-metric:last-child .crpt-code-metric__label {
        font-size: 9px;
        line-height: 12px;
    }

    .crpt-list-row {
        gap: 10px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .crpt-list-row__side {
        min-width: 48px;
    }

    .crpt-warehouse-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .crpt-warehouse-metric:first-child {
        border-left: 0;
    }
}

@media (max-width: 400px) {
    .crpt-codes-summary {
        grid-template-columns: 30px minmax(50px, 0.95fr) minmax(42px, 0.85fr) minmax(48px, 0.9fr) minmax(70px, 1.2fr) 10px;
        padding-right: 5px;
        padding-left: 5px;
    }

    .crpt-code-metric__label {
        font-size: 8px;
        line-height: 11px;
    }

    .crpt-codes-summary > .crpt-code-metric:nth-of-type(5) .crpt-code-metric__label,
    .crpt-codes-group-row .crpt-code-metric:last-child .crpt-code-metric__label {
        font-size: 8px;
        line-height: 11px;
    }

}

.egais {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.egais-status-card,
.egais-metrics-card {
    overflow: hidden;
    border-radius: 15px;
    background: var(--background-secondary-color);
}

.egais-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
}

.egais-status-card__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.egais-status-card__icon,
.egais-warning-row__icon,
.egais-document-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
}

.egais-status-card__icon {
    color: #34c759;
    background: rgba(52, 199, 89, 0.14);
}

.egais-status-card__icon--offline {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.14);
}

.egais-warning-row__icon {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.14);
}

.egais-document-row__icon {
    color: #0a84ff;
    background: rgba(10, 132, 255, 0.14);
}

.egais-status-card__icon svg,
.egais-warning-row__icon svg,
.egais-document-row__icon svg {
    width: 21px;
    height: 21px;
}

.egais-status-card__title {
    color: var(--text-color);
    font-size: 15px;
    line-height: 19px;
    font-weight: 700;
}

.egais-status-card__description,
.egais-status-card__version {
    margin-top: 2px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
}

.egais-status-card__version {
    margin-top: 0;
    white-space: nowrap;
}

.egais-metrics-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.egais-metric {
    min-width: 0;
    padding: 13px 8px;
    border-right: 1px solid var(--background-color);
    text-align: center;
}

.egais-metric:last-child {
    border-right: 0;
}

.egais-metric__value {
    overflow: hidden;
    color: var(--text-color);
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.egais-metric__label {
    overflow: hidden;
    margin-top: 3px;
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.egais-warning-row,
.egais-document-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px;
    border-bottom: 1px solid var(--background-color);
}

.egais-warning-row:last-child,
.egais-document-row:last-child {
    border-bottom: 0;
}

.egais-document-row__content {
    min-width: 0;
    flex: 1;
}

@media (max-width: 390px) {
    .egais-metrics-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .egais-metric:nth-child(2n) {
        border-right: 0;
    }

    .egais-metric:nth-child(-n + 2) {
        border-bottom: 1px solid var(--background-color);
    }
}

.iiko {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 20px;
    animation: sceneFadeIn 0.22s ease-out;
}

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

.iiko-header .header-description {
    padding: 0;
}

.iiko-card {
    overflow: hidden;
    border-radius: 15px;
    background: var(--background-secondary-color);
}

.iiko > section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.iiko > section > .store-table-header {
    display: flex;
    min-height: 20px;
    align-items: center;
    line-height: 20px;
}

.iiko-section-header {
    justify-content: space-between;
    gap: 12px;
}

.iiko-section-header > span {
    min-width: 0;
}

.iiko-highlights-info p {
    margin: 0 0 10px;
}

.iiko-highlights-info p:last-child {
    margin-bottom: 0;
}

.iiko-food-cost-card {
    padding: 16px;
}

.iiko-comparison-card__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iiko-insight-metric {
    min-width: 0;
    padding: 14px 12px;
    border-right: 1px solid var(--background-color);
}

.iiko-insight-metric:last-child {
    border-right: 0;
}

.iiko-insight-metric > span,
.iiko-comparison-card__footer,
.iiko-losses-card span,
.iiko-losses-card small {
    display: block;
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 15px;
}

.iiko-insight-metric__value {
    margin-top: 3px;
    color: var(--text-color);
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    white-space: nowrap;
}

.iiko-insight-metric small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--text-hint-color);
    font-size: 9px;
    line-height: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iiko-insight-metric small.iiko-insight-metric__delta {
    margin-top: 1px;
}

.iiko-insight-metric__value--positive {
    color: var(--text-green-color);
}

.iiko-insight-metric__value--negative {
    color: var(--text-error-color);
}

.iiko-insight-metric__value--neutral {
    color: var(--text-hint-color);
}

.iiko-comparison-card__footer {
    padding: 10px 12px;
    border-top: 1px solid var(--background-color);
}

.iiko-production-place {
    border-bottom: 1px solid var(--background-color);
}

.iiko-production-place:last-child {
    border-bottom: 0;
}

.iiko-period-caption {
    margin-top: -12px;
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 15px;
    text-align: center;
}

.iiko-production-place__summary {
    display: grid;
    width: 100%;
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto minmax(78px, auto) 18px;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.iiko-production-place__summary:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -3px;
}

.iiko-production-place__main,
.iiko-production-place__comparison {
    min-width: 0;
}

.iiko-production-place__name,
.iiko-production-place__revenue {
    color: var(--text-color);
    font-size: 15px;
    line-height: 19px;
    font-weight: 400;
}

.iiko-production-place__main > span,
.iiko-production-group__header span {
    display: block;
    margin-top: 3px;
    color: var(--text-hint-color);
    font-size: 10px;
    line-height: 14px;
}

.iiko-production-place__change,
.iiko-production-place__delta {
    display: block;
    margin-top: 3px;
    color: inherit;
    font-size: 10px;
    line-height: 14px;
}

.iiko-production-place__comparison {
    text-align: right;
}

.iiko-production-place__delta {
    margin-top: 0;
}

.iiko-production-place__revenue {
    text-align: center;
    white-space: nowrap;
}

.iiko-production-place__change--positive {
    color: var(--text-green-color);
}

.iiko-production-place__change--negative {
    color: var(--text-error-color);
}

.iiko-production-place__summary .collapsible-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-hint-color);
    font-size: 25px;
    line-height: 16px;
}

.iiko-production-place__content.collapsible-content--open {
    max-height: 16000px;
}

.iiko-production-place__content .collapsible-content__inner {
    padding: 0;
}

.iiko-production-group {
    border-top: 1px solid var(--background-color);
    background: color-mix(in srgb, var(--background-color) 45%, transparent);
}

.iiko-production-group__header,
.iiko-production-dish {
    display: grid;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.iiko-production-group__header {
    width: 100%;
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.iiko-production-group__header:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -3px;
}

.iiko-production-group__header > div {
    min-width: 0;
}

.iiko-production-group__header strong,
.iiko-production-dish strong,
.iiko-production-dish span {
    color: var(--text-color);
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
}

.iiko-production-group__header > strong {
    white-space: nowrap;
}

.iiko-production-group__header .collapsible-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-hint-color);
}

.iiko-production-group__content.collapsible-content--open {
    max-height: 12000px;
}

.iiko-production-group__content .collapsible-content__inner {
    padding: 0;
}

.iiko-production-dish {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 42px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-top: 1px solid color-mix(in srgb, var(--background-color) 70%, transparent);
    background: var(--background-secondary-color);
}

.iiko-production-dish > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iiko-production-dish > span:nth-child(2) {
    color: var(--text-hint-color);
    white-space: nowrap;
}

@media (max-width: 360px) {
    .iiko-production-place__summary {
        grid-template-columns: minmax(0, 1fr) auto 18px;
    }

    .iiko-production-place__comparison {
        grid-column: 1;
        text-align: left;
    }

    .iiko-production-place__revenue {
        grid-column: 2;
        grid-row: 1;
    }

    .iiko-production-place__summary .collapsible-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

.iiko-menu-row {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--background-color);
}

.iiko-collapsible__content .collapsible-content__inner {
    padding: 0;
}

.iiko-collapsible__content.collapsible-content--open {
    max-height: 10000px;
}

.iiko-collapsible .store-table-empty {
    padding: 20px 14px;
}

.iiko-menu-row:last-child {
    border-bottom: 0;
}

.iiko-menu-row__main {
    min-width: 0;
    flex: 1;
}

.iiko-menu-row__label {
    overflow: hidden;
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iiko-menu-row__main span {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iiko-menu-row__value {
    flex: 0 0 auto;
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
}

.iiko-highlights-card {
    display: flex;
    flex-direction: column;
}

.iiko-highlight-row {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--background-color);
}

.iiko-highlight-row:last-child {
    border-bottom: 0;
}

.iiko-highlight-row__label,
.iiko-highlight-row__value {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
}

.iiko-highlight-row__main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.iiko-highlight-row .finance-metric__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
}

.iiko-highlight-row .finance-metric__icon svg {
    width: 21px;
    height: 21px;
}

.iiko-highlight-row__label {
    min-width: 0;
    color: var(--text-color);
}

.iiko-highlight-row__value {
    max-width: 52%;
    color: var(--text-hint-color);
    text-align: right;
}

.iiko-highlight-row__value--warning {
    color: #ff9f43;
}

.iiko-highlight-row__value--positive {
    color: var(--text-green-color);
}

.iiko-losses-card__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--background-color);
}

.iiko-losses-card__details > div {
    padding: 12px 14px;
    border-right: 1px solid var(--background-color);
}

.iiko-losses-card__details > div:last-child {
    border-right: 0;
}

.iiko-losses-card__details > div > div {
    margin-top: 3px;
    color: var(--text-color);
    font-size: 15px;
    line-height: 19px;
}

.iiko-speed-row {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--background-color);
}

.iiko-speed-row:last-child {
    border-bottom: 0;
}

.iiko-speed-row span,
.iiko-speed-row div {
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
}

.iiko-collapsible-subtitle {
    padding: 10px 14px 7px;
    border-top: 1px solid var(--background-color);
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 15px;
}

.iiko-speed-row div {
    flex: 0 0 auto;
    white-space: nowrap;
}

.iiko-food-cost-card__header,
.iiko-food-cost-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.iiko-food-cost-card__settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px -16px -16px;
    padding: 12px 16px;
    border-top: 1px solid var(--background-color);
}

.iiko-food-cost-card__settings > span {
    min-width: 0;
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 15px;
}

.iiko-food-cost-card__settings > button {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-color);
    font: inherit;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

.iiko-food-cost-modal__presets {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.iiko-food-cost-modal__preset {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--background-color);
    border-radius: 13px;
    background: var(--background-color);
    color: var(--text-color);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.iiko-food-cost-modal__preset--active {
    border-color: var(--button-color);
    background: color-mix(in srgb, var(--button-color) 9%, var(--background-color));
}

.iiko-food-cost-modal__preset > span {
    font-size: 14px;
    line-height: 18px;
}

.iiko-food-cost-modal__preset > small {
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
    text-align: right;
}

.iiko-food-cost-modal__range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.iiko-food-cost-modal__range label {
    display: grid;
    gap: 6px;
    color: var(--text-hint-color);
    font-size: 12px;
}

.iiko-food-cost-modal__range .input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border-radius: 12px;
    background: var(--background-color);
    text-align: center;
}

.iiko-food-cost-modal__note {
    margin-top: 14px;
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 15px;
}

.iiko-food-cost-modal__error {
    margin-top: 10px;
    color: var(--text-error-color);
    font-size: 12px;
    line-height: 16px;
}

.iiko-period-modal__section {
    min-width: 0;
    margin: 16px 0 0;
}

.iiko-period-modal__section-title {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 13px;
    line-height: 17px;
    font-weight: 400;
}

.iiko-period-modal__range {
    display: block;
}

.iiko-period-modal__range-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.iiko-period-modal__range-fields label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    color: var(--text-hint-color);
    font-size: 11px;
}

.iiko-period-modal__date-control {
    display: block;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    min-width: 0;
    height: 42px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--background-color);
}

.iiko-period-modal__date-control:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 1px;
}

.iiko-period-modal__date-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: var(--text-color);
    font-size: 13px;
    line-height: 17px;
    text-align: center;
    pointer-events: none;
}

.iiko-period-modal__range-fields .input {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: 0;
    cursor: pointer;
}

body.iiko-period-modal-is-open .content {
    overflow-y: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

body.iiko-period-modal-is-open .navigation-items {
    pointer-events: none;
}

.iiko-period-modal-overlay {
    overflow: hidden;
    overscroll-behavior: none;
}

.iiko-period-modal__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.iiko-period-modal__option {
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--background-color);
    color: var(--text-hint-color);
    font: inherit;
    font-size: 11px;
    line-height: 15px;
    cursor: pointer;
}

.iiko-period-modal__option--active {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.iiko-period-modal__option:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.iiko-period-modal__summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 13px;
    line-height: 17px;
}

.iiko-period-modal__summary small {
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 15px;
}

.iiko-period-modal__error {
    margin-top: 10px;
    color: var(--text-error-color);
    font-size: 12px;
    line-height: 16px;
}

.iiko-food-cost-card__percent {
    color: var(--text-color);
    font-size: 28px;
    line-height: 32px;
    font-weight: 400;
}

.iiko-food-cost-card__status {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--text-hint-color);
    background: color-mix(in srgb, var(--text-hint-color) 12%, transparent);
    font-size: 11px;
    line-height: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.iiko-food-cost-card__status--normal,
.iiko-food-cost-card__status--below {
    color: var(--text-green-color);
    background: color-mix(in srgb, var(--text-green-color) 13%, transparent);
}

.iiko-food-cost-card__status--above {
    color: var(--text-error-color);
    background: var(--background-error-color);
}

.iiko-food-cost-card__track {
    height: 6px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--background-color);
}

.iiko-food-cost-card__value {
    height: 100%;
    border-radius: inherit;
    background: var(--text-hint-color);
    transition: width 0.28s ease;
}

.iiko-food-cost-card__value--normal,
.iiko-food-cost-card__value--below {
    background: var(--text-green-color);
}

.iiko-food-cost-card__value--above {
    background: var(--text-error-color);
}

.iiko-food-cost-card__footer {
    margin-top: 10px;
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 15px;
}

.iiko-hourly-card {
    padding: 12px;
}

.iiko-hourly-chart {
    display: flex;
    gap: 4px;
    min-height: 184px;
}

.iiko-hourly-chart__axis {
    position: relative;
    flex: 0 0 40px;
    height: 156px;
    color: var(--text-hint-color);
    font-size: 9px;
    line-height: 12px;
    text-align: right;
    white-space: nowrap;
}

.iiko-hourly-chart--wide-axis .iiko-hourly-chart__axis {
    flex-basis: 48px;
    height: 148px;
    margin-top: 8px;
}

.iiko-hourly-chart__axis > span {
    position: absolute;
    right: 0;
    transform: translateY(-50%);
}

.iiko-hourly-chart__axis-label--top {
    transform: translateY(0);
}

.iiko-hourly-chart__axis-label--bottom {
    transform: translateY(-100%);
}

.iiko-hourly-chart__viewport {
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.iiko-hourly-chart__viewport::-webkit-scrollbar {
    display: none;
}

.iiko-hourly-chart__viewport:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.iiko-hourly-chart__plot {
    position: relative;
    width: max(100%, calc(var(--hour-count) * 38px));
    height: 184px;
}

.iiko-hourly-chart__grid {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 28px;
    pointer-events: none;
}

.iiko-hourly-chart--wide-axis .iiko-hourly-chart__grid {
    top: 8px;
}

.iiko-hourly-chart__grid span {
    position: absolute;
    right: 0;
    left: 0;
    border-top: 1px dashed color-mix(in srgb, var(--separator-color) 70%, transparent);
}

.iiko-hourly-chart__grid span:last-child {
    border-top-style: solid;
}

.iiko-hourly-chart__columns {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--hour-count), minmax(38px, 1fr));
    height: 184px;
}

.iiko-hourly-column {
    position: relative;
    display: grid;
    grid-template-rows: 156px 28px;
    min-width: 0;
    scroll-snap-align: center;
    text-align: center;
}

.iiko-hourly-chart--wide-axis .iiko-hourly-column {
    grid-template-rows: 148px 28px;
    padding-top: 8px;
}

.iiko-hourly-column__bar-slot {
    grid-row: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.iiko-hourly-column__bar-control {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
}

.iiko-hourly-column__bar-control:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.iiko-hourly-column__bar {
    width: min(20px, 66%);
    min-height: 5px;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, #9acd00 0%, #65a600 100%);
    transform-origin: bottom;
    animation: iikoBarGrow 0.3s ease-out;
}

.iiko-hourly-column__bar--peak {
    background: linear-gradient(180deg, #a8e000 0%, #72b800 100%);
}

.iiko-hourly-column__bubble {
    position: absolute;
    bottom: min(calc(var(--bar-height) + 8px), calc(100% - 28px));
    left: 50%;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--button-text-color);
    background: var(--button-color);
    box-shadow: 0 5px 14px color-mix(in srgb, #000 18%, transparent);
    font-size: 10px;
    line-height: 13px;
    font-weight: 400;
    white-space: nowrap;
    transform: translateX(-50%);
    animation: iikoBubbleIn 0.18s ease-out;
}

.iiko-hourly-column__bubble::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-top-color: var(--button-color);
    content: '';
    transform: translateX(-50%);
}

.iiko-hourly-column__label {
    grid-row: 2;
    align-self: start;
    justify-self: center;
    margin-top: 7px;
    padding: 0;
    overflow: hidden;
    color: var(--text-hint-color);
    font-size: 9px;
    line-height: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iiko-hourly-column__label--peak {
    margin-top: 4px;
    padding: 3px 5px;
    border-radius: 999px;
    color: #152000;
    background: #9acd00;
}

.iiko-hall-card,
.iiko-employees-card {
    display: flex;
    flex-direction: column;
}

.iiko-workforce-summary {
    padding: 12px 14px;
    border-bottom: 1px solid var(--background-color);
}

.iiko-workforce-summary > div {
    color: var(--text-color);
    font-size: 16px;
    line-height: 21px;
    font-weight: 400;
}

.iiko-workforce-summary > span {
    display: block;
    margin-top: 3px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 16px;
}

.iiko-hall-row,
.iiko-employee-row,
.iiko-operation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--background-color);
}

.iiko-hall-row:last-child,
.iiko-employee-row:last-child,
.iiko-operation-row:last-child {
    border-bottom: 0;
}

.iiko-hall-row > div:first-child,
.iiko-employee-row__main,
.iiko-operation-row__main {
    min-width: 0;
    flex: 1;
}

.iiko-employee-row__identity {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 10px;
}

.iiko-employee-row__avatar {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.iiko-employee-row__avatar svg {
    width: 18px;
    height: 18px;
}

.iiko-hall-row__label,
.iiko-hall-row span,
.iiko-employee-row__label,
.iiko-employee-row span,
.iiko-operation-row span {
    display: block;
}

.iiko-hall-row__label,
.iiko-employee-row__label,
.iiko-operation-row__label {
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
}

.iiko-hall-row span,
.iiko-employee-row span,
.iiko-operation-row span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--text-hint-color);
    font-size: 11px;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iiko-hall-row__value,
.iiko-employee-row__value,
.iiko-operation-row__amount {
    flex: 0 0 auto;
    color: var(--text-color);
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    white-space: nowrap;
}

.iiko-hall-row__value--muted {
    color: var(--text-hint-color);
}

.iiko-dangerous-card .store-table-empty {
    padding: 20px 14px;
    font-size: 12px;
    line-height: 16px;
}

.iiko-operation-row__amount {
    padding-top: 1px;
    color: var(--text-error-color);
}

.iiko-operation-row {
    align-items: flex-start;
}

.iiko-operation-row span {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.iiko-loading,
.iiko-error {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px;
    text-align: center;
}

.iiko-loading strong,
.iiko-error strong {
    color: var(--text-color);
    font-size: 15px;
}

.iiko-loading span,
.iiko-error span {
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 17px;
}

.iiko-error .button {
    width: 100%;
    margin-top: 8px;
}

@keyframes iikoBarGrow {
    from { transform: scaleY(0.08); opacity: 0.35; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes iikoBubbleIn {
    from { opacity: 0; transform: translate(-50%, 4px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 360px) {
    .iiko-food-cost-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .iiko-food-cost-card__settings {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iiko-hourly-column__bar,
    .iiko-hourly-column__bubble,
    .iiko-food-cost-card__value {
        animation: none;
        transition-duration: 0.01ms;
    }

    .iiko-food-cost-modal__preset {
        transition: none;
    }

    .iiko-period-modal__option {
        transition: none;
    }
}

.retail1c-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: sceneFadeIn 0.22s ease-out;
}

.retail1c-detail__header .header-description { padding: 0; }
.retail1c-detail__section { display: flex; flex-direction: column; gap: 20px; }
.retail1c-detail__section > .store-table-header { min-height: 20px; line-height: 20px; }
.retail1c-detail__section > .iiko-section-header { display: flex; align-items: center; }

.retail1c-detail__meta,
.retail1c-detail__caption {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    color: var(--text-hint-color);
    font-size: 12px;
    line-height: 1.4;
}

.retail1c-detail__meta .stores-row-marker { flex: 0 0 10px; }
.retail1c-detail__meta > span:nth-child(2) { min-width: 0; flex: 1; }
.retail1c-detail__meta .app-info-button { flex: 0 0 auto; }
.retail1c-detail__caption { margin-top: -10px; }

.retail1c-detail__turnover-card .store-finance-card__grid {
    grid-template-columns: minmax(0, 1fr);
}

.retail1c-detail__turnover-card .store-finance-card__cell {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--background-color);
}

.retail1c-detail__turnover-card .store-finance-card__cell:last-child {
    border-bottom: 0;
}

.retail1c-detail__turnover-card .finance-metric__value {
    font-size: clamp(17px, 5vw, 24px);
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.retail1c-detail__period,
.retail1c-detail__notice { padding: 16px; }

.retail1c-detail__notice {
    color: var(--text-hint-color);
    font-size: 14px;
    line-height: 1.4;
}

.retail1c-detail__notice .button { margin-top: 12px; }
.retail1c-detail__preview-group { display: flex; flex-direction: column; gap: 8px; }
.retail1c-detail__preview-subtitle { padding: 0 4px; color: var(--text-hint-color); font-size: 13px; line-height: 1.35; }
.retail1c-detail__preview-group .retail1c-detail__location strong { text-align: right; font-variant-numeric: tabular-nums; }
.retail1c-detail__period-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.retail1c-detail__period-fields label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--text-hint-color); font-size: 12px; }
.retail1c-detail__period-fields input { box-sizing: border-box; width: 100%; min-height: 44px; border: 1px solid color-mix(in srgb, var(--text-hint-color) 35%, transparent); border-radius: 10px; padding: 8px; background: var(--background-color); color: var(--text-color); font: inherit; }
.retail1c-detail__period .button,
.retail1c-detail__refresh { width: 100%; }

.retail1c-detail__stock-summary {
    padding: 12px 16px;
    border-bottom: 1px solid var(--background-color);
    color: var(--text-hint-color);
    font-size: 13px;
}

.retail1c-detail__location,
.retail1c-detail__document {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--background-color);
}

.retail1c-detail__location:last-child,
.retail1c-detail__document:last-child { border-bottom: 0; }
.retail1c-detail__location span { min-width: 0; overflow-wrap: anywhere; }
.retail1c-detail__location strong,
.retail1c-detail__document b { flex: 0 0 auto; font-weight: 600; }
.retail1c-detail__list { overflow: hidden; border-radius: 15px; background: var(--background-secondary-color); }
.retail1c-detail__document-main { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.retail1c-detail__document-main strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.retail1c-detail__document-main span { color: var(--text-hint-color); font-size: 12px; overflow-wrap: anywhere; }
.retail1c-detail__empty { padding: 16px; color: var(--text-hint-color); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
    .retail1c-detail { animation: none; }
}

.ticket-create-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(20px, var(--tma-content-safe-area-inset-top, 0px)) 16px max(20px, var(--tma-content-safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.18s ease-in-out;
}

.ticket-create-modal__card {
    position: relative;
    width: min(100%, 460px);
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 20px;
    background: var(--background-secondary-color);
    padding: 24px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.ticket-create-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-hint-color);
    font-size: 28px;
    cursor: pointer;
}

.ticket-create-modal__close:focus-visible {
    outline: 2px solid var(--accent-color);
}

.create--modal {
    padding-top: 28px;
}

.create--modal .input,
.create--modal .textarea,
.create--modal .store-table {
    background: var(--background-color);
    border: 1px solid color-mix(in srgb, var(--text-hint-color) 30%, transparent);
}

.create--modal .input:focus,
.create--modal .textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.create--modal .store-table-title {
    min-width: 0;
    overflow-wrap: anywhere;
}
:root {
    --background-color: #181818;
    --background-secondary-color: #282828;
    --background-transparent-color: #18181800;
    --background-error-color: #e93e3e22;

    --separator-color: #2f2f2f;

    --button-color: #0098EA;
    --button-second-color: rgba(74,151,231,0.1);
    --button-hover-color: #0098EA;
    --button-text-color: #ffffff;

    --icon-color: #aaa;

    --accent-color: #0098EA;

    --text-color: #ffffff;
    --text-green-color: #11a463;
    --text-error-color: #e93e3e;
    --text-hint-color: #aaa;

    --top-inset: 0px;
    --bottom-inset: 0px;
    --navigation-height: 68px;
    --navigation-padding-top: 8px;
    --navigation-padding-bottom: 14px;
    --navigation-scroll-gap: 20px;
    --navigation-bottom-space: calc(
        var(--navigation-height)
        + var(--navigation-padding-bottom)
        + var(--navigation-scroll-gap)
    );

    /* Канонические UI-токены: новые блоки не задают близкие значения вручную. */
    --space-1: 4px;
    --space-2: 6px;
    --space-3: 8px;
    --space-4: 10px;
    --space-5: 12px;
    --space-6: 14px;
    --space-7: 15px;
    --space-8: 20px;
    --space-9: 24px;
    --radius-control: 12px;
    --radius-card: 15px;
    --radius-icon: 14px;
    --radius-pill: 999px;
    --size-icon-sm: 18px;
    --size-icon-md: 24px;
    --size-avatar: 40px;
    --size-touch-target: 44px;
    --font-size-caption: 12px;
    --font-size-body: 15px;
    --font-size-section: 14px;
    --line-height-body: 1.35;
    --motion-fast: 160ms ease;
    --motion-standard: 280ms ease;
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateReverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes fadeIn {
    from {
        transform: scale(0.99);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes sceneFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.react-calendar {
    max-width: 100%;
    background: var(--background-secondary-color);
    line-height: 1.125em;
    border-radius: 15px;
    padding: 10px;
}

.react-calendar--doubleView {
    width: 700px;
}

.react-calendar--doubleView .react-calendar__viewContainer {
    display: flex;
    margin: -0.5em;
}

.react-calendar--doubleView .react-calendar__viewContainer > * {
    width: 50%;
    margin: 0.5em;
}

.react-calendar,
.react-calendar *,
.react-calendar *:before,
.react-calendar *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.react-calendar button {
    margin: 0;
    border: 0;
    outline: none;
    color: var(--text-color);
    border-radius: 12px;
    aspect-ratio: 1 / 1;
}

.react-calendar button:enabled:hover {
    cursor: pointer;
}

.react-calendar__navigation {
    display: flex;
    height: 44px;
    margin-bottom: 1em;
}

.react-calendar__navigation
.react-calendar__navigation__label {
    aspect-ratio: auto;
}

.react-calendar__navigation button {
    min-width: 44px;
    background: none;
}

.react-calendar__navigation button:disabled {
    color: var(--text-hint-color);
}

.react-calendar__navigation button:enabled:hover,
.react-calendar__navigation button:enabled:focus {
    background-color: var(--accent-color);
}

.react-calendar__month-view__weekdays {
    text-align: center;
    text-transform: uppercase;
    font: inherit;
    font-size: 0.75em;
    font-weight: bold;
}

.react-calendar__month-view__weekdays__weekday {
    padding: 0.5em;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.react-calendar__month-view__weekdays__weekday abbr {
    text-decoration: none;
}

.react-calendar__month-view__weekNumbers .react-calendar__tile {
    display: flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 0.75em;
    font-weight: bold;
}

.react-calendar__month-view__days__day--weekend {
    color: rgb(from var(--text-hint-color) r g b / 0.4);
}

.react-calendar__month-view__days__day--neighboringMonth,
.react-calendar__decade-view__years__year--neighboringDecade,
.react-calendar__century-view__decades__decade--neighboringCentury {
    color: rgb(from var(--text-hint-color) r g b / 0.4);
}

.react-calendar__year-view .react-calendar__tile,
.react-calendar__decade-view .react-calendar__tile,
.react-calendar__century-view .react-calendar__tile {
    padding: 2em 0.5em;
}

.react-calendar__tile {
    max-width: 100%;
    padding: 10px 6.6667px;
    background: none;
    text-align: center;
    font: inherit;
    font-size: 0.833em;
}

.react-calendar__tile:disabled {
    color: rgb(from var(--text-hint-color) r g b / 0.4);
}

/* .react-calendar__month-view__days__day--neighboringMonth:disabled,
.react-calendar__decade-view__years__year--neighboringDecade:disabled,
.react-calendar__century-view__decades__decade--neighboringCentury:disabled {
    color: #cdcdcd;
} */


.react-calendar__tile--now {
    background: rgb(from var(--text-hint-color) r g b / 0.2);
}

.react-calendar__tile--hasActive {
  background: var(--accent-color);
}

/* .react-calendar__tile--hasActive:enabled:hover,
.react-calendar__tile--hasActive:enabled:focus {
    background: #a9d4ff;
} */

.react-calendar__tile--active {
    background: var(--accent-color);
    color: #fff;
}

.react-calendar__tile--active:enabled:hover,
.react-calendar__tile--active:enabled:focus {
    background: var(--accent-color);
}

/* .react-calendar--selectRange .react-calendar__tile--hover {
    background-color: #e6e6e6;
} */
