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

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: 50%;
}

.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 {
    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 {
        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);
    color: var(--button-text-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;
}

/* Minimum row rhythm. Long text can grow the row without clipping. */
.ui-row--single { box-sizing: border-box; min-height: 52px; }
.ui-row--double,
.ui-row--double-icon { box-sizing: border-box; min-height: 64px; }
.ui-row--triple-icon { box-sizing: border-box; min-height: 88px; }

.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);
}

/* Shared Telegram-style overflow action, including its pressed state. */
.ui-more-button,
.ui-more-button:active,
.ui-more-button:focus {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-hint-color);
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.ui-more-button svg {
    width: 22px;
    height: 22px;
}

.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--actions { position: relative; padding-right: 56px; }
.stores-row--menu-open { z-index: 10; }
.stores-rows:has(.stores-row--actions) { overflow: visible; }

.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--info {
    background: var(--accent-color);
}

.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;
}

.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--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;
}

/* Pilot object layout; the company gate lives in the Store scene. */
.store--pilot .store-top--pilot {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px;
}
.store--pilot .store-top--pilot .store-image {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    margin: 0;
}
.store--pilot .store-top--pilot .store-image svg { width: 30px; height: 30px; }
.store--pilot .store-header { min-width: 0; align-items: stretch; gap: 3px; }
.store--pilot .store-header__title-row { display: block; padding: 0; }
.store--pilot .store-header__title { text-align: left; font-size: 20px; line-height: 1.2; }
.store--pilot .store-header .header-description { text-align: left; padding: 0; font-size: 13px; line-height: 1.35; }
.store--pilot .store-header__settings { margin-left: auto; }
.store--pilot .store-header__settings svg { width: 22px; height: 22px; }
.store--pilot > .filter { margin: 0; }
.store--pilot > .filter .filter-button { flex: 0 0 auto; cursor: pointer; }
.store--pilot > .filter .filter-button--disabled { color: var(--text-hint-color); opacity: .45; cursor: default; }
.store-pilot-finance { display: flex; flex-direction: column; gap: 20px; }
.store-content-loading { display: grid; min-height: min(46vh, 360px); place-items: center; }
.store-content-loading .preloader { width: 100%; height: 100%; }
.store-pilot-finance[hidden] { display: none; }
.store-loading-skeleton { display: flex; flex-direction: column; gap: 20px; padding-top: 20px; }
.store-loading-skeleton__heading { width: 42%; height: 20px; border-radius: 6px; background: var(--background-secondary-color); }
.store-loading-skeleton__card { height: 160px; border-radius: 15px; background: var(--background-secondary-color); }
.store-revenue-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.store-segmented-toggle { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 0 0 auto; box-sizing: border-box; padding: 2px; border-radius: 15px; }
.store-segmented-toggle::before { position: absolute; inset: 2px auto 2px 2px; width: calc((100% - 4px) / 2); border-radius: 15px; background: var(--accent-color); content: ''; transition: transform 180ms ease; }
.store-segmented-toggle[data-source="ofd"]::before, .store-segmented-toggle[data-metric="quantity"]::before { transform: translateX(100%); }
.store-segmented-toggle button { position: relative; z-index: 1; min-width: 0; min-height: 34px; padding: 0 2px; border: 0; border-radius: 15px; background: transparent; color: var(--text-hint-color); font: inherit; font-size: 12px; cursor: pointer; transition: color 180ms ease; }
.store-segmented-toggle button[aria-pressed="true"] { color: var(--button-text-color); }
.store-revenue-source__toggle { width: 104px; background: var(--background-secondary-color); }
.store-revenue-source__toggle button:disabled { opacity: .5; cursor: default; }
.store-segmented-toggle button:focus-visible, .store-header__settings:focus-visible, .store-settings-modal__action:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .store-segmented-toggle::before, .store-segmented-toggle button { transition: none; } }
.store-settings-modal__list { max-height: min(62dvh, 440px); margin: 16px 0; overflow-y: auto; scrollbar-width: none; }
.store-settings-modal__list::-webkit-scrollbar { display: none; }
.store-settings-modal__action { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; color: var(--text-color); text-align: left; font: inherit; }
.store-settings-modal__action svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--text-hint-color); }
.store-settings-modal__action:disabled { opacity: .45; }
.contracts-info-modal.store-settings-modal__backdrop { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: stretch; padding: 0; animation: fadeIn 180ms ease; }
.contracts-info-modal.store-settings-modal__backdrop > .contracts-info-modal__card { position: relative; box-sizing: border-box; flex: 0 0 100%; width: 100%; max-width: none; max-height: calc(100dvh - var(--contracts-modal-top-space) - 16px); margin: 0; padding: 30px 20px calc(20px + var(--contracts-modal-safe-bottom)); border-radius: 26px 26px 0 0; animation: store-settings-slide-up 260ms ease-out; }
.store-settings-modal__handle { position: absolute; inset: 0 0 auto; height: 30px; touch-action: none; cursor: grab; }
.store-settings-modal__handle::before { position: absolute; top: 9px; left: 50%; width: 36px; height: 4px; border-radius: 999px; background: var(--text-hint-color); opacity: .45; content: ''; transform: translateX(-50%); }
.store-settings-modal__backdrop .store-settings-modal { background: var(--background-color); transition: transform 180ms ease-out; box-shadow: 0 48px 0 0 var(--background-color); }
.store-settings-modal__backdrop .store-settings-modal--dragging { animation: none; transition: none; }
.store-settings-modal--dragging .store-settings-modal__handle { cursor: grabbing; }
.store-settings-modal__backdrop .contracts-info-modal__title { font-weight: 400; }
.object-settings { gap: 20px; }
.object-settings__header, .signal-settings__header { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-height: 32px; }
.object-settings__back, .signal-settings__back { position: absolute; left: -8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text-hint-color); }
.object-settings__back svg, .signal-settings__back svg { width: 20px; height: 20px; transform: rotate(180deg); }
.object-settings__content { display: flex; flex-direction: column; gap: 20px; min-height: 0; max-height: min(69dvh, 600px); overflow-y: auto; scrollbar-width: none; }
.object-settings__content::-webkit-scrollbar { display: none; }
.object-settings__section { display: grid; gap: 10px; }
.object-settings .ui-list, .signal-settings .ui-list { background: var(--background-secondary-color); }
.object-settings .ui-list-row, .signal-settings .ui-list-row { border-bottom-color: var(--separator-color); }
.object-settings__caption, .signal-settings__caption { padding: 0 10px; color: var(--text-hint-color); font-size: 12px; line-height: 18px; text-transform: uppercase; letter-spacing: .04em; }
.object-settings__row { box-sizing: border-box; width: 100%; min-height: 64px; padding: 10px 14px; border-left: 0; border-right: 0; border-top: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.object-settings .ui-list-row, .signal-settings .ui-list-row { background-color: var(--background-secondary-color); }
.object-settings__row:disabled { opacity: .45; cursor: default; }
.object-settings__row:focus-visible, .object-settings__back:focus-visible, .object-settings__choice:focus-within { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.object-settings__icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--radius-control); background: color-mix(in srgb, var(--accent-color) 12%, transparent); color: var(--accent-color); }
.object-settings__icon svg { width: 20px; height: 20px; }
.object-settings__text { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
.object-settings__text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.object-settings__text small { overflow: hidden; color: var(--text-hint-color); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.object-settings__chevron { flex: 0 0 18px; width: 18px; height: 18px; color: var(--text-hint-color); }
.object-settings__hint { margin: 0 4px; color: var(--text-hint-color); font-size: 13px; line-height: 1.45; }
.object-settings__choice { justify-content: space-between; min-height: 52px; cursor: pointer; }
.object-settings__choice-label { display: flex; align-items: center; gap: 15px; min-width: 0; }
.object-settings__form { padding: 16px; }
.object-settings__form .store-name-form { display: grid; }
.object-settings__form .profile-action-modal__input { box-sizing: border-box; width: 100%; }
.object-settings__form .button { width: 100%; margin-top: 16px; }
.object-settings__details .ui-list-row, .object-settings__restore-row { display: flex; align-items: center; gap: 15px; min-height: 68px; padding: 12px 14px; }
.object-settings__details .object-settings__text > span, .object-settings__restore-row .object-settings__text > span { white-space: normal; overflow-wrap: anywhere; }
.object-settings__details .object-settings__text small, .object-settings__restore-row .object-settings__text small { white-space: normal; }
.object-settings__restore-row .store-kkt-restore { flex: 0 0 44px; margin: -8px -8px -8px 0; }
.object-settings__empty { color: var(--text-hint-color); }
.object-settings__choice input { flex: 0 0 22px; margin: 0; accent-color: var(--accent-color); }
@keyframes store-settings-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .store-settings-modal__backdrop, .store-settings-modal__backdrop .contracts-info-modal__card { animation: none; } }

/* ===== 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: repeat(2, minmax(0, 1fr));
}

.store-finance-card__cell {
    min-width: 0;
    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 {
    min-width: 0;
    max-width: 100%;
    margin-top: 5px;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.fitted-number { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; font-variant-numeric: tabular-nums; }

.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;
    width: 100%;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.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; }
.retail1c-detail__section.store-shift-control { gap: 20px; }
.store-shift-control__heading { position: relative; display: flex; align-items: center; min-height: 24px; padding-right: 116px; }
.store-shift-control__heading > .store-shift-control__toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.store-shift-control__title { display: flex; align-items: center; min-width: 0; gap: 8px; margin: 0; }
.store-shift-control__title .app-info-button { flex: 0 0 20px; width: 20px; height: 20px; }
.store-shift-control__card { display: flex; flex-direction: column; gap: 20px; }
.store-shift-control__empty { border-radius: var(--radius-card); background: var(--background-secondary-color); padding: 20px 16px; color: var(--text-hint-color); font-size: 14px; }
.store-shift-detail { min-width: 0; border-radius: var(--radius-card); background: var(--background-secondary-color); }
.store-shift-detail__head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.store-shift-detail__toggle { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; gap: 12px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.store-shift-detail__arrow-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: -10px -12px -10px -8px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.store-shift-detail__icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; color: #30a4f5; background: color-mix(in srgb, #30a4f5 16%, transparent); }
.store-shift-detail__icon svg { width: 22px; height: 22px; }
.store-shift-detail__identity { display: grid; min-width: 0; gap: 3px; }
.store-shift-detail__identity strong { overflow: hidden; color: var(--text-color); font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.store-shift-detail__identity span, .store-shift-detail__time, .store-shift-detail__empty { color: var(--text-hint-color); font-size: 13px; }
.store-shift-detail__status-wrap { position: relative; flex: 0 0 auto; max-width: 45%; margin-left: auto; }
.store-shift-detail__status { display: block; width: 100%; padding: 5px 8px; border: 0; border-radius: 999px; color: var(--text-hint-color); background: var(--background-color); font: inherit; font-size: 12px; text-align: center; }
.store-shift-detail__status:not(:disabled) { cursor: pointer; }
.store-shift-detail__status:disabled { opacity: 1; }
.store-shift-detail__status--open { color: #34c759; background: color-mix(in srgb, #34c759 13%, transparent); }
.store-shift-detail__status--closed { color: var(--text-hint-color); }
.store-shift-detail__status--unknown { color: #ff9f43; background: color-mix(in srgb, #ff9f43 13%, transparent); }
.store-shift-detail__bubble { position: absolute; right: 0; bottom: calc(100% + 9px); 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; animation: storeShiftBubbleIn 0.18s ease-out; }
.store-shift-detail__bubble::after { position: absolute; top: 100%; right: 18px; width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--button-color); content: ''; }
@keyframes storeShiftBubbleIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .store-shift-detail__bubble { animation: none; } }
.store-shift-detail__sales { border-top: 1px solid var(--background-color); padding: 0 16px; }
.store-shift-detail__cashier { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 8px 0; }
.store-shift-detail__cashier + .store-shift-detail__cashier { border-top: 1px solid var(--background-color); }
.store-shift-detail__cashier-name { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.store-shift-detail__cashier-name small { color: var(--text-hint-color); font-size: 12px; }
.store-shift-detail__cashier strong { flex: 0 0 auto; font-weight: 600; white-space: nowrap; }
.store-shift-detail__empty { padding: 10px 0 16px; }
@media (max-width: 380px) { .store-shift-detail__head { flex-wrap: wrap; } .store-shift-detail__status-wrap { max-width: none; margin-left: 54px; } }

/* Pilot object screens use regular text throughout, including shared controls. */
.store--pilot :where(*) { font-weight: 400 !important; }

.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-alert-title,
.store-alert-link-row .store-alert-description {
    display: block;
}

.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__list > .action-dashboard__item { border-bottom: 1px solid var(--background-color); }

.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__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-metric-switch { width: 100%; margin: 2px 0 6px; background: var(--background-color); }
.store-top-metric-switch button { padding: 0 8px; white-space: nowrap; }

.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: flex-end;
    flex: 0 1 auto;
    min-width: 82px;
    max-width: 50%;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--accent-color);
    text-align: right;
    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 > :first-child{border-radius:0;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}

/* Pilot section headings share the equipment heading rhythm. */
.store--pilot .store-table-header { min-height: 24px; line-height: 24px; margin: 0; }

.organization-revenue-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; }
.organization-revenue-row + .organization-revenue-row { border-top: 1px solid var(--background-color); }
.organization-revenue-row > .organization-revenue-row__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; }
.organization-revenue-row__icon svg { width: 22px; height: 22px; }
.organization-revenue-row__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.organization-revenue-row__values { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; max-width: 48%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.organization-revenue-row__values > span { font-size: clamp(12px, 3.5vw, 16px); }
.organization-revenue-row__values small { font-size: 11px; }
.organization-revenue-row__negative { color: var(--text-error-color); }
.organization-revenue-row__positive { color: var(--text-green-color); }

/* Reorderable object sections keep the shared filter geometry. */
.store--pilot > .store-tab-strip .filter-button {
    border: 0;
    color: var(--text-color);
    font: inherit;
    font-weight: 400;
    line-height: inherit;
    min-height: 0;
    touch-action: none;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}
.store--pilot > .store-tab-strip .filter-button::before { content: ''; position: absolute; inset: -5px 0; }
.store-tab-strip__ghost {
    position: fixed;
    z-index: 10001;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    transform: scale(1.1);
    transform-origin: center;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.store-tab-strip__drop-slot {
    flex: 0 0 auto;
    box-sizing: border-box;
    pointer-events: none;
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    background: color-mix(in srgb, var(--accent-color) 8%, transparent);
}
@media (prefers-reduced-motion: reduce) {
    .store-tab-strip__ghost { transition: none; }
}
.store--pilot > .store-tab-strip.filter-smooth-left::before,
.store--pilot > .store-tab-strip.filter-smooth-right::after { pointer-events: none; }
/* ==================== 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: 64px;
    border-bottom: 1px solid var(--background-color);
    padding: 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--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: 64px;
    border: 0;
    padding: 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%;
    border: 0;
    border-top: 1px solid var(--background-color);
    padding: 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 ===== */

.store-contracts-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.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;
}

.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 :where(*) { font-weight: 400 !important; }

.retail1c-detail__period-label { padding: 0 5px; }
.retail1c-detail > .iiko-section-header,
.retail1c-detail__section > .iiko-section-header { display: flex; align-items: center; min-height: 24px; line-height: 24px; }
.retail1c-detail > .iiko-section-header .app-info-button,
.retail1c-detail__section > .iiko-section-header .app-info-button { flex: 0 0 20px; width: 20px; height: 20px; }
.retail1c-detail__section { display: flex; flex-direction: column; gap: 20px; }
.retail1c-detail__section > .store-table-header { min-height: 24px; line-height: 24px; }
.retail1c-detail__meta { min-height: 24px; line-height: 24px; }
.retail1c-detail__meta .app-info-button { flex-basis: 20px; width: 20px; height: 20px; }
.retail1c-detail > .filter { padding-bottom: 4px; }
.retail1c-detail > .filter .filter-items { box-sizing: border-box; min-height: 48px; padding: 3px 0 5px; }
.retail1c-detail--revenue-switch > .filter { padding-bottom: 0; }
.retail1c-detail--revenue-switch > .filter .filter-items { min-height: 0; padding: 0; }

.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__period-context,
.retail1c-dashboard__pending,
.retail1c-dashboard__availability { padding: 0 4px; color: var(--text-hint-color); font-size: 12px; line-height: 1.4; }

.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 var(--background-color); border-radius: 12px; padding: 8px; background: var(--background-color); color: var(--text-color); font: inherit; }
.retail1c-detail__period-fields input:focus { border-color: var(--accent-color); }
.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__document--button { width: 100%; border-top: 0; border-right: 0; border-left: 0; background: transparent; color: var(--text-color); font: inherit; text-align: left; }
.retail1c-detail__document--button { display: flex; min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.retail1c-detail__document--button .retail1c-detail__document-main { flex: 1 1 0; }
.retail1c-detail__document--button > svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--text-hint-color); }
.retail1c-detail__location > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.retail1c-detail__location .retail1c-detail__catalog-secondary { display: block; padding-top: 4px; }
.retail1c-detail__location strong,
.retail1c-detail__document b { flex: 0 0 auto; font-weight: 400; }
.retail1c-detail__document b { max-width: 38%; text-align: right; overflow-wrap: anywhere; }
.retail1c-detail__document-main,
.retail1c-detail__stock-product-main { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.retail1c-detail__document-main strong { font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.retail1c-detail__document-main span { color: var(--text-hint-color); font-size: 12px; overflow-wrap: anywhere; }
.retail1c-detail__stock-product { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--background-color); }
.retail1c-detail__stock-product:last-child { border-bottom: 0; }
.retail1c-detail__stock-product-main span { overflow-wrap: anywhere; }
.retail1c-detail__stock-product-main small { color: var(--text-hint-color); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.retail1c-detail__stock-product > strong { flex: 0 0 auto; text-align: right; }
.retail1c-detail__empty { padding: 16px; color: var(--text-hint-color); font-size: 13px; }
.retail1c-detail__catalog { padding: 14px 16px; }
.retail1c-detail__catalog label,
.retail1c-products__body label { display: block; margin-bottom: 8px; color: var(--text-hint-color); font-size: 13px; }
.retail1c-detail__catalog input,
.retail1c-products__body input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--background-color); border-radius: 12px; background: var(--background-color); color: var(--text-color); font: inherit; }
.retail1c-detail__catalog input:focus,
.retail1c-products__body input:focus { border-color: var(--accent-color); }
.retail1c-detail__search-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: start; gap: 8px; }
.retail1c-detail__search-row > input { min-width: 0; }
.retail1c-detail__camera-trigger { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--background-color); color: var(--icon-color); cursor: pointer; }
.retail1c-detail__camera-trigger:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.retail1c-detail__scanner-error { grid-column: 1 / -1; color: var(--text-hint-color); font-size: 12px; line-height: 1.4; }
.contracts-info-modal.retail1c-detail__scanner-modal { align-items: stretch; justify-content: stretch; height: 100vh; height: 100dvh; padding: 0; background: #000; }
.contracts-info-modal__card.retail1c-detail__scanner-card { box-sizing: border-box; width: 100%; max-width: none; height: 100%; min-height: 0; max-height: none; gap: 12px; padding: max(100px, calc(var(--contracts-modal-tma-top) + 40px)) 16px max(16px, var(--contracts-modal-safe-bottom), env(safe-area-inset-bottom)); border-radius: 0; background: #000; box-shadow: none; }
.retail1c-detail__scanner-card .contracts-info-modal__title { flex: 0 0 auto; padding: 8px 0; color: #fff; }
.retail1c-detail__scanner-card .contracts-info-modal__button { margin-top: 0; }
.retail1c-detail__scanner-status { position: absolute; z-index: 1; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 66px); align-self: center; margin: 0; padding: 8px 12px; border-radius: 999px; background: rgb(0 0 0 / 65%); color: #fff; font-size: 13px; line-height: 1.4; }
.retail1c-detail__camera { position: relative; flex: 1 1 auto; min-height: 0; margin: 0; overflow: hidden; border-radius: 14px; background: #000; }
.retail1c-detail__camera video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.retail1c-detail__camera-video--starting { opacity: 0; }
.retail1c-detail__catalog-item { padding: 12px 0; border-bottom: 1px solid var(--background-color); overflow-wrap: anywhere; }
.retail1c-detail__catalog-price { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; }
.retail1c-detail__catalog-price span:last-child { text-align: right; }
.retail1c-detail__catalog-stocks { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--background-color); }
.retail1c-detail__catalog-stock-heading { display: flex; align-items: center; width: 100%; min-height: 44px; gap: 10px; padding: 0; border: 0; background: transparent; color: var(--text-hint-color); font: inherit; font-size: 12px; line-height: 1.35; text-align: left; cursor: pointer; }
.retail1c-detail__catalog-stock-heading > span:first-child { flex: 1 1 auto; min-width: 0; }
.retail1c-detail__catalog-stock-value { flex: 0 0 auto; color: var(--text-color); text-align: right; }
.retail1c-detail__catalog-stock-heading:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.retail1c-detail__catalog-stocks .collapsible-content__inner { padding: 0 0 6px; }
.retail1c-detail__catalog-secondary { padding-top: 6px; color: var(--text-hint-color); font-size: 12px; }
.retail1c-detail__inventory-warning { margin: 12px 0; color: var(--text-hint-color); font-size: 13px; line-height: 1.4; }
.retail1c-detail__inventory-intro { margin: 0 0 12px; font-size: 13px; line-height: 1.45; }
.retail1c-detail__inventory-choice { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; gap: 10px; padding: 10px 0; }
.retail1c-detail__inventory-choice span { min-width: 0; overflow-wrap: break-word; font-size: 13px; line-height: 1.35; }
.retail1c-detail__inventory-choice .button { box-sizing: border-box; width: 56px; min-width: 56px; min-height: 44px; padding: 0; }
.retail1c-detail__inventory-rows { display: grid; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--background-color); }
.retail1c-detail__inventory-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--background-color); overflow-wrap: anywhere; }
.retail1c-detail__inventory-row small { display: block; padding-top: 4px; color: var(--text-hint-color); font-size: 12px; }
.retail1c-detail__inventory-row label { margin: 0; }
.retail1c-detail__inventory-row input { min-height: 44px; }
.retail1c-detail__inventory-remove { justify-self: start; padding: 6px 0; border: 0; background: none; color: var(--text-hint-color); font: inherit; }
.retail1c-detail__inventory-disclosure { border-radius: 15px; background: var(--background-secondary-color); }
.retail1c-detail__inventory-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 14px 16px; border: 0; background: none; color: var(--text-color); font: inherit; text-align: left; cursor: pointer; }
.retail1c-detail__inventory-toggle:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.retail1c-detail__inventory-disclosure .collapsible-content--open { max-height: 10000px; }
.retail1c-detail__inventory-draft { padding: 0 12px 12px; }
.retail1c-detail__inventory-draft .retail1c-detail__catalog { padding: 14px; border-radius: 12px; background: var(--background-color); }
.retail1c-detail__inventory-draft .retail1c-detail__catalog input,
.retail1c-detail__inventory-draft .retail1c-detail__camera-trigger { border-color: var(--background-secondary-color); background: var(--background-secondary-color); }

.retail1c-dashboard { display: flex; flex-direction: column; gap: 20px; }
.retail1c-dashboard__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 15px; background: var(--background-color); }
.retail1c-dashboard__receipt-metric { min-width: 0; background: var(--background-secondary-color); }
.retail1c-dashboard__receipt-metric .retail1c-dashboard__metric { height: 100%; box-sizing: border-box; background: transparent; }
.retail1c-dashboard__receipt-metric .retail1c-dashboard__value { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; overflow-wrap: normal; }
.retail1c-dashboard__receipt-trend { flex: 0 0 auto; color: var(--text-hint-color); font-size: 11px; }
.retail1c-dashboard__receipt-trend--negative { color: #f45656; }
.retail1c-dashboard__receipt-trend--positive { color: #31c765; }
.retail1c-dashboard__average-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.retail1c-dashboard__average-heading .iiko-section-header { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; }
.retail1c-dashboard__metric { display: flex; min-width: 0; min-height: 102px; flex-direction: column; justify-content: center; gap: 6px; padding: 14px; background: var(--background-secondary-color); }
.retail1c-dashboard__metric--icon { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.retail1c-dashboard__grid--summary .retail1c-dashboard__metric { min-height: 0; gap: 8px; padding: 14px 10px; }
.retail1c-dashboard__grid--summary .retail1c-dashboard__metric--wide { min-height: 0; padding: 16px 14px; }
.retail1c-dashboard__grid--summary .retail1c-dashboard__metric:not(.retail1c-dashboard__metric--wide) .retail1c-dashboard__label { font-size: 12px; }
.retail1c-dashboard__grid--summary .retail1c-dashboard__metric:not(.retail1c-dashboard__metric--wide) .retail1c-dashboard__value { font-size: clamp(16px, 4.5vw, 21px); }
.retail1c-dashboard__grid--single .retail1c-dashboard__metric--wide { min-height: 0; }
.retail1c-dashboard__grid--purchases .retail1c-dashboard__value { font-size: clamp(13px, 4vw, 16px); letter-spacing: -0.25px; white-space: nowrap; }
.retail1c-dashboard__metric-copy { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.retail1c-dashboard__metric-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.retail1c-dashboard__metric-icon svg { width: 22px; height: 22px; }
.retail1c-dashboard__metric-icon--green { color: #31c765; background: rgba(49, 199, 101, 0.13); }
.retail1c-dashboard__metric-icon--orange { color: #ff9800; background: rgba(255, 152, 0, 0.13); }
.retail1c-dashboard__metric-icon--purple { color: #b969ea; background: rgba(185, 105, 234, 0.13); }
.retail1c-dashboard__metric-icon--blue { color: #268dff; background: rgba(38, 141, 255, 0.13); }
.retail1c-dashboard__metric--wide { grid-column: 1 / -1; min-height: 112px; }
.retail1c-dashboard__label { color: var(--text-hint-color); font-size: 13px; line-height: 1.3; }
.retail1c-dashboard__value { color: var(--text-color); font-size: clamp(18px, 5vw, 26px); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.retail1c-dashboard__metric--wide .retail1c-dashboard__value { font-size: clamp(26px, 8vw, 38px); }
.retail1c-dashboard__note { color: var(--text-hint-color); font-size: 11px; line-height: 1.35; }
.retail1c-dashboard__compare { color: var(--text-hint-color); font-size: 11px; line-height: 1.25; }
.retail1c-dashboard__insights-card { overflow: hidden; }
.retail1c-dashboard__insights { border-top: 1px solid var(--background-color); border-radius: 0; background: transparent; }
.retail1c-dashboard__insights-heading > .ui-icon-button { flex: 0 0 44px; cursor: pointer; }
.retail1c-dashboard__signal-summary { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--background-color); }
.retail1c-dashboard__signal-summary .store-alert-title,
.retail1c-dashboard__signal-summary .store-alert-description { display: block; }
.retail1c-dashboard__settings-modal { gap: 16px; }
.retail1c-dashboard__settings-hint { margin: 0; color: var(--text-hint-color); font-size: 13px; line-height: 1.4; }
.retail1c-dashboard__days-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.retail1c-dashboard__days-setting > span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.retail1c-dashboard__days-setting input { box-sizing: border-box; width: 60px; min-height: 44px; padding: 4px 7px; border: 1px solid var(--text-hint-color); border-radius: 12px; background: var(--background-color); color: var(--text-color); font: inherit; text-align: center; }
.retail1c-dashboard__settings-list { overflow-y: auto; min-height: 0; scrollbar-width: none; }
.retail1c-dashboard__settings-list::-webkit-scrollbar { display: none; }
.retail1c-dashboard__settings-row { justify-content: space-between; cursor: pointer; }
.signal-settings { gap: 16px; }
.signal-settings__intro, .signal-settings__note { margin: 0; color: var(--text-hint-color); font-size: 13px; line-height: 1.45; }
.signal-settings__note { padding: 12px 14px; border-radius: var(--radius-control); background: var(--background-secondary-color); }
.signal-settings__groups { display: grid; gap: 16px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.signal-settings__groups::-webkit-scrollbar { display: none; }
.signal-settings__group { display: grid; gap: 8px; }
.signal-settings__item { box-sizing: border-box; width: 100%; min-height: 60px; padding: 10px 14px; border-left: 0; border-right: 0; border-top: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.signal-settings__item > svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--text-hint-color); }
.signal-settings__item-text { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
.signal-settings__item-text small { overflow: hidden; color: var(--text-hint-color); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.signal-settings__dot { flex: 0 0 9px; width: 9px; height: 9px; border: 1px solid var(--text-hint-color); border-radius: 50%; }
.signal-settings__dot--on { border-color: var(--accent-color); background: var(--accent-color); }
.signal-settings__period, .signal-settings__switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: 14px; }
.signal-settings__switch-row { border-radius: var(--radius-card); background: var(--background-secondary-color); padding: 10px 14px; }
.signal-settings__switch-row input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; }
.signal-settings__value { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--separator-color); border-radius: var(--radius-control); background: var(--background-secondary-color); }
.signal-settings__value input { width: 62px; min-height: 28px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text-color); font: inherit; text-align: right; }
.signal-settings__period .signal-settings__value input { width: 2ch; }
.signal-settings__value input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.signal-settings__value input[type=number]::-webkit-inner-spin-button, .signal-settings__value input[type=number]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.signal-settings__value input:focus-visible { outline: 2px solid var(--accent-color); }
.signal-settings__fields { min-height: 0; overflow-y: auto; }
.signal-settings__field { justify-content: space-between; min-height: 56px; font-size: 14px; }
.signal-settings__field > span:first-child { min-width: 0; }
.signal-settings__field .signal-settings__value { min-width: 70px; justify-content: flex-end; }
.signal-settings__item:focus-visible, .signal-settings__back:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.retail1c-dashboard__settings-row > span { min-width: 0; }
.retail1c-dashboard__settings-check { flex: 0 0 22px; margin: 0; }
.retail1c-dashboard__settings-check:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }
.retail1c-dashboard__period-note { margin: -12px 4px 0; color: var(--text-hint-color); font-size: 12px; line-height: 1.4; }
.retail1c-dashboard__muted { color: var(--text-hint-color); font-size: 12px; line-height: 1.4; }
.retail1c-dashboard__signal-detail { padding: 8px 12px 12px; color: var(--text-hint-color); font-size: 12px; line-height: 1.4; }
.retail1c-dashboard .stores-rows > .retail1c-detail__inventory-disclosure.stores-row { display: block; padding: 0; border-radius: 0; background: transparent; }
.retail1c-dashboard__insights .retail1c-detail__inventory-toggle { min-height: 52px; }
.retail1c-dashboard__insights > .retail1c-dashboard__muted { padding: 14px 16px; }
.retail1c-dashboard__disclosure-title { display: flex; min-width: 0; align-items: center; gap: 10px; }
.retail1c-dashboard__disclosure-title > span:last-child { min-width: 0; overflow: hidden; white-space: nowrap; }
.retail1c-dashboard__signal-toggle { font-size: clamp(11px, 3.1vw, 13px); }
.retail1c-dashboard__disclosure-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.retail1c-dashboard__top-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--background-color); }
.retail1c-dashboard__top-row:first-child { border-top: 0; }
.retail1c-dashboard__rank { color: var(--text-hint-color); font-size: 12px; }
.retail1c-dashboard__top-name { min-width: 0; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.retail1c-dashboard__top-name small { display: block; margin-top: 3px; color: var(--text-hint-color); font-size: 11px; }
.retail1c-dashboard__top-value { max-width: 110px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.retail1c-dashboard__future-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 11px 16px; border-top: 1px solid var(--background-color); font-size: 13px; }
.retail1c-dashboard__future-row:first-child { border-top: 0; }
.retail1c-dashboard__future-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.retail1c-dashboard__future-row small { display: block; margin-top: 3px; color: var(--text-hint-color); font-size: 11px; line-height: 1.3; }
.retail1c-dashboard__future-row > span:last-child { color: var(--text-hint-color); }
.retail1c-dashboard__unavailable-note { margin: -10px 4px 0; color: var(--text-hint-color); font-size: 12px; line-height: 1.4; }
.retail1c-dashboard__price-wait { color: var(--text-hint-color); font-size: 13px; line-height: 1.45; }
.retail1c-dashboard__disclosure-count { margin-left: 8px; color: var(--text-hint-color); font-size: 12px; }
.retail1c-dashboard__receipt-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; }
.retail1c-dashboard__receipt-meta { display: block; min-width: 0; }
.retail1c-dashboard__receipt-meta small { display: block; margin-top: 3px; color: var(--text-hint-color); font-size: 11px; line-height: 1.3; }
.retail1c-dashboard__receipt-total { color: var(--text-color); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.retail1c-dashboard .collapsible-content--open { max-height: 3000px; }
.retail1c-dashboard .collapsible-content__inner { display: grid; gap: 0; padding: 0; }
.retail1c-dashboard .store-top-products__list .collapsible-content__inner { display: block; padding: 6px 10px 10px; }
.retail1c-detail .store-top-products__item-title,
.retail1c-detail .store-top-products__item-total { font-weight: 500; }
.retail1c-dashboard__product-list { display: grid; width: 100%; }
.retail1c-dashboard__product-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-top: 1px solid var(--background-color); font-size: 13px; }
.retail1c-dashboard__product-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.retail1c-dashboard__product-row > span:last-child { max-width: 125px; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.retail1c-dashboard__product-row small { display: block; margin-top: 3px; color: var(--text-hint-color); font-size: 11px; line-height: 1.3; }
.retail1c-dashboard__product-row[role="button"] { cursor: pointer; }
.retail1c-dashboard__product-row[role="button"]:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.retail1c-dashboard__list-limit { padding: 10px 16px; color: var(--text-hint-color); font-size: 11px; }
.retail1c-dashboard__list-more { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 16px; border: 0; background: transparent; color: var(--button-color); font: inherit; font-size: 13px; text-align: center; cursor: pointer; }
.retail1c-dashboard__list-more:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.retail1c-dashboard .retail1c-detail__location { align-items: flex-start; }
.retail1c-dashboard .retail1c-detail__location strong { max-width: 38%; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (max-width: 360px) {
    .retail1c-dashboard__metric { padding: 12px; }
    .retail1c-dashboard__grid--summary .retail1c-dashboard__metric:not(.retail1c-dashboard__metric--wide) { gap: 6px; padding: 12px 8px; }
    .retail1c-dashboard__grid--summary .retail1c-dashboard__metric:not(.retail1c-dashboard__metric--wide) .retail1c-dashboard__label { font-size: 11px; }
    .retail1c-dashboard__grid--purchases { grid-template-columns: minmax(0, 1fr); }
    .retail1c-dashboard__top-value { max-width: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    .retail1c-detail { animation: none; }
}

/* Retail 2.3 warehouse workspace */
.retail1c-detail__period-help { margin-top: -10px; }
.retail1c-warehouses__list { overflow: visible; }
.retail1c-warehouses__row { position: relative; display: flex; min-height: 66px; align-items: stretch; border-bottom: 1px solid var(--background-color); }
.retail1c-warehouses__row:last-child { border-bottom: 0; }
.retail1c-warehouses__select { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; padding: 10px 54px 10px 14px; color: var(--text-color); }
.retail1c-warehouses__icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent-color) 15%, var(--background-secondary-color)); color: var(--accent-color); }
.retail1c-warehouses__icon svg { width: 22px; height: 22px; }
.retail1c-warehouses__main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.retail1c-warehouses__main > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retail1c-warehouses__main small, .retail1c-warehouses__count small, .retail1c-warehouses__archived-name small { display: block; color: var(--text-hint-color); font-size: 12px; font-weight: 400; }
.retail1c-warehouses__count { flex: 0 0 auto; align-self: center; text-align: right; white-space: nowrap; }
.retail1c-warehouses__count .retail1c-warehouses__negative { color: #ef5350; }
.retail1c-warehouses__row .ui-row-actions { z-index: 3; }
.retail1c-warehouses__archived-name { flex: 1; min-width: 0; align-self: center; padding: 10px 14px; }
.retail1c-products__search { padding: 14px 16px 0; }
.retail1c-products__caption { padding: 12px 16px 4px; color: var(--text-hint-color); font-size: 12px; }
.retail1c-products__row { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--background-color); background: transparent; color: var(--text-color); font: inherit; text-align: left; }
.retail1c-products__row:last-child { border-bottom: 0; }
.retail1c-products__row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.retail1c-products__row small { display: block; color: var(--text-hint-color); font-size: 12px; }
.retail1c-products__row > span:last-child { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; white-space: nowrap; }
.retail1c-products__row svg { width: 16px; height: 16px; color: var(--text-hint-color); }
.contracts-info-modal__card.retail1c-product-sheet { max-height: min(78dvh, 720px); }
.retail1c-product-sheet__content { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.retail1c-product-sheet__content::-webkit-scrollbar { display: none; }
.retail1c-product-sheet__stock-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.retail1c-product-sheet__stock-heading .retail1c-product-sheet__section-title { margin: 0; }
.retail1c-product-sheet__title { color: var(--text-color); font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.retail1c-product-sheet__availability { flex: 0 0 auto; max-width: 65%; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, #34c759 15%, var(--background-secondary-color)); color: #34c759; font-size: 12px; text-align: center; }
.retail1c-product-sheet__availability--empty { background: color-mix(in srgb, #ef5350 15%, var(--background-secondary-color)); color: #ef5350; }
.retail1c-product-sheet__availability--unknown { background: var(--background-color); color: var(--text-hint-color); }
.retail1c-product-sheet__muted { padding: 6px 0; color: var(--text-hint-color); font-size: 13px; }
.retail1c-product-sheet__section-title { margin-top: 20px; margin-bottom: 8px; color: var(--text-hint-color); font-size: 13px; }
.retail1c-product-sheet__barcode { box-sizing: border-box; width: calc(100% - 20px); margin: 10px 10px 12px; padding: 16px 18px 12px; border-radius: 12px; background: #fff; color: #111; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; box-shadow: 0 2px 10px #0002; }
.retail1c-product-sheet__barcode-bars { display: block; width: 100%; height: 44px; margin-bottom: 8px; fill: #111; }
.retail1c-product-sheet__barcode span { font-size: 18px; letter-spacing: .14em; }
.retail1c-product-sheet__barcode--long span { font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
.retail1c-product-sheet__data-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--background-color); }
.retail1c-product-sheet__data-row--button { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; width: 100%; border-top: 0; border-right: 0; border-left: 0; background: transparent; color: var(--text-color); font: inherit; text-align: left; cursor: pointer; }
.retail1c-product-sheet__data-row--button:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.retail1c-product-sheet__data-row--button svg { width: 14px; height: 14px; color: var(--text-hint-color); vertical-align: middle; }
.retail1c-product-sheet__data-row > span:first-child { min-width: 0; }
.retail1c-product-sheet__data-row > span:last-child { flex: 0 0 auto; white-space: nowrap; }
.retail1c-product-sheet__data-row small { display: block; color: var(--text-hint-color); font-size: 12px; }
.retail1c-product-sheet__recommendation { margin-top: 20px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent-color) 12%, var(--background-secondary-color)); }
.retail1c-product-sheet__recommendation span { display: block; margin-top: 6px; color: var(--text-hint-color); font-size: 12px; }
.retail1c-product-sheet__total { margin-top: 8px; border-bottom: 0; }
.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;
} */
