:root {
    --primary: #e30613;
    --primary-color: #e30613;
    --primary-foreground: #ffffff;
}

.dark {
    --primary: #e30613;
    --primary-color: #e30613;
    --primary-foreground: #ffffff;
}

#header {
    border-bottom-color: rgba(227, 6, 19, 0.3);
    box-shadow: 0 1px 0 rgba(227, 6, 19, 0.04);
}

#sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
    border-right-color: rgba(227, 6, 19, 0.16);
}

#sidebar_header {
    border-bottom: 3px solid var(--primary);
}

#sidebar .kt-menu-heading {
    color: #b20b16;
}

#sidebar .kt-menu-title {
    color: #34383f;
}

#sidebar .kt-menu-icon,
#sidebar .kt-menu-arrow {
    color: #747982;
}

#sidebar .kt-menu-item.active > .kt-menu-link,
#sidebar .kt-menu-item.here > .kt-menu-link,
#sidebar .kt-menu-link:hover {
    background-color: #fff0f1;
    border-color: rgba(227, 6, 19, 0.1);
    border-radius: 0.625rem;
}

#sidebar .kt-menu-item.active > .kt-menu-link .kt-menu-icon,
#sidebar .kt-menu-item.show > .kt-menu-link .kt-menu-icon,
#sidebar .kt-menu-item.show > .kt-menu-link .kt-menu-arrow,
#sidebar .kt-menu-item.kt-menu-item-show > .kt-menu-link .kt-menu-icon,
#sidebar .kt-menu-item.kt-menu-item-show > .kt-menu-link .kt-menu-arrow,
#sidebar .kt-menu-link:hover .kt-menu-icon,
#sidebar .kt-menu-link:hover .kt-menu-arrow {
    color: var(--primary);
}

#sidebar .kt-menu-item.active > .kt-menu-link .kt-menu-title,
#sidebar .kt-menu-item.here > .kt-menu-link .kt-menu-title,
#sidebar .kt-menu-link:hover .kt-menu-title {
    color: #c40512;
}

.kt-btn-primary {
    box-shadow: 0 6px 14px rgba(227, 6, 19, 0.16);
}

.demo1 > .flex.grow,
.kt-wrapper,
#content {
    min-width: 0;
}

.demo1 > .flex.grow {
    width: 100%;
}

.product-edit-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0 1.25rem;
}

.product-edit-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    color: #59616d;
    font-size: 0.8125rem;
    font-weight: 500;
}

.product-edit-back:hover {
    color: var(--primary);
}

.product-edit-heading,
.product-edit-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.product-edit-heading h1 {
    color: #151820;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.product-edit-tabs {
    position: sticky;
    top: 70px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.25rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #e4e7eb;
    backdrop-filter: blur(10px);
}

.product-edit-tab-list {
    display: flex;
    min-width: 0;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-edit-tab-list::-webkit-scrollbar {
    display: none;
}

.product-edit-sticky-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
    padding-right: 0.15rem;
}

.product-edit-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding: 1rem 1.1rem 0.9rem;
    color: #6a717c;
    font-size: 0.8125rem;
    font-weight: 600;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.product-edit-tab::after {
    position: absolute;
    right: 0.75rem;
    bottom: -1px;
    left: 0.75rem;
    height: 2px;
    background: transparent;
    content: '';
}

.product-edit-tab:hover,
.product-edit-tab.active {
    color: var(--primary);
}

.product-edit-tab.active::after {
    background: var(--primary);
}

[data-product-tab-panel][hidden] {
    display: none !important;
}

[data-product-editor-form][data-active-product-tab]:not([data-active-product-tab="zaklad"]) .product-edit-layout {
    grid-template-columns: minmax(0, 1fr);
}

[data-product-editor-form][data-active-product-tab]:not([data-active-product-tab="zaklad"]):not([data-active-product-tab="media"]) .product-edit-sidebar,
[data-product-editor-form][data-active-product-tab="media"] .product-edit-main {
    display: none;
}

[data-product-editor-form][data-active-product-tab="media"] .product-edit-sidebar {
    position: static;
    display: block;
}

.product-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(285px, 340px);
    gap: 1.25rem;
    align-items: start;
}

.product-edit-main,
.product-edit-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.25rem;
}

.recipe-admin-layout {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 360px);
    align-items: start;
}

.recipe-admin-layout > aside {
    position: sticky;
    top: 90px;
}

.recipe-admin-stats,
.recipe-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.recipe-admin-toolbar {
    position: sticky;
    top: 64px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    background: var(--tw-body-bg, #fff);
}

.recipe-product-picker { position: relative; }
.recipe-product-search { position: relative; }
.recipe-product-search i { position: absolute; z-index: 1; top: 50%; left: .8rem; transform: translateY(-50%); color: #858c96; }
.recipe-product-search input { padding-left: 2.35rem; }
.recipe-product-suggestions { position: absolute; z-index: 30; top: calc(100% + .35rem); right: 0; left: 0; max-height: 18rem; overflow-y: auto; border: 1px solid #e6e8ec; border-radius: .75rem; background: #fff; box-shadow: 0 12px 30px rgba(25,31,40,.13); }
.recipe-product-suggestions[hidden], .recipe-product-suggestions:empty { display: none; }
.recipe-product-suggestion { display: flex; width: 100%; flex-direction: column; gap: .15rem; padding: .75rem 1rem; text-align: left; }
.recipe-product-suggestion small { color: #858c96; }
.recipe-product-suggestion:hover { background: #fff1f2; color: #d71920; }
.recipe-product-selected { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.recipe-product-selected__item { display: flex; align-items: center; gap: .5rem; border: 1px solid #e6e8ec; border-radius: .65rem; padding: .55rem .7rem; background: #fff; }
.recipe-product-selected__item > div:first-of-type { min-width: 0; flex: 1; }
.recipe-product-selected__item strong, .recipe-product-selected__item small { display: block; }
.recipe-product-selected__item small, .recipe-product-empty { color: #858c96; font-size: .75rem; }
.recipe-product-selected__actions { display: flex; gap: .25rem; }
.recipe-product-empty { margin-top: .75rem; }

.recipe-taxonomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.recipe-taxonomy-list { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; }
.recipe-taxonomy-item { border: 1px solid #e6e8ec; border-radius: .8rem; background: #fff; }
.recipe-taxonomy-item summary { display: flex; min-height: 4rem; cursor: pointer; list-style: none; align-items: center; gap: .75rem; padding: .65rem .8rem; }
.recipe-taxonomy-item summary::-webkit-details-marker { display: none; }
.recipe-taxonomy-item summary::after { content: '›'; margin-left: .25rem; color: #8b919b; font-size: 1.3rem; transition: transform .2s; }
.recipe-taxonomy-item[open] summary::after { transform: rotate(90deg); }
.recipe-taxonomy-item summary img, .recipe-taxonomy-placeholder { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; border-radius: .55rem; object-fit: cover; }
.recipe-taxonomy-placeholder { display: grid; place-items: center; background: #fff1f2; color: #e30613; font-weight: 700; }
.recipe-taxonomy-name { min-width: 0; flex: 1; font-weight: 600; }
.recipe-taxonomy-name small { display: block; margin-top: .15rem; overflow: hidden; color: #858c96; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.recipe-taxonomy-body { border-top: 1px solid #e6e8ec; padding: 1rem; }
.recipe-taxonomy-upload { display: flex; align-items: end; gap: .75rem; margin-top: 1rem; border-top: 1px solid #e6e8ec; padding-top: 1rem; }
.recipe-taxonomy-item--new { border-style: dashed; }

.recipe-admin-row {
    display: grid;
    align-items: start;
    gap: .75rem;
}

.recipe-admin-row--ingredient {
    grid-template-columns: minmax(120px, .8fr) 90px 100px minmax(220px, 2fr) auto auto;
}

.recipe-admin-row__actions { display: flex; gap: .25rem; }

.recipe-admin-row--step {
    grid-template-columns: minmax(150px, .8fr) minmax(300px, 2fr) auto;
}

@media (max-width: 1023px) {
    .recipe-admin-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .recipe-admin-layout > aside {
        position: static;
    }

    .recipe-admin-row--ingredient,
    .recipe-admin-row--step {
        grid-template-columns: minmax(0, 1fr);
    }

    .recipe-admin-stats,
    .recipe-taxonomy-grid { grid-template-columns: minmax(0, 1fr); }
}

.product-edit-sidebar {
    position: sticky;
    top: 140px;
}

.product-edit-card {
    border-color: #e6e8ec;
    box-shadow: 0 2px 8px rgba(25, 31, 40, 0.025);
}

.product-edit-card .kt-card-header {
    min-height: 4.25rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}

.product-edit-card .kt-card-title {
    color: #20242c;
    font-size: 1rem;
    font-weight: 700;
}

.product-card-help {
    margin-top: 0.2rem;
    color: #858c96;
    font-size: 0.75rem;
}

.product-card-body {
    padding: 1.25rem;
}

.product-editor-section {
    scroll-margin-top: 9.5rem;
}

.product-form-grid,
.product-description-grid,
.product-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.product-price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-form-grid-textareas .kt-textarea {
    min-height: 6.5rem;
}

.product-form-divider {
    height: 1px;
    margin: 1.25rem 0;
    background: #edf0f3;
}

.product-input-suffix {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-input-suffix input,
.product-input-suffix output {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    outline: 0;
}

.product-input-suffix span,
.product-label-note {
    color: #9299a3;
    font-size: 0.75rem;
}

.product-input-readonly {
    background: #f6f7f8;
}

.product-price-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    color: #767e89;
    font-size: 0.75rem;
}

.product-field-span-2 {
    grid-column: span 2;
}

.product-field-span-3 {
    grid-column: span 3;
}

.product-subsection {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #edf0f3;
    scroll-margin-top: 9.5rem;
}

.product-subsection h3 {
    color: #252a32;
    font-size: 0.9375rem;
    font-weight: 700;
}

.product-subsection .product-form-grid {
    margin-top: 1rem;
}

.product-nutrition-grid {
    display: grid;
    gap: 0;
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid #e5e8ec;
    border-radius: 0.65rem;
}

.product-parameter-editor {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid #e5e8ec;
    border-radius: 0.65rem;
}

.product-parameter-editor__head,
.product-parameter-row {
    display: grid;
    grid-template-columns: minmax(10rem, .8fr) minmax(14rem, 1.2fr) auto;
    gap: .75rem;
    align-items: center;
}

.product-parameter-editor__head {
    padding: .65rem .85rem;
    background: #f7f5f1;
    color: #626974;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-parameter-row {
    padding: .65rem .85rem;
    border-top: 1px solid #edf0f3;
}

.product-parameter-row__actions {
    display: flex;
    gap: .35rem;
}

.product-parameter-add {
    margin: .75rem .85rem;
}

.product-nutrition-grid > label {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(8rem, .45fr) minmax(8rem, .45fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
}

.product-nutrition-grid > label:nth-child(even) {
    background: #f7f5f1;
}

.product-nutrition-grid > label > span:first-child {
    font-size: 0.82rem;
    font-weight: 600;
}

.product-accordions {
    margin-top: 1.25rem;
    overflow: hidden;
    border: 1px solid #e5e8ec;
    border-radius: 0.65rem;
}

.product-accordion + .product-accordion {
    border-top: 1px solid #e5e8ec;
}

.product-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    cursor: pointer;
    color: #303640;
    font-size: 0.8125rem;
    font-weight: 650;
    list-style: none;
}

.product-accordion summary::-webkit-details-marker {
    display: none;
}

.product-accordion summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.product-accordion[open] summary {
    background: #fff8f8;
    color: var(--primary);
}

.product-accordion[open] summary > i {
    transform: rotate(180deg);
}

.product-accordion-body {
    padding: 1rem;
    border-top: 1px solid #eceef1;
}

.product-logistics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.product-gallery-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}

.product-gallery-item,
.product-gallery-empty {
    overflow: hidden;
    min-height: 8.5rem;
    border: 1px solid #dfe3e8;
    border-radius: 0.65rem;
    background: #fafafa;
}

.product-gallery-item.is-master {
    border-color: rgba(227, 6, 19, 0.35);
}

.product-gallery-item img {
    width: 100%;
    height: 7rem;
    padding: 0.4rem;
    object-fit: contain;
}

.product-gallery-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.45rem 0.55rem;
    border-top: 1px solid #e8eaed;
    background: #fff;
}

.product-gallery-meta > span {
    overflow: hidden;
    color: #6f7680;
    font-size: 0.6875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-gallery-actions {
    display: flex;
}

.product-gallery-actions button {
    display: inline-flex;
    width: 1.6rem;
    height: 1.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.35rem;
    color: #757c86;
}

.product-gallery-actions button:hover {
    background: #f1f2f4;
    color: var(--primary);
}

.product-gallery-actions button:disabled {
    opacity: 0.3;
}

.product-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
    border-style: dashed;
    color: #8b929c;
    font-size: 0.75rem;
}

.product-switches {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.product-switches label,
.product-data-status > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8125rem;
}

.product-switches label > span {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
}

.product-switches label strong {
    color: #343941;
    font-size: 0.8125rem;
    font-weight: 650;
}

.product-switches label small {
    max-width: 22rem;
    color: #858c96;
    font-size: 0.7rem;
    line-height: 1.4;
}

.product-data-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-data-status span {
    color: #747c87;
}

.product-data-status strong {
    color: #343941;
    font-weight: 600;
    text-align: right;
}

.product-data-status p {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eceef1;
    color: #858c96;
    font-size: 0.7rem;
    line-height: 1.45;
}

.product-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem 0 2rem;
}

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

.product-review-visibility {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.product-review-visibility label {
    display: flex;
    min-width: 14rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-review-options {
    display: grid;
    align-content: start;
    gap: .75rem;
}

.product-review-options label {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.product-review-seal {
    display: grid;
    grid-template-columns: minmax(12rem, 18rem) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.product-review-seal img,
.product-review-seal__empty {
    width: 12rem;
    height: 12rem;
    object-fit: contain;
    border: 1px solid var(--kt-gray-200);
    border-radius: .75rem;
    background: #fff;
}

.product-review-seal__empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: .5rem;
    color: var(--kt-gray-500);
    text-align: center;
}

.product-review-seal__fields {
    display: grid;
    gap: .65rem;
}

.product-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .5rem;
}

@media (max-width: 720px) {
    .product-review-settings,
    .product-review-seal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199px) {
    .product-edit-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-edit-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .product-parameter-editor__head {
        display: none;
    }

    .product-parameter-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-parameter-row__actions {
        justify-content: flex-end;
    }

    .product-edit-header {
        align-items: stretch;
        flex-direction: column;
    }

    .product-edit-actions .kt-btn {
        flex: 1;
    }

    .product-edit-tabs {
        top: 60px;
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 0;
        padding-top: 0.45rem;
    }

    .product-edit-sticky-actions {
        align-self: flex-end;
        padding-right: 0;
    }

    .product-form-grid,
    .product-description-grid,
    .product-price-grid,
    .product-logistics-grid,
    .product-edit-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-nutrition-grid > label {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-field-span-2,
    .product-field-span-3 {
        grid-column: auto;
    }
}

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

.order-stats-grid .kt-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-stats-grid article div:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.order-stats-grid span,
.order-detail-summary-grid article span:first-child {
    color: #747c87;
    font-size: 0.75rem;
}

.order-stats-grid strong {
    overflow: hidden;
    color: #191d24;
    font-size: 1.35rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    background: rgba(227, 6, 19, 0.09);
    color: var(--primary);
    font-size: 1.25rem;
}

.order-stat-icon.is-info { background: #eef5ff; color: #2675d8; }
.order-stat-icon.is-warning { background: #fff6e8; color: #c57908; }
.order-stat-icon.is-success { background: #edf9f1; color: #25864b; }

.orders-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(150px, 1fr));
    gap: 1rem;
}

.order-expedition-card {
    border-color: rgba(227, 6, 19, 0.22);
    background: linear-gradient(90deg, rgba(227, 6, 19, 0.055), rgba(227, 6, 19, 0.015));
}

.order-expedition-card .kt-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.order-expedition-card label span {
    display: flex;
    flex-direction: column;
}

.order-expedition-card small {
    margin-top: 0.15rem;
    color: #6f7782;
    font-size: 0.75rem;
}

.orders-table td {
    vertical-align: middle;
}

.order-list-number,
.order-list-date,
.order-list-customer,
.order-list-fulfillment {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.order-list-number strong,
.order-list-date strong,
.order-list-customer strong,
.order-list-fulfillment strong {
    color: #282d35;
    font-weight: 600;
}

.order-list-number small,
.order-list-date small,
.order-list-customer small,
.order-list-fulfillment small {
    color: #7a828d;
    font-size: 0.68rem;
}

.order-list-documents {
    display: flex;
    gap: 0.35rem;
}

.order-list-documents span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.45rem;
    background: #f0f1f3;
    color: #a2a8b0;
}

.order-list-documents span.is-ready {
    background: #edf9f1;
    color: #25864b;
}

.order-detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0 0;
}

.order-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    color: #59616d;
    font-size: 0.8125rem;
    font-weight: 500;
}

.order-detail-heading,
.order-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-detail-heading h1 {
    color: #151820;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.order-detail-header p {
    margin-top: 0.55rem;
    color: #747c87;
    font-size: 0.8rem;
}

.order-status-control .kt-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
}

.order-status-control .kt-card-content > div p {
    margin-top: 0.25rem;
    color: #747c87;
    font-size: 0.75rem;
}

.order-status-control form,
.order-status-notify {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-status-control .kt-select { min-width: 230px; }
.order-status-notify { color: #3e4652; font-size: 0.78rem; white-space: nowrap; }
.order-status-notify input { accent-color: var(--primary); }

.order-detail-nav {
    position: sticky;
    top: 70px;
    z-index: 8;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #e4e7eb;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.order-detail-nav button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    padding: 0.9rem 1rem;
    color: #6a717c;
    font-size: 0.78rem;
    font-weight: 600;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.order-detail-nav button:hover,
.order-detail-nav button.active { color: var(--primary); }
.order-detail-nav button.active { box-shadow: inset 0 -2px 0 var(--primary); }
.order-detail-nav button span { padding: 0.05rem 0.4rem; border-radius: 999px; background: #f0f1f3; font-size: 0.65rem; }

[data-order-tab-panel][hidden] { display: none !important; }

.order-detail-page[data-active-order-tab]:not([data-active-order-tab="polozky"]) .order-detail-layout {
    grid-template-columns: minmax(0, 1fr);
}

.order-detail-page[data-active-order-tab="zakaznik"] .order-detail-main,
.order-detail-page[data-active-order-tab="doklady"] .order-detail-main,
.order-detail-page[data-active-order-tab="doprava-platba"] .order-detail-sidebar,
.order-detail-page[data-active-order-tab="historie"] .order-detail-sidebar {
    display: none;
}

.order-detail-page[data-active-order-tab="zakaznik"] .order-detail-sidebar,
.order-detail-page[data-active-order-tab="doklady"] .order-detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-detail-page[data-active-order-tab="doklady"] .order-detail-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.order-detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.order-detail-summary-grid .kt-card-content {
    display: flex;
    min-height: 7.25rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.25rem;
}

.order-detail-summary-grid strong {
    overflow: hidden;
    color: #252a32;
    font-size: 1rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-detail-summary-grid small { color: #7a828d; font-size: 0.7rem; }
.order-detail-summary-grid .is-total { border-color: rgba(227, 6, 19, 0.22); background: rgba(227, 6, 19, 0.025); }
.order-detail-summary-grid .is-total strong { color: var(--primary); font-size: 1.35rem; }

.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 365px);
    gap: 1.25rem;
    align-items: start;
}

.order-detail-main,
.order-detail-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.25rem;
}

.order-detail-sidebar {
    position: sticky;
    top: 135px;
}

.order-card-help {
    margin-top: 0.15rem;
    color: #7b838e;
    font-size: 0.7rem;
    font-weight: 400;
}

.order-items-table th,
.order-items-table td { white-space: nowrap; }
.order-items-table th:first-child,
.order-items-table td:first-child { min-width: 220px; white-space: normal; }

.order-item-name { display: flex; flex-direction: column; gap: 0.15rem; }
.order-item-name a,
.order-item-name span { color: #282d35; font-weight: 600; }
.order-item-name small { color: #868d96; font-size: 0.65rem; }

.order-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem;
}

.order-service-grid > article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid #e7e9ed;
    border-radius: 0.75rem;
    background: #fbfbfc;
}

.order-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: rgba(227, 6, 19, 0.08);
    color: var(--primary);
}

.order-service-grid article span { color: #7a828d; font-size: 0.7rem; }
.order-service-grid article strong { display: block; margin: 0.1rem 0 0.7rem; color: #282d35; font-size: 0.9rem; }

.order-service-grid dl,
.order-customer-card dl,
.order-address-card dl { display: flex; flex-direction: column; gap: 0.45rem; }
.order-service-grid dl div,
.order-customer-card dl div,
.order-address-card dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.73rem; }
.order-service-grid dt,
.order-customer-card dt,
.order-address-card dt { color: #7a828d; }
.order-service-grid dd,
.order-customer-card dd,
.order-address-card dd { color: #343941; font-weight: 550; text-align: right; }

.order-notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.25rem; }
.order-notes-grid article { padding: 1rem; border-radius: 0.75rem; background: #f7f8f9; }
.order-notes-grid span { color: #747c87; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.order-notes-grid p { margin-top: 0.5rem; color: #343941; font-size: 0.82rem; line-height: 1.55; }

.order-timeline { display: flex; flex-direction: column; }
.order-timeline article { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; padding-bottom: 1.25rem; }
.order-timeline article:not(:last-child)::before { position: absolute; top: 0.85rem; bottom: 0; left: 0.32rem; width: 1px; background: #e0e3e7; content: ''; }
.order-timeline-marker { z-index: 1; width: 0.7rem; height: 0.7rem; margin-top: 0.25rem; border: 2px solid white; border-radius: 999px; background: var(--primary); box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.18); }
.order-timeline-heading { display: flex; justify-content: space-between; gap: 1rem; }
.order-timeline-heading strong { color: #30353d; font-size: 0.8rem; }
.order-timeline-heading time { color: #8a919a; font-size: 0.67rem; white-space: nowrap; }
.order-timeline p { margin-top: 0.25rem; color: #5f6771; font-size: 0.76rem; }
.order-timeline small { display: block; margin-top: 0.2rem; color: #90969e; font-size: 0.65rem; }

.order-customer-card,
.order-address-card,
.order-document-list,
.order-total-card .kt-card-content,
.order-technical-data { padding: 1.25rem; }

.order-customer-name { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #eceef1; }
.order-customer-name > span { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: rgba(227, 6, 19, 0.08); color: var(--primary); }
.order-customer-name div { display: flex; min-width: 0; flex-direction: column; }
.order-customer-name strong { overflow: hidden; color: #282d35; font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
.order-customer-name small { color: #858c95; font-size: 0.68rem; }
.order-customer-card a { color: var(--primary); }

.order-address-card > strong { display: block; margin-bottom: 0.4rem; color: #292e36; }
.order-address-card p { color: #5d6570; font-size: 0.8rem; line-height: 1.65; }
.order-address-card dl { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #eceef1; }

.order-document-list { display: flex; flex-direction: column; gap: 0.75rem; }
.order-document-list > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.order-document-list span { display: flex; align-items: center; gap: 0.45rem; color: #555d68; font-size: 0.76rem; }
.order-document-list strong { font-size: 0.7rem; font-weight: 600; text-align: right; }
.order-document-list p { padding-top: 0.75rem; border-top: 1px solid #eceef1; color: #8a919a; font-size: 0.65rem; line-height: 1.5; }

.order-total-card dl { display: flex; flex-direction: column; gap: 0.65rem; }
.order-total-card dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.78rem; }
.order-total-card dt { color: #747c87; }
.order-total-card dd { color: #343941; font-weight: 600; }
.order-total-final { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #dde0e4; }
.order-total-final span { color: #343941; font-size: 0.85rem; font-weight: 650; }
.order-total-final strong { color: var(--primary); font-size: 1.3rem; white-space: nowrap; }
.order-total-card p { margin-top: 0.75rem; color: #858c95; font-size: 0.68rem; text-align: right; }

.order-technical-data { display: flex; flex-direction: column; gap: 0.65rem; }
.order-technical-data div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.72rem; }
.order-technical-data span { color: #818892; }
.order-technical-data strong { color: #343941; text-align: right; }

@media (max-width: 1199px) {
    .order-stats-grid,
    .order-detail-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .orders-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .orders-filter-search { grid-column: 1 / -1; }
    .order-detail-layout { grid-template-columns: minmax(0, 1fr); }
    .order-detail-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .order-stats-grid,
    .order-detail-summary-grid,
    .orders-filter-grid,
    .order-service-grid,
    .order-notes-grid,
    .order-detail-sidebar { grid-template-columns: minmax(0, 1fr); }
    .order-detail-header { align-items: stretch; flex-direction: column; }
    .order-status-control .kt-card-content,
    .order-status-control form { align-items: stretch; flex-direction: column; }
    .order-status-control .kt-select,
    .order-status-control .kt-btn { width: 100%; }
    .order-detail-actions .kt-btn { width: 100%; }
    .order-detail-heading { align-items: flex-start; flex-direction: column; }
    .order-detail-nav { top: 60px; }
    .order-detail-page[data-active-order-tab="zakaznik"] .order-detail-sidebar { grid-template-columns: minmax(0, 1fr); }
    .order-expedition-card .kt-card-content { align-items: flex-start; flex-direction: column; }
    .order-service-grid > article { grid-template-columns: minmax(0, 1fr); }
}

@media print {
    #sidebar,
    #header,
    .order-detail-actions,
    .order-detail-nav { display: none !important; }
    #content { padding-top: 0 !important; }
    .order-detail-layout { grid-template-columns: minmax(0, 1fr) 280px; }
    .order-detail-sidebar { position: static; }
    .kt-card { break-inside: avoid; box-shadow: none !important; }
}


.no-width-tag {
    max-width: 100%;
}

.file-upload .dropzone-file-item-actions .kt-btn i {
    color: #fff;
}

.category-toggle {
    cursor: pointer;
}

.content-admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.content-admin-header h1 { color: #151820; font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 700; }
.content-admin-header p, .content-admin-help { margin-top: .2rem; color: #7c848e; font-size: .75rem; }
.content-admin-card { border-color: #e6e8ec; }
.content-admin-body { padding: 1.25rem; }
.content-block-layout, .content-contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 1.25rem; align-items: start; }
.content-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.content-field-wide { grid-column: 1 / -1; }
.content-form-grid .kt-textarea { min-height: 7rem; }
.content-switch { display: flex; align-items: center; justify-content: space-between; min-height: 2.5rem; gap: 1rem; color: #343941; font-size: .8rem; }
.content-image-editor { display: flex; flex-direction: column; gap: .75rem; }
.content-image-editor img, .content-slide-item > img { width: 100%; max-height: 250px; border: 1px solid #e5e7eb; border-radius: .75rem; background: #f7f8f9; object-fit: contain; }
.content-image-editor form, .content-inline-actions form { display: flex; flex-direction: column; gap: .65rem; }
.content-image-placeholder { display: flex; min-height: 180px; align-items: center; justify-content: center; flex-direction: column; gap: .5rem; border: 1px dashed #d8dce2; border-radius: .75rem; color: #8b929b; }
.content-slide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.content-slide-item { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; border: 1px solid #e6e8ec; border-radius: .85rem; }
.content-inline-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: end; }
.content-add-panel { margin-top: 1rem; border: 1px dashed #d9dce1; border-radius: .75rem; }
.content-add-panel summary { padding: 1rem; color: var(--primary); font-size: .85rem; font-weight: 650; cursor: pointer; }
.content-add-panel form { padding: 0 1rem 1rem; }
.content-related-products { border-top: 1px solid #eceef1; }
.content-related-products form { display: flex; flex-direction: column; gap: .75rem; }
.content-related-products .kt-select { min-height: 13rem; }
.content-section-title { margin: 0 0 1rem; font-size: 1rem; font-weight: 700; }
.content-promo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #eceef1; }
.content-promo-card { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; border: 1px solid #e6e8ec; border-radius: .85rem; }
.content-promo-card > img { width: 100%; aspect-ratio: 16/7; border-radius: .7rem; object-fit: cover; }
.content-image-upload { display: flex; gap: .75rem; align-items: end; }
.content-category-slots { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.content-category-slots label { display: flex; flex-direction: column; gap: .4rem; color: #525963; font-size: .75rem; }
.content-dynamic-card .kt-card-content { display: flex; align-items: center; gap: 1rem; }
.content-dynamic-card .kt-card-content > div { flex: 1; }
.content-dynamic-card h2 { font-weight: 700; }
.content-dynamic-card p { margin-top: .2rem; color: #747c87; font-size: .8rem; }
.content-dynamic-icon { display: grid; width: 3rem; height: 3rem; flex: 0 0 auto; border-radius: .8rem; background: #fff0f1; color: var(--primary); place-items: center; }
.content-picker { position: relative; max-width: 54rem; }
.content-picker-search { position: relative; }
.content-picker-results { position: absolute; z-index: 40; top: calc(100% + .35rem); right: 0; left: 0; max-height: 18rem; overflow-y: auto; border: 1px solid #e1e4e8; border-radius: .7rem; background: #fff; box-shadow: 0 12px 28px rgba(20,25,32,.14); }
.content-picker-results[hidden] { display: none; }
.content-picker-result { display: flex; width: 100%; flex-direction: column; gap: .15rem; padding: .7rem .85rem; text-align: left; }
.content-picker-result:hover { background: #fff1f2; color: var(--primary); }
.content-picker-result small,.content-picker-item small { color: #858c96; }
.content-picker-selected,[data-single-picker] [data-picker-selected] { display: flex; flex-direction: column; gap: .5rem; margin-top: .65rem; }
.content-picker-item { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border: 1px solid #e6e8ec; border-radius: .65rem; }
.content-picker-item span { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.content-elfsight-form { display: grid; grid-template-columns: minmax(280px,1fr) auto auto; gap: 1rem; align-items: end; }
.editorial-news-create { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 1rem; align-items: end; }
.editorial-news-create .kt-btn { min-height: 2.5rem; white-space: nowrap; }
.editorial-news-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 1.5rem; align-items: start; }
.editorial-news-layout > * { min-width: 0; }
.editorial-news-sidebar { position: sticky; top: 90px; }
.contact-hours-editor { display: flex; flex-direction: column; gap: .75rem; }
.contact-hours-editor > div { display: grid; grid-template-columns: 90px 1fr 1fr; gap: .75rem; }
.content-contact-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.content-contact-images form { display: flex; flex-direction: column; gap: .75rem; }
@media (max-width: 991px) {
    .content-block-layout, .content-contact-layout, .content-slide-grid, .content-promo-grid { grid-template-columns: minmax(0, 1fr); }
    .editorial-news-create, .editorial-news-layout { grid-template-columns: minmax(0, 1fr); }
    .editorial-news-sidebar { position: static; }
}
@media (max-width: 640px) {
    .content-admin-header { align-items: stretch; flex-direction: column; }
    .content-form-grid, .content-contact-images, .contact-hours-editor > div { grid-template-columns: minmax(0, 1fr); }
    .content-field-wide { grid-column: auto; }
    .content-inline-actions { grid-template-columns: minmax(0, 1fr); }
    .content-category-slots,.content-elfsight-form { grid-template-columns: minmax(0,1fr); }
    .content-dynamic-card .kt-card-content { align-items: flex-start; flex-direction: column; }
}
