.app-sidebar { box-shadow: 12px 0 32px rgb(15 23 42 / 12%); }
.app-sidebar .sidebar-link { gap: 0.75rem; }
.app-sidebar .sidebar-link svg { margin: 0; }

.order-status-update.card {
	border: 1px solid #dbe5f0;
	border-top: 3px solid var(--color-primary);
	box-shadow: 0 16px 38px rgb(15 23 42 / 8%);
}
.order-status-update.card:hover {
	border-color: #cbd9e8;
	border-top-color: var(--color-primary);
	box-shadow: 0 16px 38px rgb(15 23 42 / 8%);
	transform: none;
}
.order-status-update .card-body { padding: 1.5rem; }
.order-status-update-header { display: flex; align-items: center; gap: 1rem; }
.order-status-update-title { display: flex; align-items: center; gap: 1rem; }
.order-status-update-icon {
	display: grid;
	width: 3rem;
	height: 3rem;
	flex: 0 0 auto;
	place-items: center;
	border: 1px solid #dbeafe;
	border-radius: 1rem;
	background: linear-gradient(145deg, #eff6ff, #dbeafe);
	color: #0b5cad;
}
.order-status-update-eyebrow {
	margin: 0 0 0.2rem;
	color: #0b5cad;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.order-status-update-header h2 { margin: 0; font-size: 1.125rem; line-height: 1.5rem; }
.order-status-update-header p:last-child { margin-bottom: 0; }
.order-status-update-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.order-status-flow {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.35fr);
	align-items: center;
	gap: 1rem;
}
.order-status-step {
	display: grid;
	min-height: 6rem;
	align-content: center;
	gap: 0.75rem;
	padding: 1rem 1.125rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.875rem;
	background: #f8fafc;
}
.order-status-step-current { background: linear-gradient(145deg, #f8fafc, #f1f5f9); }
.order-status-step-next { border-color: #cfe0f5; background: linear-gradient(145deg, #f8fbff, #eff6ff); }
.order-status-step-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: #475569;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}
.order-status-step-number {
	display: inline-grid;
	width: 1.375rem;
	height: 1.375rem;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 9999px;
	background: #e2e8f0;
	color: #334155;
	font-size: 0.6875rem;
	letter-spacing: 0;
}
.order-status-step-next .order-status-step-number { background: #dbeafe; color: #0b5cad; }
.order-status-step-current .badge { width: fit-content; padding: 0.3rem 0.75rem; font-size: 0.8125rem; }
.order-status-select { min-height: 3rem; border-color: #bfcee0; font-size: 0.9375rem; font-weight: 600; }
.order-status-flow-arrow {
	display: grid;
	width: 2.5rem;
	height: 2.5rem;
	place-items: center;
	border: 1px solid #e2e8f0;
	border-radius: 9999px;
	background: #fff;
	color: #64748b;
}
.order-status-update-hint {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: -0.25rem 0 0;
	color: #64748b;
	font-size: 0.8125rem;
	line-height: 1.4;
}
.order-status-update-hint svg { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: 0.05rem; color: #0b5cad; }
.order-status-update-details {
	display: grid;
	gap: 1rem;
	padding: 1.125rem;
	border: 1px solid #dbe5f0;
	border-radius: 0.875rem;
	background: #f8fafc;
}
.order-status-update-details.hidden { display: none; }
.order-status-update-details h3 { margin: 0; color: #0f172a; font-size: 0.9375rem; }
.order-status-update-details > div:first-child > p { margin-bottom: 0; }
.order-status-update-details .form-label { margin-bottom: 0.375rem; }
.order-status-update-details .form-input { background: #fff; }
.order-status-update-warning {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	margin: 1.25rem 0 0;
	padding: 0.875rem 1rem;
	border: 1px solid #fcd34d;
	border-radius: 0.75rem;
	background: #fffbeb;
	color: #854d0e;
	font-size: 0.875rem;
	line-height: 1.5;
}
.order-status-update-warning svg { width: 1.125rem; height: 1.125rem; flex: 0 0 auto; margin-top: 0.1rem; }
.order-status-update-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e8eef5;
}
.order-status-update-footer p {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	color: #64748b;
	font-size: 0.75rem;
}
.order-status-update-footer p svg { width: 1rem; height: 1rem; flex: 0 0 auto; color: #0f766e; }
.order-status-apply { min-height: 2.875rem; padding: 0.75rem 1.125rem; }
.order-status-apply:disabled { box-shadow: none; filter: grayscale(0.25); }

@media (max-width: 640px) {
	.order-status-update .card-body { padding: 1.125rem; }
	.order-status-update-title { align-items: flex-start; gap: 0.75rem; }
	.order-status-update-icon { width: 2.625rem; height: 2.625rem; border-radius: 0.8rem; }
	.order-status-flow { grid-template-columns: minmax(0, 1fr); gap: 0.625rem; }
	.order-status-step { min-height: auto; padding: 0.875rem; }
	.order-status-flow-arrow { width: 2rem; height: 2rem; margin: -0.125rem auto; transform: rotate(90deg); }
	.order-status-update-footer { align-items: stretch; flex-direction: column-reverse; }
	.order-status-apply { width: 100%; }
}

.order-status-update select:focus-visible,
.order-status-update input:focus-visible,
.order-status-update textarea:focus-visible,
.order-status-update button:focus-visible {
	outline: 3px solid rgb(11 92 173 / 24%);
	outline-offset: 2px;
}

.cart-added-popup {
	position: fixed;
	top: 1.25rem;
	left: 50%;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 1rem;
	width: min(34rem, calc(100vw - 2rem));
	padding: 1.125rem 1.25rem;
	border: 1px solid #bfdbfe;
	border-radius: 1rem;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 20px 50px rgb(15 23 42 / 20%), 0 4px 12px rgb(15 23 42 / 8%);
	transform: translateX(-50%);
	animation: cart-popup-enter 200ms ease-out both;
}

.cart-added-popup-icon {
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 9999px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 1.5rem;
	font-weight: 700;
}

.cart-added-popup-content {
	display: grid;
	min-width: 0;
	gap: 0.3rem;
}

.cart-added-popup-title {
	color: #0f172a;
	font-size: 0.975rem;
	font-weight: 700;
}

.cart-added-popup-message {
	overflow-wrap: anywhere;
	color: #64748b;
	font-size: 0.825rem;
	line-height: 1.35;
}

.cart-added-popup-link {
	width: fit-content;
	margin-top: 0.15rem;
	color: #1d4ed8;
	font-size: 0.825rem;
	font-weight: 650;
	text-decoration: none;
}

.cart-added-popup-link:hover {
	color: #1e40af;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cart-added-popup-link:focus-visible,
.cart-added-popup-close:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 3px;
}

.cart-added-popup-close {
	align-self: flex-start;
	flex: 0 0 auto;
	margin: -0.5rem -0.5rem 0 auto;
	padding: 0.25rem 0.5rem;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

@keyframes cart-popup-enter {
	from { opacity: 0; transform: translate(-50%, -0.5rem); }
	to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 480px) {
	.cart-added-popup {
		top: 0.75rem;
		gap: 0.75rem;
		padding: 0.875rem;
	}
	.cart-added-popup-icon {
		width: 2.375rem;
		height: 2.375rem;
	}
}

.quotation-page .quotation-page-header {
	padding-bottom: 0.25rem;
}
.quotation-page .quotation-page-title {
	color: #0f172a;
	letter-spacing: -0.025em;
	line-height: 1.2;
}
.quotation-page .card {
	border: 1px solid #dbe3ec;
	border-radius: 0.875rem;
	background: #fff;
	box-shadow: 0 5px 18px rgb(15 23 42 / 5%);
	backdrop-filter: none;
	animation: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}
.quotation-page .card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 8px 22px rgb(15 23 42 / 7%);
	transform: none;
}
.quotation-page .card-header {
	padding: 1rem 1.25rem;
	background: #f8fafc;
	border-bottom-color: #e8edf3;
}
.quotation-page .table th {
	color: #475569;
	letter-spacing: 0.04em;
}
.quotation-page .table td {
	vertical-align: middle;
}
.quotation-page .table tbody tr:last-child td {
	border-bottom: 0;
}
.quotation-page .table tfoot td {
	padding-top: 1rem;
	padding-bottom: 1rem;
	border-top: 1px solid #dbe3ec;
}

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