@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  --motiw-green: #2D4F47;
  --motiw-mint: #99C0B6;
  --motiw-bg: #f5f5f5;
  --motiw-fg: #3a3a3a;
  --motiw-border: #EFF0EB;
  --motiw-clay: #E8A892;
  --motiw-steel: #768AA7;
  --sidebar-expanded: 240px;
  --sidebar-collapsed: 72px;
}

.rajdhani-light {
  font-family: "Rajdhani", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.rajdhani-regular {
  font-family: "Rajdhani", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.rajdhani-medium {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.rajdhani-semibold {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.rajdhani-bold {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-style: normal;
}

* {
  font-family: "IBM Plex Sans", sans-serif;
}

.private-mode-banner {
  display: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Rajdhani", sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  text-transform: uppercase;
  color: #2d4f47 !important;
}

.text-success {
  color: var(--motiw-green);
}

.text-primary {
  color: var(--motiw-steel);
}

h1 {
  font-size: clamp(2.07rem, 2.07rem + ((1vw - 0.2rem) * 2.691), 3.55rem) !important;
}

h2 {
  font-size: clamp(1.73rem, 1.73rem + ((1vw - 0.2rem) * 1.691), 2.66rem) !important;
}

h4 {
  text-transform: none;
}

h5 {
  font-family: "Rajdhani", sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
  color: #99c0b6 !important;
  font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.236), 1.13rem) !important;
}

body,
span,
p,
div {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-weight: 400 !important;
  color: #3a3a3a !important;
  /* font-size:clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.591), 1.2rem)!important; */
}

.accordion-body p {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-weight: 400 !important;
  color: #3a3a3a !important;
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.591), 1.2rem)!important
}

.accordion-body a {
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.591), 1.2rem)!important;
  text-decoration: underline;
}

.accordion-body li {
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.591), 1.2rem)!important;
  list-style-position: outside!important;
}

a {
  font-family: "IBM Plex Sans", sans-serif !important;
}

.crmEntityFormView {
  border: none !important;
}

.btn:disabled{
  color: var(--motiw-mint);
  border: 1px solid var(--motiw-mint);
  background: none;
}

.projekter-page .btn-send:disabled {
  background: rgba(45, 79, 71, 0.08);
  color: var(--motiw-green) !important;
  border: 1px solid rgba(45, 79, 71, 0.15);
  opacity: 0.7;
  cursor: not-allowed;
}

.projekter-page .btn-send:disabled span {
  color: var(--motiw-green) !important;
}

/* Utility (used by ticket.html to avoid inline styles) */
.is-hidden {
  display: none;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 2px solid var(--motiw-mint);
  color: var(--motiw-green) !important;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
  z-index: 2000;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: none;
}

.btn-outline-primary{
  color: var(--motiw-mint);
  border-color: var(--motiw-mint);
}

.btn-outline-primary:hover{
  color: var(--motiw-bg);
  background: var(--motiw-mint);
  border-color: var(--motiw-mint);
}

.btn-primary:hover,.button1:hover{
  background-image: linear-gradient(rgb(0 0 0 / 5%) 0 0);
  background-color: var(--motiw-mint);
  color: #fff;
}

.btn-check:checked+.btn{
    color: var(--motiw-bg);
    background-color: var(--motiw-mint);
    border-color: var(--motiw-mint);
}

.btn-check+.btn:hover {
    color: var(--motiw-bg);
    background-color: var(--motiw-mint);
    border-color: var(--motiw-mint);
}

.btn-cancel {
  background-color: var(--motiw-clay);
  border-radius: 2px;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 600;
}

.btn-cancel:hover {
  background-color: var(--motiw-clay);
}

/* Når "Ja" (urgentYes) er valgt → varm ler */
#urgentYes:checked + label {
  background-color: #E8A892; /* varm ler */
  border-color: #E8A892;
  color: #fff;
}

/* Når "Nej" (urgentNo) er valgt → mint */
#urgentNo:checked + label {
  background-color: #99C0B6; /* mint */
  border-color: #99C0B6;
  color: #fff;
}

.button1:active{
  color: #fff !important;
}

.tooltip-inner {
  background-color: var(--motiw-green) !important;
  color: var(--motiw-bg) !important;
}

.motiwContainer {
  background-color: var(--motiw-bg);
  padding: 2rem;
  border-radius: 12px;
  margin:0px;
}

.navbar-dark .navbar-nav>li>a:hover {
  background-color: transparent !important;
  text-decoration: none !important;
  color: #3a3a3a !important;
}

.navbar-dark .navbar-nav>li>a,
.navbar-dark .navbar-nav>li.dropdown>a {
  color: #3a3a3a !important;
}

.navbar-dark .navbar-nav a.show,
.navbar-dark .navbar-nav a.dropdown-toggle.show {
  text-decoration: none !important;
  background-color: transparent !important;
  color: #2d4f47 !important;
}

.static-top.navbar-dark {
  background-color: transparent !important;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.navbar-dark .navbar-nav>li>a:focus,
.navbar-dark .navbar-nav>li.dropdown>a:focus {
  background-color: transparent !important;
}

.fa {
  font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
  font-weight: var(--fa-style, 900) !important;
}

footer .footer-bottom {
  background-color: #2f2f2f;

}

footer .footer-bottom p {
  color: #ffffff !important;
}


.list-group-item {
  background-color: #f5f5f5 !important;
}

.active>.page-link,
.page-link.active {
  background-color: #99c0b6 !important;
  border-color: transparent !important;
}


.closedTicket {
  background-color: #E8A892;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 600 !important;
  padding: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   TICKET PAGE – Modern Design System
   Scoped under .ticket-page so other portal pages
   are not affected.
   ═══════════════════════════════════════════════════ */

/* --- Design tokens --- */
.ticket-page {
  --t-surface: #ffffff;
  --t-surface-muted: #f8faf9;
  --t-border: rgba(0, 0, 0, 0.07);
  --t-radius: 16px;
  --t-radius-sm: 12px;
  --t-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  --t-shadow-hover: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --t-transition: 0.2s cubic-bezier(.4,0,.2,1);
}

/* --- Global scoped resets --- */
.ticket-page :where(a, button, input, textarea, select, .dropdown-item):focus-visible {
  outline: 2px solid var(--motiw-mint);
  outline-offset: 2px;
}

.ticket-page a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ticket-page a:hover {
  color: var(--motiw-green) !important;
}

.ticket-page .btn {
  border-radius: var(--t-radius-sm);
  font-weight: 600;
  transition: all var(--t-transition);
}

/* ── Header ── */
.ticket-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-left: 4px solid var(--motiw-mint);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  margin-bottom: 20px;
}

.ticket-header__left {
  min-width: 0;
}

.ticket-header__number {
  line-height: 1.05;
}

.ticket-header__subject {
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--motiw-fg) !important;
  line-height: 1.4;
}

/* ── Action buttons (visible list) ── */
.ticket-header__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.ticket-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--t-radius-sm);
  white-space: nowrap;
  transition: all var(--t-transition);
  border: 1px solid var(--t-border);
  background: var(--t-surface-muted);
}

.ticket-action-btn--ai {
  color: #667eea !important;
  border-color: rgba(102, 126, 234, 0.25);
}

.ticket-action-btn--ai:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.4);
}

.ticket-action-btn--resolve {
  color: var(--motiw-green) !important;
  border-color: rgba(153, 192, 182, 0.4);
}

.ticket-action-btn--resolve:hover {
  background: rgba(153, 192, 182, 0.14);
  border-color: var(--motiw-mint);
}

.ticket-action-btn--cancel {
  color: var(--motiw-clay) !important;
  border-color: rgba(232, 168, 146, 0.35);
  font-weight: 700;
}

.ticket-action-btn--cancel:hover {
  background: rgba(232, 168, 146, 0.12);
  border-color: rgba(232, 168, 146, 0.6);
}

/* ── Stat Cards (meta row) ── */
.ticket-meta-row {
  margin-bottom: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  text-align: left;
  text-decoration: none;
  transition: all var(--t-transition);
  cursor: default;
}

.stat-card--interactive {
  cursor: pointer;
  border: none;
}

.stat-card--interactive:hover {
  box-shadow: var(--t-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--motiw-mint);
}

.stat-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--t-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff !important;
}

.stat-card__icon--person  { background: var(--motiw-steel); }
.stat-card__icon--estimate { background: var(--motiw-mint); }
.stat-card__icon--time    { background: var(--motiw-green); }

.stat-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stat-card__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--motiw-mint) !important;
}

.stat-card__value {
  font-family: "Rajdhani", sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem;
  color: var(--motiw-green) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projekt-card .stat-card__value{
  font-size: 1.5rem;
}

.stat-card__arrow {
  margin-left: auto;
  color: var(--motiw-mint) !important;
  font-size: 1rem;
  transition: transform var(--t-transition);
}

.stat-card--interactive:hover .stat-card__arrow {
  transform: translateX(3px);
}

/* ── Chat area ── */
.ticket-page .chat {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.chat-compose {
  padding: 20px 22px;
}

.chat-compose__title {
  margin-bottom: 12px !important;
}

.chat-compose__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.chat-compose__file {
  flex-shrink: 0;
}

.chat-file-btn {
  border: 1px dashed var(--motiw-mint) !important;
  color: var(--motiw-green) !important;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t-transition);
}

.chat-file-btn:hover {
  background: rgba(153, 192, 182, 0.14);
  border-style: solid !important;
}

.btn-send {
  background: var(--motiw-green);
  color: #fff !important;
  padding: 10px 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-send span { color: #fff !important; }

.btn-send:hover {
  background: var(--motiw-mint);
  color: var(--motiw-green) !important;
  box-shadow: var(--t-shadow-hover);
}

.btn-send:hover span { color: var(--motiw-green) !important; }

/* ── Dropzone ── */
.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  margin-top: 14px;
  padding: 20px;
  border: 2px dashed rgba(153, 192, 182, 0.6);
  border-radius: var(--t-radius);
  background: var(--t-surface-muted);
  cursor: pointer;
  transition: all var(--t-transition);
  text-align: center;
}

.dropzone:hover {
  border-color: var(--motiw-mint);
  background: rgba(153, 192, 182, 0.08);
}

.dropzone:focus-visible {
  outline: 2px solid var(--motiw-mint);
  outline-offset: 2px;
}

.dropzone--drag-over {
  border-color: var(--motiw-green);
  border-style: solid;
  background: rgba(153, 192, 182, 0.14);
  transform: scale(1.01);
}

.dropzone--drag-over .dropzone__idle { display: none; }
.dropzone--drag-over .dropzone__active { display: flex; }

.dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
}

.dropzone__idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dropzone__active {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--motiw-green) !important;
  font-weight: 700;
}

.dropzone__active span { color: var(--motiw-green) !important; }

.dropzone__icon {
  color: var(--motiw-mint);
  margin-bottom: 2px;
}

.dropzone__text {
  font-weight: 700;
  font-size: 14px;
  color: var(--motiw-green) !important;
}

.dropzone__hint {
  font-size: 12px;
  color: rgba(58, 58, 58, 0.6) !important;
}

.dropzone__hint u {
  color: var(--motiw-mint) !important;
  text-decoration-color: var(--motiw-mint);
  font-weight: 600;
}

/* ── Dropzone File List ── */
.dropzone-file-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropzone-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--t-surface-muted);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm);
  font-size: 13px;
  animation: dropzoneSlideIn 0.2s ease-out;
}

@keyframes dropzoneSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropzone-file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--motiw-fg) !important;
  font-weight: 500;
}

.dropzone-file-name i {
  color: var(--motiw-steel) !important;
  flex-shrink: 0;
}

.dropzone-file-name small {
  color: rgba(58, 58, 58, 0.55) !important;
}

.dropzone-file-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--motiw-clay) !important;
  cursor: pointer;
  transition: background var(--t-transition);
}

.dropzone-file-remove:hover {
  background: rgba(232, 168, 146, 0.18);
}

.dropzone-file-remove:focus-visible {
  outline: 2px solid var(--motiw-mint);
  outline-offset: 2px;
}

.ticket-page .form-label {
  font-weight: 700;
  color: var(--motiw-green) !important;
  font-size: 13px;
}

.ticket-page input.form-control,
.ticket-page textarea,
.ticket-page .form-control {
  border-radius: var(--t-radius-sm);
  border-color: rgba(153, 192, 182, 0.65);
}

.ticket-page input.form-control:focus,
.ticket-page textarea:focus,
.ticket-page .form-control:focus {
  border-color: var(--motiw-mint);
  box-shadow: 0 0 0 0.2rem rgba(153, 192, 182, 0.2);
}

/* ── Messages ── */
.ticket-page .messages {
  padding: 0;
  min-height: 80px;
}

.messages__header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--t-border);
}

.messages__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--motiw-green) !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.messages__title i {
  font-size: 17px;
  opacity: 0.7;
}

.messages__thread {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
}

/* ── Chat Row (message wrapper) ── */
.chat-row {
  display: flex;
  max-width: 100%;
  width: 100%;
  animation: chatRowIn .3s ease-out both;
}

.chat-row.outgoing {
  flex-direction: row;
}

.chat-row.incoming {
  flex-direction: row;
}

@keyframes chatRowIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card (the speech bubble) */
.chat-row__card {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow var(--t-transition);
}

.chat-row__card:hover {
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

/* Outgoing: subtle green tint, thin green left border */
.chat-row__card.outgoing {
  background: rgba(45, 79, 71, 0.06);
  border: 1px solid rgba(45, 79, 71, 0.1);
  border-left: 3px solid var(--motiw-green);
}

/* Incoming: subtle steel tint, thin steel right border */
.chat-row__card.incoming {
  background: rgba(118, 138, 167, 0.06);
  border: 1px solid rgba(118, 138, 167, 0.12);
  border-right: 3px solid var(--motiw-steel);
}

/* ── Top line: sender + badge + time ── */
.chat-row__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.chat-row__sender {
  font-weight: 700;
  font-size: 13.5px;
}

.chat-row__card.incoming .chat-row__sender {
  color: var(--motiw-green) !important;
}

.chat-row__card.outgoing .chat-row__sender {
  color: var(--motiw-green) !important;
}

/* Time */
.chat-row__time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: auto;
}

.chat-row__card.incoming .chat-row__time {
  color: rgba(58, 58, 58, 0.4) !important;
}

.chat-row__card.outgoing .chat-row__time {
  color: rgba(58, 58, 58, 0.4) !important;
}

/* Recipients meta line */
.chat-row__recipients {
  font-size: 11px;
  line-height: 1.3;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.chat-row__card.incoming .chat-row__recipients {
  color: rgba(58, 58, 58, 0.45) !important;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.chat-row__card.outgoing .chat-row__recipients {
  color: rgba(58, 58, 58, 0.45) !important;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Message body / content */
.chat-row__body {
  font-size: 14px;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.chat-row__card.incoming .chat-row__body,
.chat-row__card.incoming .chat-row__body p,
.chat-row__card.incoming .chat-row__body li,
.chat-row__card.incoming .chat-row__body span,
.chat-row__card.incoming .chat-row__body div {
  color: var(--motiw-fg) !important;
  font-size: 14px!important;
  background-color: transparent!important;
}

.chat-row__card.outgoing .chat-row__body,
.chat-row__card.outgoing .chat-row__body p,
.chat-row__card.outgoing .chat-row__body li,
.chat-row__card.outgoing .chat-row__body span,
.chat-row__card.outgoing .chat-row__body div {
  color: var(--motiw-fg) !important;
   background-color: transparent!important;
}

.chat-row__body p {
  margin-bottom: 0.35em;
}

.chat-row__body p:last-child {
  margin-bottom: 0;
}

.chat-row__body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 6px 0;
  cursor: zoom-in;
}

.chat-row__body hr {
  margin: 0.5rem 0;
  opacity: 0.15;
}

/* Attachments */
.chat-row__files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
}

.chat-row__card.incoming .chat-row__files {
  border-top: 1px solid rgba(0,0,0,.06);
}

.chat-row__card.outgoing .chat-row__files {
  border-top: 1px solid rgba(0,0,0,.06);
}

.chat-row__file {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--t-transition);
}

.chat-row__card.incoming .chat-row__file {
  background: var(--t-surface-muted);
  border: 1px solid var(--t-border);
  color: var(--motiw-steel) !important;
}

.chat-row__card.incoming .chat-row__file:hover {
  background: rgba(118, 138, 167, 0.12);
  color: var(--motiw-green) !important;
}

.chat-row__card.outgoing .chat-row__file {
  background: var(--t-surface-muted);
  border: 1px solid var(--t-border);
  color: var(--motiw-green) !important;
}

.chat-row__card.outgoing .chat-row__file:hover {
  background: rgba(45, 79, 71, 0.1);
  color: var(--motiw-green) !important;
}

.chat-row__file i {
  font-size: 13px;
}

/* ── Load More / Reopen ── */
.btn-load-more {
  background: transparent;
  border: 1px dashed var(--motiw-mint);
  color: var(--motiw-green) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px auto 0;
  padding: 10px 20px;
}

.btn-load-more:hover {
  background: rgba(153, 192, 182, 0.12);
  border-style: solid;
}

.ticket-closed-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(232, 168, 146, 0.12);
  border: 1px solid rgba(232, 168, 146, 0.35);
  border-radius: var(--t-radius);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ticket-closed-banner > i {
  color: var(--motiw-clay) !important;
  font-size: 1.2rem;
}

.ticket-closed-banner > span {
  font-weight: 700;
  color: var(--motiw-green) !important;
}

.btn-reopen {
  margin-left: auto;
  background: var(--motiw-green);
  color: #fff !important;
  font-weight: 700;
  padding: 8px 18px;
  border: none;
}

.btn-reopen:hover {
  background: var(--motiw-mint);
  color: var(--motiw-green) !important;
}

/* ── Loader dots ── */
.ticket-loader {
  display: inline-flex;
  gap: 6px;
  padding: 16px 0;
}

.ticket-loader__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--motiw-mint);
  animation: ticketBounce 1.2s infinite ease-in-out both;
}

.ticket-loader__dot:nth-child(2) { animation-delay: 0.16s; }
.ticket-loader__dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes ticketBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Rich text editor ── */
.ticket-page .trumbowyg-box {
  border-color: rgba(153, 192, 182, 0.65);
  border-radius: var(--t-radius-sm);
  overflow: hidden;
  transition: border-color var(--t-transition), box-shadow var(--t-transition);
}

.ticket-page .trumbowyg-box:focus-within {
  border-color: var(--motiw-mint);
  box-shadow: 0 0 0 0.2rem rgba(153, 192, 182, 0.2);
}

.ticket-page .trumbowyg-editor,
.ticket-page .trumbowyg-textarea {
  border-radius: var(--t-radius-sm);
  background: var(--t-surface);
}

.ticket-page .trumbowyg-button-pane {
  background: var(--t-surface-muted);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

/* ── Modals ── */
.ticket-page .modal-content {
  border-radius: var(--t-radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.ticket-page .modal-header {
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 18px 24px;
}

.ticket-page .modal-body {
  padding: 20px 24px;
}

.ticket-page .modal-footer {
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 14px 24px;
}

/* ── Tables ── */
.ticket-page .table {
  border-color: rgba(0,0,0,.06);
  margin-bottom: 0;
}

.ticket-page .table thead {
  background: var(--t-surface-muted);
}

.ticket-page .table thead th {
  font-weight: 700;
  color: var(--motiw-green);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 16px;
  border-bottom-width: 2px;
  border-bottom-color: var(--motiw-mint);
}

.ticket-page .table tbody td {
  vertical-align: middle;
  padding: 12px 16px;
}

.ticket-page .table tbody tr {
  transition: background var(--t-transition);
}

.ticket-page .table tbody tr:hover {
  background-color: rgba(153, 192, 182, 0.1);
}

/* ── Success toast ── */
.success-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin: 16px 0;
  background: linear-gradient(135deg, var(--motiw-green) 0%, #3a6b5f 100%);
  border-radius: var(--t-radius);
  box-shadow: 0 4px 20px rgba(45, 79, 71, 0.3);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-toast.is-hidden {
  display: none;
}

.success-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.success-toast__icon {
  font-size: 1.5rem;
  color: var(--motiw-mint) !important;
  flex-shrink: 0;
}

.success-toast__text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #fff !important;
}

.success-toast__text strong {
  color: #fff !important;
  font-weight: 700 !important;
}

.success-toast__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8) !important;
  cursor: pointer;
  transition: background 0.2s ease;
}

.success-toast__close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff !important;
}

/* ── AI summary helpers ── */
.ai-summary-content {
  flex: 1;
  min-width: 0;
}

.ai-summary-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--motiw-fg) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ticket-header {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .ticket-header__actions {\n    flex-direction: row;\n    flex-wrap: wrap;\n  }\n\n  .ticket-action-btn {\n    flex: 1;\n    justify-content: center;\n    font-size: 12px;\n    padding: 8px 10px;\n  }

  .chat-compose__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-send { width: 100%; justify-content: center; }

  .ticket-closed-banner {
    flex-direction: column;
    text-align: center;
  }

  .btn-reopen { margin-left: 0; width: 100%; }

  .chat-row { max-width: 100%; }

  .chat-row__card { padding: 12px 14px; border-radius: 12px; }
  .chat-row__top { gap: 6px; }
  .messages__thread { padding: 14px 12px; }
}


.chat {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  margin-top: 20px;
}

/* Legacy selectors kept for backward compat – hidden from new layout */
.chat-message-block {
  display: none;
}

.sender-label,
.reciever-label,
.date-label {
  display: none;
}

/* Legacy message base kept for any non-ticket pages */
.message {
  padding: 10px 14px;
  border-radius: 16px;
  width: 90%;
  line-height: 1.4;
  word-wrap: break-word;
  font-size: 15px;
}

input[type="text"]{
  border: 1px solid var(--motiw-mint);
}

input.form-control::placeholder{
  color: #808080 !important;
  opacity: 1;
}

.boolean-radio-cell .table-info label {
  font-weight: 600;
  text-transform: uppercase;
  color: #495057;
}

/* Layout spacing */
.boolean-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hide the raw radio buttons (we’ll style labels as buttons) */
.boolean-radio input[type="radio"] {
  display: none;
}

/* Base button look for both labels */
.boolean-radio label {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 2px solid transparent;
  border-radius: 0.375rem; /* matches Bootstrap .btn rounded corners */
  font-weight: 500;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: all 0.2s ease-in-out;
}

/* Default “Nej” button */
#motiw_angivsomhaster_0 + label {
  background-color: #f8f9fa; /* Bootstrap light gray */
  color: #6c757d; /* text-secondary */
  border-color: #ced4da;
}

#motiw_angivsomhaster_0 + label:hover {
  background-color: #e2e6ea;
}

/* “Ja (Haster)” button — highlight with Bootstrap danger theme */
#motiw_angivsomhaster_1 + label {
  background-color: #fff;
  color: #dc3545;
  border-color: #dc3545;
  font-weight: 600;
}

#motiw_angivsomhaster_1 + label:hover {
  background-color: #dc3545;
  color: #fff;
}

/* Checked state — make it look pressed */
.boolean-radio input[type="radio"]:checked + label {
  background-color: #dc3545!important;
  color: #fff!important;
  border-color: #dc3545!important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#SLAAlert {
margin-top: 20px;
}

/* Make table rows clickable with pointer cursor */
tbody tr {
  cursor: pointer;
  transition: background-color 0.2s;
}

/* Change background color on hover */
tbody tr:hover {
  background-color: white;
}

/* Common message style (legacy – non-ticket pages) */
.message {
  padding: 10px 14px;
  border-radius: 16px;
  width: 90%;
  line-height: 1.4;
  word-wrap: break-word;
  font-size: 15px;
}

.message p {
  font-size: 14px !important;
}

.message hr {
  margin: 0.5rem 0;
}

/* Incoming (left side) */
.message.incoming {
  align-self: flex-end;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333;
}

/* Outgoing (right side) */
.message.outgoing {
  align-self: flex-start;
  background: var(--motiw-green);
}

.message.outgoing p { color: #fff !important; }
.message.outgoing span { color: #fff !important; }
.message.outgoing li { color: #fff !important; }
.message.outgoing div { color: #fff !important; }

.image-modal {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .2s ease;
}

.image-modal.is-visible {
  display: flex;
  opacity: 1;
}

.image-modal-content img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  object-fit: contain;
}

.message.incoming img {
  width: auto;
  max-width: 90%;
}

.message.outgoing img {
  width: auto;
  max-width: 90%;
}

.attachment-item {
  text-align: right;
}

.attachment-link {
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.591), 0.5rem) !important;
}

.accordion-header h1, h2, h3, h4, h5 
{ 
  margin-top:0;
}

.accordion-button:not(.collapsed) {
background-color: #99C0B6;
color: #2d4f47 !important;
}


/* ESTIMAT BOX */
/* Container */
.estimate-change {
  background: #ffffff;
  border-radius: 14px;
   position: relative; /* 👈 important */
}

/* Title + text */
.estimate-change__title {
  margin: 0;
  font-weight: 700;
  color: #2D4F47; /* Motiw Nordic green */
}

.estimate-change__text {
  margin: 0;
  color: #3A3A3A; /* Motiw dark grey */
  line-height: 1.45;
  max-width: 70ch;
  font-size: 14px;
}

/* The “+10,00 timer” pill on the right */
.estimate-change__delta {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(153, 192, 182, 0.25);
  color: #2D4F47;
  white-space: nowrap;
}

.estimate-change-positive__delta {
   background: var(--motiw-mint)
}

.estimate-change-negative__delta {
   background: var(--motiw-clay)
}

/* Buttons */
.btn-approve {
  background: #99C0B6; /* mint */
  border-color: #99C0B6;
  color: #2D4F47;
  font-weight: 700;
}

.btn-approve:hover,
.btn-approve:focus {
  filter: brightness(0.95);
  color: #2D4F47;
}

.btn-reject {
  background: rgba(232, 168, 146, 0.20); /* dusty rose light */
  border: 1px solid rgba(232, 168, 146, 0.65);
  color: #2D4F47;
  font-weight: 700;
}

.btn-reject:hover,
.btn-reject:focus {
  background: rgba(232, 168, 146, 0.28);
  color: #2D4F47;
}




/* === SIDEBAR === */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-expanded);
  height: 100vh;
  max-height: 100vh;
  background: #f5f5f5;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  z-index: 1000;
  overflow: hidden;
  overflow-y: auto;
}

/* Safari fallback (ældre iOS) */
@supports (-webkit-touch-callout: none) {
  .sidebar {
    height: -webkit-fill-available;  
    max-height: -webkit-fill-available;
  }
}

/* Android/Moderne: undgå “adressebar spiser højden” */
@supports (height: 100svh) {
  .sidebar {            
    height: 100svh;
    max-height: 100svh;
  }
}

/* Bedre: brug dynamisk viewport hvor den findes */
@supports (height: 100dvh) {
  .sidebar {
    height: 100dvh;
    max-height: 100dvh;
  }
}

body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
}

/* Topbar */
.sidebar-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 52px;
  padding: 8px 12px;
  margin-left: 0;
}

.sidebar-collapsed .sidebar-topbar {
  justify-content: center;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--motiw-fg);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sidebar-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sidebar-toggle:focus {
  outline: 2px solid var(--motiw-mint);
  outline-offset: 2px;
}

.sidebar-toggle svg path {
  fill: currentColor;
}

/* Backdrop (mobil) */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 990;
  /* under .sidebar (1000), over indhold */
  display: none;
}

body.sidebar-open #sidebarBackdrop {
  display: block;
}

/* Global mobil-toggle (kun mobil) */
.mobile-toggle {
  position: fixed;
  left: 14px;
  top: 8px;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: var(--motiw-fg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-toggle:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08);
}

.mobile-toggle svg path {
  fill: currentColor;
}

body.sidebar-open .mobile-toggle {
  box-shadow: none;
}

#sidebarToggle, 
#globalSidebarToggle {
  outline: none;
}

#sidebarToggle:focus, 
#globalSidebarToggle:focus {
  outline: none;
}

#sidebarToggle {
  -webkit-tap-highlight-color: transparent;
}

/* Navigation */
.sidebar-nav {
  padding: 12px 10px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--motiw-fg);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-size: 13.5px;
  font-weight: 500;
}

.sidebar-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.sidebar-link.active {
  background: var(--motiw-green);
  color: #fff !important;
  font-weight: 600;
}

.sidebar-link.active .label {
  color: #fff !important;
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  max-width: 100%;
  max-height: 100%;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}

.sidebar-link:hover .icon img {
  opacity: 0.85;
}

.sidebar-link.active .icon img {
  opacity: 1;
  filter: brightness(0) invert(1);
}

a.sidebar-link:hover {
  text-decoration: none !important;
}

.icon-fallback {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  background: rgba(0, 0, 0, 0.06);
  color: var(--motiw-fg);
}

.sidebar-link.active .icon-fallback {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Labels kun i udfoldet sidebar */
.label {
  display: inline-block;
}

body.sidebar-collapsed .label {
  display: none;
}

body.sidebar-collapsed .sidebar-link,
body.sidebar-collapsed .sidebar-cta {
  justify-content: center;
  padding: 10px;
}

body.sidebar-collapsed .sidebar-link.active {
  background: var(--motiw-green);
}

/* Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 8px 10px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-footer .sidebar-link {
  font-size: 13px;
  color: rgba(58, 58, 58, 0.6);
}

.profile-sidebar-link {
  margin-left: 3px;
}

.sidebar-footer .sidebar-link:hover {
  color: var(--motiw-fg);
}

.sidebar-footer .sidebar-link .icon img {
  opacity: 0.5;
}

.sidebar-footer .sidebar-link:hover .icon img {
  opacity: 0.75;
}


.sidebar-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--motiw-green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.15s ease;
}

.sidebar-cta:hover {
  background: #3a6b5f;
  color: #fff;
}

body.sidebar-collapsed .sidebar-cta .label {
  display: none;
}

/* === MAIN CONTENT & FOOTER === */

/* Hovedindhold */
#mainContent {
  margin-left: var(--sidebar-expanded);
  transition: margin-left 0.2s ease;
  padding: 2rem 2rem 2rem 2rem;
}

body.sidebar-collapsed #mainContent {
  margin-left: var(--sidebar-collapsed);
}

/* Footer */
.footer {
  margin-left: var(--sidebar-expanded);
  transition: margin-left 0.2s ease;
  background: var(--motiw-bg);
  border-top: 1px solid rgba(0, 0, 0, .06);
  color: var(--motiw-fg);
}

body.sidebar-collapsed .footer {
  margin-left: var(--sidebar-collapsed);
}


/* Mobil */
@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .sidebar {
    width: 80%;
    max-width: 300px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: #fff;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  #mainContent,
  .footer {
    margin-left: 0 !important;
  }
}



@media (max-width: 767.98px) {
  .responsive-stack thead { display: none; }
  .responsive-stack, 
  .responsive-stack tbody, 
  .responsive-stack tr, 
  .responsive-stack td { display: block; width: 100%; }
  .responsive-stack tr { 
    background: var(--motiw-bg);
    border-radius: 12px; 
    padding: 12px 14px; 
    margin-bottom: 12px; 
    box-shadow: 0 0 0 1px rgba(0,0,0,.05) inset;
  }
  .responsive-stack td {
    display: flex; 
    justify-content: space-between; 
    gap: 12px; 
    padding: 6px 0; 
    border: 0;
  }
  .responsive-stack td::before {
    content: attr(data-label);
    font-weight: 600; 
    color: #2D4F47;
  }
}

.trumbowyg-box p{
  font-size: 16px;
}







@keyframes borderGlow {
  0%, 100% { 
    background-position: 0% 50%;
  }
  25% { 
    background-position: 50% 100%;
  }
  50% { 
    background-position: 100% 50%;
  }
  75% { 
    background-position: 50% 0%;
  }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.ai-summary-box {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #fafbff 0%, #f8fafc 50%, #faf8ff 100%);
  border-radius: 14px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  z-index: 1;
  max-width: 600px;
  width: 90%;
}
.ai-summary-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(90deg, 
    #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b
  );
  background-size: 300% 300%;
  animation: borderGlow 4s ease-in-out infinite;
  z-index: -2;
}
.ai-summary-box::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fafbff 0%, #f8fafc 50%, #faf8ff 100%);
  z-index: -1;
}
.ai-icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  animation: borderGlow 3s ease-in-out infinite;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}
.ai-label {
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  animation: shimmer 3s linear infinite;
}
.ai-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 2s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}
.ai-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.ai-modal-overlay.visible {
  display: flex;
}
.ai-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  z-index: 10;
}
.ai-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #334155;
}
.ai-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white!important;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    float: right;
}
.ai-toggle-btn > span {
    color: white!important;
}
.ai-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.ai-toggle-btn svg {
  transition: transform 0.3s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.ai-modal-overlay.visible {
  animation: modalFadeIn 0.25s ease-out;
}
.ai-modal-overlay.visible .ai-summary-box {
  animation: modalSlideIn 0.3s ease-out;
}

/* ═══════════════════════════════════════════════════
   PROJEKTER PAGE – Matches Ticket Page design system
   ═══════════════════════════════════════════════════ */

.projekter-page {
  --t-surface: #ffffff;
  --t-surface-muted: #f8faf9;
  --t-border: rgba(0, 0, 0, 0.07);
  --t-radius: 16px;
  --t-radius-sm: 12px;
  --t-shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  /* --t-shadow-hover: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); */
  /* --t-shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); */
  --t-transition: 0.2s cubic-bezier(.4,0,.2,1);
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Scoped resets */
.projekter-page :where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--motiw-mint);
  outline-offset: 2px;
}

.projekter-page a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.projekter-page a:hover {
  color: var(--motiw-green) !important;
}

.projekter-page .btn {
  border-radius: var(--t-radius-sm);
  font-weight: 600;
  transition: all var(--t-transition);
}

/* ── Projekt card ── */
.projekt-card {
  background: var(--t-surface);
  border: none;
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  padding: 24px;
  margin-bottom: 24px;
  transition: box-shadow var(--t-transition);
}

/* .projekt-card:hover {
  box-shadow: var(--t-shadow-hover);
} */

.projekt-card__header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--t-border);
}

.projekt-card__title {
  font-size: 1.5rem;
  color: var(--motiw-green);
  margin: 0;
  line-height: 1.2;
}

/* ── Sections inside cards ── */
.projekt-card__section {
  background: var(--t-surface-muted);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm);
  padding: 20px;
  margin-top: 16px;
}

.projekt-card__section-title {
  font-size: 1.1rem;
  color: var(--motiw-green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Form controls ── */
.projekter-page .form-control {
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm);
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color var(--t-transition), box-shadow var(--t-transition);
}

.projekter-page .form-control:focus {
  border-color: var(--motiw-mint);
  box-shadow: 0 0 0 3px rgba(153,192,182,0.25);
}

.projekter-page .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--motiw-fg);
  margin-bottom: 6px;
}

.projekt-checkbox {
  padding: 10px 0 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.projekt-checkbox .form-check-input {
  position: relative;
  width: 2.8em;
  height: 1.5em;
  margin: 0;
  border: 2px solid rgba(118, 138, 167, 0.4);
  border-radius: 1em;
  background-color: rgba(118, 138, 167, 0.12);
  background-image: none;
  cursor: pointer;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
}

.projekt-checkbox .form-check-input::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.5em - 8px);
  height: calc(1.5em - 8px);
  border-radius: 50%;
  background: var(--motiw-steel);
  transition: transform 0.25s ease, background 0.25s ease;
}

.projekt-checkbox .form-check-input:checked {
  background-color: rgba(45, 79, 71, 0.12);
  border-color: var(--motiw-green);
}

.projekt-checkbox .form-check-input:checked::before {
  transform: translateX(1.3em);
  background: var(--motiw-green);
}

.projekt-checkbox .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(153, 192, 182, 0.25);
  outline: none;
}

.projekt-checkbox .form-check-label {
  font-size: 0.95rem;
  color: var(--motiw-fg);
  cursor: pointer;
  line-height: 1.4;
}

/* ── Table ── */
.projekter-page .table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 0.92rem;
}

.projekter-page .table thead th {
  background: var(--motiw-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border: none;
  white-space: nowrap;
}

.projekter-page .table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.projekter-page .table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.projekter-page .table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--t-border);
  color: var(--motiw-fg);
  vertical-align: middle;
}

.projekter-page .table tbody tr:hover td {
  background: rgba(153,192,182,0.08);
}

.projekter-page .table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

.projekter-page .table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

/* ── Ticket link in table ── */
.projekt-ticket-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--motiw-green);
  text-decoration: none;
  transition: color var(--t-transition);
}

.projekt-ticket-link:hover {
  color: var(--motiw-mint) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .projekter-page {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .projekt-card {
    padding: 16px;
  }

  .projekt-card__section {
    padding: 14px;
  }

  .projekter-page .responsive-stack thead {
    display: none;
  }

  .projekter-page .responsive-stack tbody tr {
    display: block;
    margin-bottom: 12px;
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-sm);
    padding: 12px;
    box-shadow: var(--t-shadow);
  }

  .projekter-page .responsive-stack tbody td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.9rem;
  }

  .projekter-page .responsive-stack tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--motiw-green);
    margin-right: 12px;
    flex-shrink: 0;
  }

  .projekter-page .responsive-stack tbody td:last-child {
    border-bottom: none;
  }
}

/* ═══════════════════════════════════════════════════
   MINE TICKETS PAGE – Matches design system
   ═══════════════════════════════════════════════════ */

.minetickets-page {
  --t-surface: #ffffff;
  --t-surface-muted: #f8faf9;
  --t-border: rgba(0, 0, 0, 0.07);
  --t-radius: 16px;
  --t-radius-sm: 12px;
  --t-shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  /* --t-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04); */
  /* --t-shadow-hover: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); */
  --t-transition: 0.2s cubic-bezier(.4,0,.2,1);
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Scoped resets */
.minetickets-page :where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--motiw-mint);
  outline-offset: 2px;
}

.minetickets-page a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.minetickets-page a:hover {
  color: var(--motiw-green) !important;
}

.minetickets-page .btn {
  border-radius: var(--t-radius-sm);
  font-weight: 600;
  transition: all var(--t-transition);
}

/* ── Tickets section card ── */
.tickets-section {
  background: var(--t-surface);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  padding: 24px;
  margin-bottom: 24px;
  transition: box-shadow var(--t-transition);
}

/* .tickets-section:hover {
  box-shadow: var(--t-shadow-hover);
} */

.tickets-create-btn {
  text-decoration: none !important;
}

.tickets-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tickets-section__title {
  font-size: 1.3rem;
  color: var(--motiw-green);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tickets-section__title i {
  font-size: 1.1rem;
  opacity: 0.7;
}

/* ── Search input ── */
.tickets-search {
  position: relative;
  min-width: 220px;
  flex: 0 1 320px;
}

.tickets-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--motiw-mint) !important;
  font-size: 0.9rem;
  pointer-events: none;
}

.tickets-search__input {
  padding-left: 38px !important;
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm);
  font-size: 0.92rem;
  transition: border-color var(--t-transition), box-shadow var(--t-transition);
}

.tickets-search__input:focus {
  border-color: var(--motiw-mint);
  box-shadow: 0 0 0 3px rgba(153,192,182,0.25);
}

.tickets-search__input::placeholder {
  color: #aaa !important;
  font-weight: 400;
}

/* ── Table ── */
.minetickets-page .table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 0.92rem;
  margin-bottom: 0;
}

.minetickets-page .table thead th {
  background: var(--motiw-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border: none;
  white-space: nowrap;
}

.minetickets-page .table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.minetickets-page .table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.minetickets-page .table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--t-border);
  color: var(--motiw-fg);
  vertical-align: middle;
}

.minetickets-page .table tbody tr {
  cursor: pointer;
  transition: background var(--t-transition);
}

.minetickets-page .table tbody tr:hover td {
  background: rgba(153,192,182,0.08);
}

.minetickets-page .table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

.minetickets-page .table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

/* Group header row */
.tickets-group-header {
  cursor: default !important;
}

.tickets-group-header td {
  background: var(--t-surface-muted) !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--motiw-green) !important;
  padding: 8px 14px !important;
  border-bottom: 2px solid var(--motiw-mint) !important;
}

.tickets-group-header td strong {
  color: var(--motiw-green) !important;
  font-weight: 700 !important;
}

.tickets-group-header:hover td {
  background: var(--t-surface-muted) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .minetickets-page {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .tickets-section {
    padding: 16px;
  }

  .tickets-section__header {
    flex-direction: column;
    align-items: stretch;
  }

  .tickets-search {
    min-width: 0;
    flex: 1;
  }

  .minetickets-page .responsive-stack thead {
    display: none;
  }

  .minetickets-page .responsive-stack tbody tr {
    display: block;
    margin-bottom: 12px;
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-sm);
    padding: 12px;
    box-shadow: var(--t-shadow);
  }

  .minetickets-page .responsive-stack tbody td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.9rem;
  }

  .minetickets-page .responsive-stack tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--motiw-green);
    margin-right: 12px;
    flex-shrink: 0;
  }

  .minetickets-page .responsive-stack tbody td:last-child {
    border-bottom: none;
  }

  .tickets-group-header {
    padding: 8px 12px !important;
    border-radius: var(--t-radius-sm) !important;
    box-shadow: none !important;
  }
}

/* ═══════════════════════════════════════════════════
   NY TICKET PAGE – Matches design system
   ═══════════════════════════════════════════════════ */

.ny-ticket-page {
  --t-surface: #ffffff;
  --t-surface-muted: #f8faf9;
  --t-border: rgba(0, 0, 0, 0.07);
  --t-radius: 16px;
  --t-radius-sm: 12px;
  --t-shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  /* --t-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04); */
  /* --t-shadow-hover: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); */
  --t-transition: 0.2s cubic-bezier(.4,0,.2,1);
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Scoped resets */
.ny-ticket-page :where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--motiw-mint);
  outline-offset: 2px;
}

.ny-ticket-page a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ny-ticket-page .btn {
  border-radius: var(--t-radius-sm);
  font-weight: 600;
  transition: all var(--t-transition);
}

/* ── Form card ── */
.ny-ticket-form-card {
  background: var(--t-surface);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  padding: 28px;
}

/* ── Fields ── */
.ny-ticket-field {
  margin-bottom: 22px;
}

.ny-ticket-page .form-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--motiw-green) !important;
  margin-bottom: 6px;
  display: block;
}

.ny-ticket-required {
  color: var(--motiw-clay) !important;
  font-weight: 700;
}

.ny-ticket-hint {
  font-size: 0.85rem;
  color: rgba(58, 58, 58, 0.55) !important;
  margin: 0 0 8px;
}

.ny-ticket-page .form-control {
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm);
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color var(--t-transition), box-shadow var(--t-transition);
}

.ny-ticket-page .form-control:focus {
  border-color: var(--motiw-mint);
  box-shadow: 0 0 0 3px rgba(153,192,182,0.25);
}

/* Rich text editor */
.ny-ticket-page .trumbowyg-box {
  border-color: rgba(153, 192, 182, 0.65);
  border-radius: var(--t-radius-sm);
  overflow: hidden;
  transition: border-color var(--t-transition), box-shadow var(--t-transition);
}

.ny-ticket-page .trumbowyg-box:focus-within {
  border-color: var(--motiw-mint);
  box-shadow: 0 0 0 0.2rem rgba(153, 192, 182, 0.2);
}

.ny-ticket-page .trumbowyg-editor,
.ny-ticket-page .trumbowyg-textarea {
  border-radius: var(--t-radius-sm);
  background: var(--t-surface);
}

.ny-ticket-page .trumbowyg-button-pane {
  background: var(--t-surface-muted);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.dropzone__icon-lg {
  font-size: 1.8rem;
}

.dropzone__icon-md {
  font-size: 1.5rem;
}

/* ── Actions ── */
.ny-ticket-actions {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--t-border);
}

/* ── Success redirect page ── */
.ny-ticket-success-redirect {
  text-align: center;
  padding: 60px 20px;
}

.ny-ticket-success-redirect__icon {
  font-size: 3rem;
  color: var(--motiw-mint) !important;
  margin-bottom: 16px;
}

.ny-ticket-success-redirect__icon i {
  color: var(--motiw-mint) !important;
}

.ny-ticket-success-redirect h2 {
  color: var(--motiw-green) !important;
  margin-bottom: 8px;
}

.ny-ticket-success-redirect p {
  font-size: 1.05rem;
  color: rgba(58, 58, 58, 0.7) !important;
  margin-bottom: 24px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ny-ticket-page {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .ny-ticket-form-card {
    padding: 18px;
  }

  .ny-ticket-actions .btn-send {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════
   FAKTURAER PAGE – Matches design system
   ═══════════════════════════════════════════════════ */

.fakturaer-page {
  --t-surface: #ffffff;
  --t-surface-muted: #f8faf9;
  --t-border: rgba(0, 0, 0, 0.07);
  --t-radius: 16px;
  --t-radius-sm: 12px;
  /* --t-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04); */
  /* --t-shadow-hover: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); */
  --t-shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --t-transition: 0.2s cubic-bezier(.4,0,.2,1);
  padding-top: 24px;
  padding-bottom: 48px;
}

.fakturaer-page :where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--motiw-mint);
  outline-offset: 2px;
}

.fakturaer-page a:hover {
  color: var(--motiw-green) !important;
}

.fakturaer-page .btn {
  border-radius: var(--t-radius-sm);
  font-weight: 600;
  transition: all var(--t-transition);
}

/* ── Section card ── */
.fakturaer-section {
  background: var(--t-surface);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  padding: 24px;
  transition: box-shadow var(--t-transition);
}

/* .fakturaer-section:hover {
  box-shadow: var(--t-shadow-hover);
} */

.fakturaer-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.fakturaer-section__title {
  font-size: 1.3rem;
  color: var(--motiw-green);
  margin: 0;
}

/* ── Table ── */
.fakturaer-page .table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 0.92rem;
  margin-bottom: 0;
}

.fakturaer-page .table thead th {
  background: var(--motiw-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border: none;
  white-space: nowrap;
}

.fakturaer-page .table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.fakturaer-page .table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.fakturaer-page .table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--t-border);
  color: var(--motiw-fg);
  vertical-align: middle;
}

.fakturaer-page .table tbody tr {
  transition: background var(--t-transition);
}

.fakturaer-page .table tbody tr:hover td {
  background: rgba(153,192,182,0.08);
}

.fakturaer-page .table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

.fakturaer-page .table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

/* ── Status badges ── */
.faktura-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.faktura-badge--paid {
  background: rgba(45, 79, 71, 0.1);
  color: var(--motiw-green) !important;
}

.faktura-badge--paid i {
  color: var(--motiw-green) !important;
}

.faktura-badge--unpaid {
  background: rgba(232, 168, 146, 0.15);
  color: #b07058 !important;
}

.faktura-badge--unpaid i {
  color: #b07058 !important;
}

/* ── Download button ── */
.faktura-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--t-surface-muted);
  border: 1px solid var(--t-border);
  color: var(--motiw-green) !important;
  white-space: nowrap;
  transition: all var(--t-transition);
}

.faktura-download-btn:hover {
  background: rgba(153, 192, 182, 0.14);
  border-color: var(--motiw-mint);
  color: var(--motiw-green) !important;
}

.faktura-download-btn i {
  color: var(--motiw-mint) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .fakturaer-page {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .fakturaer-section {
    padding: 16px;
  }

  .fakturaer-section__header {
    flex-direction: column;
    align-items: stretch;
  }

  .fakturaer-page .responsive-stack thead {
    display: none;
  }

  .fakturaer-page .responsive-stack tbody tr {
    display: block;
    margin-bottom: 12px;
    background: var(--t-surface);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-sm);
    padding: 12px;
    box-shadow: var(--t-shadow);
  }

  .fakturaer-page .responsive-stack tbody td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.9rem;
  }

  .fakturaer-page .responsive-stack tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--motiw-green);
    margin-right: 12px;
    flex-shrink: 0;
  }

  .fakturaer-page .responsive-stack tbody td:last-child {
    border-bottom: none;
  }
}

/* ═══════════════════════════════════════════════════
   FAQ PAGE – Matches design system
   ═══════════════════════════════════════════════════ */

.faq-page {
  --t-surface: #ffffff;
  --t-surface-muted: #f8faf9;
  --t-border: rgba(0, 0, 0, 0.07);
  --t-radius: 16px;
  --t-radius-sm: 12px;
  --t-shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  /* --t-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04); */
  /* --t-shadow-hover: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); */
  --t-transition: 0.2s cubic-bezier(.4,0,.2,1);
  padding-top: 24px;
  padding-bottom: 48px;
}

.faq-page :where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--motiw-mint);
  outline-offset: 2px;
}

.faq-page .btn {
  border-radius: var(--t-radius-sm);
  font-weight: 600;
  transition: all var(--t-transition);
}

/* Search inside header */
.faq-page .ticket-header {
  flex-wrap: wrap;
}

.faq-page .tickets-search {
  flex: 0 1 340px;
  min-width: 200px;
}

/* ── Category card ── */
.faq-category {
  background: var(--t-surface);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  padding: 24px;
  margin-bottom: 24px;
  transition: box-shadow var(--t-transition);
}

/* .faq-category:hover {
  box-shadow: var(--t-shadow-hover);
} */

.faq-category__title {
  font-size: 1.3rem;
  color: var(--motiw-green);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--t-border);
}

/* ── Accordion ── */
.faq-accordion .accordion-item {
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm) !important;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow var(--t-transition);
}

.faq-accordion .accordion-item:last-child {
  margin-bottom: 0;
}

.faq-accordion .accordion-item:hover {
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.faq-accordion .accordion-button {
  background: var(--t-surface-muted);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--motiw-fg) !important;
  border: none;
  box-shadow: none !important;
  gap: 12px;
  display: flex;
  align-items: center;
  transition: background var(--t-transition);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(153, 192, 182, 0.12);
  color: var(--motiw-green) !important;
}

.faq-accordion .accordion-button::after {
  color: var(--motiw-mint);
  flex-shrink: 0;
}

.faq-item__title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--motiw-green) !important;
  line-height: 1.4;
}

.faq-item__date {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(58, 58, 58, 0.45) !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.faq-accordion .accordion-body {
  padding: 18px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--motiw-fg) !important;
  border-top: 1px solid var(--t-border);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .faq-page {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .faq-category {
    padding: 16px;
  }

  .faq-page .tickets-search {
    flex: 1;
    min-width: 0;
  }

  .faq-accordion .accordion-button {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .faq-item__date {
    width: 100%;
    margin-top: 2px;
  }
}


/* ═══════════════════════════════════════════════════
   STARTSIDE PAGE – Matches design system
   ═══════════════════════════════════════════════════ */

.startside-page {
  --t-surface: #ffffff;
  --t-surface-muted: #f8faf9;
  --t-border: rgba(0, 0, 0, 0.07);
  --t-radius: 16px;
  --t-radius-sm: 12px;
  --t-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  --t-shadow-hover: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --t-transition: 0.2s cubic-bezier(.4,0,.2,1);

  /* max-width: 1100px; */
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* --- Alert banner --- */
.startside-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-left: 4px solid var(--motiw-mint);
  border-radius: var(--t-radius-sm);
  box-shadow: var(--t-shadow);
  font-size: 14px;
  margin-bottom: 20px;
}

.startside-alert i {
  color: var(--motiw-green);
  font-size: 1.1rem;
}

.startside-alert a {
  color: var(--motiw-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Welcome card --- */
.startside-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-left: 4px solid var(--motiw-mint);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  margin-bottom: 24px;
}

.startside-welcome__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--motiw-green);
  margin: 0 0 6px;
}

.startside-welcome__subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.55;
  max-width: 520px;
}

.startside-welcome__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* --- Buttons --- */
.startside-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--t-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--t-transition);
  white-space: nowrap;
}

.startside-btn--primary {
  background: var(--motiw-green);
  color: #fff;
}

.startside-btn--primary:hover {
  background: #3a6b5f;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(45, 79, 71, 0.25);
}

.startside-btn--outline {
  background: transparent;
  color: var(--motiw-green);
  border: 1.5px solid var(--t-border);
}

.startside-btn--outline:hover {
  background: var(--t-surface-muted);
  border-color: var(--motiw-mint);
  color: var(--motiw-green);
  text-decoration: none;
}

/* --- Grid layout --- */
.startside-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 24px;
}

/* --- Card --- */
.startside-card {
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  padding: 28px 32px;
}

/* --- Eyebrow --- */
.startside-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--motiw-mint);
  margin: 0 0 8px;
}

/* --- Hero title --- */
.startside-hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--motiw-green);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.3;
}

.startside-pulse-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.startside-pulse-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Hero description --- */
.startside-hero-desc {
  font-size: 14.5px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 24px;
}

/* --- Info grid --- */
.startside-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.startside-info-box {
  padding: 20px;
  background: var(--t-surface-muted);
  border-radius: var(--t-radius-sm);
  border: 1px solid var(--t-border);
}

.startside-info-box__title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--motiw-green);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.startside-info-box__title i {
  font-size: 15px;
  color: var(--motiw-mint);
}

.startside-info-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.startside-info-box__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 6px;
}

.startside-info-box__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--motiw-mint);
}

/* --- Price card (sidebar) --- */
.startside-price-card {
  border-left: 4px solid var(--motiw-mint);
}

.startside-price-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--motiw-green);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--t-border);
}

.startside-price-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.startside-price-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.startside-price-card__list li::before {
  content: "\f26a";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 13px;
  color: var(--motiw-mint);
}

.startside-price-card__list li em {
  font-style: italic;
  color: var(--motiw-green);
  font-weight: 600;
}

/* --- CTA Banner --- */
.startside-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-left: 4px solid var(--motiw-mint);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
}

.startside-cta__text {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.startside-cta__text strong {
  color: var(--motiw-green);
}

.startside-cta__btn {
  flex-shrink: 0;
}

.startside-cta__btn:hover {
  box-shadow: 0 2px 8px rgba(45, 79, 71, 0.25);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .startside-grid {
    grid-template-columns: 1fr;
  }

  .startside-welcome {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }

  .startside-welcome__actions {
    width: 100%;
  }

  .startside-welcome__actions .startside-btn {
    flex: 1;
    justify-content: center;
  }

  .startside-card {
    padding: 22px 20px;
  }

  .startside-cta {
    flex-direction: column;
    text-align: center;
    padding: 22px 20px;
  }
}

@media (max-width: 575px) {
  .startside-page {
    padding: 16px 12px 32px;
  }

  .startside-info-grid {
    grid-template-columns: 1fr;
  }

  .startside-hero-title {
    font-size: 1.35rem;
  }

  .startside-welcome__actions {
    flex-direction: column;
  }

  .startside-welcome__actions .startside-btn {
    width: 100%;
    justify-content: center;
  }
}