/* The help ticket ("Opret hjælpeticket"). Shown in kb.panel (dialog mode) on every page by wwwroot/scripts/modal.js;
   markup in Views/Partials/Modals/_HelpTicketBody.cshtml.
   Layer kb.pages, tokens only: loaded unlayered by masterTemplate (_LoadCss), so the file's own layer applies and the
   rules follow the theme on every page (the panel is mounted on <body>). */
@layer kb.pages {
  .kb-helpticket {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 15px;
    color: var(--kb-text);
  }

  .kb-helpticket [hidden] {
    display: none !important;
  }

  .kb-helpticket p {
    margin: 0;
  }

  .kb-helpticket__intro {
    color: var(--kb-text-muted);
  }

  /* Prioritet and Tildelt side by side; one column on a phone. */
  .kb-helpticket__pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  @media (max-width: 640px) {
    .kb-helpticket__pair {
      grid-template-columns: 1fr;
    }
  }

  .kb-helpticket__files {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    min-width: 0;
  }

  .kb-helpticket__chosen {
    min-width: 0;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .kb-helpticket__chosen.is-empty {
    color: var(--kb-text-muted);
  }

  .kb-helpticket__status {
    font-size: 14px;
    font-weight: 600;
  }

  .kb-helpticket__status--error {
    color: var(--kb-status-err-ink);
  }

  .kb-helpticket__status--ok {
    color: var(--kb-status-ok-ink);
  }

  /* The buttons go into the panel's foot as they are. */
  .kb-helpticket__actions {
    display: contents;
  }
}
