/**
 * Modern SweetAlert2 theme — GAMMADDA / kadawatha
 * Loaded after sweetalert2.min.css
 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

.swal2-container {
	z-index: 20000 !important;
	font-family: "DM Sans", sans-serif !important;
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
	background: rgba(15, 23, 42, 0.48) !important;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.swal2-popup,
.swal2-popup.swal2-modal,
.nswal-popup {
	width: min(420px, calc(100vw - 2rem)) !important;
	max-width: 420px !important;
	padding: 1.35rem 1.4rem 1.2rem !important;
	border-radius: 18px !important;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22) !important;
	background: #fff !important;
	font-family: "DM Sans", sans-serif !important;
}

.swal2-title,
.nswal-title {
	font-family: "DM Sans", sans-serif !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	padding: 0 0 0.35rem !important;
	margin: 0 !important;
	line-height: 1.3 !important;
}

.nswal-title .nswal-kicker {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0f766e;
	margin-bottom: 0.2rem;
}

.swal2-html-container,
.swal2-content {
	font-size: 0.9rem !important;
	color: #64748b !important;
	font-weight: 500 !important;
	margin: 0 !important;
	padding: 0 0 0.65rem !important;
}

.swal2-icon {
	margin: 0.35rem auto 0.65rem !important;
	width: 3.2em !important;
	height: 3.2em !important;
	border-width: 0.2em !important;
}

.swal2-icon.swal2-error {
	border-color: #f87171 !important;
	color: #ef4444 !important;
}

.swal2-icon.swal2-success {
	border-color: #34d399 !important;
	color: #10b981 !important;
}

.swal2-icon.swal2-warning {
	border-color: #fbbf24 !important;
	color: #f59e0b !important;
}

.swal2-icon.swal2-info {
	border-color: #60a5fa !important;
	color: #3b82f6 !important;
}

.swal2-icon.swal2-question {
	border-color: #94a3b8 !important;
	color: #64748b !important;
}

.swal2-icon .swal2-icon-content {
	font-size: 2rem !important;
}

.swal2-actions {
	margin: 1rem 0 0 !important;
	gap: 0.55rem !important;
	width: 100%;
	justify-content: stretch !important;
}

.swal2-styled,
.nswal-btn {
	border: 0 !important;
	border-radius: 999px !important;
	padding: 0.62rem 1.25rem !important;
	font-family: "DM Sans", sans-serif !important;
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	box-shadow: none !important;
	min-width: 0 !important;
	flex: 1 1 0 !important;
	margin: 0 !important;
	transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease !important;
}

.swal2-styled:focus,
.nswal-btn:focus {
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.22) !important;
}

.swal2-confirm,
.nswal-confirm {
	background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%) !important;
	color: #fff !important;
}

.swal2-confirm:hover,
.nswal-confirm:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.swal2-cancel,
.nswal-cancel {
	background: #f1f5f9 !important;
	color: #475569 !important;
}

.swal2-cancel:hover,
.nswal-cancel:hover {
	background: #e2e8f0 !important;
	color: #0f172a !important;
}

.swal2-deny {
	background: #fee2e2 !important;
	color: #b91c1c !important;
	border-radius: 999px !important;
}

/* Inputs — qty / prompt */
.swal2-input,
.swal2-file,
.swal2-textarea,
.nswal-input {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0.35rem 0 0.15rem !important;
	padding: 0.85rem 1rem !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 14px !important;
	font-size: 1.55rem !important;
	font-weight: 700 !important;
	font-variant-numeric: tabular-nums;
	text-align: center !important;
	color: #0f172a !important;
	background: #f8fafc !important;
	box-shadow: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

.swal2-input:focus,
.nswal-input:focus {
	border-color: #14b8a6 !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18) !important;
	outline: none !important;
}

.swal2-validation-message {
	background: #fff7ed !important;
	color: #c2410c !important;
	border-radius: 12px !important;
	margin: 0.55rem 0 0 !important;
	padding: 0.55rem 0.75rem !important;
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	border: 1px solid #fed7aa !important;
	box-shadow: none !important;
}

.swal2-validation-message::before {
	background-color: #c2410c !important;
}

/* Qty dialog specifics */
.nswal-qty.swal2-popup {
	padding-top: 1.5rem !important;
}

.nswal-qty .swal2-input {
	font-size: 2rem !important;
	letter-spacing: 0.02em;
	padding: 1rem 1rem !important;
}

.nswal-product {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	margin: 0 0 0.55rem;
	padding: 0.65rem 0.75rem;
	background: #f0fdfa;
	border: 1px solid #99f6e4;
	border-radius: 12px;
	text-align: center;
}
.nswal-product-code {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0f766e;
}
.nswal-product-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
	word-break: break-word;
}
.nswal-product-price {
	font-size: 0.8rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #64748b;
}
.nswal-qty-hint {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: #94a3b8;
	text-align: center;
}

/* Expense saved (POS) — no default Swal success glyph */
.nswal-exp-saved.swal2-popup {
	padding-top: 1.15rem !important;
}
.nswal-exp-saved .swal2-icon,
.nswal-exp-saved .swal2-title:empty {
	display: none !important;
}
.nswal-exp-saved .nswal-exp-body {
	padding: 0 !important;
	margin: 0 !important;
	text-align: center !important;
}
.nswal-exp-icon {
	width: 3.25rem;
	height: 3.25rem;
	margin: 0.15rem auto 0.75rem;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
	border: 1px solid #fdba74;
	color: #c2410c;
	font-size: 1.35rem;
	box-shadow: 0 8px 18px rgba(194, 65, 12, 0.12);
}
.nswal-exp-title {
	font-size: 1.12rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.45rem;
}
.nswal-exp-amt {
	font-family: Georgia, "Fraunces", serif;
	font-size: 1.55rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}
.nswal-exp-meta {
	margin-top: 0.35rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #64748b;
}

/* Toast / compact */
.swal2-toast {
	border-radius: 14px !important;
	font-family: "DM Sans", sans-serif !important;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16) !important;
}

@media (max-width: 480px) {
	.swal2-popup,
	.nswal-popup {
		width: calc(100vw - 1.25rem) !important;
		padding: 1.15rem 1rem 1rem !important;
	}
	.swal2-input,
	.nswal-input {
		font-size: 1.35rem !important;
	}
}

.swal2-selected {
	filter: brightness(0.92) !important;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.28) !important;
}

/* Employee resignation — compact form dialog */
.nswal-resign.swal2-popup {
	width: min(380px, calc(100vw - 1.5rem)) !important;
	max-width: 380px !important;
	padding: 1rem 1.05rem 0.95rem !important;
	border-radius: 16px !important;
}
.nswal-resign .swal2-icon {
	display: none !important;
}
.nswal-resign .swal2-title {
	text-align: left !important;
	padding: 0 0 0.55rem !important;
	font-size: 1.02rem !important;
}
.nswal-resign .swal2-html-container {
	padding: 0 !important;
	margin: 0 !important;
	text-align: left !important;
	overflow: visible !important;
}
.nswal-resign .swal2-actions {
	margin-top: 0.75rem !important;
}
.nswal-resign-head {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 0.75rem;
}
.nswal-resign-icon {
	flex: 0 0 auto;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
	border: 1px solid #fdba74;
	color: #c2410c;
	font-size: 1rem;
}
.nswal-resign-copy {
	min-width: 0;
	flex: 1 1 auto;
}
.nswal-resign-kicker {
	display: block;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0f766e;
	margin-bottom: 0.1rem;
}
.nswal-resign-title {
	display: block;
	font-size: 1.02rem;
	font-weight: 750;
	color: #0f172a;
	line-height: 1.25;
}
.nswal-resign-emp {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.75rem;
	padding: 0.45rem 0.65rem;
	background: #f0fdfa;
	border: 1px solid #99f6e4;
	border-radius: 10px;
	color: #0f766e;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.3;
	word-break: break-word;
}
.nswal-resign-emp i {
	opacity: 0.85;
	flex: 0 0 auto;
}
.nswal-resign-form {
	display: grid;
	gap: 0.55rem;
}
.nswal-resign-field {
	display: flex;
	flex-direction: column;
	gap: 0.22rem;
	min-width: 0;
	text-align: left;
}
.nswal-resign-label {
	font-size: 0.66rem;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin: 0;
	line-height: 1.2;
}
.nswal-resign-label .req {
	color: #dc2626;
}
.nswal-resign-form .nswal-resign-ctrl,
.nswal-resign-form input[type="date"],
.nswal-resign-form select,
.nswal-resign-form textarea {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	height: 36px !important;
	min-height: 36px;
	padding: 0.35rem 0.7rem !important;
	border: 1px solid #dbe3ee !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #0f172a !important;
	font-family: "DM Sans", sans-serif !important;
	font-size: 0.84rem !important;
	font-weight: 500 !important;
	text-align: left !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.nswal-resign-form textarea.nswal-resign-ctrl {
	height: auto !important;
	min-height: 64px !important;
	resize: vertical;
	line-height: 1.35;
	padding: 0.5rem 0.7rem !important;
}
.nswal-resign-form .nswal-resign-ctrl:focus,
.nswal-resign-form input[type="date"]:focus,
.nswal-resign-form select:focus,
.nswal-resign-form textarea:focus {
	border-color: #5eead4 !important;
	box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14) !important;
	outline: none !important;
}
.nswal-resign-hint {
	font-size: 0.72rem;
	font-weight: 500;
	color: #94a3b8;
	margin: 0;
}

/* Inline / toast alerts — Font Awesome icons */
.kd-alert {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
}
.kd-alert-icon {
	flex: 0 0 auto;
	font-size: 1.05rem;
	line-height: 1.35;
	margin-top: 0.05rem;
}
.kd-alert-text {
	flex: 1 1 auto;
	min-width: 0;
}
.alert-danger.kd-alert .kd-alert-icon,
.kd-alert-danger .kd-alert-icon {
	color: #b91c1c;
}
.alert-success.kd-alert .kd-alert-icon,
.kd-alert-success .kd-alert-icon {
	color: #047857;
}
.alert-warning.kd-alert .kd-alert-icon,
.kd-alert-warning .kd-alert-icon {
	color: #c2410c;
}
.fixed-alert.kd-alert {
	align-items: center;
}
.fixed-alert.kd-alert .kd-alert-icon {
	margin-top: 0;
}

/* Bootstrap delete/confirm modal — match the same pill language */
#delete-record-modal-confirm .modal-content {
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
	overflow: hidden;
	font-family: "DM Sans", sans-serif;
}
#delete-record-modal-confirm .modal-header {
	border-bottom: 1px solid #f1f5f9;
	padding: 1rem 1.25rem 0.75rem;
}
#delete-record-modal-confirm .modal-title {
	font-weight: 700;
	font-size: 1.1rem;
	color: #0f172a;
}
#delete-record-modal-confirm .modal-body {
	color: #64748b;
	font-weight: 500;
	padding: 0.85rem 1.25rem;
}
#delete-record-modal-confirm .modal-footer {
	border-top: 1px solid #f1f5f9;
	padding: 0.85rem 1.25rem 1.1rem;
	gap: 0.55rem;
}
#delete-record-modal-confirm .modal-footer .btn {
	border: 0 !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	padding: 0.55rem 1.2rem !important;
	flex: 1 1 0;
}
#delete-record-modal-confirm .modal-footer .btn-secondary {
	background: #f1f5f9 !important;
	color: #475569 !important;
}
#delete-record-modal-confirm .modal-footer .btn-primary,
#delete-record-modal-confirm #delete-record-modal-btn {
	background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%) !important;
	color: #fff !important;
}
