:root {
	--lps-purple-900: #3f185f;
	--lps-purple-700: #632c83;
	--lps-purple-100: #f1e8f7;
	--lps-ink: #211a27;
	--lps-muted: #655d6b;
	--lps-line: #ded8e2;
	--lps-surface: #ffffff;
	--lps-background: #f7f4f8;
	--lps-open: #176b3a;
	--lps-open-bg: #e8f6ed;
	--lps-closed: #a22727;
	--lps-closed-bg: #fcecec;
	--lps-focus: #8a4db0;
	--lps-radius: 16px;
	--lps-shadow: 0 12px 35px rgba(47, 27, 57, 0.09);
}

body.lps-panel-page {
	background: var(--lps-background);
}

/* Flatsome ve yaygın WordPress temalarının site başlığını yalnızca stok panelinde gizler. */
body.lps-panel-page #header,
body.lps-panel-page .header-wrapper,
body.lps-panel-page #masthead,
body.lps-panel-page .site-header {
	display: none !important;
}

/* Tema tarafından basılan ikinci sayfa başlığını kaldırır; panelin kendi başlığı korunur. */
body.lps-panel-page .page-header-wrapper,
body.lps-panel-page #main > .page-title,
body.lps-panel-page .entry-header {
	display: none !important;
}

body.lps-panel-page #main {
	padding-top: 0 !important;
}

.lps-shell,
.lps-shell * {
	box-sizing: border-box;
}

.lps-shell {
	width: min(1180px, calc(100% - 24px));
	margin: 32px auto 56px;
	color: var(--lps-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.lps-shell button,
.lps-shell input {
	font: inherit;
}

.lps-shell button,
.lps-shell a,
.lps-shell input[type="checkbox"] {
	cursor: pointer;
}

.lps-shell :focus-visible {
	outline: 3px solid color-mix(in srgb, var(--lps-focus) 70%, white);
	outline-offset: 3px;
}

.lps-eyebrow {
	margin: 0 0 3px;
	color: var(--lps-purple-700);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.lps-brand-mark {
	display: grid;
	width: 54px;
	height: 54px;
	margin: 0 auto 16px;
	place-items: center;
	border-radius: 17px;
	background: var(--lps-purple-700);
	color: white;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.lps-login-card,
.lps-access-card {
	width: min(440px, 100%);
	margin: 9vh auto;
	padding: clamp(26px, 6vw, 44px);
	border: 1px solid var(--lps-line);
	border-radius: 22px;
	background: var(--lps-surface);
	box-shadow: var(--lps-shadow);
	text-align: center;
}

.lps-login-card h1,
.lps-access-card h1 {
	margin: 0;
	color: var(--lps-ink);
	font-size: clamp(28px, 7vw, 38px);
	line-height: 1.15;
}

.lps-login-copy,
.lps-access-card p {
	margin: 12px 0 24px;
	color: var(--lps-muted);
}

.lps-login-form {
	display: grid;
	gap: 9px;
	text-align: left;
}

.lps-login-form > label:not(.lps-remember) {
	margin-top: 7px;
	color: var(--lps-ink);
	font-size: 14px;
	font-weight: 700;
}

.lps-login-form input[type="text"],
.lps-login-form input[type="password"],
.lps-search input {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #c9c1cf;
	border-radius: 11px;
	background: white;
	color: var(--lps-ink);
	box-shadow: none;
}

.lps-login-form input:focus,
.lps-search input:focus {
	border-color: var(--lps-purple-700);
}

.lps-remember,
.lps-select-visible {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 9px;
	color: var(--lps-muted);
	font-size: 14px;
}

.lps-remember input,
.lps-select-visible input,
.lps-product-select input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--lps-purple-700);
}

.lps-lost-password {
	display: inline-block;
	margin-top: 18px;
	color: var(--lps-purple-700);
	font-size: 14px;
	font-weight: 700;
}

.lps-alert {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	text-align: left;
}

.lps-alert-error {
	border: 1px solid #e7b5b5;
	background: var(--lps-closed-bg);
	color: #781d1d;
}

.lps-panel {
	display: grid;
	gap: 20px;
}

.lps-panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 4px 2px 8px;
}

.lps-panel-header h1 {
	margin: 0;
	color: var(--lps-ink);
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.1;
}

.lps-header-copy {
	margin: 8px 0 0;
	color: var(--lps-muted);
}

.lps-user-area {
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: 12px;
	font-size: 14px;
}

.lps-user-area span {
	font-weight: 700;
}

.lps-user-area a {
	color: var(--lps-purple-700);
	font-weight: 700;
}

.lps-command-row {
	display: grid;
	gap: 20px;
}

.lps-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	overflow: hidden;
	border: 1px solid var(--lps-line);
	border-radius: var(--lps-radius);
	background: var(--lps-surface);
	box-shadow: 0 5px 18px rgba(47, 27, 57, 0.05);
}

.lps-summary > div {
	display: grid;
	gap: 1px;
	min-width: 0;
	padding: 17px clamp(12px, 3vw, 24px);
	border-right: 1px solid var(--lps-line);
}

.lps-summary > div:last-child {
	border-right: 0;
}

.lps-summary-value {
	color: var(--lps-ink);
	font-size: clamp(24px, 5vw, 32px);
	font-weight: 800;
	line-height: 1.1;
}

.lps-summary > div > span:last-child {
	overflow: hidden;
	color: var(--lps-muted);
	font-size: 13px;
	font-weight: 600;
	text-overflow: ellipsis;
}

.lps-text-open {
	color: var(--lps-open);
}

.lps-text-closed {
	color: var(--lps-closed);
}

.lps-toolbar,
.lps-bulk-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--lps-line);
	border-radius: var(--lps-radius);
	background: var(--lps-surface);
}

.lps-search {
	min-width: 230px;
	flex: 1;
}

.lps-filters {
	display: inline-flex;
	padding: 4px;
	border-radius: 11px;
	background: #eee9f0;
}

.lps-filters button {
	min-height: 40px;
	padding: 8px 15px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--lps-muted);
	font-weight: 700;
}

.lps-filters button.is-active {
	background: white;
	color: var(--lps-purple-900);
	box-shadow: 0 2px 7px rgba(47, 27, 57, 0.12);
}

.lps-bulk-bar {
	position: sticky;
	top: 10px;
	z-index: 8;
	box-shadow: 0 8px 24px rgba(47, 27, 57, 0.08);
}

.lps-selected-count {
	margin-right: auto;
	color: var(--lps-muted);
	font-size: 14px;
}

.lps-bulk-actions {
	display: flex;
	gap: 8px;
}

.lps-button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 10px 17px;
	border: 1px solid transparent;
	border-radius: 11px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.lps-button-primary {
	background: var(--lps-purple-700);
	color: white;
}

.lps-button-primary:hover {
	background: var(--lps-purple-900);
	color: white;
}

.lps-button-secondary {
	border-color: var(--lps-line);
	background: white;
	color: var(--lps-purple-700);
}

.lps-button-open {
	border-color: #82c99d;
	background: var(--lps-open-bg);
	color: #0d5a2e;
}

.lps-button-open:hover:not(:disabled) {
	background: #d4efde;
	color: #084a25;
}

.lps-button-close {
	border-color: #e5a6a6;
	background: var(--lps-closed-bg);
	color: #8a1f1f;
}

.lps-button-close:hover:not(:disabled) {
	background: #f8dcdc;
	color: #721616;
}

.lps-button:disabled {
	cursor: not-allowed;
	opacity: 0.52;
}

.lps-product-list {
	display: grid;
	gap: 11px;
}

.lps-product-card {
	display: grid;
	grid-template-columns: 28px 76px minmax(0, 1fr) minmax(145px, auto);
	align-items: center;
	gap: 14px;
	min-height: 108px;
	padding: 14px 16px;
	border: 1px solid var(--lps-line);
	border-radius: var(--lps-radius);
	background: var(--lps-surface);
	box-shadow: 0 3px 12px rgba(47, 27, 57, 0.04);
}

.lps-product-card.is-busy {
	background: #fcfbfd;
}

.lps-product-select {
	display: grid;
	min-width: 28px;
	min-height: 44px;
	place-items: center;
}

.lps-product-image {
	width: 76px;
	height: 76px;
	border-radius: 12px;
	background: #f0edf2;
	object-fit: cover;
}

.lps-product-info {
	min-width: 0;
}

.lps-product-info h2 {
	margin: 4px 0 2px;
	color: var(--lps-ink);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
}

.lps-product-info > p {
	margin: 0;
	color: var(--lps-muted);
	font-size: 13px;
}

.lps-product-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 800;
}

.lps-product-state > span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.lps-product-state.is-open {
	color: var(--lps-open);
}

.lps-product-state.is-closed {
	color: var(--lps-closed);
}

.lps-product-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 7px;
}

.lps-info-badge {
	padding: 3px 7px;
	border-radius: 6px;
	background: #f0edf2;
	color: #574e5e;
	font-size: 11px;
	font-weight: 700;
}

.lps-product-action {
	width: 100%;
}

.lps-loading-card {
	height: 108px;
	border: 1px solid var(--lps-line);
	border-radius: var(--lps-radius);
	background: linear-gradient(90deg, #f2eef4 25%, #faf8fb 50%, #f2eef4 75%);
	background-size: 200% 100%;
	animation: lps-loading 1.2s linear infinite;
}

@keyframes lps-loading {
	to { background-position: -200% 0; }
}

.lps-empty,
.lps-load-error {
	padding: 42px 20px;
	border: 1px dashed #c9c1cf;
	border-radius: var(--lps-radius);
	background: rgba(255, 255, 255, 0.55);
	text-align: center;
}

.lps-empty h2,
.lps-load-error strong {
	margin: 0;
	color: var(--lps-ink);
	font-size: 18px;
}

.lps-empty p,
.lps-load-error p {
	margin: 5px 0 0;
	color: var(--lps-muted);
}

.lps-notice {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99999;
	max-width: min(420px, calc(100% - 36px));
	padding: 13px 16px;
	border: 1px solid transparent;
	border-radius: 11px;
	box-shadow: var(--lps-shadow);
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.lps-notice.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.lps-notice.is-success {
	border-color: #82c99d;
	background: #f2fbf5;
	color: #0b5429;
}

.lps-notice.is-error {
	border-color: #e5a6a6;
	background: #fff4f4;
	color: #7b1d1d;
}

.lps-history {
	border: 1px solid var(--lps-line);
	border-radius: var(--lps-radius);
	background: var(--lps-surface);
}

.lps-history summary {
	min-height: 50px;
	padding: 14px 17px;
	cursor: pointer;
	font-weight: 800;
}

.lps-history-list {
	padding: 0 17px 12px;
}

.lps-history-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-top: 1px solid #eee9f0;
}

.lps-history-row > div {
	display: grid;
	gap: 2px;
}

.lps-history-row > div:last-child {
	justify-items: end;
}

.lps-history-row span,
.lps-history-row time,
.lps-history-list > p {
	color: var(--lps-muted);
	font-size: 12px;
}

.lps-history-status.is-open {
	color: var(--lps-open);
}

.lps-history-status.is-closed,
.lps-history-error {
	color: var(--lps-closed);
}

@media (min-width: 900px) {
	.lps-shell {
		margin-top: 18px;
		margin-bottom: 40px;
	}

	.lps-panel {
		gap: 12px;
	}

	.lps-panel-header {
		align-items: center;
		gap: 16px;
		padding: 0 2px;
	}

	.lps-panel-header > div:first-child {
		display: flex;
		min-width: 0;
		align-items: baseline;
		gap: 12px;
	}

	.lps-panel-header .lps-eyebrow {
		display: none;
	}

	.lps-panel-header h1 {
		font-size: 28px;
		white-space: nowrap;
	}

	.lps-header-copy {
		overflow: hidden;
		margin: 0;
		font-size: 13px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.lps-user-area {
		min-height: 36px;
	}

	.lps-command-row {
		grid-template-columns: minmax(360px, auto) minmax(420px, 1fr);
		gap: 10px;
	}

	.lps-summary {
		border-radius: 12px;
		box-shadow: none;
	}

	.lps-summary > div {
		display: flex;
		align-items: baseline;
		gap: 6px;
		padding: 8px 12px;
		white-space: nowrap;
	}

	.lps-summary-value {
		font-size: 20px;
	}

	.lps-summary > div > span:last-child {
		font-size: 11px;
	}

	.lps-toolbar {
		gap: 8px;
		padding: 6px;
		border-radius: 12px;
	}

	.lps-search input {
		min-height: 40px;
		padding: 8px 11px;
	}

	.lps-filters {
		padding: 3px;
	}

	.lps-filters button {
		min-height: 34px;
		padding: 6px 10px;
	}

	.lps-bulk-bar {
		top: 6px;
		gap: 10px;
		padding: 7px 10px;
		border-radius: 12px;
	}

	.lps-select-visible {
		min-height: 40px;
	}

	.lps-button {
		min-height: 40px;
		padding: 8px 13px;
	}
}

@media (max-width: 720px) {
	.lps-shell {
		width: min(100% - 16px, 650px);
		margin-top: 20px;
	}

	.lps-panel-header {
		display: grid;
	}

	.lps-user-area {
		justify-content: space-between;
	}

	.lps-toolbar,
	.lps-bulk-bar {
		align-items: stretch;
		flex-direction: column;
	}

	.lps-filters,
	.lps-bulk-actions {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.lps-bulk-actions {
		grid-template-columns: 1fr 1fr;
	}

	.lps-product-card {
		grid-template-columns: 26px 64px minmax(0, 1fr);
		gap: 11px;
		padding: 13px;
	}

	.lps-product-image {
		width: 64px;
		height: 64px;
	}

	.lps-product-action {
		grid-column: 2 / -1;
	}

	.lps-summary > div {
		padding: 14px 9px;
	}

	.lps-summary > div > span:last-child {
		font-size: 11px;
	}
}

@media (max-width: 390px) {
	.lps-history-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.lps-history-row > div:last-child {
		justify-items: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lps-shell *,
	.lps-shell *::before,
	.lps-shell *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
