/* ===== A5SM ADMIN STOCK PAGE ===== */

.a5sm-wrap .a5sm-page-title {
	margin-bottom: 12px;
}

.a5sm-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 12px;
}

.a5sm-category-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a5sm-category-tabs a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
	color: #1d2327;
	line-height: 1.4;
}

.a5sm-category-tabs a.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.a5sm-category-count {
	font-size: 11px;
	opacity: 0.75;
}

.a5sm-toolbar-side {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.a5sm-search-form,
.a5sm-settings-form {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.a5sm-settings-form input[type='number'] {
	width: 64px;
}

.a5sm-attributes-picker {
	position: relative;
	display: inline-block;
}

.a5sm-attributes-picker summary {
	cursor: pointer;
	padding: 4px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	line-height: 1.6;
}

.a5sm-attributes-picker-list {
	position: absolute;
	top: calc(100% + 4px);
	inset-inline-end: 0;
	z-index: 30;
	min-width: 260px;
	max-height: 320px;
	overflow-y: auto;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.a5sm-attributes-picker-hint {
	margin: 0 0 8px;
	color: #646970;
	font-size: 12px;
}

.a5sm-attributes-picker-item {
	display: flex;
	gap: 6px;
	align-items: center;
	padding: 2px 0;
}

.a5sm-actionbar {
	position: sticky;
	top: 32px;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	margin-bottom: 8px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.a5sm-mode-toggle {
	display: inline-flex;
	gap: 14px;
}

.a5sm-actionbar-side {
	display: inline-flex;
	gap: 10px;
	align-items: center;
}

.a5sm-save-status.is-saving {
	color: #996800;
}

.a5sm-save-status.is-saved {
	color: #00753d;
}

.a5sm-save-status.is-error {
	color: #b32d2e;
}

.a5sm-hint {
	color: #646970;
	margin-top: 0;
}

.a5sm-table-scroll {
	overflow-x: auto;
}

.a5sm-stock-table {
	width: max-content;
	min-width: 100%;
}

.a5sm-stock-table td,
.a5sm-stock-table th {
	vertical-align: middle;
}

.a5sm-stock-table .a5sm-col-image {
	width: 84px;
	min-width: 84px;
}

.a5sm-stock-table .a5sm-col-product {
	min-width: 220px;
	max-width: 340px;
}

.a5sm-stock-table .a5sm-col-sku {
	min-width: 90px;
	white-space: nowrap;
}

.a5sm-stock-table .a5sm-col-price {
	min-width: 90px;
	white-space: nowrap;
}

.a5sm-stock-table .a5sm-col-size {
	min-width: 68px;
	text-align: center;
}

.a5sm-stock-table .a5sm-col-total {
	min-width: 68px;
	text-align: center;
	font-weight: 600;
}

.a5sm-product-thumb,
.a5sm-stock-table .a5sm-col-image img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.a5sm-stock-input {
	width: 58px;
	text-align: center;
	border-radius: 4px;
}

.a5sm-cell-na {
	color: #a7aaad;
	text-align: center;
}

.a5sm-cell-low {
	background: #fcf9e8 !important;
}

.a5sm-cell-low .a5sm-stock-input {
	border-color: #dba617;
	background: #fffbeb;
}

.a5sm-cell-out {
	background: #fcf0f1 !important;
}

.a5sm-cell-out .a5sm-stock-input {
	border-color: #b32d2e;
	background: #fff0f0;
	color: #b32d2e;
	font-weight: 600;
}

.a5sm-input-dirty {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.a5sm-mode-add .a5sm-stock-input {
	background: #eef6ff;
}

.a5sm-foot-label {
	text-align: right;
}

.a5sm-summary {
	color: #646970;
}

.a5sm-log-table .a5sm-delta-negative {
	color: #b32d2e;
	font-weight: 600;
}

.a5sm-log-table .a5sm-delta-positive {
	color: #00753d;
	font-weight: 600;
}

.a5sm-log-pagination {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

/* ===== A5SM FRONTEND SOLD-OUT ===== */

.a5sm-size-row-out {
	opacity: 0.55;
}

.a5sm-size-row-out .aria5-print-size-quantity {
	pointer-events: none;
}

.a5sm-out-badge {
	display: inline-block;
	margin-inline-start: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(179, 45, 46, 0.14);
	color: #d64545;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}
