:root {
	--abcrm-blue: #1559b7;
	--abcrm-blue-dark: #0d3d80;
	--abcrm-ink: #17243a;
	--abcrm-muted: #6d7b91;
	--abcrm-bg: #f3f6fb;
	--abcrm-border: #e3e9f2;
	--abcrm-card: #fff;
	--abcrm-sidebar: #102a4c;
	--abcrm-radius: 18px;
	--abcrm-shadow: 0 12px 32px rgba(28, 48, 78, .08);
}

/* Publication approval workflow. */
.abcrm-publication-panel .abcrm-panel-head { align-items: flex-start; }
.abcrm-publication-form { display: grid; gap: 12px; max-width: 760px; }
.abcrm-publication-form label { display: grid; gap: 7px; font-weight: 700; }
.abcrm-publication-form textarea,
.abcrm-publication-actions textarea { width: 100%; border: 1px solid #d7e0ee; border-radius: 10px; padding: 10px 12px; }
.abcrm-publication-form .button { width: max-content; display: inline-flex; align-items: center; gap: 6px; }
.abcrm-publication-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.abcrm-publication-list { display: grid; gap: 14px; }
.abcrm-publication-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 20px; padding: 18px; border: 1px solid #e1e7f0; border-radius: 14px; background: #fff; }
.abcrm-publication-card h3 { margin: 10px 0 5px; }
.abcrm-publication-card p { margin: 0 0 6px; color: #53657d; }
.abcrm-publication-card small { color: #748399; }
.abcrm-publication-card blockquote { margin: 12px 0 0; padding: 10px 12px; border-right: 3px solid #1856b6; background: #f5f8fd; }
.abcrm-publication-actions { display: grid; align-content: start; gap: 9px; }
.abcrm-publication-actions form { display: grid; gap: 7px; }
.abcrm-state.is-pending { background: #fff3cd; color: #795600; }
.abcrm-state.is-published { background: #dff6e8; color: #126b3a; }
.abcrm-state.is-rejected,
.abcrm-state.is-failed { background: #fde6e8; color: #a0202c; }
.abcrm-state.is-cancelled,
.abcrm-state.is-none { background: #edf1f6; color: #53657d; }

@media (max-width: 900px) {
	.abcrm-publication-card { grid-template-columns: 1fr; }
}

.abcrm-option-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.abcrm-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #d8e5f6;
	border-radius: 12px;
	background: #f4f8fd;
}

.abcrm-match-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.abcrm-match-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid #dbe6f5;
	border-radius: 14px;
	background: #fff;
	text-decoration: none;
	color: #18324f;
}

.abcrm-match-card:hover {
	border-color: #1c63be;
	box-shadow: 0 8px 22px rgba(21, 69, 132, .10);
}

.abcrm-match-card div {
	display: grid;
	gap: 4px;
}

.abcrm-match-card small {
	color: #65778d;
}

.abcrm-match-score {
	display: grid;
	place-items: center;
	min-width: 56px;
	height: 42px;
	border-radius: 12px;
	background: #e5f2ff;
	color: #0b57b6;
	font-weight: 800;
}

@media (max-width: 900px) {
	.abcrm-option-grid,
	.abcrm-match-grid {
		grid-template-columns: 1fr;
	}
}

/* File detail, lifecycle and audit timeline (v0.8). */
.abcrm-file-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.abcrm-file-link:focus-visible {
	outline: 3px solid #60a5fa;
	outline-offset: 4px;
}

.abcrm-file-detail-head .button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.abcrm-file-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.abcrm-file-summary > div {
	display: grid;
	grid-template-columns: 42px 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	background: #fff;
	border: 1px solid #dbe4f0;
	border-radius: 18px;
	padding: 17px;
	box-shadow: 0 10px 26px rgba(15, 38, 75, .06);
}

.abcrm-file-summary .dashicons {
	grid-row: 1 / 3;
	align-self: center;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: #e8f2ff;
	color: #1754b3;
}

.abcrm-file-summary small { color: #64748b; }
.abcrm-file-summary strong { margin-top: 4px; color: #102a52; }

.abcrm-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
}

.abcrm-detail-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-weight: 600;
	color: #1f3658;
}

.abcrm-detail-field.is-wide { margin-top: 14px; }

.abcrm-detail-field input,
.abcrm-detail-field select,
.abcrm-detail-field textarea,
.abcrm-lifecycle-form input[type="text"] {
	width: 100%;
	min-height: 44px;
	border: 1px solid #cbd8e7;
	border-radius: 12px;
	background: #f8fbff;
	padding: 9px 12px;
	box-shadow: none;
}

.abcrm-detail-field textarea { resize: vertical; }

.abcrm-full-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: 15px;
	font-weight: 600;
	color: #1f3658;
}

.abcrm-full-field textarea {
	width: 100%;
	border: 1px solid #cbd8e7;
	border-radius: 12px;
	background: #f8fbff;
	padding: 12px;
	box-shadow: none;
	resize: vertical;
}

.abcrm-file-editor .abcrm-public-review-images {
	margin-top: 18px;
}

.abcrm-version {
	display: inline-flex;
	align-items: center;
	background: #e8f2ff;
	color: #1754b3;
	border-radius: 999px;
	padding: 8px 13px;
	font-weight: 700;
}

.abcrm-checkline {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 18px 0;
	padding: 13px 16px;
	background: #f6f9fd;
	border-radius: 12px;
}

.abcrm-confidential {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid #bfdbfe;
	border-radius: 18px;
	background: linear-gradient(135deg, #eff7ff, #f8fbff);
}

.abcrm-confidential-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 17px;
}

.abcrm-confidential-head .dashicons {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: #1754b3;
	color: #fff;
}

.abcrm-confidential-head h3,
.abcrm-confidential-head p { margin: 0; }
.abcrm-confidential-head p { color: #64748b; margin-top: 4px; }

.abcrm-lifecycle-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.abcrm-lifecycle-form {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 220px;
}

.abcrm-lifecycle-form .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
}

.abcrm-lifecycle-form .button-link-delete {
	border-color: #fecaca;
	background: #fff5f5;
	color: #b91c1c;
}

.abcrm-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.abcrm-timeline li {
	display: flex;
	gap: 12px;
	position: relative;
	padding: 0 0 24px;
}

.abcrm-timeline li:not(:last-child):after {
	content: "";
	position: absolute;
	right: 11px;
	top: 25px;
	bottom: 2px;
	width: 2px;
	background: #dbeafe;
}

.abcrm-timeline .dashicons {
	position: relative;
	z-index: 1;
	color: #1754b3;
	background: #fff;
}

.abcrm-timeline div { display: flex; flex-direction: column; gap: 5px; }
.abcrm-timeline small { color: #64748b; }

@media (max-width: 980px) {
	.abcrm-file-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.abcrm-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.abcrm-file-summary,
	.abcrm-detail-grid { grid-template-columns: 1fr; }
	.abcrm-lifecycle-form { width: 100%; flex-direction: column; align-items: stretch; }
	.abcrm-confidential { padding: 14px; }
}

body.toplevel_page_amlak-beheshti-crm {
	background: var(--abcrm-bg);
}

body.toplevel_page_amlak-beheshti-crm #wpbody-content > .notice,
body.toplevel_page_amlak-beheshti-crm #wpbody-content > .updated,
body.toplevel_page_amlak-beheshti-crm #wpbody-content > .error {
	display: none !important;
}

.toplevel_page_amlak-beheshti-crm #wpcontent {
	padding-left: 0;
}

.toplevel_page_amlak-beheshti-crm #wpfooter {
	display: none;
}

.abcrm-wrap {
	margin: 0;
	font-family: "Segoe UI", Tahoma, Arial, sans-serif;
	color: var(--abcrm-ink);
}

.abcrm-app {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	grid-template-rows: 72px minmax(calc(100vh - 104px), auto);
	grid-template-areas: "topbar topbar" "sidebar main";
	min-height: calc(100vh - 32px);
	background: var(--abcrm-bg);
}

.abcrm-topbar {
	grid-area: topbar;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 24px;
	background: #fff;
	border-bottom: 1px solid var(--abcrm-border);
	position: sticky;
	top: 32px;
	z-index: 30;
}

.abcrm-brand,
.abcrm-user-chip,
.abcrm-person {
	display: flex;
	align-items: center;
	gap: 12px;
}

.abcrm-brand {
	min-width: 235px;
}

.abcrm-brand-mark {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: linear-gradient(145deg, #1d6bd1, #0d428e);
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	box-shadow: 0 8px 18px rgba(21, 89, 183, .25);
}

.abcrm-brand strong,
.abcrm-user-chip strong,
.abcrm-sidebar-user strong {
	display: block;
	font-size: 14px;
}

.abcrm-brand small,
.abcrm-user-chip small,
.abcrm-sidebar-user small {
	display: block;
	margin-top: 3px;
	color: var(--abcrm-muted);
	font-size: 11px;
}

.abcrm-global-search {
	position: relative;
	flex: 1;
	max-width: 650px;
	margin: 0 auto;
}

.abcrm-global-search .dashicons,
.abcrm-cabinet-search .dashicons {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #8390a5;
}

.abcrm-global-search input,
.abcrm-cabinet-search input {
	width: 100%;
	height: 44px;
	padding: 0 46px 0 16px;
	border: 1px solid var(--abcrm-border);
	border-radius: 13px;
	background: #f7f9fc;
	box-shadow: none;
	font-size: 13px;
}

.abcrm-global-search input:focus,
.abcrm-cabinet-search input:focus {
	border-color: var(--abcrm-blue);
	box-shadow: 0 0 0 3px rgba(21, 89, 183, .1);
	outline: 0;
}

.abcrm-user-chip {
	min-width: 150px;
	justify-content: flex-end;
}

.abcrm-avatar {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(145deg, #e8f2ff, #c8ddf8);
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #d5e1f0;
	color: var(--abcrm-blue-dark);
	font-weight: 800;
	flex: 0 0 auto;
}

.abcrm-avatar-lg {
	width: 68px;
	height: 68px;
	font-size: 24px;
	margin-bottom: 8px;
}

.abcrm-sidebar {
	grid-area: sidebar;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 26px 16px 18px;
	background: linear-gradient(180deg, #102d53 0%, #0c2240 100%);
	color: #fff;
}

.abcrm-sidebar-user {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 4px 10px 24px;
	border-bottom: 1px solid rgba(255,255,255,.1);
}

.abcrm-sidebar-user small {
	color: #a9bdd7;
}

.abcrm-nav {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-top: 20px;
}

.abcrm-nav-link {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 46px;
	padding: 0 15px;
	border-radius: 12px;
	color: #c7d5e8;
	text-decoration: none;
	transition: .18s ease;
}

.abcrm-nav-link:hover,
.abcrm-nav-link:focus {
	color: #fff;
	background: rgba(255,255,255,.08);
}

.abcrm-nav-link.is-active {
	background: linear-gradient(135deg, #1c6bd2, #1656ad);
	color: #fff;
	box-shadow: 0 8px 20px rgba(2, 20, 46, .25);
}

.abcrm-nav-link .dashicons {
	font-size: 20px;
}

.abcrm-sidebar-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding: 14px 10px 0;
	border-top: 1px solid rgba(255,255,255,.1);
	color: #8fa8c6;
	font-size: 11px;
}

.abcrm-main {
	grid-area: main;
	min-width: 0;
	padding: 32px;
}

.abcrm-page-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 30px 34px;
	margin-bottom: 24px;
	border-radius: 22px;
	background:
		radial-gradient(circle at 8% 10%, rgba(111,171,246,.22), transparent 25%),
		linear-gradient(135deg, #0f448e, #1763c5);
	color: #fff;
	box-shadow: 0 15px 35px rgba(18, 73, 147, .18);
}

.abcrm-page-head-compact {
	padding-block: 24px;
}

.abcrm-page-head h1,
.abcrm-section-head h2,
.abcrm-panel h2,
.abcrm-empty h3 {
	margin: 0;
	font-weight: 800;
}

.abcrm-page-head h1 {
	font-size: 27px;
	line-height: 1.5;
	color: #fff;
}

.abcrm-page-head p {
	margin: 6px 0 0;
	color: #d5e6fb;
}

.abcrm-page-head .abcrm-eyebrow {
	margin: 0 0 3px;
	color: #9bc8ff;
	font-size: 12px;
}

.abcrm-phase-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.15);
	border: 1px solid rgba(255,255,255,.22);
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
}

.abcrm-phase-badge.is-muted {
	background: #f2f5f9;
	border-color: #e3e9f1;
	color: #6e7d91;
}

.abcrm-head-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 12px;
	background: #fff;
	color: var(--abcrm-blue-dark);
	font-weight: 700;
	text-decoration: none;
}

.abcrm-head-action:hover {
	background: #edf5ff;
	color: var(--abcrm-blue-dark);
}

.abcrm-head-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.abcrm-sale-form {
	max-width: 1080px;
	margin: 0 auto 30px;
}

.abcrm-stepper {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.abcrm-stepper li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	color: #8995a8;
	text-align: center;
}

.abcrm-stepper li:before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 17px;
	right: -50%;
	width: 100%;
	height: 3px;
	background: #dce4ef;
}

.abcrm-stepper li:first-child:before {
	display: none;
}

.abcrm-stepper li span {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e4eaf2;
	color: #718096;
	font-weight: 800;
}

.abcrm-stepper li.is-active span,
.abcrm-stepper li.is-complete span {
	background: var(--abcrm-blue);
	color: #fff;
	box-shadow: 0 6px 14px rgba(21,89,183,.2);
}

.abcrm-stepper li.is-complete:before,
.abcrm-stepper li.is-active:before {
	background: var(--abcrm-blue);
}

.abcrm-stepper li.is-active small {
	color: var(--abcrm-blue-dark);
	font-weight: 800;
}

.abcrm-form-step {
	display: none;
}

.abcrm-form-step.is-active {
	display: block;
	animation: abcrmStepIn .2s ease;
}

@keyframes abcrmStepIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.abcrm-form-card,
.abcrm-feature-group {
	margin-bottom: 16px;
	padding: 22px;
	border: 1px solid var(--abcrm-border);
	border-radius: var(--abcrm-radius);
	background: #fff;
	box-shadow: var(--abcrm-shadow);
}

.abcrm-form-card-head {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-bottom: 19px;
}

.abcrm-form-card-head > .dashicons {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: #e8f2ff;
	color: var(--abcrm-blue);
	font-size: 22px;
}

.abcrm-form-card-head h2,
.abcrm-form-card h3 {
	margin: 0;
}

.abcrm-form-card-head h2 {
	font-size: 18px;
}

.abcrm-form-card-head p {
	margin: 4px 0 0;
	color: var(--abcrm-muted);
	font-size: 12px;
}

.abcrm-choice-grid {
	display: grid;
	gap: 9px;
}

.abcrm-choice-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.abcrm-choice-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.abcrm-choice-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.abcrm-choice {
	position: relative;
	display: block;
	cursor: pointer;
}

.abcrm-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.abcrm-choice span {
	display: grid;
	place-items: center;
	min-height: 44px;
	padding: 6px 10px;
	border: 1px solid #dce7f4;
	border-radius: 12px;
	background: #eff6fe;
	color: #29445f;
	text-align: center;
	transition: .15s ease;
}

.abcrm-choice:hover span {
	border-color: #a8c6ea;
	background: #e5f1ff;
}

.abcrm-choice input:checked + span {
	border-color: var(--abcrm-blue);
	background: var(--abcrm-blue);
	color: #fff;
	box-shadow: 0 6px 14px rgba(21,89,183,.18);
}

.abcrm-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 13px;
}

.abcrm-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.abcrm-fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.abcrm-fields-top { margin-top: 16px; }

.abcrm-field {
	display: grid;
	gap: 6px;
}

.abcrm-field > span {
	color: #53647a;
	font-size: 12px;
	font-weight: 700;
}

.abcrm-field input,
.abcrm-field select,
.abcrm-field textarea {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid #d9e2ee;
	border-radius: 11px;
	background: #f9fbfd;
	box-shadow: none;
}

.abcrm-field textarea {
	resize: vertical;
}

.abcrm-field input:focus,
.abcrm-field select:focus,
.abcrm-field textarea:focus {
	border-color: var(--abcrm-blue);
	box-shadow: 0 0 0 3px rgba(21,89,183,.1);
	outline: 0;
}

.abcrm-field-wide {
	grid-column: 1 / -1;
}

.abcrm-form-tip {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
	padding: 11px 13px;
	border-radius: 10px;
	background: #edf5ff;
	color: #275f9e;
	font-size: 12px;
}

.abcrm-subtitle {
	margin: 18px 0 10px !important;
	font-size: 14px;
}

.abcrm-feature-group {
	padding: 0;
	overflow: hidden;
}

.abcrm-feature-group > summary {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 10px;
	padding: 17px 20px;
	cursor: pointer;
	list-style: none;
}

.abcrm-feature-group > summary::-webkit-details-marker {
	display: none;
}

.abcrm-feature-group > summary > .dashicons:first-child {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: #edf5ff;
	color: var(--abcrm-blue);
}

.abcrm-feature-group > summary small {
	color: var(--abcrm-muted);
}

.abcrm-feature-group[open] > summary {
	border-bottom: 1px solid var(--abcrm-border);
}

.abcrm-feature-group[open] > summary > .dashicons:last-child {
	transform: rotate(180deg);
}

.abcrm-feature-group > .abcrm-choice-grid {
	padding: 18px 20px 20px;
}

.abcrm-step-actions,
.abcrm-final-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	position: sticky;
	bottom: 12px;
	z-index: 15;
	padding: 13px;
	border: 1px solid var(--abcrm-border);
	border-radius: 14px;
	background: rgba(255,255,255,.94);
	box-shadow: 0 10px 30px rgba(25,45,75,.12);
	backdrop-filter: blur(8px);
}

.abcrm-step-actions .button,
.abcrm-final-actions .button {
	min-width: 140px;
	min-height: 42px;
	border-radius: 10px;
}

.abcrm-draft-button {
	border-color: #2ca961 !important;
	background: #e8f8ef !important;
	color: #1f7f4a !important;
}

.abcrm-assignee-fixed {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	background: #f6f9fc;
}

.abcrm-assignee-fixed strong,
.abcrm-assignee-fixed small {
	display: block;
}

.abcrm-assignee-fixed small {
	margin-top: 4px;
	color: var(--abcrm-muted);
}

.abcrm-color-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.abcrm-color-choice {
	position: relative;
	cursor: pointer;
}

.abcrm-color-choice input {
	position: absolute;
	opacity: 0;
}

.abcrm-color-choice span {
	display: block;
	width: 42px;
	height: 42px;
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px #d4deea;
}

.abcrm-color-choice input:checked + span {
	box-shadow: 0 0 0 3px var(--abcrm-blue);
}

.abcrm-color-choice.is-blue span { background: #2674c8; }
.abcrm-color-choice.is-green span { background: #328643; }
.abcrm-color-choice.is-orange span { background: #f39a20; }
.abcrm-color-choice.is-purple span { background: #7937aa; }
.abcrm-color-choice.is-red span { background: #d74850; }
.abcrm-color-choice.is-pink span { background: #c2185b; }

.abcrm-private-toggle {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-top: 18px;
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fafcff;
}

.abcrm-private-toggle input {
	width: 20px;
	height: 20px;
}

.abcrm-private-toggle strong,
.abcrm-private-toggle small {
	display: block;
}

.abcrm-private-toggle small {
	margin-top: 4px;
	color: var(--abcrm-muted);
}

.abcrm-media-later {
	display: flex;
	align-items: center;
	gap: 14px;
	border-style: dashed;
}

.abcrm-media-later > .dashicons {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: #f1f4f8;
	color: #7f8da0;
	font-size: 25px;
}

.abcrm-media-later p {
	margin: 5px 0 0;
	color: var(--abcrm-muted);
}

.abcrm-calculated-field input[readonly] {
	color: #123f77;
	background: #eef6ff;
	font-weight: 800;
}

.abcrm-calculated-field small {
	display: block;
	margin-top: 6px;
	color: var(--abcrm-muted);
	font-size: 11px;
}

.abcrm-image-picker {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px;
	border: 2px dashed #9dbbe1;
	border-radius: 14px;
	background: #f5f9ff;
	cursor: pointer;
}

.abcrm-image-picker > .dashicons { color: var(--abcrm-blue); }
.abcrm-image-picker small { margin-right: auto; color: var(--abcrm-muted); }
.abcrm-image-picker input { max-width: 42%; }

.abcrm-image-preview {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.abcrm-image-preview:empty { display: none; }

.abcrm-image-preview-item {
	margin: 0;
	padding: 7px;
	border: 1px solid #d8e5f4;
	border-radius: 13px;
	background: #fff;
}

.abcrm-image-preview-item.is-primary {
	border-color: #1e62b7;
	box-shadow: 0 0 0 2px rgba(30, 98, 183, .12);
}

.abcrm-image-preview-item img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 9px;
}

.abcrm-image-preview-item small {
	display: block;
	min-height: 32px;
	margin-top: 7px;
	color: #53657b;
	font-size: 11px;
	line-height: 1.55;
}

.abcrm-image-preview-item.is-primary small { color: #174f99; font-weight: 800; }

.abcrm-primary-image-note {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: 11px;
	color: #174f99;
	background: #eaf3ff;
}

.abcrm-primary-image-note .dashicons { color: #f3a51f; }

.abcrm-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}

.abcrm-stat {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 92px;
	padding: 18px;
	border: 1px solid var(--abcrm-border);
	border-radius: var(--abcrm-radius);
	background: #fff;
	box-shadow: var(--abcrm-shadow);
	text-decoration: none;
	color: var(--abcrm-ink);
	transition: transform .18s ease, box-shadow .18s ease;
}

.abcrm-stat:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(28,48,78,.12);
	color: var(--abcrm-ink);
}

.abcrm-stat > .dashicons {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 15px;
	font-size: 24px;
	background: #e8f2ff;
	color: #1762c5;
}

.abcrm-stat.is-teal > .dashicons { background: #e3f8f4; color: #12917e; }
.abcrm-stat.is-purple > .dashicons { background: #f0eafd; color: #7652ba; }
.abcrm-stat.is-orange > .dashicons { background: #fff0df; color: #d87413; }
.abcrm-stat.is-green > .dashicons { background: #e7f7e7; color: #34823b; }
.abcrm-stat.is-red > .dashicons { background: #feecef; color: #bd2f42; }

.abcrm-stat strong,
.abcrm-stat small {
	display: block;
}

.abcrm-stat strong {
	font-size: 25px;
	line-height: 1.2;
}

.abcrm-stat small {
	margin-top: 6px;
	color: var(--abcrm-muted);
}

.abcrm-section-head,
.abcrm-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.abcrm-section-head {
	margin: 0 0 16px;
}

.abcrm-section-head h2,
.abcrm-panel h2 {
	font-size: 18px;
}

.abcrm-section-head p,
.abcrm-panel-head p {
	margin: 5px 0 0;
	color: var(--abcrm-muted);
	font-size: 12px;
}

.abcrm-cabinets {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 30px;
}

.abcrm-cabinet {
	display: block;
	padding: 14px;
	border: 1px solid #dfe6ef;
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--abcrm-shadow);
	text-decoration: none;
	color: var(--abcrm-ink);
	transition: transform .2s ease;
}

.abcrm-cabinet:hover {
	transform: translateY(-4px);
	color: var(--abcrm-ink);
}

.abcrm-cabinet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 3px 4px 13px;
}

.abcrm-cabinet-head strong,
.abcrm-cabinet-head small {
	display: block;
}

.abcrm-cabinet-head small {
	margin-top: 5px;
	color: var(--abcrm-muted);
	font-size: 10px;
}

.abcrm-cabinet-head em {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 28px;
	padding: 0 8px;
	border-radius: 10px;
	background: #e8f2ff;
	color: var(--abcrm-blue);
	font-style: normal;
	font-weight: 800;
}

.abcrm-cabinet-body {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: end;
	gap: 8px;
	height: 160px;
	padding: 22px 12px 16px;
	border-radius: 14px;
	background: linear-gradient(180deg, #294765, #142a41);
	box-shadow: inset 0 0 0 5px rgba(255,255,255,.06), inset 0 -16px 22px rgba(0,0,0,.22);
	overflow: hidden;
}

.abcrm-cabinet.is-rent .abcrm-cabinet-body { background: linear-gradient(180deg, #2f6f68, #183f3b); }
.abcrm-cabinet.is-archive .abcrm-cabinet-body { background: linear-gradient(180deg, #575465, #2f2c38); }
.abcrm-cabinet.is-staff .abcrm-cabinet-body { background: linear-gradient(180deg, #8d5c28, #4d3019); }

.abcrm-cabinet-body:before,
.abcrm-cabinet-body:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 7px;
	background: rgba(255,255,255,.11);
	box-shadow: 0 3px 8px rgba(0,0,0,.25);
}

.abcrm-cabinet-body:before { top: 58px; }
.abcrm-cabinet-body:after { top: 111px; }

.abcrm-cabinet-body i {
	position: relative;
	z-index: 2;
	height: 116px;
	border-radius: 7px 7px 4px 4px;
	background: linear-gradient(90deg, #f3f6fa, #cfd9e5);
	box-shadow: 2px 3px 6px rgba(0,0,0,.25);
}

.abcrm-cabinet-body i:nth-child(2) { height: 128px; background: linear-gradient(90deg, #68c4ba, #31968c); }
.abcrm-cabinet-body i:nth-child(3) { height: 108px; background: linear-gradient(90deg, #ef9d5d, #d66a2a); }
.abcrm-cabinet-body i:nth-child(4) { height: 122px; background: linear-gradient(90deg, #8daee2, #5079be); }

.abcrm-cabinet-body i:before {
	content: "";
	position: absolute;
	top: 12px;
	left: 6px;
	right: 6px;
	height: 34px;
	border-radius: 3px;
	background: rgba(255,255,255,.82);
}

.abcrm-cabinet-body i:after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 10px;
	width: 9px;
	height: 9px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: #42556c;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.45);
}

.abcrm-cabinet-handle {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 5px;
	width: 50px;
	height: 4px;
	transform: translateX(-50%);
	border-radius: 4px;
	background: rgba(255,255,255,.4);
}

.abcrm-panel {
	margin-bottom: 24px;
	padding: 22px;
	border: 1px solid var(--abcrm-border);
	border-radius: var(--abcrm-radius);
	background: #fff;
	box-shadow: var(--abcrm-shadow);
}

.abcrm-panel-head {
	margin-bottom: 20px;
}

.abcrm-cabinet-search {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	margin-bottom: 22px;
}

.abcrm-cabinet-search .dashicons {
	right: 15px;
	left: auto;
}

.abcrm-cabinet-search .button {
	height: 44px;
	padding-inline: 22px;
	border-radius: 12px;
}

.abcrm-file-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.abcrm-file-card {
	position: relative;
	padding: 10px;
	border-radius: 15px;
	background: linear-gradient(145deg, #2780dc, #1554a2);
	box-shadow: 0 10px 22px rgba(17,61,112,.18);
}

.abcrm-pin-form{position:absolute;z-index:5;left:10px;top:10px;margin:0}.abcrm-pin-form .abcrm-pin-button{border:0;border-radius:50%;width:34px;height:34px;background:#fff;color:#8393aa;cursor:pointer;box-shadow:0 2px 10px rgba(15,42,80,.16)}.abcrm-pin-form .abcrm-pin-button.is-pinned{background:#ffb020;color:#fff}.abcrm-cabinet-search{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.abcrm-cabinet-search input,.abcrm-cabinet-search select{min-height:40px}.abcrm-workspace{display:grid;gap:18px}.abcrm-attachment-list,.abcrm-note-list{display:grid;gap:10px}.abcrm-attachment,.abcrm-note{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #dbe5f1;border-radius:14px;background:#f8fbff}.abcrm-attachment>div,.abcrm-note>div{flex:1}.abcrm-attachment small,.abcrm-note small{display:block;color:#6d7b8d;margin-top:5px}.abcrm-note p{margin:7px 0}.abcrm-note.is-done{opacity:.65;background:#f0f7f1}.abcrm-note.is-done p{text-decoration:line-through}.abcrm-inline-form,.abcrm-note-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px;border-radius:14px;background:#edf5ff}.abcrm-note-form textarea{flex:1;min-width:260px}.abcrm-muted{color:#718096}.abcrm-state.is-unpublished{background:#eef1f5;color:#4c5a6b}

.abcrm-file-card.is-teal { background: linear-gradient(145deg, #31a99e, #16746c); }
.abcrm-file-card.is-orange { background: linear-gradient(145deg, #ef8c3d, #c85b1b); }
.abcrm-file-card.is-purple { background: linear-gradient(145deg, #8b69c9, #5e3e9b); }
.abcrm-file-card.is-green { background: linear-gradient(145deg, #62ad59, #347c38); }
.abcrm-file-card.is-red { background: linear-gradient(145deg, #e26067, #ad3038); }
.abcrm-file-card.is-pink { background: linear-gradient(145deg, #d74c86, #a91959); }

.abcrm-file-tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1px 4px 10px;
	color: #fff;
}

.abcrm-file-tab span {
	font-weight: 800;
}

.abcrm-file-tab small {
	opacity: .82;
}

.abcrm-file-cover {
	position: relative;
	height: 150px;
	overflow: hidden;
	border-radius: 10px 10px 0 0;
	background: #dcecff;
}

.abcrm-file-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.abcrm-file-cover > span:not(.dashicons) {
	position: absolute;
	right: 9px;
	bottom: 9px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 8px;
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	color: #1554a2;
	font-weight: 800;
	font-size: 11px;
}

.abcrm-file-cover.is-empty {
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:6px;
	color:#7e9fc7;
	background:linear-gradient(145deg,#eaf4ff,#cfe5fb);
}

.abcrm-file-cover.is-empty .dashicons { width:48px;height:48px;font-size:48px; }
.abcrm-file-cover.is-empty small { font-size:12px; }

.abcrm-file-paper {
	padding: 16px;
	border-radius: 0 0 10px 10px;
	background: #fff;
	min-height: 168px;
}

.abcrm-lease-date { display:flex;align-items:center;gap:5px;padding:8px 0 0;color:#9b4e00!important;font-weight:700;font-size:11px!important; }
.abcrm-lease-date .dashicons { width:15px;height:15px;font-size:15px; }

.abcrm-attachment-thumb { width:72px;height:54px;object-fit:cover;border-radius:9px;background:#dbe8f5; }
.abcrm-attachment.is-primary { border-color:#1d63ba;background:#eef6ff;box-shadow:inset 0 0 0 1px rgba(29,99,186,.12); }
.abcrm-inline-form small { color:#607086; }
.abcrm-rent-archive-form { align-items:flex-end; }
.abcrm-rent-archive-form > label:not(.abcrm-checkline) { display:grid;gap:5px;font-weight:700;color:#34465c; }
.abcrm-rent-archive-form input[type="date"] { min-height:38px; }
.abcrm-lease-alert p { display:flex;align-items:center;gap:7px; }
.abcrm-lease-summary { display:flex;align-items:center;gap:8px;padding:12px 14px;border-radius:12px;background:#fff5df;color:#7b4c00; }
.abcrm-lease-summary small { color:#806c4b; }

.abcrm-file-paper h3 {
	margin: 0;
	font-size: 15px;
}

.abcrm-file-paper > p {
	margin: 7px 0 14px;
	color: var(--abcrm-muted);
	font-size: 12px;
}

.abcrm-file-paper dl {
	margin: 0;
}

.abcrm-file-paper dl div {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
	border-top: 1px solid #edf1f5;
}

.abcrm-file-paper dt {
	color: var(--abcrm-muted);
}

.abcrm-file-paper dd {
	margin: 0;
	font-weight: 700;
}

.abcrm-file-paper footer {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #edf1f5;
	font-size: 11px;
	color: var(--abcrm-muted);
}

.abcrm-file-paper > .abcrm-file-registrar {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 9px -16px -16px;
	padding: 10px 16px;
	border-radius: 0 0 10px 10px;
	color: #174f99;
	background: #edf5ff;
	font-size: 11px;
	font-weight: 700;
}

.abcrm-file-registrar .dashicons { width: 15px; height: 15px; font-size: 15px; }

.abcrm-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #25a56a;
}

.abcrm-assignee {
	margin-right: auto;
}

.abcrm-empty {
	padding: 48px 20px;
	text-align: center;
	border: 1px dashed #d5deea;
	border-radius: 16px;
	background: #fafcff;
}

.abcrm-empty > .dashicons {
	width: auto;
	height: auto;
	font-size: 48px;
	color: #aac0dc;
}

.abcrm-empty h3 {
	margin-top: 12px;
	font-size: 17px;
}

.abcrm-empty p {
	margin: 8px auto 0;
	color: var(--abcrm-muted);
}

.abcrm-table-wrap {
	overflow-x: auto;
}

.abcrm-table {
	width: 100%;
	border-collapse: collapse;
}

.abcrm-table th,
.abcrm-table td {
	padding: 13px 14px;
	text-align: right;
	border-bottom: 1px solid #edf1f5;
	white-space: nowrap;
}

.abcrm-table th {
	background: #f8fafc;
	color: #718096;
	font-size: 11px;
}

.abcrm-table tr:last-child td {
	border-bottom: 0;
}

.abcrm-role,
.abcrm-state,
.abcrm-locked {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #edf4fd;
	color: #215b9f;
	font-size: 11px;
}

.abcrm-state.is-active { background: #e6f8ef; color: #228255; }
.abcrm-state.is-inactive { background: #f1f2f4; color: #6c7581; }
.abcrm-state.is-suspended { background: #fdebed; color: #b13844; }
.abcrm-locked { background: #f0ebfa; color: #6b4ba5; }

.abcrm-permission-panel {
	border-top: 4px solid var(--abcrm-blue);
}

.abcrm-permission-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.abcrm-permission-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 14px;
	border: 1px solid var(--abcrm-border);
	border-radius: 13px;
	background: #fbfcfe;
}

.abcrm-permission-item strong,
.abcrm-permission-item small {
	display: block;
}

.abcrm-permission-item small {
	margin-top: 5px;
	color: var(--abcrm-muted);
}

.abcrm-permission-item select {
	min-width: 130px;
}

.abcrm-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.abcrm-staff-creator {
	margin: 0 0 22px;
	padding: 18px;
	border: 1px solid #dce7f4;
	border-radius: 15px;
	background: #f7faff;
}

.abcrm-staff-creator h3 {
	margin: 0;
}

.abcrm-staff-creator > p {
	margin: 6px 0 16px;
	color: var(--abcrm-muted);
}

.abcrm-candidate-list {
	display: grid;
	gap: 8px;
}

.abcrm-candidate-list > form {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 150px auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--abcrm-border);
	border-radius: 12px;
	background: #fff;
}

.abcrm-empty-inline {
	padding: 14px;
	border-radius: 10px;
	background: #fff;
	text-align: center;
}

.abcrm-inline-edit {
	position: relative;
}

.abcrm-inline-edit > summary {
	display: inline-flex;
	align-items: center;
	list-style: none;
	cursor: pointer;
}

.abcrm-inline-edit > summary::-webkit-details-marker {
	display: none;
}

.abcrm-inline-edit > form {
	position: absolute;
	z-index: 20;
	top: calc(100% + 7px);
	right: 0;
	display: grid;
	gap: 9px;
	width: 250px;
	padding: 14px;
	border: 1px solid var(--abcrm-border);
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 15px 35px rgba(20,38,65,.2);
}

.abcrm-inline-edit label {
	display: grid;
	gap: 4px;
	color: var(--abcrm-muted);
	font-size: 11px;
}

.abcrm-inline-edit input,
.abcrm-inline-edit select {
	width: 100%;
}

.abcrm-health {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.abcrm-health > div {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--abcrm-border);
	border-radius: 12px;
	background: #fafcff;
}

.abcrm-health em {
	margin-right: auto;
	font-style: normal;
	font-size: 11px;
}

.is-ok { color: #168052 !important; }
.is-bad { color: #bd3343 !important; }

.abcrm-safe-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #edf5ff;
	color: #245e9e;
}

.abcrm-notice {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	padding: 12px 15px;
	border-radius: 12px;
	background: #e8f7ef;
	color: #197249;
}

.abcrm-notice.is-error {
	background: #fdebed;
	color: #a6333f;
}

.abcrm-menu-toggle {
	display: none;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.abcrm-overlay {
	display: none;
}

.abcrm-setup {
	display: grid;
	place-items: center;
	min-height: calc(100vh - 80px);
	font-family: Tahoma, Arial, sans-serif;
}

.abcrm-setup-card {
	width: min(560px, calc(100% - 36px));
	padding: 38px;
	border: 1px solid var(--abcrm-border);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--abcrm-shadow);
	text-align: center;
}

.abcrm-setup-card > .dashicons {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 18px;
	border-radius: 20px;
	background: #e8f2ff;
	color: var(--abcrm-blue);
	font-size: 34px;
}

.abcrm-setup-card h1 {
	margin-bottom: 10px;
}

.abcrm-setup-card form {
	display: grid;
	gap: 12px;
	margin-top: 24px;
	text-align: right;
}

.abcrm-setup-card input[type="text"] {
	height: 48px;
	padding: 0 14px;
	border-radius: 12px;
}

.abcrm-setup-status {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

.abcrm-setup-status span {
	padding: 7px 10px;
	border-radius: 999px;
	background: #f3f6fa;
}

.abcrm-warning {
	padding: 12px;
	border-radius: 10px;
	background: #fff1f2;
	color: #ad3341;
}

@media (max-width: 1180px) {
	.abcrm-stats,
	.abcrm-cabinets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.abcrm-file-grid,
	.abcrm-health {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.abcrm-app {
		grid-template-columns: 1fr;
		grid-template-areas: "topbar" "main";
	}

	.abcrm-topbar {
		padding-inline: 16px;
	}

	.abcrm-menu-toggle {
		display: inline-grid;
		place-items: center;
	}

	.abcrm-brand {
		min-width: auto;
	}

	.abcrm-brand small,
	.abcrm-user-chip div {
		display: none;
	}

	.abcrm-sidebar {
		position: fixed;
		z-index: 60;
		top: 32px;
		right: -285px;
		bottom: 0;
		width: 250px;
		transition: right .22s ease;
	}

	.abcrm-app.is-menu-open .abcrm-sidebar {
		right: 0;
	}

	.abcrm-overlay {
		position: fixed;
		z-index: 55;
		inset: 32px 0 0;
		background: rgba(5,20,39,.5);
	}

	.abcrm-app.is-menu-open .abcrm-overlay {
		display: block;
	}

	.abcrm-main {
		padding: 22px;
	}

	.abcrm-permission-grid {
		grid-template-columns: 1fr;
	}

	.abcrm-choice-grid-4,
	.abcrm-choice-grid-5,
	.abcrm-fields-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.toplevel_page_amlak-beheshti-crm #wpcontent {
		padding-right: 0;
	}

	.abcrm-app {
		min-height: 100vh;
	}

	.abcrm-topbar {
		top: 0;
		height: 64px;
		gap: 12px;
	}

	.abcrm-global-search {
		display: none;
	}

	.abcrm-user-chip {
		min-width: auto;
		margin-right: auto;
	}

	.abcrm-main {
		padding: 14px;
	}

	.abcrm-page-head {
		align-items: flex-start;
		padding: 22px;
	}

	.abcrm-page-head h1 {
		font-size: 22px;
	}

	.abcrm-phase-badge {
		display: none;
	}

	.abcrm-stats,
	.abcrm-cabinets,
	.abcrm-file-grid,
	.abcrm-health {
		grid-template-columns: 1fr;
	}

	.abcrm-cabinet-body {
		height: 140px;
	}

	.abcrm-panel {
		padding: 15px;
	}

	.abcrm-cabinet-search {
		grid-template-columns: 1fr;
	}

	.abcrm-cabinet-search .button {
		width: 100%;
	}

	.abcrm-permission-item {
		align-items: flex-start;
		flex-direction: column;
	}

	.abcrm-permission-item select {
		width: 100%;
	}

	.abcrm-candidate-list > form {
		grid-template-columns: 1fr;
	}

	.abcrm-stepper small {
		display: none;
	}

	.abcrm-stepper li:before {
		top: 14px;
	}

	.abcrm-stepper li span {
		width: 30px;
		height: 30px;
	}

	.abcrm-choice-grid-3,
	.abcrm-choice-grid-4,
	.abcrm-choice-grid-5,
	.abcrm-fields-2,
	.abcrm-fields-3 {
		grid-template-columns: 1fr;
	}

	.abcrm-form-card,
	.abcrm-feature-group > .abcrm-choice-grid {
		padding: 15px;
	}

	.abcrm-step-actions,
	.abcrm-final-actions {
		position: static;
		flex-direction: column-reverse;
	}

	.abcrm-step-actions .button,
	.abcrm-final-actions .button {
		width: 100%;
	}
}
.abcrm-phonebook-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 22px;
}

.abcrm-phonebook-summary > div {
	display: grid;
	grid-template-columns: 48px 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	padding: 18px;
	background: #fff;
	border: 1px solid #dbe5f1;
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(30, 64, 175, .07);
}

.abcrm-phonebook-summary .dashicons {
	grid-row: 1 / 3;
	width: 48px;
	height: 48px;
	font-size: 28px;
	line-height: 48px;
	text-align: center;
	color: #1752ae;
	background: #e8f1ff;
	border-radius: 14px;
}

.abcrm-phonebook-summary small { color: #64748b; }
.abcrm-phonebook-summary strong { margin-top: 4px; font-size: 24px; color: #102f58; }
.abcrm-phonebook-numbers { display: flex; flex-wrap: wrap; gap: 7px; }
.abcrm-phonebook-numbers a { display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px; color: #124b9b; background: #eaf3ff; border-radius: 999px; text-decoration: none; font-weight: 700; }
.abcrm-phonebook-numbers a:hover { color: #fff; background: #1752ae; }
.abcrm-phonebook-numbers .dashicons { width: 17px; height: 17px; font-size: 17px; }

@media (max-width: 782px) {
	.abcrm-phonebook-summary { grid-template-columns: 1fr; }
	.abcrm-phonebook-table { min-width: 760px; }
}

.abcrm-public-review { padding: 20px; margin-bottom: 16px; border: 1px solid #dbe5f1; border-radius: 16px; background: #f8fbff; }
.abcrm-public-review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.abcrm-public-review-head > div { display: grid; gap: 5px; }
.abcrm-public-review-head small { color: #64748b; }
.abcrm-public-review-head > span { padding: 8px 12px; color: #123c73; background: #e5f0ff; border-radius: 999px; }
.abcrm-public-review-details { display: grid; gap: 7px; margin: -5px 0 15px; color: #43556d; }
.abcrm-public-review-images { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin: 0 0 16px; }
.abcrm-public-review-images img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: #e5edf7; }
.abcrm-public-review form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.abcrm-public-review form label { display: grid; gap: 6px; }
.abcrm-public-review form select, .abcrm-public-review form input { width: 100%; }
.abcrm-public-review form > div { grid-column: 1/-1; }
@media (max-width: 782px) {
	.abcrm-public-review-head { align-items: stretch; flex-direction: column; }
	.abcrm-public-review form { grid-template-columns: 1fr; }
	.abcrm-public-review-images { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.abcrm-image-picker { align-items: flex-start; flex-direction: column; }
	.abcrm-image-picker small { margin-right: 0; }
	.abcrm-image-picker input { max-width: 100%; width: 100%; }
	.abcrm-image-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* 1.8.0 private property editor. */
.abcrm-edit-options{font-size:14px;line-height:1.8;border:1px solid #e2e8f0;border-radius:12px;padding:12px 16px;margin:16px 0;min-width:0}
.abcrm-edit-options legend{font-weight:700;padding:0 6px}
.abcrm-edit-options>div{display:flex;flex-wrap:wrap;gap:12px 20px}
.abcrm-edit-options label{display:inline-flex;align-items:center;gap:5px}
/* 1.9: compact navigation, persistent draft action and usable mobile search. */
.abcrm-nav-group {border-bottom:1px solid #e2e8f0;padding:8px 0}
.abcrm-nav-group summary {cursor:pointer;font-weight:700;padding:12px;color:#334155;min-height:44px}
.abcrm-savebar {position:sticky;top:72px;z-index:20;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:12px 16px;background:#f0fdfa;border:1px solid #99f6e4;border-radius:12px;margin:16px 0;color:#134e4a}
.abcrm-savebar [data-recovery] {width:100%;display:flex;flex-wrap:wrap;gap:8px}
.abcrm-savebar [data-recovery]:empty {display:none}
.abcrm-quick-form details summary {cursor:pointer;min-height:44px;font-weight:700}
.abcrm-quick-form details[open] summary {margin-bottom:20px}
.abcrm-global-search input {min-width:0}
@media(max-width:640px){
 .abcrm-topbar {flex-wrap:wrap;height:auto;gap:8px;padding:10px}
 .abcrm-global-search {display:flex!important;order:4;flex:1 0 100%;width:100%;margin:0;box-sizing:border-box}
 .abcrm-global-search button {flex-shrink:0;min-height:44px}
 .abcrm-topbar .abcrm-user-chip {margin-inline-start:auto}
 .abcrm-savebar {top:112px;padding:10px;font-size:12px}
 .abcrm-savebar .button {min-height:44px;white-space:normal}
 .abcrm-quick-form .abcrm-field input,.abcrm-quick-form .abcrm-field select {font-size:16px;min-height:44px;max-width:100%}
}
.abcrm-wrap,.abcrm-wrap *,.abcrm-wrap *::before,.abcrm-wrap *::after{box-sizing:border-box}
.abcrm-wrap [hidden]{display:none!important}
.abcrm-global-search{display:flex;gap:6px;align-items:center}
.abcrm-global-search input{flex:1;min-width:0;width:auto}
.abcrm-global-search button{flex-shrink:0}
@media(max-width:640px){
 .abcrm-app{grid-template-rows:auto minmax(calc(100vh - 112px),auto)}
 .abcrm-page-head{flex-direction:column;gap:16px;padding:20px}
 .abcrm-page-head>.button{width:100%}
 .abcrm-main{padding:12px}
 .abcrm-form-card{padding:16px}
 .abcrm-savebar{position:static}
}

/* Central cabinet: bounded cards and wrapping filters on both portal and wp-admin. */
.abcrm-central-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:14px;margin:20px 0;padding:18px;background:#f6f8fc;border:1px solid #e1e7f0;border-radius:14px}
.abcrm-central-filters label{display:flex;flex-direction:column;gap:7px;font-weight:600;min-width:0}
.abcrm-central-filters input,.abcrm-central-filters select{width:100%;min-width:0;min-height:42px;box-sizing:border-box}
.abcrm-central-filter-actions,.abcrm-central-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.abcrm-central-filter-actions{align-self:end}.abcrm-central-pagination{padding:16px 0}.abcrm-central-pagination span{margin-inline-end:auto}
.abcrm-central-grid .abcrm-file-paper dd{overflow-wrap:anywhere}.abcrm-central-grid .abcrm-file-paper h3{line-height:1.7}
.abcrm-central-users{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}
.abcrm-central-users article{border:1px solid #e1e7f0;border-radius:12px;padding:18px;overflow-wrap:anywhere}
.abcrm-central-detail{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px}.abcrm-central-detail dd{margin:0;overflow-wrap:anywhere;white-space:pre-line}
.abcrm-central-images{display:flex;gap:12px;flex-wrap:wrap}.abcrm-central-images img{max-width:240px;max-height:200px;object-fit:cover;border-radius:10px}
@media(max-width:600px){.abcrm-central-filters{grid-template-columns:1fr}.abcrm-central-detail{grid-template-columns:1fr}.abcrm-central-grid .abcrm-file-paper dl>div{flex-wrap:wrap}.abcrm-central-filter-actions .button,.abcrm-central-pagination .button{min-height:42px;display:inline-flex;align-items:center}}
.abcrm-central-advanced{grid-column:1/-1}.abcrm-central-advanced summary{cursor:pointer;min-height:32px;font-weight:600}.abcrm-central-filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:14px;padding-top:12px}
.abcrm-sidebar .abcrm-nav-group summary{color:#dbeafe}.abcrm-sidebar .abcrm-nav-group{border-color:rgba(219,234,254,.18)}
/* 1.11: visible progress on narrow screens, two-way prices, scoped contacts. */
.abcrm-progress-sticky,.abcrm-quick-roadmap{position:sticky;top:8px;z-index:20;background:#fff;border:1px solid #dce4ef;border-radius:14px;padding:12px 14px;box-shadow:0 5px 20px #0b25400d;margin:0 0 20px;scroll-margin-top:12px}
body.admin-bar .abcrm-progress-sticky,body.admin-bar .abcrm-quick-roadmap{top:40px}
.abcrm-progress-status{margin:0 0 10px!important;color:#164d86;font-weight:800;font-size:14px}
.abcrm-progress-sticky .abcrm-stepper{margin:0}.abcrm-progress-sticky .abcrm-stepper small{display:block!important;font-size:11px;line-height:1.6;max-width:100%;overflow-wrap:anywhere}
.abcrm-quick-roadmap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.abcrm-quick-roadmap button{font:inherit;font-size:12px;border:0;border-radius:9px;color:#476077;background:#f1f5f9;padding:10px 6px;cursor:pointer}
.abcrm-quick-roadmap button.is-active{color:white;background:#185e9d;font-weight:800}.abcrm-quick-form>.abcrm-form-card{scroll-margin-top:120px}
.abcrm-money-input{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
.abcrm-phonebook-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.abcrm-phonebook-filters label{display:grid;gap:6px;flex:1 1 180px;font-weight:700}.abcrm-phonebook-filters input,.abcrm-phonebook-filters select{width:100%;min-width:0;height:44px;border:1px solid #cdd9e5;border-radius:9px;background:white;padding:6px 10px;font:inherit}
.abcrm-phonebook-summary{grid-template-columns:repeat(5,minmax(0,1fr))}.abcrm-phonebook-table td{vertical-align:top;overflow-wrap:anywhere;max-width:260px}.abcrm-phonebook-pages{display:flex;align-items:center;gap:12px;margin-top:18px}
@media(max-width:600px){.abcrm-progress-sticky{padding:10px 7px}.abcrm-progress-status{font-size:13px}.abcrm-progress-sticky .abcrm-stepper small{font-size:10px}.abcrm-quick-roadmap{gap:4px;padding:9px 5px}.abcrm-quick-roadmap button{font-size:10px;padding:10px 3px}.abcrm-phonebook-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.abcrm-phonebook-filters label{flex-basis:100%}body.admin-bar .abcrm-progress-sticky,body.admin-bar .abcrm-quick-roadmap{top:8px}}

.abcrm-progress-sticky,.abcrm-quick-roadmap,body.admin-bar .abcrm-progress-sticky,body.admin-bar .abcrm-quick-roadmap{top:var(--abcrm-progress-top,8px);scroll-margin-top:var(--abcrm-progress-top,8px)}
.abcrm-quick-form>.abcrm-form-card{scroll-margin-top:calc(var(--abcrm-progress-top,120px) + 75px)}
.abcrm-price-guidance{grid-column:1/-1;font-size:13px;color:#536c83;line-height:1.9}
@media(max-width:600px){
 .abcrm-phonebook-table{min-width:0!important;width:100%;border:0;background:transparent}
 .abcrm-phonebook-table thead{display:none}.abcrm-phonebook-table tbody{display:grid;gap:14px}
 .abcrm-phonebook-table tr{display:block;border:1px solid #dce4ef;background:white!important;border-radius:12px;padding:10px}
 .abcrm-phonebook-table td{display:block;max-width:none;width:auto!important;padding:7px 3px;border:0;background:transparent!important}
 .abcrm-phonebook-table td:before{content:attr(data-label);display:block;color:#65768b;font-size:11px;font-weight:700;margin-bottom:4px}
 .abcrm-phonebook-numbers a{padding:10px 12px;min-height:40px}
}

@media(max-width:600px){.abcrm-quick-roadmap button{font-size:11px}}
.abcrm-phonebook-filters{font-size:13px;line-height:1.7}.abcrm-phonebook-filters input,.abcrm-phonebook-filters select{font-size:14px;font-weight:400}.abcrm-phonebook-summary>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:15px}.abcrm-phonebook-summary small{font-size:12px;line-height:1.7}.abcrm-phonebook-table{font-size:13px;line-height:1.8}
