/**
 * WMS — Standar UI dialog (toast, konfirmasi, input qty)
 * Dipakai di layout staff (app) dan customer (catalog-standalone).
 */
.wms-ui-toast-wrap {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 20050;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(420px, calc(100vw - 32px));
	pointer-events: none;
}

.wms-ui-toast {
	pointer-events: auto;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-left-width: 6px;
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
	padding: 12px 14px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.wms-ui-toast__icon {
	width: 28px;
	height: 28px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 16px;
}

.wms-ui-toast__body {
	flex: 1 1 auto;
	min-width: 0;
}

.wms-ui-toast__title {
	font-weight: 800;
	font-size: 0.85rem;
	margin: 0;
	color: #0f172a;
}

.wms-ui-toast__msg {
	margin: 2px 0 0;
	font-size: 0.8125rem;
	color: #475569;
	line-height: 1.35;
	word-break: break-word;
}

.wms-ui-toast__close {
	border: none;
	background: transparent;
	color: #64748b;
	padding: 2px 6px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
}

.wms-ui-toast--success { border-left-color: #22c55e; }
.wms-ui-toast--success .wms-ui-toast__icon { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.wms-ui-toast--danger { border-left-color: #ef4444; }
.wms-ui-toast--danger .wms-ui-toast__icon { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.wms-ui-toast--info { border-left-color: #3b82f6; }
.wms-ui-toast--info .wms-ui-toast__icon { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.wms-ui-toast--warning { border-left-color: #f59e0b; }
.wms-ui-toast--warning .wms-ui-toast__icon { background: rgba(245, 158, 11, 0.12); color: #b45309; }

.wms-ui-modal .modal-dialog {
	max-width: 520px;
}

.wms-ui-modal .modal-content {
	border: none;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.wms-ui-modal__header {
	background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
	color: #fff;
	border: none;
	padding: 1.15rem 1.35rem;
}

.wms-ui-modal__header .close {
	color: #fff;
	opacity: 0.85;
	text-shadow: none;
}

.wms-ui-modal__title {
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0;
}

.wms-ui-modal__subtitle {
	font-size: 0.8125rem;
	opacity: 0.9;
	margin: 0.3rem 0 0;
}

.wms-ui-modal__body {
	background: #fff;
	padding: 1.2rem 1.35rem;
}

.wms-ui-modal__message {
	font-size: 0.9rem;
	color: #334155;
	line-height: 1.45;
}

.wms-ui-modal__field {
	margin-top: 0.85rem;
}

.wms-ui-modal__field input.form-control {
	border-radius: 12px;
	font-weight: 700;
	text-align: center;
	min-height: 2.75rem;
}

.wms-ui-modal__hint {
	font-size: 0.8125rem;
	color: #64748b;
	margin-top: 0.35rem;
}

.wms-ui-modal__footer {
	background: #f8fafc;
	border-top: 1px solid #e8ecf4;
	padding: 0.85rem 1.25rem;
}

.wms-ui-modal__footer .btn {
	border-radius: 10px;
	font-weight: 600;
}
