/* Rayyan ERP – inner pages theme (MatDash-inspired: soft canvas, white rounded cards, navy/green accents).
   Scoped to the light theme so dark mode keeps working. */
:root[data-theme="light"], :root:not([data-theme]) {
	--bg-color: #fbfbfd;
	--surface-sidebar: #f1f2f7;
	--desk-sidebar-bg: #f1f2f7;
	--dock-bg: #f1f2f7;
	--card-bg: #ffffff;
	--navbar-bg: #ffffff;
	--border-color: #e8ecf3;
	--control-bg: #f4f6fb;
	--rayyan-radius: 14px;
	--rayyan-shadow: 0 2px 12px rgba(13, 35, 68, 0.06);
}
:root[data-theme="light"] body, :root:not([data-theme]) body {
	background: var(--bg-color);
	font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Navbar */
.navbar, .desktop-navbar {
	background: #fff !important;
	border-bottom: 1px solid var(--border-color) !important;
	box-shadow: 0 1px 8px rgba(13, 35, 68, 0.04);
}
.navbar .navbar-brand img, #brand-logo { max-height: 34px; border-radius: 8px; }

/* Cards: forms, widgets, list, report, dashboards */
.form-layout .form-section.card-section, .frappe-card, .widget, .layout-main-section, .form-dashboard-section,
.form-sidebar .sidebar-section, .result, .report-wrapper, .list-view-container, .kanban-column .kanban-cards {
	border-radius: var(--rayyan-radius);
}
.frappe-card, .widget, .form-layout .form-section.card-section, .layout-main-section {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	box-shadow: var(--rayyan-shadow);
}
.widget.number-widget-box, .number-widget-box { border-radius: var(--rayyan-radius); }
.widget .widget-head .widget-title { color: var(--rayyan-navy); font-weight: 600; }

/* Lists / tables */
.list-row-head, .list-row-head .list-subject, .grid-heading-row, .dt-header .dt-cell {
	background: #f7f9fc !important;
	color: #5a6578;
	font-weight: 600;
	text-transform: none;
}
.list-row { transition: background .12s; }
.list-row:hover { background: #f4f8f6; }
.list-row-container, .grid-row { border-color: var(--border-color); }
.grid-body, .form-grid { border-radius: 12px; }

/* Inputs */
.form-control, .input-with-feedback, .awesomplete input, select.form-control {
	background: #f7f9fc;
	border: 1px solid var(--border-color);
	border-radius: 10px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-control:focus {
	background: #fff;
	border-color: var(--rayyan-green);
	box-shadow: 0 0 0 3px rgba(10, 107, 54, .12);
}

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary, .btn-primary-light { transition: filter .15s, transform .1s; }
.btn-primary {
	background: var(--rayyan-green) !important;
	border-color: var(--rayyan-green) !important;
	color: #fff !important;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: translateY(1px); }
.btn-default { background: #fff; border: 1px solid var(--border-color); }
.btn-default:hover { border-color: var(--rayyan-navy); }

/* Indicators / pills */
.indicator-pill, .indicator-pill-right, .indicator-pill-no-indicator { border-radius: 999px; font-weight: 600; }

/* Form tabs */
.form-tabs .nav-link.active { color: var(--rayyan-green); border-bottom: 2px solid var(--rayyan-green); font-weight: 700; }

/* Modals & dropdowns */
.modal-content { border-radius: 16px; border: none; box-shadow: 0 20px 50px rgba(13,35,68,.18); }
.dropdown-menu { border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(13,35,68,.12); }
.dropdown-item:hover { background: #f1f6f3; }

/* Login page (flat split layout, no box-shadow) */
body[data-path="login"] .for-login,
body[data-path="login"] .login-content,
body[data-path="login"] .page-card,
.for-login, .login-content, .page-card {
	background: transparent;
	border-radius: 0;
	box-shadow: none !important;
}
body[data-path="login"] { background: #ffffff; }
.page-card .btn-primary { width: 100%; }

/* Scrollbars */
*::-webkit-scrollbar-thumb { background: #cbd3e1; border-radius: 99px; }

/* ---- Sidebar: grey-lavender shell, selected row is a white pill with a soft shadow ---- */
.body-sidebar { background: #f1f2f7; border-right: 1px solid #e6e8f0; }
.body-sidebar .active-sidebar { background: #fff; box-shadow: 0 1px 3px rgba(13,35,68,.1); border-radius: 8px; }
.body-sidebar .active-sidebar .item-anchor, .body-sidebar .active-sidebar svg { color: var(--rayyan-green); }
.body-sidebar .active-sidebar .sidebar-item-label { font-weight: 600; color: var(--rayyan-green); }

/* ---- Workspace pages: stat cards + link-group cards ---- */
.number-widget-box, .widget.number-widget-box {
	background: #fff; border: 1px solid #ebedf3; border-radius: 14px; box-shadow: none; padding: 14px 16px;
}
.number-widget-box .number { font-size: 24px; font-weight: 700; color: var(--rayyan-navy); }
.widget.links-widget-box {
	background: #fff !important;
	border: 1px solid #ebedf3;
	border-radius: 14px;
	padding: 16px 18px 14px !important;
	box-shadow: none;
}
.widget.links-widget-box .widget-head { margin-bottom: 4px; }
.widget.links-widget-box .widget-head .widget-label .widget-title { font-size: 14px; font-weight: 700; color: var(--rayyan-navy); }
.widget.links-widget-box .widget-icon, .widget.links-widget-box .widget-head .widget-label > svg, .widget.links-widget-box .widget-head .widget-label > .icon-container {
	display: inline-grid; place-items: center; width: 32px; height: 32px; margin-inline-end: 10px;
	background: #e6f7ef; color: var(--rayyan-green); border-radius: 9px;
}
.widget.links-widget-box .link-item { padding-block: 7px; color: #3b4558; font-size: 13px; }
.widget.links-widget-box .link-item:hover { color: var(--rayyan-green); text-decoration: none; }
.widget.shortcut-widget-box { background: #fff; border: 1px solid #ebedf3; border-radius: 14px; }
.widget.shortcut-widget-box:hover { border-color: var(--rayyan-green); }
.widget.shortcut-widget-box:hover .widget-title { color: var(--rayyan-green); }
.widget-group .widget-group-title, .workspace-header .title-text { color: var(--rayyan-navy); font-weight: 700; }

/* =====================  Form pages (Sales Order, Invoice, ...)  ===================== */
.form-layout { padding-top: 8px; }
.form-page { background: transparent !important; }

/* each section becomes a separate rounded card with space between */
.form-layout .form-page .form-section,
.form-layout .form-page .form-dashboard-section {
	background: #fff;
	border: 1px solid #ebedf3 !important;
	border-radius: 14px;
	margin: 0 0 14px !important;
	padding: 16px 22px 10px !important;
	box-shadow: 0 1px 6px rgba(13, 35, 68, .04);
}
.form-layout .form-page .form-section.empty-section { display: none; }

/* section headings: navy, bold, green accent bar */
.form-section .section-head, .form-dashboard-section .section-head {
	position: relative;
	padding-inline-start: 12px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--rayyan-navy);
}
.form-section .section-head::before, .form-dashboard-section .section-head::before {
	content: "";
	position: absolute;
	inset-inline-start: 0; top: 15%; bottom: 15%;
	width: 4px; border-radius: 4px;
	background: linear-gradient(180deg, var(--rayyan-green), var(--rayyan-gold));
}
.form-section .section-head.collapsed { margin-bottom: 4px; }
.form-section .section-head .collapse-indicator { color: var(--rayyan-green); }

/* labels and controls */
.form-layout .control-label, .form-layout .form-group .clearfix .control-label {
	font-size: 12px; font-weight: 600; color: #5a6578; margin-bottom: 6px;
}
.form-layout .reqd .control-label::after, .form-layout .control-label.reqd::after { color: #d93025; }
.form-layout .control-input .form-control,
.form-layout .control-input .awesomplete input {
	height: 36px;
	background: #f7f9fc;
	border: 1px solid #e3e7ef;
	border-radius: 10px;
}
.form-layout textarea.form-control { height: auto; }
.form-layout .control-value, .form-layout .like-disabled-input {
	background: #f1f4f9; border-radius: 10px; padding: 8px 12px; font-weight: 600; color: var(--rayyan-navy);
}
.form-layout .form-control[disabled], .form-layout .form-control[readonly] { background: #f1f4f9; color: #6b7686; }
.form-layout .checkbox label { font-weight: 500; }

/* child tables */
.form-grid-container .form-grid { border: 1px solid #e3e7ef; border-radius: 12px; overflow: hidden; }
.form-grid .grid-heading-row { background: #f1f4f9 !important; border-bottom: 1px solid #e3e7ef; }
.form-grid .grid-heading-row .static-area, .form-grid .grid-heading-row .col { color: #4a5568; font-weight: 700; font-size: 12px; }
.form-grid .grid-row:hover { background: #f4faf7; }
.form-grid .grid-footer .btn { border-radius: 8px; }
.grid-add-row, .grid-add-multiple-rows { background: #e6f7ef !important; color: var(--rayyan-green) !important; border: none !important; }

/* page header on forms: title, status pill, actions */
.page-head .page-title .title-text { font-size: 18px; }
.page-head .indicator-pill.orange, .page-head .indicator-pill.red, .page-head .indicator-pill.gray { font-size: 11px; padding: 3px 10px; }
.page-head .btn-primary, .page-actions .primary-action { padding: 6px 18px; box-shadow: 0 4px 12px rgba(10, 107, 54, .25); }
.page-actions .btn-default { background: #fff; }

/* tabs */
.form-tabs-list { background: transparent; border-bottom: 1px solid #e3e7ef; }
.form-tabs-list .nav-link { color: #6b7686; font-weight: 600; padding: 10px 16px; border: none; }
.form-tabs-list .nav-link.active { color: var(--rayyan-green); border-bottom: 2px solid var(--rayyan-green); background: transparent; }

/* timeline/comments & sidebar */
.form-sidebar { padding-top: 8px; }
.new-timeline .timeline-item .timeline-content { border-radius: 12px; border: 1px solid #ebedf3; background: #fff; }
.comment-box .comment-input-wrapper { border-radius: 12px; border: 1px solid #e3e7ef; }

/* =====================  Sidebar: spacing + navy pill hover/active  ===================== */
.body-sidebar .standard-sidebar-item {
	margin-bottom: 6px;
}
.body-sidebar .standard-sidebar-item .item-anchor {
	height: 38px;
	padding-inline-start: 12px;
	border-radius: 10px;
	transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.body-sidebar .standard-sidebar-item .sidebar-item-label { font-size: 13.5px; }
.body-sidebar .standard-sidebar-item .sidebar-item-icon svg { width: 17px; height: 17px; }

/* hover: navy pill, white text, slight nudge */
.body-sidebar .standard-sidebar-item:not(.section-item-break):hover,
.body-sidebar .standard-sidebar-item:not(.active-sidebar):has(a:not(.section-break)):hover {
	background: var(--rayyan-navy) !important;
	border-radius: 10px;
}
.body-sidebar .standard-sidebar-item:has(a:not(.section-break)):hover .item-anchor,
.body-sidebar .standard-sidebar-item:has(a:not(.section-break)):hover .sidebar-item-label,
.body-sidebar .standard-sidebar-item:has(a:not(.section-break)):hover svg {
	color: #fff !important;
	stroke: #fff;
}
.body-sidebar .standard-sidebar-item:has(a:not(.section-break)):hover .item-anchor { transform: translateX(3px); }

/* active: same navy pill, bold white text */
.body-sidebar .active-sidebar,
.body-sidebar .standard-sidebar-item.active-sidebar {
	background: var(--rayyan-navy) !important;
	box-shadow: 0 4px 12px rgba(13, 35, 68, .25);
	border-radius: 10px;
}
.body-sidebar .active-sidebar .item-anchor,
.body-sidebar .active-sidebar .sidebar-item-label,
.body-sidebar .active-sidebar svg {
	color: #fff !important;
	stroke: #fff;
}
.body-sidebar .active-sidebar .sidebar-item-label { font-weight: 700; }
.body-sidebar .sidebar-items { padding-top: 6px; }

:root {
	--sidebar-collapsed-width: 68px;
	--dock-width: 80px;
	--dock-tile: 48px;
}

.dock .dock-item .icon-rail,
.dock .dock-item-icon > svg.icon-rail {
	width: 28px;
	height: 28px;
}
.dock .dock-utilities .dock-item {
	width: 40px;
	height: 40px;
}
.dock .dock-utilities .dock-item svg {
	width: 22px;
	height: 22px;
}
.dock .dock-item.active,
.dock .dock-item.active:hover {
	background: var(--rayyan-navy) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(13, 35, 68, .25);
}
.dock .dock-item.active svg,
.dock .dock-item.active:hover svg {
	color: #fff;
	stroke: #fff;
	--icon-stroke: #fff;
	--icon-fill: #fff;
}
body.dock-pinned .dock .dock-logo .shell-header {
	width: 52px;
	height: 52px;
}
body.dock-pinned .dock .dock-logo .header-logo,
body.dock-pinned .dock .dock-logo .header-logo img,
body.dock-pinned .dock .dock-logo .header-logo .icon-container,
body.dock-pinned .dock .dock-logo .header-logo svg {
	width: 44px;
	height: 44px;
}
body.dock-pinned .dock .dock-logo .header-logo img {
	object-fit: contain;
	background: transparent !important;
	border-radius: 12px;
}
body.dock-pinned .dock .dock-user-button .avatar,
body.dock-pinned .dock .dock-user-button .avatar .standard-image,
body.dock-pinned .dock .dock-user-button img {
	width: 40px;
	height: 40px;
	font-size: 16px;
}

@media (min-width: 768px) {
	.body-sidebar-container:not(.expanded) .body-sidebar .sidebar-header {
		display: flex;
		justify-content: center;
		margin: 10px 6px 6px;
	}
	.body-sidebar-container:not(.expanded) .body-sidebar .shell-header {
		width: 52px;
		height: 52px;
		justify-content: center;
		padding: 0;
	}
	.body-sidebar-container:not(.expanded) .body-sidebar .header-logo {
		width: 40px;
		height: 40px;
	}
	.body-sidebar-container:not(.expanded) .body-sidebar .standard-sidebar-item .item-anchor {
		height: 46px;
		justify-content: center;
		padding-inline-start: 0;
	}
	.body-sidebar-container:not(.expanded) .body-sidebar .standard-sidebar-item .sidebar-item-icon svg {
		width: 24px;
		height: 24px;
	}
	.body-sidebar-container:not(.expanded) .body-sidebar .standard-sidebar-item:has(a:not(.section-break)):hover .item-anchor {
		transform: none;
	}
	.body-sidebar-container:not(.expanded) .body-sidebar .sidebar-user-button {
		width: 52px !important;
		min-height: 52px;
		justify-content: center;
		padding: 0 !important;
	}
	.body-sidebar-container:not(.expanded) .body-sidebar .sidebar-user-button .avatar,
	.body-sidebar-container:not(.expanded) .body-sidebar .sidebar-user-button .avatar .standard-image {
		width: 36px;
		height: 36px;
	}
}

/* =====================  Workspace cards: minimalist spacing + hover  ===================== */
.widget-group .widget-group-body { gap: 20px !important; }
.layout-main-section .ce-block, .codex-editor .ce-block__content { margin-bottom: 4px; }

/* number cards: flat, airy */
.widget.number-widget-box {
	padding: 18px 20px !important;
	border: 1px solid #eceef4;
	border-radius: 12px;
	box-shadow: none !important;
	transition: border-color .15s ease;
}
.widget.number-widget-box:hover { border-color: #cfd6e4; }
.number-widget-box .widget-title, .number-widget-box .widget-label { font-size: 12px; color: #8a94a6; font-weight: 500; }
.number-widget-box .number { margin-top: 6px; font-size: 22px; font-weight: 600; color: var(--rayyan-navy); }

/* link-group cards: flat white, thin border, generous padding */
.widget.links-widget-box {
	padding: 22px 24px 16px !important;
	border: 1px solid #eceef4;
	border-radius: 12px;
	box-shadow: none !important;
}
.widget.links-widget-box .widget-head { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #f1f3f8; }
.widget.links-widget-box .widget-head .widget-label .widget-title {
	font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--rayyan-navy);
}
.widget.links-widget-box .widget-body { gap: 2px; margin-top: 0; }

/* each link row: roomy, subtle hover, thin accent on the left */
.widget.links-widget-box .link-item {
	position: relative;
	padding: 8px 12px !important;
	margin: 0 -12px;
	border-radius: 8px;
	font-size: 13px;
	color: #4b5567;
	line-height: 1.4;
	transition: background .15s ease, color .15s ease, padding-inline-start .15s ease;
}
.widget.links-widget-box .link-item::before {
	content: "";
	position: absolute;
	inset-inline-start: 0; top: 22%; bottom: 22%;
	width: 2px; border-radius: 2px;
	background: var(--rayyan-green);
	opacity: 0;
	transition: opacity .15s ease;
}
.widget.links-widget-box .link-item:hover {
	background: #f5f7fb;
	color: var(--rayyan-green) !important;
	padding-inline-start: 16px !important;
	text-decoration: none;
}
.widget.links-widget-box .link-item:hover::before { opacity: 1; }

/* selected / focused / pressed link */
.widget.links-widget-box .link-item:focus-visible,
.widget.links-widget-box .link-item:active,
.widget.links-widget-box .link-item.selected {
	background: #e9f5ef;
	color: var(--rayyan-green) !important;
	font-weight: 600;
	outline: none;
}
.widget.links-widget-box .link-item:focus-visible::before,
.widget.links-widget-box .link-item:active::before,
.widget.links-widget-box .link-item.selected::before { opacity: 1; }

/* =====================  Reduce empty side space: use the full page width  ===================== */
:root { --page-max-width: 1500px; }
.page-container .container, .page-head .container, .layout-main, .main-section .container,
.layout-main-section-wrapper, .workspace-container, .desk-page .container {
	/* max-width: 1500px !important; */
	width: 100%;
}
.page-head .container, .layout-main { margin-inline: auto; padding-inline: 24px; }
body.desktop-page .layout-main { padding-inline: 0; }
body.desktop-page .layout-main-section {
	border-radius: 0;
	border-inline: none;
	box-shadow: none;
}
.layout-main-section-wrapper { padding-inline: 0; }
/* workspace content fills its column */
.layout-main-section .codex-editor, .layout-main-section .codex-editor__redactor,
.layout-main-section .ce-block__content, .layout-main-section .ce-block__content > * {
	max-width: 100% !important;
}
.widget-group, .widget-group .widget-group-body { width: 100%; }
@media (min-width: 1400px) {
	.widget-group .widget-group-body.grid-col-3 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* =====================  List view: header + filter bar (minimal)  ===================== */
.page-head .page-head-content { padding-block: 12px; }
.page-head .page-title .title-text { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }

/* the filter strip becomes one clean rounded bar */
.page-form.flex, .page-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	padding: 12px 14px !important;
	margin: 6px 0 14px;
	background: #fff;
	border: 1px solid #eceef4;
	border-radius: 12px;
}
.standard-filter-section { display: flex; flex-wrap: wrap; gap: 10px 12px; flex: 1 1 auto; align-items: center; }
.standard-filter-section .frappe-control { margin: 0 !important; min-width: 150px; flex: 0 1 190px; }
.standard-filter-section .form-group { margin: 0; }
.standard-filter-section .form-control, .standard-filter-section .awesomplete input, .standard-filter-section select.form-control {
	height: 34px;
	background: #f7f9fc;
	border: 1px solid transparent;
	border-radius: 9px;
	font-size: 12.5px;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.standard-filter-section .form-control:hover { border-color: #dfe4ee; }
.standard-filter-section .form-control:focus {
	background: #fff; border-color: var(--rayyan-green); box-shadow: 0 0 0 3px rgba(10, 107, 54, .1);
}
.standard-filter-section .form-control::placeholder { color: #9aa3b2; }

/* filter / sort / list-view controls */
.filter-section { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.filter-selector .filter-button, .sort-selector .btn, .filter-section .btn, .list-view-switcher .btn {
	height: 34px;
	background: #fff;
	border: 1px solid #e3e7ef;
	border-radius: 9px;
	font-size: 12.5px;
	font-weight: 500;
	color: #4b5567;
	box-shadow: none;
	transition: border-color .15s, color .15s, background .15s;
}
.filter-selector .filter-button:hover, .sort-selector .btn:hover, .filter-section .btn:hover { border-color: var(--rayyan-green); color: var(--rayyan-green); background: #f5faf7; }
.filter-selector .filter-button.btn-primary-light, .filter-selector .filter-button.active {
	background: #e9f5ef !important; border-color: #cfe9db; color: var(--rayyan-green);
}

/* header actions */
.page-actions .btn { height: 34px; border-radius: 9px; }
.page-actions .btn-primary { padding-inline: 16px; }

/* empty state: calmer, centred */
.no-result { padding: 90px 0; color: #8a94a6; }
.no-result .msg-box .null-state { opacity: .55; }
.no-result .btn { border-radius: 9px; background: #fff; border: 1px solid #e3e7ef; }
.no-result .btn:hover { border-color: var(--rayyan-green); color: var(--rayyan-green); }

@media (max-width: 768px) {
	.standard-filter-section .frappe-control { flex: 1 1 45%; }
}

/* =====================  Refined Select / Dropdown Filters  ===================== */
.standard-filter-section .frappe-control[data-fieldtype="Select"] {
	position: relative;
	display: flex;
	align-items: center;
}
.standard-filter-section .frappe-control[data-fieldtype="Select"] select.form-control {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	height: 36px;
	padding-inline-start: 12px;
	padding-inline-end: 32px;
	background: #f7f9fc !important;
	border: 1px solid #e3e7ef !important;
	border-radius: 9px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #1f2a3d !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: all 0.2s ease;
	line-height: 34px;
}
.standard-filter-section .frappe-control[data-fieldtype="Select"] select.form-control:hover {
	background: #ffffff !important;
	border-color: #cfd6e4 !important;
	box-shadow: 0 2px 6px rgba(13, 35, 68, 0.04) !important;
}
.standard-filter-section .frappe-control[data-fieldtype="Select"] select.form-control:focus {
	background: #ffffff !important;
	border-color: var(--rayyan-green) !important;
	box-shadow: 0 0 0 3px rgba(10, 107, 54, 0.12) !important;
	outline: none !important;
}
/* Ensure the chevron icon inside the select aligns perfectly */
.standard-filter-section .frappe-control[data-fieldtype="Select"] .select-icon,
.standard-filter-section .frappe-control[data-fieldtype="Select"] .select-icon.xs {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #7a8699;
}
.standard-filter-section .frappe-control[data-fieldtype="Select"] .select-icon svg {
	width: 14px;
	height: 14px;
	stroke: #7a8699;
}
/* Placeholder text vertical centering & typography */
.standard-filter-section .frappe-control[data-fieldtype="Select"] .placeholder,
.standard-filter-section .frappe-control[data-fieldtype="Select"] .placeholder.xs {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	font-size: 13px;
	font-weight: 500;
	color: #8a94a6;
	line-height: 1;
	max-width: calc(100% - 36px);
}
.standard-filter-section .frappe-control[data-fieldtype="Select"] select:not([value=""]) + .select-icon + .placeholder {
	display: none;
}
/* Input group (ID, Customer Name) with match-type dropdown button */
.standard-filter-section .input-group {
	display: flex;
	align-items: stretch;
	border: 1px solid #e3e7ef;
	border-radius: 9px;
	background: #f7f9fc;
	overflow: hidden;
	height: 36px;
	transition: all 0.2s ease;
}
.standard-filter-section .input-group:hover {
	border-color: #cfd6e4;
	background: #ffffff;
}
.standard-filter-section .input-group:focus-within {
	border-color: var(--rayyan-green);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(10, 107, 54, 0.12);
}
.standard-filter-section .input-group .form-control {
	border: none !important;
	background: transparent !important;
	height: 100% !important;
	box-shadow: none !important;
	font-size: 13px;
	padding-inline-start: 12px;
}
.standard-filter-section .input-group .match-type-dropdown-btn {
	border: none !important;
	background: transparent !important;
	border-left: 1px solid #e3e7ef !important;
	border-radius: 0 !important;
	padding: 0 8px !important;
	color: #7a8699;
	height: 100% !important;
}
.standard-filter-section .input-group .match-type-dropdown-btn:hover {
	background: #f1f4f9 !important;
	color: var(--rayyan-navy);
}

/* Link field awesomplete in filter row */
.standard-filter-section .link-field .awesomplete input {
	height: 36px !important;
	background: #f7f9fc !important;
	border: 1px solid #e3e7ef !important;
	border-radius: 9px !important;
	padding-inline-start: 12px !important;
	font-size: 13px !important;
	transition: all 0.2s ease;
}
.standard-filter-section .link-field .awesomplete input:hover {
	border-color: #cfd6e4 !important;
	background: #ffffff !important;
}
.standard-filter-section .link-field .awesomplete input:focus {
	border-color: var(--rayyan-green) !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(10, 107, 54, 0.12) !important;
}

/* Date filter in filter row */
.standard-filter-section .frappe-control[data-fieldtype="Date"] input {
	height: 36px !important;
	background: #f7f9fc !important;
	border: 1px solid #e3e7ef !important;
	border-radius: 9px !important;
	padding-inline-start: 12px !important;
	font-size: 13px !important;
	transition: all 0.2s ease;
}
.standard-filter-section .frappe-control[data-fieldtype="Date"] input:hover {
	border-color: #cfd6e4 !important;
	background: #ffffff !important;
}
.standard-filter-section .frappe-control[data-fieldtype="Date"] input:focus {
	border-color: var(--rayyan-green) !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(10, 107, 54, 0.12) !important;
}

/* =====================  Page Actions & Header Toolbar Enhancement  ===================== */
.page-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.page-actions .standard-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* View Switcher button (List View dropdown) */
.page-actions .view-switcher button.es-button,
.page-actions .custom-btn-group button.es-button {
	height: 36px;
	padding: 0 12px;
	background: #ffffff !important;
	border: 1px solid #e3e7ef !important;
	border-radius: 9px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #1f2a3d !important;
	box-shadow: 0 1px 2px rgba(13, 35, 68, 0.04) !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.page-actions .view-switcher button.es-button:hover,
.page-actions .custom-btn-group button.es-button:hover {
	background: #f7f9fc !important;
	border-color: #cfd6e4 !important;
	color: var(--rayyan-navy) !important;
}

/* Reload List icon button */
.page-actions .page-icon-group .icon-btn,
.page-actions .page-icon-group button.btn {
	height: 36px;
	width: 36px;
	padding: 0;
	background: #ffffff !important;
	border: 1px solid #e3e7ef !important;
	border-radius: 9px !important;
	color: #64748b !important;
	box-shadow: 0 1px 2px rgba(13, 35, 68, 0.04) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}
.page-actions .page-icon-group .icon-btn:hover,
.page-actions .page-icon-group button.btn:hover {
	background: #f7f9fc !important;
	border-color: #cfd6e4 !important;
	color: var(--rayyan-green) !important;
}

/* Menu (...) more button */
.page-actions .menu-btn-group .menu-more-button,
.page-actions .menu-btn-group button.es-button {
	height: 36px;
	width: 36px;
	padding: 0;
	background: #ffffff !important;
	border: 1px solid #e3e7ef !important;
	border-radius: 9px !important;
	color: #64748b !important;
	box-shadow: 0 1px 2px rgba(13, 35, 68, 0.04) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}
.page-actions .menu-btn-group .menu-more-button:hover,
.page-actions .menu-btn-group button.es-button:hover {
	background: #f7f9fc !important;
	border-color: #cfd6e4 !important;
	color: var(--rayyan-navy) !important;
}

/* Primary Action button (+ Add Customer, + Add Sales Order, Save, etc.) */
.page-actions button.primary-action,
.page-actions button.es-button.primary-action {
	height: 36px;
	padding: 0 16px;
	background: var(--rayyan-green) !important;
	border: 1px solid var(--rayyan-green) !important;
	border-radius: 9px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(10, 107, 54, 0.22) !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.page-actions button.primary-action svg,
.page-actions button.es-button.primary-action svg {
	stroke: #ffffff;
}
.page-actions button.primary-action:hover,
.page-actions button.es-button.primary-action:hover {
	background: #0d7f42 !important;
	border-color: #0d7f42 !important;
	box-shadow: 0 4px 12px rgba(10, 107, 54, 0.32) !important;
	transform: translateY(-1px);
}
.page-actions button.primary-action:active,
.page-actions button.es-button.primary-action:active {
	transform: translateY(0);
}

/* Secondary Action / Actions Button Group */
.page-actions .actions-btn-group button.es-button {
	height: 36px;
	padding: 0 14px;
	background: #ffffff !important;
	border: 1px solid #e3e7ef !important;
	border-radius: 9px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #1f2a3d !important;
	box-shadow: 0 1px 2px rgba(13, 35, 68, 0.04) !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.page-actions .actions-btn-group button.es-button:hover {
	background: #f7f9fc !important;
	border-color: #cfd6e4 !important;
	color: var(--rayyan-navy) !important;
}

/* Breadcrumbs in page-head */
.page-head .es-breadcrumbs ol {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	font-weight: 600;
	color: var(--rayyan-navy);
}

/* =====================  Unified Navy Palette (Matching Sidebar Selected Item)  ===================== */
:root {
	--rayyan-primary: #0d2344;
	--rayyan-primary-hover: #15325e;
	--rayyan-primary-active: #08172e;
	--rayyan-primary-light: #edf2f9;
	--rayyan-primary-border: #cbd7e8;
}

/* Primary Action Buttons (Add Customer, Save, New Doc, etc.) */
.page-actions button.primary-action,
.page-actions button.es-button.primary-action,
.btn-primary,
.btn-primary-light {
	background: var(--rayyan-primary) !important;
	border-color: var(--rayyan-primary) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(13, 35, 68, 0.22) !important;
}
.page-actions button.primary-action svg,
.page-actions button.es-button.primary-action svg,
.btn-primary svg {
	stroke: #ffffff !important;
}
.page-actions button.primary-action:hover,
.page-actions button.es-button.primary-action:hover,
.btn-primary:hover {
	background: var(--rayyan-primary-hover) !important;
	border-color: var(--rayyan-primary-hover) !important;
	box-shadow: 0 4px 12px rgba(13, 35, 68, 0.32) !important;
	transform: translateY(-1px);
}
.page-actions button.primary-action:active,
.page-actions button.es-button.primary-action:active,
.btn-primary:active {
	background: var(--rayyan-primary-active) !important;
	border-color: var(--rayyan-primary-active) !important;
	transform: translateY(0);
}

/* Form Controls Focus & Ring */
.form-control:focus,
.standard-filter-section .form-control:focus,
.standard-filter-section .frappe-control[data-fieldtype="Select"] select.form-control:focus,
.standard-filter-section .link-field .awesomplete input:focus,
.standard-filter-section .frappe-control[data-fieldtype="Date"] input:focus {
	border-color: var(--rayyan-primary) !important;
	box-shadow: 0 0 0 3px rgba(13, 35, 68, 0.12) !important;
}
.standard-filter-section .input-group:focus-within {
	border-color: var(--rayyan-primary) !important;
	box-shadow: 0 0 0 3px rgba(13, 35, 68, 0.12) !important;
}

/* Active filter buttons & view switchers */
.filter-selector .filter-button:hover,
.sort-selector .btn:hover,
.filter-section .btn:hover,
.page-actions .page-icon-group .icon-btn:hover {
	border-color: var(--rayyan-primary) !important;
	color: var(--rayyan-primary) !important;
}
.filter-selector .filter-button.btn-primary-light,
.filter-selector .filter-button.active {
	background: var(--rayyan-primary-light) !important;
	border-color: var(--rayyan-primary-border) !important;
	color: var(--rayyan-primary) !important;
}

/* Form Section Accent & Tabs */
.form-section .section-head::before,
.form-dashboard-section .section-head::before {
	background: var(--rayyan-primary) !important;
}
.form-tabs .nav-link.active,
.form-tabs-list .nav-link.active {
	color: var(--rayyan-primary) !important;
	border-bottom: 2px solid var(--rayyan-primary) !important;
}
.form-section .section-head .collapse-indicator {
	color: var(--rayyan-primary) !important;
}

/* Workspace widgets hover & active */
.widget.links-widget-box .link-item:hover,
.widget.links-widget-box .link-item:focus-visible,
.widget.links-widget-box .link-item:active,
.widget.links-widget-box .link-item.selected {
	color: var(--rayyan-primary) !important;
}
.widget.links-widget-box .link-item::before {
	background: var(--rayyan-primary) !important;
}
.widget.shortcut-widget-box:hover {
	border-color: var(--rayyan-primary) !important;
}
.widget.shortcut-widget-box:hover .widget-title {
	color: var(--rayyan-primary) !important;
}
.grid-add-row, .grid-add-multiple-rows {
	background: var(--rayyan-primary-light) !important;
	color: var(--rayyan-primary) !important;
}

/* =====================  Document details (form)  ===================== */
body[data-route^="Form"] {
	--page-head-height: 156px;
	--form-sidebar-width: 300px;
	--rayyan-doc-accent: var(--rayyan-primary);
	--rayyan-doc-ink: #16182b;
	--rayyan-doc-muted: #8b93a7;
	--rayyan-doc-line: #e7e9f0;
	--rayyan-doc-canvas: #f5f6fa;
	background: var(--rayyan-doc-canvas);
}
body[data-route^="Form"] .page-container,
body[data-route^="Form"] .page-body,
body[data-route^="Form"] .page-head {
	background: var(--rayyan-doc-canvas) !important;
}
body[data-route^="Form"] .page-head {
	border-bottom: none !important;
	box-shadow: none !important;
}
body[data-route^="Form"] .page-head .container,
body[data-route^="Form"] .page-body.container {
	max-width: 1240px;
}
body[data-route^="Form"] .page-head .page-head-content {
	height: auto;
	min-height: 112px;
	align-items: stretch;
	padding: 14px 8px 8px;
	gap: 16px;
}
body[data-route^="Form"] .page-head .page-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 0;
	min-width: 0;
	flex: 1 1 auto;
}
body[data-route^="Form"] .page-head .title-area {
	display: block;
	width: 100%;
	min-width: 0;
}
body[data-route^="Form"] .page-head .es-breadcrumbs,
body[data-route^="Form"] .page-head .es-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--rayyan-doc-muted);
	white-space: normal;
}
body[data-route^="Form"] .page-head .es-breadcrumbs__item,
body[data-route^="Form"] .page-head .es-breadcrumbs__label {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--rayyan-doc-muted);
	padding-block: 0;
}
body[data-route^="Form"] .page-head .es-breadcrumbs li.rayyan-current-crumb {
	display: none;
}
body[data-route^="Form"] .rayyan-doc-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	min-width: 0;
}
body[data-route^="Form"] .rayyan-doc-name {
	margin: 0;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--rayyan-doc-ink);
}
body[data-route^="Form"] .rayyan-doc-sub {
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--rayyan-doc-muted);
}
body[data-route^="Form"] .rayyan-doc-title .page-indicator-pill {
	height: 22px;
	padding-inline: 8px;
	font-size: 12px;
	font-weight: 600;
}
body[data-route^="Form"] .rayyan-doc-title .page-indicator-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}
body[data-route^="Form"] .page-head .standard-items-section {
	align-items: flex-start;
	margin-left: auto;
}
body[data-route^="Form"] .page-actions {
	display: grid;
	grid-template-columns: auto auto;
	justify-content: end;
	align-items: start;
	height: auto;
	width: max-content;
	max-width: 100%;
	column-gap: 8px;
	row-gap: 0;
	padding: 0;
}
body[data-route^="Form"] .page-actions .filters:empty,
body[data-route^="Form"] .page-actions .custom-mobile-actions:empty {
	display: none;
}
body[data-route^="Form"] .page-actions .custom-actions:not(.hide) {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
}
body[data-route^="Form"] .page-actions .standard-actions {
	grid-column: 2;
	grid-row: 1;
	display: grid;
	grid-template-areas:
		"secondary group primary"
		"icons icons menu";
	justify-content: end;
	justify-items: end;
	align-items: center;
	column-gap: 8px;
	row-gap: 8px;
	width: max-content;
}
body[data-route^="Form"] .page-actions .secondary-action { grid-area: secondary; }
body[data-route^="Form"] .page-actions .actions-btn-group { grid-area: group; }
body[data-route^="Form"] .page-actions .primary-action { grid-area: primary; }
body[data-route^="Form"] .page-actions .page-icon-group { grid-area: icons; }
body[data-route^="Form"] .page-actions .menu-btn-group { grid-area: menu; }
body[data-route^="Form"] .page-icon-group .icon-btn,
body[data-route^="Form"] .page-icon-group button,
body[data-route^="Form"] .menu-btn-group button,
body[data-route^="Form"] .menu-btn-group .menu-more-button {
	width: 32px !important;
	height: 32px !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #6d7588 !important;
	border-radius: 8px !important;
}
body[data-route^="Form"] .page-icon-group button:hover,
body[data-route^="Form"] .menu-btn-group button:hover {
	background: #fff !important;
	color: var(--rayyan-doc-ink) !important;
}
body[data-route^="Form"] .page-actions .custom-actions .es-button,
body[data-route^="Form"] .page-actions .custom-btn-group > .es-button,
body[data-route^="Form"] .page-actions .actions-btn-group > .es-button,
body[data-route^="Form"] .page-actions .secondary-action {
	height: 34px !important;
	padding: 0 12px !important;
	margin: 0 !important;
	background: #fff !important;
	border: 1px solid var(--rayyan-doc-line) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	color: #2a3142 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}
body[data-route^="Form"] .page-actions .custom-actions .es-button:hover,
body[data-route^="Form"] .page-actions .custom-btn-group > .es-button:hover,
body[data-route^="Form"] .page-actions .secondary-action:hover {
	border-color: #d5d8e2 !important;
	background: #fbfbfe !important;
}
body[data-route^="Form"] .page-actions .primary-action,
body[data-route^="Form"] .page-actions button.primary-action,
body[data-route^="Form"] .page-actions .es-button.primary-action {
	height: 34px !important;
	padding: 0 14px !important;
	margin: 0 !important;
	background: var(--rayyan-doc-accent) !important;
	border: 1px solid var(--rayyan-doc-accent) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	transform: none !important;
}
body[data-route^="Form"] .page-actions .primary-action:hover,
body[data-route^="Form"] .page-actions button.primary-action:hover {
	background: var(--rayyan-primary-hover) !important;
	border-color: var(--rayyan-primary-hover) !important;
	box-shadow: none !important;
	transform: none !important;
}
body[data-route^="Form"] .page-actions .primary-action svg {
	stroke: #fff !important;
}

body[data-route^="Form"] .layout-main {
	align-items: flex-start;
	gap: 18px;
	padding: 6px 8px 40px;
}
body[data-route^="Form"] .layout-main-section-wrapper {
	min-width: 0;
}
body[data-route^="Form"] .layout-main-section,
body[data-route^="Form"] .layout-main-section.frappe-card {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	overflow: visible;
}
body[data-route^="Form"] .form-layout {
	padding-top: 0;
}
body[data-route^="Form"] .form-tabs-list {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--rayyan-doc-line);
	border-radius: 0;
	margin: 0 0 16px;
	position: sticky;
}
body[data-route^="Form"] .form-tabs-list .nav-link {
	background: transparent !important;
	color: var(--rayyan-doc-muted) !important;
	font-size: 13.5px;
	font-weight: 500;
	padding: 10px 0;
	margin: 0 22px 0 0;
	border: none !important;
	border-bottom: 2px solid transparent !important;
}
body[data-route^="Form"] .form-tabs-list .nav-link.active {
	color: var(--rayyan-doc-ink) !important;
	font-weight: 600;
	border-bottom: 2px solid var(--rayyan-doc-ink) !important;
}
body[data-route^="Form"] .form-layout .form-page .form-section,
body[data-route^="Form"] .form-layout .form-page .form-dashboard-section {
	background: #fff;
	border: 1px solid var(--rayyan-doc-line) !important;
	border-radius: 14px;
	margin: 0 0 14px !important;
	padding: 16px 20px 8px !important;
	box-shadow: none;
}
body[data-route^="Form"] .form-section .section-head,
body[data-route^="Form"] .form-dashboard-section .section-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	margin-bottom: 2px;
	font-size: 15px;
	font-weight: 700;
	color: var(--rayyan-doc-ink);
}
body[data-route^="Form"] .form-section .section-head::before,
body[data-route^="Form"] .form-dashboard-section .section-head::before {
	display: none !important;
}
body[data-route^="Form"] .form-section-description {
	margin: 0 0 14px !important;
	padding: 0 !important;
	max-width: none;
	font-size: 12.5px;
	color: var(--rayyan-doc-muted);
}
body[data-route^="Form"] .rayyan-folded,
body[data-route^="Form"] .form-section:not(:has(.frappe-control:not(.hide-control))):not(:has(.form-dashboard)) {
	display: none !important;
}
body[data-route^="Form"] .rayyan-head-switch {
	width: auto !important;
	flex: 0 0 auto;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
}
body[data-route^="Form"] .rayyan-head-switch .form-group,
body[data-route^="Form"] .rayyan-head-switch .checkbox {
	margin: 0;
}
body[data-route^="Form"] .rayyan-head-switch .help,
body[data-route^="Form"] .rayyan-head-switch .help-box {
	display: none;
}
body[data-route^="Form"] .rayyan-head-switch .checkbox label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 500;
}
body[data-route^="Form"] .rayyan-head-switch .label-area {
	order: 0;
	font-size: 13px;
	font-weight: 500;
	color: #4b5568;
}
body[data-route^="Form"] .rayyan-head-switch .input-area {
	order: 1;
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	border-radius: 999px;
	background: #e4e6ee;
	transition: background .15s ease;
}
body[data-route^="Form"] .rayyan-head-switch .input-area::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .18);
	transition: transform .15s ease;
	pointer-events: none;
}
body[data-route^="Form"] .rayyan-head-switch input[type="checkbox"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
body[data-route^="Form"] .rayyan-head-switch .input-area:has(input:checked) {
	background: var(--rayyan-doc-accent);
}
body[data-route^="Form"] .rayyan-head-switch .input-area:has(input:checked)::after {
	transform: translateX(16px);
}
body[data-route^="Form"] .rayyan-head-switch input:disabled {
	cursor: default;
}
body[data-route^="Form"] .form-layout .control-label {
	font-size: 12px;
	font-weight: 500;
	color: #667085;
	margin-bottom: 6px;
}
body[data-route^="Form"] .form-layout .control-input .form-control,
body[data-route^="Form"] .form-layout .control-input .awesomplete input,
body[data-route^="Form"] .form-layout .like-disabled-input {
	height: 38px;
	background: #fff;
	border: 1px solid #e6e8ef;
	border-radius: 8px;
	color: var(--rayyan-doc-ink);
	font-weight: 500;
	box-shadow: none;
}
body[data-route^="Form"] .form-layout textarea.form-control {
	height: auto;
}
body[data-route^="Form"] .form-layout .form-control:focus,
body[data-route^="Form"] .form-layout .awesomplete input:focus {
	border-color: var(--rayyan-doc-accent) !important;
	box-shadow: 0 0 0 3px rgba(13, 35, 68, .12) !important;
	background: #fff;
}

body[data-route^="Form"] .form-footer {
	background: transparent;
	padding-bottom: 12px;
}
body[data-route^="Form"] .comment-box {
	margin: 0 0 14px;
}
body[data-route^="Form"] .comment-input-wrapper,
body[data-route^="Form"] .new-timeline {
	background: #fff;
	border: 1px solid var(--rayyan-doc-line);
	border-radius: 14px;
	padding: 16px 18px 12px;
	box-shadow: none;
}
body[data-route^="Form"] .comment-input-header .comment-title,
body[data-route^="Form"] .new-timeline .activity-title h4 {
	font-size: 15px;
	font-weight: 700;
	color: var(--rayyan-doc-ink);
}
body[data-route^="Form"] .comment-input-container .avatar {
	display: none;
}
body[data-route^="Form"] .comment-input-wrapper .ql-container,
body[data-route^="Form"] .comment-input-wrapper .ql-editor {
	background: #fff !important;
	border: 1px solid #e6e8ef !important;
	border-radius: 8px !important;
	min-height: 40px !important;
}
body[data-route^="Form"] .comment-input-wrapper .ql-editor {
	padding: 9px 12px !important;
}
body[data-route^="Form"] .comment-input-wrapper .ql-editor.ql-blank::before {
	color: #9aa3b5;
	font-style: normal;
	left: 12px;
}
body[data-route^="Form"] .new-timeline {
	margin-top: 0;
	padding-top: 14px;
}
body[data-route^="Form"] .new-timeline::before {
	display: none;
}
body[data-route^="Form"] .new-timeline .activity-title,
body[data-route^="Form"] .new-timeline .timeline-actions {
	min-height: 0;
	margin: 0 0 8px !important;
	padding: 0;
	background: transparent;
}
body[data-route^="Form"] .new-timeline .timeline-item {
	margin-left: 0;
	margin-bottom: 8px;
}
body[data-route^="Form"] .new-timeline .timeline-dot,
body[data-route^="Form"] .new-timeline .timeline-badge {
	position: static;
	width: 6px;
	height: 6px;
	min-width: 6px;
	margin: 8px 10px 0 2px;
	border-radius: 50%;
	background: #c5cad6;
	left: auto;
	top: auto;
}
body[data-route^="Form"] .new-timeline .timeline-dot::before {
	display: none;
}
body[data-route^="Form"] .new-timeline .timeline-item:not(.activity-title) {
	display: flex;
	align-items: flex-start;
}
body[data-route^="Form"] .new-timeline .timeline-content {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0;
	padding: 0 !important;
	flex: 1;
}
body[data-route^="Form"] .new-timeline .action-btn {
	height: 30px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--rayyan-doc-line);
	font-weight: 500;
}

body[data-route^="Form"] .layout-side-section {
	background: transparent !important;
	border: none !important;
	min-width: 280px !important;
	width: 300px !important;
	flex: 0 0 300px !important;
	padding: 4px 4px 24px 0;
}
body[data-route^="Form"] .layout-side-section .form-sidebar {
	width: 100%;
}
body[data-route^="Form"] .rayyan-profile-card,
body[data-route^="Form"] .rayyan-related-card {
	background: #fff;
	border: 1px solid var(--rayyan-doc-line);
	border-radius: 14px;
}
body[data-route^="Form"] .rayyan-profile-card {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 2px;
	align-items: center;
	padding: 16px 16px 12px;
}
body[data-route^="Form"] .rayyan-profile-card .sidebar-image-section,
body[data-route^="Form"] .rayyan-profile-card .sidebar-meta-details,
body[data-route^="Form"] .rayyan-profile-card .sidebar-meta-details > .flex,
body[data-route^="Form"] .rayyan-profile-card .sidebar-meta-details .ellipsis {
	display: contents;
}
body[data-route^="Form"] .rayyan-profile-card .sidebar-image-section.hide {
	display: none;
}
body[data-route^="Form"] .rayyan-profile-card .sidebar-image-wrapper,
body[data-route^="Form"] .rayyan-profile-card .rayyan-letter {
	grid-area: 1 / 1 / 3 / 2;
	width: 48px;
	height: 48px;
}
body[data-route^="Form"] .rayyan-profile-card .sidebar-image,
body[data-route^="Form"] .rayyan-profile-card .sidebar-standard-image,
body[data-route^="Form"] .rayyan-profile-card .standard-image {
	width: 48px !important;
	height: 48px !important;
	padding: 0 !important;
	border-radius: 12px;
}
body[data-route^="Form"] .rayyan-profile-card .standard-image,
body[data-route^="Form"] .rayyan-letter {
	display: grid;
	place-items: center;
	background: var(--rayyan-primary-light);
	color: var(--rayyan-primary);
	font-size: 20px;
	font-weight: 650;
	line-height: 1;
}
body[data-route^="Form"] .rayyan-profile-card .form-title-text {
	grid-area: 1 / 2;
	line-height: 1.2;
	cursor: default;
}
body[data-route^="Form"] .rayyan-profile-card .form-title-text span {
	font-size: 15px;
	font-weight: 700;
	color: var(--rayyan-doc-ink);
}
body[data-route^="Form"] .rayyan-profile-card .form-name-container {
	grid-area: 2 / 2;
	margin: 0 !important;
	font-size: 12.5px;
	color: var(--rayyan-doc-muted);
}
body[data-route^="Form"] .rayyan-profile-card .form-stats-likes {
	grid-area: 3 / 1 / 4 / 3;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #eef0f4;
}
body[data-route^="Form"] .rayyan-profile-card .form-stats-likes button,
body[data-route^="Form"] .rayyan-profile-card .like-icon {
	width: 28px;
	height: 28px;
	color: #667085;
}
body[data-route^="Form"] .rayyan-related-card {
	margin-top: 12px;
	padding: 14px 16px 6px;
}
body[data-route^="Form"] .rayyan-related-card .sidebar-section {
	padding: 7px 0 !important;
	border: none !important;
}
body[data-route^="Form"] .rayyan-related-card .form-sidebar-label,
body[data-route^="Form"] .rayyan-related-card .form-sidebar-label span {
	color: #3c4558;
	font-size: 13.5px;
	font-weight: 500;
}
body[data-route^="Form"] .rayyan-related-card .icon-btn,
body[data-route^="Form"] .rayyan-related-card .add-assignment-btn,
body[data-route^="Form"] .rayyan-related-card .add-attachment-btn,
body[data-route^="Form"] .rayyan-related-card .share-doc-btn {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #98a0b0 !important;
	width: 24px;
	height: 24px;
}
body[data-route^="Form"] .rayyan-record {
	padding: 16px 6px 0;
}
body[data-route^="Form"] .rayyan-side-kicker {
	font-size: 13px;
	font-weight: 650;
	color: var(--rayyan-doc-ink);
	margin-bottom: 4px;
}
body[data-route^="Form"] .rayyan-record .rayyan-side-kicker {
	font-size: 11px;
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9aa3b2;
	margin-bottom: 10px;
}
body[data-route^="Form"] .rayyan-record .sidebar-section {
	padding: 0 !important;
	border: none !important;
}
body[data-route^="Form"] .rayyan-record .modified-by,
body[data-route^="Form"] .rayyan-record .created-by {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 650;
	color: var(--rayyan-doc-ink);
}
body[data-route^="Form"] .rayyan-record .frappe-timestamp,
body[data-route^="Form"] .rayyan-record .frappe-timestamp a {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--rayyan-doc-muted);
}
body[data-route^="Form"] .form-layout .frappe-control {
	width: 100%;
	max-width: none;
}
body[data-route^="Form"] .form-layout .like-disabled-input,
body[data-route^="Form"] .form-layout .control-value {
	width: 100%;
	max-width: none;
	min-height: 38px;
	height: auto;
	display: flex;
	align-items: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
body[data-route^="Form"] .form-tabs {
	flex-wrap: wrap;
	overflow: visible;
}
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] .section-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 16px;
	row-gap: 4px;
}
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] .form-column,
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] .form-column > form {
	display: contents;
}
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] [data-fieldname="email"] { grid-area: 1 / 1; }
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] [data-fieldname="full_name"] { grid-area: 1 / 2; }
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] [data-fieldname="first_name"] { grid-area: 2 / 1; }
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] [data-fieldname="username"] { grid-area: 2 / 2; }
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] [data-fieldname="middle_name"] { grid-area: 3 / 1; }
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] [data-fieldname="language"] { grid-area: 3 / 2; }
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] [data-fieldname="last_name"] { grid-area: 4 / 1; }
body[data-route^="Form"] .form-section[data-fieldname="section_break_3"] [data-fieldname="time_zone"] { grid-area: 4 / 2; }

@media (max-width: 991px) {
	body[data-route^="Form"] .layout-main {
		flex-direction: column;
	}
	body[data-route^="Form"] .layout-side-section {
		width: 100% !important;
		flex: 1 1 auto !important;
		min-width: 0 !important;
		position: relative;
		height: auto;
	}
}

