/* Iran Compliance App Styles */

[data-theme="light"] {
	--ic-success-color: #28a745;
	--ic-warning-color: #ffc107;
	--ic-danger-color: #dc3545;
	--ic-info-color: #17a2b8;
}

/* Iranian E-Invoice Status Badges */
.indicator-pill.einvoice-sent,
.indicator-pill.green {
	background-color: var(--bg-green);
	color: var(--text-green);
}

.indicator-pill.einvoice-failed,
.indicator-pill.red {
	background-color: var(--bg-red);
	color: var(--text-red);
}

.indicator-pill.einvoice-pending,
.indicator-pill.orange {
	background-color: var(--bg-orange);
	color: var(--text-orange);
}

/* Persian number alignment in reports */
.grid-row [data-fieldtype="Currency"],
.report-wrapper [data-fieldtype="Currency"] {
	font-feature-settings: "ss01";
}

/* Persian Typography & ZWNJ (نیم‌فاصله) Rendering Fix */
@font-face {
	font-family: 'Vazirmatn';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/assets/erpnext/fonts/vazirmatn/Vazirmatn-wght.woff2") format("woff2-variations"),
	     url("/assets/iran_compliance/fonts/vazirmatn/Vazirmatn-wght.woff2") format("woff2-variations"),
	     url("/assets/erpnext/fonts/vazirmatn/Vazirmatn-wght.woff2") format("woff2"),
	     url("/assets/iran_compliance/fonts/vazirmatn/Vazirmatn-wght.woff2") format("woff2");
}

[dir="rtl"],
html[lang="fa"],
body[data-route*="hrms"],
.layout-main-section,
.frappe-control,
.form-layout {
	font-feature-settings: "liga" 1, "calt" 1;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

[dir="rtl"] *,
html[lang="fa"] *,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] button {
	letter-spacing: normal !important;
	word-spacing: normal !important;
}

