/* Instruway — кабинет администратора / клиента */
.adm-page { background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 40%, #ffffff 100%); }
.adm-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
}
.adm-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 14px;
    position: sticky;
    top: 100px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.adm-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    min-width: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.adm-ico { display: block; flex-shrink: 0; }

.user-brief-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px 8px 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.user-brief-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #0f172a;
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-brief-info h4 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}
.user-brief-info span {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.sidebar-nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.nav-tab-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}
.nav-tab-btn.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.nav-tab-btn.active:hover {
    background: #1e293b;
    color: #fff;
    box-shadow: none;
    transform: none;
}
.sidebar-logout-form {
    margin: 14px 0 0;
}
.sidebar-logout-form .sidebar-logout-link {
    margin-top: 0;
    width: 100%;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.sidebar-logout-link {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #dc2626;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s;
}
.sidebar-logout-link:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.dashboard-tab-panel { display: none; }
.dashboard-tab-panel.active { display: block; }

.panel-head-block {
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}
.panel-head-block h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.panel-head-block p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}
.panel-head-block--with-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.panel-head-block--with-action .adm-btn {
    flex-shrink: 0;
}

/* Модалки товара (добавление / общий каркас) */
.adm-product-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.6);
}
.adm-product-modal.is-open {
    display: flex;
}
.adm-product-modal__card {
    background: #fff;
    border-radius: 12px;
    width: min(820px, 100%);
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.adm-product-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 24px 14px;
    margin: 0;
    flex-shrink: 0;
    background: #fff;
    z-index: 2;
}
.adm-product-modal__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.adm-product-modal__sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.35;
}
.adm-product-modal__form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.adm-product-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 24px 8px;
}
.adm-product-modal__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #e2e8f0;
    padding: 14px 24px 18px;
    margin: 0;
    flex-shrink: 0;
    background: #fff;
    z-index: 2;
}
body.adm-modal-open {
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0f172a;
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.stat-info p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.stat-card--details {
    display: block;
    padding: 0;
    overflow: hidden;
}
.stat-card--details > summary {
    list-style: none;
}
.stat-card--details > summary::-webkit-details-marker {
    display: none;
}
.stat-card__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    user-select: none;
}
.stat-card__summary:hover {
    background: #f1f5f9;
}
.stat-card__chev {
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.stat-card--details[open] .stat-card__chev {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.stat-card__breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 14px;
    border-top: 1px solid #e2e8f0;
}
.stat-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 650;
    color: #475569;
    padding-top: 8px;
}
.stat-breakdown-row strong {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

/* Forms / fields */
.adm-card-form,
.admin-full-product-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}
.adm-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
}
.adm-section__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.adm-section__num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #9a3412;
    background: #fff7ed;
    border: 1.5px solid #f59e0b;
    border-radius: 6px;
    padding: 6px 8px;
    line-height: 1;
}
.adm-section__head h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.adm-section__head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.adm-section--modal {
    margin: 4px 0 16px;
    padding: 0;
    border: none;
    background: transparent;
}
.adm-gift {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.adm-gift__modes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.adm-gift__mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
}
.adm-gift__mode input {
    accent-color: #f59e0b;
}
.adm-gift__panel[hidden] {
    display: none !important;
}
.adm-gift__panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-modal-native-form .product-gallery-manager {
    margin-top: 0;
}

.adm-grid {
    display: grid;
    gap: 14px 16px;
}
.adm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-field--full { grid-column: 1 / -1; }

/* News block editor */
.news-block-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    background: #f8fafc;
    margin-bottom: 12px;
}
.news-block-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.news-block-card__title {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.news-fmt-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.news-fmt-hint {
    flex: 1;
    min-width: 180px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}
.news-fmt-btn {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    flex-shrink: 0;
}
.news-fmt-btn:hover,
.news-fmt-btn.is-active {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}
.news-fmt-btn em { font-style: italic; font-weight: 600; }
.news-fmt-btn u { text-decoration: underline; }
.news-fmt-btn--style {
    min-width: auto;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
}
.news-fmt-sep {
    width: 1px;
    height: 20px;
    background: #cbd5e1;
    margin: 0 2px;
    flex-shrink: 0;
}
.news-block-editor-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 6px;
}
.news-block-editor {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
    max-height: 320px;
    overflow: auto;
    background: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.65;
    color: #0f172a;
    cursor: text;
    white-space: pre-wrap;
    word-break: break-word;
}
.news-block-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
    white-space: pre-wrap;
}
.news-block-editor:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.news-block-editor b,
.news-block-editor strong { font-weight: 800; }
.news-block-editor i,
.news-block-editor em { font-style: italic; }
.news-block-editor u { text-decoration: underline; text-underline-offset: 2px; }
.news-block-editor a {
    color: #d97706;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.news-product-pick {
    position: relative;
    margin: 0 0 8px;
}
.news-product-pick input {
    width: 100%;
    box-sizing: border-box;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
}
.news-product-pick__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    max-height: 240px;
    overflow: auto;
}
.news-product-pick__option,
.news-product-pick__empty {
    padding: 8px 12px;
    font-size: 13px;
    color: #0f172a;
    cursor: pointer;
}
.news-product-pick__option:hover {
    background: #fff7ed;
}
.news-product-pick__empty {
    color: #64748b;
    cursor: default;
}
.news-block-editor h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.3;
    color: #0f172a;
}
.news-block-editor h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    color: #1e293b;
}
.news-block-photo {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}
.news-block-photo-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 8px;
}
.news-block-photo-box {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 12px;
    align-items: start;
}
.news-block-photo-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-block-photo-preview.has-image {
    border-style: solid;
    border-color: #e2e8f0;
}
.news-block-photo-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    box-sizing: border-box;
}
.news-card-preview {
    margin-top: 10px;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 10;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.news-card-preview.has-image {
    border-style: solid;
    border-color: #e2e8f0;
}
.news-card-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    box-sizing: border-box;
}
.news-card-preview__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}
.news-card-preview.has-image .news-card-preview__empty {
    display: none;
}
.news-block-photo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
.news-block-photo-empty svg {
    opacity: 0.7;
}
.news-block-photo-preview.has-image .news-block-photo-empty {
    display: none;
}
.news-block-photo-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.news-block-photo-toolbar .adm-btn {
    min-height: 40px;
}
.news-block-photo-hint {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.45;
    max-width: 260px;
}
.product-docs-editor { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 12px; }
.product-doc-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) minmax(160px, 1.4fr) auto auto;
    gap: 8px;
    align-items: center;
}
@media (max-width: 768px) {
    .product-doc-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .news-block-photo-box {
        grid-template-columns: 1fr;
    }
    .news-block-photo-preview {
        max-width: 220px;
    }
}
.adm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-grid--1 { grid-template-columns: 1fr; }
.adm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.adm-field--span2 { grid-column: span 2; }
.adm-field--check { justify-content: flex-end; padding-bottom: 2px; }
.adm-field--grow { flex: 1; min-width: 180px; }
.adm-field--sm { width: 100px; flex: 0 0 100px; }
.adm-field label,
.admin-field-node label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.adm-hint {
    font-style: normal;
    color: #d97706;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    font-size: 10px;
    margin-left: 4px;
}

.adm-phys-block {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px 14px 16px;
    margin-bottom: 12px;
}
.adm-phys-block--brutto {
    background: #fffbeb;
    border-color: #fcd34d;
}
.adm-phys-block__title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.adm-phys-block__title span {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: none;
    letter-spacing: 0;
}
.adm-phys-block--brutto .adm-phys-block__title span { color: #92400e; }
.adm-dim-unit {
    width: 72px !important;
    flex: 0 0 72px !important;
    min-width: 72px;
}

.adm-select {
    position: relative;
    width: 100%;
    min-width: 0;
}
.adm-select--unit {
    width: 78px;
    flex: 0 0 78px;
    min-width: 78px;
}
.adm-select--compact {
    width: auto;
    min-width: 150px;
    max-width: 220px;
}
.adm-select--compact .adm-select__trigger {
    min-height: 36px;
    font-size: 12px;
    padding: 0 10px;
}
.adm-select__native {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0);
}
.adm-select__trigger {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.adm-select--unit .adm-select__trigger {
    min-height: 40px;
    padding: 0 8px 0 10px;
    font-size: 13px;
    justify-content: space-between;
}
.adm-select__trigger:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.adm-select.is-open .adm-select__trigger,
.adm-select__trigger:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.adm-select__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.adm-select__chevron {
    display: inline-flex;
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.adm-select.is-open .adm-select__chevron {
    transform: rotate(180deg);
    color: #0f172a;
}
.adm-select__list {
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    max-height: 240px;
    overflow-y: auto;
    box-sizing: border-box;
}
.adm-select__list--portal {
    position: fixed;
}
.adm-select__option {
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}
.adm-select__option:hover,
.adm-select__option.is-active {
    background: #fffbeb;
    color: #92400e;
}
.adm-select__option.is-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.adm-suggest {
    position: relative;
    width: 100%;
}
.adm-suggest__input {
    width: 100%;
    padding-right: 40px !important;
}
.adm-suggest__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.adm-suggest__toggle:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.adm-suggest.is-open .adm-suggest__toggle {
    color: #0f172a;
}
.adm-suggest__list {
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    max-height: 220px;
    overflow-y: auto;
    box-sizing: border-box;
}
.adm-suggest__list--portal {
    position: fixed;
}
.adm-suggest__option {
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}
.adm-suggest__option:hover,
.adm-suggest__option.is-active {
    background: #fffbeb;
    color: #92400e;
}
.adm-suggest__empty {
    padding: 10px 12px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.4;
}

.adm-field input,
.adm-field select,
.adm-field textarea,
.admin-field-node input,
.admin-field-node select,
.admin-field-node textarea,
.inline-form input,
.inline-form select,
.admin-table input,
.admin-table select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.specs-item-single-row input,
.image-single-row-node input,
.adm-dyn-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 13.5px;
    line-height: 1.4;
    outline: none !important;
    box-shadow: none;
    transition: border-color 0.15s, background-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.adm-field input[type="checkbox"],
.adm-field input[type="radio"],
.admin-field-node input[type="checkbox"],
.admin-field-node input[type="radio"],
.admin-form input[type="checkbox"],
.admin-form input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    margin: 2px 0 0;
    border: 1.5px solid #94a3b8;
    border-radius: 4px;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: none;
}
.adm-field input[type="checkbox"]:checked,
.admin-field-node input[type="checkbox"]:checked,
.admin-form input[type="checkbox"]:checked {
    background: #0f172a;
    border-color: #0f172a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fbbf24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}
.adm-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0;
}
.adm-field label.adm-check-row,
.admin-field-node label.adm-check-row {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #334155;
}
.adm-check-row strong {
    color: #0f172a;
    font-weight: 800;
}
.adm-markdown-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    cursor: pointer;
    margin: 0;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #334155 !important;
    line-height: 1.45;
}
.adm-field label.adm-markdown-check,
.admin-field-node label.adm-markdown-check {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #334155 !important;
}
.adm-markdown-check__input {
    position: absolute !important;
    left: 0;
    top: 1px;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 2;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.adm-markdown-check__box {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    box-sizing: border-box;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    position: relative;
    margin-top: 1px;
}
.adm-markdown-check__input:focus-visible + .adm-markdown-check__box {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.adm-markdown-check__input:checked + .adm-markdown-check__box {
    background: #f59e0b;
    border-color: #f59e0b;
}
.adm-markdown-check__input:checked + .adm-markdown-check__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.adm-markdown-check__text {
    min-width: 0;
    white-space: normal;
}
.adm-markdown-check__text strong {
    color: #0f172a;
    font-weight: 800;
}
.adm-field select,
.admin-field-node select,
.admin-table select,
.admin-form select,
.adm-select--compact {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.adm-field input:focus,
.adm-field select:focus,
.adm-field textarea:focus,
.admin-field-node input:focus,
.admin-field-node select:focus,
.admin-field-node textarea:focus,
.inline-form input:focus,
.inline-form select:focus,
.admin-table input:focus,
.admin-table select:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.specs-item-single-row input:focus,
.image-single-row-node input:focus {
    border-color: #0f172a;
    background: #fff;
    outline: none !important;
    box-shadow: none !important;
}
.adm-field textarea { min-height: 96px; resize: vertical; }

.adm-toolbar-form { margin-bottom: 18px; }
.adm-toolbar-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.adm-toolbar-row .adm-field { margin: 0; }

.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.adm-btn--primary {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.adm-btn--primary:hover {
    background: #1e293b;
    color: #fff;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
    transform: none;
}
.adm-btn--dark {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
    height: auto;
    padding: 0 14px;
    min-height: 42px;
}
.adm-btn--dark:hover {
    background: #1e293b;
    color: #fff;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    transform: none;
}
.adm-btn--ghost {
    background: #f8fafc;
    color: #334155;
    border-color: #e2e8f0;
    margin-top: 10px;
}
.adm-btn--ghost:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: none;
    box-shadow: none;
}
.adm-btn--lg { height: 44px; padding: 0 22px; font-size: 13px; }

.adm-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.adm-icon-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: none;
    box-shadow: none;
}
.adm-icon-btn--danger { color: #dc2626; border-color: #fecaca; background: #fff; }
.adm-icon-btn--danger:hover { background: #fef2f2; border-color: #f87171; color: #b91c1c; }
.adm-icon-btn:disabled,
.adm-icon-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.adm-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.adm-inline-form { display: inline-flex; margin: 0; }

.adm-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    min-height: 42px;
}
.adm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.adm-switch__ui {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s;
}
.adm-switch__ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}
.adm-switch input:checked + .adm-switch__ui { background: #0f172a; }
.adm-switch input:checked + .adm-switch__ui::after { transform: translateX(18px); }
.adm-switch__label { font-size: 13px; font-weight: 700; color: #0f172a; text-transform: none; letter-spacing: 0; }

.adm-check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.adm-check input { position: absolute; opacity: 0; pointer-events: none; }
.adm-check span {
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    display: inline-block;
    position: relative;
}
.adm-check input:checked + span {
    background: #0f172a;
    border-color: #0f172a;
}
.adm-check input:checked + span::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.admin-dimensions-flex-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}
.admin-dimensions-flex-row span {
    color: #94a3b8;
    font-weight: 700;
}
.admin-dimensions-flex-row input { text-align: center; }

.admin-specs-builder-box,
.admin-image-manager-section-card {
    margin-top: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
}
.specs-builder-header {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 10px;
}
.admin-specs-wrapper-inner,
.admin-images-inputs-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.specs-item-single-row,
.specs-single-row-node {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: center;
}
.image-single-row-node {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    align-items: center;
}
.admin-image-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.admin-image-main-select-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}
.admin-row-remove-cross-btn,
.row-delete-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #dc2626;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}
.admin-row-remove-cross-btn:hover,
.row-delete-btn:hover {
    background: #fef2f2;
    transform: none;
    box-shadow: none;
}
.admin-form-actions-submit-bar {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}
.admin-image-preview-box img {
    margin-top: 10px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.product-gallery-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.product-gallery-count {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 10px;
}
.product-gallery-hint {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}
.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
}
.product-gallery-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}
.product-gallery-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: grab;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.product-gallery-card.is-main {
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px #f59e0b;
}
.product-gallery-card.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
}
.product-gallery-card.is-drag-over {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}
.product-gallery-card.is-pending {
    opacity: 0.8;
    cursor: default;
    border-style: dashed;
}
.product-gallery-card__order {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.product-gallery-card__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    background: #f59e0b;
    color: #0f172a;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.product-gallery-card__badge--pending {
    background: #64748b;
    color: #fff;
}
.product-gallery-card__thumb {
    width: 100%;
    height: 120px;
    background: #f1f5f9;
    overflow: hidden;
}
.product-gallery-card__thumb img,
.product-gallery-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
    pointer-events: none;
}
.product-gallery-card__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    flex-wrap: wrap;
}
.product-gallery-card__move {
    display: inline-flex;
    gap: 2px;
}
.product-gallery-move-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}
.product-gallery-move-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.product-gallery-move-btn:not(:disabled):hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.product-gallery-set-main-btn {
    flex: 1;
    min-width: 0;
    padding: 6px 8px !important;
    font-size: 10px !important;
}
.product-gallery-main-label {
    flex: 1;
    font-size: 10px;
    font-weight: 800;
    color: #166534;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-gallery-remove-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff;
    color: #dc2626;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}
.product-gallery-remove-btn:hover {
    background: #fef2f2;
}
.adm-cat-check-tree-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px 14px;
    max-height: 260px;
    overflow: auto;
}
.adm-cat-check-tree {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.adm-cat-check-tree--nested {
    margin-top: 6px;
    margin-left: 14px;
    padding-left: 10px;
    border-left: 2px solid #e2e8f0;
}
.adm-cat-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    user-select: none;
}
.adm-cat-check-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.adm-cat-check-item input[type="checkbox"]:hover {
    border-color: #f59e0b;
}
.adm-cat-check-item input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.adm-cat-check-item input[type="checkbox"]:checked {
    background: #f59e0b;
    border-color: #f59e0b;
}
.adm-cat-check-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.adm-field-hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}
.adm-field--span2 {
    grid-column: span 2;
}
.admin-field-node--span2 {
    grid-column: 1 / -1;
}
.adm-cat-badge--root {
    background: #dbeafe;
    color: #1d4ed8;
}
.cat-add-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.cat-add-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
    font-weight: 650;
}
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cat-group {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}
.cat-group.is-off { opacity: 0.72; }
.cat-sub-line {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cat-sub-line--root {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.cat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.cat-row__mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #0f172a;
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cat-row__mark svg { display: block; }
.cat-drag-handle {
    width: 28px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    cursor: grab;
    flex-shrink: 0;
    border-radius: 6px;
    user-select: none;
}
.cat-drag-handle:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.cat-drag-handle:active { cursor: grabbing; }
.cat-group.is-dragging,
.cat-sub-line.is-dragging {
    opacity: 0.55;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.cat-group.is-drag-over,
.cat-sub-line.is-drag-over {
    outline: 2px dashed #f59e0b;
    outline-offset: 2px;
}
.cat-row input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 10px;
    font: inherit;
    font-weight: 700;
}
.cat-row--root input[type="text"] { font-weight: 800; }
.cat-row__on {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    cursor: pointer;
}
.cat-row__on input { accent-color: #0f172a; }
.cat-subs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 12px;
}
.cat-sub-line.is-off { opacity: 0.65; }
.cat-add-sub {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.cat-add-sub input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    font: inherit;
    background: #f8fafc;
}
.adm-cat-check-group {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}
.adm-cat-check-group__title {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adm-cat-check-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.adm-cat-check-item--root span {
    color: #0f172a;
    font-weight: 800;
}
.adm-btn--sm {
    padding: 6px 10px !important;
    font-size: 11px !important;
}
.adm-cat-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    padding: 2px 8px;
    vertical-align: middle;
}
.adm-cat-row--sub td:first-child {
    color: #94a3b8;
}
@media (max-width: 768px) {
    .cat-add-bar,
    .cat-add-sub,
    .cat-row,
    .cat-sub-line {
        flex-wrap: wrap;
    }
    .cat-row__on { width: 100%; }
}

.adm-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 12px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}
.adm-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    font-weight: 800;
}
.adm-sort-link:hover {
    color: #c2410c;
}
.adm-kit {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.adm-kit__rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.adm-kit__row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 88px minmax(0, 1fr) 36px;
    gap: 8px;
    align-items: center;
}
.adm-kit__qty {
    text-align: center;
}
@media (max-width: 720px) {
    .adm-kit__row {
        grid-template-columns: 1fr 1fr 36px;
    }
    .adm-kit__row .adm-dyn-input:first-child {
        grid-column: 1 / -2;
    }
}
.adm-list-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.adm-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
    min-width: 680px;
}
.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}
.admin-table th {
    background: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #fafbfc; }
.adm-muted { color: #94a3b8; font-size: 12px; }
.adm-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #334155;
}
.adm-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.adm-badge--warn {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.adm-badge--ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.adm-order-card--active {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18);
}
.adm-order-card--active .adm-order-card__head {
    background: #fffbeb;
}
.adm-order-card--active .adm-order-card__head:hover {
    background: #fef3c7;
}
.adm-order-card--active .adm-order-card__body {
    background: #fffdf5;
    border-top-color: #fde68a;
}
.adm-order-card--done {
    border-color: #bbf7d0;
}

/* Кабинет покупателя */
.cab-block {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 18px;
    background: #fff;
}
.cab-block__head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.cab-block__head h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}
.cab-block__head p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.cab-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-bottom: 16px;
}
.cab-form .adm-btn { margin-top: 4px; }
.cab-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
}
.cab-check input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #0f172a;
    flex-shrink: 0;
}
.cab-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #94a3b8;
}
.cab-section-title {
    margin: 8px 0 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.cab-empty {
    padding: 28px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
.cab-empty a { color: #0f172a; font-weight: 700; }
.cab-empty--promos strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: #0f172a;
}
.cab-empty--promos p { margin: 0; }
.sidebar-nav-tabs .nav-tab-btn span,
.sidebar-nav-tabs .sidebar-logout-link span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.adm-input--wide { min-width: 160px; }
.adm-input--num { width: 72px; }

.adm-payer-switch {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 8px;
}
.adm-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.adm-radio input { accent-color: #0f172a; }
.adm-corp-block {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
    margin-top: 4px;
}

.manager-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}
.adm-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}
.adm-contact-link:hover { color: #d97706; }

.admin-form-section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    margin: 0 0 14px;
}
.admin-form-two-column-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form-three-column-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-field-node { display: flex; flex-direction: column; gap: 6px; }
.admin-add-spec-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #334155;
    cursor: pointer;
}
.admin-upload-img-btn {
    background: #0f172a;
    color: #fff;
    border: 1px solid #0f172a;
    border-radius: 8px;
    padding: 0 14px;
    min-height: 42px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .adm-shell,
    .dashboard-wrapper {
        grid-template-columns: 1fr !important;
    }
    .adm-sidebar,
    .dashboard-sidebar {
        position: static !important;
    }
    .sidebar-nav-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }
    .sidebar-nav-tabs .nav-tab-btn,
    .sidebar-nav-tabs .sidebar-logout-link {
        min-height: 44px;
        height: auto;
        white-space: normal;
        line-height: 1.25;
        align-items: flex-start;
    }
    .sidebar-logout-link { grid-column: 1 / -1; margin-top: 4px; }
    .cab-form-grid { grid-template-columns: 1fr; }
}
.adm-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.adm-order-card {
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.adm-order-card.is-open {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.adm-order-card__head {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(140px, 1.2fr) minmax(120px, 1.4fr) auto auto 18px;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}
.adm-order-card__head:hover { background: #f8fafc; }
.adm-order-card__num {
    font-weight: 800;
    color: #0f172a;
    font-size: 13.5px;
}
.adm-order-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
}
.adm-order-card__sum {
    font-weight: 800;
    white-space: nowrap;
}
.adm-order-card__chev {
    width: 8px;
    height: 8px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    justify-self: end;
}
.adm-order-card.is-open .adm-order-card__chev {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.adm-order-card__body {
    padding: 0 16px 16px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}
.adm-order-card__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.adm-order-status-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.adm-order-details__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.adm-order-details__grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}
.adm-order-details__block {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.adm-order-details__block h5 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}
.adm-order-details__block p { margin: 0 0 4px; font-size: 13.5px; }
.adm-order-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.adm-order-items th,
.adm-order-items td {
    padding: 8px 6px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}
.adm-order-items th {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}
.adm-order-details__total {
    margin: 0;
    font-size: 16px;
    text-align: right;
}
@media (max-width: 900px) {
    .adm-order-card__head {
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
    }
    .adm-order-card__chev {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        margin-top: 6px;
    }
    .adm-order-details__grid { grid-template-columns: 1fr; }
    .adm-order-items { display: block; overflow-x: auto; }
}
@media (max-width: 768px) {
    .adm-main { padding: 16px; }
    .stats-grid,
    .adm-grid--2,
    .adm-grid--3,
    .admin-form-two-column-grid,
    .admin-form-three-column-grid,
    .specs-item-single-row,
    .specs-single-row-node,
    .image-single-row-node {
        grid-template-columns: 1fr !important;
    }
    .adm-field--span2 { grid-column: auto; }
    .admin-dimensions-flex-row {
        grid-template-columns: 1fr;
    }
    .admin-dimensions-flex-row span { display: none; }
    .adm-toolbar-row { flex-direction: column; align-items: stretch; }
    .adm-field--sm { width: 100%; flex: 1; }
}

/* ===== Метрика посещений ===== */
.adm-metrics-periods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.adm-metrics-empty {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}
.adm-metrics-card {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
}
.adm-metrics-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.adm-metrics-chart {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
}
.adm-metrics-chart__bars,
.adm-metrics-chart__labels {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    min-width: 100%;
}
.adm-metrics-chart__bars {
    height: 170px;
}
.adm-metrics-chart__labels {
    height: 16px;
    align-items: flex-start;
    margin-top: 4px;
}
.adm-metrics-bar {
    flex: 1 1 0;
    min-width: 8px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.adm-metrics-bar__fill {
    display: block;
    width: 100%;
    max-width: 34px;
    min-height: 3px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    transition: background 0.15s ease;
}
.adm-metrics-bar:hover .adm-metrics-bar__fill {
    background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
}
.adm-metrics-bar__label {
    flex: 1 1 0;
    min-width: 8px;
    text-align: center;
    font-size: 10px;
    line-height: 16px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
}
.adm-metrics-chart--hours .adm-metrics-bar__fill {
    background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
}
.adm-metrics-chart--hours .adm-metrics-bar:hover .adm-metrics-bar__fill {
    background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
}
@media (max-width: 1100px) {
    .adm-metrics-columns { grid-template-columns: 1fr; }
}

/* ===== Выгрузка товаров в XLS ===== */
.adm-export-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    box-sizing: border-box;
}
.adm-export-form__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
}
.adm-export-form__select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}
.adm-export-form__select:focus {
    outline: none;
    border-color: #0f172a;
}
@media (max-width: 768px) {
    .adm-export-form {
        width: 100%;
        flex-wrap: wrap;
    }
    .adm-export-form__select { flex: 1 1 auto; }
}
