/* Left icon sidebar for the Support app */
.support_sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 64px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    gap: 6px;
    z-index: 1050;
}

.support_sidebar .sidebar_logo {
    width: 38px;
    border-radius: 10px;
}

/* Brand button on top opens the public knowledge base */
.support_sidebar > .sidebar_brand {
    margin-bottom: 8px;
}

/* Direct children only: the profile dropdown items must keep their normal shape */
.support_sidebar > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #6b7280;
    font-size: 18px;
    text-decoration: none;
}

.support_sidebar > a:hover {
    background: #f3f4f6;
    color: #111827;
}

.support_sidebar > a.active {
    background: #e7f0fe;
    color: #0d6efd;
}

/* Logged-on employee pinned to the bottom of the sidebar (click = profile menu) */
.sidebar_profile {
    margin-top: auto;
    margin-bottom: 12px;
}

.sidebar_avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.sidebar_profile .btn:hover .sidebar_avatar {
    border-color: #0d6efd;
}

.member_layout {
    margin-left: 64px;
    /* MemberLayout.css reserves 80px for the old fixed header; the top bar is gone */
    padding-top: 0;
}

/* The footer is position:fixed (Footer.css); reserve room so page content never hides behind it */
.member_layout_body {
    padding-bottom: 70px;
}

/* The fixed footer spans the viewport width and would overlap the sidebar */
.member_footer {
    left: 64px;
    width: calc(100% - 64px);
}

/* Small screens: the 64px side rail becomes a bottom navigation bar so the
   content gets the full width; the fixed footer makes way for it. This block
   must stay AFTER the base .member_layout/.member_footer rules (same specificity). */
@media (max-width: 768px) {
    .support_sidebar {
        top: auto;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 56px;
        flex-direction: row;
        justify-content: space-around;
        padding: 0 8px;
        gap: 0;
        border-right: none;
        border-top: 1px solid #e5e7eb;
    }

    .support_sidebar > .sidebar_brand {
        margin-bottom: 0;
    }

    .support_sidebar .sidebar_logo {
        width: 30px;
    }

    .sidebar_profile {
        margin: 0;
        display: flex;
        align-items: center;
    }

    .sidebar_avatar {
        width: 34px;
        height: 34px;
    }

    .member_layout {
        margin-left: 0;
    }

    /* Room for the bottom bar instead of the (hidden) footer */
    .member_layout_body {
        padding-bottom: 68px;
    }

    .member_footer {
        display: none;
    }
}

/* Header breadcrumbs with history back/forward, replacing the old logo */
.support_breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.support_breadcrumbs .bc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #6b7280;
    font-size: 12px;
}

.support_breadcrumbs .bc-nav:hover {
    background: #f3f4f6;
    color: #111827;
}

.support_breadcrumbs .bc-trail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
}

.support_breadcrumbs .bc-link {
    color: #6b7280;
    text-decoration: none;
}

.support_breadcrumbs .bc-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.support_breadcrumbs .bc-sep {
    font-size: 10px;
    color: #d1d5db;
}

.support_breadcrumbs .bc-current {
    color: #111827;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

/* KPI tiles on the statistics page */
.stat_kpi .card-body h3 {
    margin-bottom: 0;
}

/* ---------- Public knowledge base ---------- */
.kb-body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.kb-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.kb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
    font-size: 17px;
}

.kb-brand img {
    width: 34px;
    border-radius: 9px;
}

.kb-main {
    flex: 1;
}

.kb-hero {
    background: linear-gradient(135deg, #4f63d2, #6366f1);
    padding: 56px 0 64px;
    text-align: center;
    color: #ffffff;
}

.kb-hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.kb-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.kb-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.kb-search input {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    font-size: 15px;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.12);
}

.kb-search input:focus {
    outline: 2px solid #c7d2fe;
}

/* Clear (x) button at the end of the search box, shown only when there is text */
.kb-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    border-radius: 8px;
}

.kb-search-clear:hover {
    color: #4b5563;
    background: #f3f4f6;
}

/* room for the clear button on the wiki search */
.wiki-search input {
    padding-right: 42px;
}

.kb-groups {
    margin-top: -28px;
    padding-bottom: 48px;
}

/* "Geen artikels gevonden." is the first child of .kb-groups, whose -28px pull places it over
   the blue hero band (dark text on blue = unreadable). Push it down into the white area with
   padding (padding, unlike margin, does not collapse with the section's negative margin). */
#kbNoResults {
    padding-top: 4rem;
    margin-bottom: 0;
    text-align: center;
}

/* The internal wiki reuses the KB cards but has NO hero band above the search box, so the
   -28px that pulls the public-KB cards up into the hero would jam them against the search.
   Override it to a positive gap on the wiki page (the search box is .wiki-search there). */
.wiki-search + .kb-groups {
    margin-top: 2.25rem;
}

.kb-group-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.04);
}

/* "+ toevoegen" quick-add button, pinned to the top-right corner of each section card
   (admin only). The card-body is position-relative so this anchors to the card corner. */
.wiki-add-item {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    line-height: 1;
    padding: .15rem .42rem;
    /* Subtle by default, fully visible when the card (or the button) is hovered/focused */
    opacity: .3;
    transition: opacity .15s ease;
}

.kb-group-card:hover .wiki-add-item,
.wiki-add-item:hover,
.wiki-add-item:focus {
    opacity: 1;
}

.kb-group-head {
    display: flex;
    gap: 12px;
    /* room at the right so a long title/description never runs under the quick-add button */
    padding-right: 30px;
    /* Subtle divider between the group title/subtitle and its article list */
    border-bottom: 1px solid #eef0f3;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.kb-group-head h5 {
    margin-bottom: 2px;
}

.kb-group-head p {
    font-size: 13px;
}

.kb-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f63d2;
    font-size: 17px;
}

.kb-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kb-article-list li {
    padding: 4px 0;
}

.kb-article-list a {
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kb-article-list a i {
    color: #9ca3af;
    font-size: 13px;
}

.kb-article-list a:hover {
    color: #4f63d2;
}

/* Core typography for the logged-in app: 14px rem base scales every Bootstrap
   component down, body text and controls sit on 13px like Core.MyClubPlanner.
   The public knowledge base (_PublicLayout) keeps its own larger sizes. */
html.app-compact {
    font-size: 14px;
}

html.app-compact body {
    font-size: 13px;
}

html.app-compact .form-control,
html.app-compact .form-select,
html.app-compact .btn,
html.app-compact .dropdown-menu {
    font-size: 13px;
}

html.app-compact h4 {
    font-size: 18px;
}

html.app-compact h5 {
    font-size: 15px;
}

html.app-compact .modal-title {
    font-size: 15px;
}

/* Badges scale with their parent (em); pin them to the Core pill size */
html.app-compact .badge {
    font-size: 12px;
}

/* Core-style data table: rounded card, grey header row edge to edge, soft row borders */
.support-table-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.support-table-card .table thead th {
    background: #f7f8fa;
    color: #8c96a3;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding: 11px 16px;
    white-space: nowrap;
}

.support-table-card .table tbody td {
    padding: 10px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
    font-size: 13px;
}

.support-table-card .table tbody tr:last-child td {
    border-bottom: 0;
}

.support-table-card .table-hover > tbody > tr:hover > * {
    background-color: #f8fafc;
    box-shadow: none;
}

/* DataTables wrapper inside the flush card: kill the container/gutter padding and
   the 6px table margin from the bootstrap4 integration css */
.support-table-card table.dataTable {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.support-table-card .dataTables_wrapper.container-fluid {
    padding: 0;
}

.support-table-card .dataTables_wrapper > .row {
    margin: 0;
}

/* ===================== Public status page (/status) ===================== */
.sp-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 32px;
    padding-bottom: 48px;
}

/* Status colors are semantic and fixed (not tied to the club accent) */
.sp-overall {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 28px;
    border-radius: 14px;
    margin-bottom: 24px;
    color: #fff;
}

.sp-overall i {
    font-size: 34px;
    line-height: 1;
}

.sp-overall h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.sp-overall .sp-sub {
    margin: 2px 0 0;
    font-size: 14px;
    opacity: .9;
}

.sp-overall.sp-ok { background: #16a34a; }
.sp-overall.sp-degraded { background: #d97706; }
.sp-overall.sp-down { background: #dc2626; }
.sp-overall.sp-unknown { background: #6b7280; }

.sp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
}

.sp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #eef0f2;
    font-weight: 600;
}

.sp-card-head .sp-meta {
    font-weight: 400;
    font-size: 13px;
    color: #6b7280;
}

.sp-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
}

.sp-item:last-child { border-bottom: none; }

.sp-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.sp-name-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sp-name-title {
    font-weight: 500;
}

.sp-subtitle {
    font-size: 12.5px;
    font-weight: 400;
    color: #9aa0a6;
    margin-top: 1px;
}

.sp-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.sp-state {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sp-latency {
    font-size: 13px;
    color: #9aa0a6;
    font-variant-numeric: tabular-nums;
}

.sp-badge {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 14px;
    white-space: nowrap;
}

/* Soft tinted pills + matching dots, fixed semantic colors */
.sp-badge.sp-ok { background: #dcfce7; color: #15803d; }
.sp-badge.sp-degraded { background: #fef3c7; color: #b45309; }
.sp-badge.sp-down { background: #fee2e2; color: #b91c1c; }
.sp-badge.sp-unknown { background: #eef0f2; color: #6b7280; }

.sp-dot.sp-ok { background: #16a34a; }
.sp-dot.sp-degraded { background: #d97706; }
.sp-dot.sp-down { background: #dc2626; }
.sp-dot.sp-unknown { background: #9aa0a6; }

.sp-foot {
    padding: 12px 20px;
    border-top: 1px solid #eef0f2;
    font-size: 13px;
    color: #6b7280;
}

/* Single footer line below all group cards */
.sp-foot-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 4px 0;
    font-size: 13px;
    color: #6b7280;
}

.support-table-card .dataTables_wrapper > .row > [class*="col-"] {
    padding: 0;
}

/* Length + info + paging in one footer row under the table */
.support-table-foot {
    padding: 10px 16px;
    border-top: 1px solid #f1f3f5;
    font-size: 13px;
    color: #6b7280;
}

.support-table-foot .dataTables_length label,
.support-table-foot .dataTables_info {
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.support-table-foot .dataTables_length select {
    width: auto;
    display: inline-block;
}

.support-table-foot .pagination {
    margin: 0;
}

/* Expands a collapsed section; sticks to the card bottom so cards line up */
.kb-show-more {
    background: none;
    border: none;
    color: #4f63d2;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 0 0;
    margin-top: auto;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kb-show-more:hover {
    color: #3b4cb8;
    text-decoration: underline;
}

.kb-show-more i {
    font-size: 11px;
}

/* Round language flags in the header dropdown (flag-icons square + 50% radius);
   the doubled class outranks the .fi.fis width from the flag-icons stylesheet */
.kb-flag.kb-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: inline-block;
    margin-right: 7px;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

/* Center the flag, label and caret on one line instead of relying on a fragile
   vertical-align offset (which dropped the flag below the text) */
.kb-lang-btn {
    display: inline-flex;
    align-items: center;
}

.kb-lang-menu .dropdown-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.kb-lang-menu .dropdown-item.active {
    background: #eef2ff;
    color: #3b4cb8;
}

/* Small screens: tighter hero and header, full-width cards stack via the grid */
@media (max-width: 576px) {
    .kb-header .container {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .kb-brand span {
        font-size: 15px;
    }

    .kb-hero {
        padding: 32px 0 44px;
    }

    .kb-hero h1 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .kb-search input {
        font-size: 14px;
        padding: 12px 14px 12px 42px;
    }

    .kb-article-card {
        padding: 18px;
    }
}

.kb-article-page {
    padding: 32px 0 48px;
    max-width: 1000px;
    margin-inline: auto;
}

.kb-breadcrumb {
    margin-bottom: 14px;
    font-size: 14px;
    color: #6b7280;
}

.kb-breadcrumb a {
    color: #4f63d2;
    text-decoration: none;
}

.kb-bc-sep {
    margin: 0 8px;
    color: #d1d5db;
}

.kb-article-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.kb-article-card .card-body {
    padding: 32px;
}

.kb-article-card h1 {
    font-size: 24px;
    margin-bottom: 18px;
}

.kb-article-content img {
    /* Zendesk bodies carry fixed width/height attributes; height:auto keeps the
       aspect ratio when max-width shrinks the image */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* The site-wide admin-theme reset (style.css) strips list-style from every ol/ul for its own
   icon-based nav menus; article bodies are real editorial content (numbered steps, bullet
   lists) and need their markers back, plus the indent the reset's 0 padding-left removed. */
.kb-article-content ol {
    list-style: decimal;
    padding-left: 24px;
    margin-bottom: 12px;
}

.kb-article-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 12px;
}

.kb-article-content li {
    margin-bottom: 4px;
}

.kb-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.kb-footer p {
    margin: 0;
}

.kb-footer a {
    color: #4f63d2;
    text-decoration: none;
}

/* Ticket comment feed: avatar left of the author, origin badge next to the name */
.te-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

/* CKEditor 5 inside the article/release-note Bootstrap modals */
.ck-editor__editable {
    min-height: 42vh;
}

/* Same site-wide ol/ul { list-style: none } reset (style.css) reaches into the editing surface
   itself, so numbered/bulleted lists look marker-less while typing too, not just once published. */
.ck-content ol {
    list-style: decimal;
    padding-left: 24px;
}

.ck-content ul {
    list-style: disc;
    padding-left: 24px;
}

/* The editor's floating UI (toolbar dropdowns, link/table/image balloons) is appended to
   <body>; lift it above the modal (z-index 1055) so it isn't hidden behind it */
.ck.ck-balloon-panel,
.ck-body-wrapper .ck.ck-dropdown__panel,
.ck-body-wrapper .ck.ck-toolbar {
    z-index: 11000 !important;
}

/* Click-to-enlarge images in the ticket feed (attachments + pasted screenshots) */
.te-body img,
.te-attach-img {
    cursor: zoom-in;
}

.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(17, 24, 39, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.img-lightbox.open {
    display: flex;
}

.img-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.img-lightbox .img-lightbox-close {
    position: absolute;
    top: 14px;
    right: 22px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.85;
}

.img-lightbox .img-lightbox-close:hover {
    opacity: 1;
}

/* Compact assignee avatar in the tickets list */
.ta-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.ta-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    background: #0d6efd;
    border: none;
}

.te-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #0d6efd;
    border: none;
}

.te-avatar-customer {
    background: #6366f1;
}

.te-avatar-system {
    background: #9ca3af;
}

.te-badge {
    display: inline-block;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: 1px;
}

.te-badge i {
    font-size: 10px;
    margin-right: 3px;
}

/* Mailed to the customer */
.te-badge-mailed {
    background: #d1e7dd;
    color: #0f5132;
}

/* Received from the customer */
.te-badge-customer {
    background: #cfe2ff;
    color: #084298;
}

/* Internal note / system event */
.te-badge-internal,
.te-badge-system {
    background: #fff3cd;
    color: #664d03;
}

/* Internal notes get the familiar yellow tint so they stand out from customer-facing replies */
.ticket-event.te-internal {
    background: #fffbeb;
    border: 1px solid #fde68a !important;
    border-radius: 8px;
    padding: 8px !important;
}

/* Rich text comment bodies */
.te-body p {
    margin-bottom: 4px;
}

/* Quill marks bullet items with data-list and relies on its own stylesheet; the feed has no Quill css */
.te-body li[data-list="bullet"] {
    list-style-type: disc;
}

.te-body .ql-ui {
    display: none;
}

.te-body img {
    /* width/height attributes (e.g. from customer HTML mail) must not beat the
       max-* caps; auto keeps the aspect ratio, inline styles still win */
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Zendesk-style agent workspace: the ticket detail row is capped to the viewport
   height (set by TICKETDETAIL.fitHeight) and clips its overflow, so each column
   scrolls on its own and the composer + ticket header never leave the screen.
   This deliberately avoids position:sticky, which does not work inside
   .member_layout_body (it has overflow:auto but grows with content, so it is not a
   real scroll container and a sticky child never docks). */
.ticket-detail {
    overflow: hidden;
    /* Drop the vertical gutter: with height:100% columns it would push the composer
       past the capped row and into the fixed footer. The column gap (gx) stays. */
    --bs-gutter-y: 0;
}

.ticket-detail > [class*="col-"] {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Left column: the ticket body + comments scroll here; the composer is a flex
   sibling below that keeps its natural height and stays visible. */
.ticket-detail .ticket-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding-right: 4px;
}

/* Composer as a self-contained flex column: fixed tabs on top, the editor grows
   in the middle and scrolls, and the action bar stays pinned at the bottom. It is
   capped to part of the column (max-height) so a long reply can never push the
   Send buttons out of view or shrink the conversation away. */
.ticket-detail #composerCard {
    /* No shrink: the composer keeps the height it needs (up to the cap) so the
       action bar is never squeezed out; the conversation area absorbs the rest. */
    flex: 0 0 auto;
    min-height: 0;
    max-height: 55%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
}

.ticket-detail #composerCard .card-header {
    flex: 0 0 auto;
}

.ticket-detail #composerCard .card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* The editor (Quill's .ql-container == #divEditor) takes the remaining composer
   space and scrolls internally; the toolbar and the action row keep their size. */
.ticket-detail #composerCard .card-body > .ql-toolbar,
.ticket-detail #composerCard .card-body > .composer-actions {
    flex: 0 0 auto;
}

.ticket-detail #composerCard #divEditor {
    flex: 1 1 auto;
    min-height: 46px;
}

/* Right column (properties + history) scrolls independently too. */
.ticket-detail .col-lg-4 {
    overflow-y: auto;
}

/* Stacked mobile layout: drop the height cap and internal scrollers so the page
   flows normally and the whole window scrolls again. */
@media (max-width: 991px) {
    .ticket-detail {
        height: auto !important;
        overflow: visible;
    }

    .ticket-detail > [class*="col-"] {
        height: auto;
        display: block;
        min-height: 0;
    }

    .ticket-detail .ticket-scroll,
    .ticket-detail .col-lg-4 {
        overflow: visible;
    }
}

/* Composer: Public reply / Internal note tabs (Zendesk-style) */
.composer-tabs {
    border-bottom: 0;
}

.composer-tabs .nav-link {
    padding: 6px 14px;
    font-size: 14px;
    color: #6b7280;
}

.composer-tabs .nav-link.active {
    font-weight: 600;
}

.composer-tabs .nav-link:disabled {
    color: #d1d5db;
}

/* Base composer height (used outside the ticket-detail flex layout). Inside
   .ticket-detail the editor is a flex child that fills the composer and scrolls;
   see the .ticket-detail #composerCard rules above. */
#composerCard #divEditor {
    min-height: 46px;
}

#composerCard .ql-container {
    font-size: 14px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#composerCard .ql-toolbar {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* The internal note mode tints the whole composer yellow, like Zendesk does */
#composerCard.composer-internal .card-body {
    background: #fffbeb;
}

#composerCard.composer-internal .ql-container,
#composerCard.composer-internal .ql-toolbar {
    background: #fffdf4;
}

#composerCard.composer-internal .composer-tabs .nav-link.active,
#composerCard.composer-internal .card-header {
    background: #fffbeb;
}

/* Header nav between brand and language switcher on the public pages */
.kb-nav {
    display: flex;
    gap: 22px;
}

.kb-nav a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.kb-nav a:hover {
    color: #111827;
}

.kb-nav a.active {
    color: #4f63d2;
    font-weight: 600;
}

/* Narrow/mobile: the nav can't sit inline next to the brand + actions, so it used to
   be hidden (d-none) which made Status/Release notes unreachable. Instead wrap it onto
   its own full-width row under the header. */
@media (max-width: 768px) {
    .kb-header .container {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .kb-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 18px;
        padding-top: 9px;
        border-top: 1px solid #eef0f2;
    }
}

/* ---------- Public release notes (/releasenotes) ---------- */
.rn-hero {
    padding: 44px 0 48px;
}

.rn-subtitle {
    margin: 0 auto;
    max-width: 560px;
    opacity: .85;
    font-size: 15px;
}

.rn-main {
    max-width: 860px;
    padding: 28px 16px 56px;
}

.rn-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 28px;
}

.rn-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rn-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

.rn-pill:hover {
    border-color: #c7d2fe;
}

.rn-pill.active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.rn-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

/* Timeline: date on the left of a vertical guide line, cards hanging off it */
.rn-timeline {
    position: relative;
    padding-left: 14px;
}

.rn-timeline::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5e7eb;
}

.rn-day {
    position: relative;
    margin-bottom: 34px;
}

.rn-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.rn-date-dot {
    position: absolute;
    left: -14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4f63d2;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #c7d2fe;
}

.rn-date-text {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-left: 10px;
    text-transform: capitalize;
}

.rn-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rn-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.04);
    padding: 18px 20px;
    margin-left: 10px;
}

.rn-card h5 {
    margin: 0 0 8px;
    font-size: 17px;
}

.rn-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rn-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
    border-radius: 999px;
    padding: 2px 10px;
}

.rn-type-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-radius: 999px;
    padding: 3px 10px;
}

.rn-type-new {
    background: #d1e7dd;
    color: #0f5132;
}

.rn-type-improved {
    background: #cfe2ff;
    color: #084298;
}

.rn-type-fixed {
    background: #ffe5d0;
    color: #8a4b16;
}

/* The type filter pills reuse the badge tints when active */
.rn-pill-new.active {
    background: #0f5132;
    border-color: #0f5132;
}

.rn-pill-improved.active {
    background: #084298;
    border-color: #084298;
}

.rn-pill-fixed.active {
    background: #8a4b16;
    border-color: #8a4b16;
}

.rn-version {
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1px 8px;
    color: #374151;
}

.rn-content {
    font-size: 14px;
    color: #374151;
}

.rn-content p:last-child {
    margin-bottom: 0;
}

/* Quill bullet markup without the Quill stylesheet, same trick as the ticket feed */
.rn-content li[data-list="bullet"] {
    list-style-type: disc;
}

.rn-content .ql-ui {
    display: none;
}

@media (max-width: 576px) {
    .rn-main {
        padding-top: 18px;
    }

    .rn-card {
        padding: 14px;
    }
}
