/* ==========================================================================
   Kool POS — Premium theme
   Layered on top of sb-admin-2. Shell rules (sidebar, topbar, footer) apply to
   every page that includes common/sidebar.php; .pk-* components are opt-in.
   ========================================================================== */

:root {
    --pk-font: "Plus Jakarta Sans", "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;

    --pk-bg: #f4f6fb;
    --pk-surface: #ffffff;
    --pk-ink: #0f172a;
    --pk-ink-2: #475569;
    --pk-muted: #94a3b8;
    --pk-line: #e8ecf3;

    --pk-primary: #4f46e5;
    --pk-primary-soft: #eef0ff;
    --pk-gold: #f5b301;
    --pk-gold-deep: #d97706;
    --pk-gold-soft: #fff6dc;
    --pk-green: #10b981;
    --pk-green-soft: #e3f7ef;
    --pk-rose: #f43f5e;
    --pk-rose-soft: #ffe8ec;
    --pk-sky: #0ea5e9;
    --pk-sky-soft: #e2f4fc;

    --pk-side: #0b1220;
    --pk-side-2: #121b2f;
    --pk-side-ink: rgba(226, 232, 240, .68);

    --pk-radius: 16px;
    --pk-radius-sm: 10px;
    --pk-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 24px rgba(15, 23, 42, .06);
    --pk-shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 16px 40px rgba(15, 23, 42, .10);
}

/* ---------- Base ------------------------------------------------------- */

#wrapper,
#wrapper .btn,
#wrapper .form-control,
#wrapper .dropdown-menu,
.modal {
    font-family: var(--pk-font);
}

#wrapper #content-wrapper {
    background: var(--pk-bg);
    overflow-x: clip; /* 'hidden' would break the sticky topbar */
    min-width: 0;
}

/* ---------- Sidebar ---------------------------------------------------- */
/* Three modes: expanded (desktop), .toggled = icon rail (desktop), drawer (< 768px). */

#accordionSidebar {
    --pk-side-w: 16rem;
    --pk-rail-w: 5.25rem;
    background: linear-gradient(180deg, var(--pk-side) 0%, var(--pk-side-2) 100%) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05);
    flex-wrap: nowrap;
    padding: 0;
    transition: width .22s ease;
    z-index: 1030;
}

/* Thin scrollbar */
#accordionSidebar::-webkit-scrollbar { width: 6px; }
#accordionSidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .08); border-radius: 6px; }
#accordionSidebar { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .1) transparent; }

/* Brand row */
#accordionSidebar .pk-side-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    height: 4.5rem;
    padding: 0 .9rem 0 1.25rem;
    flex-shrink: 0;
    list-style: none;
}

#accordionSidebar .pk-side-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

#accordionSidebar .pk-side-logo .pk-logo-full {
    max-height: 40px;
    max-width: 150px;
    object-fit: contain;
}

#accordionSidebar .pk-side-logo .pk-logo-mark {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

#accordionSidebar .pk-side-btn,
#accordionSidebar #sidebarToggle {
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 9px !important;
    background: rgba(255, 255, 255, .04);
    color: rgba(226, 232, 240, .7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

#accordionSidebar .pk-side-btn:hover,
#accordionSidebar #sidebarToggle:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

#accordionSidebar #sidebarToggle::after {
    display: none;
}

#accordionSidebar #sidebarToggle i {
    transition: transform .22s ease;
}

#accordionSidebar .pk-side-close {
    display: none;
}

/* Search */
#accordionSidebar .pk-side-search {
    position: relative;
    margin: .25rem .9rem .75rem;
    list-style: none;
    flex-shrink: 0;
}

#accordionSidebar .pk-side-search > i {
    position: absolute;
    left: .8rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(148, 163, 184, .6);
    font-size: .78rem;
    pointer-events: none;
}

#accordionSidebar .pk-side-search input {
    width: 100%;
    height: 2.4rem;
    padding: 0 2.2rem 0 2.15rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-family: var(--pk-font);
    font-size: .82rem;
    outline: none;
    transition: border-color .15s ease, background-color .15s ease;
}

#accordionSidebar .pk-side-search input::placeholder {
    color: rgba(148, 163, 184, .65);
}

#accordionSidebar .pk-side-search input:focus {
    border-color: rgba(245, 179, 1, .5);
    background: rgba(255, 255, 255, .07);
}

#accordionSidebar .pk-side-search kbd {
    position: absolute;
    right: .55rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .05rem .4rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    box-shadow: none;
    color: rgba(148, 163, 184, .8);
    font-family: var(--pk-font);
    font-size: .68rem;
    pointer-events: none;
}

#accordionSidebar .pk-side-search input:focus ~ kbd,
#accordionSidebar .pk-side-search input:not(:placeholder-shown) ~ kbd {
    display: none;
}

/* Section labels */
#accordionSidebar .pk-side-label {
    color: rgba(148, 163, 184, .5);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 1rem 1.6rem .45rem;
    white-space: nowrap;
    list-style: none;
}

/* Top-level links */
#accordionSidebar .nav-item {
    margin: 1px 0;
    position: relative;
}

#accordionSidebar .nav-item .nav-link {
    display: flex;
    align-items: center;
    width: auto;
    margin: 0 .75rem;
    padding: .62rem .8rem;
    border-radius: var(--pk-radius-sm);
    color: var(--pk-side-ink);
    font-weight: 500;
    text-align: left;
    transition: background-color .15s ease, color .15s ease;
}

#accordionSidebar .nav-item .nav-link span {
    display: inline;
    font-size: .86rem;
    white-space: nowrap;
}

#accordionSidebar .nav-item .nav-link i {
    color: rgba(148, 163, 184, .72);
    width: 1.25rem;
    margin-right: .7rem;
    text-align: center;
    font-size: .92rem;
    flex-shrink: 0;
    transition: color .15s ease;
}

#accordionSidebar .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

#accordionSidebar .nav-item .nav-link:hover i {
    color: #e2e8f0;
}

#accordionSidebar .nav-item.active > .nav-link {
    background: linear-gradient(90deg, rgba(245, 179, 1, .16) 0%, rgba(245, 179, 1, .04) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(245, 179, 1, .12);
}

#accordionSidebar .nav-item.active > .nav-link i {
    color: var(--pk-gold);
}

#accordionSidebar .nav-item .nav-link:not(.collapsed)[data-toggle="collapse"] {
    color: #fff;
}

#accordionSidebar .nav-item .nav-link:not(.collapsed)[data-toggle="collapse"] i {
    color: #e2e8f0;
}

/* Chevron: one glyph, rotated */
#accordionSidebar .nav-item .nav-link[data-toggle="collapse"]::after,
#accordionSidebar .nav-item .nav-link[data-toggle="collapse"].collapsed::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    float: none;
    width: auto;
    margin-left: auto;
    padding-left: .5rem;
    color: rgba(148, 163, 184, .5);
    font-size: .72rem;
    transition: transform .2s ease;
}

#accordionSidebar .nav-item .nav-link[data-toggle="collapse"].collapsed::after {
    transform: rotate(-90deg);
}

/* Sub-menu: inline tree with a guide line */
#accordionSidebar .nav-item .collapse,
#accordionSidebar .nav-item .collapsing {
    position: relative;
    left: 0;
    top: 0;
    margin: .1rem .75rem .35rem;
    animation: none;
}

#accordionSidebar .nav-item .collapse .collapse-inner,
#accordionSidebar .nav-item .collapsing .collapse-inner {
    position: relative;
    background: transparent !important;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
    padding: .15rem 0 !important;
    margin: 0;
    min-width: 0;
}

#accordionSidebar .nav-item .collapse-inner::before {
    content: "";
    position: absolute;
    left: 1.42rem;
    top: .3rem;
    bottom: .3rem;
    width: 1px;
    background: rgba(148, 163, 184, .16);
}

#accordionSidebar .pk-fly-title {
    display: none;
}

#accordionSidebar .nav-item .collapse-inner .collapse-item {
    position: relative;
    display: block;
    margin: 1px 0;
    padding: .46rem .8rem .46rem 2.5rem;
    border-radius: 8px;
    color: rgba(203, 213, 225, .62);
    font-size: .82rem;
    font-weight: 500;
    white-space: normal;
    line-height: 1.35;
    transition: background-color .15s ease, color .15s ease;
}

#accordionSidebar .nav-item .collapse-inner .collapse-item::before {
    content: "";
    position: absolute;
    left: calc(1.42rem - 2.5px);
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pk-side-2);
    border: 1px solid rgba(148, 163, 184, .35);
    transform: translateY(-50%);
    transition: background-color .15s ease, border-color .15s ease;
}

#accordionSidebar .nav-item .collapse-inner .collapse-item:hover {
    background: rgba(255, 255, 255, .04);
    color: #fff;
}

#accordionSidebar .nav-item .collapse-inner .collapse-item:hover::before {
    border-color: rgba(226, 232, 240, .7);
}

#accordionSidebar .nav-item .collapse-inner .collapse-item.active {
    background: transparent;
    color: #fff;
    font-weight: 600;
}

#accordionSidebar .nav-item .collapse-inner .collapse-item.active::before {
    background: var(--pk-gold);
    border-color: var(--pk-gold);
    box-shadow: 0 0 0 3px rgba(245, 179, 1, .2);
}

#accordionSidebar .collapse-item .fa-external-link-alt {
    font-size: .6rem;
    margin-left: .3rem;
    opacity: .5;
}

/* Search states */
#accordionSidebar .pk-side-empty {
    display: none;
    padding: 1.5rem 1.25rem;
    color: rgba(148, 163, 184, .7);
    font-size: .8rem;
    text-align: center;
    list-style: none;
}

#accordionSidebar.pk-searching .pk-side-label {
    display: none;
}

#accordionSidebar.pk-searching .nav-item .collapse {
    display: block !important;
    height: auto !important;
}

#accordionSidebar.pk-searching.pk-no-results .pk-side-empty {
    display: block;
}

#accordionSidebar mark {
    background: rgba(245, 179, 1, .25);
    color: #fff;
    padding: 0 1px;
    border-radius: 3px;
}

/* Footer: plan + user */
#accordionSidebar .pk-side-foot {
    margin-top: auto;
    padding: 1.25rem .9rem .75rem;
    list-style: none;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(18, 27, 47, 0) 0%, var(--pk-side-2) 1.1rem);
}

#accordionSidebar.pk-searching .nav-link[data-toggle="collapse"]::after {
    visibility: hidden;
}

@media (hover: none) {
    #accordionSidebar .pk-side-search kbd {
        display: none;
    }
}

#accordionSidebar .pk-plan {
    display: block;
    padding: .85rem .95rem;
    margin-bottom: .75rem;
    border-radius: 12px;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(245, 179, 1, .18) 0%, rgba(245, 179, 1, 0) 60%),
        rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    text-decoration: none !important;
    transition: border-color .15s ease;
}

#accordionSidebar a.pk-plan:hover {
    border-color: rgba(245, 179, 1, .35);
}

#accordionSidebar .pk-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .6rem;
}

#accordionSidebar .pk-plan-top .fa-arrow-right {
    color: rgba(148, 163, 184, .6);
    font-size: .7rem;
}

#accordionSidebar .pk-plan-name {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#accordionSidebar .pk-plan-name i {
    color: var(--pk-gold);
    margin-right: .35rem;
}

#accordionSidebar .pk-plan-meta {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .5rem;
    color: rgba(148, 163, 184, .7);
    font-size: .68rem;
    white-space: nowrap;
}

#accordionSidebar .pk-plan-days {
    color: rgba(203, 213, 225, .85);
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
}

#accordionSidebar .pk-plan-bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

#accordionSidebar .pk-plan-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pk-gold), var(--pk-gold-deep));
}

#accordionSidebar .pk-plan.is-warn .pk-plan-days { color: #fcd34d; }
#accordionSidebar .pk-plan.is-danger .pk-plan-days { color: #fda4af; }
#accordionSidebar .pk-plan.is-danger .pk-plan-bar span { background: var(--pk-rose); }

#accordionSidebar .pk-plan-cta {
    display: block;
    margin-top: .55rem;
    color: var(--pk-gold);
    font-size: .72rem;
    font-weight: 700;
}

#accordionSidebar .pk-me {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .5rem .55rem .55rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .025);
}

#accordionSidebar .pk-me .pk-avatar {
    width: 2.1rem;
    height: 2.1rem;
    font-size: .85rem;
    box-shadow: none;
}

#accordionSidebar .pk-me-meta {
    min-width: 0;
    flex: 1;
    line-height: 1.25;
}

#accordionSidebar .pk-me-meta b {
    display: block;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#accordionSidebar .pk-me-meta small {
    color: rgba(148, 163, 184, .75);
    font-size: .7rem;
}

#accordionSidebar .pk-me .pk-side-btn:hover {
    background: rgba(244, 63, 94, .15);
    border-color: rgba(244, 63, 94, .3);
    color: #fda4af;
}

/* ---- Desktop -------------------------------------------------------- */
@media (min-width: 768px) {
    #accordionSidebar {
        width: var(--pk-side-w) !important;
        position: sticky;
        top: 0;
        align-self: flex-start;
        height: 100vh;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Icon rail */
    #accordionSidebar.toggled {
        width: var(--pk-rail-w) !important;
        overflow-x: hidden;
    }

    #accordionSidebar.toggled .pk-side-brand {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 1rem 0 .5rem;
        gap: .75rem;
    }

    #accordionSidebar.toggled .pk-logo-full { display: none; }
    #accordionSidebar.toggled .pk-side-logo .pk-logo-mark { display: block; }
    #accordionSidebar.toggled #sidebarToggle i { transform: rotate(180deg); }

    #accordionSidebar.toggled .pk-side-search,
    #accordionSidebar.toggled .pk-plan,
    #accordionSidebar.toggled .pk-me-meta,
    #accordionSidebar.toggled .pk-me .pk-side-btn {
        display: none;
    }

    #accordionSidebar.toggled .pk-side-label {
        font-size: 0;
        padding: .6rem 0;
        margin: 0 1.6rem;
    }

    #accordionSidebar.toggled .pk-side-label::before {
        content: "";
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, .07);
    }

    #accordionSidebar.toggled .nav-item .nav-link {
        width: auto;
        justify-content: center;
        margin: 0 .85rem;
        padding: .72rem 0;
    }

    #accordionSidebar.toggled .nav-item .nav-link i {
        margin-right: 0;
        font-size: 1rem;
    }

    #accordionSidebar.toggled .nav-item .nav-link::after {
        display: none !important;
    }

    /* Tooltip label */
    #accordionSidebar.toggled .nav-item .nav-link span {
        position: fixed;
        left: calc(var(--pk-rail-w) + .5rem);
        top: var(--pk-tip-y, 50%);
        transform: translate(-4px, -50%);
        padding: .4rem .7rem;
        border-radius: 8px;
        background: var(--pk-ink);
        color: #fff;
        font-size: .76rem;
        font-weight: 600;
        box-shadow: var(--pk-shadow-lg);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .12s ease, transform .12s ease;
        z-index: 1050;
    }

    #accordionSidebar.toggled .nav-item .nav-link:hover span {
        opacity: 1;
        visibility: visible;
        transform: translate(0, -50%);
    }

    #accordionSidebar.toggled .nav-item .nav-link:not(.collapsed)[data-toggle="collapse"] span {
        display: none;
    }

    #accordionSidebar.toggled .nav-item .nav-link:not(.collapsed)[data-toggle="collapse"] {
        background: rgba(255, 255, 255, .07);
    }

    /* Flyout sub-menu */
    #accordionSidebar.toggled .nav-item .collapse {
        position: fixed;
        left: calc(var(--pk-rail-w) + .35rem);
        top: var(--pk-fly-y, 0);
        margin: 0;
        z-index: 1050;
    }

    #accordionSidebar.toggled .nav-item .collapsing {
        display: none;
    }

    #accordionSidebar.toggled .nav-item .collapse .collapse-inner {
        min-width: 13rem;
        padding: .4rem !important;
        background: #141d33 !important;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 12px !important;
        box-shadow: 0 18px 40px rgba(2, 6, 23, .45);
    }

    #accordionSidebar.toggled .nav-item .collapse-inner::before {
        display: none;
    }

    #accordionSidebar.toggled .pk-fly-title {
        display: block;
        padding: .45rem .7rem .5rem;
        color: rgba(148, 163, 184, .65);
        font-size: .64rem;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    #accordionSidebar.toggled .nav-item .collapse-inner .collapse-item {
        padding: .5rem .7rem;
        white-space: nowrap;
    }

    #accordionSidebar.toggled .nav-item .collapse-inner .collapse-item::before {
        display: none;
    }

    #accordionSidebar.toggled .nav-item .collapse-inner .collapse-item.active {
        background: rgba(245, 179, 1, .12);
    }

    #accordionSidebar.toggled .pk-side-foot {
        padding: 1rem 0 0;
    }

    #accordionSidebar.toggled .pk-me {
        justify-content: center;
        border: 0;
        background: transparent;
        padding: 0;
    }

    .pk-side-backdrop {
        display: none !important;
    }
}

/* ---- Mobile drawer --------------------------------------------------- */
@media (max-width: 767.98px) {
    #accordionSidebar,
    #accordionSidebar.toggled {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(18rem, 86vw) !important;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(-105%);
        transition: transform .25s cubic-bezier(.2, .7, .2, 1);
        z-index: 1060;
        box-shadow: none;
    }

    body.pk-drawer-open #accordionSidebar {
        transform: none;
        box-shadow: 0 0 60px rgba(2, 6, 23, .5);
    }

    body.pk-drawer-open {
        overflow: hidden;
    }

    #accordionSidebar #sidebarToggle {
        display: none;
    }

    #accordionSidebar .pk-side-close {
        display: inline-flex;
    }

    /* Undo sb-admin's narrow mobile layout */
    #accordionSidebar .nav-item .nav-link {
        width: auto;
        text-align: left;
        padding: .7rem .8rem;
    }

    #accordionSidebar .nav-item .nav-link span {
        display: inline;
        font-size: .9rem;
    }

    #accordionSidebar .nav-item .collapse {
        position: relative;
        left: 0;
        top: 0;
        animation: none;
    }

    .pk-side-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, .5);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
        z-index: 1055;
    }

    body.pk-drawer-open .pk-side-backdrop {
        opacity: 1;
        visibility: visible;
    }

    #wrapper #content-wrapper {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #accordionSidebar,
    #accordionSidebar * {
        transition: none !important;
    }
}

/* ---------- Topbar ----------------------------------------------------- */

#wrapper .pk-topbar {
    height: 4.5rem;
    background: rgba(255, 255, 255, .85) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--pk-line);
    box-shadow: none !important;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.pk-topbar #sidebarToggleTop {
    color: var(--pk-ink-2);
    width: 2.5rem;
    height: 2.5rem;
    margin-right: .75rem !important;
}

.pk-topbar #sidebarToggleTop:hover {
    background: var(--pk-bg);
}

.pk-topbar-title {
    min-width: 0;
}

.pk-topbar-title .pk-eyebrow {
    display: block;
    color: var(--pk-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.2;
}

.pk-topbar-title h5 {
    color: var(--pk-ink);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-btn-pos {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--pk-ink);
    color: #fff !important;
    font-size: .82rem;
    font-weight: 600;
    padding: .55rem 1rem;
    border-radius: 999px;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.pk-btn-pos i {
    color: var(--pk-gold);
}

.pk-btn-pos:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}

.pk-topbar .topbar-divider {
    border-right: 1px solid var(--pk-line);
    height: 2rem;
    margin: auto 1rem;
}

.pk-topbar .nav-item .nav-link {
    height: 4.5rem;
    padding: 0 .25rem;
}

.pk-user {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.pk-user-meta {
    text-align: right;
    line-height: 1.2;
}

.pk-user-meta b {
    display: block;
    color: var(--pk-ink);
    font-size: .84rem;
    font-weight: 600;
}

.pk-user-meta small {
    color: var(--pk-muted);
    font-size: .72rem;
}

.pk-avatar {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pk-gold) 0%, var(--pk-gold-deep) 100%);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--pk-line);
    flex-shrink: 0;
}

.pk-topbar .dropdown-menu {
    border: 1px solid var(--pk-line);
    border-radius: 12px;
    box-shadow: var(--pk-shadow-lg);
    padding: .4rem;
    min-width: 13rem;
}

.pk-topbar .dropdown-header-pk {
    padding: .6rem .8rem .7rem;
    border-bottom: 1px solid var(--pk-line);
    margin-bottom: .3rem;
}

.pk-topbar .dropdown-header-pk b {
    display: block;
    color: var(--pk-ink);
    font-size: .88rem;
}

.pk-topbar .dropdown-header-pk small {
    color: var(--pk-muted);
}

.pk-topbar .dropdown-item {
    border-radius: 8px;
    font-size: .85rem;
    padding: .55rem .8rem;
    color: var(--pk-ink-2);
}

.pk-topbar .dropdown-item i {
    width: 1.1rem;
    margin-right: .5rem;
    color: var(--pk-muted);
}

.pk-topbar .dropdown-item:hover {
    background: var(--pk-bg);
    color: var(--pk-ink);
}

.pk-topbar .dropdown-item.pk-danger:hover,
.pk-topbar .dropdown-item.pk-danger:hover i {
    background: var(--pk-rose-soft);
    color: var(--pk-rose);
}

@media (max-width: 575.98px) {
    #wrapper .pk-topbar {
        padding: 0 .75rem;
    }

    .pk-topbar .topbar-divider {
        margin: auto .5rem;
    }

    .pk-btn-pos {
        padding: .55rem .75rem;
    }
}

/* ---------- Footer & misc --------------------------------------------- */

#wrapper footer.sticky-footer {
    background: transparent !important;
    border-top: 1px solid var(--pk-line);
    padding: 1.25rem 0;
    color: var(--pk-muted);
    font-size: .8rem;
}

@media (max-width: 767.98px) {
    #wrapper footer.sticky-footer {
        flex-direction: column;
        gap: .35rem;
    }

    #wrapper footer.sticky-footer .container {
        text-align: center !important;
    }
}

#wrapper footer.sticky-footer a {
    color: var(--pk-ink-2);
}

.scroll-to-top.rounded {
    background: var(--pk-ink);
    border-radius: 12px !important;
}

#logoutModal .modal-content {
    border: 0;
    border-radius: var(--pk-radius);
    box-shadow: var(--pk-shadow-lg);
}

#logoutModal .modal-header,
#logoutModal .modal-footer {
    border-color: var(--pk-line);
}

/* ==========================================================================
   Dashboard components (.pk-*)
   ========================================================================== */

.pk-page {
    padding: 0 1.75rem 1rem;
}

@media (max-width: 575.98px) {
    .pk-page {
        padding: 0 1rem 1rem;
    }
}

.pk-card {
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    border-radius: var(--pk-radius);
    box-shadow: var(--pk-shadow);
}

.pk-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem .5rem;
    flex-wrap: wrap;
}

.pk-card-title {
    color: var(--pk-ink);
    font-size: .98rem;
    font-weight: 700;
    margin: 0;
}

.pk-card-sub {
    color: var(--pk-muted);
    font-size: .76rem;
    margin: 2px 0 0;
}

.pk-card-body {
    padding: .5rem 1.35rem 1.35rem;
}

.pk-link {
    color: var(--pk-primary);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.pk-link:hover {
    color: #3730a3;
}

.pk-link i {
    font-size: .7rem;
    margin-left: .2rem;
    transition: transform .15s ease;
}

.pk-link:hover i {
    transform: translateX(2px);
}

/* Hero ------------------------------------------------------------------ */

.pk-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 1.9rem 2rem;
    color: #fff;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(245, 179, 1, .32) 0%, rgba(245, 179, 1, 0) 45%),
        radial-gradient(90% 120% at 0% 100%, rgba(99, 102, 241, .35) 0%, rgba(99, 102, 241, 0) 55%),
        linear-gradient(135deg, #0b1220 0%, #1b2547 100%);
    box-shadow: var(--pk-shadow-lg);
}

.pk-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .04);
    pointer-events: none;
}

.pk-hero-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.pk-hero-greet {
    color: rgba(255, 255, 255, .7);
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: .3rem;
}

.pk-hero-greet i {
    color: var(--pk-gold);
    margin-right: .35rem;
}

.pk-hero h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 .9rem;
}

.pk-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pk-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .88);
    text-decoration: none !important;
    white-space: nowrap;
}

a.pk-chip:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.pk-chip .pk-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pk-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .25);
}

.pk-chip.is-warn {
    background: rgba(245, 179, 1, .16);
    border-color: rgba(245, 179, 1, .35);
    color: #ffe08a;
}

.pk-chip.is-warn .pk-dot {
    background: var(--pk-gold);
    box-shadow: 0 0 0 3px rgba(245, 179, 1, .3);
}

.pk-chip.is-danger {
    background: rgba(244, 63, 94, .18);
    border-color: rgba(244, 63, 94, .4);
    color: #ffc2cd;
}

.pk-chip.is-danger .pk-dot {
    background: var(--pk-rose);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, .3);
}

.pk-hero-stats {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.pk-hero-stat {
    min-width: 150px;
    padding: .95rem 1.15rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .09);
}

.pk-hero-stat small {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .3rem;
}

.pk-hero-stat b {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.pk-hero-stat .pk-clock {
    color: var(--pk-gold);
}

.pk-hero-banner {
    width: 260px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 575.98px) {
    .pk-hero {
        padding: 1.4rem 1.25rem;
    }

    .pk-hero h1 {
        font-size: 1.35rem;
    }

    .pk-hero-stats {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .6rem;
    }

    .pk-hero-stat {
        min-width: 0;
        padding: .8rem .9rem;
    }

    .pk-hero-stat b {
        font-size: 1.1rem;
    }

    .pk-hero-stat.is-clock,
    .pk-hero-banner {
        display: none;
    }

    .pk-kpi {
        padding: 1rem;
    }

    .pk-kpi-top {
        margin-bottom: .7rem;
    }

    .pk-kpi-label {
        font-size: .74rem;
    }

    .pk-kpi-value {
        font-size: 1.25rem;
    }

    .pk-kpi-value .pk-cur {
        font-size: .75rem;
    }

    .pk-kpi .pk-icon {
        width: 2.1rem;
        height: 2.1rem;
        font-size: .85rem;
    }

    .pk-kpi-foot > span:last-child {
        display: none;
    }

    .pk-chart-summary {
        gap: 1rem 1.5rem;
    }
}

/* Announcement ticker ---------------------------------------------------- */

.pk-ticker {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .65rem .65rem .65rem 1rem;
    border-radius: 12px;
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    box-shadow: var(--pk-shadow);
    overflow: hidden;
}

.pk-ticker-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    background: var(--pk-gold-soft);
    color: #a16207;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .3rem .65rem;
    border-radius: 999px;
}

.pk-ticker-track {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.pk-ticker-move {
    display: inline-flex;
    gap: 3rem;
    white-space: nowrap;
    padding-left: 100%;
    animation: pk-ticker 32s linear infinite;
    font-size: .85rem;
    color: var(--pk-ink-2);
}

.pk-ticker:hover .pk-ticker-move {
    animation-play-state: paused;
}

.pk-ticker-move b {
    color: var(--pk-ink);
    margin-right: .35rem;
}

.pk-ticker-move a {
    color: var(--pk-primary);
    font-weight: 600;
    margin-left: .5rem;
}

@keyframes pk-ticker {
    to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .pk-ticker-move {
        animation: none;
        padding-left: 0;
    }
}

/* Alert ------------------------------------------------------------------ */

.pk-alert {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1.1rem;
    border-radius: 12px;
    background: var(--pk-gold-soft);
    border: 1px solid #fde7a6;
    color: #854d0e;
    font-size: .88rem;
}

.pk-alert.is-danger {
    background: var(--pk-rose-soft);
    border-color: #fecdd6;
    color: #9f1239;
}

.pk-alert i {
    font-size: 1.1rem;
}

.pk-alert .pk-alert-btn {
    margin-left: auto;
    background: #fff;
    color: inherit;
    border: 1px solid currentColor;
    font-weight: 700;
    font-size: .78rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

/* Quick actions ----------------------------------------------------------- */

.pk-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .85rem;
}

.pk-action {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1rem;
    background: var(--pk-surface);
    border: 1px solid var(--pk-line);
    border-radius: 14px;
    box-shadow: var(--pk-shadow);
    color: var(--pk-ink) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: .86rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pk-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--pk-shadow-lg);
    border-color: #d9def0;
}

.pk-action small {
    display: block;
    color: var(--pk-muted);
    font-size: .72rem;
    font-weight: 500;
    margin-top: 1px;
}

.pk-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.pk-icon.is-primary { background: var(--pk-primary-soft); color: var(--pk-primary); }
.pk-icon.is-gold    { background: var(--pk-gold-soft);    color: var(--pk-gold-deep); }
.pk-icon.is-green   { background: var(--pk-green-soft);   color: var(--pk-green); }
.pk-icon.is-rose    { background: var(--pk-rose-soft);    color: var(--pk-rose); }
.pk-icon.is-sky     { background: var(--pk-sky-soft);     color: var(--pk-sky); }
.pk-icon.is-ink     { background: #eef1f6;                color: var(--pk-ink-2); }

/* KPI cards ---------------------------------------------------------------- */

.pk-kpi {
    position: relative;
    display: block;
    height: 100%;
    padding: 1.2rem 1.25rem 1.1rem;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}

.pk-kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--pk-shadow-lg);
}

.pk-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pk-kpi-label {
    color: var(--pk-ink-2);
    font-size: .8rem;
    font-weight: 600;
}

.pk-kpi-value {
    color: var(--pk-ink);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.pk-kpi-value .pk-cur {
    color: var(--pk-muted);
    font-size: .95rem;
    font-weight: 600;
    margin-right: .2rem;
}

.pk-kpi-foot {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .7rem;
    color: var(--pk-muted);
    font-size: .74rem;
    flex-wrap: wrap;
}

.pk-delta {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pk-delta.is-up   { background: var(--pk-green-soft); color: #047857; }
.pk-delta.is-down { background: var(--pk-rose-soft);  color: #be123c; }
.pk-delta.is-flat { background: #eef1f6;              color: var(--pk-ink-2); }

/* Segmented control --------------------------------------------------------- */

.pk-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: #f1f3f8;
    border: 1px solid var(--pk-line);
}

.pk-seg button {
    border: 0;
    background: transparent;
    color: var(--pk-ink-2);
    font-size: .76rem;
    font-weight: 600;
    padding: .35rem .8rem;
    border-radius: 7px;
    cursor: pointer;
}

.pk-seg button.is-on {
    background: #fff;
    color: var(--pk-ink);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .1);
}

.pk-chart-wrap {
    position: relative;
    height: 300px;
}

.pk-chart-summary {
    display: flex;
    gap: 2rem;
    padding: 0 1.35rem .25rem;
    flex-wrap: wrap;
}

.pk-chart-summary small {
    display: block;
    color: var(--pk-muted);
    font-size: .72rem;
    font-weight: 600;
}

.pk-chart-summary b {
    color: var(--pk-ink);
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Revenue list ----------------------------------------------------------------- */

.pk-donut-wrap {
    position: relative;
    height: 180px;
    margin: .25rem 0 1rem;
}

.pk-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pk-donut-center small {
    color: var(--pk-muted);
    font-size: .72rem;
    font-weight: 600;
}

.pk-donut-center b {
    color: var(--pk-ink);
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pk-legend {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pk-legend li {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: .6rem;
    padding: .5rem 0;
    border-top: 1px solid var(--pk-line);
    font-size: .82rem;
}

.pk-legend li:first-child {
    border-top: 0;
}

.pk-legend .pk-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.pk-legend .pk-name {
    color: var(--pk-ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-legend .pk-val {
    color: var(--pk-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.pk-legend .pk-val small {
    color: var(--pk-muted);
    font-weight: 600;
    margin-left: .35rem;
}

/* Table ---------------------------------------------------------------------- */

.pk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .84rem;
}

.pk-table th {
    color: var(--pk-muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .6rem 1.35rem;
    background: #f8f9fc;
    border-top: 1px solid var(--pk-line);
    border-bottom: 1px solid var(--pk-line);
    white-space: nowrap;
}

.pk-table td {
    padding: .8rem 1.35rem;
    border-bottom: 1px solid var(--pk-line);
    color: var(--pk-ink-2);
    vertical-align: middle;
    white-space: nowrap;
}

.pk-table tr:last-child td {
    border-bottom: 0;
}

.pk-table tbody tr:hover td {
    background: #fafbfe;
}

.pk-table .pk-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pk-table .pk-bill {
    color: var(--pk-ink);
    font-weight: 700;
}

.pk-table .pk-amt {
    color: var(--pk-ink);
    font-weight: 700;
}

.pk-pill {
    display: inline-block;
    padding: .18rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.pk-pill.is-cash { background: var(--pk-green-soft); color: #047857; }
.pk-pill.is-bank { background: var(--pk-sky-soft);   color: #0369a1; }
.pk-pill.is-other { background: #eef1f6;             color: var(--pk-ink-2); }

.pk-table-scroll {
    overflow-x: auto;
}

/* Top items ------------------------------------------------------------------- */

.pk-rank {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pk-rank li {
    padding: .7rem 0;
    border-top: 1px solid var(--pk-line);
}

.pk-rank li:first-child {
    border-top: 0;
    padding-top: .2rem;
}

.pk-rank-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: .84rem;
    margin-bottom: .45rem;
}

.pk-rank-name {
    color: var(--pk-ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-rank-name small {
    color: var(--pk-muted);
    font-weight: 500;
    margin-left: .35rem;
}

.pk-rank-val {
    color: var(--pk-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pk-bar {
    height: 6px;
    border-radius: 999px;
    background: #f1f3f8;
    overflow: hidden;
}

.pk-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pk-gold) 0%, var(--pk-gold-deep) 100%);
}

/* Empty state ------------------------------------------------------------------- */

.pk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 2.5rem 1rem;
    color: var(--pk-muted);
    font-size: .84rem;
    text-align: center;
}

.pk-empty i {
    font-size: 1.6rem;
    color: #cbd2e0;
}

/* Entrance animation ------------------------------------------------------------- */

.pk-rise {
    animation: pk-rise .45s cubic-bezier(.2, .7, .2, 1) both;
}

.pk-rise.d1 { animation-delay: .04s; }
.pk-rise.d2 { animation-delay: .08s; }
.pk-rise.d3 { animation-delay: .12s; }
.pk-rise.d4 { animation-delay: .16s; }

@keyframes pk-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pk-rise { animation: none; }
}

/* ---------- Logout dialog ---------------------------------------------------- */

.modal-backdrop.show {
    opacity: .55;
    background: #0b1220;
}

.pk-logout .modal-dialog {
    max-width: 400px;
}

.pk-logout .modal-content {
    position: relative;
    align-items: center;
    padding: 2rem 1.75rem 1.5rem;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, .35);
    text-align: center;
    font-family: var(--pk-font);
}

.pk-logout.fade .modal-dialog {
    transform: translateY(12px) scale(.97);
    transition: transform .2s cubic-bezier(.2, .7, .2, 1);
}

.pk-logout.show .modal-dialog {
    transform: none;
}

.pk-logout-x {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--pk-muted);
    cursor: pointer;
}

.pk-logout-x:hover {
    background: var(--pk-bg);
    color: var(--pk-ink);
}

.pk-logout-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pk-rose-soft);
    color: var(--pk-rose);
    font-size: 1.5rem;
    box-shadow: 0 0 0 8px rgba(244, 63, 94, .06);
    margin-bottom: 1.1rem;
}

.pk-logout-title {
    margin: 0 0 .4rem;
    color: var(--pk-ink);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.pk-logout-text {
    margin: 0 0 1.2rem;
    color: var(--pk-ink-2);
    font-size: .88rem;
    line-height: 1.5;
}

.pk-logout-who {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .7rem .85rem;
    margin-bottom: 1.4rem;
    border-radius: 14px;
    background: #f8f9fc;
    border: 1px solid var(--pk-line);
    text-align: left;
}

.pk-logout-who .pk-avatar {
    width: 2.4rem;
    height: 2.4rem;
    box-shadow: none;
}

.pk-logout-who div {
    min-width: 0;
    line-height: 1.3;
}

.pk-logout-who b {
    display: block;
    color: var(--pk-ink);
    font-size: .9rem;
}

.pk-logout-who small {
    display: block;
    color: var(--pk-muted);
    font-size: .76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pk-logout-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    width: 100%;
}

.pk-logout-stay,
.pk-logout-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 48px;
    border-radius: 13px;
    font-family: var(--pk-font);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.pk-logout-stay {
    border: 1px solid var(--pk-line);
    background: #fff;
    color: var(--pk-ink);
}

.pk-logout-stay:hover {
    background: var(--pk-bg);
}

.pk-logout-stay:focus-visible,
.pk-logout-go:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .2);
}

.pk-logout-go {
    border: 0;
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(244, 63, 94, .25);
}

.pk-logout-go:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(244, 63, 94, .32);
}

.pk-logout-go.is-busy {
    pointer-events: none;
    opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
    .pk-logout.fade .modal-dialog {
        transition: none;
        transform: none;
    }
}

/* The sidebar must never be squeezed by wide page content */
#accordionSidebar {
    flex-shrink: 0;
}
