/* TawreedFlow | توريد فلو: brand theme for the desk and the login page.
 *
 * Arabic text uses IBM Plex Sans Arabic (SIL Open Font License, bundled here so
 * the app works without Google Fonts). The unicode-range keeps Latin text and
 * numbers on Frappe's own Inter font.
 */
@font-face {
	font-family: "TF Arabic";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/tawreedflow/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "TF Arabic";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/tawreedflow/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "TF Arabic";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/assets/tawreedflow/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "TF Arabic";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/assets/tawreedflow/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
	--tf-brand: #0f7a6a;
	--tf-brand-hover: #0b5f55;
	--tf-brand-soft: #e6f4f1;
	--tf-accent: #f5b53d;

	--font-stack: "InterVariable", "Inter", "TF Arabic", "-apple-system", "BlinkMacSystemFont",
		"Segoe UI", "Roboto", "Helvetica Neue", sans-serif;

	--primary: var(--tf-brand);
	--brand-color: var(--tf-brand);
	--btn-primary: var(--tf-brand);
	--checkbox-color: var(--tf-brand);
	--progress-bar-bg: var(--tf-brand);
	--date-active-bg: var(--tf-brand);
	--date-active-text: #fff;
}

:root[data-theme="dark"] {
	--tf-brand: #2bb39b;
	--tf-brand-hover: #4cc8b2;
	--tf-brand-soft: rgba(43, 179, 155, 0.16);
	--date-active-text: #08201c;
}

body,
input,
textarea,
select,
button {
	font-family: var(--font-stack);
}

/* Primary buttons in the brand colour instead of black. */
.btn-primary,
.btn.btn-primary,
.btn-solid-gray {
	background-color: var(--tf-brand) !important;
	border-color: var(--tf-brand) !important;
	color: #fff !important;
}
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn.btn-primary {
	color: #08201c !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn.btn-primary:hover {
	background-color: var(--tf-brand-hover) !important;
	border-color: var(--tf-brand-hover) !important;
}

/* Espresso buttons (Frappe v16): solid buttons use the brand colour; the red
   "danger" theme keeps its own colours. */
.es-button:not([data-theme="red"]) {
	--bt-solid-bg: var(--tf-brand);
	--bt-solid-bg-hover: var(--tf-brand-hover);
	--bt-solid-bg-active: var(--tf-brand-hover);
	--bt-solid-fg: #fff;
}
[data-theme="dark"] .es-button:not([data-theme="red"]) {
	--bt-solid-fg: #08201c;
}

/* Checked checkboxes and active switches. */
input[type="checkbox"]:checked {
	background-color: var(--tf-brand);
	border-color: var(--tf-brand);
}

/* Arabic reads better with a little more line height. */
html[lang="ar"] body {
	line-height: 1.6;
}

/* Login page: brand the card and the button. */
.for-login .page-card-head img,
.for-signup .page-card-head img,
.for-forgot .page-card-head img {
	max-height: 64px;
	border-radius: 14px;
}
.for-login .page-card-head h4,
.for-forgot .page-card-head h4 {
	font-weight: 600;
}
