/* ==========================================================================
   PSS theme
   A calm workspace for triaging tickets from country teams: neutral canvas,
   white work surfaces, one cobalt accent. Colour is spent on meaning
   (ticket status, priority, people), not on chrome.

   Loaded after bootstrap.css / app.css / Style.css (see _ThemeHead.cshtml).
   ========================================================================== */

:root {
    --canvas: #f4f5f7;
    --surface: #ffffff;
    --subtle: #f8f9fa;
    --muted-bg: #f0f2f4;
    --line: #e6e8ec;
    --line-strong: #d5d9e0;
    --text: #171a21;
    --text-2: #4c5361;
    --text-3: #7d8494;
    --accent: #3a57e8;
    --accent-hover: #2e48cf;
    --accent-soft: #eef1fe;
    --accent-ink: #2b41b8;
    --ring: 0 0 0 3px rgba(58, 87, 232, .25);
    --shadow-1: 0 1px 2px rgba(23, 26, 33, .05);
    --shadow-2: 0 1px 3px rgba(23, 26, 33, .06), 0 1px 2px rgba(23, 26, 33, .04);
    --shadow-pop: 0 16px 40px -12px rgba(23, 26, 33, .22), 0 4px 10px rgba(23, 26, 33, .06);
    --radius: 12px;
    --radius-sm: 8px;
    --font: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --nav-w: 248px;
    --nav-w-collapsed: 68px;
    /* status tones: text / background / dot */
    --blue: #2b41b8; --blue-bg: #edf0fe; --blue-dot: #3a57e8;
    --violet: #5a3dc1; --violet-bg: #f2effd; --violet-dot: #7b5ce5;
    --amber: #8a5300; --amber-bg: #fdf3e1; --amber-dot: #ee9b2c;
    --green: #16704a; --green-bg: #e7f5ee; --green-dot: #2ba36e;
    --red: #b42318; --red-bg: #fdeeee; --red-dot: #e5484d;
    --gray: #4c5361; --gray-bg: #eff1f4; --gray-dot: #9aa1af;
    /* status borders (alerts) */
    --blue-line: #d6defc; --green-line: #c9ebd9; --amber-line: #f6e0b5; --red-line: #f8d3d3;
    /* neutrals that used to be hard-coded */
    --hover: #e9ebef;
    --row-hover: #f8f9fb;
    --line-soft: #eef0f3;
    --line-hover: #c3c8d1;
    --placeholder: #9aa1af;
    --muted-icon: #b8bec9;
    --empty: #a7adb9;
    --prio-bar: #d3d7de;
    --selection: #dfe5fd;
    --accent-line: #c9d2fa;
    --selected-row: #f5f7ff;
    --topbar-bg: rgba(244, 245, 247, .9);
    --mask-bg: rgba(244, 245, 247, .55);
    /* a dark block on the light page (and the reverse in dark mode) */
    --inverse-bg: #171a21;
    --inverse-text: #ffffff;
    --inverse-muted: #b8bec9;
    color-scheme: light;
}

/* Dark mode: same roles, dark values. Set by the script in _ThemeHead (user choice or system setting). */
:root[data-theme="dark"] {
    --canvas: #0e1014;
    --surface: #161920;
    --subtle: #1b1f27;
    --muted-bg: #232833;
    --line: #2a2f3a;
    --line-strong: #3a404c;
    --text: #e8eaef;
    --text-2: #b6bcc8;
    --text-3: #8b93a3;
    --accent: #4f6cf2;
    --accent-hover: #6a83f6;
    --accent-soft: #1c2444;
    --accent-ink: #a9b9ff;
    --ring: 0 0 0 3px rgba(106, 131, 246, .4);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-2: 0 1px 3px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-pop: 0 16px 40px -12px rgba(0, 0, 0, .7), 0 4px 10px rgba(0, 0, 0, .4);
    --blue: #a9b9ff; --blue-bg: #1c2444; --blue-dot: #6a83f6;
    --violet: #c7b6ff; --violet-bg: #261e42; --violet-dot: #9b7cf5;
    --amber: #f3c46a; --amber-bg: #332710; --amber-dot: #ee9b2c;
    --green: #74d6a8; --green-bg: #12291f; --green-dot: #2ba36e;
    --red: #ff9ea1; --red-bg: #3b1a1d; --red-dot: #e5484d;
    --gray: #b6bcc8; --gray-bg: #252a34; --gray-dot: #8b93a3;
    --blue-line: #2c3a74; --green-line: #1d4a36; --amber-line: #5a4417; --red-line: #6a2a2f;
    --hover: #222733;
    --row-hover: #1b1f27;
    --line-soft: #232833;
    --line-hover: #4a5160;
    --placeholder: #6c7484;
    --muted-icon: #5d6575;
    --empty: #5d6575;
    --prio-bar: #3a404c;
    --selection: #2f3d80;
    --accent-line: #34407a;
    --selected-row: #19203a;
    --topbar-bg: rgba(14, 16, 20, .85);
    --mask-bg: rgba(14, 16, 20, .55);
    --inverse-bg: #e8eaef;
    --inverse-text: #12151b;
    --inverse-muted: #4c5361;
    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html, body.pss {
    background: var(--canvas);
}

body.pss {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.pss h1, body.pss h2, body.pss h3, body.pss h4, body.pss h5, body.pss h6,
body.pss .h1, body.pss .h2, body.pss .h3, body.pss .h4 {
    font-family: var(--font);
    color: var(--text);
    letter-spacing: -.01em;
}

body.pss a {
    color: var(--accent-ink);
}

    body.pss a:hover {
        color: var(--accent-hover);
    }

body.pss b, body.pss strong {
    font-weight: 600;
}

body.pss .text-muted { color: var(--text-3); }
body.pss .text-primary, body.pss .text-info { color: var(--accent-ink); }
body.pss .text-success { color: var(--green); }
body.pss .text-warning { color: var(--amber); }
body.pss .text-danger { color: var(--red); }

/* old teal accent class used across app.css */
body.pss .blue-color {
    color: var(--accent) !important;
}

/* The old template removes every focus outline; bring keyboard focus back. */
body.pss :focus-visible {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px;
}

::selection {
    background: var(--selection);
}

.pss-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
    font-weight: 600;
}

    .pss-skip:focus {
        top: 12px;
    }

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */
.pss-shell {
    display: grid;
    grid-template-columns: var(--nav-w) minmax(0, 1fr);
    min-height: 100vh;
}

.pss-nav-collapsed .pss-shell {
    grid-template-columns: var(--nav-w-collapsed) minmax(0, 1fr);
}

.pss-aside {
    position: sticky;
    top: 0;
    z-index: 120;
    height: 100vh;
    background: var(--canvas);
    border-right: 1px solid var(--line);
}

.pss-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 12px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.pss-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 36px;
    margin: 0 0 18px;
    padding: 0 2px 0 8px;
}

.pss-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    text-decoration: none !important;
}

/* The intalio wordmark; the image also carries a white ".PSS" tag meant for a
   dark bar, which is clipped off. */
.pss-logo {
    display: block;
    width: 64px;
    height: 18px;
    overflow: hidden;
    flex: none;
}

    .pss-logo img {
        display: block;
        width: 97px;
        height: 20px;
        max-width: none;
        margin-top: -1px;
    }

.pss-product {
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--inverse-bg);
    color: var(--inverse-text);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 18px;
}

.pss-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-3);
    font-size: 15px;
    cursor: pointer;
}

    .pss-icon-btn:hover {
        background: var(--muted-bg);
        color: var(--text);
    }

/* Light/dark switch (_ThemeHead): moon in light mode, sun in dark mode */
.pss-theme-btn {
    width: 34px;
    height: 34px;
}

    .pss-theme-btn .fa-sun-o,
    :root[data-theme="dark"] .pss-theme-btn .fa-moon-o {
        display: none;
    }

    :root[data-theme="dark"] .pss-theme-btn .fa-sun-o {
        display: inline-block;
    }

.pss-topbar .pss-theme-btn {
    margin-left: auto;
}

.pss-menu, .pss-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .pss-menu > li {
        position: relative;
        margin-bottom: 1px;
    }

        .pss-menu > li > a,
        .pss-menu-toggle {
            display: flex;
            align-items: center;
            gap: 11px;
            width: 100%;
            height: 34px;
            padding: 0 10px;
            border: 1px solid transparent;
            border-radius: var(--radius-sm);
            background: transparent;
            font: inherit;
            font-size: 14px;
            font-weight: 500;
            text-align: left;
            text-decoration: none !important;
            white-space: nowrap;
            cursor: pointer;
        }

body.pss .pss-menu > li > a,
body.pss .pss-menu-toggle {
    color: var(--text-2);
}

    body.pss .pss-menu > li > a:hover,
    body.pss .pss-menu-toggle:hover {
        background: var(--hover);
        color: var(--text);
    }

body.pss .pss-menu > li.active > a,
body.pss .pss-menu > li.active > a:hover {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow-1);
    color: var(--text);
}

.pss-menu .fa {
    width: 18px;
    flex: none;
    font-size: 15px;
    text-align: center;
    color: var(--text-3);
}

.pss-menu > li.active > a .fa {
    color: var(--accent);
}

.pss-menu-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pss-counts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.pss-count {
    min-width: 18px;
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.pss-count-alert {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--red-dot);
    color: #fff;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

    .pss-count[data-zero="true"] {
        display: none;
    }

.pss-menu-heading {
    margin: 20px 10px 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
}

.pss-menu-section {
    margin-top: 2px;
}

.pss-caret {
    margin-left: auto;
    font-size: 12px !important;
    transition: transform .2s ease;
}

.pss-menu-section.open .pss-caret {
    transform: rotate(180deg);
}

.pss-submenu {
    display: none;
    position: relative;
    margin: 2px 0 6px 19px;
    padding-left: 12px;
    border-left: 1px solid var(--line-strong);
}

.pss-menu-section.open .pss-submenu {
    display: block;
}

.pss-submenu > li > a {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13.5px;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.pss .pss-submenu > li > a {
    color: var(--text-2);
}

    body.pss .pss-submenu > li > a:hover {
        background: var(--hover);
        color: var(--text);
    }

body.pss .pss-submenu > li.active > a {
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--text);
    font-weight: 500;
}

/* User menu */
.pss-nav-foot {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 12px;
}

.pss-user {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.pss-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .pss-user-btn:hover, .pss-user.open .pss-user-btn {
        background: var(--surface);
        border-color: var(--line);
        box-shadow: var(--shadow-1);
    }

.pss-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.pss-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.pss-user-role {
    font-size: 12px;
    color: var(--text-3);
}

.pss-user-btn .fa {
    margin-left: auto;
    color: var(--text-3);
    font-size: 12px;
}

body.pss .pss-user .dropdown-menu {
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    top: auto;
    min-width: 0;
}

    body.pss .pss-user .dropdown-menu .fa {
        width: 16px;
        margin-right: 8px;
        color: var(--text-3);
        text-align: center;
    }

/* Avatars: initials on a colour derived from the name (see pss-shell.js) */
body.pss .avatar {
    --h: 225;
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    background: hsl(var(--h) 70% 92%);
    color: hsl(var(--h) 45% 30%);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
}

body.pss .avatar-lg {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.person {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

/* Collapsed (icons only) */
.pss-nav-collapsed .pss-nav {
    padding-left: 10px;
    padding-right: 10px;
}

.pss-nav-collapsed .pss-brand-row {
    justify-content: center;
    padding: 0;
}

.pss-nav-collapsed .pss-brand,
.pss-nav-collapsed .pss-menu-label,
.pss-nav-collapsed .pss-caret,
.pss-nav-collapsed .pss-menu-heading,
.pss-nav-collapsed .pss-user-text,
.pss-nav-collapsed .pss-user-btn > .fa,
.pss-nav-collapsed .pss-count:not(.pss-count-alert) {
    display: none;
}

.pss-nav-collapsed .pss-collapse-btn .fa {
    transform: rotate(180deg);
}

.pss-nav-collapsed .pss-menu > li > a,
.pss-nav-collapsed .pss-menu-toggle {
    justify-content: center;
    padding: 0;
}

.pss-nav-collapsed .pss-counts {
    position: absolute;
    top: 2px;
    right: 4px;
}

.pss-nav-collapsed .pss-count-alert {
    min-width: 16px;
    padding: 0 4px;
    font-size: 10.5px;
    line-height: 16px;
}

.pss-nav-collapsed .pss-menu-section.open .pss-submenu {
    display: none;
}

.pss-nav-collapsed .pss-user-btn {
    justify-content: center;
    padding: 7px 0;
}

.pss-nav-collapsed .pss-nav-foot {
    flex-direction: column;
}

.pss-nav-collapsed .pss-user .dropdown-menu {
    right: auto;
    min-width: 200px;
}

.pss-topbar,
.pss-scrim {
    display: none;
}

/* Main column */
.pss-main {
    min-width: 0;
    max-width: 1680px;
    padding: 26px 32px 56px;
}

    /* Page title: pages start with a bare <h3>, often after right-floated
       action buttons. */
    .pss-main > h3 {
        margin: 0 0 22px;
        padding: 0;
        min-height: 36px;
        font-size: 24px;
        font-weight: 600;
        line-height: 36px;
        letter-spacing: -.02em;
        color: var(--text);
        background: none;
        border: 0;
    }

    .pss-main > .btn.pull-right,
    .pss-main > .btn-group.pull-right {
        margin-left: 8px;
    }

    .pss-main > .row {
        margin-left: -10px;
        margin-right: -10px;
    }

        .pss-main > .row > [class*="col-"] {
            padding-left: 10px;
            padding-right: 10px;
        }

/* --------------------------------------------------------------------------
   Cards (Bootstrap panels)
   -------------------------------------------------------------------------- */
body.pss .panel {
    margin-bottom: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}

    body.pss .panel.panel-default {
        border-top-width: 1px;
        border-color: var(--line);
    }

    body.pss .panel > .panel-heading,
    body.pss .panel-default > .panel-heading {
        position: relative;
        min-height: 52px;
        padding: 14px 18px;
        background: transparent;
        border-bottom: 1px solid var(--line);
        border-radius: var(--radius) var(--radius) 0 0;
        color: var(--text);
        font-size: 15px;
        font-weight: 600;
        line-height: 24px;
    }

body.pss .panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

body.pss .panel-body {
    padding: 18px;
}

body.pss .panel > .panel-footer {
    padding: 14px 18px;
    background: var(--subtle);
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Tables sit edge to edge inside cards */
body.pss .panel-body:has(> .table-responsive) {
    padding: 0;
}

body.pss .panel-heading .accordion-toggle {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    color: var(--text-3);
}

    body.pss .panel-heading .accordion-toggle:hover {
        background: var(--muted-bg);
        color: var(--text);
    }

body.pss .panel-heading .fa-arrow-up::before { content: "\f106"; }
body.pss .panel-heading .fa-arrow-down::before { content: "\f107"; }

body.pss hr {
    margin: 4px 0 20px;
    border-top: 1px solid var(--line);
}

body.pss .well {
    background: var(--subtle);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
body.pss .btn {
    height: auto;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0;
    box-shadow: var(--shadow-1);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

    body.pss .btn:focus-visible {
        outline: none !important;
        box-shadow: var(--ring) !important;
    }

    body.pss .btn .fa {
        opacity: .85;
    }

    body.pss .btn .mr-sm {
        margin-right: 4px !important;
    }

body.pss .btn-sm {
    padding: 5px 10px;
    font-size: 13px;
}

body.pss .btn-xs {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

body.pss .btn-lg {
    padding: 10px 18px;
    font-size: 15px;
}

body.pss .btn-primary,
body.pss .btn-info {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 1px 2px rgba(43, 65, 184, .25), inset 0 1px 0 rgba(255, 255, 255, .14);
}

    body.pss .btn-primary:hover, body.pss .btn-primary:focus, body.pss .btn-primary:active, body.pss .btn-primary.active,
    body.pss .btn-info:hover, body.pss .btn-info:focus, body.pss .btn-info:active, body.pss .btn-info.active {
        color: #fff;
        background: var(--accent-hover);
        border-color: var(--accent-hover);
    }

body.pss .btn-danger {
    color: #fff;
    background: #d93036;
    border-color: #d93036;
}

    body.pss .btn-danger:hover, body.pss .btn-danger:focus, body.pss .btn-danger:active {
        color: #fff;
        background: #bf262c;
        border-color: #bf262c;
    }

body.pss .btn-success {
    color: #fff;
    background: #1f8a5b;
    border-color: #1f8a5b;
}

    body.pss .btn-success:hover, body.pss .btn-success:focus {
        color: #fff;
        background: #187049;
        border-color: #187049;
    }

body.pss .btn-warning {
    color: var(--text);
    background: #f6c453;
    border-color: #f6c453;
}

    body.pss .btn-warning:hover, body.pss .btn-warning:focus {
        color: var(--text);
        background: #efb63a;
        border-color: #efb63a;
    }

/* Secondary: bare .btn, .btn-default, .btn-clear, DataTables buttons */
body.pss .btn-default,
body.pss .btn-clear,
body.pss .btn:not([class*="btn-"]),
body.pss .dt-buttons .btn,
body.pss .html5buttons .btn,
body.pss .dt-button {
    color: var(--text) !important;
    background: var(--surface) !important;
    border-color: var(--line-strong);
}

    body.pss .btn-default:hover, body.pss .btn-default:focus,
    body.pss .btn-clear:hover, body.pss .btn-clear:focus,
    body.pss .btn:not([class*="btn-"]):hover,
    body.pss .dt-buttons .btn:hover,
    body.pss .html5buttons .btn:hover,
    body.pss .dt-button:hover {
        background: var(--subtle) !important;
        border-color: var(--line-hover);
    }

body.pss .btn-link {
    color: var(--accent-ink);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

    body.pss .btn-link:hover {
        background: var(--muted-bg);
        text-decoration: none;
    }

body.pss .btn[disabled], body.pss .btn.disabled {
    opacity: .5;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
body.pss label,
body.pss .control-label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

body.pss .form-control {
    height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    box-shadow: var(--shadow-1) !important;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    body.pss .form-control:hover {
        border-color: var(--line-hover);
    }

    body.pss .form-control:focus {
        border-color: var(--accent);
        box-shadow: var(--ring) !important;
        outline: none !important;
    }

    body.pss .form-control::placeholder {
        color: var(--placeholder);
    }

    body.pss .form-control[disabled], body.pss .form-control[readonly] {
        background: var(--subtle);
        color: var(--text-3);
    }

body.pss textarea.form-control {
    height: auto;
    min-height: 80px;
}

body.pss .form-group {
    margin-bottom: 16px;
}

body.pss .input-group-addon {
    background: var(--subtle);
    border-color: var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--text-3);
}

body.pss .input-group .form-control:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body.pss .input-group-addon:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

body.pss fieldset {
    border-bottom-color: var(--line);
}

body.pss legend {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

body.pss .parsley-errors-list {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--red);
}

body.pss .parsley-error {
    border-color: var(--red-dot) !important;
}

body.pss .error-message-font, body.pss .dangerColor {
    color: var(--red);
}

/* Angle custom checkbox */
body.pss .c-checkbox span {
    width: 18px;
    height: 18px;
    border: 1px solid var(--muted-icon);
    border-radius: 5px;
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

    body.pss .c-checkbox span:before {
        font-size: 11px;
        line-height: 16px;
    }

body.pss .c-checkbox:hover span {
    border-color: var(--accent);
}

body.pss .c-checkbox input[type=checkbox]:checked + span {
    background-color: var(--accent);
    border-color: var(--accent);
}

body.pss .c-checkbox input:focus-visible + span {
    box-shadow: var(--ring);
}

body.pss input[type=checkbox], body.pss input[type=radio] {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: var(--accent);
}

/* Select2 */
body.pss .select2-container--bootstrap .select2-selection,
body.pss .select2-container--default .select2-selection--single,
body.pss .select2-container--default .select2-selection--multiple {
    min-height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--text);
    font-size: 14px;
}

    body.pss .select2-container .select2-selection__rendered {
        color: var(--text);
    }

body.pss .select2-container--bootstrap .select2-selection--single {
    height: 36px;
    padding: 7px 28px 7px 11px;
    line-height: 20px;
}

    body.pss .select2-container--bootstrap .select2-selection--single .select2-selection__placeholder {
        color: var(--placeholder);
    }

body.pss .select2-container--bootstrap.select2-container--focus .select2-selection,
body.pss .select2-container--bootstrap.select2-container--open .select2-selection {
    border-color: var(--accent);
    box-shadow: var(--ring);
}

body.pss .select2-dropdown,
body.pss .select2-container--bootstrap .select2-dropdown,
body.pss .select2-container--default .select2-dropdown {
    margin-top: 4px;
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px !important;
    box-shadow: var(--shadow-pop);
    overflow: hidden;
}

body.pss .select2-results__option {
    padding: 7px 11px;
    font-size: 14px;
}

body.pss .select2-container--bootstrap .select2-results__option--highlighted[aria-selected],
body.pss .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--accent-soft);
    color: var(--accent-ink);
}

body.pss .select2-container--bootstrap .select2-results__option[aria-selected=true] {
    background: var(--muted-bg);
    color: var(--text);
}

body.pss .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--text);
}

body.pss .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
    border: 0;
    border-radius: 6px;
    background: var(--muted-bg);
    color: var(--text);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Tables / DataTables
   -------------------------------------------------------------------------- */
body.pss .table {
    margin-bottom: 0;
    color: var(--text);
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}

    body.pss .table > thead > tr > th {
        padding: 10px 10px;
        background: var(--subtle);
        border-top: 0;
        border-bottom: 1px solid var(--line);
        color: var(--text-3);
        font-size: 12.5px;
        font-weight: 500;
        white-space: nowrap;
    }

    body.pss .table > tbody > tr > td {
        padding: 11px 10px;
        border-top: 1px solid var(--line-soft);
        vertical-align: middle;
    }

    body.pss .table > thead > tr > th:first-child,
    body.pss .table > tbody > tr > td:first-child {
        padding-left: 18px;
    }

    body.pss .table > thead > tr > th:last-child,
    body.pss .table > tbody > tr > td:last-child {
        padding-right: 18px;
    }

body.pss .table-striped > tbody > tr:nth-of-type(odd) {
    background: transparent;
}

body.pss .table-hover > tbody > tr:hover,
body.pss .table-hover > tbody > tr:hover > td {
    background: var(--row-hover);
}

body.pss .table > tbody > tr > td > a {
    color: var(--text);
    font-weight: 500;
}

    body.pss .table > tbody > tr > td > a:hover {
        color: var(--accent-ink);
    }

body.pss .table-responsive {
    border: 0;
    margin: 0;
}

body.pss .dataTables_wrapper {
    font-size: 13.5px;
}

    body.pss .dataTables_wrapper > .row {
        margin: 0;
    }

    body.pss .dataTables_wrapper .html5buttons,
    body.pss .dataTables_wrapper .dt-buttons {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        float: none;
        margin: 0;
        padding: 10px 18px;
    }

        body.pss .dataTables_wrapper .html5buttons .btn,
        body.pss .dataTables_wrapper .dt-buttons .btn {
            padding: 4px 10px;
            font-size: 12.5px;
            font-weight: 500;
        }

    body.pss .dataTables_wrapper .dataTables_length,
    body.pss .dataTables_wrapper .dataTables_filter {
        padding: 12px 18px 0;
    }

        body.pss .dataTables_wrapper .dataTables_length label,
        body.pss .dataTables_wrapper .dataTables_filter label,
        body.pss .dataTables_wrapper .dataTables_info {
            color: var(--text-3);
            font-size: 13px;
            font-weight: 400;
        }

        body.pss .dataTables_wrapper .dataTables_filter input,
        body.pss .dataTables_wrapper .dataTables_length select {
            height: 32px;
            margin: 0 6px;
            padding: 5px 10px;
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-sm);
            background: var(--surface);
            color: var(--text);
        }

    body.pss .dataTables_wrapper .dataTables_info {
        padding: 14px 18px !important;
    }

    body.pss .dataTables_wrapper .dataTables_paginate {
        float: right;
        padding: 9px 14px;
    }

body.pss table.dataTable {
    margin: 0 !important;
    border-collapse: collapse !important;
}

    /* Sort arrows only on hover and on the sorted column */
    body.pss table.dataTable thead .sorting:after,
    body.pss table.dataTable thead .sorting_asc:after,
    body.pss table.dataTable thead .sorting_desc:after {
        position: static;
        display: inline-block;
        margin-left: 5px;
        font-size: 9px;
        color: var(--text-3);
        opacity: 0;
        vertical-align: 1px;
    }

    body.pss table.dataTable thead .sorting:hover:after {
        opacity: .6;
    }

    body.pss table.dataTable thead > tr > th.sorting,
    body.pss table.dataTable thead > tr > th.sorting_asc,
    body.pss table.dataTable thead > tr > th.sorting_desc {
        padding-right: 12px;
        cursor: pointer;
    }

    body.pss table.dataTable thead .sorting:hover,
    body.pss table.dataTable thead .sorting_asc,
    body.pss table.dataTable thead .sorting_desc {
        color: var(--text);
    }

        body.pss table.dataTable thead .sorting_asc:after,
        body.pss table.dataTable thead .sorting_desc:after {
            opacity: 1;
            color: var(--accent);
        }

body.pss table.dataTable > tbody > tr > td {
    white-space: nowrap;
}

body.pss div.dataTables_processing {
    top: 64px;
    width: auto;
    margin: 0;
    padding: 8px 14px;
    transform: translateX(-50%);
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-pop);
}

body.pss .dataTables_empty {
    padding: 48px 18px !important;
    color: var(--text-3);
    text-align: center;
    background: transparent !important;
}

/* Expand-row control and child rows */
body.pss td.details-control {
    width: 28px;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

    body.pss td.details-control:before,
    body.pss tr.shown td.details-control:before {
        content: "\f105";
        display: inline-grid;
        place-items: center;
        width: 22px;
        height: 22px;
        border-radius: 6px;
        color: var(--text-3);
        font-size: 14px;
        transition: transform .15s ease;
    }

body.pss tr.shown td.details-control:before {
    transform: rotate(90deg);
    color: var(--text);
}

body.pss td.details-control:hover:before {
    background: var(--muted-bg);
}

body.pss table.dataTable tbody tr.shown + tr > td {
    padding: 0 18px 16px 58px !important;
    background: var(--row-hover);
    border-top: 0;
}

/* Pagination */
body.pss .pagination {
    margin: 0;
}

    body.pss .pagination > li > a,
    body.pss .pagination > li > span {
        min-width: 30px;
        height: 30px;
        margin-left: 2px;
        padding: 5px 9px;
        border: 0;
        border-radius: var(--radius-sm) !important;
        background: transparent;
        color: var(--text-2);
        font-size: 13px;
        font-weight: 500;
        line-height: 20px;
        text-align: center;
    }

        body.pss .pagination > li > a:hover {
            background: var(--muted-bg);
            color: var(--text);
        }

    body.pss .pagination > .active > a,
    body.pss .pagination > .active > a:hover,
    body.pss .pagination > .active > a:focus,
    body.pss .pagination > .active > span {
        background: var(--surface);
        box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1);
        color: var(--text);
        font-weight: 600;
    }

    body.pss .pagination > .disabled > a,
    body.pss .pagination > .disabled > a:hover {
        background: transparent;
        color: var(--muted-icon);
    }

/* Row actions are quiet icon buttons */
body.pss .table .btn-xs,
body.pss .table .btn-sm {
    min-width: 30px;
    height: 30px;
    margin: 1px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface) !important;
    box-shadow: var(--shadow-1);
    color: var(--text-2) !important;
    font-size: 13px;
}

    body.pss .table .btn-xs:hover,
    body.pss .table .btn-sm:hover {
        border-color: var(--line-strong);
        background: var(--subtle) !important;
        color: var(--accent-ink) !important;
    }

/* --------------------------------------------------------------------------
   Status, priority and other chips
   -------------------------------------------------------------------------- */
.chip {
    --fg: var(--gray);
    --bg: var(--gray-bg);
    --dot: var(--gray-dot);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 9px 0 8px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--fg);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

    .chip > span {
        max-width: 19ch;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chip::before {
        content: "";
        width: 6px;
        height: 6px;
        flex: none;
        border-radius: 50%;
        background: var(--dot);
    }

    .chip[data-tone="blue"] { --fg: var(--blue); --bg: var(--blue-bg); --dot: var(--blue-dot); }
    .chip[data-tone="violet"] { --fg: var(--violet); --bg: var(--violet-bg); --dot: var(--violet-dot); }
    .chip[data-tone="amber"] { --fg: var(--amber); --bg: var(--amber-bg); --dot: var(--amber-dot); }
    .chip[data-tone="green"] { --fg: var(--green); --bg: var(--green-bg); --dot: var(--green-dot); }
    .chip[data-tone="red"] { --fg: var(--red); --bg: var(--red-bg); --dot: var(--red-dot); }

.chip-lg {
    height: 28px;
    padding: 0 12px 0 10px;
    font-size: 13px;
}

    .chip-lg::before {
        width: 7px;
        height: 7px;
    }

/* Priority: signal bars for low to high, a red marker for urgent and up */
.prio {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-2);
    white-space: nowrap;
}

.prio-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

    .prio-bars i {
        width: 3px;
        border-radius: 1px;
        background: var(--prio-bar);
    }

        .prio-bars i:nth-child(1) { height: 5px; }
        .prio-bars i:nth-child(2) { height: 8px; }
        .prio-bars i:nth-child(3) { height: 12px; }

.prio[data-level="1"] .prio-bars i:nth-child(-n+1),
.prio[data-level="2"] .prio-bars i:nth-child(-n+2) {
    background: var(--text-3);
}

.prio[data-level="3"] .prio-bars i {
    background: var(--amber-dot);
}

.prio-urgent {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--red-dot);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.prio[data-level="4"], .prio[data-level="5"], .prio[data-level="6"] {
    color: var(--red);
    font-weight: 500;
}

.prio[data-level="4"] .prio-urgent {
    background: #f08b3e;
}

/* Bootstrap labels used outside ticket grids (Active, Not supported...) */
body.pss .label {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

body.pss .label-success { color: var(--green); background: var(--green-bg); }
body.pss .label-warning { color: var(--amber); background: var(--amber-bg); }
body.pss .label-danger { color: var(--red); background: var(--red-bg); }
body.pss .label-info, body.pss .label-primary { color: var(--blue); background: var(--blue-bg); }
body.pss .label-default { color: var(--gray); background: var(--gray-bg); }

body.pss .badge {
    background: var(--muted-bg);
    color: var(--text-2);
    font-weight: 600;
}

/* Ticket grid cells */
.t-title {
    display: block;
    max-width: 34ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text) !important;
    font-weight: 500;
}

    .t-title:hover {
        color: var(--accent-ink) !important;
    }

.t-sub {
    display: block;
    margin-top: 1px;
    color: var(--text-3);
    font-size: 12px;
}

.t-muted {
    color: var(--text-3);
}

/* --------------------------------------------------------------------------
   Tabs, dropdowns, alerts, dialogs, tooltips
   -------------------------------------------------------------------------- */
body.pss .nav-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
}

    body.pss .nav-tabs > li {
        float: none;
        margin-bottom: -1px;
    }

        body.pss .nav-tabs > li > a {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 0;
            padding: 9px 12px;
            border: 0;
            border-bottom: 2px solid transparent;
            border-radius: 0;
            background: transparent;
            color: var(--text-3);
            font-size: 14px;
            font-weight: 500;
        }

            body.pss .nav-tabs > li > a:hover {
                background: transparent;
                color: var(--text);
            }

        body.pss .nav-tabs > li.active > a,
        body.pss .nav-tabs > li.active > a:hover,
        body.pss .nav-tabs > li.active > a:focus {
            border: 0;
            border-bottom: 2px solid var(--text);
            background: transparent;
            color: var(--text);
        }

body.pss .tab-content {
    padding: 0;
    border: 0;
}

body.pss .dropdown-menu {
    padding: 5px;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-pop);
    font-size: 14px;
}

    body.pss .dropdown-menu > li > a {
        padding: 7px 10px;
        border-radius: 6px;
        color: var(--text);
    }

        body.pss .dropdown-menu > li > a:hover,
        body.pss .dropdown-menu > li > a:focus {
            background: var(--muted-bg);
            color: var(--text);
        }

    body.pss .dropdown-menu .divider {
        margin: 5px -5px;
        background: var(--line);
    }

body.pss .alert {
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 500;
}

body.pss .alert-success { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
body.pss .alert-danger { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
body.pss .alert-warning { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
body.pss .alert-info { color: var(--blue); background: var(--blue-bg); border-color: var(--blue-line); }

body.pss .alert .close {
    opacity: .5;
    text-shadow: none;
}

body.pss .modal-backdrop.in {
    background: #171a21;
    opacity: .4;
}

body.pss .modal-content {
    border: 0;
    border-radius: 14px;
    background-color: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 64px -16px rgba(23, 26, 33, .35);
    overflow: hidden;
}

body.pss .modal-header {
    padding: 18px 22px 6px;
    border-bottom: 0;
}

body.pss .modal-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--text);
}

body.pss .modal-body {
    padding: 14px 22px 6px;
}

body.pss .modal-footer {
    padding: 14px 22px;
    background: var(--subtle);
    border-top: 1px solid var(--line);
}

body.pss .tooltip-inner {
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--inverse-bg);
    color: var(--inverse-text);
    font-family: var(--font);
    font-size: 12.5px;
}

/* Sweet alert dialogs */
body.pss .sweet-overlay {
    background: rgba(23, 26, 33, .4);
}

body.pss .sweet-alert {
    width: 420px;
    margin-left: -210px;
    padding: 26px 24px 22px;
    border-radius: 14px;
    background-color: var(--surface);
    box-shadow: 0 24px 64px -16px rgba(23, 26, 33, .35);
    font-family: var(--font);
}

    body.pss .sweet-alert h2 {
        margin: 6px 0 8px;
        font-size: 20px;
        font-weight: 600;
        color: var(--text);
    }

    body.pss .sweet-alert p {
        color: var(--text-2);
        font-size: 15px;
        font-weight: 400;
    }

    body.pss .sweet-alert .sa-button-container {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 22px;
    }

    body.pss .sweet-alert button {
        margin: 0;
        padding: 8px 18px;
        border-radius: var(--radius-sm);
        font-family: var(--font);
        font-size: 14px;
        font-weight: 600;
        box-shadow: var(--shadow-1) !important;
    }

        body.pss .sweet-alert button.confirm,
        body.pss .sweet-alert button.btn-info {
            background: var(--accent) !important;
            border: 1px solid var(--accent) !important;
            color: #fff;
        }

        body.pss .sweet-alert button.cancel {
            background: var(--surface) !important;
            border: 1px solid var(--line-strong) !important;
            color: var(--text);
        }

/* Page-blocking loading mask from ET.mask() */
body.pss .loading-mask-container {
    background: var(--mask-bg);
}

body.pss .loading-mask-image {
    color: var(--accent);
}

/* CKEditor */
body.pss .cke_chrome {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

body.pss .cke_top {
    padding: 5px 6px 2px;
    background: var(--subtle);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}

body.pss .cke_bottom {
    background: var(--subtle);
    border-top: 1px solid var(--line);
}

body.pss #TicketCommentSection .cke_contents {
    height: 150px !important;
}

body.pss .cke_toolgroup {
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* File drop areas */
body.pss .dropzone {
    min-height: 120px;
    margin-left: 0;
    margin-right: 0;
    border: 1px dashed var(--muted-icon);
    border-radius: var(--radius);
    background: var(--subtle);
    color: var(--text-3);
}

    body.pss .dropzone:hover {
        border-color: var(--accent);
        background: var(--accent-soft);
        color: var(--accent-ink);
    }

/* Old fieldset/legend pairs */
body.pss .custom-fieldset {
    border: 0;
}

body.pss .costum-legend {
    margin-bottom: 2px;
    border: 0;
    color: var(--text-3) !important;
    font-size: 12.5px;
    font-weight: 500;
}

body.pss .chartInfoDivIcon {
    margin-left: 4px;
    color: var(--muted-icon);
    font-size: 13px !important;
}

body.pss .chartInfoDiv {
    border-radius: var(--radius-sm);
    background: var(--text);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Filter bars (ticket lists)
   -------------------------------------------------------------------------- */
.list-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .list-head .list-title {
        font-size: 15px;
        font-weight: 600;
    }

/* In ticket lists the export button moves up into the card header */
body.pss .panel:has(> .list-head) {
    position: relative;
}

    body.pss .panel:has(> .list-head) .dataTables_wrapper {
        position: static;
    }

        body.pss .panel:has(> .list-head) .dataTables_wrapper .html5buttons {
            position: absolute;
            top: 11px;
            right: 18px;
            padding: 0;
        }

            body.pss .panel:has(> .list-head) .dataTables_wrapper .html5buttons .btn {
                display: inline-flex;
                align-items: center;
                height: 30px;
                padding: 0 11px;
                font-size: 13px;
                line-height: 1;
            }

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--text-2) !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
}

    .filter-toggle:hover {
        background: var(--subtle);
        color: var(--text) !important;
    }

    .filter-toggle::before {
        content: "\f0b0";
        font-family: FontAwesome;
        font-size: 12px;
        color: var(--text-3);
    }

    .filter-toggle::after {
        content: attr(data-label);
    }

    .filter-toggle .fa {
        order: 2;
        font-size: 13px;
        color: var(--text-3);
    }

.filter-bar {
    padding: 14px 18px 2px;
    border-bottom: 1px solid var(--line);
    background: var(--subtle);
}

    .filter-bar .filter-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 0 14px;
    }

        .filter-bar .filter-grid > .form-group {
            margin-bottom: 12px;
        }

    .filter-bar .filter-grid-primary {
        grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
    }

        /* Inbox has no subject search */
        .filter-bar .filter-grid-primary:not(:has(.filter-search)) {
            grid-template-columns: repeat(3, minmax(150px, 240px)) auto;
        }

    .filter-bar .filter-actions {
        display: flex;
        align-items: flex-end;
        gap: 8px;
        margin-bottom: 12px;
    }

    .filter-bar label {
        font-size: 12.5px !important;
    }

.input-icon {
    position: relative;
}

    .input-icon > .fa {
        position: absolute;
        left: 11px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-3);
        font-size: 13px;
        pointer-events: none;
    }

    body.pss .input-icon > .form-control {
        padding-left: 32px;
    }

/* --------------------------------------------------------------------------
   Ticket page
   -------------------------------------------------------------------------- */
.ticket-crumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--text-3) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
}

    .ticket-crumb:hover {
        color: var(--text) !important;
    }

.ticket-head {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}

.ticket-head-main {
    flex: 1 1 auto;
    min-width: 0;
}

.ticket-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-3);
    font-size: 13.5px;
    font-weight: 500;
}

.ticket-number {
    color: var(--text-2);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

body.pss h1.ticket-title {
    margin: 0;
    max-width: 52ch;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.ticket-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    flex: none;
    padding-top: 2px;
}

    .ticket-actions .btn {
        float: none !important;
        margin: 0 !important;
    }

    /* Subscribe / Unsubscribe are toggled by ticketView.js through
       btn-success / btn-warning; neither is a success or a warning. */
    .ticket-actions .btn-success,
    .ticket-actions .btn-warning {
        color: var(--text) !important;
        background: var(--surface) !important;
        border-color: var(--line-strong) !important;
        box-shadow: var(--shadow-1) !important;
    }

        .ticket-actions .btn-success:hover,
        .ticket-actions .btn-warning:hover {
            background: var(--subtle) !important;
        }

    .ticket-actions .btn-danger {
        color: var(--red) !important;
        background: var(--surface) !important;
        border-color: var(--red-line) !important;
    }

        .ticket-actions .btn-danger:hover {
            background: var(--red-bg) !important;
        }

.ticket-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.ticket-main {
    min-width: 0;
}

.ticket-aside {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    body.pss .ticket-aside .panel {
        margin: 0;
    }

    .ticket-aside .panel-heading {
        min-height: 0 !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .ticket-aside .panel-body {
        padding: 16px;
    }

        .ticket-aside .panel-body > .row {
            margin: 0;
        }

            .ticket-aside .panel-body > .row > [class*="col-"] {
                float: none;
                width: auto;
                padding: 0;
            }

.props {
    margin: 0;
    padding: 6px 16px;
}

    .props > div {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        min-height: 38px;
        padding: 6px 0;
        border-bottom: 1px solid var(--line-soft);
    }

        .props > div:last-child {
            border-bottom: 0;
        }

    .props dt {
        color: var(--text-3);
        font-size: 13px;
        font-weight: 400;
    }

    .props dd {
        min-width: 0;
        margin: 0;
        color: var(--text);
        font-size: 13.5px;
        font-weight: 500;
        overflow-wrap: anywhere;
    }

/* Admin edit of type and priority in the Details panel */
.props-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    body.pss .props-head .props-edit-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-weight: 500;
    }

        body.pss .props-head .props-edit-btn[hidden] {
            display: none;
        }

.props-edit {
    padding: 14px 16px 6px;
    border-bottom: 1px solid var(--line);
    background: var(--subtle);
}

    .props-edit[hidden] {
        display: none;
    }

    .props-edit .form-group {
        margin-bottom: 10px;
    }

.props-edit-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.props-empty {
    color: var(--empty) !important;
    font-weight: 400 !important;
}

.ticket-aside .deliverableDiv {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

    .ticket-aside .deliverableDiv .form-group {
        flex: 1 0 100%;
        margin: 0 0 4px;
    }

.ticket-aside #userPostMessage:empty {
    display: none;
}

/* Conversation */
#TicketCommentSection {
    margin: 0 !important;
    padding: 0 !important;
}

    #TicketCommentSection > .col-lg-12 {
        float: none;
        width: auto;
        padding: 0;
    }

    #TicketCommentSection > .nav-tabs {
        margin-bottom: 0;
        padding: 0 !important;
    }

        #TicketCommentSection > .nav-tabs #internalCount {
            float: none !important;
            height: 18px;
            margin: 0 !important;
            padding: 0 6px !important;
            background: var(--muted-bg);
            color: var(--text-2);
        }

    #TicketCommentSection > div[style*="background-color"] {
        background: transparent !important;
    }

    #TicketCommentSection .panel {
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    #TicketCommentSection .panel-heading {
        display: none;
    }

    #TicketCommentSection .panel-body {
        padding: 22px 0 6px !important;
    }

    #TicketCommentSection .comment-main {
        float: none;
        width: auto;
        margin: 0;
        padding: 0;
    }

        #TicketCommentSection .comment-main ul {
            margin: 0;
            padding: 0;
        }

    #TicketCommentSection .parentCommentUL {
        position: relative;
    }

        /* activity line through the avatars */
        #TicketCommentSection .parentCommentUL::before {
            content: "";
            position: absolute;
            left: 15px;
            top: 20px;
            bottom: 24px;
            width: 1px;
            background: var(--line);
        }

        #TicketCommentSection .parentCommentUL > li {
            position: relative;
            margin-bottom: 18px;
        }

            #TicketCommentSection .parentCommentUL > li > div,
            #TicketCommentSection .childCommentUL > li > div {
                padding-bottom: 0;
            }

            /* app.css centres each comment with !important margins */
            #TicketCommentSection .parentCommentUL > li > div > div,
            #TicketCommentSection .childCommentUL > li > div > div {
                float: none;
                margin: 0 !important;
            }

    #TicketCommentSection .comment-main .comment-box {
        margin: 0;
        padding: 0 !important;
    }

    #TicketCommentSection .comment-main .user-comment,
    #TicketCommentSection .childCommentUL > li > div > div {
        float: none;
        width: auto;
        padding: 0 0 0 44px !important;
        background: transparent !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

        #TicketCommentSection .comment-main .user-comment::before {
            display: none;
        }

        #TicketCommentSection .comment-main .user-comment > .row {
            margin: 0;
        }

    /* The ticket description opens the thread as a card */
    #TicketCommentSection .parentCommentUL > li:first-child > .comment-box > .user-comment > .row {
        padding: 14px 18px 4px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow-1);
    }

    #TicketCommentSection .comment-lower-bottom {
        position: static;
        display: flex;
        align-items: baseline;
        gap: 10px;
        float: none;
        width: auto;
        min-height: 32px;
        padding: 0;
        border: 0;
    }

        #TicketCommentSection .comment-lower-bottom > div {
            position: static;
            float: none;
            width: auto;
            padding: 0 !important;
        }

        #TicketCommentSection .comment-lower-bottom p {
            float: none !important;
            width: auto !important;
            margin: 0;
            padding: 0 !important;
            line-height: 32px;
        }

        #TicketCommentSection .comment-lower-bottom > div:first-child {
            min-width: 0;
            color: var(--text);
            font-size: 14px !important;
            font-weight: 600;
        }

        #TicketCommentSection .comment-lower-bottom > div:last-child,
        #TicketCommentSection .comment-lower-bottom > div:last-child span {
            color: var(--text-3);
            font-size: 12.5px !important;
            font-weight: 400;
            white-space: nowrap;
        }

            #TicketCommentSection .comment-lower-bottom > div:last-child .fa {
                display: none;
            }

        /* Avatar sits in the gutter, on the activity line */
        #TicketCommentSection .comment-lower-bottom .fa-user,
        #TicketCommentSection .comment-lower-bottom .avatar {
            position: absolute;
            left: 0;
            top: 0;
        }

        #TicketCommentSection .comment-lower-bottom .fa-user {
            display: grid;
            place-items: center;
            width: 32px;
            height: 32px;
            padding: 0 !important;
            border-radius: 50%;
            background: var(--muted-bg);
            color: var(--text-3);
            font-size: 14px;
        }

    #TicketCommentSection .parentCommentUL > li:first-child .comment-lower-bottom .avatar,
    #TicketCommentSection .parentCommentUL > li:first-child .comment-lower-bottom .fa-user {
        top: 14px;
    }

    #TicketCommentSection .comment-main .BreakWords {
        float: none;
        width: auto;
        padding: 0 !important;
        color: var(--text);
        font-size: 14.5px !important;
        line-height: 1.6;
    }

        #TicketCommentSection .comment-main .BreakWords > p:empty {
            display: none;
        }

        #TicketCommentSection .comment-main .BreakWords p {
            margin: 0 0 8px;
            padding: 0 !important;
        }

        #TicketCommentSection .comment-main .BreakWords ul,
        #TicketCommentSection .comment-main .BreakWords ol {
            margin: 0 0 8px;
            padding-left: 20px !important;
            list-style: revert;
        }

        #TicketCommentSection .comment-main .BreakWords img {
            max-width: 100%;
            height: auto;
            border-radius: var(--radius-sm);
        }

    #TicketCommentSection .comment-main .border-bottom:not(.BreakWords) {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        float: none;
        width: auto;
        margin: 0 !important;
        padding: 2px 0 6px !important;
        font-size: 13px;
    }

    /* Reply, replies and attachments */
    #TicketCommentSection .comment-reply-btn-circle,
    #TicketCommentSection .comment-show-reply-comments-btn-circle {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        width: auto;
        height: 26px;
        margin: 0 !important;
        padding: 0 8px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        box-shadow: none;
        color: var(--text-3);
        font-size: 12.5px;
        font-weight: 500;
        line-height: 26px;
        text-transform: none !important;
    }

        #TicketCommentSection .comment-reply-btn-circle:first-child,
        #TicketCommentSection .comment-show-reply-comments-btn-circle:first-child {
            margin-left: -8px !important;
        }

        #TicketCommentSection .comment-reply-btn-circle:hover,
        #TicketCommentSection .comment-show-reply-comments-btn-circle:hover,
        #TicketCommentSection .comment-show-reply-comments-btn-circle.active {
            background: var(--muted-bg);
            color: var(--text);
        }

        #TicketCommentSection .comment-show-reply-comments-btn-circle[title="No Replies"],
        #TicketCommentSection .comment-show-reply-comments-btn-circle[title="No Attachments"] {
            display: none;
        }

    #TicketCommentSection [id^="attachment-container"] {
        flex: 1 0 100%;
        margin: 4px 0 !important;
    }

        #TicketCommentSection [id^="attachment-container"] > div {
            float: none;
            width: auto;
            margin: 0 !important;
            padding: 0;
        }

    #TicketCommentSection .comment-attachment-div {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0 6px 6px 0;
        padding: 5px 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--surface);
        box-shadow: var(--shadow-1);
        font-size: 13px;
        cursor: pointer;
    }

        #TicketCommentSection .comment-attachment-div::before {
            content: "\f0c6";
            font-family: FontAwesome;
            color: var(--text-3);
        }

        #TicketCommentSection .comment-attachment-div:hover {
            border-color: var(--line-strong);
        }

        #TicketCommentSection .comment-attachment-div label {
            margin: 0;
            border: 0 !important;
            color: var(--text);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
        }

    /* Replies */
    #TicketCommentSection .childCommentUL {
        float: none;
        width: auto;
        margin: 10px 0 0 44px !important;
        padding: 2px 0 2px 16px !important;
        border-left: 2px solid var(--line);
    }

        #TicketCommentSection .childCommentUL > li {
            position: relative;
            margin-bottom: 12px;
        }

            #TicketCommentSection .childCommentUL > li > div > div {
                padding-left: 34px !important;
            }

            #TicketCommentSection .childCommentUL > li .comment-lower-bottom .fa-user,
            #TicketCommentSection .childCommentUL > li .comment-lower-bottom .avatar {
                width: 24px;
                height: 24px;
                top: 4px;
                font-size: 10px;
            }

    #TicketCommentSection [id^="reply-container-"] {
        display: flex;
        flex: 1 0 100%;
        align-items: flex-end;
        gap: 10px;
        margin: 8px 0 4px !important;
    }

        #TicketCommentSection [id^="reply-container-"] > div {
            float: none;
            width: auto;
            margin: 0 !important;
            padding: 0 !important;
        }

            #TicketCommentSection [id^="reply-container-"] > div:first-child {
                flex: 1 1 auto;
                min-width: 0;
            }

    #TicketCommentSection .attachmentHolderChildClass:empty,
    #TicketCommentSection .attachmentHolderClass:empty {
        display: none;
    }

    /* Composer */
    #TicketCommentSection .panel-footer {
        margin-left: 44px;
        padding: 0 !important;
        border: 0;
        background: transparent;
    }

    #CreateCommentSection, #CreateInternalCommentSection {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 10px;
        margin: 0 !important;
    }

        #CreateCommentSection > div, #CreateInternalCommentSection > div {
            float: none;
            margin: 0 !important;
            padding: 0 !important;
        }

            #CreateCommentSection > div:first-child,
            #CreateInternalCommentSection > div:nth-child(2) {
                flex: 1 1 0;
                width: auto;
                min-width: 0;
            }

            #CreateInternalCommentSection > div:first-child {
                flex: 1 0 100%;
                width: auto;
            }

                #CreateInternalCommentSection > div:first-child .form-group {
                    margin: 0 !important;
                }

        #CreateCommentSection .attachmentHolderClass,
        #CreateInternalCommentSection .attachmentHolderClass {
            flex: 1 0 100%;
            width: auto;
        }

    #TicketCommentSection .send-icon {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: auto;
    }

        #TicketCommentSection .send-icon > a {
            display: block;
        }

    #TicketCommentSection .btn-comment {
        position: static !important;
        display: inline-grid !important;
        place-items: center;
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid var(--line-strong) !important;
        border-radius: var(--radius-sm) !important;
        background: var(--surface) !important;
        box-shadow: var(--shadow-1) !important;
        color: var(--text-2) !important;
        font-size: 15px !important;
        transition: background-color .15s ease, color .15s ease;
    }

        #TicketCommentSection .btn-comment:hover {
            background: var(--subtle) !important;
            color: var(--text) !important;
        }

    #TicketCommentSection .send-comment-btn {
        border-color: var(--accent) !important;
        background: var(--accent) !important;
        color: #fff !important;
    }

        #TicketCommentSection .send-comment-btn:hover {
            background: var(--accent-hover) !important;
            color: #fff !important;
        }

        #TicketCommentSection .send-comment-btn::before {
            content: "\f1d8";
        }

#TicketCommentSection .stage,
#TicketCommentSection .stage-create-comment {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

    body.pss .dash-grid > .panel {
        grid-column: span 6;
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    body.pss .dash-grid > .span-4 { grid-column: span 4; }
    body.pss .dash-grid > .span-5 { grid-column: span 5; }
    body.pss .dash-grid > .span-7 { grid-column: span 7; }
    body.pss .dash-grid > .span-8 { grid-column: span 8; }
    body.pss .dash-grid > .span-12 { grid-column: span 12; }

    .dash-grid .panel-body {
        flex: 1 1 auto;
    }

.card-head {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

    .card-head > .card-title {
        flex: 1 1 auto;
        min-width: 0;
    }

.card-hint {
    display: block;
    color: var(--text-3);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.4;
}

.card-tools {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

    .card-tools .form-group {
        margin: 0;
    }

    .card-tools label {
        display: block;
        margin-bottom: 4px;
        font-size: 12px !important;
        font-weight: 400;
        color: var(--text-3);
    }

    body.pss .card-tools .form-control,
    body.pss .card-tools .select2-container--bootstrap .select2-selection--single {
        height: 32px;
        min-height: 32px;
        padding-top: 5px;
        padding-bottom: 5px;
        font-size: 13px;
    }

    .card-tools .tool-select {
        width: 170px;
    }

    .card-tools .tool-date {
        width: 150px;
    }

    body.pss .card-tools .input-group-addon {
        padding: 4px 9px;
    }

    body.pss .card-tools .btn {
        padding: 5px 11px;
        font-size: 13px;
    }

/* Totals per country (markup from chartIndex.js) */
.kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.kpi {
    min-width: 150px;
    padding: 14px 16px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--subtle);
}

.kpi-total {
    background: var(--inverse-bg);
    border-color: var(--inverse-bg);
    color: var(--inverse-text);
}

.kpi-label {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 500;
}

.kpi-total .kpi-label {
    color: var(--inverse-muted);
}

.kpi-value {
    margin-top: 6px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

#card-content {
    min-height: 82px;
}

/* Home: live counters (mirrored from the sidebar by pss-shell.js) */
.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

body.pss .summary-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    body.pss .summary-tile:hover {
        border-color: var(--line-strong);
        box-shadow: var(--shadow-2);
        color: var(--text);
    }

.summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 500;
}

    .summary-label .fa {
        color: var(--text-3);
    }

.summary-value {
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.summary-alert .summary-value {
    color: var(--red);
}

.summary-alert .summary-label .fa {
    color: var(--red-dot);
}

/* Home */
.home-grid > .panel .panel-body.height-250px {
    height: 280px !important;
    overflow: auto;
}

body.pss .home-grid .homeDays {
    position: absolute;
    right: 14px;
    top: 11px;
    width: 64px !important;
    height: 30px;
    padding: 4px 8px;
    font-size: 13px;
    text-align: center;
}

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 420px;
    margin: 56px auto;
    padding: 0 16px;
    text-align: center;
}

    .empty-state .auth-icon {
        margin-bottom: 16px;
    }

    body.pss .empty-state h2 {
        margin: 0 0 6px;
        font-size: 17px;
        font-weight: 600;
    }

    .empty-state p {
        margin: 0 0 18px;
        color: var(--text-3);
    }

#notesContainer:has([data-id]) + .empty-state {
    display: none;
}

/* Notes */
body.pss #notesContainer .panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

    body.pss #notesContainer .panel-body {
        flex: 1 1 auto;
        padding: 18px;
        color: var(--text);
        text-align: left !important;
        font-size: 14px;
    }

    body.pss #notesContainer .panel-footer {
        background: transparent;
        border-top: 1px solid var(--line);
    }

/* --------------------------------------------------------------------------
   Sign-in and other standalone pages (_LayoutPage)
   -------------------------------------------------------------------------- */
body.pss-auth {
    background: var(--surface);
}

.auth {
    display: grid;
    grid-template-columns: minmax(420px, 5fr) 7fr;
    min-height: 100vh;
}

.auth-side {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 48px 28px;
}

.auth-theme-btn {
    position: absolute;
    top: 30px;
    right: 32px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-form {
    width: 100%;
    max-width: 360px;
    margin: auto;
    padding: 40px 0;
}

    body.pss .auth-form h1 {
        margin: 0 0 6px;
        font-size: 28px;
        font-weight: 600;
        letter-spacing: -.025em;
    }

.auth-lead {
    margin: 0 0 28px;
    color: var(--text-3);
    font-size: 15px;
}

body.pss .auth-form .form-control {
    height: 40px;
    font-size: 15px;
}

body.pss .auth-form .btn-block {
    margin-top: 6px;
    padding: 9px 16px;
    font-size: 14.5px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 18px;
}

    .auth-row .checkbox {
        margin: 0;
    }

        body.pss .auth-row .checkbox label {
            margin: 0;
            padding-left: 26px;
            color: var(--text-2);
            font-weight: 400;
        }

    .auth-row a {
        font-size: 13.5px;
        font-weight: 500;
    }

.auth-error {
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid var(--red-line);
    border-radius: 10px;
    background: var(--red-bg);
    color: var(--red);
    font-size: 13.5px;
    font-weight: 500;
    white-space: pre-line;
}

.auth-done {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--green-line);
    border-radius: 10px;
    background: var(--green-bg);
    color: var(--green);
}

.auth-back {
    display: inline-block;
    margin-top: 18px;
    font-size: 13.5px;
    font-weight: 500;
}

.auth-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    color: var(--text-2);
    font-size: 18px;
}

.auth-foot {
    color: var(--text-3);
    font-size: 12.5px;
}

/* The art panel: tickets arriving from country teams into one queue */
.auth-art {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 12px 12px 12px 0;
    padding: 56px clamp(32px, 6vw, 96px);
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(900px 500px at 85% 0%, rgba(122, 146, 255, .55), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(58, 87, 232, .7), transparent 60%),
        #1b2a8f;
    color: #fff;
    isolation: isolate;
}

    .auth-art::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background-image:
            linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
        background-size: 40px 40px;
        -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
        mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
    }

.auth-queue {
    position: relative;
    width: min(460px, 100%);
    margin: 0 auto 48px;
}

.auth-ticket {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 18px 40px -16px rgba(8, 14, 60, .55), 0 2px 6px rgba(8, 14, 60, .15);
    color: var(--text);
    animation: auth-arrive .7s cubic-bezier(.2, .8, .2, 1) both;
}

    .auth-ticket:nth-child(1) { transform: translateX(-28px); animation-delay: .05s; }
    .auth-ticket:nth-child(2) { transform: translateX(18px); animation-delay: .17s; }
    .auth-ticket:nth-child(3) { transform: translateX(-8px); animation-delay: .29s; }
    .auth-ticket:nth-child(4) { transform: translateX(30px); animation-delay: .41s; }

@keyframes auth-arrive {
    from {
        opacity: 0;
        translate: 0 24px;
    }
}

.auth-country {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--muted-bg);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.auth-ticket > span:nth-child(2) {
    min-width: 0;
}

.auth-ticket-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.auth-ticket-meta {
    display: block;
    color: var(--text-3);
    font-size: 12.5px;
}

.auth-caption {
    max-width: 30ch;
    margin: 0 auto;
    width: min(460px, 100%);
}

    .auth-caption p {
        margin: 0;
        font-size: clamp(22px, 2.2vw, 30px);
        font-weight: 500;
        line-height: 1.25;
        letter-spacing: -.02em;
        color: #fff;
    }

    .auth-caption span {
        display: block;
        margin-top: 12px;
        color: rgba(255, 255, 255, .7);
        font-size: 15px;
    }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .filter-bar .filter-grid-primary {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .ticket-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-aside {
        position: static;
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    body.pss .dash-grid > .panel {
        grid-column: span 12;
    }
}

@media (max-width: 991px) {
    .pss-shell,
    .pss-nav-collapsed .pss-shell {
        display: block;
    }

    .pss-topbar {
        position: sticky;
        top: 0;
        z-index: 110;
        display: flex;
        align-items: center;
        gap: 10px;
        height: 54px;
        padding: 0 14px 0 8px;
        background: var(--topbar-bg);
        border-bottom: 1px solid var(--line);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

        .pss-topbar .pss-icon-btn {
            width: 38px;
            height: 38px;
            color: var(--text);
            font-size: 17px;
        }

    .pss-aside {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(290px, 86vw);
        height: auto;
        box-shadow: var(--shadow-pop);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform .25s ease, visibility 0s linear .25s;
    }

    .pss-nav-open .pss-aside {
        transform: none;
        visibility: visible;
        transition: transform .25s ease;
    }

    .pss-nav-open .pss-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 115;
        background: rgba(23, 26, 33, .35);
    }

    .pss-collapse-btn {
        display: none !important;
    }

    /* The collapsed preference only applies on wide screens */
    .pss-nav-collapsed .pss-brand,
    .pss-nav-collapsed .pss-menu-label,
    .pss-nav-collapsed .pss-caret,
    .pss-nav-collapsed .pss-menu-heading,
    .pss-nav-collapsed .pss-user-text,
    .pss-nav-collapsed .pss-user-btn > .fa,
    .pss-nav-collapsed .pss-count:not(.pss-count-alert) {
        display: revert;
    }

    .pss-nav-collapsed .pss-menu > li > a,
    .pss-nav-collapsed .pss-menu-toggle {
        justify-content: flex-start;
        padding: 0 10px;
    }

    .pss-nav-collapsed .pss-counts {
        position: static;
    }

    .pss-nav-collapsed .pss-menu-section.open .pss-submenu {
        display: block;
    }

    .pss-main {
        padding: 20px 16px 48px;
    }

        .pss-main > h3 {
            font-size: 22px;
        }

    .ticket-head {
        flex-direction: column;
        gap: 14px;
    }

    .ticket-actions {
        justify-content: flex-start;
    }

    body.pss h1.ticket-title {
        font-size: 23px;
    }

    .auth {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-art {
        display: none;
    }

    .auth-side {
        padding: 24px 20px;
    }
}

@media (max-width: 600px) {
    .pss-main {
        display: flex;
        flex-direction: column;
    }

        .pss-main > h3 {
            order: -1;
            margin-bottom: 12px;
        }

        .pss-main > .btn.pull-right,
        .pss-main > .btn-group.pull-right {
            float: none !important;
            align-self: flex-start;
            margin: 0 0 14px;
        }

    .filter-bar .filter-search {
        grid-column: auto;
    }

    #TicketCommentSection .panel-footer {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Dark mode: pieces that do not come from the colour tokens
   -------------------------------------------------------------------------- */
/* The intalio wordmark is a dark image */
:root[data-theme="dark"] .pss-logo img {
    filter: brightness(0) invert(.92);
}

/* Initials avatars: dark tint with light letters */
:root[data-theme="dark"] body.pss .avatar {
    background: hsl(var(--h) 35% 26%);
    color: hsl(var(--h) 70% 86%);
}

/* SweetAlert body text and the close/caret colours of Bootstrap */
:root[data-theme="dark"] body.pss .sweet-alert p,
:root[data-theme="dark"] body.pss .close {
    color: var(--text-2);
    text-shadow: none;
}

/* CKEditor: its toolbar icons are dark sprites */
:root[data-theme="dark"] body.pss .cke_button_icon,
:root[data-theme="dark"] body.pss .cke_combo_open,
:root[data-theme="dark"] body.pss .cke_button_arrow {
    filter: invert(.88);
}

:root[data-theme="dark"] body.pss .cke_combo_text,
:root[data-theme="dark"] body.pss .cke_button_label,
:root[data-theme="dark"] body.pss .cke_path_item,
:root[data-theme="dark"] body.pss .cke_wordcount {
    color: var(--text-2) !important;
    text-shadow: none;
}

:root[data-theme="dark"] body.pss .cke_combo_button,
:root[data-theme="dark"] body.pss a.cke_button_on,
:root[data-theme="dark"] body.pss a.cke_button:hover,
:root[data-theme="dark"] body.pss a.cke_button:focus {
    background: var(--muted-bg);
    border-color: var(--line-strong);
    box-shadow: none;
}

:root[data-theme="dark"] body.pss .cke_toolbar_separator {
    background-color: var(--line-strong);
}

:root[data-theme="dark"] body.pss .cke_panel,
:root[data-theme="dark"] body.pss .cke_dialog_body {
    background: var(--surface);
    border-color: var(--line);
}

/* jQuery datetimepicker (xdsoft) */
:root[data-theme="dark"] .xdsoft_datetimepicker {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow-pop);
    color: var(--text);
}

    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar td,
    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar th,
    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div {
        background: var(--surface);
        border-color: var(--line);
        color: var(--text);
    }

    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar th {
        background: var(--subtle);
        color: var(--text-3);
    }

    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,
    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled {
        opacity: .4;
    }

    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar td:hover,
    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div:hover {
        background: var(--muted-bg) !important;
        color: var(--text) !important;
    }

    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_current {
        background: var(--accent);
        box-shadow: none;
        color: #fff;
    }

    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today {
        color: var(--accent-ink);
    }

    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_label {
        background: var(--surface);
        color: var(--text);
    }

        :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select {
            background: var(--surface);
            border-color: var(--line);
        }

    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_prev,
    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_next,
    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_today_button,
    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev,
    :root[data-theme="dark"] .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next {
        filter: invert(.88);
    }
