.flowers-stock {
	display: grid;
	gap: 18px;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	background: url("../images/flor.png") center center / cover no-repeat;
	opacity: 0.05;
	pointer-events: none;
}

body {
	position: relative;
	isolation: isolate;
}

body > * {
	position: relative;
	z-index: 1;
}

.flowers-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 10px;
}

.flowers-search input,
.fsm-app input,
.fsm-app select,
.fsm-app textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: #202026;
	color: #f7f2f5;
}

.flowers-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.flowers-card {
	display: grid;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: #202026;
	color: #f7f2f5;
}

.flowers-card__image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #292931;
}

.flowers-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 420ms ease;
	will-change: transform;
}

.flowers-card:hover .flowers-card__image img,
.flowers-card:focus-within .flowers-card__image img {
	transform: scale(1.08);
}

.flowers-card__body {
	display: grid;
	gap: 10px;
	padding: 14px;
}

.flowers-card__title {
	margin: 0;
	min-height: 41px;
	font-size: 17px;
	line-height: 1.2;
}

.flowers-card__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	color: #b9adb5;
	font-size: 14px;
	line-height: 1.2;
}

.flowers-card__price {
	color: #fff;
	font-weight: 800;
	white-space: nowrap;
}

.flowers-card__stock {
	white-space: nowrap;
}

.flowers-card__button,
.flowers-search button,
.flowers-search__reset,
.fsm-app button,
.fsm-app .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: #c73597;
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.flowers-card__button:hover,
.flowers-search button:hover,
.flowers-search__reset:hover,
.fsm-app button:hover {
	background: #f86fcb;
}

.flowers-search__reset {
	background: #3a3a44;
}

.flowers-search__reset:hover {
	background: #4a4a56;
}

.flowers-empty {
	padding: 24px;
	border: 1px dashed rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	color: #b9adb5;
	text-align: center;
}

.catalog-menu__item.is-active {
	border-color: #c73597;
}

.fsm-app-body {
	margin: 0;
	background: #151518;
	color: #f7f2f5;
	font-family: Arial, Helvetica, sans-serif;
}

.fsm-app {
	width: min(100% - 20px, 560px);
	margin: 0 auto;
	padding: 18px 0 30px;
}

.fsm-app__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
}

.fsm-app__header strong {
	color: #c73597;
	font-size: 28px;
}

.fsm-app__header span {
	color: #b9adb5;
}

.fsm-app__tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}

.fsm-app__tabs button {
	min-height: 48px;
	padding: 0 8px;
	background: #292931;
	font-size: 12px;
}

.fsm-app__tabs button.is-active {
	background: #c73597;
}

.fsm-app__panel {
	display: none;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: #202026;
}

.fsm-app__panel.is-active {
	display: block;
}

.fsm-app-form {
	display: grid;
	gap: 14px;
}

.fsm-app label {
	display: grid;
	gap: 6px;
	color: #b9adb5;
	font-size: 14px;
}

.fsm-app-form__status {
	min-height: 22px;
	margin: 0;
	color: #f7f2f5;
}

.fsm-stock-list {
	display: grid;
	gap: 10px;
}

.fsm-stock-list > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border-radius: 8px;
	background: #292931;
}

.fsm-stock-list span {
	color: #b9adb5;
	white-space: nowrap;
}

.fsm-seller-body {
	min-height: 100vh;
	margin: 0;
	background: #151518;
	color: #f7f2f5;
	font-family: Arial, Helvetica, sans-serif;
}

.fsm-seller {
	width: min(100% - 32px, 1280px);
	margin: 0 auto;
	padding: 18px 0 34px;
}

.fsm-seller__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
}

.fsm-seller__header strong {
	color: #c73597;
	font-size: 30px;
	line-height: 1;
}

.fsm-seller__header span {
	color: #b9adb5;
	font-weight: 700;
}

.fsm-seller-card {
	display: grid;
	gap: 18px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(32, 32, 38, 0.94);
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.fsm-seller-card:has(.fsm-seller-sale) {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.fsm-seller-card h1 {
	margin: 0;
	font-size: 30px;
	line-height: 1.1;
}

.fsm-seller-form {
	display: grid;
	gap: 14px;
}

.fsm-seller-sale {
	grid-template-columns: minmax(360px, 0.85fr) minmax(420px, 1.15fr);
	align-items: start;
	gap: 18px;
}

.fsm-seller-toolbar {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(32, 32, 38, 0.78);
}

.fsm-seller-toolbar button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: #292931;
	color: #b9adb5;
	font-weight: 800;
	cursor: pointer;
}

.fsm-seller-toolbar button:hover,
.fsm-seller-toolbar button.is-active {
	border-color: #c73597;
	background: rgba(199, 53, 151, 0.22);
	color: #f7f2f5;
}

.fsm-seller-toolbar span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: #c73597;
	color: #fff;
	font-size: 12px;
}

.fsm-seller-sale__summary,
.fsm-seller-sale__picker {
	display: grid;
	gap: 14px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(32, 32, 38, 0.94);
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.fsm-seller-sale__summary {
	position: sticky;
	top: 16px;
}

.fsm-seller-sale__summary h2 {
	margin: 0;
	color: #c9bec7;
	font-size: 24px;
	line-height: 1.15;
}

.fsm-seller-online-customer {
	display: grid;
	gap: 6px;
	padding: 12px;
	border: 1px solid rgba(199, 53, 151, 0.34);
	border-radius: 8px;
	background: rgba(199, 53, 151, 0.12);
	color: #f7f2f5;
}

.fsm-seller-online-customer[hidden] {
	display: none;
}

.fsm-seller-online-customer strong {
	color: #f86fcb;
	font-size: 18px;
}

.fsm-seller-online-customer span {
	color: #c9bec7;
}

.fsm-seller-selected {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	align-items: start;
	gap: 14px;
	padding: 12px;
	border-radius: 8px;
	background: #292931;
}

.fsm-seller-selected-list {
	display: grid;
	gap: 10px;
}

.fsm-seller-selected img {
	width: 72px;
	height: 72px;
	border-radius: 8px;
	background: #202026;
	object-fit: cover;
}

.fsm-seller-selected strong,
.fsm-seller-selected span {
	display: block;
}

.fsm-seller-selected strong {
	color: #f7f2f5;
	font-size: 18px;
	line-height: 1.2;
}

.fsm-seller-selected span {
	margin-top: 6px;
	color: #b9adb5;
}

.fsm-seller-selected b {
	padding-right: 30px;
	white-space: nowrap;
	align-self: start;
	justify-self: end;
}

.fsm-seller-selected__meta {
	display: grid;
	gap: 4px;
	margin-top: 10px;
	color: #b9adb5;
	font-size: 13px;
}

.fsm-seller-selected__meta span {
	margin: 0;
}

.fsm-seller-selected__meta b {
	display: inline;
	padding: 0;
	color: #f7f2f5;
	font-size: inherit;
	white-space: normal;
}

.fsm-seller-selected__remove {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: rgba(21, 21, 24, 0.84);
	color: #f7f2f5;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.fsm-seller-selected__remove:hover {
	border-color: #c73597;
	background: #c73597;
}

.fsm-seller-selected__controls {
	display: grid;
	grid-column: 2 / -1;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 0;
	min-width: 0;
	max-width: 100%;
}

.fsm-seller-selected__controls label {
	min-width: 0;
	max-width: 100%;
	font-size: 12px;
}

.fsm-seller-selected__controls input,
.fsm-seller-selected__controls select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 38px;
	padding: 8px 10px;
}

.fsm-seller-empty {
	margin: 0;
	padding: 16px;
	border: 1px dashed rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	color: #b9adb5;
	text-align: center;
}

.fsm-seller-search {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: #202026;
	color: #f7f2f5;
	font: inherit;
}

.fsm-seller-search[hidden],
.fsm-seller-categories[hidden],
.fsm-seller-products[hidden] {
	display: none !important;
}

.fsm-seller-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fsm-seller-categories button {
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: #292931;
	color: #b9adb5;
	font-weight: 800;
	cursor: pointer;
}

.fsm-seller-categories button:hover,
.fsm-seller-categories button.is-active {
	border-color: #c73597;
	background: rgba(199, 53, 151, 0.22);
	color: #f7f2f5;
}

.fsm-seller-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-height: min(62vh, 620px);
	overflow: auto;
	padding-right: 4px;
}

.fsm-seller-online-panel[hidden] {
	display: none;
}

.fsm-seller-history-panel[hidden] {
	display: none;
}

.fsm-seller-online-list {
	display: grid;
	gap: 10px;
}

.fsm-seller-history-panel {
	display: grid;
	gap: 14px;
}

.fsm-seller-history-panel section {
	display: grid;
	gap: 10px;
}

.fsm-seller-history-panel h2 {
	margin: 0;
	color: #c9bec7;
	font-size: 20px;
	line-height: 1.2;
}

.fsm-seller-history-list {
	display: grid;
	gap: 8px;
	max-height: 330px;
	overflow: auto;
	padding-right: 4px;
}

.fsm-seller-history-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: #292931;
	color: #f7f2f5;
}

.fsm-seller-history-item strong,
.fsm-seller-history-item span {
	display: block;
}

.fsm-seller-history-item strong {
	line-height: 1.2;
}

.fsm-seller-history-item span {
	margin-top: 4px;
	color: #b9adb5;
	font-size: 13px;
}

.fsm-seller-history-item b {
	white-space: nowrap;
}

.fsm-seller-online-order {
	display: grid;
	gap: 6px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: #292931;
	color: #f7f2f5;
	text-align: left;
	cursor: pointer;
}

.fsm-seller-online-order:hover,
.fsm-seller-online-order.is-active {
	border-color: #c73597;
	background: rgba(199, 53, 151, 0.2);
}

.fsm-seller-online-order strong {
	color: #f86fcb;
}

.fsm-seller-online-order span,
.fsm-seller-online-order small {
	color: #b9adb5;
}

.fsm-seller-product {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	min-height: 86px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: #292931;
	color: #f7f2f5;
	text-align: left;
	cursor: pointer;
}

.fsm-seller-product[hidden] {
	display: none;
}

.fsm-seller-product:hover,
.fsm-seller-product.is-active {
	border-color: #c73597;
	background: rgba(199, 53, 151, 0.2);
}

.fsm-seller-product img {
	width: 58px;
	height: 58px;
	border-radius: 8px;
	background: #202026;
	object-fit: cover;
}

.fsm-seller-product > span {
	grid-column: 2;
	min-width: 0;
}

.fsm-seller-product:not(:has(img)) {
	grid-template-columns: minmax(0, 1fr);
}

.fsm-seller-product:not(:has(img)) > span {
	grid-column: 1;
}

.fsm-seller-product strong,
.fsm-seller-product small {
	display: block;
}

.fsm-seller-product strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	line-height: 1.22;
}

.fsm-seller-product small {
	margin-top: 5px;
	color: #b9adb5;
	font-size: 12px;
	line-height: 1.25;
	white-space: nowrap;
}

.fsm-seller-product-modal[hidden] {
	display: none;
}

.fsm-seller-product-modal [hidden] {
	display: none !important;
}

.fsm-seller-product-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.72);
}

.fsm-seller-product-modal__dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(280px, 46%) minmax(0, 1fr);
	width: min(920px, 100%);
	max-height: min(720px, 92vh);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: #202026;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.fsm-seller-product-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: rgba(21, 21, 24, 0.82);
	color: #f7f2f5;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.fsm-seller-product-modal__close:hover {
	border-color: #c73597;
	background: #c73597;
}

.fsm-seller-product-modal__image {
	min-height: 460px;
	background: #fff;
}

.fsm-seller-product-modal__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fsm-seller-product-modal__body {
	display: grid;
	gap: 14px;
	align-content: start;
	min-width: 0;
	padding: 28px;
	overflow: auto;
}

.fsm-seller-product-modal__body label,
.fsm-seller-product-modal__body input,
.fsm-seller-product-modal__body select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.fsm-seller-product-modal__body > span {
	color: #f86fcb;
	font-weight: 900;
	text-transform: uppercase;
}

.fsm-seller-product-modal__body h3 {
	margin: 0;
	color: #f7f2f5;
	font-size: 34px;
	line-height: 1.1;
}

.fsm-seller-product-modal__body p {
	margin: 0;
	color: #b9adb5;
	font-size: 18px;
}

.fsm-seller-product-modal__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #b9adb5;
}

.fsm-seller-product-modal__row strong {
	color: #f7f2f5;
	font-size: 24px;
}

.fsm-seller-product-modal__body button[data-seller-modal-add] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 4px;
	border: 0;
	border-radius: 8px;
	background: #c73597;
	color: #fff;
	font-weight: 900;
	text-transform: uppercase;
	cursor: pointer;
}

.fsm-seller-product-modal__body button[data-seller-modal-add]:hover {
	background: #f86fcb;
}

.fsm-seller-form label {
	display: grid;
	gap: 7px;
	color: #b9adb5;
}

.fsm-seller-form .fsm-seller-check {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: rgba(199, 53, 151, 0.1);
	color: #f7f2f5;
	font-weight: 800;
}

.fsm-seller-form .fsm-seller-check input[type="checkbox"] {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	min-height: 18px;
	margin: 0;
	padding: 0;
	accent-color: #c73597;
}

.fsm-seller-form .fsm-seller-check span {
	display: inline;
	color: #f7f2f5;
	font-size: 15px;
}

.fsm-seller-form input,
.fsm-seller-form select,
.fsm-seller-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(199, 53, 151, 0.12), rgba(35, 35, 43, 0.96));
	color: #f7f2f5;
	font: inherit;
	font-weight: 700;
	color-scheme: dark;
}

.fsm-seller-form input:focus,
.fsm-seller-form select:focus,
.fsm-seller-form textarea:focus {
	outline: 0;
	border-color: #c73597;
	box-shadow: 0 0 0 3px rgba(199, 53, 151, 0.22);
}

.fsm-seller-form select option {
	background: #22222a;
	color: #f7f2f5;
}

.fsm-seller-form > button,
.fsm-seller-sale__summary > button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: #c73597;
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
}

.fsm-seller-form > button:hover,
.fsm-seller-sale__summary > button:hover {
	background: #f86fcb;
}

.fsm-seller-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: #b9adb5;
}

.fsm-seller-total strong {
	color: #f7f2f5;
	font-size: 26px;
}

.fsm-seller-alert {
	margin: 0;
	padding: 12px;
	border-radius: 8px;
	font-weight: 700;
}

.fsm-seller-alert.is-success {
	border: 1px solid rgba(61, 220, 151, 0.34);
	background: rgba(61, 220, 151, 0.12);
	color: #9ff0cc;
}

.fsm-seller-alert.is-error {
	border: 1px solid rgba(255, 108, 108, 0.34);
	background: rgba(255, 108, 108, 0.12);
	color: #ffb4b4;
}

.fsm-private-stock {
	width: min(100% - 32px, 1360px);
}

.fsm-stock-stats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.fsm-stock-stats div,
.fsm-stock-table {
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: #292931;
}

.fsm-stock-stats span,
.fsm-stock-table span {
	display: block;
	color: #b9adb5;
	font-size: 13px;
}

.fsm-stock-table .fsm-stock-table__details {
	margin-top: 5px;
	color: #f7f2f5;
	font-size: 12px;
	line-height: 1.35;
}

.fsm-stock-table__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.fsm-stock-table__head h2 {
	margin: 0;
}

.fsm-stock-table__danger,
.fsm-stock-table__delete-form button {
	border: 1px solid rgba(255, 111, 203, 0.45);
	border-radius: 7px;
	background: rgba(199, 53, 151, 0.14);
	color: #ff83d7;
	font-weight: 800;
	cursor: pointer;
}

.fsm-stock-table__danger {
	padding: 8px 11px;
}

.fsm-stock-table__delete-form {
	margin-top: 7px;
}

.fsm-stock-table__delete-form button {
	padding: 5px 8px;
	font-size: 12px;
}

.fsm-stock-stats strong {
	display: block;
	margin-top: 8px;
	color: #f7f2f5;
	font-size: 28px;
	line-height: 1;
}

.fsm-stock-divider {
	height: 1px;
	margin: 14px 0;
	background: rgba(255, 255, 255, 0.14);
}

.fsm-stock-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fsm-stock-tabs button {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: #292931;
	color: #b9adb5;
	font-weight: 800;
	cursor: pointer;
}

.fsm-stock-tabs button.is-active,
.fsm-stock-tabs button:hover {
	border-color: #c73597;
	background: rgba(199, 53, 151, 0.22);
	color: #fff;
}

.fsm-stock-panel {
	display: none;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: end;
	gap: 14px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(32, 32, 38, 0.78);
}

.fsm-stock-panel.is-active {
	display: grid;
}

.fsm-stock-panel button {
	grid-column: 1 / -1;
}

.fsm-stock-panel textarea {
	min-height: 68px;
	resize: vertical;
}

.fsm-stock-panel input,
.fsm-stock-panel select,
.fsm-stock-panel textarea {
	box-sizing: border-box;
	width: 100%;
}

.fsm-receiving-workplace {
	width: min(100% - 32px, 980px);
}

.fsm-receiving-workplace .fsm-seller-card {
	width: 100%;
}

.fsm-receiving-workplace .fsm-stock-panel {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fsm-writeoff-panel {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fsm-writeoff-panel .fsm-seller-check,
.fsm-writeoff-panel label:nth-of-type(4) {
	grid-column: 1 / -1;
}

.fsm-price-panel {
	grid-template-columns: 1fr;
	align-items: stretch;
}

.fsm-price-panel h2,
.fsm-price-percent-panel p {
	margin: 0;
	color: #c9bec7;
}

.fsm-price-picker {
	display: grid;
	gap: 10px;
}

.fsm-price-results {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	max-height: 260px;
	overflow: auto;
	padding-right: 4px;
}

.fsm-price-results button {
	grid-column: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	text-align: left;
	cursor: pointer;
}

.fsm-price-results button:hover {
	border-color: #c73597;
	background: rgba(199, 53, 151, 0.18);
}

.fsm-price-results span {
	overflow: hidden;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fsm-price-results small {
	color: #c9bec7;
	font-weight: 700;
	white-space: nowrap;
}

.fsm-price-list {
	display: grid;
	gap: 8px;
	max-height: 420px;
	overflow: auto;
	padding-right: 4px;
}

.fsm-price-row {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) 90px minmax(120px, 180px) 38px;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.fsm-price-row span {
	color: #fff;
	font-weight: 800;
}

.fsm-price-row small {
	color: #c9bec7;
	font-weight: 700;
	text-align: right;
}

.fsm-price-row button {
	grid-column: auto;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 20px;
	line-height: 1;
}

.fsm-price-percent-panel {
	grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr);
}

.fsm-profit-panel {
	grid-template-columns: 1fr;
	align-items: stretch;
}

.fsm-profit-form {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.fsm-profit-form h2,
.fsm-profit-form button,
.fsm-profit-form__comment {
	grid-column: 1 / -1;
}

.fsm-profit-form h2 {
	margin: 0;
	color: #c9bec7;
}

.fsm-income-import-form h2,
.fsm-income-import-form .fsm-import-type,
.fsm-income-import-form p {
	grid-column: 1 / -1;
	margin: 0;
}

.fsm-income-import-form p {
	color: #b9adb5;
	font-size: 13px;
	line-height: 1.45;
}

.fsm-import-preview {
	grid-template-columns: 1fr;
	align-items: stretch;
}

.fsm-import-preview h2,
.fsm-import-preview p,
.fsm-import-type,
.fsm-import-price-mode {
	margin: 0;
}

.fsm-import-type,
.fsm-import-price-mode {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
}

.fsm-import-type legend,
.fsm-import-price-mode legend {
	padding: 0 6px;
	color: #c9bec7;
	font-weight: 800;
}

.fsm-import-type label,
.fsm-import-price-mode label {
	display: inline-flex;
	grid-template-columns: none;
	align-items: center;
	gap: 7px;
}

.fsm-import-type input,
.fsm-import-price-mode input {
	width: auto;
	min-height: auto;
}

.fsm-import-preview .fsm-import-price-note {
	margin: -4px 0 0;
	color: #f7f2f5;
	font-size: 13px;
	line-height: 1.45;
}

.fsm-import-price-warning {
	display: block;
	margin-top: 6px;
	color: #ffb4b4;
	font-size: 12px;
	font-weight: 800;
}

.fsm-import-table-wrap {
	overflow: auto;
}

.fsm-import-table {
	width: 100%;
	min-width: 860px;
	border-collapse: collapse;
}

.fsm-import-table th,
.fsm-import-table td {
	padding: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: left;
	vertical-align: top;
}

.fsm-import-table th {
	color: #b9adb5;
	font-size: 13px;
}

.fsm-import-table td span {
	display: block;
	margin-top: 4px;
	color: #b9adb5;
	font-size: 12px;
}

.fsm-import-table input[readonly] {
	opacity: 0.75;
}

.fsm-import-table input.is-editable {
	opacity: 1;
	border-color: #c73597;
}

.fsm-profit-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.fsm-profit-summary div {
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.fsm-profit-summary span {
	display: block;
	color: #b9adb5;
	font-size: 13px;
}

.fsm-profit-summary strong {
	display: block;
	margin-top: 6px;
	color: #f7f2f5;
	font-size: 20px;
}

.fsm-history-filter {
	display: grid;
	grid-template-columns: minmax(82px, auto) minmax(150px, 1fr) minmax(150px, 1fr) minmax(170px, 1.1fr) auto;
	align-items: end;
	gap: 10px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(32, 32, 38, 0.78);
}

[data-stock-current-tab="import"] .fsm-history-filter {
	display: none;
}

.fsm-history-filter h2 {
	grid-column: auto;
	margin: 0 8px 9px 0;
	color: #c9bec7;
	font-size: 20px;
	white-space: nowrap;
}

.fsm-history-filter label {
	min-width: 0;
}

.fsm-history-filter input {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
}

.fsm-history-filter__actions {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	align-items: end;
	justify-content: end;
	gap: 10px;
	grid-column: auto;
}

.fsm-history-filter button,
.fsm-history-filter a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 100px;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 8px;
	font-weight: 800;
	text-decoration: none;
}

.fsm-history-filter button {
	border: 0;
	background: #c73597;
	color: #fff;
	cursor: pointer;
}

.fsm-history-filter a {
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: #292931;
	color: #fff;
}

.fsm-stock-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.fsm-stock-grid[data-history-mode="general"] [data-history-modes]:not([data-history-modes~="general"]),
.fsm-stock-grid[data-history-mode="income"] [data-history-modes]:not([data-history-modes~="income"]),
.fsm-stock-grid[data-history-mode="add"] [data-history-modes]:not([data-history-modes~="add"]),
.fsm-stock-grid[data-history-mode="writeoff"] [data-history-modes]:not([data-history-modes~="writeoff"]),
.fsm-stock-grid[data-history-mode="prices"] [data-history-modes]:not([data-history-modes~="prices"]),
.fsm-stock-grid[data-history-mode="profits"] [data-history-modes]:not([data-history-modes~="profits"]) {
	display: none;
}

.fsm-stock-grid[data-history-mode="import"] [data-history-modes] {
	display: none;
}

.fsm-stock-grid[data-history-mode="prices"] .fsm-price-history-table,
.fsm-stock-grid[data-history-mode="profits"] .fsm-profit-table {
	grid-column: 1 / -1;
}

.fsm-stock-table h2 {
	margin: 0 0 12px;
	color: #c9bec7;
	font-size: 20px;
}

.fsm-stock-table table {
	width: 100%;
	border-collapse: collapse;
}

.fsm-history-block {
	max-height: 642px;
	overflow-y: auto;
	scrollbar-gutter: stable;
}

.fsm-stock-table th {
	padding: 9px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #b9adb5;
	text-align: left;
	font-size: 13px;
}

.fsm-stock-table th:last-child {
	text-align: right;
}

.fsm-stock-table td {
	padding: 9px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #f7f2f5;
	vertical-align: top;
}

.fsm-stock-table td:last-child {
	text-align: right;
	white-space: nowrap;
	font-weight: 800;
}

@media (max-width: 820px) {
	.flowers-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fsm-seller-sale {
		grid-template-columns: 1fr;
	}

	.fsm-seller-sale__summary {
		position: static;
	}

	.fsm-stock-stats,
	.fsm-stock-panel,
	.fsm-price-percent-panel,
	.fsm-profit-form,
	.fsm-profit-summary,
	.fsm-stock-grid {
		grid-template-columns: 1fr;
	}

	.fsm-history-filter {
		grid-template-columns: 1fr;
	}

	.fsm-price-row {
		grid-template-columns: 1fr 38px;
	}

	.fsm-price-row small,
	.fsm-price-row input[type="number"] {
		grid-column: 1 / -1;
		text-align: left;
	}

	.fsm-price-results {
		grid-template-columns: 1fr;
	}

	.fsm-history-filter__actions {
		grid-template-columns: 1fr 1fr;
	}

	.fsm-history-filter button,
	.fsm-history-filter a {
		width: 100%;
	}
}

@media (max-width: 520px) {
	.flowers-search,
	.flowers-grid {
		grid-template-columns: 1fr;
	}

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

	.fsm-seller {
		width: min(100% - 16px, 620px);
	}

	.fsm-seller__header {
		display: grid;
		gap: 8px;
	}

	.fsm-seller-products {
		grid-template-columns: 1fr;
		max-height: none;
	}

	.fsm-seller-selected {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.fsm-seller-selected img {
		width: 64px;
		height: 64px;
	}

	.fsm-seller-selected b {
		grid-column: 1 / -1;
	}

	.fsm-seller-selected b {
		padding-right: 0;
		justify-self: start;
	}

	.fsm-seller-product-modal {
		align-items: stretch;
		padding: 10px;
	}

	.fsm-seller-product-modal__dialog {
		grid-template-columns: 1fr;
		max-height: 100%;
		overflow: auto;
	}

	.fsm-seller-product-modal__image {
		min-height: 250px;
		max-height: 320px;
	}

	.fsm-seller-product-modal__body {
		padding: 18px;
	}

	.fsm-seller-product-modal__body h3 {
		font-size: 26px;
	}
}

@media (max-width: 720px) {
	.fsm-private-stock {
		width: min(100% - 12px, 720px);
	}

	.fsm-private-stock .fsm-seller-card {
		gap: 10px;
		padding: 12px;
	}

	.fsm-private-stock .fsm-seller-card h1 {
		margin-bottom: 0;
		font-size: 24px;
	}

	.fsm-private-stock .fsm-stock-stats,
	.fsm-private-stock .fsm-profit-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.fsm-private-stock .fsm-stock-stats div,
	.fsm-private-stock .fsm-profit-summary div,
	.fsm-private-stock .fsm-stock-table {
		padding: 10px;
	}

	.fsm-private-stock .fsm-stock-stats span,
	.fsm-private-stock .fsm-profit-summary span,
	.fsm-private-stock .fsm-stock-table span {
		font-size: 11px;
	}

	.fsm-private-stock .fsm-stock-stats strong {
		margin-top: 5px;
		font-size: 20px;
	}

	.fsm-private-stock .fsm-profit-summary strong {
		margin-top: 5px;
		font-size: 17px;
	}

	.fsm-private-stock .fsm-stock-tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.fsm-private-stock .fsm-stock-tabs button {
		min-height: 36px;
		padding: 0 8px;
		font-size: 13px;
	}

	.fsm-private-stock .fsm-stock-panel {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 10px;
	}

	.fsm-private-stock .fsm-seller-form label {
		gap: 5px;
		font-size: 12px;
	}

	.fsm-private-stock .fsm-seller-form input,
	.fsm-private-stock .fsm-seller-form select,
	.fsm-private-stock .fsm-seller-form textarea {
		min-height: 42px;
		padding: 9px 11px;
		font-size: 14px;
	}

	.fsm-private-stock .fsm-seller-form textarea {
		min-height: 64px;
	}

	.fsm-private-stock .fsm-seller-form > button {
		min-height: 42px;
		font-size: 13px;
	}

	.fsm-private-stock .fsm-price-results {
		grid-template-columns: 1fr;
		max-height: 210px;
	}

	.fsm-private-stock .fsm-price-results button {
		min-height: 42px;
		padding: 8px 10px;
	}

	.fsm-private-stock .fsm-price-row {
		grid-template-columns: 1fr 34px;
		padding: 8px;
	}

	.fsm-private-stock .fsm-price-row small,
	.fsm-private-stock .fsm-price-row input[type="number"] {
		grid-column: 1 / -1;
		text-align: left;
	}

	.fsm-private-stock .fsm-profit-form {
		grid-template-columns: 1fr;
		gap: 9px;
	}

	.fsm-private-stock .fsm-history-filter {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
		padding: 10px;
	}

	.fsm-private-stock .fsm-history-filter h2 {
		grid-column: 1 / -1;
		margin: 0;
		font-size: 18px;
	}

	.fsm-private-stock .fsm-history-filter label:nth-of-type(3),
	.fsm-private-stock .fsm-history-filter__actions {
		grid-column: 1 / -1;
	}

	.fsm-private-stock .fsm-history-filter input,
	.fsm-private-stock .fsm-history-filter button,
	.fsm-private-stock .fsm-history-filter a {
		min-height: 42px;
		font-size: 13px;
	}

	.fsm-private-stock .fsm-stock-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.fsm-private-stock .fsm-stock-table h2 {
		margin-bottom: 8px;
		font-size: 17px;
	}

	.fsm-private-stock .fsm-stock-table th,
	.fsm-private-stock .fsm-stock-table td {
		padding: 7px 0;
		font-size: 13px;
	}

	.fsm-private-stock .fsm-stock-table td:last-child {
		font-size: 14px;
	}
}

@media (max-width: 390px) {
	.fsm-private-stock .fsm-stock-stats,
	.fsm-private-stock .fsm-profit-summary {
		grid-template-columns: 1fr;
	}

	.fsm-private-stock .fsm-history-filter {
		grid-template-columns: 1fr;
	}

	.fsm-private-stock .fsm-history-filter label:nth-of-type(3),
	.fsm-private-stock .fsm-history-filter__actions {
		grid-column: auto;
	}
}
