:root {
	--bg: #eef4f8;
	--panel: #ffffff;
	--ink: #172033;
	--muted: #667085;
	--line: #d8e1ea;
	--field: #f8fafc;
	--accent: #009b7a;
	--accent-dark: #006c58;
	--accent-soft: #e3f8f1;
	--blue: #2563eb;
	--blue-soft: #e7efff;
	--rose: #d92d4c;
	--rose-soft: #ffe7ed;
	--amber-soft: #fff4d6;
	--amber: #7a4d00;
	--shadow: 0 20px 50px rgba(24, 38, 61, 0.13);
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(circle at top left, rgba(0, 155, 122, 0.18), transparent 32%),
		radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.15), transparent 30%),
		linear-gradient(180deg, #f8fbfd, var(--bg));
	color: var(--ink);
	font-family: Arial, Helvetica, sans-serif;
}

img {
	max-width: 100%;
}

.top-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: min(1500px, calc(100% - 32px));
	margin: 18px auto 0;
	border: 1px solid rgba(216, 225, 234, 0.9);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 14px 34px rgba(24, 38, 61, 0.1);
	padding: 10px;
}

.top-nav.simple-nav {
	justify-content: flex-end;
}

.nav-brand {
	display: flex;
	align-items: center;
	min-width: 180px;
}

.brand-logo {
	display: block;
	width: clamp(170px, 18vw, 270px);
	height: auto;
	max-height: 72px;
	object-fit: contain;
}

.order-brand-logo {
	display: block;
	width: clamp(180px, 28vw, 320px);
	height: auto;
	margin: 0 0 18px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nav-button {
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font-weight: 900;
	padding: 10px 13px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
}

.nav-button:hover {
	border-color: rgba(37, 99, 235, 0.22);
	background: var(--blue-soft);
	color: var(--blue);
	box-shadow: 0 10px 20px rgba(24, 38, 61, 0.09);
	transform: translateY(-1px);
}

.nav-button.active {
	border-color: rgba(0, 155, 122, 0.25);
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	color: #ffffff;
	box-shadow: 0 10px 20px rgba(0, 155, 122, 0.18);
}

.page-shell {
	display: grid;
	grid-template-columns: minmax(300px, 410px) 1fr;
	gap: 24px;
	width: min(1240px, calc(100% - 32px));
	margin: 18px auto 48px;
}

.order-shell {
	display: grid;
	grid-template-columns: 1fr minmax(310px, 380px);
	gap: 24px;
	width: min(1240px, calc(100% - 32px));
	margin: 18px auto 48px;
}

.monitor-shell {
	width: min(1500px, calc(100% - 32px));
	margin: 18px auto 48px;
}

.form-panel,
.list-panel,
.catalog-panel,
.cart-panel,
.monitor-panel {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(216, 225, 234, 0.92);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.form-panel {
	align-self: start;
	padding: 24px;
}

.list-panel {
	padding: 24px;
}

.catalog-panel,
.cart-panel {
	align-self: start;
	padding: 24px;
}

.monitor-panel {
	padding: 24px;
}

.cart-panel {
	position: sticky;
	top: 18px;
}

.panel-heading {
	margin-bottom: 22px;
}

.eyebrow {
	margin: 0 0 8px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 8px;
	font-size: 30px;
	line-height: 1.08;
}

h2 {
	margin-bottom: 0;
	font-size: 24px;
}

.support-text {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.45;
}

.alert {
	border: 1px solid rgba(122, 77, 0, 0.18);
	border-radius: 8px;
	background: var(--amber-soft);
	color: var(--amber);
	padding: 12px 14px;
	font-weight: 800;
}

.alert.success {
	border-color: rgba(0, 155, 122, 0.2);
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.product-form {
	display: grid;
	gap: 15px;
}

label {
	display: grid;
	gap: 8px;
	color: #536178;
	font-size: 14px;
	font-weight: 800;
}

input,
textarea,
select {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--field);
	color: var(--ink);
	font: inherit;
	padding: 12px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--accent);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(0, 155, 122, 0.12);
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
	border-color: rgba(217, 45, 76, 0.72);
	background: #fff7f9;
	box-shadow: 0 0 0 4px rgba(217, 45, 76, 0.1);
}

textarea {
	min-height: 108px;
	resize: vertical;
}

.current-photo {
	width: 100%;
	max-height: 190px;
	border: 1px solid var(--line);
	border-radius: 8px;
	object-fit: cover;
	box-shadow: 0 12px 24px rgba(24, 38, 61, 0.12);
}

.photo-tools {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.photo-capture-button,
.file-pick-button {
	display: grid;
	place-items: center;
	border-radius: 8px;
	font-weight: 900;
	min-height: 44px;
	padding: 11px 12px;
	text-align: center;
}

.photo-capture-button {
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	color: #ffffff;
}

.file-pick-button {
	border: 1px solid rgba(37, 99, 235, 0.24);
	background: var(--blue-soft);
	color: var(--blue);
	cursor: pointer;
}

.file-pick-button input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.photo-preview {
	width: 100%;
	max-height: 220px;
	border: 1px solid var(--line);
	border-radius: 8px;
	object-fit: cover;
}

.camera-box {
	width: min(460px, 100%);
}

.camera-box video {
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #0f172a;
	object-fit: cover;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 140px;
	gap: 14px;
}

button,
.edit-button,
.cancel-link {
	border-radius: 8px;
	font: inherit;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

button {
	border: 0;
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	color: #ffffff;
	cursor: pointer;
	min-height: 44px;
	padding: 13px 16px;
}

button:hover,
.edit-button:hover,
.cancel-link:hover {
	transform: translateY(-1px);
}

button:hover {
	box-shadow: 0 12px 24px rgba(0, 155, 122, 0.24);
	filter: brightness(1.03);
}

.form-actions {
	display: grid;
	gap: 10px;
}

.cancel-link {
	border: 1px solid var(--line);
	background: #ffffff;
	color: var(--muted);
	padding: 12px 16px;
}

.cancel-link:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.counter {
	border-radius: 999px;
	background: var(--blue-soft);
	color: var(--blue);
	font-size: 14px;
	font-weight: 800;
	padding: 8px 12px;
	white-space: nowrap;
}

.empty-state {
	border: 1px dashed var(--line);
	border-radius: 8px;
	background: var(--field);
	color: var(--muted);
	padding: 34px;
	text-align: center;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

.catalog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
}

.product-card {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: 14px;
	min-height: 132px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #ffffff;
	padding: 12px;
	box-shadow: 0 10px 25px rgba(24, 38, 61, 0.08);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.catalog-card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 25px rgba(24, 38, 61, 0.08);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.catalog-card:hover {
	border-color: rgba(0, 155, 122, 0.55);
	box-shadow: 0 18px 34px rgba(24, 38, 61, 0.16);
	transform: translateY(-2px);
}

.product-card:hover {
	border-color: rgba(0, 155, 122, 0.55);
	box-shadow: 0 18px 34px rgba(24, 38, 61, 0.16);
	transform: translateY(-2px);
}

.product-photo {
	overflow: hidden;
	align-self: start;
	width: 104px;
	height: 104px;
	border-radius: 8px;
	background: linear-gradient(135deg, #eaf8f4, #eef3ff);
}

.catalog-photo {
	width: 100%;
	height: 145px;
	background: linear-gradient(135deg, #eaf8f4, #eef3ff);
}

.product-photo img,
.catalog-photo img,
.photo-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	object-fit: cover;
	place-items: center;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
}

.product-card-body {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.catalog-card-body {
	display: grid;
	gap: 10px;
	padding: 14px;
}

.catalog-card-body h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
}

.catalog-card-body p {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.product-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.product-title-row h3 {
	overflow-wrap: anywhere;
	margin-bottom: 0;
	font-size: 18px;
	line-height: 1.2;
}

.product-card p {
	display: -webkit-box;
	overflow: hidden;
	margin-bottom: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.status {
	border-radius: 999px;
	padding: 5px 9px;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.status.active {
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.status.inactive {
	background: var(--rose-soft);
	color: var(--rose);
}

.product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
}

.catalog-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
}

.product-footer strong,
.catalog-footer strong {
	color: var(--accent-dark);
	font-size: 20px;
	white-space: nowrap;
}

.card-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.edit-button {
	border: 1px solid rgba(37, 99, 235, 0.24);
	background: var(--blue-soft);
	color: var(--blue);
	padding: 9px 12px;
}

.edit-button:hover {
	box-shadow: 0 10px 20px rgba(37, 99, 235, 0.14);
}

.delete-form {
	margin: 0;
}

.delete-button {
	border: 1px solid rgba(217, 45, 76, 0.24);
	background: var(--rose-soft);
	color: var(--rose);
	min-height: 40px;
	padding: 9px 12px;
}

.delete-button:hover {
	box-shadow: 0 10px 20px rgba(217, 45, 76, 0.14);
	filter: none;
}

.delete-button.full {
	width: 100%;
	margin-top: 14px;
}

.cart-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

.cart-list {
	display: grid;
	gap: 12px;
}

.cart-item {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--field);
	padding: 10px;
}

.cart-item-photo {
	overflow: hidden;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	background: linear-gradient(135deg, #eaf8f4, #eef3ff);
}

.cart-item-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cart-item-body {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.cart-item-body h3 {
	overflow-wrap: anywhere;
	margin: 0;
	font-size: 16px;
}

.cart-item-body p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.cart-item-body strong {
	color: var(--accent-dark);
	font-size: 16px;
}

.quantity-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mini-button {
	border: 1px solid rgba(37, 99, 235, 0.24);
	background: var(--blue-soft);
	color: var(--blue);
	min-width: 36px;
	min-height: 36px;
	padding: 7px 10px;
}

.mini-button.danger {
	border-color: rgba(217, 45, 76, 0.24);
	background: var(--rose-soft);
	color: var(--rose);
}

.cart-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--line);
	margin-top: 16px;
	padding-top: 16px;
	font-weight: 800;
}

.cart-total span {
	color: var(--muted);
}

.cart-total strong {
	color: var(--accent-dark);
	font-size: 28px;
}

.checkout-box {
	display: grid;
	gap: 12px;
	border-top: 1px solid var(--line);
	margin-top: 16px;
	padding-top: 16px;
}

.field-group {
	position: relative;
}

.field-error {
	min-height: 16px;
	color: var(--rose);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
}

.address-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.payment-box {
	display: grid;
	gap: 10px;
	border: 1px solid rgba(216, 225, 234, 0.85);
	border-radius: 8px;
	background: var(--field);
	padding: 12px;
}

.payment-box > span {
	color: #536178;
	font-size: 14px;
	font-weight: 900;
}

.payment-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.payment-option {
	border: 1px solid var(--line);
	background: #ffffff;
	color: var(--muted);
	min-height: 42px;
	padding: 10px;
}

.payment-option.active {
	border-color: rgba(0, 155, 122, 0.45);
	background: var(--accent-soft);
	color: var(--accent-dark);
	box-shadow: 0 10px 20px rgba(0, 155, 122, 0.1);
}

.payment-option.transfer.active {
	border-color: rgba(37, 99, 235, 0.35);
	background: var(--blue-soft);
	color: var(--blue);
	box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
}

.payment-summary {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.cash-payment {
	display: grid;
	gap: 12px;
}

.transfer-proof input[type="file"] {
	background: #ffffff;
}

.change-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid rgba(0, 155, 122, 0.22);
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent-dark);
	padding: 12px 14px;
}

.change-box span,
.change-box strong {
	font-weight: 800;
}

.change-box strong {
	font-size: 24px;
}

.change-help {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.change-help.ok {
	color: var(--accent-dark);
}

.change-help.danger {
	color: var(--rose);
}

.checkout-notice {
	border: 1px solid rgba(217, 45, 76, 0.2);
	border-radius: 8px;
	background: var(--rose-soft);
	color: var(--rose);
	margin: 0;
	padding: 11px 12px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.checkout-notice[hidden] {
	display: none;
}

.order-button {
	width: 100%;
	background: linear-gradient(135deg, #00a884, #006c58);
	font-size: 16px;
	margin-top: 2px;
}

.modal-backdrop {
	position: fixed;
	z-index: 20;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(15, 23, 42, 0.42);
	padding: 20px;
}

.order-modal {
	width: min(360px, 100%);
	border: 1px solid rgba(216, 225, 234, 0.95);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
	padding: 24px;
	text-align: center;
}

.bank-modal {
	width: min(390px, 100%);
}

.order-modal h2 {
	margin-bottom: 10px;
}

.order-modal p {
	color: var(--muted);
	line-height: 1.45;
}

.order-number {
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-size: 38px;
	font-weight: 900;
	margin: 14px 0;
	padding: 14px;
}

.modal-actions {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.bank-details {
	display: grid;
	gap: 10px;
	margin: 16px 0;
	text-align: left;
}

.bank-details div {
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--field);
	padding: 11px 12px;
}

.bank-details span {
	display: block;
	color: var(--muted);
	font-size: 12px;
	font-weight: 900;
	margin-bottom: 5px;
	text-transform: uppercase;
}

.bank-details strong {
	color: var(--ink);
	font-size: 15px;
	overflow-wrap: anywhere;
}

.ticket-button,
.close-button {
	border-radius: 8px;
	font-weight: 800;
	padding: 12px 16px;
	text-align: center;
	text-decoration: none;
}

.ticket-button {
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	color: #ffffff;
}

.close-button {
	border: 1px solid var(--line);
	background: #ffffff;
	color: var(--muted);
}

.ticket-button.secondary {
	border: 1px solid rgba(37, 99, 235, 0.24);
	background: var(--blue-soft);
	color: var(--blue);
}

.compact {
	padding: 22px;
}

.orders-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.live-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(0, 155, 122, 0.16);
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-size: 12px;
	font-weight: 900;
	margin-bottom: 14px;
	padding: 7px 10px;
}

.live-status span {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--accent);
	box-shadow: 0 0 0 5px rgba(0, 155, 122, 0.12);
}

.order-search {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto auto;
	align-items: end;
	gap: 10px;
	border: 1px solid rgba(216, 225, 234, 0.78);
	border-radius: 8px;
	background: var(--field);
	margin-bottom: 18px;
	padding: 12px;
}

.product-search {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto auto;
	align-items: end;
	gap: 10px;
	border: 1px solid rgba(216, 225, 234, 0.78);
	border-radius: 8px;
	background: var(--field);
	margin: 14px 0 18px;
	padding: 12px;
}

.order-search label,
.product-search label {
	gap: 6px;
}

.order-search input,
.product-search input {
	background: #ffffff;
}

.order-search button,
.order-search .close-button,
.product-search button,
.product-search .close-button {
	min-height: 44px;
	white-space: nowrap;
}

.product-search button {
	border: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-weight: 900;
	padding: 12px 18px;
}

.order-card {
	display: grid;
	align-content: start;
	gap: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #ffffff;
	padding: 14px;
	box-shadow: 0 10px 25px rgba(24, 38, 61, 0.08);
}

.order-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.order-id {
	margin: 0 0 5px;
	color: var(--ink);
	font-size: 18px;
	font-weight: 900;
}

.order-date {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.order-status {
	border-radius: 999px;
	font-size: 11px;
	font-weight: 900;
	padding: 6px 9px;
	white-space: nowrap;
}

.order-status.pending {
	background: var(--amber-soft);
	color: var(--amber);
}

.order-status.sent {
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.order-address {
	display: grid;
	gap: 5px;
	border: 1px solid rgba(216, 225, 234, 0.7);
	border-radius: 8px;
	background: var(--field);
	padding: 10px;
}

.order-address span,
.order-summary span {
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.order-address strong {
	color: var(--ink);
	font-size: 14px;
	line-height: 1.35;
}

.order-payment {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border-radius: 8px;
	background: var(--blue-soft);
	color: var(--blue);
	font-size: 13px;
	font-weight: 900;
	padding: 9px 10px;
}

.order-payment a {
	color: var(--blue);
	text-decoration: none;
	white-space: nowrap;
}

.order-items {
	display: grid;
	gap: 7px;
}

.order-item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid rgba(216, 225, 234, 0.7);
	padding-bottom: 8px;
}

.order-item-row span {
	color: var(--ink);
	font-weight: 800;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.order-item-row strong {
	color: var(--accent-dark);
	font-size: 14px;
	white-space: nowrap;
}

.order-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.order-summary div {
	display: grid;
	gap: 5px;
	border-radius: 8px;
	background: var(--field);
	padding: 10px;
}

.order-summary strong {
	color: var(--accent-dark);
	font-size: 16px;
}

.order-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 2px;
}

.order-actions form {
	margin: 0;
}

.compact-button {
	min-height: 42px;
	padding: 10px 14px;
}

.sent-note {
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-weight: 900;
	padding: 11px 14px;
}

@media (max-width: 960px) {
	.page-shell,
	.order-shell {
		grid-template-columns: 1fr;
		margin-top: 16px;
	}

	.cart-panel {
		position: static;
	}

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

@media (max-width: 760px) {
	body {
		background:
			radial-gradient(circle at top left, rgba(0, 155, 122, 0.14), transparent 36%),
			linear-gradient(180deg, #f8fbfd, var(--bg));
	}

	.page-shell,
	.order-shell,
	.monitor-shell {
		width: min(100% - 24px, 620px);
		gap: 16px;
		margin: 12px auto 28px;
	}

	.top-nav {
		width: min(100% - 24px, 620px);
		margin-top: 12px;
		align-items: stretch;
		flex-direction: column;
	}

	.nav-links {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		width: 100%;
	}

	.form-panel,
	.list-panel,
	.catalog-panel,
	.cart-panel,
	.monitor-panel {
		box-shadow: 0 12px 32px rgba(24, 38, 61, 0.1);
	}

	h1 {
		font-size: 28px;
	}

	h2 {
		font-size: 22px;
	}

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

	.catalog-photo {
		height: 132px;
	}

	.catalog-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.catalog-footer form,
	.catalog-footer button {
		width: 100%;
	}

	.cart-panel {
		top: auto;
	}
}

@media (max-width: 560px) {
	.page-shell,
	.order-shell,
	.monitor-shell {
		width: 100%;
		margin: 0;
		gap: 10px;
	}

	.top-nav {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
		margin: 0;
		padding: 10px;
		border-left: 0;
		border-right: 0;
		border-radius: 0;
	}

	.nav-brand {
		padding-left: 0;
		justify-content: center;
		text-align: center;
	}

	.brand-logo,
	.order-brand-logo {
		width: min(260px, 100%);
	}

	.nav-links {
		grid-template-columns: 1fr;
	}

	.nav-button {
		text-align: center;
	}

	.form-panel,
	.list-panel,
	.catalog-panel,
	.cart-panel,
	.monitor-panel {
		border-left: 0;
		border-right: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 16px;
	}

	.form-panel,
	.catalog-panel {
		border-top: 0;
	}

	.panel-heading {
		margin-bottom: 18px;
	}

	h1 {
		font-size: 27px;
	}

	h2 {
		font-size: 21px;
	}

	.support-text {
		font-size: 14px;
	}

	input,
	textarea,
	select {
		font-size: 16px;
		min-height: 46px;
		padding: 12px;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.photo-tools {
		grid-template-columns: 1fr;
	}

	.list-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.product-grid {
		grid-template-columns: 1fr;
	}

	.catalog-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.product-card {
		grid-template-columns: 84px 1fr;
		gap: 12px;
		min-height: 112px;
		padding: 10px;
	}

	.product-photo {
		width: 84px;
		height: 84px;
	}

	.catalog-card {
		display: grid;
		grid-template-columns: 98px 1fr;
		min-height: 128px;
	}

	.catalog-photo {
		width: 98px;
		height: 100%;
		min-height: 128px;
	}

	.catalog-card-body {
		padding: 12px;
	}

	.catalog-card-body h2,
	.product-title-row h3 {
		font-size: 17px;
	}

	.catalog-card-body p,
	.product-card p {
		font-size: 13px;
	}

	.product-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.card-actions,
	.card-actions form,
	.card-actions .edit-button,
	.card-actions .delete-button {
		width: 100%;
	}

	.card-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.catalog-footer {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.product-footer strong,
	.catalog-footer strong {
		font-size: 19px;
	}

	.address-row {
		grid-template-columns: 1fr;
	}

	.cart-header {
		align-items: flex-start;
	}

	.cart-item {
		grid-template-columns: 64px 1fr;
	}

	.cart-item-photo {
		width: 64px;
		height: 64px;
	}

	.quantity-actions {
		display: grid;
		grid-template-columns: 42px 42px 1fr;
	}

	.mini-button,
	.mini-button.danger {
		width: 100%;
	}

	.cart-total strong {
		font-size: 26px;
	}

	.order-card-head,
	.order-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.order-summary {
		grid-template-columns: 1fr;
	}

	.orders-list {
		grid-template-columns: 1fr;
	}

	.order-search,
	.product-search {
		grid-template-columns: 1fr;
	}

	.order-search button,
	.order-search .close-button,
	.product-search button,
	.product-search .close-button {
		width: 100%;
	}

	.order-actions form,
	.order-actions a,
	.order-actions button,
	.sent-note {
		width: 100%;
	}

	.order-modal {
		padding: 20px;
	}
}

@media (max-width: 380px) {
	.form-panel,
	.list-panel,
	.catalog-panel,
	.cart-panel,
	.monitor-panel {
		padding: 14px;
	}

	h1 {
		font-size: 25px;
	}

	.list-header,
	.cart-header {
		gap: 10px;
	}

	.counter {
		font-size: 13px;
		padding: 7px 10px;
	}

	.product-card,
	.catalog-card,
	.cart-item {
		grid-template-columns: 1fr;
	}

	.product-photo,
	.catalog-photo,
	.cart-item-photo {
		width: 100%;
		height: 150px;
		min-height: 0;
	}

	.cart-item-photo {
		height: 120px;
	}

	.product-title-row {
		align-items: flex-start;
		flex-direction: column;
	}

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

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

	.quantity-actions form:last-child {
		grid-column: 1 / -1;
	}

	.change-box strong {
		font-size: 22px;
	}
}
