/* Nordic Portal Hub. Bygger på portalens egne .ncp-klasser og farver (navy #071542, pink #D80EBB, cyan #03A9F2). */
.ncp .nph-panel,
.ncp .nph-overview { display: grid; gap: 20px; align-content: start; }
.ncp .nph-panel[hidden] { display: none !important; }
.ncp .nph-head { display: grid; gap: 6px; }
.ncp .nph-head h3 { font-size: 24px; letter-spacing: -.02em; outline: none; }
.ncp .nph-overview { margin-bottom: 16px; }
.ncp .ncp-body > .nph-panel { min-width: 0; max-width: 100%; }
.ncp .nph-panel .ncp-card { min-width: 0; }

/* ---------- supportniveau ---------- */
.ncp .nph-plan { background: #fff; border-bottom: 1px solid #e5eaf0; padding: 20px max(32px, calc((100% - 1256px) / 2 + 24px)); display: grid; gap: 16px; }
.ncp .nph-plan-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ncp .nph-plan-text { display: grid; gap: 2px; min-width: 0; }
.ncp .nph-plan-text strong { font-size: 19px; letter-spacing: -.01em; line-height: 1.3; }
.ncp .nph-tier { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; font: 700 13px Poppins, Arial, sans-serif; letter-spacing: .14em; white-space: nowrap; }
.ncp .nph-tier-prime { background: linear-gradient(120deg, #071542 0%, #3b1d78 58%, #D80EBB 140%); color: #fff; box-shadow: 0 6px 18px #d80ebb33; }
.ncp .nph-tier-priority { background: #03A9F2; color: #071542; }
.ncp .nph-tier-core { background: #e1f4fd; color: #05638a; border: 1px solid #b4e2f7; }
.ncp .nph-tier-legacy { background: #fdf0d8; color: #8a5a06; border: 1px solid #f1d9a6; }
.ncp .nph-tier-none { background: #eef1f4; color: #4b5b69; border: 1px solid #dde3e9; }
.ncp .nph-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ncp .nph-fact { background: #f5fbff; border: 1px solid #e1eef7; border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.ncp .nph-fact strong { font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.ncp .nph-fact span { font-size: 12px; color: var(--muted); }
.ncp .nph-fact small { font-size: 11px; color: #a3217f; font-weight: 600; }
.ncp .nph-plan-note { color: var(--navy); max-width: 760px; font-size: 14px; }
.ncp .nph-plan-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ncp .nph-plan-detail { border-top: 1px solid #eef1f4; padding-top: 4px; display: grid; gap: 8px; }
.ncp .nph-plan-detail .ncp-dl { margin: 0; }
.ncp .nph-plan-detail .ncp-dl > div:last-child { border-bottom: 0; }

/* ---------- overblik ---------- */
.ncp .nph-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.ncp .nph-stat { display: grid; gap: 4px; cursor: default; align-content: start; border-top: 4px solid var(--navy); padding: 20px 22px; }
.ncp .nph-stat strong { font-size: 28px; margin-top: 4px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ncp .nph-stat:not([role="link"]):hover { transform: none; }
.ncp .nph-stat-label { font-size: 13px; color: var(--muted); }
.ncp .nph-tone-cyan { border-top-color: var(--cyan); }
.ncp .nph-tone-pink { border-top-color: var(--pink); }
.ncp .nph-tone-alert { border-top-color: var(--pink); background: #fdf6fb; }
.ncp .nph-tone-alert strong { color: #a3217f; }
.ncp .nph-stat[role="link"] { cursor: pointer; }
.ncp .nph-stat[role="link"]:hover { border-color: #cfe9f7; border-top-color: inherit; }
.ncp .nph-stat[role="link"]:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.ncp .nph-attention { display: grid; gap: 14px; }
.ncp .nph-attention-ok { background: #f2fbf7; border-color: #cdeedd; padding: 18px 24px; }
.ncp .nph-attention-ok h3 { font-size: 15px; color: #0a6b46; }
.ncp .nph-ok { color: #0a6b46; font-weight: 600; font-size: 14px; }
.ncp .nph-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--pink); color: #fff; font-weight: 700; font-size: 13px; }
.ncp .nph-att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ncp .nph-att { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid #e5eaf0; border-radius: 14px; background: #fff; }
.ncp .nph-att-main { display: grid; gap: 1px; min-width: 0; }
.ncp .nph-att-main strong { font-size: 14px; overflow-wrap: anywhere; }
.ncp .nph-att-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); }
.ncp .nph-att-warn { background: #fffaf0; border-color: #f4e2b8; }
.ncp .nph-att-warn .nph-att-dot { background: #e09b1a; }
.ncp .nph-att-alert { background: #fdf6fb; border-color: #f3cfe9; }
.ncp .nph-att-alert .nph-att-dot { background: var(--pink); }
.ncp .nph-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ncp .nph-two > .ncp-card { display: grid; gap: 16px; align-content: start; }
.ncp .nph-prog-list { display: grid; gap: 4px; }
.ncp .nph-prog { display: grid; gap: 6px; padding: 12px 10px; border-radius: 12px; border-bottom: 1px solid #eef1f4; }
.ncp .nph-prog[role="link"] { cursor: pointer; }
.ncp .nph-prog[role="link"]:hover { background: #f5fbff; }
.ncp .nph-prog[role="link"]:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; }
.ncp .nph-prog-bar { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font-size: 13px; font-weight: 600; }
.ncp .nph-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.ncp .nph-tl { display: grid; grid-template-columns: 16px 1fr; gap: 14px; padding: 0 0 18px; position: relative; }
.ncp .nph-tl:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: #e5eaf0; }
.ncp .nph-tl-dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; background: var(--navy); box-shadow: 0 0 0 2px #e5eaf0; margin-top: 3px; z-index: 1; }
.ncp .nph-tl-quote .nph-tl-dot { background: var(--pink); }
.ncp .nph-tl-deal .nph-tl-dot { background: var(--cyan); }
.ncp .nph-tl-project .nph-tl-dot { background: #1a9e6b; }
.ncp .nph-tl-body { display: grid; gap: 1px; min-width: 0; border-radius: 8px; }
.ncp .nph-tl-body strong { font-size: 14px; overflow-wrap: anywhere; }
.ncp .nph-tl-event { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ncp .nph-tl-link .nph-tl-body { cursor: pointer; }
.ncp .nph-tl-link .nph-tl-body:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ncp .nph-tl-link .nph-tl-body:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* ---------- lister, kort og filtre ---------- */
.ncp .nph-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ncp .nph-project { display: grid; gap: 12px; align-content: start; }
.ncp .nph-project h3 { font-size: 18px; }
.ncp .nph-project button { justify-self: start; }
.ncp .nph-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ncp .nph-row-end { font-size: 13px; }
.ncp .nph-bar { height: 10px; border-radius: 999px; background: #e6edf3; overflow: hidden; }
.ncp .nph-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), #5cc9f7); transition: width .4s; }
.ncp .nph-big { font-size: 28px; font-weight: 600; margin-top: 12px; letter-spacing: -.02em; }
.ncp .nph-strong { font-weight: 600; }
.ncp .nph-small { padding: 8px 14px; font-size: 13px; }
.ncp .nph-back { justify-self: start; }
.ncp .nph-empty { color: var(--muted); padding: 8px 0; }
.ncp .nph-state { display: grid; gap: 12px; justify-items: start; padding: 12px 0; }
.ncp .nph-notice { background: #dff3fd; border: 1px solid #b4e2f7; border-radius: 12px; padding: 14px 18px; }
.ncp .nph-notice[hidden] { display: none; }
.ncp .nph-badge { display: inline-block; }
.ncp .nph-group { margin: 8px 0 0; }
.ncp .nph-fold > summary { cursor: pointer; list-style: none; }
.ncp .nph-fold > summary::-webkit-details-marker { display: none; }
.ncp .nph-fold > summary .nph-group::before { content: "▸"; color: var(--pink); transition: transform .2s; display: inline-block; }
.ncp .nph-fold[open] > summary .nph-group::before { transform: rotate(90deg); }
.ncp .nph-fold > .nph-list { margin-top: 12px; }
.ncp .nph-fold > .nph-items { margin-top: 12px; }
.ncp .nph-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ncp button.nph-chip { background: #fff; color: var(--navy); border: 1px solid #cfd8e0; padding: 8px 16px; font-size: 13px; border-radius: 999px; }
.ncp button.nph-chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.ncp .nph-items { display: grid; gap: 10px; }
.ncp .nph-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid #e5eaf0; border-left: 5px solid #cfd8e0; border-radius: 14px; }
.ncp .nph-item h4 { margin: 0 0 4px; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.ncp .nph-item-main { display: grid; gap: 6px; min-width: 0; align-content: center; }
.ncp .nph-item-main p { margin: 0; }
.ncp .nph-item-side { display: grid; gap: 4px; justify-items: end; text-align: right; }
.ncp .nph-item-side strong { font-size: 16px; }
.ncp .nph-item-actions { margin-top: 6px; }
.ncp .nph-item-actions:empty { display: none; }
.ncp .nph-meta { font-size: 12px; }
.ncp .nph-day { display: grid; place-items: center; align-content: center; width: 64px; height: 64px; border-radius: 14px; background: #f1f6fa; color: var(--navy); line-height: 1; gap: 4px; }
.ncp .nph-day b { font-size: 24px; }
.ncp .nph-day span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.ncp .nph-day-empty { color: var(--muted); font-size: 20px; }
.ncp .nph-item-testing, .ncp .nph-item-soon { border-left-color: #e09b1a; }
.ncp .nph-item-running, .ncp .nph-item-q-sent { border-left-color: var(--cyan); }
.ncp .nph-item-q-waiting { border-left-color: var(--navy); }
.ncp .nph-item-q-postponed { border-left-color: #9fb0c0; background: #fafbfc; }
.ncp .nph-item-delivered, .ncp .nph-item-q-accepted { border-left-color: #1a9e6b; }
.ncp .nph-item-q-declined { border-left-color: var(--pink); background: #fdf6fb; }
.ncp .nph-item-q-expired, .ncp .nph-item-q-superseded, .ncp .nph-item-paused { background: #fafbfc; }
.ncp .nph-late { color: #a3217f; font-weight: 600; }
.ncp .nph-row-alert td { background: #fdf6fb; }
.ncp .nph-confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; justify-content: flex-end; }
.ncp .nph-cards-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ncp .nph-invoices { display: grid; gap: 14px; }
.ncp .nph-thread-row td { padding: 0; border-bottom: 0; }
.ncp .nph-thread-cell { background: #f5fbff; padding: 16px !important; border-bottom: 1px solid #eef1f4; }
.ncp .nph-thread-cell[hidden] { display: none; }
.ncp .nph-thread { display: grid; gap: 14px; }
.ncp .nph-thread > .ncp-card { display: grid; gap: 14px; }
.ncp .nph-msgs { display: grid; gap: 10px; }
.ncp .nph-msg { background: #fff; border: 1px solid #e6ebef; border-radius: 14px; padding: 12px 16px; max-width: 760px; }
.ncp .nph-msg-me { background: #eaf6fd; border-color: #cbe9f8; margin-left: auto; }
.ncp .nph-msg-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
.ncp .nph-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.ncp .nph-write { display: grid; gap: 10px; justify-items: start; }
.ncp .nph-write textarea { min-height: 90px; }
.ncp .nph-write .nph-msg-status:empty { display: none; }
.ncp .nph-folder { padding: 0; }
.ncp .nph-folder > summary { cursor: pointer; padding: 18px 24px; list-style: none; display: flex; gap: 6px; align-items: baseline; }
.ncp .nph-folder > summary::-webkit-details-marker { display: none; }
.ncp .nph-folder > summary::before { content: "▸"; color: var(--pink); margin-right: 6px; transition: transform .2s; display: inline-block; }
.ncp .nph-folder[open] > summary::before { transform: rotate(90deg); }
.ncp .nph-folder > summary:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; border-radius: 18px; }
.ncp .nph-folder > .ncp-table-wrap,
.ncp .nph-folder > .nph-empty { padding: 0 24px 18px; }
.ncp .nph-sub { margin-top: 24px; font-size: 16px; }

/* ---------- menu i to niveauer ---------- */
.ncp .nph-nav-orig { display: none !important; }
.ncp .nph-nav[hidden] { display: none !important; }
.ncp .nph-nav-top { gap: 6px; }
.ncp .nph-nav-top button { font-size: 15px; padding: 11px 20px; }
.ncp .nph-nav-top button[aria-selected="true"] { background: var(--navy); color: #fff; }
.ncp .nph-nav-sub { background: #f5fbff; padding-top: 10px; padding-bottom: 10px; gap: 4px; }
.ncp .nph-nav-sub button { font-size: 13px; padding: 8px 14px; }
.ncp .nph-nav-sub button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: inset 0 -3px 0 var(--pink); border-radius: 8px; }
.ncp .nph-nav-sub button[aria-selected="true"]:hover { transform: none; box-shadow: inset 0 -3px 0 var(--pink); }

/* ---------- leverance med projekt (accordion) ---------- */
.ncp .nph-acc { display: block; }
.ncp .nph-acc > summary { list-style: none; cursor: pointer; border-radius: 14px; display: block; }
.ncp .nph-acc > summary::-webkit-details-marker { display: none; }
.ncp .nph-acc > summary:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.ncp .nph-acc > summary:hover .nph-item { background: #f8fcff; }
.ncp .nph-item-acc { grid-template-columns: 64px minmax(0, 1fr) auto 24px; }
.ncp .nph-acc[open] > summary .nph-item { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.ncp .nph-acc-cta { font-size: 12px; font-weight: 600; color: #05638a; }
.ncp .nph-chev { width: 9px; height: 9px; border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(45deg); transition: transform .2s; justify-self: center; margin-top: -4px; }
.ncp .nph-acc[open] .nph-chev { transform: rotate(-135deg); margin-top: 4px; }
.ncp .nph-acc-body { border: 1px solid #e5eaf0; border-top: 0; border-left: 5px solid #e5eaf0; background: #fafcfe; border-radius: 0 0 14px 14px; padding: 4px 18px 18px 86px; }
.ncp .nph-acc-body .nph-project { max-width: 520px; }
.ncp .nph-acc-testing .nph-acc-body { border-left-color: #e09b1a; }
.ncp .nph-acc-running .nph-acc-body { border-left-color: var(--cyan); }
.ncp .nph-acc-delivered .nph-acc-body { border-left-color: #1a9e6b; }

@media (max-width: 1000px) {
	.ncp .nph-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ncp .nph-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.ncp .nph-plan { padding: 16px; }
	.ncp .nph-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ncp .nph-cards { grid-template-columns: 1fr; }
	.ncp .ncp-nav { flex-wrap: nowrap; overflow-x: auto; padding: 12px 16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
	.ncp .nph-nav-top { flex-wrap: wrap; overflow-x: visible; gap: 2px 4px; padding: 8px 12px; }
	.ncp .nph-nav-top button { font-size: 13px; padding: 8px 11px; }
	.ncp .nph-nav-sub button { font-size: 13px; padding: 8px 12px; }
	.ncp .ncp-nav button { flex: 0 0 auto; white-space: nowrap; }
	.ncp .ncp-body { padding: 16px; }
	.ncp .nph-write textarea { min-height: 80px; }
	.ncp .ncp-dl > div { grid-template-columns: 1fr; gap: 2px; }
	.ncp .nph-folder > summary { padding: 16px; }
	.ncp .nph-folder > .ncp-table-wrap, .ncp .nph-folder > .nph-empty { padding: 0 16px 16px; }
	.ncp .nph-list { grid-template-columns: 1fr; }
	.ncp .nph-item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px; }
	.ncp .nph-item-acc { grid-template-columns: 52px minmax(0, 1fr) 24px; }
	.ncp .nph-acc-body { padding: 4px 14px 16px; }
	.ncp .nph-day { width: 52px; height: 52px; }
	.ncp .nph-day b { font-size: 20px; }
	.ncp .nph-item-side { grid-column: 1 / -1; grid-template-columns: 1fr; justify-items: start; text-align: left; border-top: 1px solid #eef1f4; padding-top: 10px; }
	.ncp .nph-item-quote { padding: 12px 14px; }
	.ncp .nph-item-quote .nph-item-side { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding-top: 8px; }
	.ncp .nph-item-quote .nph-item-side > strong { order: -3; font-size: 18px; }
	.ncp .nph-item-quote .nph-item-side > .ncp-muted { order: -2; font-size: 12px; }
	.ncp .nph-item-quote .nph-item-side > .nph-badge { order: -1; }
	.ncp .nph-item-quote .nph-item-side > .nph-item-actions { flex: 1 0 100%; order: 5; margin-top: 4px; }
	.ncp .nph-item-quote .nph-item-actions .nph-small { width: 100%; min-height: 44px; }
	.ncp .nph-item-quote .nph-confirm .nph-small { flex: 1 1 auto; min-height: 44px; }
	.ncp .nph-confirm { justify-content: flex-start; }
	.ncp .nph-att { grid-template-columns: 12px 1fr; }
	.ncp .nph-att > button { grid-column: 2; justify-self: start; }
	.ncp .nph-tier { padding: 8px 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.ncp .nph-bar span, .ncp .nph-folder > summary::before, .ncp .nph-fold > summary .nph-group::before, .ncp .nph-chev { transition: none; }
}
