/* Bardich Plus 0.4 — unified Persian RTL portal inspired by the supplied doctor/customer references. */

:where(.bardich-portal, .bardich-packages, .bardich-store, .bardich-checkout, .bardich-result, .bardich-progress) {
	--b-primary: #52873a;
	--b-primary-dark: #335a3d;
	--b-primary-deep: #274a32;
	--b-primary-soft: #eef5eb;
	--b-primary-mist: #f7faf5;
	--b-surface: #ffffff;
	--b-canvas: #f6f8f4;
	--b-cream: #fbfcf8;
	--b-text: #173326;
	--b-muted: #68756d;
	--b-border: #e1e8df;
	--b-border-strong: #cbd9c7;
	--b-danger: #b42318;
	--b-warning: #b86809;
	--b-info: #356aa0;
	--b-radius-sm: 10px;
	--b-radius-md: 16px;
	--b-radius-lg: 24px;
	--b-shadow-sm: 0 4px 14px rgba(39, 74, 50, 0.06);
	--b-shadow-md: 0 18px 54px rgba(39, 74, 50, 0.10);
	--b-motion: 220ms cubic-bezier(.2, .8, .2, 1);
	box-sizing: border-box;
	font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
	color: var(--b-text);
}

:where(.bardich-portal, .bardich-packages, .bardich-store, .bardich-checkout, .bardich-result, .bardich-progress) *,
:where(.bardich-portal, .bardich-packages, .bardich-store, .bardich-checkout, .bardich-result, .bardich-progress) *::before,
:where(.bardich-portal, .bardich-packages, .bardich-store, .bardich-checkout, .bardich-result, .bardich-progress) *::after { box-sizing: border-box; }

:where(.bardich-portal, .bardich-packages, .bardich-store, .bardich-checkout, .bardich-result, .bardich-progress) :is(a, button, input, select, textarea) { touch-action: manipulation; }
:where(.bardich-portal, .bardich-packages, .bardich-store, .bardich-checkout, .bardich-result, .bardich-progress) :is(a, button, input, select, textarea):focus-visible { outline: 3px solid rgba(82, 135, 58, .32); outline-offset: 2px; }

.bardich-portal {
	width: min(1180px, calc(100% - 32px));
	min-height: 650px;
	margin: 28px auto;
	background: var(--b-surface);
	border: 1px solid var(--b-border);
	border-radius: var(--b-radius-lg);
	box-shadow: var(--b-shadow-md);
	overflow: hidden;
}

/* Doctor portal: compact green navigation on the right. */
.bardich-doctor.bardich-portal {
	display: grid;
	direction: ltr;
	grid-template-columns: minmax(0, 1fr) 220px;
	grid-template-rows: auto 1fr;
	max-width: 1180px;
}
.bardich-doctor.bardich-portal > .bardich-portal-header { grid-column: 1; grid-row: 1; }
.bardich-doctor.bardich-portal > .bardich-tabs { grid-column: 2; grid-row: 1 / span 2; }
.bardich-doctor.bardich-portal > .bardich-panel__body { grid-column: 1; grid-row: 2; }

/* Customer portal: strong horizontal header and a slim left navigation. */
.bardich-panel.bardich-portal {
	display: grid;
	direction: ltr;
	grid-template-columns: 178px minmax(0, 1fr);
	grid-template-rows: auto 1fr;
}
.bardich-panel.bardich-portal > .bardich-portal-header { grid-column: 1 / span 2; grid-row: 1; }
.bardich-panel.bardich-portal > .bardich-tabs { grid-column: 1; grid-row: 2; }
.bardich-panel.bardich-portal > .bardich-panel__body { grid-column: 2; grid-row: 2; }

.bardich-portal-header {
	direction: rtl;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 142px;
	padding: 30px 36px;
	background: linear-gradient(140deg, var(--b-primary-mist), var(--b-surface));
	border-bottom: 1px solid var(--b-border);
}
.bardich-panel.bardich-portal > .bardich-portal-header {
	min-height: 126px;
	color: var(--b-surface);
	background: linear-gradient(115deg, var(--b-primary-dark), var(--b-primary));
	border: 0;
}
.bardich-portal-header h1 { margin: 5px 0 7px; color: inherit; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
.bardich-portal-header p { max-width: 690px; margin: 0; color: var(--b-muted); font-size: 14px; line-height: 1.9; }
.bardich-panel.bardich-portal > .bardich-portal-header p,
.bardich-panel.bardich-portal > .bardich-portal-header .bardich-kicker { color: rgba(255, 255, 255, .78); }

.bardich-kicker { display: inline-block; color: var(--b-primary); font-size: 12px; font-weight: 800; letter-spacing: .02em; }

.bardich-tabs {
	direction: rtl;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 112px 14px 24px;
	background: linear-gradient(170deg, var(--b-primary-dark), var(--b-primary-deep));
	border: 0;
	overflow: auto;
}
.bardich-tabs::before {
	content: "";
	position: absolute;
	width: 82px;
	height: 70px;
	margin: -88px 44px 0 0;
	background: url('../images/bardich-logo.svg') center / contain no-repeat;
	filter: brightness(0) invert(1);
	opacity: .96;
}
.bardich-panel.bardich-portal > .bardich-tabs {
	padding-top: 30px;
	background: var(--b-surface);
	border-inline-end: 1px solid var(--b-border);
}
.bardich-panel.bardich-portal > .bardich-tabs::before { display: none; }

.bardich-tab {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 10px 14px;
	border-radius: 10px;
	color: rgba(255, 255, 255, .86);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: normal;
	cursor: pointer;
	transition: background var(--b-motion), color var(--b-motion), transform var(--b-motion);
}
.bardich-tab::before { content: ""; width: 7px; height: 7px; margin-inline-end: 10px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .78; }
.bardich-tab:hover { color: var(--b-surface); background: rgba(255, 255, 255, .10); transform: translateX(-2px); }
.bardich-tab.is-active { color: var(--b-surface); background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); }
.bardich-panel.bardich-portal > .bardich-tabs .bardich-tab { color: var(--b-muted); }
.bardich-panel.bardich-portal > .bardich-tabs .bardich-tab:hover { color: var(--b-primary-dark); background: var(--b-primary-soft); transform: translateX(2px); }
.bardich-panel.bardich-portal > .bardich-tabs .bardich-tab.is-active { color: var(--b-primary-dark); background: var(--b-primary-soft); box-shadow: none; }

.bardich-panel__body { direction: rtl; min-width: 0; min-height: 470px; padding: 32px 36px 44px; background: var(--b-surface); }
.bardich-panel__body > h2,
.bardich-section__head h2 { color: var(--b-text); }
.bardich-section__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.bardich-section__head :is(h2, h3, p) { margin: 4px 0 0; }

.bardich-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.bardich-kpi {
	position: relative;
	min-height: 118px;
	padding: 20px;
	background: linear-gradient(145deg, var(--b-surface), var(--b-primary-mist));
	border: 1px solid var(--b-border);
	border-radius: var(--b-radius-md);
	box-shadow: var(--b-shadow-sm);
}
.bardich-kpi::after { content: ""; position: absolute; top: 20px; inset-inline-end: 18px; width: 38px; height: 38px; border-radius: 12px; background: var(--b-primary-soft); }
.bardich-kpi span { display: block; max-width: calc(100% - 42px); margin-bottom: 9px; color: var(--b-muted); font-size: 12px; }
.bardich-kpi strong { color: var(--b-primary-dark); font-size: 26px; font-variant-numeric: tabular-nums; }
.bardich-kpi small { display: block; margin-top: 4px; color: var(--b-muted); font-size: 11px; }

.bardich-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.bardich-dashboard-card {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	min-height: 106px;
	padding: 18px;
	background: var(--b-surface);
	border: 1px solid var(--b-border);
	border-radius: var(--b-radius-md);
	color: var(--b-text);
	box-shadow: var(--b-shadow-sm);
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--b-motion), border-color var(--b-motion), box-shadow var(--b-motion);
}
.bardich-dashboard-card:hover { transform: translateY(-3px); border-color: var(--b-border-strong); box-shadow: 0 15px 30px rgba(39,74,50,.11); }
.bardich-dashboard-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: var(--b-primary-dark); background: var(--b-primary-soft); }
.bardich-dashboard-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bardich-dashboard-card strong, .bardich-dashboard-card small { display: block; }
.bardich-dashboard-card strong { margin-bottom: 5px; font-size: 15px; }
.bardich-dashboard-card small { color: var(--b-muted); font-size: 12px; line-height: 1.7; }
.bardich-dashboard-card__arrow { color: var(--b-primary); font-size: 20px; }

.bardich-order-list, .bardich-food-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 24px; }
.bardich-order-card, .bardich-food-card, .bardich-surface-card, .bardich-report-section {
	padding: 20px;
	background: var(--b-surface);
	border: 1px solid var(--b-border);
	border-radius: var(--b-radius-md);
	box-shadow: var(--b-shadow-sm);
}
.bardich-order-card, .bardich-food-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.bardich-order-card h3, .bardich-food-card h3 { margin: 5px 0 8px; color: var(--b-text); }
.bardich-order-card p, .bardich-food-card p { margin: 0; color: var(--b-muted); line-height: 1.8; }
.bardich-order-card__meta, .bardich-order-card__actions, .bardich-food-card__actions, .bardich-auth__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bardich-order-card__meta { justify-content: space-between; font-size: 13px; }

.bardich-status { display: inline-flex; align-items: center; min-height: 29px; padding: 4px 10px; border-radius: 999px; color: var(--b-primary-dark); background: var(--b-primary-soft); font-size: 11px; font-weight: 800; }
.bardich-status.is-eaten { color: var(--b-primary-dark); }
.bardich-status.is-skipped { color: var(--b-danger); background: rgba(180,35,24,.08); }
.bardich-status.is-pending { color: var(--b-warning); background: rgba(184,104,9,.09); }

.bardich-empty-state { margin: 18px 0; padding: 42px 24px; text-align: center; background: var(--b-primary-mist); border: 1px dashed var(--b-border-strong); border-radius: var(--b-radius-md); }
.bardich-empty-state h3 { margin-top: 0; }
.bardich-empty-state p { color: var(--b-muted); }

.bardich-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--b-border); border-radius: var(--b-radius-sm); }
.bardich-table, .bardich-doctor-queue { width: 100%; border-collapse: collapse; background: var(--b-surface); }
.bardich-table th, .bardich-table td, .bardich-doctor-queue th, .bardich-doctor-queue td { padding: 13px 14px; text-align: right; border-bottom: 1px solid var(--b-border); }
.bardich-table th, .bardich-doctor-queue th { color: var(--b-muted); background: var(--b-primary-mist); font-size: 12px; }
.bardich-table tr:last-child td, .bardich-doctor-queue tr:last-child td { border-bottom: 0; }

.bardich-form-stack, .bardich-food-form, .bardich-growth-form, .bardich-comment-form { display: grid; gap: 15px; }
.bardich-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:where(.bardich-portal, .bardich-progress) label { color: var(--b-text); font-size: 12px; font-weight: 700; }
:where(.bardich-portal, .bardich-progress) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="date"], input[type="file"], select, textarea) {
	width: 100%;
	min-height: 46px;
	margin-top: 7px;
	padding: 10px 12px;
	border: 1px solid var(--b-border-strong);
	border-radius: 10px;
	background: var(--b-surface);
	color: var(--b-text);
	font: inherit;
	transition: border-color var(--b-motion), box-shadow var(--b-motion);
}
:where(.bardich-portal, .bardich-progress) textarea { min-height: 100px; resize: vertical; }
:where(.bardich-portal, .bardich-progress) :is(input, select, textarea):focus { border-color: var(--b-primary); box-shadow: 0 0 0 3px rgba(82,135,58,.12); }
.bardich-check { display: flex; align-items: center; gap: 8px; }
.bardich-check input { width: 18px; min-height: auto; margin: 0; }

.bardich-btn, .bardich-portal .button, .bardich-growth-form .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--b-primary-dark);
	border-radius: 10px;
	background: var(--b-primary-dark);
	color: var(--b-surface);
	font: inherit;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--b-motion), background var(--b-motion), box-shadow var(--b-motion);
}
.bardich-btn:hover, .bardich-portal .button:hover { color: var(--b-surface); background: var(--b-primary-deep); transform: translateY(-1px); }
.bardich-btn--outline { color: var(--b-primary-dark); background: transparent; }
.bardich-panel > .bardich-portal-header .bardich-btn--outline { color: var(--b-surface); border-color: rgba(255,255,255,.55); }
.bardich-btn--sm { min-height: 38px; padding: 7px 12px; font-size: 12px; }
.bardich-btn[disabled], .bardich-btn.is-disabled { opacity: .48; cursor: not-allowed; transform: none; }

.bardich-components { display: grid; gap: 12px; margin-bottom: 8px; }
.bardich-component-row { position: relative; display: grid; grid-template-columns: 1.4fr .7fr .8fr .8fr; gap: 10px; padding: 18px; background: var(--b-primary-mist); border: 1px solid var(--b-border); border-radius: 14px; }
.bardich-component-description { grid-column: 1 / -1; }
.bardich-component-remove { position: absolute; top: 6px; left: 7px; width: 36px; height: 36px; border: 0; color: var(--b-danger); background: transparent; font-size: 24px; cursor: pointer; }
.bardich-variable-editor { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 8px 0; padding: 12px; border: 1px dashed var(--b-border-strong); border-radius: 10px; }
.bardich-variable-editor legend { padding: 0 7px; color: var(--b-primary-dark); font-size: 11px; font-weight: 800; }
.bardich-variable-editor label { display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 8px; }
.bardich-variable-editor input { min-height: 38px !important; margin: 0 !important; }

.bardich-filter-bar { display: flex; align-items: end; gap: 12px; margin-bottom: 24px; padding: 16px; background: var(--b-primary-mist); border: 1px solid var(--b-border); border-radius: var(--b-radius-md); }
.bardich-filter-bar label { flex: 1 1 320px; }
.bardich-report-section { margin: 18px 0; }

.bardich-progress-list { display: grid; gap: 16px; margin-top: 20px; }
.bardich-progress-card { display: grid; grid-template-columns: 180px minmax(0,1fr); overflow: hidden; background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-radius-md); box-shadow: var(--b-shadow-sm); }
.bardich-progress-card__media { min-height: 180px; background: linear-gradient(145deg, var(--b-primary-soft), var(--b-primary-mist)); }
.bardich-progress-card__media img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.bardich-progress-card__placeholder { display: block; width: 100%; height: 100%; min-height: 180px; background: radial-gradient(circle, rgba(82,135,58,.16) 0 22%, transparent 23%), linear-gradient(145deg, var(--b-primary-soft), var(--b-primary-mist)); }
.bardich-progress-card__content { min-width: 0; padding: 20px; }
.bardich-progress-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bardich-progress-card__head div { display: grid; gap: 3px; }
.bardich-progress-card__head small { color: var(--b-muted); }
.bardich-progress-card__head > span { padding: 6px 10px; color: var(--b-primary-dark); background: var(--b-primary-soft); border-radius: 999px; font-weight: 800; }
.bardich-progress-card__measurements { color: var(--b-muted); font-size: 12px; }
.bardich-doctor-comment { margin-top: 14px; padding: 13px 15px; background: var(--b-primary-soft); border-inline-start: 3px solid var(--b-primary); border-radius: 10px; }
.bardich-doctor-comment p { margin: 5px 0 0; }
.bardich-comment-form { margin-top: 14px; }
.bardich-link-danger { color: var(--b-danger); font-size: 12px; }

.bardich-growth-chart { margin: 16px 0; padding: 14px; background: var(--b-primary-mist); border: 1px solid var(--b-border); border-radius: var(--b-radius-md); }
.bardich-growth-chart polyline { stroke: var(--b-primary-dark); }
.bardich-growth-chart circle { fill: var(--b-primary); }

.bardich-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 16px 0; }
.bardich-plan-day { padding: 15px; background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-radius-md); box-shadow: var(--b-shadow-sm); }
.bardich-plan-day h4 { margin: 0 0 11px; padding-bottom: 8px; color: var(--b-primary-dark); border-bottom: 1px dashed var(--b-border); }
.bardich-plan-slot, .bardich-plan-meal { margin-bottom: 10px; padding: 10px 0; border-bottom: 1px dashed var(--b-border); }
.bardich-plan-slot__label { display: block; margin-bottom: 5px; color: var(--b-muted); font-size: 12px; }
.bardich-slot-form { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; }
.bardich-slot-form select { flex: 1 1 180px; }
.bardich-plan-slot__summary, .bardich-day-address { margin: 8px 0; padding: 9px 10px; color: var(--b-text); background: var(--b-primary-mist); border-radius: 8px; font-size: 12px; }
.bardich-meal-checkin { display: grid; grid-template-columns: 130px minmax(130px,1fr) auto; align-items: end; gap: 7px; margin-top: 8px; }
.bardich-meal-checkin :is(input, select) { min-height: 38px !important; margin: 0 !important; }

.bardich-thread { margin: 16px 0; }
.bardich-msg { max-width: 78%; margin-bottom: 10px; padding: 12px 14px; background: var(--b-primary-mist); border: 1px solid var(--b-border); border-radius: 14px 14px 4px 14px; }
.bardich-msg.is-mine { margin-inline-start: auto; background: var(--b-primary-soft); border-radius: 14px 14px 14px 4px; }
.bardich-msg__meta { margin-bottom: 5px; color: var(--b-muted); font-size: 11px; }

/* Authentication: right green brand panel + left form, matching the combined reference. */
.bardich-auth { display: grid; direction: ltr; grid-template-columns: minmax(0, 58%) minmax(320px, 42%); max-width: 1060px; min-height: 620px; }
.bardich-auth__intro { grid-column: 2; grid-row: 1; direction: rtl; display: flex; flex-direction: column; justify-content: center; padding: 52px; color: var(--b-surface); background: radial-gradient(circle at 16% 15%, rgba(255,255,255,.10), transparent 34%), linear-gradient(145deg, var(--b-primary-dark), var(--b-primary-deep)); }
.bardich-auth__intro h1 { margin: 12px 0; color: inherit; font-size: clamp(30px, 4vw, 44px); line-height: 1.35; }
.bardich-auth__intro p, .bardich-auth__intro .bardich-kicker { color: rgba(255,255,255,.78); line-height: 2; }
.bardich-auth__logo { width: 148px; height: auto; margin-bottom: 28px; }
.bardich-auth__intro .bardich-auth__logo { filter: brightness(0) invert(1); }
.bardich-auth__card { grid-column: 1; grid-row: 1; direction: rtl; display: flex; flex-direction: column; justify-content: center; padding: 46px 64px; background: var(--b-surface); }
.bardich-auth__card:only-child { grid-column: 1 / -1; }
.bardich-auth__switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin-bottom: 24px; background: var(--b-canvas); border-radius: 12px; }
.bardich-auth__switch a { min-height: 44px; padding: 11px; border-radius: 9px; color: var(--b-muted); font-weight: 800; text-align: center; text-decoration: none; }
.bardich-auth__switch a.is-active { color: var(--b-primary-dark); background: var(--b-surface); box-shadow: var(--b-shadow-sm); }
.bardich-auth__forgot { color: var(--b-primary-dark); font-size: 12px; text-align: center; }
.bardich-auth__doctor-note { margin: 20px 0 0; padding-top: 16px; color: var(--b-muted); border-top: 1px solid var(--b-border); font-size: 11px; line-height: 1.8; }

.bardich-notice { margin: 12px 0; padding: 12px 14px; border-radius: 10px; }
.bardich-notice--info { color: var(--b-primary-dark); background: var(--b-primary-soft); border: 1px solid var(--b-border-strong); }
.bardich-notice--error { color: var(--b-danger); background: rgba(180,35,24,.07); border: 1px solid rgba(180,35,24,.20); }

.bardich-packages { width: min(1120px, calc(100% - 32px)); margin: 28px auto; }
.bardich-store__hero { width: min(1120px, calc(100% - 32px)); margin: 28px auto 24px; padding: 36px; background: linear-gradient(135deg, var(--b-primary-soft), var(--b-cream)); border: 1px solid var(--b-border); border-radius: var(--b-radius-lg); }
.bardich-store__hero h1 { margin: 7px 0; font-size: clamp(27px,4vw,40px); }
.bardich-store__hero p { max-width: 760px; margin: 0; color: var(--b-muted); line-height: 1.9; }
.bardich-package { border-radius: var(--b-radius-md); box-shadow: var(--b-shadow-sm); transition: transform var(--b-motion), box-shadow var(--b-motion); }
.bardich-package:hover { transform: translateY(-3px); box-shadow: var(--b-shadow-md); }
.bardich-checkout, .bardich-result { width: min(660px, calc(100% - 32px)); margin: 28px auto; padding: 30px; background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-radius-lg); box-shadow: var(--b-shadow-md); direction: rtl; }

@media (max-width: 1050px) {
	.bardich-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.bardich-auth__card { padding: 42px; }
}

@media (max-width: 900px) {
	.bardich-portal { width: min(100% - 20px, 1180px); margin: 14px auto; border-radius: 18px; }
	.bardich-doctor.bardich-portal, .bardich-panel.bardich-portal { display: flex; flex-direction: column; direction: rtl; }
	.bardich-doctor.bardich-portal > .bardich-tabs, .bardich-panel.bardich-portal > .bardich-tabs { order: 2; flex-direction: row; padding: 10px 14px; background: var(--b-surface); border-bottom: 1px solid var(--b-border); overflow-x: auto; }
	.bardich-doctor.bardich-portal > .bardich-tabs::before { display: none; }
	.bardich-doctor.bardich-portal > .bardich-tabs .bardich-tab { flex: 0 0 auto; color: var(--b-muted); }
	.bardich-doctor.bardich-portal > .bardich-tabs .bardich-tab:hover,
	.bardich-doctor.bardich-portal > .bardich-tabs .bardich-tab.is-active { color: var(--b-primary-dark); background: var(--b-primary-soft); transform: none; }
	.bardich-portal-header { order: 1; min-height: auto; padding: 25px 22px; }
	.bardich-panel__body { order: 3; padding: 25px 22px 34px; }
	.bardich-auth { display: flex; flex-direction: column; }
	.bardich-auth__intro { order: 1; min-height: 300px; padding: 34px; }
	.bardich-auth__card { order: 2; padding: 34px; }
}

@media (max-width: 680px) {
	.bardich-dashboard-grid, .bardich-order-list, .bardich-food-grid, .bardich-form-grid { grid-template-columns: 1fr; }
	.bardich-kpi-grid { grid-template-columns: 1fr 1fr; }
	.bardich-section__head, .bardich-portal-header, .bardich-filter-bar { align-items: stretch; flex-direction: column; }
	.bardich-component-row, .bardich-variable-editor { grid-template-columns: 1fr; }
	.bardich-component-description { grid-column: auto; }
	.bardich-progress-card { grid-template-columns: 1fr; }
	.bardich-progress-card__media, .bardich-progress-card__media img, .bardich-progress-card__placeholder { min-height: 230px; max-height: 330px; }
	.bardich-meal-checkin { grid-template-columns: 1fr; }
	.bardich-msg { max-width: 94%; }
}

@media (max-width: 420px) {
	.bardich-kpi-grid { grid-template-columns: 1fr; }
	.bardich-dashboard-card { grid-template-columns: 44px minmax(0,1fr); padding: 15px; }
	.bardich-dashboard-card__arrow { display: none; }
	.bardich-panel__body { padding-inline: 16px; }
	.bardich-auth__intro, .bardich-auth__card { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.bardich-portal *, .bardich-packages *, .bardich-checkout *, .bardich-progress * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
