/**
 * Дополнительные стили каркаса ЛК (scoped под .tv-lk-shell).
 * Основной layout — components/auth/style.css (.auth-layout).
 */

.tv-lk-shell__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--auth-border, #e5e7eb);
    background: var(--auth-bg-card, #fff);
    min-height: 64px;
}

.tv-lk-shell__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--auth-border, #e5e7eb);
    border-radius: var(--auth-radius, 0.5rem);
    background: transparent;
    color: var(--auth-text, #111827);
    cursor: pointer;
}

.tv-lk-shell__title {
    margin: 0;
    font-size: var(--auth-text-xl, 1.25rem);
    font-weight: var(--auth-font-semibold, 600);
    color: var(--auth-text, #111827);
}

.tv-lk-shell__subtitle {
    margin: 0.15rem 0 0;
    font-size: var(--auth-text-sm, 0.875rem);
    color: var(--auth-text-muted, #6b7280);
}

.tv-lk-shell__user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tv-lk-shell__user-name {
    font-size: var(--auth-text-sm, 0.875rem);
    color: var(--auth-text-secondary, #4b5563);
}

.tv-lk-shell__logout {
    color: var(--auth-text-muted, #6b7280);
    font-size: 1.25rem;
}

.tv-lk-sidebar__brand {
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: var(--auth-text, #111827);
}

.tv-lk-shell__inner {
    padding: 1rem 1.25rem 2rem;
}

html.dark .tv-lk-shell .lk h5,
html.dark .tv-lk-shell .lk-col-full h2,
.dark .tv-lk-shell .lk h5,
.dark .tv-lk-shell .lk-col-full h2 {
    color: #f3f4f6;
}

html.dark .tv-lk-shell .lk .font_low,
.dark .tv-lk-shell .lk .font_low {
    color: #9ca3af;
}

html.dark .tv-lk-shell .admin_catalog_order .font_low,
.dark .tv-lk-shell .admin_catalog_order .font_low,
html.dark .tv-lk-shell .admin_products .font_low,
.dark .tv-lk-shell .admin_products .font_low {
    color: #9ca3af;
}

.tv-lk-shell__inner--tickets {
    padding: 0;
    max-width: none;
}


html.tv-lk-layout-root .air-modal-overlay {
	z-index: 100005;
}
.tv-lk-shell .lk,
.tv-lk-shell .lk-content,
.tv-lk-shell .lk-tab-pane {
    min-height: auto;
}

.tv-lk-shell .lk-tab-pane {
    display: none;
}

.tv-lk-shell .lk-tab-pane.active {
    display: block;
}

.tv-lk-shell .lk-sidebar,
.tv-lk-shell .lk-tabs,
.tv-lk-shell .account_menu.sticky {
    display: none !important;
}

.tv-lk-shell #primary.lk {
    width: 100%;
    max-width: none;
    padding: 0;
}

.tv-lk-shell .lk-row {
    display: block;
}

.tv-lk-shell input[type="text"],
.tv-lk-shell input[type="email"],
.tv-lk-shell input[type="tel"],
.tv-lk-shell input[type="password"] {
    max-width: 100%;
}

/* ---- Account form (dark-theme CRM card) ---- */
.tv-lk-shell .lk-account-form,
.tv-lk-shell .lk-account-form.back-stage {
	--lk-af-bg: #ffffff;
	--lk-af-border: #e5e7eb;
	--lk-af-text: #111827;
	--lk-af-muted: #6b7280;
	--lk-af-input: #ffffff;
	--lk-af-primary: #6366f1;
	--lk-af-primary-hover: #4f46e5;
	--lk-af-ring: 0 0 0 3px rgb(99 102 241 / 0.18);
	--lk-af-switch-track: #f3f4f6;
	--lk-af-switch-seg: #6b7280;
	background: var(--lk-af-bg) !important;
	border: 1px solid var(--lk-af-border);
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
	color: var(--lk-af-text);
	padding: 1.5rem !important;
}

html.dark .tv-lk-shell .lk-account-form,
html.dark .tv-lk-shell .lk-account-form.back-stage,
.dark .tv-lk-shell .lk-account-form,
.dark .tv-lk-shell .lk-account-form.back-stage {
	--lk-af-bg: #1f2937;
	--lk-af-border: #374151;
	--lk-af-text: #f3f4f6;
	--lk-af-muted: #9ca3af;
	--lk-af-input: #111827;
	--lk-af-primary: #818cf8;
	--lk-af-primary-hover: #6366f1;
	--lk-af-ring: 0 0 0 3px rgb(129 140 248 / 0.28);
	--lk-af-switch-track: #111827;
	--lk-af-switch-seg: #9ca3af;
}

.tv-lk-shell .lk-account-form .cart-contact-title,
.tv-lk-shell .lk-account-form .customer-type-switch__title {
	color: var(--lk-af-text);
	opacity: 1;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.tv-lk-shell .lk-account-form .customer-type-switch__hint,
.tv-lk-shell .lk-account-form .font_low {
	color: var(--lk-af-muted) !important;
	opacity: 1;
}

.tv-lk-shell .lk-account-form .grid_4 {
	grid-template-rows: auto auto;
	align-items: start;
	gap: 1rem;
}

.tv-lk-shell .lk-account-form .grid_8 {
	gap: 1rem;
	align-items: start;
}

.tv-lk-shell .lk-account-form .field_item {
	gap: 0;
	margin-bottom: 0;
}

.tv-lk-shell .lk-account-form .field_item label,
.tv-lk-shell .lk-account-form label.stage,
.tv-lk-shell .lk-account-form label.border.stage,
.tv-lk-shell .lk-account-form label.helper-text-for-email,
.tv-lk-shell .lk-account-form .fields_cart_1 label:not([for="check-contact"]):not(.check) {
	display: block;
	position: static !important;
	top: auto !important;
	left: auto !important;
	margin: 0 0 0.35rem !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	border-radius: 0;
	color: var(--lk-af-muted) !important;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.25;
	min-height: 1.25rem;
	min-width: 0 !important;
	max-width: none !important;
	text-align: left !important;
	pointer-events: auto;
	z-index: auto;
	box-shadow: none;
	opacity: 1 !important;
}

.tv-lk-shell .lk-account-form .field_item input,
.tv-lk-shell .lk-account-form input[type="text"],
.tv-lk-shell .lk-account-form input[type="email"],
.tv-lk-shell .lk-account-form input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	height: 2.5rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--lk-af-border) !important;
	border-radius: 0.5rem !important;
	background: var(--lk-af-input) !important;
	color: var(--lk-af-text) !important;
	font-size: 0.875rem;
	line-height: 1.4;
}

.tv-lk-shell .lk-account-form .field_item input:focus,
.tv-lk-shell .lk-account-form input:focus {
	outline: none;
	border-color: var(--lk-af-primary) !important;
	box-shadow: var(--lk-af-ring);
}

.tv-lk-shell .lk-account-form .field_item input::placeholder,
.tv-lk-shell .lk-account-form input::placeholder {
	color: var(--lk-af-muted) !important;
	opacity: 1;
}

.tv-lk-shell .lk-account-form .field_item input[readonly] {
	opacity: 0.75;
	cursor: default;
}

.tv-lk-shell .lk-account-form .text-alert {
	color: #f87171;
}

.tv-lk-shell .lk-account-form .form.back-stage,
.tv-lk-shell .lk-account-form .lk-accordion-body .form.back-stage {
	background: transparent !important;
	color: inherit;
	padding: 0;
	margin: 0;
	border: none;
	box-shadow: none;
}

.tv-lk-shell .lk-account-form .customer-type-switch-wrap {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--lk-af-border);
}

.tv-lk-shell .lk-account-form .customer-type-switch__control {
	background: var(--lk-af-switch-track);
	border: 1px solid var(--lk-af-border);
}

.tv-lk-shell .lk-account-form .customer-type-switch__thumb {
	background: var(--lk-af-primary);
	box-shadow: 0 2px 8px rgb(99 102 241 / 0.35);
}

.tv-lk-shell .lk-account-form .customer-type-switch__segment {
	color: var(--lk-af-switch-seg);
}

.tv-lk-shell .lk-account-form .customer-type-switch__segment.is-active {
	color: #fff;
}

.tv-lk-shell .lk-account-form .customer-type-switch__segment:focus-visible {
	outline-color: var(--lk-af-primary);
}

.tv-lk-shell .lk-account-form .lk-accordion-body {
	padding-top: 1rem;
}

/* Страница входа без витринной шапки */
body.tv-auth-login-body .main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.tv-auth-login-body .route_container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 1.5rem 1rem;
}

body.tv-auth-login-body .auth-login-page,
body.tv-auth-login-body .auth-login-wrap {
    width: 100%;
    max-width: 28rem;
}

@media (min-width: 1024px) {
    .tv-lk-shell__menu-btn {
        display: none;
    }
}
