/* Rayyan ERP brand colours */
:root {
	--rayyan-navy: #0d2344;
	--rayyan-green: #0a6b36;
	--rayyan-gold: #b8892b;
}
.navbar-brand img, .app-logo, .page-card-head img, .login-content .app-logo {
	max-height: 40px;
	width: auto;
	object-fit: contain;
}
.page-card-head img.app-logo { max-height: 70px; }
/* hide "Powered by" / Frappe footer marks */
.footer-powered, .web-footer .footer-powered, .powered-by-frappe { display: none !important; }

/* ===================== Rayyan home (Cleverfit layout, MatDash cards) ===================== */
.rayyan-home {
	--rh-card: var(--card-bg, #fff);
	--rh-text: var(--text-color, #1f2a3d);
	--rh-muted: var(--text-muted, #7a8699);
	--rh-border: var(--border-color, #e8ecf3);
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr) 260px;
	gap: 24px;
	width: 100%;
	min-height: calc(100vh - 70px);
	padding: 24px 28px;
	box-sizing: border-box;
	background: var(--bg-color, #f4f6fb);
	color: var(--rh-text);
	align-items: start;
}
.rh-col { display: flex; flex-direction: column; gap: 16px; }
.rh-main { display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 120px); }
.rh-hero { text-align: center; margin: 8px 0 20px; }
.rh-logo { height: 84px; width: auto; border-radius: 16px; box-shadow: 0 6px 20px rgba(13, 35, 68, 0.08); }
.rh-tagline { margin-top: 10px; color: var(--rayyan-navy); font-size: 16px; opacity: .8; }
.rh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 860px; margin-bottom: 26px; }
.rh-kpi { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border-radius: 16px; }
.rh-kpi[hidden] { display: none; }
.rh-kpi-icon svg { width: 22px; height: 22px; }
.rh-kpi-label { font-size: 12px; color: #4a5568; }
.rh-kpi-val { font-size: 22px; color: var(--rayyan-navy); }
.rh-tiles-wrap { position: relative; width: 100%; max-width: 860px; flex: 1; display: flex; align-items: center; }
.rh-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 12px; width: 100%; }
.rh-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none !important; color: var(--rh-text); text-align: center; transition: transform .15s; }
.rh-tile:hover { transform: translateY(-3px); }
.rh-tile-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-weight: 700; font-size: 22px; box-shadow: 0 4px 12px rgba(13, 35, 68, 0.08); }
.rh-tile-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; }
.rh-tile-label { font-size: 12.5px; line-height: 1.3; }
.rh-next { position: absolute; right: -44px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--rh-card); border: 1px solid var(--rh-border); font-size: 20px; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.rh-dots { display: flex; gap: 8px; margin: 18px 0; }
.rh-dot { width: 8px; height: 8px; border-radius: 99px; background: #cbd3e1; cursor: pointer; }
.rh-dot.active { width: 26px; background: var(--rayyan-green); }
.rh-footer { margin-top: auto; padding-top: 16px; font-size: 11px; color: var(--rh-muted); }
.rh-card { background: var(--rh-card); border: 1px solid var(--rh-border); border-radius: 14px; box-shadow: 0 2px 10px rgba(13, 35, 68, 0.05); overflow: hidden; }
.rh-card header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 13px; font-weight: 600; }
.rh-card header svg { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 4px; }
.rh-add, .rh-plus { width: 24px; height: 24px; border-radius: 6px; font-size: 18px; line-height: 1; }
.rh-plus { background: var(--rayyan-green); color: #fff; }
.rh-body { padding: 0 14px 14px; }
.rh-empty { border: 1px dashed var(--rh-border); border-radius: 8px; padding: 16px 8px; text-align: center; font-size: 12px; color: var(--rh-muted); }
.rh-item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px solid var(--rh-border); }
.rh-item small { display: block; color: var(--rh-muted); }
.rh-del, .rh-done { color: var(--rh-muted); }
.rh-clock { font-size: 30px; font-weight: 700; text-align: center; color: var(--rayyan-navy); }
.rh-date { text-align: center; font-size: 12px; color: var(--rh-muted); }
.rh-todo-add { display: flex; gap: 6px; margin-bottom: 8px; }
.rh-input { flex: 1; border: 1px solid var(--rh-border); border-radius: 6px; padding: 4px 8px; font-size: 12px; background: transparent; color: inherit; }
@media (max-width: 1280px) {
	.rayyan-home { grid-template-columns: minmax(0, 1fr) 260px; }
	.rh-left { grid-column: 1 / -1; order: 3; }
	.rh-next { right: 0; }
}
@media (max-width: 900px) {
	.rayyan-home { grid-template-columns: 1fr; padding: 16px; }
	.rh-tiles { grid-template-columns: repeat(3, 1fr); }
	.rh-kpis { grid-template-columns: repeat(2, 1fr); }
}
