/* ============================================================================
   nm-portal.css — Ügyfélportál "app" chrome (dev/ugyfelportal-terv.md 6.)
   Scope: body.nm.nm-portal — a közös .nm design-tokenekre épül (nm-tokens.css),
   var(--nm-*, #hexfallback) mintával, mint az nm-footer.css.
   ============================================================================ */

body.nm-portal {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--nm-bg, #f7f5f0);
	color: var(--nm-ink, #14202e);
	font-family: var(--nm-font-body, 'Hanken Grotesk', sans-serif);
}

/* --- Fejléc (piros brand-sáv; a tartalom a törzzsel azonos konténerben) ------- */
.nm-portal .nm-pt-header {
	padding: 14px 0;
	background: var(--nm-primary, #e15554);
	color: #fff;
}
.nm-portal .nm-pt-header-in {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;         /* a .nm-pt-main paddingjével azonos → egy vonalból indulnak */
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.nm-portal .nm-pt-brand {
	display: flex;
	align-items: baseline;   /* a felirat a wordmark betű-alapvonalára ül */
	gap: 12px;
	text-decoration: none;
	color: #fff;
}
.nm-portal .nm-pt-logo img {
	height: 21px;
	width: auto;
	display: inline-block;   /* baseline-igazításhoz (a kép alja = alapvonal) */
	vertical-align: baseline;
	position: relative;
	top: 2px;                /* finomhangolás: a kép belső margója miatt a logó ~2px-lel feljebb ülne */
}
.nm-portal .nm-pt-sub {
	font-family: var(--nm-font-display, 'Sora', sans-serif);  /* a site display-fontja — a logóhoz illő */
	font-size: 21px;              /* a logó magasságával azonos */
	line-height: 1;
	font-weight: 700;             /* a wordmark vastagságához igazítva */
	opacity: .9;
	letter-spacing: .02em;
}
.nm-portal .nm-pt-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	margin-left: auto;   /* a menü + a vissza-gomb együtt ül jobbra */
}
.nm-portal .nm-pt-nav a {
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	font-size: .92rem;
	font-weight: 600;
	padding: 8px 10px;
	border-radius: var(--nm-radius, 10px);
	transition: background .15s var(--nm-ease, ease), color .15s var(--nm-ease, ease);
}
.nm-portal .nm-pt-nav a:hover {
	background: rgba(255, 255, 255, .12);
	color: #fff;
}
.nm-portal .nm-pt-nav a.is-active {
	background: rgba(255, 255, 255, .14);
	color: #fff;
	box-shadow: inset 0 -2px 0 var(--nm-accent, #ffc42d);  /* arany aktív-jel, mint a fő fejléc piros skinjén */
}
.nm-portal .nm-pt-nav .nm-pt-out {
	color: var(--nm-accent, #ffc42d);
}
.nm-portal .nm-pt-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: auto;             /* jobb szélre (kijelentkezve is) */
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	font-size: .85rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background .15s var(--nm-ease, ease), border-color .15s var(--nm-ease, ease);
}
.nm-portal .nm-pt-back:hover {
	background: rgba(255, 255, 255, .14);
	border-color: #fff;
}

/* --- Törzs ------------------------------------------------------------------ */
.nm-portal .nm-pt-main {
	flex: 1;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 40px 24px 56px;
	box-sizing: border-box;
}
.nm-portal h1 {
	font-family: var(--nm-font-display, 'Sora', sans-serif);
	font-size: 1.7rem;
	margin: 0 0 10px;
}
.nm-portal .nm-pt-lead {
	color: var(--nm-ink-soft, #47576a);
	margin: 0 0 24px;
}

/* --- Kártyák ----------------------------------------------------------------- */
.nm-portal .nm-pt-card {
	background: var(--nm-surface, #fff);
	border: 1px solid var(--nm-line, #e5e0d5);
	border-radius: var(--nm-radius-lg, 18px);
	box-shadow: var(--nm-shadow-sm, 0 2px 10px rgba(4, 42, 77, .06));
	padding: 28px;
	box-sizing: border-box;
}
.nm-portal .nm-pt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
}
.nm-portal .nm-pt-tile {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform .15s var(--nm-ease, ease), box-shadow .15s var(--nm-ease, ease);
}
.nm-portal .nm-pt-tile:hover {
	transform: translateY(-2px);
	box-shadow: var(--nm-shadow, 0 10px 30px rgba(4, 42, 77, .12));
}
.nm-portal .nm-pt-tile h2 {
	font-family: var(--nm-font-display, 'Sora', sans-serif);
	font-size: 1.05rem;
	margin: 0 0 6px;
}
.nm-portal .nm-pt-tile p {
	margin: 0;
	font-size: .9rem;
	color: var(--nm-ink-soft, #47576a);
}

/* --- Belépés-kártya ----------------------------------------------------------- */
.nm-portal .nm-pt-login {
	max-width: 420px;
	margin: 6vh auto 0;
}

/* --- Hitelesítő split-layout: bal érték-panel + jobbra a kártya ----------------- */
.nm-portal .nm-pt-auth {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 28px;
	align-items: stretch;
	max-width: 960px;
	margin: 4vh auto 0;
}
.nm-portal .nm-pt-auth .nm-pt-login {
	margin: 0;
	max-width: none;
}
.nm-portal .nm-pt-authpanel {
	background: var(--nm-navy, #023053);
	color: rgba(255, 255, 255, .92);
	border-radius: var(--nm-radius-lg, 18px);
	padding: 34px 32px;
	display: flex;
	flex-direction: column;
}
.nm-portal .nm-pt-ap-logo {
	height: 20px;
	width: auto;
	align-self: flex-start;
	margin: 0 0 22px;
}
.nm-portal .nm-pt-authpanel h2 {
	font-family: var(--nm-font-display, 'Sora', sans-serif);
	font-size: 1.35rem;
	line-height: 1.35;
	color: #fff;
	margin: 0 0 20px;
}
.nm-portal .nm-pt-aplist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: .95rem;
}
.nm-portal .nm-pt-aplist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.nm-portal .nm-pt-aplist svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--nm-accent, #ffc42d);
}
.nm-portal .nm-pt-apquote {
	margin: auto 0 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .18);
}
.nm-portal .nm-pt-apstars {
	color: var(--nm-accent, #ffc42d);
	letter-spacing: 3px;
	font-size: .95rem;
	margin: 14px 0 8px;
}
.nm-portal .nm-pt-apquote blockquote {
	margin: 0 0 10px;
	font-size: .92rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, .88);
}
.nm-portal .nm-pt-apquote figcaption {
	font-size: .85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, .65);
}
@media (max-width: 900px) {
	.nm-portal .nm-pt-auth {
		grid-template-columns: 1fr;
		max-width: 420px;
	}
	.nm-portal .nm-pt-authpanel { display: none; }  /* mobilon a belépés-kártya az első */
}
.nm-portal .nm-pt-notice {
	background: rgba(255, 196, 45, .16);
	border: 1px solid rgba(255, 196, 45, .5);
	border-radius: var(--nm-radius, 10px);
	padding: 10px 14px;
	font-size: .9rem;
	margin: 0 0 20px;
}
.nm-portal .nm-pt-alert {
	background: rgba(230, 57, 70, .09);
	border: 1px solid rgba(230, 57, 70, .45);
	border-radius: var(--nm-radius, 10px);
	padding: 10px 14px;
	font-size: .9rem;
	margin: 0 0 20px;
	color: #8f1d26;
}
.nm-portal .nm-pt-label {
	display: block;
	font-weight: 600;
	font-size: .9rem;
	margin: 0 0 6px;
}
.nm-portal .nm-pt-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--nm-line, #e5e0d5);
	border-radius: var(--nm-radius, 10px);
	font: inherit;
	margin: 0 0 12px;
	background: #fff;
	color: inherit;
}
.nm-portal .nm-pt-input:focus {
	outline: 2px solid var(--nm-primary, #e63946);
	outline-offset: 1px;
	border-color: transparent;
}
.nm-portal .nm-pt-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 18px;
	border: 0;
	border-radius: var(--nm-radius, 10px);
	background: var(--nm-primary, #e63946);
	color: var(--nm-primary-ink, #fff);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s var(--nm-ease, ease);
}
.nm-portal .nm-pt-btn:hover { filter: brightness(1.06); }
.nm-portal .nm-pt-btn:disabled { opacity: .55; cursor: not-allowed; }
.nm-portal .nm-pt-btn-google {
	background: #fff;
	color: var(--nm-ink, #14202e);
	border: 1px solid var(--nm-line, #e5e0d5);
}
.nm-portal .nm-pt-gicon { flex: 0 0 auto; }
.nm-portal .nm-pt-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0;
	color: var(--nm-ink-soft, #47576a);
	font-size: .85rem;
}
.nm-portal .nm-pt-divider::before,
.nm-portal .nm-pt-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--nm-line, #e5e0d5);
}
.nm-portal .nm-pt-fine {
	font-size: .82rem;
	color: var(--nm-ink-soft, #47576a);
	margin: 18px 0 0;
}
.nm-portal .nm-pt-details {
	margin: 18px 0 0;
	border: 1px solid var(--nm-line, #e5e0d5);
	border-radius: var(--nm-radius, 10px);
	padding: 10px 14px;
}
.nm-portal .nm-pt-details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: .92rem;
	color: var(--nm-ink-soft, #47576a);
}
.nm-portal .nm-pt-details[open] summary { margin-bottom: 14px; }

/* --- Fiók-oldal ---------------------------------------------------------------- */
.nm-portal .nm-pt-grid-wide {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.nm-portal .nm-pt-card h2 {
	font-family: var(--nm-font-display, 'Sora', sans-serif);
	font-size: 1.05rem;
	margin: 0 0 14px;
}
.nm-portal .nm-pt-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--nm-line, #e5e0d5);
	font-size: .92rem;
}
.nm-portal .nm-pt-row:last-of-type { border-bottom: 0; }
.nm-portal .nm-pt-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 600;
	background: var(--nm-line, #e5e0d5);
	color: var(--nm-ink-soft, #47576a);
	white-space: nowrap;
}
.nm-portal .nm-pt-badge.is-on {
	background: rgba(46, 160, 67, .14);
	color: #1a7f37;
}
.nm-portal .nm-pt-badge.is-wait {
	background: rgba(255, 196, 45, .2);
	color: #7a5b00;
}
.nm-portal .nm-pt-badge.is-late {
	background: rgba(230, 57, 70, .12);
	color: #8f1d26;
}

/* --- Eszköztár: év-pillek balra, cégváltó jobbra ---------------------------------- */
.nm-portal .nm-pt-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 14px;
}
.nm-portal .nm-pt-cegvalto {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.nm-portal .nm-pt-cegvalto select {
	font: inherit;
	font-size: .9rem;
	padding: 6px 10px;
	border: 1px solid var(--nm-line, #e5e0d5);
	border-radius: var(--nm-radius, 10px);
	background: var(--nm-surface, #fff);
	color: inherit;
	cursor: pointer;
	max-width: 260px;
}
.nm-portal .nm-pt-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.nm-portal .nm-pt-pill {
	border: 1px solid var(--nm-line, #e5e0d5);
	background: var(--nm-surface, #fff);
	color: var(--nm-ink-soft, #47576a);
	font: inherit;
	font-size: .88rem;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s var(--nm-ease, ease), color .15s var(--nm-ease, ease);
}
.nm-portal .nm-pt-pill:hover {
	border-color: var(--nm-primary, #e15554);
	color: var(--nm-primary, #e15554);
}
.nm-portal .nm-pt-pill.is-active {
	background: var(--nm-primary, #e15554);
	border-color: var(--nm-primary, #e15554);
	color: #fff;
}

/* --- Számla-táblázat ------------------------------------------------------------ */
.nm-portal .nm-pt-tablewrap {
	overflow-x: auto;
	border-radius: var(--nm-radius-lg, 18px);
}
.nm-portal .nm-pt-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
	min-width: 640px;
}
.nm-portal .nm-pt-table th,
.nm-portal .nm-pt-table td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid var(--nm-line, #e5e0d5);
	white-space: nowrap;
}
.nm-portal .nm-pt-table th {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--nm-ink-soft, #47576a);
	background: var(--nm-bg, #f7f5f0);
}
.nm-portal .nm-pt-table tbody tr:last-child td { border-bottom: 0; }
.nm-portal .nm-pt-table .is-num { text-align: right; }

/* Lenyíló tételsorok */
.nm-portal .nm-pt-mainrow { cursor: pointer; }
.nm-portal .nm-pt-mainrow:hover td { background: rgba(4, 42, 77, .025); }
.nm-portal .nm-pt-subrow td {
	background: var(--nm-bg, #f7f5f0);
	white-space: normal;
	padding: 14px 16px;
}
.nm-portal .nm-pt-items {
	width: 100%;
	border-collapse: collapse;
	font-size: .88rem;
}
.nm-portal .nm-pt-items th,
.nm-portal .nm-pt-items td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid var(--nm-line, #e5e0d5);
	white-space: normal;
}
.nm-portal .nm-pt-items th {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--nm-ink-soft, #47576a);
}
.nm-portal .nm-pt-items tbody tr:last-child td { border-bottom: 0; }
.nm-portal .nm-pt-items .is-num { text-align: right; white-space: nowrap; }
.nm-portal .nm-pt-itemnote {
	font-size: .8rem;
	color: var(--nm-ink-soft, #47576a);
	margin-top: 3px;
}
.nm-portal .nm-pt-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .92rem;
	margin: 0 0 16px;
	cursor: pointer;
}
.nm-portal .nm-pt-check input { width: 16px; height: 16px; }
.nm-portal textarea.nm-pt-input { resize: vertical; min-height: 120px; }
.nm-portal .nm-pt-btn-sm {
	width: auto;
	display: inline-flex;
	padding: 8px 14px;
	font-size: .88rem;
}
.nm-portal .nm-pt-code {
	font-size: 1.4rem;
	letter-spacing: 8px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.nm-portal .nm-pt-qr {
	width: 180px;
	height: 180px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--nm-line, #e5e0d5);
	border-radius: var(--nm-radius, 10px);
	margin: 0 0 10px;
}
.nm-portal .nm-pt-qr img { display: block; }
.nm-portal .nm-pt-secret {
	display: inline-block;
	margin-top: 4px;
	padding: 6px 10px;
	background: var(--nm-bg, #f7f5f0);
	border: 1px solid var(--nm-line, #e5e0d5);
	border-radius: var(--nm-radius, 10px);
	font-size: .9rem;
	letter-spacing: 1px;
	word-break: break-all;
}

/* --- Lábléc (navy, mint a fő oldal footere) ------------------------------------ */
.nm-portal .nm-pt-footer {
	padding: 18px 24px;
	text-align: center;
	font-size: .85rem;
	background: var(--nm-navy, #023053);
	color: rgba(255, 255, 255, .75);
}
.nm-portal .nm-pt-footer a {
	color: #fff;
	font-weight: 600;
}

/* --- Mobil -------------------------------------------------------------------- */
@media (max-width: 640px) {
	.nm-portal .nm-pt-main { padding: 28px 16px 40px; }
	.nm-portal .nm-pt-login { margin-top: 2vh; }
	.nm-portal .nm-pt-header { padding: 12px 0; }
	.nm-portal .nm-pt-header-in { padding: 0 16px; }   /* mobil: a main 16px-ével azonos */
	.nm-portal .nm-pt-logo img { height: 16px; }
	.nm-portal .nm-pt-sub { font-size: 16px; }
}
