:root {
  --lalle-blue: #00205b;
  --lalle-blue-hover: #001845;
  --lalle-white: #ffffff;
  --lalle-gray-light: #f4f4f4;
  --lalle-gray-dark: #222222;
  --accent: var(--lalle-blue);
  --bg: var(--lalle-gray-light);
  --card: var(--lalle-white);
  --text: var(--lalle-gray-dark);
  --muted: #5a5a5a;
  --border: #d8dce3;
  --page-max: min(96vw, 120rem);
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 32, 91, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--lalle-gray-light);
  background-image: url("../brand/lalle-karta-pattern.png");
  background-repeat: repeat;
  background-size: min(38vw, 300px) auto;
  opacity: 0.09;
}
@media (prefers-reduced-motion: reduce) {
  body::before {
    opacity: 0.04;
  }
}
@media print {
  body::before {
    display: none;
  }
}
main {
  flex: 1 0 auto;
}
a { color: var(--accent); }
a:hover { color: var(--lalle-blue-hover); }
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 2vw, 2.5rem);
  width: 100%;
}
.wrap--wide {
  max-width: none;
  width: 100%;
  padding-left: clamp(1rem, 2.5vw, 3rem);
  padding-right: clamp(1rem, 2.5vw, 3rem);
}
.admin-wrap { max-width: min(96vw, 120rem); }

.min-status-note {
  line-height: 1.45;
}
.min-status-note--alert,
.event-card .min-status-note,
.srf-panel .min-status-note,
.booking-min-notice {
  display: block;
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  background: #fff8e6;
  border: 1px solid #e6d9a8;
  border-left: 4px solid #c4a035;
  border-radius: 0 6px 6px 0;
  color: #5c4a1f;
  font-weight: 500;
}
.booking-min-notice {
  margin: 0 0 1rem;
}
.booking-min-notice strong {
  font-weight: 700;
}
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.admin-page-head h1 { margin: 0; }
.admin-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trip-actions a { white-space: nowrap; }
.trip-alert { font-weight: 600; }
.trip-alert--warn { color: #9a6700; }
.trip-alert--err { color: #b42318; }
.admin-scope-tabs {
  display: flex;
  gap: 1rem;
  margin: 0 0 1rem;
}
.admin-scope-tabs a {
  text-decoration: none;
  color: inherit;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
.admin-scope-tabs a.is-active {
  border-bottom-color: var(--lalle-blue);
  font-weight: 600;
}
.impersonation-banner {
  background: #fff4ce;
  color: #5c4813;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #e6d59a;
}
.impersonation-banner a {
  margin-left: 0.75rem;
  font-weight: 600;
  color: inherit;
}
.event-card__status-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.1rem;
  line-height: 1.45;
}
.event-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  list-style: none;
}
.event-timeline__step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.event-timeline__step.is-done {
  border-color: #6a9b6a;
  background: #f2f8f2;
}
.event-timeline__step.is-active {
  border-color: var(--lalle-blue);
  font-weight: 600;
}
.admin-quiet {
  margin-top: 2.5rem;
  font-size: 0.92rem;
}
.admin-user-form label { display: block; margin-top: 0.75rem; }
.admin-user-form input:not([type="checkbox"]):not([type="radio"]) { max-width: 28rem; }

/* Inline kryssruta/radio + text i samma etikett */
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-weight: 500;
}
label:has(> input[type="checkbox"]) > input[type="checkbox"],
label:has(> input[type="radio"]) > input[type="radio"] {
  margin-top: 0.2em;
  margin-right: 0;
}
.admin-users-table { width: 100%; }
.admin-user-details { border: 1px solid #e8e2d8; border-radius: 6px; margin-bottom: 0.75rem; background: #fff; }
.admin-user-details summary {
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  list-style: none;
}
.admin-user-details summary::-webkit-details-marker { display: none; }
.admin-user-details__body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid #f0ebe3;
}
.admin-user-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #e0e7ff;
  color: #3730a3;
}
.admin-user-badge--inactive {
  background: #fee2e2;
  color: #991b1b;
}
.admin-user-row--inactive .admin-user-details {
  opacity: 0.85;
}

/* —— LALLE header —— */
.site-header {
  background: var(--lalle-blue);
  color: var(--lalle-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 2vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.site-header__logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: none;
}
.site-header__badge {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-weight: 600;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}
.site-header__nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}
.site-header__nav a:hover,
.site-header__nav a.is-active {
  color: #fff;
  text-decoration: underline;
}
.site-header__nav-cta {
  background: var(--lalle-white);
  color: var(--lalle-blue) !important;
  border-radius: 999px;
  padding: 0.45rem 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.site-header__nav-cta:hover {
  background: #e8eef7;
  color: var(--lalle-blue-hover) !important;
}

header.site {
  display: none;
}
header.site .site-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1rem, 2vw, 2.5rem);
  box-sizing: border-box;
}
.site-inner--admin {
  max-width: min(96vw, 120rem);
}
header.site a { color: #fff; text-decoration: none; margin-right: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}
.card h1 {
  margin-top: 0;
  color: var(--lalle-blue);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card h2 {
  color: var(--lalle-blue);
  font-size: 1.2rem;
  margin-top: 0;
}
.page-intro {
  color: var(--muted);
  margin: -0.25rem 0 1.25rem;
}
.auth-card {
  max-width: 28rem;
  margin: 1rem auto 2rem;
}
.auth-card p {
  color: var(--muted);
}
.flash { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash.ok { background: #e8f5e9; border: 1px solid #a5d6a7; }
.flash.err { background: #ffebee; border: 1px solid #ef9a9a; }
tr.booking-item--sold-out td {
  color: var(--muted);
  background: #f7f5f2;
}
.booking-item-sold-out-msg {
  color: #9b2c2c;
  font-weight: 600;
}
.booking-deadline__terms {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 500;
}
.booking-deadline__terms a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.flash.ok .booking-deadline__terms a {
  color: #1b5e20;
}
.flash.ok .booking-deadline__terms a:hover {
  color: #0d3d12;
}
.flash.err .booking-deadline__terms a {
  color: #8b1a1a;
}
.flash.err .booking-deadline__terms a:hover {
  color: #5c1010;
}
label { display: block; font-weight: 600; margin-top: 1rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  max-width: 420px;
  padding: 0.7rem 0.85rem;
  margin-top: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  line-height: 1.35;
  background: var(--lalle-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-hint {
  display: block;
  margin: 0.45rem 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}
label.form-check,
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}
label.form-check input[type="checkbox"],
.form-check input[type="checkbox"] {
  margin-top: 0.15em;
}
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  display: inline-block;
  box-sizing: border-box;
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  max-width: 1.125rem;
  margin: 0 0.45rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  vertical-align: text-top;
  flex-shrink: 0;
  accent-color: var(--lalle-blue, #00205b);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--lalle-blue);
  box-shadow: 0 0 0 3px rgba(0, 32, 91, 0.12);
}
.btn {
  display: inline-block;
  margin-top: 1rem;
  margin-right: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--lalle-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover {
  background: var(--lalle-blue-hover);
  color: #fff;
}
.btn.secondary {
  background: transparent;
  color: var(--lalle-blue);
  border: 1px solid var(--border);
}
.btn.secondary:hover {
  background: #eef2f8;
  color: var(--lalle-blue-hover);
}
.btn.danger {
  background: transparent;
  color: #9b2c2c;
  border: 1px solid #d4a5a5;
}
.btn.danger:hover {
  background: #faf0f0;
  color: #7a1f1f;
  border-color: #c07878;
}
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { border: 1px solid var(--border); padding: 0.5rem; text-align: left; vertical-align: top; }
th { background: #eee; }
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}
.table-responsive table { margin-top: 0; }
table input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
table select {
  max-width: none;
  width: 100%;
  min-width: 6.5rem;
}
table input[type="checkbox"],
table input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  max-width: 1.125rem;
}
table input[type="date"] { min-width: 10.5rem; }
.services-cell label {
  display: block;
  font-weight: normal;
  margin: 0 0 0.35rem;
  white-space: normal;
}
.service-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-group--cabin {
  padding: 0.5rem 0.6rem;
  border: 1px solid #e8e2d8;
  border-radius: 6px;
  background: #faf8f5;
}
.service-group--cabin .service-option {
  margin-bottom: 0.25rem;
}
.service-group-label {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, #666);
}
.service-group-hint {
  margin: 0 0 0.35rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: var(--muted, #666);
  background: #f5f3ef;
  border-radius: 4px;
}
.service-option--muted {
  opacity: 0.45;
  cursor: not-allowed;
}
.service-option--muted input {
  cursor: not-allowed;
}
.services-cell small { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-wrap .grid-2 { grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr); gap: 2rem; }
.admin-wrap input,
.admin-wrap select,
.admin-wrap textarea { max-width: none; }
@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
  .wrap, .admin-wrap { padding: 1rem; }
}
.traveler-toolbar label { display: block; margin-bottom: 0.25rem; font-size: 0.9rem; }
.import-review-table .row-error { background: #fff5f5; }
.import-review-table .row-ok { background: #f8fff8; }
.status-ok { color: #1a6b1a; font-weight: 600; }
.status-err { color: #a32020; font-weight: 600; }
.status-warn { color: #8a6a00; }
.import-messages { margin: 0.35rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; }
.import-messages.err { color: #a32020; }
.import-messages.warn { color: #6b5a00; }
.muted { color: var(--muted); font-size: 0.95rem; }
.form-section-title {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
  border-bottom: 1px solid #e8e2d8;
  padding-bottom: 0.35rem;
}
.form-section-title:first-of-type { margin-top: 0; }
.travelers-matrix-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid #e8e2d8;
  border-radius: 8px;
}
.travelers-matrix {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: fixed;
}
.travelers-matrix th,
.travelers-matrix td {
  border: 1px solid #e8e2d8;
  padding: 0.4rem 0.45rem;
  vertical-align: middle;
}
.travelers-matrix thead th {
  background: #f5f3ef;
  font-size: 0.82rem;
  line-height: 1.25;
}
.travelers-matrix .matrix-head-group th {
  text-align: center;
  font-weight: 600;
  padding: 0.5rem;
}
.travelers-matrix .matrix-head-cabin {
  background: #faf8f5;
}
.travelers-matrix .matrix-head-other {
  background: #f8faf8;
}
.travelers-matrix .matrix-sticky {
  background: #fff;
}
.travelers-matrix .matrix-col-order { width: 6.5rem; }
.travelers-matrix .matrix-col-first { width: 9%; }
.travelers-matrix .matrix-col-last { width: 9%; }
.travelers-matrix .matrix-col-sex { width: 4.5rem; }
.travelers-matrix .matrix-col-birth { width: 10rem; }
.travelers-matrix .matrix-col-nation { width: 8%; }
.travelers-matrix .service-matrix-col {
  width: auto;
}
.travelers-matrix input,
.travelers-matrix select {
  width: 100%;
  min-width: 0;
  max-width: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.4rem;
  box-sizing: border-box;
}
.travelers-matrix .matrix-col-actions {
  width: 5.25rem;
  min-width: 5.25rem;
  text-align: center;
  vertical-align: middle;
  padding: 0.25rem 0.15rem;
}
.traveler-row-actions--idle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.1rem 0.15rem;
}
.traveler-row-actions--active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.traveler-row-actions__status {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #92400e;
  line-height: 1.25;
  text-align: center;
}
.traveler-row--remove-pending .traveler-row-actions__status {
  color: #b91c1c;
}
.traveler-row-actions__saved {
  font-size: 0.68rem;
  font-weight: 600;
  color: #92400e;
}
.traveler-row-actions__sep {
  color: #9ca3af;
  font-size: 0.75rem;
  user-select: none;
}
.traveler-row-actions__btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 0.68rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.traveler-row-actions__btn:hover {
  color: var(--accent, #2563eb);
}
.traveler-row-actions__btn--warn {
  color: #b45309;
}
.traveler-row-actions__btn--warn:hover {
  color: #b91c1c;
}
.traveler-row-actions__btn--reset {
  font-size: 0.65rem;
  color: var(--muted);
}
.traveler-row--fields-locked .matrix-col-first input,
.traveler-row--fields-locked .matrix-col-last input,
.traveler-row--fields-locked .matrix-col-birth input,
.traveler-row--fields-locked .matrix-col-nation input {
  background: #f9fafb;
  color: #6b7280;
}
.traveler-row--tom-pending .matrix-col-first input,
.traveler-row--tom-pending .matrix-col-last input {
  background: #fffbeb;
  color: #92400e;
  font-weight: 600;
}
.traveler-row--remove-pending {
  background: #fff5f5;
}
.traveler-row--tom-pending {
  background: #fffbeb;
}
.traveler-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.traveler-badge--tom {
  background: #fef3c7;
  color: #92400e;
}
.traveler-badge--pending {
  background: #e0e7ff;
  color: #3730a3;
}
.traveler-row--remove-pending {
  background: #fff5f5;
}
.traveler-row--tom-pending {
  background: #fffbeb;
}
.travelers-matrix .matrix-delete {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-weight: normal;
}
.travelers-matrix .matrix-delete span { white-space: nowrap; }
.service-matrix-th {
  text-align: center;
  vertical-align: bottom;
  padding: 0.5rem 0.35rem;
}
.service-matrix-th--cabin {
  background: #faf8f5;
}
.service-matrix-th--unbooked,
.service-matrix-cell--unbooked {
  background: #f5f5f5;
}
.service-matrix-th--unbooked .service-matrix-th-label {
  color: var(--muted);
  font-weight: 500;
}
.service-matrix-cell--unbooked input {
  cursor: not-allowed;
  opacity: 0.35;
}
.service-matrix-th-label {
  display: block;
  font-weight: 600;
  hyphens: auto;
  word-break: break-word;
}
.service-matrix-th-count {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}
.service-matrix-th-count--full {
  color: #a32020;
  font-weight: 600;
}
.service-matrix-cell {
  text-align: center;
  background: #fff;
}
.service-matrix-cell--cabin {
  background: #fcfaf7;
}
.service-matrix-cell input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  cursor: pointer;
}
.service-matrix-cell--muted {
  opacity: 0.35;
  background: #f5f5f5;
}
.service-matrix-cell--muted input {
  cursor: not-allowed;
}
.service-matrix-cell--vehicle {
  min-width: 7.5rem;
  vertical-align: top;
}
.vehicle-reg-fields {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.vehicle-reg-fields--hidden {
  display: none;
}
.vehicle-reg-fields input.vehicle-reg-number {
  width: 100%;
  max-width: 6.5rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.35rem;
}
.vehicle-reg-flag {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.25;
  cursor: pointer;
  user-select: none;
}
.vehicle-reg-flag input {
  margin: 0.12rem 0 0;
  flex-shrink: 0;
}
.vehicle-reg-number--hidden {
  display: none;
}
.vehicle-reg-readonly {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
}
.travelers-matrix tr.row-empty td.matrix-sticky {
  background: #fafafa;
}
.travelers-matrix tr.row-empty .service-matrix-cell {
  background: #fafafa;
}
.btn-icon {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.2;
  margin-right: 0.15rem;
}
.btn-icon:hover { background: #f5f3ef; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumb a { color: var(--lalle-blue); }
.traveler-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0;
  padding: 1rem;
  background: #faf9f7;
  border-radius: 6px;
}
.traveler-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.traveler-step.active { color: #1a1a1a; font-weight: 600; }
.traveler-step.done { color: #1a6b1a; }
.traveler-step .step-num {
  display: inline-flex;
  width: 1.6rem;
  height: 1.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ddd;
  font-size: 0.85rem;
}
.traveler-step.active .step-num { background: var(--lalle-blue); color: #fff; }
.traveler-step.done .step-num { background: #1a6b1a; color: #fff; }
.traveler-step-arrow { color: #bbb; }
.traveler-status-card {
  padding: 1rem 1.25rem;
  background: #fff8f0;
  border-left: 4px solid var(--lalle-blue);
  margin-bottom: 1.25rem;
}
.traveler-status-card.complete {
  background: #f0faf0;
  border-left-color: #1a6b1a;
}
.traveler-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1100px) {
  .wrap--wide .traveler-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}
.wrap--wide .card--travelers {
  padding: 1.25rem clamp(1rem, 2vw, 2rem);
}
.traveler-action-card {
  padding: 1.25rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.traveler-action-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.traveler-action-card p { margin: 0 0 0.75rem; font-size: 0.92rem; color: var(--muted); }
.traveler-copy-panel { margin-bottom: 1.5rem; padding: 1rem 1.25rem; }
.file-drop {
  display: block;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 2px dashed #ccc;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
}
.file-drop input[type="file"] { display: block; margin: 0.5rem auto 0; max-width: 100%; }
.import-upload-form { margin-top: 0.5rem; }
.import-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.travelers-table tr.row-empty { background: #fafafa; }
@media (max-width: 700px) {
  .traveler-steps { flex-direction: column; align-items: flex-start; }
  .traveler-step-arrow { display: none; }
}

/* Reseserie — växla avgångar */
.series-booking-nav {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: #f4f6f8;
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
}
.series-booking-nav__head {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.series-booking-nav__legs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.series-booking-nav__legs li.is-current a {
  font-weight: 700;
}
.series-leg-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}
.series-leg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
}
.series-leg-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.series-leg-row__actions .btn {
  margin-top: 0;
}

/* Reskort — bokningssida + admin-förhandsvisning */
.home-empty {
  margin: 1.25rem 0 2rem;
  padding: 1.35rem 1.25rem;
  max-width: 40rem;
  border-left: 4px solid var(--lalle-blue);
  background: #f3f6fb;
}

.home-empty--compact {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
}

.home-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--lalle-blue);
}

.home-empty__text {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: var(--text, #222);
}

.home-empty__text:last-child {
  margin-bottom: 0;
}

.home-section-title {
  margin: 1.75rem 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #222);
}
.home-section-title:first-of-type {
  margin-top: 1rem;
}
.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
}
.event-card__title {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
}
.event-card__teaser {
  margin: 0.5rem 0 0;
  max-width: 42rem;
}
.event-card__status {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: #2a5a2a;
}
.event-card__status--booked {
  color: #1a4d6d;
}
.event-card__status--closed,
.event-card__status--cancelled {
  color: #8a3b3b;
}
.event-card__status--closing_soon {
  color: #8a6a1a;
}
.public-event-preview {
  border: 1px solid #ebe7e0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  max-width: 36rem;
  background: #faf9f7;
}
.btn-preview {
  pointer-events: none;
}

/* Admin: flikar per resa */
.event-admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.45rem 0.5rem;
  background: #fff;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
}
.event-admin-nav__back {
  margin: 0;
  padding: 0.1rem 0.35rem 0.25rem;
  font-size: 0.9rem;
}
.event-admin-nav__primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.event-admin-nav__link {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text, #222);
  font-size: 0.95rem;
  font-weight: 500;
}
.event-admin-nav__link:hover {
  background: #f5f3ef;
  color: var(--accent, #ff6600);
}
.event-admin-nav__link.is-active {
  background: var(--accent, #ff6600);
  color: #fff;
}
.event-admin-nav__extra {
  margin: 0;
  padding: 0.15rem 0.35rem 0;
  font-size: 0.82rem;
  border-top: 1px solid var(--border, #eee);
  padding-top: 0.4rem;
}
.event-admin-nav__extra a.is-active {
  font-weight: 700;
  color: var(--text, #222);
  text-decoration: underline;
}

/* Admin: avbokningsregler (egen layout — undvik global table input { width:100% }) */
.cancel-rules-fieldset {
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  background: #fafafa;
}
.cancel-rules-fieldset legend {
  font-weight: 600;
  padding: 0 0.35rem;
  font-size: 1.05rem;
}
.cancel-rules-intro {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted, #555);
}
.cancel-rules-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .cancel-rules-columns {
    grid-template-columns: 1fr 1fr;
  }
}
.cancel-rules-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.cancel-rules-row {
  display: grid;
  grid-template-columns: 1fr minmax(7rem, 8.5rem);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eee;
}
.cancel-rules-row:last-child { border-bottom: none; }
.cancel-rules-row--head {
  background: #f0eeea;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #666);
  padding: 0.55rem 1rem;
}
.cancel-rules-row--head span:last-child {
  text-align: right;
}
.cancel-rules-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  line-height: 1.4;
  min-width: 0;
}
.cancel-tier {
  flex: 0 0 auto;
  min-width: 6.5rem;
  font-weight: 600;
  color: #1a1a1a;
}
.cancel-desc {
  color: var(--muted, #666);
  font-size: 0.92rem;
}
.cancel-desc--sub {
  margin-left: 0.25rem;
  font-size: 0.85rem;
}
.cancel-range {
  font-weight: 600;
  color: #1a1a1a;
}
.cancel-rules-fee {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  font-weight: normal;
}
.cancel-rules-fieldset .cancel-num {
  width: 3.25rem !important;
  min-width: 3.25rem !important;
  max-width: 3.25rem !important;
  margin: 0 !important;
  padding: 0.4rem 0.35rem !important;
  text-align: center;
  border: 1px solid var(--border, #ccc);
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.cancel-rules-fieldset .cancel-num--pct {
  width: 3.5rem !important;
  min-width: 3.5rem !important;
  max-width: 3.5rem !important;
}
.cancel-unit {
  font-size: 0.92rem;
  color: var(--muted, #666);
  flex-shrink: 0;
}
.cancel-hint {
  flex: 1 1 100%;
  font-size: 0.78rem;
  color: var(--muted, #888);
  text-align: right;
}
@media (min-width: 640px) {
  .cancel-hint {
    flex: 0 0 auto;
    margin-left: 0.25rem;
  }
}
.cancel-rules-preview {
  margin-top: 0;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}
.cancel-rules-preview h3 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cancel-rules-preview ul {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cancel-rules-preview li {
  padding: 0.35rem 0;
  border-bottom: 1px dotted #e8e4dc;
  font-size: 0.95rem;
}
.cancel-rules-preview li:last-child { border-bottom: none; }
.cancel-rules-foot { margin: 0.85rem 0 0; font-size: 0.85rem; }
.cancel-rules-fieldset .cancel-input-warn {
  border-color: #c00 !important;
  background: #fff5f5 !important;
}
#cancel-rules-example.status-err,
#cancel-rules-example:empty { display: none; }
@media (min-width: 768px) {
  .cancel-rules-columns .cancel-rules-row {
    grid-template-columns: 1fr minmax(5.5rem, 7rem);
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
  }
  .cancel-rules-columns .cancel-tier {
    min-width: 4.75rem;
    font-size: 0.9rem;
  }
  .cancel-rules-columns .cancel-desc {
    font-size: 0.85rem;
  }
}
@media (max-width: 560px) {
  .cancel-rules-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .cancel-rules-fee { justify-content: flex-start; }
  .cancel-tier { min-width: 0; }
}

.cabin-pool-table th,
.cabin-pool-table td {
  font-size: 14px;
  vertical-align: top;
}
tr.row-mixed-cabin td {
  background: #fff8f0;
}
.cabin-shared-label {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.85em;
  font-weight: 600;
  color: #8a4b12;
}
.cabin-util-summary-line {
  font-size: 1.05rem;
  margin: 0.5rem 0 1rem;
}
.cabin-util-summary-table th,
.cabin-util-summary-table td {
  font-size: 14px;
}
.cabin-upgrade-suggestions {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: #f7faf5;
  border: 1px solid #d5e3cb;
  border-radius: 6px;
}
.cabin-upgrade-suggestions h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.cabin-upgrade-suggestion-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.cabin-upgrade-suggestion-list > li {
  margin-bottom: 0.65rem;
}
.cabin-upgrade-suggestion-people {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  list-style: disc;
}
.cabin-upgrade-subhead {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
}
.cabin-receiver-list {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.2rem;
}
.cabin-suggest-kind {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #2f5d3a;
  background: #e4f0e6;
  border-radius: 3px;
}
.cabin-suggest-kind--upgrade {
  color: #5c4a1f;
  background: #f3ecd8;
}
.cabin-manual-block {
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e6e2dc;
}
.cabin-manual-block:last-of-type {
  border-bottom: none;
}
.cabin-manual-subhead {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.cabin-missing-list {
  margin: 0;
  padding-left: 1.2rem;
  max-height: 12rem;
  overflow: auto;
}
.cabin-planning-table th,
.cabin-planning-table td {
  font-size: 14px;
  vertical-align: top;
}
tr.row-cabin-deficit td {
  background: #fde8e8;
}
tr.row-cabin-naive-warn td {
  background: #fff8e6;
}
.cabin-planning-notes {
  margin-top: 1rem;
}
.cabin-upgrade-card form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 14px;
}
.flash.inline {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  margin: 0;
}
.milestone-close-card {
  border-left: 4px solid var(--accent);
}

.milestone-close-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-top: 0.75rem;
}

.milestone-close-form__note {
  flex: 1 1 16rem;
  margin: 0;
}

.milestone-close-form__note input {
  max-width: none;
}

.milestone-close-form .btn {
  margin-top: 0;
}

.milestone-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.milestone-progress {
  margin: 0;
  padding: 0.35rem 0.75rem;
  background: #f3f4f6;
  border-radius: 999px;
  white-space: nowrap;
}

.milestone-table th,
.milestone-table td {
  vertical-align: top;
}

.milestone-table__desc {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.milestone-table__hint {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.milestone-table__meta {
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.milestone-table__row--done {
  background: #fafafa;
}

.milestone-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.milestone-badge--done {
  background: #e8f5e9;
  color: #2e7d32;
}

.milestone-badge--pending {
  background: #f3f4f6;
  color: #555;
}

.milestone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.milestone-actions .btn {
  margin-top: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem clamp(1rem, 2vw, 2.5rem) 2.5rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--lalle-white);
}

.site-footer__top {
  margin-bottom: 1rem;
}

.site-links {
  margin: 0 auto 1.75rem;
  max-width: 52rem;
  padding: 1.25rem 0 0.25rem;
  border-top: 1px solid var(--border);
}

.site-links__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  margin: 0 0 1.25rem;
}

.site-links__menu a {
  font-size: 0.92rem;
  font-weight: 600;
}

.site-links__block {
  margin: 0 0 1.15rem;
}

.site-links__heading {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-links__logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 1.35rem;
}

.site-links__logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-links__logos img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .site-links__logos img {
    height: 44px;
    max-width: 120px;
  }
}

.site-footer__logo {
  display: inline-block;
  height: 52px;
  width: auto;
  max-width: min(90vw, 280px);
  margin-bottom: 0.35rem;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-footer__company {
  margin-bottom: 1rem;
  line-height: 1.65;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__nav {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.site-footer__srf {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.srf-member-logo {
  display: inline-block;
  height: 44px;
  width: auto;
  max-width: 140px;
  vertical-align: middle;
  opacity: 0.95;
}

.site-footer a {
  color: var(--lalle-blue);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__powered {
  margin: 1.25rem auto 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  max-width: 28rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer__powered a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.site-footer__powered a:hover {
  color: var(--lalle-blue);
}

.site-footer__powered-copy {
  display: inline-block;
  margin-top: 0.15rem;
  opacity: 0.9;
}

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--lalle-blue);
  color: #f4f7fb;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.cookie-notice p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
}

.cookie-notice a {
  color: #fff;
  text-decoration: underline;
}
.cookie-notice .btn.secondary {
  background: var(--lalle-white);
  color: var(--lalle-blue);
  border: none;
  margin-top: 0;
}

.legal-page h1 {
  margin-top: 0;
}

.legal-page h2 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-page h3 {
  margin-top: 1.1rem;
  font-size: 1rem;
  font-weight: 600;
}

.legal-page p,
.legal-page li {
  line-height: 1.55;
}

.legal-page .legal-srf {
  margin-top: 1.5rem;
}

.legal-operator-terms {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-muted, #faf8f5);
  border: 1px solid var(--border, #e8e4de);
  border-radius: 6px;
}

.legal-operator-terms h2 {
  margin-top: 0;
}

.legal-operator-terms ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.legal-operator-terms li {
  margin-bottom: 0.5rem;
}

.legal-fn-ref {
  text-decoration: none;
  font-size: 0.75em;
  vertical-align: super;
  line-height: 0;
  color: var(--lalle-blue);
  font-weight: 600;
  padding-left: 0.1em;
}

.legal-footnotes {
  margin: 2rem 0 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border, #e8e4de);
  font-size: 0.9rem;
  color: #5c5c5c;
  list-style: none;
  counter-reset: legal-fn;
}

.legal-footnotes li {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.legal-footnotes li::before {
  content: counter(legal-fn);
  counter-increment: legal-fn;
  position: absolute;
  left: 0;
  font-size: 0.75em;
  top: 0.15em;
}

.legal-fn-back {
  margin-left: 0.35rem;
  text-decoration: none;
  color: var(--lalle-blue);
  font-size: 0.85em;
}

.legal-kk-resegaranti {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  background: #f5f8fb;
  border: 1px solid #c5d4e3;
  border-radius: 6px;
}

.legal-kk-resegaranti h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.legal-kk-resegaranti__links {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.legal-kk-resegaranti__links li {
  margin-bottom: 0.5rem;
}

.legal-special {
  font-style: italic;
  color: #4a4540;
  margin: 0.5rem 0 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--lalle-blue);
}

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

.refund-fields[hidden] {
  display: none !important;
}

/* Profil / kontoformulär */
.card--profile {
  max-width: 42rem;
}

.profile-form .form-section {
  margin: 0 0 1.75rem;
  padding: 0 0 1.75rem;
  border-bottom: 1px solid #ebe6de;
}

.srf-panel {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface-muted, #faf8f5);
  border: 1px solid var(--border, #e8e4de);
  border-radius: 6px;
}

.srf-panel--compact {
  font-size: 0.95rem;
}

.srf-panel h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
}

.srf-panel__lead {
  margin: 0 0 0.75rem;
}

.srf-panel__list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.srf-panel__pass {
  margin-top: 0.75rem;
}

.terms-consent-group {
  margin-top: 1rem;
  max-width: 42rem;
}

.terms-consent {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.65rem;
  width: auto !important;
  max-width: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.terms-consent__box,
.terms-consent input[type="checkbox"] {
  flex: 0 0 1.125rem;
  box-sizing: border-box;
  width: 1.125rem !important;
  height: 1.125rem !important;
  min-width: 1.125rem !important;
  max-width: 1.125rem !important;
  margin: 0.2em 0 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  accent-color: var(--lalle-blue, #00205b);
  vertical-align: top;
}

.terms-consent__box:focus,
.terms-consent input[type="checkbox"]:focus {
  outline: 2px solid var(--lalle-blue, #00205b);
  outline-offset: 2px;
  box-shadow: none !important;
  border: none !important;
}

.terms-consent__text {
  flex: 1 1 auto;
  min-width: 0;
}

.terms-consent a {
  white-space: normal;
  text-decoration: underline;
}

.profile-form .form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1rem;
}

.profile-form .form-section--subtle {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid #ebe6de;
  border-radius: 8px;
  background: #faf9f7;
}

.profile-form .form-section__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  border: none;
  padding: 0;
}

.profile-form .form-section__intro {
  margin: -0.35rem 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.profile-form .field {
  margin-bottom: 1rem;
}

.profile-form .field:last-child {
  margin-bottom: 0;
}

.profile-form .field label,
.profile-form .field-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
}

.profile-form .field label {
  margin-top: 0;
}

.profile-form .req {
  color: #c2410c;
  font-weight: 600;
}

.profile-form .field-hint {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  line-height: 1.35;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

.profile-form .field-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-form .field-row--2 {
  grid-template-columns: 1fr 1fr;
}

.profile-form .field-row--narrow {
  max-width: 28rem;
}

.profile-form .field-row .field {
  margin-bottom: 0;
}

.profile-form .field-row:last-child {
  margin-bottom: 0;
}

.profile-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e0d8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: normal;
  line-height: 1.45;
}

.profile-form .form-check input {
  width: auto;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
}

.profile-form .segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  background: #eeeae4;
  border-radius: 8px;
}

.profile-form .segmented__item {
  flex: 1 1 6rem;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}

.profile-form .segmented__item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.profile-form .segmented__item span {
  display: block;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #444;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.profile-form .segmented__item input:checked + span {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.profile-form .segmented__item input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.profile-form .refund-panel {
  margin-top: 1rem;
  padding-top: 0.25rem;
}

.profile-form .refund-panel[hidden] {
  display: none !important;
}

.profile-form .form-actions {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ebe6de;
}

.profile-form .form-actions .btn {
  margin-top: 0;
  min-width: 10rem;
}

@media (max-width: 560px) {
  .profile-form .field-row--2 {
    grid-template-columns: 1fr;
  }

  .profile-form .field-row--narrow {
    max-width: none;
  }

  .card--profile {
    max-width: none;
  }
}

/* Konto-sektion utanför profile-form */
.card--profile > .form-section--subtle {
  margin-top: 2rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid #ebe6de;
  border-radius: 8px;
  background: #faf9f7;
}

.card--profile > .form-section--subtle .form-section__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.card--profile > .form-section--subtle .form-section__intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Sparade uppgifter (utdrag) */
.data-export {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.data-export__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.data-export__section {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.data-export__section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.data-export__section h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.data-export__section h4 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
}

.data-export__booking {
  margin-bottom: 1.25rem;
}

.data-export__dl {
  display: grid;
  grid-template-columns: minmax(6.5rem, 11rem) minmax(0, 1fr);
  gap: 0.45rem 0.85rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.data-export__dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.data-export__dl dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-export__dl dd a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 520px) {
  .data-export__dl {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  .data-export__dl dt {
    margin-top: 0.55rem;
  }

  .data-export__dl dt:first-child {
    margin-top: 0;
  }

  .data-export__dl dd {
    margin-bottom: 0.15rem;
  }
}

@media print {
  body::before,
  header,
  footer,
  .site-header,
  .impersonation-banner,
  .flash,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .card,
  .data-export {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .data-export__section {
    break-inside: avoid;
  }
}
