/*!
 * POS sidebar shell — DashLite / Nestiko CRM–aligned (nk-* menu + light sidebar).
 * Icons: Flaticon UIcons (fi-rr-*) + Nioicon chevron on nk-menu-toggle; Tabler (ti) in footer card.
 */
@font-face {
    font-family: "Nioicon";
    src: url("../fonts/Nioicon.woff") format("woff"), url("../fonts/Nioicon.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.pos-nk-sidebar.nk-sidebar {
    display: none;
    flex-direction: column;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 100vh;
    height: 100%;
    background: var(--bg-surface, #ffffff);
    border-right: 1px solid var(--border-default, #e2e8f0);
    box-shadow: var(--shadow-soft, 0 1px 2px rgba(15, 23, 42, 0.06));
    z-index: 100;
}

.pos-nk-sidebar .nk-sidebar-element {
    overflow: hidden;
    width: 100%;
}

.pos-nk-sidebar .nk-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    min-height: 65px;
    border-bottom: 1px solid var(--border-default, #e2e8f0);
    background: var(--bg-surface, #ffffff);
    flex-shrink: 0;
}

.pos-nk-sidebar .nk-sidebar-brand {
    position: relative;
    min-width: 0;
}

.pos-nk-sidebar .logo-link.nk-sidebar-logo {
    text-decoration: none;
    color: var(--text-primary, #0f172a);
    font-family: Nunito, Figtree, sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-nk-sidebar .nk-sidebar-logo-mini {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bg-header-start, #3730a3), var(--bg-header-end, #312e81));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

/* Business logo from settings (Business Settings → Upload Logo) */
.pos-nk-sidebar .nk-sidebar-logo-mark {
    display: block;
    min-width: 0;
}

.pos-nk-sidebar .nk-sidebar-logo-img {
    display: block;
    max-height: 2.35rem;
    max-width: min(11rem, 100%);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.pos-nk-sidebar .nk-sidebar-logo-mini.nk-sidebar-logo-mark-mini {
    background: var(--bg-surface-soft, #f8fafc);
    border: 1px solid var(--border-default, #e2e8f0);
    padding: 0.22rem;
    font-size: 0;
    line-height: 0;
}

.pos-nk-sidebar .nk-sidebar-logo-img--mini {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-logo-mini.nk-sidebar-logo-mark-mini {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-default, #22314d);
}

.pos-nk-sidebar .nk-sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong, #cbd5e1) var(--bg-surface, #fff);
}

.pos-nk-sidebar .nk-sidebar-menu {
    padding: 1rem 0 1.5rem;
}

.pos-nk-sidebar .nk-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pos-nk-sidebar .nk-menu li a {
    vertical-align: middle;
    display: flex;
    position: relative;
    align-items: center;
    transition: color 0.3s, background-color 0.3s;
    text-decoration: none;
}

.pos-nk-sidebar .nk-menu-item {
    padding: 4px 18px;
}

.pos-nk-sidebar .nk-menu-sub .nk-menu-item {
    padding: 1px 0;
}

.pos-nk-sidebar .nk-menu-item.has-sub {
    position: relative;
}

.pos-nk-sidebar .nk-menu-link {
    padding: 0.5rem 2px 0.5rem 16px;
    color: var(--text-secondary, #475569);
    font-family: Nunito, Figtree, sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    line-height: 1.2rem;
    border-radius: 6px;
}

.pos-nk-sidebar .active.has-sub > .nk-menu-link {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.pos-nk-sidebar .nk-menu-link:hover,
.pos-nk-sidebar .active > .nk-menu-link {
    color: var(--link-primary, #4338ca);
}

.pos-nk-sidebar .nk-menu-sub .nk-menu-link {
    /* Icons + text sit right of rail + dot; rail aligns with parent row icon center */
    padding: 0.35rem 2rem 0.35rem calc(var(--nk-rail-x) - var(--nk-sub-pl) + 0.55rem);
    gap: 0.4rem;
    font-family: Roboto, Figtree, sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: normal;
    line-height: 1.15rem;
    color: var(--text-muted, #64748b);
}

.pos-nk-sidebar .nk-menu-icon {
    font-weight: normal;
    letter-spacing: normal;
    width: 32px;
    line-height: 1;
    flex-grow: 0;
    flex-shrink: 0;
    color: var(--text-muted, #64748b);
}

.pos-nk-sidebar .nk-menu-icon .icon {
    font-size: 1.05rem;
    letter-spacing: normal;
    vertical-align: middle;
    color: currentColor;
    transition: color 0.4s, background-color 0.4s;
}

.pos-nk-sidebar .nk-menu-link:hover .nk-menu-icon,
.pos-nk-sidebar .nk-menu-item.active > .nk-menu-link .nk-menu-icon,
.pos-nk-sidebar .nk-menu-item.current-menu > .nk-menu-link .nk-menu-icon {
    color: var(--link-primary, #4338ca);
}

.pos-nk-sidebar .nk-menu-text {
    flex-grow: 1;
    display: inline-block;
}

.pos-nk-sidebar .nk-menu-toggle {
    position: relative;
    cursor: pointer;
}

.pos-nk-sidebar .nk-menu-toggle:after {
    position: absolute;
    font-family: "Nioicon", sans-serif;
    top: 50%;
    content: "\e9d3";
    right: 1.1rem;
    transform: translateY(-50%);
    font-size: 0.8125rem;
    color: var(--text-muted, #64748b);
    transition: transform 0.3s, color 0.1s, opacity 0.3s ease 0.3s;
}

.pos-nk-sidebar .has-sub.active > .nk-menu-toggle:after {
    color: var(--link-primary, #4338ca);
    transform: translateY(-50%) rotate(90deg);
}

.pos-nk-sidebar .nk-menu-toggle + .nk-menu-sub {
    display: none;
}

.pos-nk-sidebar .active > .nk-menu-sub {
    display: block;
}

.pos-nk-sidebar .nk-menu-sub .nk-menu-link:hover {
    color: var(--link-primary, #4338ca);
}

.pos-nk-sidebar .nk-menu-sub .nk-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    min-width: 1.25rem;
    margin-top: -1px;
    margin-left: 0;
}

.pos-nk-sidebar .nk-menu-sub .nk-menu-icon .icon {
    margin-top: -1px;
    font-size: 1.2em;
}

.pos-nk-sidebar .nk-menu > li .nk-menu-sub .nk-menu-link:before {
    content: "";
    box-sizing: border-box;
    height: 6px;
    width: 6px;
    border: 1px solid var(--border-strong, #cbd5e1);
    background: rgba(67, 56, 202, 0.12);
    position: absolute;
    left: calc(var(--nk-rail-x) - var(--nk-sub-pl));
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.pos-nk-sidebar .nk-menu > li.active > .nk-menu-link {
    background: rgba(55, 48, 163, 0.07);
}

.pos-nk-sidebar .nk-menu > li > .nk-menu-link:hover {
    background: rgba(55, 48, 163, 0.07);
}

.pos-nk-sidebar .nk-menu > li.nk-menu-item.current-menu:not(.has-sub) > .nk-menu-link {
    background: rgba(55, 48, 163, 0.1);
    color: var(--link-primary, #4338ca);
}

.pos-nk-sidebar .nk-menu > li.nk-menu-item.current-menu:not(.has-sub) > .nk-menu-link .nk-menu-icon {
    color: var(--link-primary, #4338ca);
}

.pos-nk-sidebar .nk-menu-sub {
    /*
     * --nk-rail-x: vertical guide through parent row icon center (parent link pl + half icon width).
     * --nk-sub-pl: extra left inset so children read as nested under the parent, not flush with top-level items.
     */
    --nk-sub-pl: 0.8rem;
    --nk-sub-pr: 0.35rem;
    --nk-rail-x: calc(16px + 16px);
    position: relative;
    background: var(--bg-surface-soft, #f8fafc);
    padding: 0.75rem var(--nk-sub-pr) 0.9rem var(--nk-sub-pl);
    border-radius: 0 0 6px 6px;
    list-style: none;
    margin: 0;
}

/* Dotted vertical rail — through parent menu icon center; bullets share the same x */
.pos-nk-sidebar .nk-menu-sub:before {
    content: "";
    display: block;
    position: absolute;
    top: 0.3rem;
    bottom: 0.35rem;
    left: var(--nk-rail-x);
    width: 0;
    margin-left: -0.5px;
    border-left: 1px dotted rgba(67, 56, 202, 0.28);
    pointer-events: none;
}

.pos-nk-sidebar .nk-menu-sub .nk-menu-item.current-menu > .nk-menu-link {
    color: var(--link-primary, #4338ca);
    font-weight: 600;
}

.pos-nk-sidebar .nk-menu-sub .nk-menu-item.current-menu > .nk-menu-link:before {
    background: var(--link-primary, #4338ca) !important;
    border-color: var(--border-strong, #cbd5e1) !important;
}

.pos-nk-sidebar .nk-sidebar-footer {
    flex-shrink: 0;
    padding: 0.85rem 1rem 1.1rem;
    border-top: 1px solid var(--border-default, #e2e8f0);
    background: var(--bg-surface, #ffffff);
    overflow: visible;
    position: relative;
    z-index: 3;
}

/* User card + quick actions (notifications, theme, profile, sign out) */
.pos-nk-sidebar .nk-sidebar-user-card {
    border-radius: 12px;
    border: 1px solid var(--border-default, #e2e8f0);
    background: var(--bg-surface-soft, #f8fafc);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
    padding: 0.75rem 0.65rem 0.65rem;
    overflow: visible;
}

.pos-nk-sidebar .nk-sidebar-user-card__main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    min-width: 0;
}

.pos-nk-sidebar .nk-sidebar-user-card__avatar {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, rgba(67, 56, 202, 0.16), rgba(99, 102, 241, 0.08));
    color: var(--link-primary, #4338ca);
    border: 1px solid rgba(67, 56, 202, 0.2);
}

.pos-nk-sidebar .nk-sidebar-user-card__avatar--sm {
    width: 1.38rem;
    height: 1.38rem;
    font-size: 0.62rem;
    border-width: 0;
    background: rgba(67, 56, 202, 0.18);
}

.pos-nk-sidebar .nk-sidebar-user-card__meta {
    min-width: 0;
    flex: 1;
}

.pos-nk-sidebar .nk-sidebar-user-card__name {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.pos-nk-sidebar .nk-sidebar-user-card__email {
    margin: 0.15rem 0 0;
    font-size: 0.65rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.pos-nk-sidebar .nk-sidebar-user-card__actions {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.pos-nk-sidebar .nk-sidebar-user-card__actions > * {
    flex: 1;
    min-width: 0;
}

.pos-nk-sidebar .nk-sidebar-user-card--rail {
    padding: 0.5rem 0.4rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05), 0 6px 18px -10px rgba(15, 23, 42, 0.14);
}

.pos-nk-sidebar .nk-sidebar-user-card__actions--rail {
    flex-direction: column;
    gap: 0.4rem;
}

.pos-nk-sidebar .nk-sidebar-user-card__actions--rail > * {
    flex: none;
    width: 100%;
}

.pos-nk-sidebar .nk-sidebar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.2rem;
    padding: 0 0.2rem;
    border: 1px solid var(--border-strong, #cbd5e1);
    border-radius: 10px;
    background: var(--bg-surface, #ffffff);
    color: var(--text-secondary, #475569);
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.pos-nk-sidebar .nk-sidebar-icon-btn:hover {
    background: rgba(67, 56, 202, 0.07);
    border-color: rgba(67, 56, 202, 0.25);
    color: var(--link-primary, #4338ca);
}

.pos-nk-sidebar .nk-sidebar-icon-btn .ti {
    font-size: 1.05rem;
}

.pos-nk-sidebar .nk-sidebar-icon-btn--avatar {
    padding: 0.2rem;
}

.pos-nk-sidebar .nk-sidebar-icon-btn--logout:hover {
    background: rgba(185, 28, 28, 0.08);
    border-color: rgba(185, 28, 28, 0.22);
    color: #b91c1c;
}

.pos-nk-sidebar .nk-sidebar-logout-form {
    display: flex;
    margin: 0;
}

.pos-nk-sidebar .nk-sidebar-dd {
    position: relative;
    overflow: visible;
}

.pos-nk-sidebar .nk-sidebar-dd > summary {
    list-style: none;
}

.pos-nk-sidebar .nk-sidebar-dd > summary::-webkit-details-marker {
    display: none;
}

.pos-nk-sidebar .nk-sidebar-dd-menu {
    position: absolute;
    bottom: calc(100% + 0.4rem);
    left: 0;
    min-width: 13.5rem;
    max-width: min(17.5rem, calc(100vw - 1.5rem));
    background: var(--bg-surface, #fff);
    border-radius: 0.55rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--border-default, #e2e8f0);
    padding: 0.35rem;
    z-index: 40;
}

.pos-nk-sidebar .nk-sidebar-dd-menu--md {
    min-width: 14rem;
}

.pos-nk-sidebar .nk-sidebar-dd-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #64748b);
    padding: 0.35rem 0.5rem 0.25rem;
}

.pos-nk-sidebar .nk-sidebar-notif-empty {
    margin: 0;
    padding: 0.85rem 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    text-align: center;
}

.pos-nk-sidebar .nk-sidebar-profile-meta {
    padding: 0.4rem 0.5rem 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pos-nk-sidebar .nk-sidebar-profile-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    line-height: 1.25;
    word-break: break-word;
}

.pos-nk-sidebar .nk-sidebar-profile-email {
    font-size: 0.68rem;
    color: var(--text-muted, #64748b);
    word-break: break-all;
    line-height: 1.2;
}

.pos-nk-sidebar .nk-sidebar-dd-divider {
    height: 1px;
    background: var(--border-default, #e2e8f0);
    margin: 0.25rem 0;
}

.pos-nk-sidebar .nk-sidebar-dd-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-primary, #0f172a);
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.pos-nk-sidebar .nk-sidebar-dd-item:hover {
    background: var(--bg-surface-soft, #f1f5f9);
}

.pos-nk-sidebar .nk-sidebar-dd-item .ti {
    font-size: 1rem;
    color: var(--text-muted, #64748b);
}

.pos-nk-sidebar .nk-sidebar-dd-item--btn {
    color: #b91c1c;
}

.pos-nk-sidebar .nk-sidebar-dd-item--btn:hover {
    background: #fef2f2;
}

.pos-nk-sidebar .nk-sidebar-profile-logout {
    margin: 0;
}

.pos-nk-sidebar .nk-sidebar-footer-mini-only {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.15rem 0 0;
}

/* Minimised rail: icons only; hover expands flyout */
.app-sidebar-column.is-mini:not(:hover) .pos-nk-sidebar .nk-sidebar-logo-full {
    display: none;
}

.app-sidebar-column.is-mini:not(:hover) .pos-nk-sidebar .nk-sidebar-logo-mini {
    display: flex;
}

.app-sidebar-column.is-mini:not(:hover) .pos-nk-sidebar .nk-sidebar-head {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    justify-content: center;
}

.app-sidebar-column.is-mini:not(:hover) .pos-nk-sidebar .nk-menu-text {
    display: none !important;
}

.app-sidebar-column.is-mini:not(:hover) .pos-nk-sidebar .nk-menu-toggle:after {
    display: none;
}

.app-sidebar-column.is-mini:not(:hover) .pos-nk-sidebar .nk-menu-sub {
    display: none !important;
}

.app-sidebar-column.is-mini:not(:hover) .pos-nk-sidebar .nk-menu-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.app-sidebar-column.is-mini:not(:hover) .pos-nk-sidebar .nk-menu-icon {
    width: auto;
    margin: 0 auto;
}

.app-sidebar-column.is-mini:not(:hover) .pos-nk-sidebar .nk-sidebar-footer-expanded {
    display: none !important;
}

.app-sidebar-column.is-mini:not(:hover) .pos-nk-sidebar .nk-sidebar-footer-mini-only {
    display: flex !important;
}

.app-sidebar-column.is-mini:hover .pos-nk-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(296px, calc(100vw - 48px));
    max-width: 320px;
    z-index: 5;
    border-radius: 0 12px 12px 0;
    overflow: visible;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.06),
        12px 0 48px rgba(15, 23, 42, 0.12);
    border-right: none;
}

.app-sidebar-column.is-mini:hover .pos-nk-sidebar .nk-sidebar-head {
    padding-left: 24px;
    padding-right: 24px;
    justify-content: space-between;
}

.app-sidebar-column.is-mini:hover .pos-nk-sidebar .nk-sidebar-footer-expanded {
    display: block !important;
}

.app-sidebar-column.is-mini:hover .pos-nk-sidebar .nk-sidebar-footer-mini-only {
    display: none !important;
}

@media (min-width: 768px) {
    .pos-nk-sidebar.nk-sidebar {
        display: flex;
    }
}

/* -------------------------------------------------------------------------
   Dark mode — matches html[data-theme='dark'] + app.css design tokens
   ------------------------------------------------------------------------- */
:root[data-theme='dark'] .pos-nk-sidebar.nk-sidebar {
    background: var(--bg-sidebar, #070d18);
    border-right-color: var(--border-default, #22314d);
    box-shadow: 0 0 28px -10px rgba(0, 0, 0, 0.55);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-head {
    border-bottom-color: var(--border-default, #22314d);
}

:root[data-theme='dark'] .pos-nk-sidebar .logo-link.nk-sidebar-logo {
    color: var(--text-primary, #e2e8f0);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-scroll {
    scrollbar-color: var(--border-strong, #334866) var(--bg-sidebar, #070d18);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-link {
    color: var(--text-secondary, #cbd5e1);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-link:hover,
:root[data-theme='dark'] .pos-nk-sidebar .active > .nk-menu-link {
    color: var(--link-primary, #93c5fd);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-icon {
    color: var(--text-muted, #94a3b8);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-link:hover .nk-menu-icon,
:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-item.active > .nk-menu-link .nk-menu-icon,
:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-item.current-menu > .nk-menu-link .nk-menu-icon {
    color: var(--link-primary, #93c5fd);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-toggle:after {
    color: var(--text-muted, #94a3b8);
}

:root[data-theme='dark'] .pos-nk-sidebar .has-sub.active > .nk-menu-toggle:after {
    color: var(--link-primary, #93c5fd);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-sub .nk-menu-link {
    color: var(--text-muted, #94a3b8);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-sub .nk-menu-link:hover {
    color: var(--link-primary, #93c5fd);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu > li .nk-menu-sub .nk-menu-link:before {
    border-color: rgba(147, 197, 253, 0.25);
    background: rgba(147, 197, 253, 0.15);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu > li.active > .nk-menu-link,
:root[data-theme='dark'] .pos-nk-sidebar .nk-menu > li > .nk-menu-link:hover {
    background: rgba(147, 197, 253, 0.1);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu > li.nk-menu-item.current-menu:not(.has-sub) > .nk-menu-link {
    background: rgba(59, 130, 246, 0.18);
    color: var(--link-primary, #93c5fd);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu > li.nk-menu-item.current-menu:not(.has-sub) > .nk-menu-link .nk-menu-icon {
    color: var(--link-primary, #93c5fd);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-sub {
    background: var(--bg-sidebar-soft, #0e1627);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-sub:before {
    border-left-color: rgba(147, 197, 253, 0.38);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-sub .nk-menu-item.current-menu > .nk-menu-link {
    color: var(--link-primary, #93c5fd);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-menu-sub .nk-menu-item.current-menu > .nk-menu-link:before {
    background: var(--link-primary, #93c5fd) !important;
    border-color: rgba(147, 197, 253, 0.35) !important;
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-footer {
    border-top-color: var(--border-default, #22314d);
    background: var(--bg-sidebar, #070d18);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-user-card {
    border-color: var(--border-strong, #334866);
    background: var(--bg-sidebar-soft, #0e1627);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35), 0 12px 32px -14px rgba(0, 0, 0, 0.65);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-user-card__avatar {
    background: linear-gradient(145deg, rgba(147, 197, 253, 0.18), rgba(59, 130, 246, 0.08));
    color: var(--link-primary, #93c5fd);
    border-color: rgba(147, 197, 253, 0.28);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-user-card__avatar--sm {
    background: rgba(147, 197, 253, 0.15);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-user-card__name {
    color: var(--text-primary, #e2e8f0);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-user-card__email {
    color: var(--text-muted, #94a3b8);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-icon-btn {
    border-color: var(--border-strong, #334866);
    background: var(--bg-sidebar, #070d18);
    color: var(--text-secondary, #cbd5e1);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-icon-btn:hover {
    background: rgba(147, 197, 253, 0.12);
    border-color: rgba(147, 197, 253, 0.35);
    color: var(--link-primary, #93c5fd);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-icon-btn--logout:hover {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-dd-menu {
    background: var(--bg-surface, #0b1220);
    border-color: var(--border-strong, #334866);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-dd-header {
    color: var(--text-muted, #94a3b8);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-notif-empty {
    color: var(--text-muted, #94a3b8);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-profile-name {
    color: var(--text-primary, #e2e8f0);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-profile-email {
    color: var(--text-muted, #94a3b8);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-dd-divider {
    background: var(--border-strong, #334866);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-dd-item {
    color: var(--text-primary, #e2e8f0);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-dd-item:hover {
    background: rgba(147, 197, 253, 0.1);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-dd-item .ti {
    color: var(--text-muted, #94a3b8);
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-dd-item--btn {
    color: #fca5a5;
}

:root[data-theme='dark'] .pos-nk-sidebar .nk-sidebar-dd-item--btn:hover {
    background: rgba(185, 28, 28, 0.2);
}

:root[data-theme='dark'] .app-sidebar-column.is-mini:hover .pos-nk-sidebar {
    box-shadow:
        0 0 0 1px rgba(34, 49, 77, 0.9),
        16px 0 56px rgba(0, 0, 0, 0.55);
}
