.mlbm, .mlbm-box, .mlbm-toasts {
	--a: #018989;
	--a-soft: #e3f4f4;
	--tx: #1d2327;
	--mu: #5b6770;
	--bd: #d6dde1;
	--bg: #f6f8f8;
	--ok: #1e6b2b;
	--warn: #8a5a00;
	--err: #b32d2e;
	font-size: 15px;
	line-height: 1.5;
	color: var(--tx);
	box-sizing: border-box;
}
.mlbm *, .mlbm *::before, .mlbm *::after, .mlbm-box * { box-sizing: border-box; }
.mlbm { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px); max-width: 1200px; margin: 0 auto 40px; background: var(--bg); border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; }
.mlbm :focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
.mlbm-loading, .mlbm-muted { color: var(--mu); }
.mlbm-muted { font-size: .92em; }
.mlbm h2, .mlbm h3, .mlbm h4 { color: var(--tx); margin: 0; line-height: 1.3; }

/* Fejléc és menü */
.mlbm-header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--a); color: #fff; }
.mlbm-brand { font-size: 1.1em; }
.mlbm-user { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: .9em; }
.mlbm-user a { color: #fff; text-decoration: underline; }
.mlbm-nav { display: flex; gap: 2px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--bd); padding: 0 8px; -webkit-overflow-scrolling: touch; }
.mlbm-nav a { flex: none; padding: 12px 12px 10px; color: var(--mu); text-decoration: none; border-bottom: 3px solid transparent; font-weight: 600; white-space: nowrap; }
.mlbm-nav a:hover { color: var(--tx); }
.mlbm-nav a.is-active { color: var(--a); border-color: var(--a); }
.mlbm-main { padding: 16px; outline: none; }
.mlbm-title { font-size: 1.35em; margin-bottom: 14px !important; }

/* Kártyák, rácsok */
.mlbm-card { background: #fff; border: 1px solid var(--bd); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.mlbm-card-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mlbm-card-head h3 { font-size: 1.05em; }
.mlbm-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.mlbm-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 0 12px; }
.mlbm-scroll { overflow-x: auto; }
@media (max-width: 860px) { .mlbm-cols { grid-template-columns: minmax(0, 1fr); } }
.mlbm-cols > *, .mlbm-grid2 > *, .mlbm-grid3 > * { min-width: 0; }

/* Gombok */
.mlbm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 14px; border: 1px solid var(--a); border-radius: 8px; background: var(--a); color: #fff !important; font: inherit; font-weight: 600; text-decoration: none !important; cursor: pointer; line-height: 1.2; }
.mlbm-btn:hover { filter: brightness(.93); }
.mlbm-btn:disabled { opacity: .5; cursor: not-allowed; }
.mlbm-btn.ghost { background: #fff; color: var(--a) !important; }
.mlbm-btn.danger { background: #fff; color: var(--err) !important; border-color: var(--err); }
.mlbm-btn.small { padding: 5px 10px; font-size: .88em; }
.mlbm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.mlbm-sticky { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; }

/* Űrlapok */
.mlbm-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.mlbm-field label { font-weight: 600; font-size: .92em; }
.mlbm-field small { color: var(--mu); }
.mlbm input[type=text], .mlbm input[type=email], .mlbm input[type=tel], .mlbm input[type=url], .mlbm input[type=number],
.mlbm input[type=date], .mlbm input[type=time], .mlbm input[type=search], .mlbm select, .mlbm textarea {
	width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--bd); border-radius: 8px; background: #fff; color: var(--tx); font: inherit; margin: 0;
}
.mlbm input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--bd); border-radius: 8px; }
.mlbm textarea { min-height: 60px; resize: vertical; }
.mlbm-check { display: flex; align-items: center; gap: 6px; margin: 6px 0 10px; font-weight: 400 !important; }
.mlbm-check input { width: 18px; height: 18px; margin: 0; }
.mlbm-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; align-items: end; }
.mlbm-filters .mlbm-actions { margin: 0 0 12px; }
.mlbm-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.mlbm-inline input { flex: 1 1 220px; }
.mlbm-tpl { border: 1px solid var(--bd); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.mlbm-tpl summary { cursor: pointer; font-weight: 600; }
.mlbm-tpl[open] summary { margin-bottom: 8px; }

/* Áttekintés */
.mlbm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mlbm-stat { display: flex; flex-direction: column; padding: 14px 16px; background: #fff; border: 1px solid var(--bd); border-left: 4px solid var(--a); border-radius: 10px; text-decoration: none !important; color: var(--tx) !important; }
.mlbm-stat span { color: var(--mu); font-size: .9em; }
.mlbm-stat strong { font-size: 1.8em; line-height: 1.2; }
.mlbm-alert { padding: 10px 14px; margin-bottom: 14px; background: #fcf3e3; border-left: 4px solid var(--warn); border-radius: 6px; }
.mlbm-alert ul { margin: 4px 0 0 18px; padding: 0; }

/* Foglaláslista */
.mlbm-blist { list-style: none; margin: 0; padding: 0; }
.mlbm-bdate { margin: 12px 0 4px; font-weight: 700; color: var(--mu); font-size: .9em; text-transform: uppercase; letter-spacing: .02em; }
.mlbm-bdate:first-child { margin-top: 0; }
.mlbm-bitem { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; margin: 0 0 6px; background: #fff; border: 1px solid var(--bd); border-left: 4px solid var(--a); border-radius: 8px; }
.mlbm-bitem.s-cancelled { border-left-color: var(--err); opacity: .7; }
.mlbm-bitem.s-completed { border-left-color: var(--ok); }
.mlbm-bitem.s-no_show { border-left-color: var(--warn); }
.mlbm-bmain { flex: 1 1 280px; display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--tx) !important; min-width: 0; }
.mlbm-btime { font-weight: 700; font-size: 1.1em; min-width: 48px; }
.mlbm-bwho { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mlbm-bwho small { color: var(--mu); overflow-wrap: anywhere; }
.mlbm-note { font-style: italic; }
.mlbm-quick { display: flex; gap: 6px; }
.mlbm-status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .8em; white-space: nowrap; background: var(--a-soft); color: #016464; }
.mlbm-status.s-completed { background: #e7f5e9; color: var(--ok); }
.mlbm-status.s-no_show { background: #fcf3e3; color: var(--warn); }
.mlbm-status.s-cancelled { background: #fbeaea; color: var(--err); }
.mlbm-pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 10px; }

/* Táblázatok */
.mlbm-table { width: 100%; border-collapse: collapse; }
.mlbm-table th, .mlbm-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--bd); vertical-align: top; }
.mlbm-table th { font-size: .85em; color: var(--mu); }
.mlbm-table code { font-size: .8em; overflow-wrap: anywhere; }
@media (max-width: 640px) {
	.mlbm-table thead { display: none; }
	.mlbm-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--bd); }
	.mlbm-table td { display: block; border: 0; padding: 2px 0; }
	.mlbm-table td[data-l]::before { content: attr(data-l) ": "; color: var(--mu); font-size: .85em; }
}
.mlbm-sched th, .mlbm-sched td { padding: 3px 8px 3px 0; text-align: left; white-space: nowrap; }
.mlbm-sched input[type=time] { width: 110px; min-width: 0; display: inline-block; }

/* Szabad időpontok */
.mlbm-slots { margin: -4px 0 12px; }
.mlbm-slotbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mlbm-slot { min-width: 64px; padding: 6px 8px; border: 1px solid var(--a); border-radius: 6px; background: #fff; color: var(--a); font: inherit; font-weight: 600; cursor: pointer; }
.mlbm-slot.is-on, .mlbm-slot:hover { background: var(--a); color: #fff; }
.mlbm-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 10px; }
.mlbm-dl dt { color: var(--mu); }
.mlbm-dl dd { margin: 0; }
.mlbm-log { list-style: none; margin: 10px 0 0; padding: 0; max-height: 320px; overflow: auto; }
.mlbm-log li { padding: 6px 0; border-top: 1px solid var(--bd); font-size: .92em; }
.mlbm-log time { display: block; color: var(--mu); font-size: .85em; }

/* Heti naptár */
.mlbm-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.mlbm-toolbar select { width: auto; min-width: 200px; }
.mlbm-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1000px) { .mlbm-week { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.mlbm-day { background: #fff; border: 1px solid var(--bd); border-radius: 8px; padding: 8px; min-height: 180px; }
.mlbm-day h4 { font-size: .95em; margin-bottom: 4px; }
.mlbm-day h4 span { color: var(--mu); font-weight: 400; }
.mlbm-day.is-today { border-color: var(--a); box-shadow: 0 0 0 1px var(--a); }
.mlbm-day.is-closed { background: #eef0f1; }
.mlbm-hours { margin: 0 0 6px; color: var(--mu); font-size: .8em; }
.mlbm-event { display: block; margin: 0 0 6px; padding: 5px 7px; border-left: 3px solid var(--a); border-radius: 4px; background: var(--a-soft); color: var(--tx) !important; text-decoration: none !important; font-size: .88em; }
.mlbm-event small { display: block; color: var(--mu); }
.mlbm-event.s-cancelled { background: #fbeaea; border-color: var(--err); opacity: .65; text-decoration: line-through !important; }
.mlbm-event.s-completed { background: #e7f5e9; border-color: var(--ok); }
.mlbm-event.s-no_show { background: #fcf3e3; border-color: var(--warn); }
.mlbm-add { font-size: .85em; color: var(--a) !important; font-weight: 600; }
.mlbm-main a:not(.mlbm-btn):not(.mlbm-event):not(.mlbm-stat):not(.mlbm-bmain) { color: var(--a); }

/* Értesítések */
.mlbm-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.mlbm-toast { padding: 10px 14px; border-radius: 8px; background: #1d2327; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.2); font-size: 14px; }
.mlbm-toast.ok { background: #16613b; }
.mlbm-toast.warn { background: #8a5a00; }
.mlbm-toast.err { background: #b32d2e; }

/* Belépés */
.mlbm-box { max-width: 420px; margin: 24px auto; padding: 20px; background: #fff; border: 1px solid #d6dde1; border-radius: 12px; }
.mlbm-box h2 { margin-top: 0; }
.mlbm-login p { margin: 0 0 12px; }
.mlbm-login label { display: block; font-weight: 600; margin-bottom: 4px; }
.mlbm-login input[type=text], .mlbm-login input[type=password] { width: 100%; padding: 10px 12px; border: 1px solid #d6dde1; border-radius: 8px; font: inherit; }
.mlbm-login .login-remember label { font-weight: 400; }
.mlbm-login input[type=submit] { width: 100%; padding: 12px; border: 0; border-radius: 8px; background: #018989; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* Ügyfelek */
.mlbm-nl { font-weight: 600; font-size: 13px; }
.mlbm-nl.n-1 { color: #1a7f37; }
.mlbm-nl.n-2 { color: #b32d2e; }
.mlbm-nl.n-0 { color: #6b7280; font-weight: 400; }
.mlbm-next { display: block; color: #1a7f37; font-size: 12px; margin-top: 2px; }
.mlbm-table td small { color: #6b7280; }

/* Rendezhető oszlopfejlécek. A gomb a fejléc teljes szélessége, hogy
   érintőképernyőn is könnyű legyen eltalálni. */
.mlbm-th-sort { padding: 0; }
.mlbm-th-sort button {
	display: flex;
	gap: 4px;
	align-items: center;
	width: 100%;
	padding: 8px 6px;
	border: 0;
	background: none;
	font: inherit;
	text-align: left;
	color: var(--mu);
	cursor: pointer;
}
.mlbm-th-sort button:hover { color: var(--a); }
.mlbm-th-sort.is-on button { color: var(--a); font-weight: 600; }
.mlbm-arrow { font-size: .8em; opacity: .45; }
.mlbm-th-sort.is-on .mlbm-arrow { opacity: 1; }
.mlbm-sorthint { margin: 8px 0 0; font-size: 12px; }

/* Hívás gomb és a kimenetel kérdése */
.mlbm-call { margin: 12px 0; }
.mlbm-call-kerdes {
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid var(--bd);
	border-radius: 8px;
	background: #f6f9f9;
}
.mlbm-call-kerdes strong { display: block; margin-bottom: 8px; font-size: .95em; }
.mlbm-call-gombok { display: flex; flex-wrap: wrap; gap: 6px; }
.mlbm-call-gombok .mlbm-btn { flex: 1 1 auto; text-align: center; }
.mlbm-call-most-nem {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: .85em;
	color: var(--mu);
	text-decoration: underline;
	cursor: pointer;
}

/* Demó mód */
.mlbm-demo-mail { border: 1px solid #dcdcde; border-radius: 6px; margin: 0 0 10px; background: #fff; }
.mlbm-demo-mail summary { cursor: pointer; padding: 10px 12px; }
.mlbm-demo-mail > p { margin: 0; padding: 0 12px 8px; }
.mlbm-demo-frame { display: block; width: 100%; height: 480px; border: 0; border-top: 1px solid #dcdcde; background: #f4f6f6; }
.mlbm-demo-text { margin: 0; padding: 12px; white-space: pre-wrap; border-top: 1px solid #dcdcde; }

/* Vizsgálati karton */
.mlbm-exam-h { margin: 18px 0 6px; font-size: 1em; border-top: 1px solid #dcdcde; padding-top: 12px; }
.mlbm-rxwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
	background: linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 24px 100% no-repeat local, radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.18), rgba(0,0,0,0)) right / 10px 100% no-repeat scroll; }
.mlbm-rxtable tbody th, .mlbm-rxtable thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
@media (max-width: 640px) {
	.mlbm-rxtable td { padding: 2px; }
	.mlbm-rxtable input.mlbm-rx { min-width: 54px; padding: 6px 4px; }
}
.mlbm-rxtable { border-collapse: collapse; min-width: 100%; }
.mlbm-rxtable th { font-weight: 600; font-size: .85em; padding: 4px; text-align: center; color: #50575e; }
.mlbm-rxtable tbody th { text-align: right; padding-right: 8px; white-space: nowrap; }
.mlbm-rxtable td { padding: 3px; }
.mlbm-rxtable input.mlbm-rx { width: 100%; min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.mlbm-consent { margin-top: 18px; padding: 12px 14px; border: 1px solid #dcdcde; border-radius: 8px; background: #f6f7f7; }
.mlbm-consent h3 { margin: 0 0 6px; font-size: 1em; }
.mlbm-consent-text { font-size: .88em; font-style: italic; margin: 0 0 10px; }
.mlbm-sigwrap { background: #fff; border: 1px solid #c3c4c7; border-radius: 6px; padding: 6px; }
.mlbm-sig { display: block; width: 100%; height: 170px; touch-action: none; border-bottom: 1px dashed #8c8f94; cursor: crosshair; }
.mlbm-sigimg { display: block; max-width: 100%; height: 120px; object-fit: contain; }
.mlbm-sigfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.mlbm-accounts { list-style: none; margin: 0; padding: 0; }
.mlbm-accounts li { padding: 6px 0; border-bottom: 1px solid #f0f0f1; }

/* Számlázás */
.mlbm-grid3 { display: grid; grid-template-columns: 1fr 2fr 3fr; gap: 0 12px; }
@media (max-width: 640px) { .mlbm-grid3 { grid-template-columns: minmax(0, 1fr); } }
.mlbm-inv-items input, .mlbm-inv-items select, .mlbm-pricelist input, .mlbm-pricelist select { width: 100%; min-width: 60px; }
.mlbm-inv-items td:first-child, .mlbm-pricelist td:first-child { min-width: 180px; }
.mlbm-inv-sum { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.mlbm-inv-total { margin-left: auto; font-size: 1.1em; }
.mlbm-inv-st { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .85em; background: #f0f0f1; }
.mlbm-inv-st.st-ok { background: #e7f5ea; color: #1e6b33; }
.mlbm-inv-st.st-storno { background: #f6f7f7; color: #646970; text-decoration: line-through; }
.mlbm-inv-st.st-error { background: #fcf0f1; color: #8a1f24; }
.mlbm-inv-st.st-unknown { background: #fff8e5; color: #7a5600; }
.mlbm-accounts .mlbm-inline { margin-top: 4px; gap: 16px; }

/* Ügyfélválasztó */
.mlbm-pick { list-style: none; margin: 0; padding: 0; }
.mlbm-pick li { border-bottom: 1px solid #f0f0f1; }
.mlbm-pick-item { display: flex; flex-direction: column; padding: 10px 6px; text-decoration: none; color: inherit; }
.mlbm-pick-item:hover, .mlbm-pick-item:focus { background: #f6f7f7; }
.mlbm-pick-item small { color: #50575e; }
input[readonly] { background: #f6f7f7; color: #3c434a; }

.mlbm-nocard { margin-bottom: 14px; }
.mlbm-nocard .mlbm-inline { margin-top: 10px; }

.mlbm-custline { margin: 0 0 12px; padding: 8px 12px; background: #f6f7f7; border-radius: 6px; }
