:root {
    --brand-coral: #ea7777;
    --brand-coral-strong: #e45f67;
    --brand-cream: #fbf4eb;
    --brand-cream-deep: #f2e8dd;
    --brand-rose: #d79b9d;
    --brand-caramel: #cf7f59;
    --brand-cocoa: #7e4f43;
    color-scheme: light;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background: var(--brand-cream);
    color: var(--brand-cocoa);
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(234, 119, 119, 0.18), transparent 22%),
        radial-gradient(circle at bottom right, rgba(215, 155, 157, 0.16), transparent 26%),
        linear-gradient(180deg, #fffaf5 0%, var(--brand-cream-deep) 100%);
}

body {
    color: var(--brand-cocoa);
}

#app {
    min-height: 100vh;
}

.app-loading-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;
    padding: 2rem;
}

.app-loading-shell__logo {
    width: min(220px, 60vw);
    filter: drop-shadow(0 16px 28px rgba(126, 79, 67, 0.18));
}

.shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
}

.shell__sidebar {
    background: linear-gradient(180deg, var(--brand-coral) 0%, var(--brand-coral-strong) 100%);
    color: #fff7f0;
    padding: 2rem 1.5rem;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.12);
}

.shell__content {
    padding: 2.25rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-nav__brand {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(251, 244, 235, 0.14);
    backdrop-filter: blur(8px);
}

.admin-nav__logo {
    display: block;
    width: 168px;
    max-width: 100%;
    margin: 0 auto 0.75rem;
    filter: drop-shadow(0 10px 18px rgba(126, 79, 67, 0.22));
}

.admin-nav__eyebrow,
.page-header__eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    opacity: 0.8;
}

.icon {
    display: inline-block;
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
}

.icon--sm {
    width: 0.95rem;
    height: 0.95rem;
}

.icon--nav {
    width: 1.1rem;
    height: 1.1rem;
}

.nav-link__content,
.button__content {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-link__content {
    width: 100%;
}
.admin-nav strong {
    display: block;
    font-size: 1.35rem;
    text-align: center;
}

.admin-nav a {
    color: inherit;
    text-decoration: none;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: background-color 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.admin-nav a:hover {
    transform: translateX(2px);
    background: rgba(255, 247, 240, 0.12);
}

.admin-nav a.active {
    background: rgba(255, 247, 240, 0.18);
    border-color: rgba(255, 247, 240, 0.25);
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin: 0.3rem 0 0.45rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--brand-coral-strong);
}

.page-header p {
    margin: 0;
    max-width: 44rem;
    color: color-mix(in srgb, var(--brand-cocoa) 78%, white 22%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card,
.data-table,
.panel {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(215, 155, 157, 0.24);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(126, 79, 67, 0.08);
}

.stat-card {
    padding: 1.25rem;
}

.stat-card span {
    color: var(--brand-rose);
}

.stat-card strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 2rem;
    color: var(--brand-coral-strong);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(215, 155, 157, 0.18);
    text-align: left;
    vertical-align: top;
}

.data-table thead {
    background: rgba(251, 244, 235, 0.95);
}

.data-table th {
    color: var(--brand-coral-strong);
}

.text-right {
    text-align: right !important;
}

.loading-progress {
    width: 104px;
    height: 104px;
    overflow: visible;
}

.loading-progress circle {
    fill: none;
    stroke-width: 10;
    transform-origin: 60px 60px;
}

.loading-progress circle:first-child {
    stroke: rgba(215, 155, 157, 0.35);
}

.loading-progress circle:last-child {
    stroke: var(--brand-coral);
    stroke-linecap: round;
    stroke-dasharray: 180 96;
    animation: loading-rotate 1.15s linear infinite;
}

.loading-progress-text {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-coral-strong);
}

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 243, 240, 0.96);
    color: var(--brand-cocoa);
    border: 1px solid rgba(184, 78, 88, 0.2);
    box-shadow: 0 18px 42px rgba(126, 79, 67, 0.18);
}

#blazor-error-ui .reload {
    color: var(--brand-coral-strong);
    font-weight: 700;
}

#blazor-error-ui .dismiss {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

@keyframes loading-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .shell__content {
        padding: 1.5rem;
    }

    .management-grid {
        grid-template-columns: 1fr;
    }
}

.admin-nav__session {
    margin: 0.5rem 0 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 247, 240, 0.12);
}

.admin-nav__session strong {
    display: block;
    margin: 0.25rem 0;
    text-align: left;
    font-size: 1rem;
}

.admin-nav__action,
.auth-form__submit,
.button {
    appearance: none;
    border: 0;
    border-radius: 16px;
    background: var(--brand-cocoa);
    color: #fffaf5;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font: inherit;
    padding: 0.9rem 1rem;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.admin-nav__action:hover,
.auth-form__submit:hover,
.button:hover {
    transform: translateY(-1px);
    background: #694138;
}

.admin-nav__action {
    margin-top: 0.25rem;
    justify-content: flex-start;
    text-align: left;
}

.button:disabled,
.admin-nav__action:disabled,
.auth-form__submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.button--secondary {
    background: rgba(126, 79, 67, 0.1);
    color: var(--brand-cocoa);
    border: 1px solid rgba(126, 79, 67, 0.18);
}

.button--secondary:hover {
    background: rgba(126, 79, 67, 0.18);
}

.button--danger {
    background: #b84e58;
}

.button--danger:hover {
    background: #a3434d;
}

.auth-shell {
    display: grid;
    min-height: calc(100vh - 4.5rem);
    place-items: center;
}

.auth-card {
    width: min(100%, 460px);
    padding: 2rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(215, 155, 157, 0.24);
    box-shadow: 0 18px 48px rgba(126, 79, 67, 0.12);
}

.auth-card__logo {
    display: block;
    width: 168px;
    max-width: 100%;
    margin: 0 auto 1rem;
}

.auth-card h1 {
    margin: 0.35rem 0 0.5rem;
    color: var(--brand-coral-strong);
}

.auth-card p {
    margin-top: 0;
}

.auth-card__hint {
    margin: 1rem 0 0;
    font-size: 0.92rem;
    color: var(--brand-rose);
}

.auth-form__field {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.auth-form__field label,
.field label {
    font-weight: 600;
}

.auth-form__field input,
.field input,
.field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(215, 155, 157, 0.4);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fffdf9;
    color: var(--brand-cocoa);
    font: inherit;
}

.field textarea {
    min-height: 132px;
    resize: vertical;
}

.auth-form__error,
.inline-message--error {
    margin: 0 0 1rem;
    color: #9a3f4a;
    font-weight: 600;
}

.inline-message--success {
    margin: 0 0 1rem;
    color: #4f6c37;
    font-weight: 600;
}

.validation-message,
.validation-errors {
    color: #9a3f4a;
}

.admin-nav__note {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 247, 240, 0.12);
    color: #fff7f0;
}

.access-denied {
    display: grid;
    min-height: calc(100vh - 4.5rem);
    place-items: center;
}

.access-denied__card {
    width: min(100%, 460px);
    padding: 2rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(215, 155, 157, 0.24);
    box-shadow: 0 18px 48px rgba(126, 79, 67, 0.12);
}

.management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}

.panel {
    padding: 1.25rem;
}

.panel--form {
    position: sticky;
    top: 1.5rem;
}

.panel__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.panel__header h2 {
    margin: 0.2rem 0 0.35rem;
    color: var(--brand-coral-strong);
}

.panel__header p {
    margin: 0;
    color: color-mix(in srgb, var(--brand-cocoa) 78%, white 22%);
}

.panel__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field--full {
    grid-column: 1 / -1;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.checkbox-row--surface {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(251, 244, 235, 0.75);
    border: 1px solid rgba(215, 155, 157, 0.24);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.status-pill--active {
    background: rgba(79, 108, 55, 0.14);
    color: #4f6c37;
}

.status-pill--inactive {
    background: rgba(154, 63, 74, 0.12);
    color: #9a3f4a;
}

.table-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.field__hint {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    color: color-mix(in srgb, var(--brand-cocoa) 74%, white 26%);
}

.culture-selector {
    display: grid;
    gap: 0.35rem;
}

.culture-selector__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.82;
}

.culture-selector__select {
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 247, 240, 0.35);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    font: inherit;
    background: rgba(255, 247, 240, 0.14);
    color: inherit;
}

.auth-card .culture-selector__select {
    border-color: rgba(215, 155, 157, 0.4);
    background: #fffdf9;
    color: var(--brand-cocoa);
}

.page-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.panel__table-wrap {
    overflow-x: auto;
}

.product-editor-panel {
    max-width: 820px;
}


.product-thumb {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(215, 155, 157, 0.28);
    background: #fffdf9;
}

.product-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    min-height: 64px;
    color: color-mix(in srgb, var(--brand-cocoa) 72%, white 28%);
}


.management-grid--balanced {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
}



.category-name-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.category-name-cell__icon,
.category-icon-option__preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(251, 244, 235, 0.95);
    color: var(--brand-coral-strong);
    border: 1px solid rgba(215, 155, 157, 0.24);
}

.category-name-cell__icon {
    width: 2.35rem;
    height: 2.35rem;
}

.category-icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 0.65rem;
}

.category-icon-option {
    appearance: none;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.4rem;
    min-height: 84px;
    padding: 0.65rem 0.4rem 0.55rem;
    border-radius: 14px;
    border: 1px solid rgba(215, 155, 157, 0.24);
    background: rgba(255, 255, 255, 0.82);
    color: var(--brand-cocoa);
    cursor: pointer;
    font: inherit;
    transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.category-icon-option:hover {
    transform: translateY(-1px);
    border-color: rgba(228, 95, 103, 0.48);
}

.category-icon-option--selected {
    background: rgba(234, 119, 119, 0.12);
    border-color: rgba(228, 95, 103, 0.58);
    color: var(--brand-coral-strong);
}

.category-icon-option--selected .category-icon-option__preview {
    background: var(--brand-coral-strong);
    color: #fff7f0;
    border-color: transparent;
}

.category-icon-option__preview {
    width: 2.2rem;
    height: 2.2rem;
}

.category-icon-option__name {
    display: block;
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    text-wrap: balance;
    max-width: 7rem;
}

/* ── Kanban board ── */
.kanban {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 1rem;
    align-items: start;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban__col {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(215, 155, 157, 0.2);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.kanban__col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem 0.6rem;
    border-bottom: 1px solid rgba(215, 155, 157, 0.15);
}

.kanban__col-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--brand-cocoa);
}

.kanban__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(234, 119, 119, 0.14);
    color: var(--brand-coral-strong);
}

.kanban__col-body {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.kanban__empty {
    text-align: center;
    color: var(--brand-rose);
    font-size: 0.9rem;
    padding: 1.5rem 0.5rem;
    margin: 0;
}

.kanban__card {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(215, 155, 157, 0.2);
    box-shadow: 0 4px 14px rgba(126, 79, 67, 0.06);
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.kanban__card:hover {
    transform: translateY(-2px);
    border-color: rgba(228, 95, 103, 0.4);
    box-shadow: 0 8px 22px rgba(126, 79, 67, 0.12);
}

.kanban__card--active {
    border-color: var(--brand-coral-strong);
    box-shadow: 0 0 0 2px rgba(228, 95, 103, 0.25), 0 8px 22px rgba(126, 79, 67, 0.12);
}

.kanban__card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
}

.kanban__card-top strong {
    font-size: 0.95rem;
    color: var(--brand-cocoa);
}

.kanban__card-time {
    font-size: 0.78rem;
    color: var(--brand-rose);
}

.kanban__card-customer {
    display: block;
    font-size: 0.88rem;
    color: color-mix(in srgb, var(--brand-cocoa) 78%, white 22%);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kanban__card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.kanban__card-total {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--brand-coral-strong);
}

.kanban__card-status-time {
    font-size: 0.75rem;
    color: var(--brand-rose);
}

/* Column accent strips */
.kanban__col--pending .kanban__col-header { border-bottom-color: #8e8e93; }
.kanban__col--pending .kanban__count { background: rgba(142, 142, 147, 0.16); color: #6b6b70; }
.kanban__col--preparing .kanban__col-header { border-bottom-color: #d6a22f; }
.kanban__col--preparing .kanban__count { background: rgba(214, 162, 47, 0.16); color: #a67d1e; }
.kanban__col--ready .kanban__col-header { border-bottom-color: #e68a2e; }
.kanban__col--ready .kanban__count { background: rgba(230, 138, 46, 0.16); color: #b86b1e; }
.kanban__col--delivery .kanban__col-header { border-bottom-color: #2f75d6; }
.kanban__col--delivery .kanban__count { background: rgba(47, 117, 214, 0.16); color: #2460b0; }
.kanban__col--finished .kanban__col-header { border-bottom-color: #4bc07a; }
.kanban__col--finished .kanban__count { background: rgba(75, 192, 122, 0.16); color: #369659; }

/* ── Drawer panel ── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 900;
    animation: fadeIn 150ms ease;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(440px, 90vw);
    z-index: 910;
    background: #fffaf5;
    box-shadow: -8px 0 40px rgba(126, 79, 67, 0.18);
    display: flex;
    flex-direction: column;
    animation: slideInRight 200ms ease;
}

.drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(215, 155, 157, 0.2);
}

.drawer__header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--brand-coral-strong);
}

.drawer__close {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--brand-cocoa);
    line-height: 1;
    padding: 0 0.25rem;
}

.drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer__section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.drawer__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-rose);
    font-weight: 600;
}

.drawer__order-number {
    font-size: 1.5rem;
    color: var(--brand-cocoa);
}

.drawer__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.drawer__item {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(251, 244, 235, 0.75);
    font-size: 0.92rem;
}

.drawer__item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.drawer__item-title {
    color: var(--brand-cocoa);
    font-weight: 600;
    line-height: 1.45;
}

.drawer__item-note,
.drawer__item-complements {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    color: var(--brand-clay);
    line-height: 1.45;
}

.drawer__item-note strong,
.drawer__item-complements strong {
    color: var(--brand-cocoa);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.drawer__item-price {
    color: var(--brand-rose);
    font-weight: 600;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.drawer__address {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.drawer__address--empty {
    color: var(--brand-rose);
    font-style: italic;
}

.drawer__total {
    font-size: 1.6rem;
    color: var(--brand-coral-strong);
}

.kanban-status-pill {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.kanban-status-pill--pendingacceptance { background: #f0f0f0; color: #6b6b70; }
.kanban-status-pill--accepted { background: #e7f0ff; color: #2460b0; }
.kanban-status-pill--preparing { background: #fff6dd; color: #a67d1e; }
.kanban-status-pill--readyforpickup { background: #fff0dd; color: #b86b1e; }
.kanban-status-pill--outfordelivery { background: #e7f0ff; color: #2460b0; }
.kanban-status-pill--delivered { background: #e6f8ed; color: #369659; }
.kanban-status-pill--cancelled { background: #fde0e0; color: #a3434d; }

.drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(215, 155, 157, 0.2);
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 960px) {
    .kanban {
        grid-template-columns: repeat(5, 260px);
    }
}
.field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(215, 155, 157, 0.4);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fffdf9;
    color: var(--brand-cocoa);
    font: inherit;
}

.notification-editor-panel {
    max-width: 960px;
}

.notification-title-cell {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.notification-title-cell__content {
    display: grid;
    gap: 0.3rem;
}

.notification-title-cell__content strong {
    color: var(--brand-cocoa);
}

.notification-title-cell__content span,
.notification-schedule-cell {
    color: color-mix(in srgb, var(--brand-cocoa) 74%, white 26%);
    font-size: 0.92rem;
}

.notification-title-cell__content span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-schedule-cell {
    display: grid;
    gap: 0.3rem;
}

.notification-action-group {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(251, 244, 235, 0.68);
    border: 1px solid rgba(215, 155, 157, 0.24);
}

.notification-action-group__title {
    font-weight: 700;
    color: var(--brand-cocoa);
}

.notification-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.notification-icon-picker {
    grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
}

.status-pill--scheduled {
    background: rgba(47, 117, 214, 0.16);
    color: #2460b0;
}

.status-pill--expired {
    background: rgba(184, 78, 88, 0.12);
    color: #9a3f4a;
}

@media (max-width: 960px) {
    .notification-action-grid {
        grid-template-columns: 1fr;
    }
}

.complements-editor {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(215, 155, 157, 0.2);
}

.complements-editor__header,
.complement-group-card__header,
.complement-options__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.complements-editor__header h3,
.complement-group-card__header strong,
.complement-options__header strong {
    margin: 0;
    color: var(--brand-cocoa);
}

.complements-editor__header p {
    margin: 0.35rem 0 0;
    color: color-mix(in srgb, var(--brand-cocoa) 78%, white 22%);
}

.complements-editor__groups {
    display: grid;
    gap: 1rem;
}

.complement-group-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(251, 244, 235, 0.68);
    border: 1px solid rgba(215, 155, 157, 0.24);
}

.complement-group-card__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.complement-options {
    display: grid;
    gap: 0.9rem;
}

.complement-options__list {
    display: grid;
    gap: 0.8rem;
}

.complement-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.8fr) auto;
    gap: 0.8rem;
    align-items: end;
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(215, 155, 157, 0.18);
}

.complement-option-row__remove {
    white-space: nowrap;
}

@media (max-width: 960px) {
    .complement-group-card__grid,
    .complement-option-row {
        grid-template-columns: 1fr;
    }
}








/* Order drawer item media override */
.drawer__item-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.drawer__item-media {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    flex: 0 0 44px;
}

.drawer__item-media--placeholder {
    background: rgba(255, 255, 255, 0.45);
}

.drawer__item-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawer__item-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-shell {
    display: grid;
    gap: 1.75rem;
}

.dashboard-top-grid,
.dashboard-middle-grid,
.dashboard-bottom-grid {
    display: grid;
    gap: 1.5rem;
}

.dashboard-top-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
}

.dashboard-middle-grid,
.dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
}

.dashboard-kpi-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-panel {
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(231, 199, 186, 0.45);
    box-shadow: 0 18px 44px rgba(224, 186, 156, 0.14);
    padding: 1.6rem;
}

.dashboard-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-panel__header h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.05;
    color: var(--color-text-strong);
}

.dashboard-panel__header p {
    margin: 0.4rem 0 0;
    color: var(--color-text-muted);
    max-width: 42rem;
}

.dashboard-panel__header--spread {
    align-items: center;
}

.dashboard-hero {
    border-radius: 2.2rem;
    padding: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #ee8a90 0%, #f3b4c1 100%);
    box-shadow: 0 24px 44px rgba(236, 136, 145, 0.28);
}

.dashboard-hero__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0.95;
}

.dashboard-hero h1 {
    margin: 0;
    max-width: 40rem;
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 0.96;
    color: #fff;
}

.dashboard-hero p {
    margin: 0.95rem 0 0;
    max-width: 46rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.94);
}

.dashboard-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.dashboard-hero-stat {
    padding: 1.15rem 1.15rem 1.2rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.dashboard-hero-stat span {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.dashboard-hero-stat strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 1.8rem;
    line-height: 1;
    color: #fff;
}

.dashboard-highlights {
    display: flex;
    flex-direction: column;
}

.dashboard-live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #e86f72 0%, #ef8a8a 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.dashboard-highlight-list,
.dashboard-focus-list,
.dashboard-customer-list {
    display: grid;
    gap: 0.95rem;
}

.dashboard-highlight-item,
.dashboard-focus-item,
.dashboard-customer-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.95rem;
    align-items: center;
    padding: 0.95rem 0;
}

.dashboard-highlight-item + .dashboard-highlight-item,
.dashboard-focus-item + .dashboard-focus-item,
.dashboard-customer-row + .dashboard-customer-row {
    border-top: 1px solid rgba(235, 220, 208, 0.8);
}

.dashboard-highlight-item__icon,
.dashboard-focus-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: #f8ebdf;
    color: var(--color-primary);
    flex-shrink: 0;
}

.dashboard-highlight-item__content,
.dashboard-focus-item__content,
.dashboard-customer-row__content {
    min-width: 0;
}

.dashboard-highlight-item__content strong,
.dashboard-focus-item__content strong,
.dashboard-customer-row__content strong {
    display: block;
    color: var(--color-text-strong);
    font-size: 1.35rem;
    line-height: 1.1;
}

.dashboard-highlight-item__content span,
.dashboard-focus-item__content span,
.dashboard-customer-row__content span {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.dashboard-highlight-item__value,
.dashboard-focus-item__value,
.dashboard-customer-row__value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-text-strong);
    white-space: nowrap;
}

.dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 17rem;
}

.dashboard-kpi-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-kpi-card__header > span:first-child {
    color: var(--color-text-muted);
    font-size: 1.4rem;
    font-weight: 700;
}

.dashboard-kpi-card strong {
    display: block;
    margin-top: 1.6rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--color-text-strong);
}

.dashboard-kpi-card p {
    margin: 1.35rem 0 0;
    max-width: 24rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.dashboard-kpi-badge,
.dashboard-period-badge,
.dashboard-link-chip,
.dashboard-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-kpi-badge--positive {
    background: #d6f3d8;
    color: #2d7a3e;
}

.dashboard-kpi-badge--negative {
    background: #fde0e0;
    color: #b44f57;
}

.dashboard-kpi-badge--neutral {
    background: #ece7de;
    color: #8a6c5b;
}

.dashboard-kpi-badge--rose {
    background: #ffd9de;
    color: #a45b67;
}

.dashboard-kpi-badge--amber {
    background: #ffeab8;
    color: #a17915;
}

.dashboard-kpi-sparkline {
    position: absolute;
    right: 1.5rem;
    bottom: 1.45rem;
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 2.8rem;
}

.dashboard-kpi-sparkline span {
    display: block;
    width: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ef7878 0%, #f8c8d2 100%);
}

.dashboard-kpi-sparkline span:nth-child(1) { height: 1rem; }
.dashboard-kpi-sparkline span:nth-child(2) { height: 1.75rem; }
.dashboard-kpi-sparkline span:nth-child(3) { height: 1.2rem; }
.dashboard-kpi-sparkline span:nth-child(4) { height: 2rem; }
.dashboard-kpi-sparkline span:nth-child(5) { height: 1.45rem; }

.dashboard-chart-card {
    border-radius: 1.8rem;
    background: #fcf5ee;
    padding: 1.5rem;
}

.dashboard-chart-card__summary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dashboard-chart-card__summary span,
.dashboard-top-products-row__product span,
.dashboard-customer-row__content span {
    color: var(--color-text-muted);
}

.dashboard-chart-card__summary strong {
    font-size: 3rem;
    line-height: 1;
    color: var(--color-text-strong);
}

.dashboard-chart-card__legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-top: -2rem;
    color: var(--color-text-muted);
}

.dashboard-dot {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.45rem;
    border-radius: 999px;
}

.dashboard-dot--sales {
    background: #e86f72;
}

.dashboard-dot--orders {
    background: #f8cad3;
}

.dashboard-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.9rem;
    min-height: 18rem;
    margin-top: 2rem;
}

.dashboard-chart-bars__group {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.dashboard-chart-bars__columns {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 14rem;
}

.dashboard-chart-bar {
    width: 1.15rem;
    min-height: 0.75rem;
    border-radius: 999px 999px 0 0;
}

.dashboard-chart-bar--sales {
    background: linear-gradient(180deg, #e86f72 0%, #eb7777 100%);
}

.dashboard-chart-bar--orders {
    background: linear-gradient(180deg, #f8cad3 0%, #f5b7c5 100%);
}

.dashboard-chart-bars__label {
    color: var(--color-text-muted);
    font-weight: 700;
}

.dashboard-link-chip {
    background: #f5e7d5;
    color: var(--color-text-strong);
}

.dashboard-empty-state {
    margin: 0;
    color: var(--color-text-muted);
}

.dashboard-top-products-table {
    display: grid;
    gap: 0.95rem;
}

.dashboard-top-products-row {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 1.5rem;
    background: #fdf7f1;
}

.dashboard-top-products-row__product {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.dashboard-top-products-row__image,
.dashboard-top-products-row__placeholder {
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 1rem;
    object-fit: cover;
    flex-shrink: 0;
}

.dashboard-top-products-row__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8ebdf;
    color: var(--color-primary);
}

.dashboard-top-products-row__product strong,
.dashboard-customer-row__content strong {
    display: block;
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
    color: var(--color-text-strong);
}

.dashboard-top-products-row__product span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.98rem;
    line-height: 1.4;
}

.dashboard-top-products-row__units,
.dashboard-top-products-row__revenue {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-strong);
    white-space: nowrap;
}

.dashboard-status-badge--leader {
    background: #ffe8ab;
    color: #90620f;
}

.dashboard-status-badge--strong {
    background: #d8f2d6;
    color: #2d7a3e;
}

.dashboard-status-badge--recurring {
    background: #fde0e8;
    color: #a45b67;
}

.dashboard-customer-list {
    gap: 0.9rem;
}

.dashboard-customer-row {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(235, 220, 208, 0.8);
    border-radius: 1.5rem;
    background: #fdf7f1;
}

.dashboard-customer-row + .dashboard-customer-row {
    border-top: 1px solid rgba(235, 220, 208, 0.8);
}

.dashboard-customer-row__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f1bfc6 0%, #ef8d8d 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.dashboard-customer-row__value {
    color: var(--color-primary);
}

@media (max-width: 1280px) {
    .dashboard-top-grid,
    .dashboard-middle-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero__stats {
        grid-template-columns: 1fr;
    }

    .dashboard-top-products-row {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-card__legend {
        justify-content: flex-start;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
}

/* Dashboard scale adjustments */
.dashboard-shell {
    gap: 1.35rem;
}

.dashboard-top-grid,
.dashboard-middle-grid,
.dashboard-bottom-grid {
    gap: 1.15rem;
}

.dashboard-kpi-grid {
    gap: 1rem;
}

.dashboard-panel {
    padding: 1.2rem;
    border-radius: 1.6rem;
    box-shadow: 0 14px 32px rgba(224, 186, 156, 0.12);
}

.dashboard-panel__header {
    gap: 0.85rem;
    margin-bottom: 0.95rem;
}

.dashboard-panel__header h2 {
    font-size: 1.5rem;
    line-height: 1.1;
}

.dashboard-panel__header p {
    margin-top: 0.3rem;
    max-width: 36rem;
    font-size: 0.93rem;
    line-height: 1.45;
}

.dashboard-hero {
    padding: 1.5rem;
    border-radius: 1.85rem;
    box-shadow: 0 18px 36px rgba(236, 136, 145, 0.22);
}

.dashboard-hero__eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.dashboard-hero h1 {
    max-width: 30rem;
    font-size: clamp(2rem, 2.9vw, 3.15rem);
    line-height: 1.02;
}

.dashboard-hero p {
    margin-top: 0.8rem;
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.45;
}

.dashboard-hero__stats {
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.dashboard-hero-stat {
    padding: 0.9rem 0.95rem 1rem;
    border-radius: 1.1rem;
}

.dashboard-hero-stat span {
    font-size: 0.82rem;
}

.dashboard-hero-stat strong {
    margin-top: 0.45rem;
    font-size: 1.45rem;
}

.dashboard-live-badge {
    padding: 0.38rem 0.75rem;
    font-size: 0.78rem;
}

.dashboard-highlight-list,
.dashboard-focus-list,
.dashboard-customer-list {
    gap: 0.8rem;
}

.dashboard-highlight-item,
.dashboard-focus-item,
.dashboard-customer-row {
    gap: 0.8rem;
    padding: 0.75rem 0;
}

.dashboard-highlight-item__icon,
.dashboard-focus-item__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.85rem;
}

.dashboard-highlight-item__content strong,
.dashboard-focus-item__content strong,
.dashboard-customer-row__content strong {
    font-size: 1.05rem;
    line-height: 1.2;
}

.dashboard-highlight-item__content span,
.dashboard-focus-item__content span,
.dashboard-customer-row__content span {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dashboard-highlight-item__value,
.dashboard-focus-item__value,
.dashboard-customer-row__value {
    font-size: 1.25rem;
}

.dashboard-kpi-card {
    min-height: 13.5rem;
}

.dashboard-kpi-card__header > span:first-child {
    font-size: 1rem;
}

.dashboard-kpi-card strong {
    margin-top: 1.05rem;
    font-size: 2.2rem;
}

.dashboard-kpi-card p {
    margin-top: 0.95rem;
    max-width: 19rem;
    font-size: 0.93rem;
    line-height: 1.5;
}

.dashboard-kpi-badge,
.dashboard-period-badge,
.dashboard-link-chip,
.dashboard-status-badge {
    min-height: 1.95rem;
    padding: 0.32rem 0.72rem;
    font-size: 0.8rem;
}

.dashboard-kpi-sparkline {
    right: 1rem;
    bottom: 1rem;
    gap: 0.28rem;
    height: 2.1rem;
}

.dashboard-kpi-sparkline span {
    width: 0.42rem;
}

.dashboard-chart-card {
    padding: 1.2rem;
    border-radius: 1.45rem;
}

.dashboard-chart-card__summary strong {
    font-size: 2.25rem;
}

.dashboard-chart-card__legend {
    gap: 1rem;
    margin-top: -1.6rem;
    font-size: 0.9rem;
}

.dashboard-chart-bars {
    gap: 0.75rem;
    min-height: 14.5rem;
    margin-top: 1.5rem;
}

.dashboard-chart-bars__group {
    gap: 0.65rem;
}

.dashboard-chart-bars__columns {
    gap: 0.35rem;
    min-height: 11.5rem;
}

.dashboard-chart-bar {
    width: 0.88rem;
    min-height: 0.65rem;
}

.dashboard-chart-bars__label {
    font-size: 0.88rem;
}

.dashboard-top-products-table {
    gap: 0.75rem;
}

.dashboard-top-products-row {
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1.15rem;
}

.dashboard-top-products-row__product {
    gap: 0.7rem;
}

.dashboard-top-products-row__image,
.dashboard-top-products-row__placeholder {
    width: 3rem;
    height: 3rem;
    border-radius: 0.8rem;
}

.dashboard-top-products-row__product strong,
.dashboard-customer-row__content strong {
    font-size: 1rem;
    line-height: 1.2;
}

.dashboard-top-products-row__product span {
    margin-top: 0.15rem;
    font-size: 0.84rem;
    line-height: 1.35;
}

.dashboard-top-products-row__units,
.dashboard-top-products-row__revenue {
    font-size: 1.05rem;
}

.dashboard-customer-list {
    gap: 0.7rem;
}

.dashboard-customer-row {
    padding: 0.85rem 0.95rem;
    border-radius: 1.15rem;
}

.dashboard-customer-row__avatar {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .dashboard-hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.5rem);
    }

    .dashboard-chart-card__legend {
        margin-top: 0.75rem;
    }
}

/* Dashboard scale refinement */
.dashboard-shell {
    gap: 1rem;
}

.dashboard-top-grid,
.dashboard-middle-grid,
.dashboard-bottom-grid {
    gap: 0.95rem;
}

.dashboard-kpi-grid {
    gap: 0.85rem;
}

.dashboard-panel {
    padding: 1rem;
    border-radius: 1.35rem;
}

.dashboard-panel__header {
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.dashboard-panel__header h2 {
    font-size: 1.28rem;
}

.dashboard-panel__header p {
    font-size: 0.88rem;
    line-height: 1.42;
}

.dashboard-hero {
    padding: 1.2rem;
    border-radius: 1.5rem;
}

.dashboard-hero__eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.74rem;
}

.dashboard-hero h1 {
    max-width: 25rem;
    font-size: clamp(1.58rem, 2vw, 2.45rem);
    line-height: 1.03;
}

.dashboard-hero p {
    margin-top: 0.65rem;
    max-width: 30rem;
    font-size: 0.9rem;
    line-height: 1.42;
}

.dashboard-hero__stats {
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.dashboard-hero-stat {
    padding: 0.72rem 0.78rem 0.8rem;
    border-radius: 0.95rem;
}

.dashboard-hero-stat span {
    font-size: 0.74rem;
}

.dashboard-hero-stat strong {
    margin-top: 0.35rem;
    font-size: 1.12rem;
}

.dashboard-live-badge {
    padding: 0.28rem 0.55rem;
    font-size: 0.68rem;
}

.dashboard-highlight-list,
.dashboard-focus-list,
.dashboard-customer-list {
    gap: 0.65rem;
}

.dashboard-highlight-item,
.dashboard-focus-item,
.dashboard-customer-row {
    gap: 0.65rem;
    padding: 0.62rem 0;
}

.dashboard-highlight-item__icon,
.dashboard-focus-item__icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.75rem;
}

.dashboard-highlight-item__content strong,
.dashboard-focus-item__content strong,
.dashboard-customer-row__content strong {
    font-size: 0.95rem;
}

.dashboard-highlight-item__content span,
.dashboard-focus-item__content span,
.dashboard-customer-row__content span {
    font-size: 0.84rem;
}

.dashboard-highlight-item__value,
.dashboard-focus-item__value,
.dashboard-customer-row__value {
    font-size: 1rem;
}

.dashboard-kpi-card {
    min-height: 11.4rem;
}

.dashboard-kpi-card__header > span:first-child {
    font-size: 0.92rem;
}

.dashboard-kpi-card strong {
    margin-top: 0.9rem;
    font-size: 1.72rem;
}

.dashboard-kpi-card p {
    margin-top: 0.8rem;
    max-width: 15rem;
    font-size: 0.84rem;
    line-height: 1.42;
}

.dashboard-kpi-badge,
.dashboard-period-badge,
.dashboard-link-chip,
.dashboard-status-badge {
    min-height: 1.65rem;
    padding: 0.22rem 0.56rem;
    font-size: 0.7rem;
}

.dashboard-kpi-sparkline {
    right: 0.85rem;
    bottom: 0.85rem;
    height: 1.6rem;
}

.dashboard-kpi-sparkline span {
    width: 0.35rem;
}

.dashboard-chart-card {
    padding: 0.95rem;
    border-radius: 1.2rem;
}

.dashboard-chart-card__summary span {
    font-size: 0.8rem;
}

.dashboard-chart-card__summary strong {
    font-size: 1.75rem;
}

.dashboard-chart-card__legend {
    gap: 0.8rem;
    margin-top: -1.3rem;
    font-size: 0.8rem;
}

.dashboard-dot {
    width: 0.58rem;
    height: 0.58rem;
}

.dashboard-chart-bars {
    gap: 0.6rem;
    min-height: 11.8rem;
    margin-top: 1rem;
}

.dashboard-chart-bars__group {
    gap: 0.55rem;
}

.dashboard-chart-bars__columns {
    gap: 0.28rem;
    min-height: 9rem;
}

.dashboard-chart-bar {
    width: 0.68rem;
    min-height: 0.55rem;
}

.dashboard-chart-bars__label {
    font-size: 0.75rem;
}

.dashboard-top-products-table {
    gap: 0.6rem;
}

.dashboard-top-products-row {
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.95rem;
}

.dashboard-top-products-row__product {
    gap: 0.6rem;
}

.dashboard-top-products-row__image,
.dashboard-top-products-row__placeholder {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.7rem;
}

.dashboard-top-products-row__product strong,
.dashboard-customer-row__content strong {
    font-size: 0.9rem;
}

.dashboard-top-products-row__product span {
    font-size: 0.76rem;
}

.dashboard-top-products-row__units,
.dashboard-top-products-row__revenue {
    font-size: 0.92rem;
}

.dashboard-customer-list {
    gap: 0.58rem;
}

.dashboard-customer-row {
    padding: 0.7rem 0.8rem;
    border-radius: 0.95rem;
}

.dashboard-customer-row__avatar {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .dashboard-hero h1 {
        font-size: clamp(1.45rem, 7vw, 2.15rem);
    }

    .dashboard-chart-card__legend {
        margin-top: 0.6rem;
    }
}

.price-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: flex-start;
}

.price-stack--align-end {
    align-items: flex-end;
}

.price-stack__original {
    color: color-mix(in srgb, var(--brand-cocoa) 58%, white 42%);
    font-size: 0.82rem;
    text-decoration: line-through;
}

.price-stack__current {
    color: var(--brand-coral-strong);
    font-size: 0.98rem;
    line-height: 1.1;
}

.drag-column {
    width: 4rem;
    min-width: 4rem;
    white-space: nowrap;
}

.drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    border: 1px dashed rgba(215, 155, 157, 0.45);
    background: rgba(251, 244, 235, 0.95);
    color: var(--brand-coral-strong);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.drag-column > .drag-handle {
    margin-inline: auto;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle .icon,
.drag-handle svg {
    pointer-events: none;
}

.data-table__row--dragging {
    opacity: 0.7;
}

.data-table__row--drag-over > td {
    background: rgba(234, 119, 119, 0.08);
}

.complement-group-card {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(215, 155, 157, 0.24);
    background: rgba(255, 255, 255, 0.85);
    transition: border-color 120ms ease, background-color 120ms ease, opacity 120ms ease;
}

.complement-group-card--dragging {
    opacity: 0.72;
}

.complement-group-card--drag-over {
    border-color: rgba(228, 95, 103, 0.5);
    background: rgba(234, 119, 119, 0.08);
}

.complement-group-card__header-main {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.complement-option-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1.4fr) minmax(140px, 0.8fr) auto;
    gap: 0.75rem;
    align-items: end;
    padding: 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(215, 155, 157, 0.2);
    background: rgba(251, 244, 235, 0.55);
    transition: border-color 120ms ease, background-color 120ms ease, opacity 120ms ease;
}

.complement-option-row--dragging {
    opacity: 0.72;
}

.complement-option-row--drag-over {
    border-color: rgba(228, 95, 103, 0.48);
    background: rgba(234, 119, 119, 0.08);
}

.complement-option-row__remove {
    align-self: end;
}

@media (max-width: 960px) {
    .complement-option-row {
        grid-template-columns: auto 1fr;
    }

    .complement-option-row .field {
        grid-column: 2;
    }

    .complement-option-row__remove {
        grid-column: 1 / -1;
    }
}





.drag-handle {
    touch-action: none;
}

.sortable--dragging {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.96;
    pointer-events: none;
    box-shadow: 0 22px 52px rgba(61, 30, 20, 0.2);
    border-radius: 18px;
}

.sortable-ghost-table {
    background: transparent;
}

.sortable-placeholder {
    position: relative;
}

.sortable-placeholder td {
    padding: 0;
    border: 0;
}

.sortable-placeholder td::after {
    content: "";
    display: block;
    height: 100%;
    min-height: 44px;
    border-radius: 18px;
    background: rgba(234, 119, 119, 0.08);
    border: 1px dashed rgba(228, 95, 103, 0.38);
}

/* Sidebar user menu refresh */
.shell__sidebar {
    display: flex;
}

.admin-nav {
    min-height: 100%;
    width: 100%;
}

.admin-nav__brand {
    margin-bottom: 0.95rem;
}

.admin-nav__brand > strong {
    display: block;
    font-size: 1.35rem;
    text-align: center;
}

.admin-nav__spacer {
    flex: 1 1 auto;
    min-height: 1rem;
}

.admin-user-menu {
    position: relative;
    margin-top: 0.35rem;
}

.admin-user-menu__trigger {
    width: 100%;
    appearance: none;
    border: 1px solid rgba(255, 247, 240, 0.22);
    border-radius: 18px;
    background: rgba(126, 79, 67, 0.88);
    color: #fffaf5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    font: inherit;
    text-align: left;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.admin-user-menu__trigger:hover {
    transform: translateY(-1px);
    background: #694138;
    border-color: rgba(255, 247, 240, 0.32);
}

.admin-user-menu__avatar {
    width: 2.65rem;
    height: 2.65rem;
    flex: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 247, 240, 0.26) 0%, rgba(255, 247, 240, 0.14) 100%);
    border: 1px solid rgba(255, 247, 240, 0.22);
    color: #fffaf5;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.admin-user-menu__identity {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-user-menu__identity strong {
    display: block;
    margin: 0;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-menu__chevron {
    font-size: 0.85rem;
    opacity: 0.88;
}

.admin-user-menu__menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 0.65rem);
    z-index: 25;
    padding: 0.45rem;
    border-radius: 18px;
    background: rgba(255, 250, 245, 0.98);
    border: 1px solid rgba(215, 155, 157, 0.24);
    box-shadow: 0 18px 36px rgba(126, 79, 67, 0.16);
}

.admin-user-menu__item {
    position: relative;
}

.admin-user-menu__action,
.admin-user-menu__submenu-action {
    width: 100%;
    appearance: none;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--brand-cocoa);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.78rem 0.85rem;
    font: inherit;
    text-align: left;
    transition: background-color 120ms ease, color 120ms ease;
}

.admin-user-menu__action:hover,
.admin-user-menu__submenu-action:hover,
.admin-user-menu__item--submenu:focus-within > .admin-user-menu__action {
    background: rgba(234, 119, 119, 0.1);
    color: var(--brand-coral-strong);
}

.admin-user-menu__item--submenu > .admin-user-menu__action {
    justify-content: space-between;
}

.admin-user-menu__submenu-caret {
    font-size: 1rem;
    opacity: 0.72;
}

.admin-user-menu__submenu {
    position: absolute;
    left: calc(100% + 0.45rem);
    bottom: 0;
    min-width: 200px;
    padding: 0.45rem;
    border-radius: 18px;
    background: rgba(255, 250, 245, 0.98);
    border: 1px solid rgba(215, 155, 157, 0.24);
    box-shadow: 0 18px 36px rgba(126, 79, 67, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.admin-user-menu__item--submenu:hover > .admin-user-menu__submenu,
.admin-user-menu__item--submenu:focus-within > .admin-user-menu__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.admin-user-menu__submenu-action--active {
    background: rgba(234, 119, 119, 0.14);
    color: var(--brand-coral-strong);
    font-weight: 700;
}

/* Fixed desktop shell */
@media (min-width: 961px) {
    html,
    body,
    #app {
        height: 100%;
        min-height: 100%;
        overflow: hidden;
    }

    .shell {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    .shell__sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        overflow-x: visible;
    }

    .shell__content {
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-gutter: stable;
    }
}

@media (max-width: 960px) {
    html,
    body,
    #app {
        height: auto;
        min-height: 100%;
        overflow: visible;
    }

    .shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .shell__sidebar,
    .shell__content {
        height: auto;
        overflow: visible;
    }
}
