/* Stavanger Open – slagverk på scenene: siden for slagverkansvarlig og lista {utstyr}.
 * Farger: #1c1c14 (mørk) og #F6C404 (gul). Regler starter med .so-perc / .so-utstyr
 * slik at temaets knappestiler ikke tar over. */

/* ── Lista for publikum ({utstyr}, [so_utstyr]) ── */
.so-utstyr { margin: 0 0 1em; }
.so-utstyr .so-utstyr__h { font-size: 1.05em; font-weight: 700; margin: .8em 0 .3em; color: #1c1c14; }
.so-utstyr .so-utstyr__hall:first-child .so-utstyr__h { margin-top: 0; }
.so-utstyr ul.so-utstyr__list { columns: 2 220px; column-gap: 28px; margin: 0 0 .6em; padding-left: 1.2em; }
.so-utstyr ul.so-utstyr__list li { break-inside: avoid; margin: .15em 0; }
.so-utstyr .so-utstyr__note { color: #50575e; }
.so-utstyr .so-utstyr__upd, .so-utstyr .so-utstyr__empty { font-size: .85em; color: #50575e; margin: .3em 0 0; }

/* ── Siden for slagverkansvarlig ── */
.so-perc { --pc-dark: #1c1c14; --pc-yellow: #F6C404; --pc-text: #1d2327; --pc-muted: #50575e; --pc-line: #e2e2da;
	color: var(--pc-text); font-size: 16px; line-height: 1.5; max-width: 980px; margin: 0 auto; }
.so-perc *, .so-perc *::before, .so-perc *::after { box-sizing: border-box; }
.so-perc--admin { margin: 14px 0 0; max-width: 1100px; }
.so-perc .so-perc-loading, .so-perc .so-perc-muted { color: var(--pc-muted); }
.so-perc .so-perc-muted { font-size: .9em; }
.so-perc .so-perc-card { background: #fff; border: 1px solid #d6d6cf; border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.so-perc .so-perc-card h2, .so-perc .so-perc-card h3 { margin: 0 0 8px; font-size: 1.2em; color: var(--pc-dark); letter-spacing: normal; text-transform: none; }
.so-perc .so-perc-card h3 small { font-weight: 400; color: var(--pc-muted); font-size: .75em; }

.so-perc button { -webkit-appearance: none; appearance: none; font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; text-shadow: none; margin: 0; width: auto; min-height: 0; }
.so-perc button.so-perc-btn,
.so-perc button.so-perc-btn:hover,
.so-perc button.so-perc-btn:focus {
	display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
	border: 2px solid var(--pc-dark); border-radius: 8px; background: #fff; color: var(--pc-dark);
	font-size: 15px; font-weight: 700; line-height: 1.2; padding: 8px 14px;
}
.so-perc button.so-perc-btn:hover { background: #f4f4ee; }
.so-perc button.so-perc-btn.is-primary { background: var(--pc-yellow); }
.so-perc button.so-perc-btn.is-primary:hover { background: #e3b400; }
.so-perc button.so-perc-btn.is-small { font-size: 13px; padding: 5px 10px; border-width: 1px; }
.so-perc button.so-perc-btn.is-danger { color: #b32d2e; border-color: #b32d2e; }
.so-perc button.so-perc-btn:disabled { opacity: .45; cursor: default; }
.so-perc button.so-perc-btn:focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }
.so-perc button.so-perc-link, .so-perc button.so-perc-link:hover, .so-perc button.so-perc-link:focus { border: 0; background: none; padding: 0; color: var(--pc-yellow); text-decoration: underline; cursor: pointer; font-size: inherit; }

.so-perc .so-perc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
	background: var(--pc-dark); color: var(--pc-yellow); font-weight: 700; padding: 12px 16px; border-radius: 10px 10px 0 0; }
.so-perc .so-perc-who { color: #e6e6dc; font-weight: 400; font-size: .92em; }
.so-perc .so-perc-bar { position: sticky; top: var(--so-perc-top, 0); z-index: 5; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
	background: #fff; border: 1px solid #d6d6cf; border-top: 0; border-radius: 0 0 10px 10px; padding: 10px 16px; margin: 0 0 16px; }
.so-perc--admin .so-perc-bar { top: 32px; }
.so-perc .so-perc-status { font-size: .88em; color: var(--pc-muted); background: #f0f0ea; border-radius: 999px; padding: 3px 10px; }
.so-perc .so-perc-status.is-dirty { background: #fff3c4; color: #5c4400; font-weight: 600; }
.so-perc button.so-perc-newyear { margin-left: auto; }

/* Publisering */
.so-perc .so-perc-pub { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between;
	border: 2px solid #dba617; background: #fff8e1; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.so-perc .so-perc-pub > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.so-perc .so-perc-pub b { font-size: 1.05em; color: #5c4400; }
.so-perc .so-perc-pub span { font-size: .9em; color: var(--pc-text); }
.so-perc .so-perc-pub.is-on { border-color: #1a7a3f; background: #e9f6ec; }
.so-perc .so-perc-pub.is-on b { color: #145a2e; }

/* Tabellen */
.so-perc .so-perc-tablecard { padding: 6px 10px 12px; overflow-x: auto; }
.so-perc table.so-perc-table { width: 100%; border-collapse: collapse; margin: 0; }
.so-perc .so-perc-table th { text-align: left; font-size: .8em; color: var(--pc-muted); padding: 8px 6px; border-bottom: 2px solid var(--pc-dark); background: none; }
.so-perc .so-perc-table th.so-perc-hc { text-align: center; width: 190px; }
.so-perc .so-perc-table td { padding: 8px 6px; border-bottom: 1px solid var(--pc-line); vertical-align: middle; background: none; }
.so-perc .so-perc-cat td { background: #fafaf5; font-weight: 800; font-size: .75em; text-transform: uppercase; letter-spacing: .06em; color: var(--pc-muted); padding-top: 12px; }
.so-perc .so-perc-name { cursor: pointer; }
.so-perc .so-perc-name b { display: block; font-weight: 600; }
.so-perc .so-perc-pen { display: none; color: #6b5000; font-weight: 400; }
.so-perc .so-perc-name small { display: block; color: #6b5000; font-size: .82em; line-height: 1.35; }
.so-perc .so-perc-cell { text-align: center; }
.so-perc .so-perc-chk { display: inline-flex; vertical-align: middle; cursor: pointer; margin: 0 4px 0 0; }
.so-perc .so-perc-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.so-perc .so-perc-chk span { width: 26px; height: 26px; border: 2px solid var(--pc-dark); border-radius: 6px; background: #fff; display: grid; place-items: center; }
.so-perc .so-perc-chk input:checked + span { background: var(--pc-dark); }
.so-perc .so-perc-chk input:checked + span::after { content: "✓"; color: var(--pc-yellow); font-weight: 800; font-size: 16px; line-height: 1; }
.so-perc .so-perc-chk input:focus-visible + span { outline: 3px solid #2271b1; outline-offset: 2px; }
.so-perc input.so-perc-qty { width: 54px; vertical-align: middle; font-size: 14px; padding: 4px 6px; margin: 0; border: 1px solid #8c8f94; border-radius: 6px; text-align: center; background: #fff; color: var(--pc-text); height: auto; }
.so-perc .so-perc-cell:not(.is-on) input.so-perc-qty { opacity: .55; }
.so-perc .so-perc-tag { display: block; font-size: 12px; line-height: 1.3; margin-top: 4px; border-radius: 6px; padding: 2px 6px; }
.so-perc .so-perc-tag.is-note { background: #f0f0ea; color: var(--pc-text); }
.so-perc .so-perc-tag.is-loan { background: #fff3c4; color: #5c4400; }
.so-perc .so-perc-more { text-align: right; width: 80px; }
.so-perc .so-perc-item.is-open .so-perc-row td { background: #fffbea; }
.so-perc .so-perc-detail td { background: #fffbea; border-bottom: 2px solid var(--pc-yellow); }
.so-perc .so-perc-dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.so-perc .so-perc-hallset { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; border: 1px solid #ecd98a; border-radius: 8px; padding: 6px 10px 10px; margin: 0; }
.so-perc .so-perc-hallset legend { font-weight: 700; padding: 0 4px; }
.so-perc .so-perc-dtools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.so-perc .so-perc-help { margin: 10px 4px 0; }

/* Tekst under lista i påmeldingen */
.so-perc .so-perc-f textarea { font-family: inherit; font-size: 16px; padding: 8px 10px; border: 2px solid #8c8f94; border-radius: 8px; background: #fff; color: var(--pc-text); width: 100%; margin: 0; resize: vertical; }
.so-perc .so-perc-f textarea:focus { outline: none; border-color: var(--pc-dark); box-shadow: 0 0 0 3px rgba(246, 196, 4, .55); }
.so-perc button.so-perc-link--dark, .so-perc button.so-perc-link--dark:hover, .so-perc button.so-perc-link--dark:focus { color: #6b5000; font-size: 14px; }
.so-perc .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Skjemafelt */
.so-perc .so-perc-f { display: flex; flex-direction: column; gap: 3px; font-size: 14px; margin: 0 0 8px; }
.so-perc .so-perc-f span { font-weight: 600; }
.so-perc .so-perc-f small { font-weight: 400; color: var(--pc-muted); }
.so-perc .so-perc-f input { font-family: inherit; font-size: 16px; padding: 8px 10px; border: 2px solid #8c8f94; border-radius: 8px; background: #fff; color: var(--pc-text); width: 100%; margin: 0; height: auto; }
.so-perc .so-perc-f input:focus { outline: none; border-color: var(--pc-dark); box-shadow: 0 0 0 3px rgba(246, 196, 4, .55); }
.so-perc .so-perc-login { max-width: 460px; margin: 20px auto; }
.so-perc .so-perc-msg.is-err { color: #b32d2e; font-weight: 600; min-height: 1.2em; }

/* Ønsker fra korpsene */
.so-perc .so-perc-wish { border-top: 1px solid var(--pc-line); padding: 8px 2px; }
.so-perc .so-perc-wish summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.so-perc .so-perc-haves { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.so-perc .so-perc-have { font-size: 12px; border-radius: 999px; padding: 2px 8px; background: #f0f0ea; color: var(--pc-muted); }
.so-perc .so-perc-have.is-yes { background: #e3f3e6; color: #1a5a2c; font-weight: 600; }
.so-perc .so-perc-have.is-miss { background: #fbe7e4; color: #8a1f11; font-weight: 600; }
.so-perc .so-perc-wish ul { margin: 6px 0 2px 1.2em; padding: 0; }

@media (max-width: 700px) {
	.so-perc .so-perc-table th.so-perc-hc { width: auto; font-size: .75em; }
	.so-perc input.so-perc-qty { width: 44px; }
	.so-perc .so-perc-dgrid, .so-perc .so-perc-hallset { grid-template-columns: 1fr; }
	.so-perc .so-perc-hallset { grid-column: auto; }
	.so-perc button.so-perc-newyear { margin-left: 0; }
	/* Kompakt verktøylinje som følger med ned: bare Lagre og status */
	.so-perc .so-perc-bar { padding: 8px 10px; gap: 6px; }
	.so-perc .so-perc-status { font-size: 12.5px; flex: 1 1 140px; }
	.so-perc button.so-perc-btn { font-size: 14px; padding: 7px 11px; }
	/* Smal skjerm: trykk på navnet for å åpne detaljene, «Mer»-kolonnen skjules */
	.so-perc .so-perc-more, .so-perc .so-perc-morehead { display: none; }
	.so-perc .so-perc-pen { display: inline; }
	.so-perc .so-perc-tablecard { padding: 4px 6px 10px; }
	.so-perc .so-perc-table td { padding: 8px 4px; }
}

/* ── Påmeldingsskjemaet: utstyret i korpsets sal (fanen «Informasjon») ── */
.so-perc-regbox { margin: 16px 0 0; }
.so-perc-regcard { background: #fff; border: 1px solid #d6d6cf; border-left: 6px solid #F6C404; border-radius: 10px; padding: 12px 16px; color: #1d2327; }
.so-perc-regcard .so-perc-regcard__h { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #1c1c14; }
.so-perc-regcard .so-utstyr { margin: 0; }
.so-perc-regcard .so-perc-regcard__hint { font-size: 13.5px; color: #50575e; margin: 8px 0 0; line-height: 1.45; }

/* ── Faner på slagverksiden ── */
.so-perc .so-perc-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 3px solid var(--pc-dark); margin: 0 0 16px; }
.so-perc button.so-perc-tab,
.so-perc button.so-perc-tab:hover,
.so-perc button.so-perc-tab:focus { border: 0; border-radius: 10px 10px 0 0; padding: 9px 16px; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; background: #f0f0ea; color: var(--pc-dark); }
.so-perc button.so-perc-tab:hover { background: #e6e5d8; }
.so-perc button.so-perc-tab.is-on { background: var(--pc-dark); color: var(--pc-yellow); }
.so-perc button.so-perc-tab:focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }

/* ── Ønsker i tabellen ── */
.so-perc button.so-perc-wb, .so-perc span.so-perc-wb {
	display: inline-block; vertical-align: middle; margin: 0 0 0 4px; border: 0; border-radius: 999px;
	padding: 2px 8px; font-size: 12px; font-weight: 700; line-height: 1.4; cursor: pointer; white-space: nowrap;
}
.so-perc .so-perc-wb.is-yes { background: #e3f3e6; color: #1a5a2c; }
.so-perc .so-perc-wb.is-miss { background: #fbe7e4; color: #8a1f11; }
.so-perc span.so-perc-wb { cursor: default; }
.so-perc .so-perc-ok { color: #1a5a2c; }
.so-perc .so-perc-no { color: #8a1f11; }
.so-perc .so-perc-cat.is-wish td { background: #fdf3f1; color: #8a1f11; }
.so-perc .so-perc-unmatched td { background: #fffdfc; }
.so-perc .so-perc-wlist { grid-column: 1 / -1; background: #fff; border: 1px solid #e2e2da; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.so-perc .so-perc-tag.is-src { background: #eef3fb; color: #1d3f6e; }
.so-perc .so-perc-tag.is-when { background: #fff0e0; color: #6b3a00; }

/* Hentested, tid */
.so-perc .so-perc-f select { font-family: inherit; font-size: 16px; padding: 7px 10px; border: 2px solid #8c8f94; border-radius: 8px; background: #fff; color: var(--pc-text); width: 100%; margin: 0; height: auto; }
.so-perc .so-perc-times { display: flex; align-items: center; gap: 6px; flex-direction: row; font-weight: 400; }
.so-perc .so-perc-times input { width: auto; flex: 1 1 0; min-width: 0; }
.so-perc .so-perc-hallset { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── Leveringsliste ── */
.so-perc .so-perc-dbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.so-perc .so-perc-seg { display: inline-flex; gap: 4px; }
.so-perc button.so-perc-btn.is-on { background: var(--pc-dark); color: var(--pc-yellow); }
.so-perc .so-perc-view { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.so-perc .so-perc-view select { font-size: 14px; padding: 5px 8px; border: 1px solid #8c8f94; border-radius: 6px; background: #fff; height: auto; margin: 0; }
.so-perc .so-perc-warn { background: #fff3c4; color: #5c4400; border-radius: 8px; padding: 8px 10px; font-weight: 600; }
.so-perc .so-perc-dgrp { margin: 0 0 18px; }
.so-perc .so-perc-dgh { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; border-bottom: 2px solid var(--pc-dark); padding: 2px 0 4px; margin: 0 0 2px; }
.so-perc .so-perc-dgh b { font-size: 1.05em; }
.so-perc .so-perc-dgh small { color: var(--pc-muted); }
.so-perc table.so-perc-dtab, .so-perc table.so-perc-ltab { width: 100%; border-collapse: collapse; margin: 0; }
.so-perc .so-perc-dtab th, .so-perc .so-perc-ltab th { text-align: left; font-size: .78em; color: var(--pc-muted); padding: 6px; background: none; border-bottom: 1px solid var(--pc-line); }
.so-perc .so-perc-dtab td, .so-perc .so-perc-ltab td { padding: 7px 6px; border-bottom: 1px solid var(--pc-line); vertical-align: middle; background: none; }
.so-perc .so-perc-dtab .c, .so-perc .so-perc-ltab .c { text-align: center; width: 84px; }
.so-perc .so-perc-dtab small { display: block; font-size: 12px; }
.so-perc .so-perc-dtab tr.so-perc-sub td { background: #f4f4ee; font-weight: 700; font-size: .85em; padding: 4px 6px; }
.so-perc .so-perc-time { color: #8a1f11; font-weight: 600; font-size: .9em; }
.so-perc .so-perc-chk--sm span { width: 24px; height: 24px; }
.so-perc .so-perc-chkat { display: block; font-size: 11px; color: var(--pc-muted); }
.so-perc .so-perc-ltab input[type=text] { width: 100%; font-size: 15px; padding: 6px 8px; border: 1px solid #8c8f94; border-radius: 6px; background: #fff; margin: 0; height: auto; }
.so-perc .so-perc-radio { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }

@media (max-width: 700px) {
	.so-perc .so-perc-hallset { grid-template-columns: 1fr; }
	.so-perc button.so-perc-tab { padding: 8px 10px; font-size: 14px; flex: 1 1 auto; }
	.so-perc .so-perc-dtab .c, .so-perc .so-perc-ltab .c { width: 56px; }
	.so-perc .so-perc-ltab thead { display: none; }
	.so-perc .so-perc-ltab tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; border-bottom: 1px solid var(--pc-line); padding: 6px 0; }
	.so-perc .so-perc-ltab td { border: 0; padding: 2px 0; width: auto !important; }
	.so-perc .so-perc-ltab td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

/* ── Kobling til valgene i påmeldingen ── */
.so-perc .so-perc-links { grid-column: 1 / -1; background: #fff; border: 1px solid #e2e2da; border-radius: 8px; padding: 8px 10px; }
.so-perc .so-perc-links-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.so-perc .so-perc-links p { margin: 4px 0 8px; }
.so-perc .so-perc-chipa, .so-perc .so-perc-chipm { font-size: 12px; border-radius: 999px; padding: 2px 8px; }
.so-perc .so-perc-chipa { background: #f0f0ea; color: var(--pc-muted); }
.so-perc .so-perc-chipm { background: #eef3fb; color: #1d3f6e; font-weight: 600; }
.so-perc .so-perc-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; }
.so-perc .so-perc-link-opt { display: flex; gap: 6px; align-items: baseline; font-size: 14px; padding: 3px 4px; border-radius: 6px; cursor: pointer; }
.so-perc .so-perc-link-opt.is-on { background: #e9f6ec; }
.so-perc .so-perc-link-opt input { margin: 0; }

/* ── Transport og sletting ── */
.so-perc .so-perc-tag.is-tr { background: #f1ecfb; color: #45247a; }
.so-perc .so-perc-by { font-size: 11.5px; line-height: 1.2; color: #45247a; background: #f1ecfb; border-radius: 6px; padding: 2px 6px; display: inline-block; }
.so-perc .so-perc-more { white-space: nowrap; width: 120px; }
.so-perc button.so-perc-delrow { margin-left: 4px; }
@media (max-width: 700px) {
	/* Smal skjerm: «Mer»-kolonnen skjules, slett ligger under «✎» (trykk på navnet) */
	.so-perc button.so-perc-delrow { display: none; }
}

/* ── Leveringsliste: faste kolonner og tydelige avvik ── */
.so-perc table.so-perc-dtab { table-layout: fixed; border: 0; }
.so-perc table.so-perc-dtab col.so-perc-cplace { width: 30%; }
.so-perc table.so-perc-dtab col.so-perc-ccheck { width: 84px; }
.so-perc table.so-perc-dtab th, .so-perc table.so-perc-dtab td { border: 0; border-bottom: 1px solid var(--pc-line); word-wrap: break-word; }
.so-perc table.so-perc-dtab .c { width: auto; }
.so-perc .so-perc-dtab tr.is-dev td { background: #f6f1fd; }
.so-perc .so-perc-dtab tr.is-dev td:first-child { box-shadow: inset 5px 0 0 #6a3fb5; padding-left: 12px; }
.so-perc .so-perc-dev { display: inline-block; margin: 3px 0 0; background: #6a3fb5; color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 10px; padding: 2px 10px; }
.so-perc .so-perc-dtab td > .so-perc-dev { display: block; width: fit-content; }
.so-perc .so-perc-devnote { display: block; width: fit-content; margin: 4px 0 0; color: #45247a; background: #fff; border: 2px solid #6a3fb5; font-size: 12.5px; font-weight: 700; border-radius: 10px; padding: 1px 9px; }
.so-perc .so-perc-dtab tr.is-dev-ret td { background: #faf7fe; }
.so-perc .so-perc-dtab tr.is-dev-ret td:first-child { box-shadow: inset 5px 0 0 #b9a3e0; }
.so-perc .so-perc-na { color: var(--pc-muted); font-size: 18px; }
@media (max-width: 700px) {
	.so-perc table.so-perc-dtab col.so-perc-cplace { width: 28%; }
	.so-perc table.so-perc-dtab col.so-perc-ccheck { width: 58px; }
}

/* ── Leveringsliste på mobil: hentested/scene under utstyrsnavnet, avkrysningene til høyre ── */
@media (max-width: 600px) {
	.so-perc table.so-perc-dtab, .so-perc table.so-perc-dtab tbody, .so-perc table.so-perc-dtab thead { display: block; width: 100%; }
	.so-perc table.so-perc-dtab colgroup { display: none; }
	.so-perc table.so-perc-dtab tr { display: grid; grid-template-columns: minmax(0, 1fr) 56px 56px; align-items: center; border-bottom: 1px solid var(--pc-line); }
	.so-perc table.so-perc-dtab th, .so-perc table.so-perc-dtab td { border: 0; padding: 6px 4px; }
	.so-perc table.so-perc-dtab tr > :nth-child(1) { grid-column: 1; grid-row: 1; }
	.so-perc table.so-perc-dtab tr > :nth-child(2) { grid-column: 1; grid-row: 2; padding-top: 0; font-size: 13.5px; color: var(--pc-muted); }
	.so-perc table.so-perc-dtab td:nth-child(2)::before { content: "→ "; }
	.so-perc table.so-perc-dtab thead tr > :nth-child(2) { display: none; }
	.so-perc table.so-perc-dtab tr > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
	.so-perc table.so-perc-dtab tr > :nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
	.so-perc table.so-perc-dtab tr.so-perc-sub { display: block; }
	.so-perc table.so-perc-dtab tr.so-perc-sub td { display: block; }
	.so-perc .so-perc-dtab tr.is-dev td { background: transparent; }
	.so-perc .so-perc-dtab tr.is-dev { background: #f6f1fd; box-shadow: inset 5px 0 0 #6a3fb5; }
	.so-perc .so-perc-dtab tr.is-dev-ret { background: #faf7fe; box-shadow: inset 5px 0 0 #b9a3e0; }
	.so-perc .so-perc-dtab tr.is-dev td:first-child { box-shadow: none; padding-left: 12px; }
	.so-perc .so-perc-dtab tr.is-dev td:nth-child(2) { padding-left: 12px; }
}

/* ── Fanen «Sceneoppsett» (2026-10-29) ── */
.so-perc .so-perc-sc { overflow-x: auto; }
.so-perc input.so-perc-scq { font-family: inherit; font-size: 14px; padding: 5px 9px; border: 1px solid #8c8f94; border-radius: 6px; background: #fff; color: var(--pc-text); width: 200px; max-width: 100%; margin: 0; height: auto; }
.so-perc .so-perc-scprog { margin-left: auto; font-size: 14px; color: var(--pc-muted); }
.so-perc .so-perc-scsel { margin-top: -4px; }
.so-perc table.so-perc-sctab { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.so-perc .so-perc-sctab th { text-align: left; font-size: .8em; color: var(--pc-muted); padding: 6px; border-bottom: 2px solid var(--pc-dark); background: none; }
.so-perc .so-perc-sctab td { padding: 7px 6px; border-bottom: 1px solid var(--pc-line); vertical-align: middle; background: none; }
.so-perc .so-perc-sctab .c { width: 34px; text-align: center; }
.so-perc .so-perc-sctab input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--pc-dark); }
.so-perc .so-perc-sctab td small { display: block; color: var(--pc-muted); font-size: 12.5px; }
.so-perc .so-perc-sctab tr.so-perc-schall td { background: #fffbea; font-weight: 800; border-bottom: 2px solid var(--pc-yellow); padding-top: 10px; }
.so-perc .so-perc-sctab tr.is-open td { background: #fafaf4; }
.so-perc .so-perc-scok { color: #1a5a2c; font-weight: 700; white-space: nowrap; }
.so-perc .so-perc-scmiss { color: #8a1f11; font-weight: 700; white-space: nowrap; }
.so-perc .so-perc-scact { white-space: nowrap; text-align: right; }
.so-perc .so-perc-scact button.so-perc-btn { margin-left: 4px; }
.so-perc .so-perc-scprev td { background: #fafaf4; border-bottom: 2px solid var(--pc-yellow); }
.so-perc .so-perc-scgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 14px; padding: 4px 0 6px; }
.so-perc button.so-perc-scimgbtn, .so-perc button.so-perc-scimgbtn:hover, .so-perc button.so-perc-scimgbtn:focus { position: relative; display: block; width: 100%; padding: 0; border: 1px solid #d6d6cf; border-radius: 8px; background: #fff; cursor: zoom-in; overflow: hidden; }
.so-perc .so-perc-scimgbtn img { display: block; width: 100%; height: auto; }
.so-perc .so-perc-scimgbtn span { position: absolute; right: 8px; bottom: 8px; background: rgba(28,28,20,.85); color: var(--pc-yellow); font-size: 13px; font-weight: 700; border-radius: 6px; padding: 3px 8px; }
.so-perc .so-perc-scinfo { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 12px; font-size: 14px; align-self: start; }
.so-perc .so-perc-scnote, .so-perc-fs .so-perc-scnote { margin: 10px 0 0; font-size: 13.5px; }
@media (max-width: 760px) {
	.so-perc .so-perc-scgrid { grid-template-columns: 1fr; }
	.so-perc .so-perc-scprog { margin-left: 0; width: 100%; }
	.so-perc .so-perc-sctab thead { display: none; }
	.so-perc .so-perc-sctab tr.so-perc-scrow { display: grid; grid-template-columns: 34px 52px minmax(0, 1fr); gap: 2px 6px; border-bottom: 1px solid var(--pc-line); padding: 6px 0; }
	.so-perc .so-perc-sctab tr.so-perc-scrow td { border: 0; padding: 2px 0; }
	.so-perc .so-perc-sctab tr.so-perc-scrow td:nth-child(n+4) { grid-column: 3; }
	.so-perc .so-perc-sctab tr.so-perc-scrow td.so-perc-scact { text-align: left; white-space: normal; }
	.so-perc .so-perc-scact button.so-perc-btn { margin: 2px 4px 2px 0; }
	.so-perc .so-perc-sctab tr.so-perc-schall, .so-perc .so-perc-sctab tr.so-perc-scprev { display: block; }
	.so-perc .so-perc-sctab tr.so-perc-schall td, .so-perc .so-perc-sctab tr.so-perc-scprev td { display: block; }
}

/* Bekreftelse før redigering */
.so-perc-modal { position: fixed; inset: 0; z-index: 100200; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.so-perc-modal__box { background: #fff; color: #1d2327; border-radius: 12px; max-width: 460px; width: 100%; padding: 18px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.3); font-size: 16px; line-height: 1.5; }
.so-perc-modal__box h3 { margin: 0 0 8px; font-size: 1.2em; color: #1c1c14; }
.so-perc-modal__box p { margin: 0 0 10px; }
.so-perc-modal__box .so-perc-muted { color: #50575e; font-size: .9em; }
.so-perc-modal__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.so-perc-modal button.so-perc-btn, .so-perc-modal button.so-perc-btn:hover, .so-perc-modal button.so-perc-btn:focus { display: inline-flex; align-items: center; cursor: pointer; border: 2px solid #1c1c14; border-radius: 8px; background: #fff; color: #1c1c14; font: 700 15px/1.2 inherit; font-family: inherit; padding: 8px 14px; text-transform: none; letter-spacing: normal; box-shadow: none; margin: 0; }
.so-perc-modal button.so-perc-btn.is-primary { background: #F6C404; }
.so-perc-modal button.so-perc-btn:focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }

/* Fullskjerm */
html.so-perc-fs-open, html.so-perc-fs-open body { overflow: hidden; }
.so-perc-fs { position: fixed; inset: 0; z-index: 100300; background: #fffef6; display: flex; flex-direction: column; color: #1d2327; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; }
.so-perc-fs__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #1c1c14; color: #fff; flex-wrap: wrap; }
.so-perc-fs__bar button, .so-perc-fs__bar button:hover, .so-perc-fs__bar button:focus { -webkit-appearance: none; appearance: none; min-width: 40px; height: 40px; border: 1px solid #5a5a4c; border-radius: 8px; background: #2c2c22; color: #F6C404; font: 700 18px/1 -apple-system, 'Segoe UI', Roboto, sans-serif; padding: 0 12px; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; margin: 0; }
.so-perc-fs__bar button[data-fs="fit"], .so-perc-fs__bar button[data-fs="info"] { font-size: 14px; }
.so-perc-fs__bar button.is-on { background: #F6C404; color: #1c1c14; }
.so-perc-fs__bar button:disabled { opacity: .35; cursor: default; }
.so-perc-fs__bar button:focus-visible { outline: 3px solid #F6C404; outline-offset: 1px; }
.so-perc-fs__title { display: flex; flex-direction: column; min-width: 0; padding: 0 6px; line-height: 1.2; }
.so-perc-fs__title b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-perc-fs__title small { color: #d8d8cc; font-size: 13px; }
.so-perc-fs__sp { flex: 1; }
.so-perc-fs__stage { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.so-perc-fs__stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; user-select: none; -webkit-user-drag: none; }
.so-perc-fs__info { max-height: 38vh; overflow: auto; background: #fff; border-top: 2px solid #F6C404; padding: 10px 14px; font-size: 14px; }
@media (max-width: 600px) {
	.so-perc-fs__bar { gap: 4px; padding: 6px; }
	.so-perc-fs__title { order: -1; width: 100%; padding: 0 2px 4px; }
	.so-perc-fs__bar button { min-width: 38px; height: 38px; padding: 0 9px; }
}