/* Nulstiller iPhones/Safaris indbyggede knap-udseende globalt, så vores egen
   styling (runde hjørner, størrelse, padding) altid vinder, uanset knap-type. */
.cta-app button, .cta-box button {
	-webkit-appearance: none; appearance: none; box-sizing: border-box;
}

.cta-box { max-width: 420px; margin: 2em auto; padding: 2em; border: 1px solid #e2e2e2; border-radius: 12px; font-family: inherit; }
.cta-box h2 { margin-top: 0; }
.cta-box label { display: block; margin-bottom: 1em; font-size: 0.9em; }
.cta-box input { display: block; width: 100%; padding: 0.6em; margin-top: 0.3em; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 16px; }
.cta-box button, .cta-inline-form button { background: #2563eb; color: #fff; border: none; padding: 0.7em 1.2em; border-radius: 6px; cursor: pointer; font-size: 1em; }
.cta-box button:hover, .cta-inline-form button:hover { background: #1d4ed8; }
.cta-msg { margin-bottom: 1em; font-size: 0.9em; }
.cta-msg.error { color: #b91c1c; }
.cta-msg.success { color: #15803d; }

.cta-app { max-width: 720px; margin: 0 auto; padding: 0 0.5em; box-sizing: border-box; font-family: inherit; }
.cta-topbar { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 1.5em; }
.cta-logout { color: #b91c1c; text-decoration: none; }

.cta-section { margin-bottom: 2.5em; }
.cta-section h2 { border-bottom: 2px solid #eee; padding-bottom: 0.4em; }
.cta-subheading { font-size: 1.05em; font-weight: 600; color: #444; border-bottom: 2px solid #eee; padding-bottom: 0.4em; margin-bottom: 0.8em; }

.cta-inline-form { display: flex; flex-wrap: wrap; gap: 0.5em; margin-bottom: 1em; }
.cta-inline-form[hidden] { display: none; }
.cta-inline-form input, .cta-inline-form select { padding: 0.6em; border: none !important; border-radius: 6px; flex: 1; min-width: 140px; box-sizing: border-box; font-size: 16px; background: #f8fafc; }
.cta-time-input { flex: 0 0 auto !important; min-width: 110px !important; }

#cta-shopping-form input[name="name"] { flex: 1 1 45%; min-width: 0; }
#cta-shopping-form #cta-shopping-category-select { flex: 0 1 25%; min-width: 0; }
#cta-shopping-form #cta-shopping-new-category { flex: 1 1 100%; min-width: 0; }
#cta-shopping-form button { flex: 0 0 auto; white-space: nowrap; }

#cta-trip-form { flex-wrap: nowrap; }
#cta-trip-form input[name="title"] { flex: 1 1 68%; min-width: 0; }
#cta-trip-form button[type="submit"] { flex: 0 0 auto; white-space: nowrap; }

.cta-trip-packing-form input[name="name"] { flex: 1 1 45%; min-width: 0; }
.cta-trip-packing-form .cta-trip-packing-category-select { flex: 0 1 25%; min-width: 0; }
.cta-trip-packing-form .cta-trip-packing-new-category { flex: 1 1 100%; min-width: 0; }
.cta-trip-packing-form button { flex: 0 0 auto; white-space: nowrap; }

.cta-list { list-style: none; margin: 0; padding: 0; }
.cta-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8em; padding: 0.7em 0.4em; border-bottom: 1px solid #f0f0f0; transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.cta-list li .cta-item-name, .cta-list li input, .cta-list li textarea { -webkit-touch-callout: default; -webkit-user-select: text; user-select: text; }
.cta-list li.cta-item-checked-out { opacity: 0; transform: scale(0.97); }
.cta-trip-card { background: #eff6ff; border: 1px solid #dbeafe; border-radius: 12px; padding: 0.9em 1.1em !important; margin-bottom: 0.6em; border-bottom: 1px solid #dbeafe !important; }
.cta-list li .cta-item-name { flex: 1; }
.cta-list li .cta-item-meta { font-size: 0.85em; color: #888; }
.cta-list li a.cta-item-link { text-decoration: none; color: #2563eb; font-weight: 600; }
.cta-list .cta-delete { background: none; border: none; cursor: pointer; font-size: 1em; opacity: 0.75; }
.cta-list .cta-delete:hover { opacity: 1; }

.cta-trip-card { display: block !important; }
.cta-trip-card[hidden] { display: none !important; }
.cta-trip-card-header { display: flex; align-items: center; gap: 0.6em; flex-wrap: wrap; }
.cta-trip-toggle {
	background: #be123c !important; color: #fff !important; border: none !important;
	padding: 0.5em 0.8em !important; border-radius: 8px !important; font-weight: 700 !important;
	font-size: 1em !important; cursor: pointer !important; flex: 1 1 auto !important; min-width: 0 !important;
	display: flex !important; align-items: center !important; gap: 0.7em !important; text-align: left !important;
}
.cta-trip-toggle:hover { background: #9f1239 !important; }
.cta-trip-icon-badge {
	flex: 0 0 auto !important; width: 46px !important; height: 46px !important; border-radius: 50% !important;
	background: #fff !important; display: flex !important; align-items: center !important; justify-content: center !important;
	font-size: 1.5em !important; line-height: 1 !important; box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}
.cta-trip-title-text {
	flex: 1 !important; min-width: 0 !important; text-align: left !important;
	white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
}
.cta-trip-chevron {
	flex: 0 0 auto !important; margin-left: auto !important; display: inline-block !important;
	font-size: 1.3em !important; transition: transform 0.2s ease;
}
.cta-trip-toggle.is-open .cta-trip-chevron { transform: rotate(180deg); }
.cta-trip-expand { margin-top: 0.8em; padding-top: 0.8em; border-top: 1px solid #dbeafe; }
.cta-trip-expand[hidden] { display: none; }

/* Pakket vare (Pakkeliste): tydeligt overstreget navn + falmet resten af
   linjen, så det klart fremgår at varen er pakket, uden at forsvinde helt. */
.cta-item-packed .cta-item-name { text-decoration: line-through; opacity: 0.6; }
.cta-item-packed .cta-item-icons, .cta-item-packed .cta-item-meta-row { opacity: 0.5; }

.cta-dot {
	width: 26px; height: 26px; min-width: 26px; border-radius: 50%;
	border: 2px solid #333; cursor: pointer; background-color: #fff;
	display: flex; align-items: center; justify-content: center;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cta-dot[data-status="green"] { background-color: #fff; border-color: #22c55e; }
.cta-dot[data-status="green"]::after {
	content: '✓'; color: #22c55e; font-size: 16px; font-weight: 700; line-height: 1;
}

.cta-tab-delete { border: none !important; background: #f3f4f6 !important; color: #999 !important; border-radius: 50% !important; width: 22px; height: 22px; min-width: 22px; padding: 0 !important; font-size: 1em !important; line-height: 1; cursor: pointer; }
.cta-tab-delete:hover { background: #fee2e2 !important; color: #b91c1c !important; }
.cta-list li[hidden] { display: none; }
.cta-list li .cta-item-category { font-size: 0.7em; letter-spacing: 0.03em; text-transform: uppercase; color: #888; background: none; padding: 0; border-left: 2px solid #ddd; padding-left: 0.5em; }

#cta-todo-form input[name="title"] { flex: 1 1 45%; min-width: 0; }
#cta-todo-form #cta-todo-category-select { flex: 0 1 25%; min-width: 0; }
#cta-todo-form #cta-todo-new-category { flex: 1 1 100%; min-width: 0; }
#cta-todo-form button { flex: 0 0 auto; white-space: nowrap; }


.cta-main-tabs { display: flex; flex-wrap: nowrap; gap: 0.5em; margin: 1.5em 0 1.5em; border-bottom: 2px solid #eee; }
.cta-main-tab { background: none; border: none; padding: 0.7em 1.2em; font-size: 1em; font-weight: 600; color: #888; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.cta-main-tab.active { color: #fff; background: #2563eb; border-bottom-color: #2563eb; border-radius: 8px 8px 0 0; }
.cta-panel[hidden] { display: none; }

.cta-star { background: none !important; border: none !important; box-shadow: none !important; outline: none; cursor: pointer; font-size: 1.1em; padding: 0 0.1em; color: #ccc; }
.cta-star.active { color: #eab308; }


.cta-share-bar { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.8em; flex-wrap: wrap; }
.cta-list-owner-select { padding: 0.5em; border-radius: 6px; border: 1px solid #ccc; }
.cta-share-btn { background: #f3f4f6; border: 1px solid #ddd; color: #444; padding: 0.5em 0.9em; border-radius: 999px; cursor: pointer; font-size: 0.9em; }
.cta-share-btn.is-shared { background: #dcfce7; border-color: #86efac; color: #166534; }
.cta-share-panel { background: #f9fafb; border: 1px solid #eee; border-radius: 10px; padding: 1em; margin-bottom: 1em; }
.cta-share-user-list { display: flex; flex-direction: column; gap: 0.5em; margin-top: 0.5em; }
.cta-share-row { display: flex; align-items: center; gap: 0.5em; cursor: pointer; }

/* Datovælger */
.cta-datepicker { position: relative; min-width: 150px; }
.cta-datepicker .cta-date-display { width: 100%; padding: 0.6em; border: 1px solid #ccc; border-radius: 6px; cursor: pointer; background: #fff; }
.cta-datepicker-popup {
	position: absolute; z-index: 50; top: calc(100% + 4px); left: 0;
	background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.12);
	padding: 0.8em; width: 280px;
}
.cta-dp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5em; font-weight: 600; text-transform: capitalize; }
.cta-dp-nav { background: none; border: none; cursor: pointer; font-size: 1.1em; padding: 0.2em 0.5em; }
.cta-dp-table { width: 100%; border-collapse: collapse; font-size: 0.85em; }
.cta-dp-table th { color: #999; font-weight: 500; padding: 0.2em; }
.cta-dp-week { color: #bbb; font-size: 0.8em; text-align: center; }
.cta-dp-day { text-align: center; padding: 0.4em 0.2em; border-radius: 6px; cursor: pointer; }
.cta-dp-day:hover { background: #f3f4f6; }
.cta-dp-muted { color: #ccc; }
.cta-dp-today { border: 1px solid #2563eb; }
.cta-dp-selected { background: #2563eb; color: #fff; }
.cta-dp-footer { margin-top: 0.5em; text-align: right; }
.cta-dp-clear { background: none; border: none; color: #b91c1c; cursor: pointer; font-size: 0.85em; }

.cta-today-box { background: #f5f5f5; border: 1px solid #333; border-radius: 10px; padding: 1em; margin-bottom: 1.2em; }
.cta-today-box-global { background: #dcfce7; border-color: #86efac; }
#cta-today-todo-box { background: #dbeafe; border-color: #93c5fd; }

.cta-visually-hidden-submit {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.cta-added-confirmation {
	display: block; flex-basis: 100%; text-align: right; color: #16a34a; font-weight: 700; font-size: 0.85em; margin-top: 0.4em;
	opacity: 0; transition: opacity 0.3s ease;
}
.cta-added-confirmation.cta-visible { opacity: 1; }

.cta-list li.cta-pressing { background: #eff6ff; transition: background 0.25s ease 0.05s; }

/* Move Mode - erstatter klassisk drag-and-drop */
.cta-move-scope { position: relative; }

.cta-move-selected {
	position: relative; z-index: 20; background: #fff; border-radius: 10px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08);
	transform: scale(1.03); transition: transform 0.25s cubic-bezier(.22,.8,.25,1), box-shadow 0.25s ease;
}

.cta-move-overlay {
	position: absolute; inset: 0; z-index: 10; border-radius: 10px;
	background: rgba(15, 23, 42, 0.32); opacity: 0; pointer-events: none;
	transition: opacity 0.25s ease;
}
.cta-move-overlay.cta-visible { opacity: 1; pointer-events: auto; }

/* Indsætningszoner: store trykflader, meget diskret visuelt udtryk indtil man
   nærmer sig/holder på dem */
.cta-move-zone {
	position: relative; z-index: 21; list-style: none; height: 16px; margin: 0; padding: 0;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	opacity: 0; transition: opacity 0.2s ease;
}
.cta-move-zone.cta-visible { opacity: 1; }
.cta-move-zone::before { content: ''; position: absolute; top: -12px; bottom: -12px; left: 0; right: 0; }
.cta-move-zone-line {
	height: 3px; width: 40%; max-width: 220px; background: #2563eb; border-radius: 999px;
	opacity: 0.55; transition: opacity 0.15s ease, width 0.15s ease;
}
.cta-move-zone:hover .cta-move-zone-line, .cta-move-zone:active .cta-move-zone-line {
	opacity: 1; width: 90%;
}

.cta-just-added { animation: cta-highlight-pulse 1.6s ease; border-radius: 8px; }
@keyframes cta-highlight-pulse {
	0% { background: #fef08a; }
	70% { background: #fef08a; }
	100% { background: transparent; }
}

.cta-today-box h3 { margin: 0 0 0.6em; font-size: 0.95em; letter-spacing: 0.05em; color: #dc2626; text-transform: uppercase; }
.cta-today-empty { color: #888; font-style: italic; margin: 0; font-size: 0.9em; }
.cta-today-box .cta-list li,
#cta-shopping-list li,
#cta-todo-list li,
#cta-today-todo-list li,
.cta-trip-packing-groups li { padding: 0.3em 0.4em; gap: 0.6em; }

.cta-todo-section { margin-bottom: 0.8em; }
.cta-todo-section + .cta-todo-section { border-top: 1px solid #ddd; padding-top: 0.8em; }
.cta-todo-section-heading {
	display: flex; align-items: center; justify-content: space-between; gap: 0.5em;
	font-size: 1.15em; font-weight: 700; text-transform: uppercase; color: #222;
	margin: 0 0 0.5em; padding-bottom: 0.4em; border-bottom: 4px solid #222;
}
.cta-scroll-top-btn {
	background: none !important; border: none !important; box-shadow: none !important; outline: none;
	-webkit-appearance: none; appearance: none; cursor: pointer; font-size: 1.1em; line-height: 1;
	color: #666; opacity: 0.7; padding: 0.1em 0.3em; flex: 0 0 auto;
}
.cta-scroll-top-btn:hover { opacity: 1; color: #2563eb; }

/* Indkøbslistens farvede kategori-"knapper" - kun så bred som teksten kræver */
.cta-category-pill {
	display: inline-block; padding: 0.35em 0.9em; border-radius: 999px; font-size: 0.75em;
	font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}
/* Bitte lille udgave - bruges på selve varelinjerne. Selvstændig (ikke kombineret
   med .cta-category-pill), og nulstiller iPhones indbyggede knap-udseende, som
   ellers kan overtrumfe vores egen padding/border-radius. */
.cta-category-pill-small {
	display: inline-block; -webkit-appearance: none; appearance: none; box-sizing: border-box;
	padding: 0.1em 0.55em !important; border-radius: 999px !important; font-size: 0.62em !important; line-height: 1.6 !important;
	font-weight: 700 !important; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
}

/* Kategori-mærkatet fylder for meget på selve pakke-linjerne (På tur) - skjult
   for nu for at give varenavnet mere plads. Koden/funktionen (tryk for at
   flytte kategori) er uberørt og virker stadig - fjern blot denne regel, hvis
   mærkatet skal vises igen på et tidspunkt. */
.cta-list li[data-type="packing"] .cta-category-pill-small { display: none !important; }

/* Mindre I DAG-boks pr. kategori på indkøbslisten - vises ud over det globale
   I DAG-felt øverst (samme varer kan altså ses begge steder) */
.cta-today-box-mini { padding: 0.6em 0.8em; margin: 0.6em 0; }
.cta-today-mini-heading { margin: 0 0 0.3em; font-size: 0.8em; letter-spacing: 0.05em; color: #dc2626; text-transform: uppercase; }

.cta-item-name-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: 0.35em; }
.cta-item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Ikon-klynge (kategori, dato, stjerne, note, blyant, pile) - holdes tæt sammen
   for sig selv, så varenavnet får mest muligt plads og ikke knækker til 2 linjer */
.cta-item-icons { display: flex; align-items: center; gap: 0.15em; flex: 0 0 auto; }
.cta-item-name { cursor: text; }
.cta-item-name-edit { border: 1px solid #2563eb; border-radius: 4px; padding: 0.1em 0.4em; font-size: 16px; font-family: inherit; width: 100%; box-sizing: border-box; }
.cta-note-toggle {
	background: none !important; border: 2px solid #dc2626 !important; box-shadow: none !important; outline: none;
	cursor: pointer; font-size: 1.05em; padding: 0.05em 0.25em; opacity: 0.85; border-radius: 50%;
}
.cta-note-toggle:hover { opacity: 1; }
.cta-note-toggle.is-open { background: #dc2626 !important; opacity: 1; }

/* Pakkelistens note (boksede editor, uberørt af ToDo's meta-linjer nedenfor) */
.cta-item-note {
	flex-basis: 100%; order: 90; font-size: 0.95em; color: #444; font-weight: 700; font-style: italic;
	margin-top: 0.3em; display: block; box-sizing: border-box; cursor: text; word-break: break-word;
}
.cta-item-note[hidden] { display: none; }
.cta-item-note-edit {
	font-size: 16px; font-family: inherit; font-weight: 400; font-style: normal; color: #222;
	width: 100%; box-sizing: border-box; padding: 0.4em; border: 1px solid #2563eb; border-radius: 6px; resize: vertical;
}

/* Meta-rækken (dato/note) under ToDo-teksten - indrykket til at holde venstre
   kant med selve opgavenavnet (dot-bredde 26px + li's flex-gap 0.8em). Dato og
   note er ren tekst helt uden ramme/kant - flyder på samme linje, når der er
   plads (wrapper blødt til egen linje ellers, aldrig afskåret). Minimal
   linjeafstand til opgaveteksten ovenfor (samme som linjeafstanden i selve
   noteteksten, ingen ekstra margin), ingen streger imellem - de hører jo til
   samme opgave. Findes kun i DOM'en når der reelt er en værdi (eller lige er
   indsat fra swipe-panelet) - fylder 0px ellers. */
.cta-item-meta-row {
	flex-basis: 100%; order: 90; display: flex; flex-wrap: wrap; align-items: baseline;
	column-gap: 1em; row-gap: 0.1em; margin-left: calc(26px + 0.8em); margin-top: 0; box-sizing: border-box;
}
.cta-item-meta-field { display: inline-flex; align-items: center; gap: 0.2em; min-width: 0; }
.cta-meta-icon { flex: 0 0 auto; font-size: 0.9em; opacity: 0.85; }
.cta-item-meta-note .cta-item-note {
	flex: 1; min-width: 0; font-size: 0.9em; font-weight: 400; font-style: normal;
	color: #444; cursor: text; word-break: break-word;
}
/* Datofeltet: det ægte <input type="date"> er helt usynligt (opacity 0) og
   ligger ovenpå den viste dato-tekst, i samme størrelse - så et tryk rammer
   det rigtige felt og åbner telefonens native datovælger, uden at iOS'
   indbyggede ramme/boks om feltet nogensinde vises. */
.cta-meta-date-wrap { position: relative; display: inline-block; }
.cta-meta-date-display { font-size: 0.9em; color: #444; cursor: pointer; white-space: nowrap; }
.cta-meta-date-input {
	position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: none; background: none;
	padding: 0; margin: 0; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.cta-meta-clear {
	background: none !important; border: none !important; box-shadow: none !important; outline: none;
	cursor: pointer; font-size: 0.75em; opacity: 0.4; padding: 0 0.2em; flex: 0 0 auto;
}
.cta-meta-clear:hover { opacity: 1; }

.cta-category-delete-btn {
	background: none !important; border: none !important; box-shadow: none !important; outline: none;
	cursor: pointer; font-size: 1em; padding: 0 0.3em; opacity: 0.8; flex: 0 0 auto;
}
.cta-category-delete-btn:hover { opacity: 1; }

.cta-longpress-active { opacity: 0.55; transition: opacity 0.35s ease; }

/* Swipe til venstre på en ToDo-linje (kun ToDo) - åbner handlingspanelet
   (Dato/Note/Slet). Det findes KUN i DOM'en mens linjen er åben (bygges/
   fjernes dynamisk i app.js), så det aldrig optager plads i normal-tilstand.
   cta-todo-toolbar-pop giver det en blød fade/glide-animation ved åbning. */
@keyframes cta-todo-toolbar-pop {
	from { opacity: 0; transform: translateY(-4px) scale(0.92); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
.cta-todo-toolbar {
	order: 1; display: inline-flex; align-items: center; gap: 0.4em; margin-left: 0.35em; flex-wrap: wrap;
	animation: cta-todo-toolbar-pop 0.2s ease;
}
.cta-todo-toolbar button {
	display: inline-flex; align-items: center; gap: 0.3em; padding: 0.3em 0.7em; white-space: nowrap;
	border-radius: 999px; font-size: 0.78em; font-weight: 700; border: 1px solid #cbd5e1;
	background: #f8fafc; color: #334155; cursor: pointer; font-family: inherit; flex: 0 0 auto;
}
.cta-todo-toolbar button:hover { background: #eef2f7; }
.cta-todo-toolbar .cta-panel-delete { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.cta-trip-swipe-panel { margin-top: 0.6em; }
.cta-todo-revealed { position: relative; z-index: 5; background: #fff; border-radius: 8px; }
.cta-todo-dimmed > li:not(.cta-todo-revealed) { opacity: 0.45; transition: opacity 0.25s ease; }

/* Privat-ikon (kun ToDo, kategorierne Lars/Randi) */
.cta-private-icon {
	background: none !important; border: none !important; box-shadow: none !important; outline: none;
	cursor: pointer; font-size: 0.95em; padding: 0 0.15em; opacity: 0.8;
}
.cta-private-icon:hover { opacity: 1; }

.cta-template-picker { background: #eff6ff; border: 1px solid #dbeafe; border-radius: 10px; padding: 1em; margin-bottom: 1em; }
.cta-template-picker p { margin: 0 0 0.6em; font-weight: 600; }
.cta-template-picker-buttons { display: flex; flex-wrap: wrap; gap: 0.5em; }

.cta-icon-picker { background: #eff6ff; border: 1px solid #dbeafe; border-radius: 10px; padding: 1em; margin-bottom: 1em; }
.cta-icon-picker p { margin: 0 0 0.6em; font-weight: 600; }
.cta-icon-picker-grid { display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: 0.7em; }
.cta-icon-picker-btn {
	font-size: 1.3em; padding: 0.25em 0.4em; border-radius: 8px; border: 1px solid #dbeafe;
	background: #fff; cursor: pointer;
}
.cta-icon-picker-btn:hover { background: #dbeafe; }
.cta-icon-picker-skip { background: none; border: none; color: #64748b; text-decoration: underline; cursor: pointer; font-size: 0.9em; padding: 0; }

/* Rejse-galleriet: tryk-direkte-kort til at oprette en ny pakkeliste, i stedet
   for at skulle skrive et navn først. */
.cta-trip-gallery-grid { display: flex !important; flex-wrap: wrap !important; gap: 0.8em; margin-bottom: 1.2em; }
.cta-trip-gallery-item { position: relative; flex: 0 0 calc(50% - 0.4em) !important; box-sizing: border-box !important; }
.cta-trip-gallery-card {
	display: flex !important; flex-direction: column !important; align-items: center !important;
	justify-content: center !important; gap: 0.35em !important;
	width: 100% !important; box-sizing: border-box !important; padding: 0.8em 0.4em !important;
	border: 1px solid #dbeafe !important; border-radius: 12px !important;
	background: #eff6ff !important; cursor: pointer; font-family: inherit; text-align: center !important;
}
.cta-trip-gallery-card:hover { background: #dbeafe !important; }
.cta-trip-gallery-icon {
	width: 46px !important; height: 46px !important; border-radius: 50% !important; background: #fff !important;
	display: flex !important; align-items: center !important; justify-content: center !important; font-size: 1.5em !important;
	box-shadow: 0 2px 5px rgba(0,0,0,0.15); margin: 0 auto;
}
.cta-trip-gallery-label { font-size: 0.82em; font-weight: 600; color: #1e3a5f; text-align: center !important; word-break: break-word; width: 100%; }
.cta-trip-gallery-new { border: none !important; background: #fff !important; }
.cta-trip-gallery-plus {
	width: 32px !important; height: 32px !important; background: #2563eb !important; color: #fff !important; font-size: 1.1em !important;
	font-weight: 700; box-shadow: none !important;
}
.cta-trip-gallery-new .cta-trip-gallery-label { color: #2563eb; }
.cta-trip-gallery-delete {
	position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
	background: #fff; border: 1px solid #fecaca; color: #b91c1c; font-size: 0.7em; line-height: 1;
	display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.cta-template-option { display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden; }
.cta-template-option button:first-child { background: #2563eb; color: #fff; border: none; padding: 0.5em 1em; cursor: pointer; font-size: 0.9em; }
.cta-template-option button:first-child:hover { background: #1d4ed8; }
.cta-template-delete { background: #dc2626 !important; border: none !important; color: #fff; padding: 0.5em 0.6em; cursor: pointer; font-size: 0.85em; }
.cta-template-delete:hover { background: #991b1b !important; }

.cta-save-template-wrap { margin-top: 1em; }
.cta-save-template-btn {
	display: block; margin: 0; background: none; border: 1px dashed #94a3b8; color: #555;
	padding: 0.6em 1em; border-radius: 8px; cursor: pointer; font-size: 0.9em; width: 100%;
}
.cta-save-template-btn:hover { background: #f9fafb; border-color: #2563eb; color: #2563eb; }
.cta-save-template-panel {
	border: 1px solid #dbeafe; background: #eff6ff; border-radius: 10px; padding: 0.9em;
}
.cta-save-template-panel input {
	width: 100%; box-sizing: border-box; padding: 0.6em; border: none; border-radius: 6px;
	background: #fff; font-size: 16px; margin-bottom: 0.6em;
}
.cta-save-template-actions { display: flex; gap: 0.5em; }
.cta-save-template-confirm {
	background: #2563eb; color: #fff; border: none; padding: 0.6em 1.1em; border-radius: 6px;
	cursor: pointer; font-weight: 600;
}
.cta-save-template-cancel {
	background: none; border: none; color: #64748b; padding: 0.6em 0.4em; cursor: pointer; text-decoration: underline;
}
.cta-save-template-msg { margin: 0.6em 0 0; }
.cta-add-category-form { margin-top: 1.4em; }
.cta-add-category-form input { background: #fff9f2 !important; }

/* Glemt adgangskode - pop up-modal på login-siden */
.cta-forgot-link { text-align: center; margin: 0.8em 0 0; }
.cta-forgot-link a { color: #2563eb; font-size: 0.9em; text-decoration: none; }
.cta-forgot-link a:hover { text-decoration: underline; }
.cta-modal-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,0.5);
	display: flex; align-items: center; justify-content: center;
	z-index: 100; padding: 1em;
}
.cta-modal-overlay[hidden] { display: none; }
.cta-modal-box {
	background: #fff; border-radius: 12px; padding: 2em; max-width: 380px; width: 100%;
	position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.cta-modal-box h2 { margin-top: 0; }
.cta-modal-close {
	position: absolute; top: 0.8em; right: 0.8em; background: none; border: none;
	font-size: 1.4em; line-height: 1; cursor: pointer; color: #999; padding: 0.2em 0.4em;
}
.cta-modal-close:hover { color: #333; }

/* Føj til hjemmeskærm - instruktionsboks */
.cta-a2hs-banner {
	position: fixed; left: 1em; right: 1em; bottom: 1em; z-index: 90;
	background: #1e293b; color: #fff; border-radius: 12px;
	padding: 0.9em 1em; display: flex; align-items: center; gap: 0.8em;
	box-shadow: 0 6px 24px rgba(0,0,0,0.25); max-width: 480px; margin: 0 auto;
}
.cta-a2hs-text { flex: 1; font-size: 0.92em; line-height: 1.4; }
.cta-a2hs-action {
	background: #2563eb; color: #fff; border: none; padding: 0.5em 1em;
	border-radius: 6px; cursor: pointer; font-weight: 600; white-space: nowrap; font-size: 0.9em;
}
.cta-a2hs-close {
	background: none; border: none; color: #cbd5e1; font-size: 1.3em; line-height: 1;
	cursor: pointer; padding: 0 0.2em;
}
.cta-a2hs-close:hover { color: #fff; }

/* Del-knap og del-panel på rejsekort */
.cta-trip-share-btn { background: none; border: none; font-size: 1.15em; cursor: pointer; padding: 0.2em 0.4em; line-height: 1; }
.cta-trip-shared-tag { font-style: italic; }
.cta-trip-card .cta-share-panel { margin: 0.8em 0 0; width: 100%; }

/* Fortryd-boble (undo toast) ved afkrydsning */
#cta-undo-toasts {
	position: fixed; left: 1em; right: 1em; bottom: 1em; z-index: 95;
	display: flex; flex-direction: column; gap: 0.5em; align-items: center;
}
.cta-undo-toast {
	background: #1e293b; color: #fff; border-radius: 10px; padding: 0.7em 1em;
	display: flex; align-items: center; gap: 1em; max-width: 420px; width: 100%;
	box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.cta-undo-toast span { flex: 1; font-size: 0.9em; }
.cta-undo-btn { background: #2563eb; color: #fff; border: none; padding: 0.4em 0.9em; border-radius: 6px; cursor: pointer; font-weight: 600; white-space: nowrap; }

/* Tom-tilstand-beskeder */
.cta-empty-state { color: #999; font-style: italic; text-align: center; padding: 1.5em 1em; list-style: none; }
.cta-loading-state { color: #999; text-align: center; padding: 2em 1em; animation: cta-loading-pulse 1.4s ease-in-out infinite; }
@keyframes cta-loading-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.cta-inline-add-row { opacity: 0.7; }
.cta-inline-add-row:focus-within { opacity: 1; }
.cta-inline-add-form { display: contents; }
.cta-inline-add-input { border: none !important; background: none !important; font-size: 16px; font-family: inherit; width: 100%; outline: none !important; padding: 0.2em 0; box-shadow: none !important; }
.cta-dot-ghost { display: none !important; }
.cta-star-ghost { font-size: 1.1em; padding: 0 0.1em; color: #ddd; opacity: 0.6; }

/* Kategori-mærkat som klikbar knap (skift kategori) */
.cta-category-reassign { -webkit-appearance: none; appearance: none; background: inherit; border: none !important; box-shadow: none !important; margin: 0; cursor: pointer; font-family: inherit; }
.cta-category-reassign-select { font-size: 0.7em; padding: 0.2em 0.4em; border-radius: 999px; border: 1px solid #ccc; }

/* Note og forfaldsdato - lille redigeringsboks der folder ud under linjen */
.cta-note-editor, .cta-due-editor {
	flex-basis: 100%; order: 95; background: #f9fafb; border: 1px solid #eee; border-radius: 8px;
	padding: 0.6em; margin-top: 0.4em; display: flex; flex-wrap: wrap; gap: 0.4em; align-items: flex-start;
}
.cta-note-editor textarea { flex-basis: 100%; font-size: 16px; font-family: inherit; padding: 0.5em; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; }
.cta-note-editor-actions { display: flex; gap: 0.5em; }
.cta-note-save, .cta-due-save { background: #2563eb; color: #fff; border: none; padding: 0.4em 0.9em; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.9em; }
.cta-note-cancel, .cta-due-cancel, .cta-due-clear { background: none; border: none; color: #888; padding: 0.4em 0.6em; cursor: pointer; font-size: 0.9em; }
.cta-due-editor input[type="date"] { font-size: 16px; padding: 0.4em; border: 1px solid #ccc; border-radius: 6px; }

/* Faneblade i bunden af skærmen på mobil (nemmere at nå med tommelfingeren) */
@media (max-width: 600px) {
	.cta-main-tabs {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
		background: #fff; margin: 0; border-top: 1px solid #eee; border-bottom: none;
		padding: 0.4em 0.6em calc(0.4em + env(safe-area-inset-bottom));
		justify-content: space-around;
	}
	.cta-app { padding-bottom: 4.5em; }
	.cta-main-tab { flex: 1; text-align: center; margin: 0 0.2em; }
	.cta-logout { display: none; }
}

/* Mørk tilstand - følger telefonens/systemets indstilling automatisk */
@media (prefers-color-scheme: dark) {
	body { background: #0f172a; color: #e2e8f0; }
	.cta-app, .cta-box { color: #e2e8f0; }
	.cta-box { background: #1e293b; border-color: #334155; }
	.cta-box input,
	.cta-inline-form input,
	.cta-inline-form select,
	.cta-datepicker .cta-date-display { background: #1e293b; border-color: #334155; color: #e2e8f0; }
	.cta-list li { border-bottom-color: #334155; }
	.cta-today-box { background: #1e293b; border-color: #475569; }
	.cta-today-box-global { background: #14532d; border-color: #22c55e; }
	.cta-list li.cta-pressing { background: #1e293b; }
	.cta-move-selected { background: #1e293b; box-shadow: 0 10px 24px rgba(0,0,0,0.4); }
	.cta-move-overlay { background: rgba(0,0,0,0.5); }
	#cta-today-todo-box { background: #1e3a5f; border-color: #3b82f6; }
	.cta-trip-card { background: #1e3a5f !important; }
	.cta-item-meta { color: #94a3b8; }
	.cta-share-panel { background: #1e293b; border-color: #334155; }
	.cta-modal-box { background: #1e293b; color: #e2e8f0; }
	.cta-todo-section-heading { color: #e2e8f0; border-bottom-color: #e2e8f0; }
	.cta-scroll-top-btn { color: #94a3b8; }
	.cta-template-picker { background: #1e293b; border-color: #334155; }
	.cta-icon-picker { background: #1e293b; border-color: #334155; }
	.cta-icon-picker-btn { background: #0f172a; border-color: #334155; }
	.cta-trip-gallery-card { background: #1e293b; border-color: #334155; }
	.cta-trip-gallery-card:hover { background: #334155; }
	.cta-trip-gallery-label { color: #cbd5e1; }
	.cta-trip-gallery-new { background: #0f172a; }
	.cta-trip-gallery-delete { background: #1e293b; }
	.cta-save-template-btn { border-color: #475569; color: #cbd5e1; }
	.cta-save-template-btn:hover { background: #1e293b; }
	.cta-save-template-panel { background: #1e293b; border-color: #334155; }
	.cta-save-template-panel input { background: #0f172a; color: #e2e8f0; }
	.cta-add-category-form input { background: #1e293b !important; color: #e2e8f0; }
	.cta-dot { border-color: #64748b; }
	#cta-shopping-category-select,
	#cta-todo-category-select,
	.cta-trip-packing-category-select { background: #1e293b; color: #93c5fd; }
	.cta-main-tabs { border-bottom-color: #334155; background: transparent; }
	.cta-main-tab { color: #94a3b8; }
	.cta-empty-state { color: #64748b; }
	.cta-inline-add-row:hover { background: #1e293b; }
	.cta-inline-add-input { color: #e2e8f0; }
	.cta-note-editor, .cta-due-editor { background: #1e293b; border-color: #334155; }
	.cta-note-editor textarea, .cta-due-editor input[type="date"] { background: #0f172a; color: #e2e8f0; border-color: #334155; }
	.cta-category-reassign-select { background: #0f172a; color: #e2e8f0; border-color: #334155; }
	.cta-item-name-edit { background: #0f172a; color: #e2e8f0; }
	.cta-todo-revealed { background: #1e293b; }
	.cta-item-note { color: #cbd5e1; }
	.cta-item-note-edit { background: #0f172a; color: #e2e8f0; border-color: #3b82f6; }
	.cta-meta-date-display { color: #e2e8f0; }
	.cta-item-meta-note .cta-item-note { color: #cbd5e1; }
}
@media (prefers-color-scheme: dark) and (max-width: 600px) {
	.cta-main-tabs { background: #1e293b; border-top-color: #334155; }
}

/* ---------- BEGIVENHEDER ---------- */
.cta-add-event-btn {
	background: #f8fafc; border: none !important; border-radius: 8px; padding: 0.7em 1em;
	font-size: 1em; font-weight: 600; color: #2563eb; cursor: pointer; width: 100%;
	text-align: left; margin-bottom: 0.8em;
}
.cta-event-form { display: flex; flex-direction: column; gap: 0.6em; margin-bottom: 1em; }
.cta-event-form[hidden] { display: none; }
.cta-event-form input, .cta-event-form textarea {
	padding: 0.6em; border: none !important; border-radius: 6px; box-sizing: border-box;
	font-size: 16px; background: #f8fafc; width: 100%; font-family: inherit;
}
.cta-event-form-row { display: flex; gap: 0.6em; }
.cta-event-form-row input { flex: 1; min-width: 0; }
.cta-event-submit-btn {
	background: #2563eb !important; color: #fff !important; border: none !important;
	padding: 0.7em 1em !important; border-radius: 8px !important; font-weight: 700 !important;
	font-size: 1em !important; cursor: pointer !important;
}

.cta-event-card { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 0.9em 1.1em !important; margin-bottom: 0.6em; border-bottom: 1px solid #bbf7d0 !important; display: block !important; }
.cta-event-card[hidden] { display: none !important; }
.cta-event-card-header { display: flex; align-items: center; gap: 0.6em; flex-wrap: wrap; }
.cta-event-toggle {
	background: #15803d !important; color: #fff !important; border: none !important;
	padding: 0.5em 0.8em !important; border-radius: 8px !important; font-weight: 700 !important;
	font-size: 1em !important; cursor: pointer !important; flex: 1 1 auto !important; min-width: 0 !important;
	display: flex !important; align-items: center !important; gap: 0.6em !important; flex-wrap: wrap !important; text-align: left !important;
}
.cta-event-toggle:hover { background: #166534 !important; }
.cta-event-title-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-event-date-text { color: #dcfce7 !important; flex: 0 0 auto; }
.cta-event-status-badges { display: flex; gap: 0.4em; flex: 0 0 auto; }
.cta-badge { background: rgba(255,255,255,0.2); border-radius: 6px; padding: 0.15em 0.5em; font-size: 0.85em; }
.cta-event-expand { margin-top: 0.8em; padding-top: 0.8em; border-top: 1px solid #bbf7d0; }
.cta-event-expand[hidden] { display: none; }
.cta-event-info { margin-bottom: 0.8em; }
.cta-event-desc-text { white-space: pre-wrap; font-size: 0.95em; color: #444; }

.cta-event-participant-list { list-style: none; margin: 0; padding: 0; }
.cta-event-participant-row {
	display: flex; align-items: center; justify-content: space-between; gap: 0.6em;
	padding: 0.6em 0.2em; border-bottom: 1px solid #f0f0f0;
}
.cta-event-participant-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta-event-participant-actions { display: flex; gap: 0.4em; flex: 0 0 auto; }
.cta-event-invite-btn, .cta-event-delete-participant-btn {
	background: #f3f4f6 !important; border: none !important; border-radius: 6px !important;
	padding: 0.4em 0.6em !important; font-size: 0.85em !important; cursor: pointer !important; white-space: nowrap;
}
.cta-event-call-btn {
	background: #f3f4f6; border-radius: 6px; padding: 0.4em 0.6em; text-decoration: none; font-size: 0.85em;
	display: inline-flex; align-items: center;
}

/* ---------- BEGIVENHEDER v2: mere markant bjaelke + ny UI ---------- */
.cta-add-event-btn {
	background: linear-gradient(135deg, #16a34a, #15803d) !important; border: none !important;
	border-radius: 12px; padding: 1em 1.2em; font-size: 1.05em; font-weight: 700;
	color: #fff !important; cursor: pointer; width: 100%; text-align: center;
	margin-bottom: 0.8em; box-shadow: 0 3px 10px rgba(22,163,74,0.35);
	display: flex; align-items: center; justify-content: center; gap: 0.5em;
}
.cta-add-event-btn:hover { background: linear-gradient(135deg, #15803d, #14532d) !important; }
.cta-add-event-btn[hidden] { display: none; }

.cta-event-message-wrap { margin-bottom: 1em; background: #f8fafc; border-radius: 10px; padding: 0.8em; }
.cta-event-message-label { display: block; font-size: 0.85em; font-weight: 600; color: #555; margin-bottom: 0.4em; }
.cta-event-message-textarea {
	width: 100%; box-sizing: border-box; padding: 0.6em; border: none !important; border-radius: 6px;
	font-size: 16px; background: #fff; font-family: inherit; resize: vertical;
}

.cta-event-invite-all-wrap { margin-bottom: 0.8em; }
.cta-event-invite-all-btn {
	background: #2563eb !important; color: #fff !important; border: none !important;
	padding: 0.7em 1em !important; border-radius: 8px !important; font-weight: 700 !important;
	font-size: 0.95em !important; cursor: pointer !important; width: 100%;
}
.cta-event-invite-queue {
	background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 0.9em;
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em;
}
.cta-event-invite-queue p { flex: 1 1 100%; margin: 0 0 0.2em; }
.cta-event-invite-queue-btn {
	background: #2563eb !important; color: #fff !important; border: none !important;
	padding: 0.6em 0.9em !important; border-radius: 8px !important; font-weight: 700 !important; cursor: pointer !important;
}
.cta-event-invite-queue-skip, .cta-event-invite-queue-cancel {
	background: #e5e7eb !important; border: none !important; padding: 0.6em 0.9em !important;
	border-radius: 8px !important; cursor: pointer !important; font-size: 0.9em !important;
}

.cta-event-participant-icons { display: inline-flex; gap: 0.3em; flex: 0 0 auto; font-size: 0.95em; }

/* ---------- BEGIVENHEDER v3: billede-upload ---------- */
.cta-event-image-wrap { margin-bottom: 1em; }
.cta-event-image-preview { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 0.5em; }
.cta-event-image-add-btn, .cta-event-image-remove-btn {
	background: #f3f4f6 !important; border: none !important; border-radius: 8px !important;
	padding: 0.6em 1em !important; font-size: 0.9em !important; cursor: pointer !important; width: 100%;
}
.cta-event-image-remove-btn { color: #b91c1c !important; }

/* ---------- BEGIVENHEDER v4: stoerre ikoner + betalt-markering ---------- */
.cta-event-participant-icons { display: inline-flex; align-items: center; gap: 0.35em; font-size: 1.6em; flex: 0 0 auto; }
.cta-event-invited-icon, .cta-event-status-icon { line-height: 1; }
.cta-event-paid-icon {
	background: none !important; border: none !important; padding: 0 !important; margin: 0;
	font-size: 1em; line-height: 1; cursor: pointer; display: inline-flex; align-items: center;
}

/* ---------- BEGIVENHEDER v5: formular-labels, besked-alle, noter, maps-link ---------- */
.cta-event-field-label { display: flex; flex-direction: column; gap: 0.25em; font-size: 0.8em; color: #666; flex: 1; }
.cta-event-field-label input { font-size: 16px; }
.cta-event-image-select-btn {
	background: #f3f4f6 !important; border: none !important; border-radius: 8px !important;
	padding: 0.6em 1em !important; font-size: 0.9em !important; cursor: pointer !important; width: 100%;
}
.cta-event-image-select-filename { font-size: 0.85em; color: #666; display: block; margin-top: -0.3em; }

.cta-maps-link { color: inherit; text-decoration: underline; text-decoration-color: #93c5fd; }

.cta-event-broadcast-wrap { margin-bottom: 1em; }
.cta-event-broadcast-toggle {
	background: #f8fafc !important; border: none !important; border-radius: 8px !important;
	padding: 0.6em 1em !important; font-size: 0.9em !important; font-weight: 600; color: #2563eb !important;
	cursor: pointer !important; width: 100%; text-align: left;
}
.cta-event-broadcast-panel { margin-top: 0.6em; }
.cta-event-broadcast-panel[hidden] { display: none; }
.cta-event-broadcast-textarea {
	width: 100%; box-sizing: border-box; padding: 0.6em; border: none !important; border-radius: 6px;
	font-size: 16px; background: #f8fafc; font-family: inherit; resize: vertical; margin-bottom: 0.5em;
}
.cta-event-broadcast-send-btn {
	background: #2563eb !important; color: #fff !important; border: none !important;
	padding: 0.6em 1em !important; border-radius: 8px !important; font-weight: 700 !important;
	cursor: pointer !important; width: 100%;
}

.cta-event-note-indicator { font-size: 0.85em; }
.cta-event-note-editor { margin-top: 0.5em; padding: 0.6em; background: #f8fafc; border-radius: 8px; }
.cta-event-note-editor textarea {
	width: 100%; box-sizing: border-box; padding: 0.5em; border: none !important; border-radius: 6px;
	font-size: 16px; background: #fff; font-family: inherit; resize: vertical;
}
.cta-event-note-actions { display: flex; gap: 0.5em; margin-top: 0.4em; }
.cta-event-note-save, .cta-event-note-cancel {
	background: #e5e7eb !important; border: none !important; padding: 0.4em 0.8em !important;
	border-radius: 6px !important; cursor: pointer !important; font-size: 0.85em !important;
}
.cta-event-note-save { background: #2563eb !important; color: #fff !important; }

/* ---------- BEGIVENHEDER v6: MobilePay-badge ---------- */
.cta-mobilepay-badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.3em; height: 1.3em; border-radius: 50%; background: #5a78ff;
	color: #fff; font-size: 0.55em; font-weight: 800; letter-spacing: -0.02em;
}

/* ---------- BEGIVENHEDER v7: stoerre MobilePay-badge, ring i swipe, note klikbar ---------- */
.cta-mobilepay-badge {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0.25em 0.7em; border-radius: 999px; background: #5a78ff;
	color: #fff; font-size: 0.5em; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap;
}
.cta-event-note-indicator {
	background: none !important; border: none !important; padding: 0 !important; margin: 0;
	font-size: 1em; line-height: 1; cursor: pointer; display: inline-flex; align-items: center;
}
.cta-panel-call {
	display: inline-flex; align-items: center; text-decoration: none;
}

.cta-mobilepay-badge { font-size: 0.75em !important; padding: 0.3em 0.8em !important; }

/* ---------- BEGIVENHEDER v9: egen fane + Facebook-blaa tema ---------- */
.cta-main-tab-icon { font-size: 1.3em !important; padding: 0.4em 0.6em !important; flex: 0 0 auto !important; }
.cta-event-card { background: #eff6ff; border: 1px solid #bfdbfe; border-bottom: 1px solid #bfdbfe !important; }
.cta-event-toggle { background: #1877f2 !important; }
.cta-event-toggle:hover { background: #145dbf !important; }
.cta-event-date-text { color: #dbeafe !important; }
.cta-event-expand { border-top: 1px solid #bfdbfe; }
.cta-add-event-btn { background: linear-gradient(135deg, #1877f2, #145dbf) !important; box-shadow: 0 3px 10px rgba(24,119,242,0.35); }
.cta-add-event-btn:hover { background: linear-gradient(135deg, #145dbf, #0d47a1) !important; }
.cta-event-submit-btn, .cta-event-invite-all-btn, .cta-event-invite-queue-btn, .cta-event-broadcast-send-btn { background: #1877f2 !important; }

/* ---------- BEGIVENHEDER v10: vaerts-overblik + foelgepersoner ---------- */
.cta-event-summary { display: flex; flex-wrap: wrap; gap: 0.6em; margin-bottom: 1em; }
.cta-event-summary-item {
	background: #fff; border-radius: 8px; padding: 0.4em 0.7em; font-size: 0.85em; font-weight: 600; color: #333;
	box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.cta-event-summary-item.spots { background: #fef3c7; color: #92400e; }
.cta-event-plusones-badge {
	background: #dbeafe; color: #1877f2; border-radius: 6px; padding: 0.1em 0.45em;
	font-size: 0.75em; font-weight: 700; margin-left: 0.3em;
}

/* ---------- BEGIVENHEDER v11: swipe-panel med egen linje pr. ikon ---------- */
.cta-participant-swipe-panel { display: flex; flex-direction: column; gap: 0.4em; align-items: stretch; }
.cta-participant-swipe-panel .cta-panel-call,
.cta-participant-swipe-panel .cta-panel-invite,
.cta-participant-swipe-panel .cta-panel-note,
.cta-participant-swipe-panel .cta-panel-delete {
	display: block; width: 100%; text-align: left; padding: 0.5em 0.8em; border-radius: 6px;
	background: #f3f4f6; border: none; font-size: 0.95em; text-decoration: none; color: #111827; box-sizing: border-box;
}
.cta-participant-swipe-panel .cta-panel-delete { color: #b91c1c; }

/* ---------- BEGIVENHEDER v12: redigering, fold-sammen, status-klik ---------- */
.cta-event-edit-title-btn {
	background: none !important; border: none !important; padding: 0.2em !important; margin-left: 0.3em;
	font-size: 0.85em; cursor: pointer; flex: 0 0 auto;
}
.cta-event-edit-desc-btn {
	background: #f3f4f6 !important; border: none !important; border-radius: 8px !important;
	padding: 0.5em 0.9em !important; font-size: 0.85em !important; cursor: pointer !important; margin-bottom: 0.8em;
}
.cta-event-desc-editor { margin-bottom: 1em; }
.cta-event-desc-editor textarea {
	width: 100%; box-sizing: border-box; padding: 0.6em; border: none !important; border-radius: 6px;
	font-size: 16px; background: #f8fafc; font-family: inherit; resize: vertical;
}
.cta-event-desc-editor-actions { display: flex; gap: 0.5em; margin-top: 0.5em; }
.cta-event-desc-save, .cta-event-desc-cancel {
	background: #e5e7eb !important; border: none !important; padding: 0.5em 1em !important;
	border-radius: 6px !important; cursor: pointer !important; font-size: 0.85em !important;
}
.cta-event-desc-save { background: #1877f2 !important; color: #fff !important; }

.cta-event-info-toggle {
	background: #f3f4f6 !important; border: none !important; border-radius: 8px !important;
	padding: 0.6em 1em !important; font-size: 0.9em !important; cursor: pointer !important; width: 100%;
	text-align: left; margin-bottom: 0.8em;
}
.cta-event-info-collapsible[hidden] { display: none !important; }

.cta-event-status-icon {
	background: none !important; border: none !important; padding: 0 !important; margin: 0;
	font-size: 1em; line-height: 1; cursor: pointer;
}

/* ---------- v15: forhindrer utilsigtet zoom ved swipe/tryk paa mobil ---------- */
.cta-event-card-header, .cta-event-participant-row, .cta-trip-card-header {
	touch-action: pan-y;
}
.cta-todo-toolbar button, .cta-todo-toolbar a,
.cta-participant-swipe-panel button, .cta-participant-swipe-panel a {
	touch-action: manipulation;
}

/* ---------- BEGIVENHEDER v19: blaa bjaelker + rich text-vaerktoejslinje ---------- */
.cta-event-bluebar {
	display: flex !important; align-items: center; justify-content: space-between; width: 100%;
	background: #1877f2 !important; color: #fff !important; border: none !important; border-radius: 8px !important;
	padding: 0.7em 1em !important; font-size: 0.95em !important; font-weight: 700 !important; cursor: pointer !important;
	margin-bottom: 0; margin-top: 0.6em; text-align: left;
}
.cta-event-bluebar:first-of-type { margin-top: 0; }
.cta-event-bluebar-chevron { transition: transform 0.15s ease; }
.cta-event-bluebar.is-open .cta-event-bluebar-chevron { transform: rotate(180deg); }
.cta-event-bluebar-content {
	background: #eff6ff; border-radius: 0 0 8px 8px; padding: 0.9em 1em; margin-top: -0.4em; margin-bottom: 0.6em;
}
.cta-event-bluebar-content[hidden] { display: none !important; }

.cta-event-format-toolbar { display: flex; gap: 0.4em; margin-bottom: 0.5em; }
.cta-fmt-bold, .cta-fmt-italic, .cta-fmt-link {
	background: #fff !important; border: 1px solid #dbeafe !important; border-radius: 6px !important;
	width: 2.2em; height: 2.2em; font-size: 0.95em !important; cursor: pointer !important;
}
.cta-fmt-bold { font-weight: 800 !important; }
.cta-fmt-italic { font-style: italic !important; }

.cta-event-desc-textarea, .cta-event-autosize {
	width: 100%; box-sizing: border-box; padding: 0.6em; border: none !important; border-radius: 6px;
	font-size: 16px; background: #fff; font-family: inherit; resize: none; overflow: hidden; min-height: 3em;
}

/* ---------- BEGIVENHEDER v21: fuld bredde bjaelker + MobilePay-padding ---------- */
.cta-event-bluebar {
	display: flex !important; width: 100% !important; box-sizing: border-box !important;
	align-items: center !important; justify-content: space-between !important;
}
.cta-event-bluebar-chevron { margin-left: auto; flex: 0 0 auto; }
.cta-mobilepay-badge {
	padding: 0.35em 0.9em !important; font-size: 0.8em !important; line-height: 1.4 !important;
	white-space: nowrap !important; display: inline-block !important;
}

.cta-event-participant-row { flex-wrap: wrap; }
.cta-mobilepay-badge { padding: 0.3em 0.6em !important; font-size: 0.75em !important; }

.cta-mobilepay-icon { height: 1.4em; width: auto; vertical-align: middle; border-radius: 4px; display: inline-block; }
.cta-mobilepay-icon-small { height: 1.1em; width: auto; vertical-align: middle; border-radius: 3px; display: inline-block; }

/* ---------- BEGIVENHEDER v25: rediger navn+tlf, sendt-ikon, er-inviteret ---------- */
.cta-event-participant-edit-form { display: flex; gap: 0.4em; margin: 0.4em 0; flex-wrap: wrap; }
.cta-event-participant-edit-form input {
	flex: 1; min-width: 100px; padding: 0.4em; border: none !important; border-radius: 6px;
	font-size: 16px; background: #f3f4f6;
}
.cta-event-participant-edit-save {
	background: #1877f2 !important; color: #fff !important; border: none !important;
	border-radius: 6px !important; padding: 0.4em 0.8em !important; cursor: pointer !important;
}
.cta-event-invited-icon {
	background: none !important; border: none !important; padding: 0 !important; margin: 0;
	font-size: 1em; line-height: 1; cursor: pointer;
}
.cta-event-invite-queue-invited {
	background: #16a34a !important; color: #fff !important; border: none !important;
	border-radius: 6px !important; padding: 0.5em 0.9em !important; cursor: pointer !important; font-size: 0.9em !important;
}

/* ---------- TRAEK NED FOR AT OPDATERE ---------- */
#cta-pull-refresh-indicator {
	position: fixed; top: 8px; left: 50%; transform: translateX(-50%) translateY(0);
	background: #2563eb; color: #fff; padding: 0.5em 1.1em; border-radius: 999px;
	font-size: 0.85em; font-weight: 600; z-index: 1000000; opacity: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15); pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease; white-space: nowrap;
}

#cta-pull-refresh-indicator { display: flex; align-items: center; gap: 0.4em; }
.cta-pull-refresh-icon { display: inline-block; font-size: 1.1em; transition: transform 0.15s ease; }
#cta-pull-refresh-indicator.is-loading .cta-pull-refresh-icon {
	animation: cta-pull-refresh-spin 0.7s linear infinite;
}
@keyframes cta-pull-refresh-spin { to { transform: rotate(360deg); } }
