/**
 * NetMkd DeskPortal — Main CSS
 * Локација: assets/css/main.css
 */

/* ============================================================
   CSS CUSTOM PROPERTIES — ПАЛЕТИ
   ============================================================ */

:root, body, html.nmdp-blue {
    --nmdp-primary:           #1e3a8a;
    --nmdp-primary-light:     #2563eb;
    --nmdp-primary-dark:      #1e2d6e;
    --nmdp-topbar-bg:         #1e3a8a;
    --nmdp-topbar-text:       #ffffff;
    --nmdp-sidebar-bg:        #ffffff;
    --nmdp-sidebar-text:      #1e3a8a;
    --nmdp-sidebar-hover-bg:  #eff6ff;
    --nmdp-sidebar-hover-text:#1e3a8a;
    --nmdp-active-bg:         #2563eb;
    --nmdp-active-text:       #ffffff;
    --nmdp-site-bg:           #f0f4f8;
    --nmdp-submenu-bg:        #f8fafc;
    --nmdp-accent:            #f59e0b;
}

.nmdp-teal, html.nmdp-teal {
    --nmdp-primary:           #009688;
    --nmdp-primary-light:     #00796b;
    --nmdp-primary-dark:      #00695c;
    --nmdp-topbar-bg:         #009688;
    --nmdp-topbar-text:       #ffffff;
    --nmdp-sidebar-bg:        #b2dfdb;
    --nmdp-sidebar-text:      #004d40;
    --nmdp-sidebar-hover-bg:  #00796b;
    --nmdp-sidebar-hover-text:#ffffff;
    --nmdp-active-bg:         #ff8a80;
    --nmdp-active-text:       #ffffff;
    --nmdp-site-bg:           #e0f2f1;
    --nmdp-submenu-bg:        #96cecb;
    --nmdp-accent:            #ff8a80;
}

.nmdp-green, html.nmdp-green {
    --nmdp-primary:           #2e7d32;
    --nmdp-primary-light:     #388e3c;
    --nmdp-primary-dark:      #1b5e20;
    --nmdp-topbar-bg:         #2e7d32;
    --nmdp-topbar-text:       #ffffff;
    --nmdp-sidebar-bg:        #e8f5e9;
    --nmdp-sidebar-text:      #1b5e20;
    --nmdp-sidebar-hover-bg:  #1b5e20;
    --nmdp-sidebar-hover-text:#ffffff;
    --nmdp-active-bg:         #ffb74d;
    --nmdp-active-text:       #1b5e20;
    --nmdp-site-bg:           #f1f8e9;
    --nmdp-submenu-bg:        #d4edd6;
    --nmdp-accent:            #ffb74d;
}

.nmdp-corporate, html.nmdp-corporate {
    --nmdp-primary:           #1e293b;
    --nmdp-primary-light:     #334155;
    --nmdp-primary-dark:      #0f172a;
    --nmdp-topbar-bg:         #1e293b;
    --nmdp-topbar-text:       #ffffff;
    --nmdp-sidebar-bg:        #f1f5f9;
    --nmdp-sidebar-text:      #1e293b;
    --nmdp-sidebar-hover-bg:  #e2e8f0;
    --nmdp-sidebar-hover-text:#0f172a;
    --nmdp-active-bg:         #3b82f6;
    --nmdp-active-text:       #ffffff;
    --nmdp-site-bg:           #f8fafc;
    --nmdp-submenu-bg:        #f1f5f9;
    --nmdp-accent:            #3b82f6;
}

.nmdp-autumn, html.nmdp-autumn {
    --nmdp-primary:           #e65100;
    --nmdp-primary-light:     #ef6c00;
    --nmdp-primary-dark:      #bf360c;
    --nmdp-topbar-bg:         #e65100;
    --nmdp-topbar-text:       #ffffff;
    --nmdp-sidebar-bg:        #fff3e0;
    --nmdp-sidebar-text:      #3e2723;
    --nmdp-sidebar-hover-bg:  #bf360c;
    --nmdp-sidebar-hover-text:#ffffff;
    --nmdp-active-bg:         #ffb300;
    --nmdp-active-text:       #ffffff;
    --nmdp-site-bg:           #fff8f0;
    --nmdp-submenu-bg:        #ffe0b2;
    --nmdp-accent:            #ffb300;
}

.nmdp-ocean, html.nmdp-ocean {
    --nmdp-primary:           #0277bd;
    --nmdp-primary-light:     #0288d1;
    --nmdp-primary-dark:      #01579b;
    --nmdp-topbar-bg:         #0277bd;
    --nmdp-topbar-text:       #ffffff;
    --nmdp-sidebar-bg:        #e1f5fe;
    --nmdp-sidebar-text:      #01344f;
    --nmdp-sidebar-hover-bg:  #01579b;
    --nmdp-sidebar-hover-text:#ffffff;
    --nmdp-active-bg:         #0097a7;
    --nmdp-active-text:       #ffffff;
    --nmdp-site-bg:           #f0f9ff;
    --nmdp-submenu-bg:        #b3e5fc;
    --nmdp-accent:            #0097a7;
}

.nmdp-violet, html.nmdp-violet {
    --nmdp-primary:           #6a1b9a;
    --nmdp-primary-light:     #7b1fa2;
    --nmdp-primary-dark:      #4a148c;
    --nmdp-topbar-bg:         #6a1b9a;
    --nmdp-topbar-text:       #ffffff;
    --nmdp-sidebar-bg:        #f3e5f5;
    --nmdp-sidebar-text:      #2d0a42;
    --nmdp-sidebar-hover-bg:  #4a148c;
    --nmdp-sidebar-hover-text:#ffffff;
    --nmdp-active-bg:         #8e24aa;
    --nmdp-active-text:       #ffffff;
    --nmdp-site-bg:           #faf0ff;
    --nmdp-submenu-bg:        #e1bee7;
    --nmdp-accent:            #8e24aa;
}

/* ============================================================
   ГЛОБАЛНИ РЕЗЕТИ
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--nmdp-site-bg);
    color: #1e293b;
    line-height: 1.6;
    transition: background-color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--nmdp-primary); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   ЛЕЈАУТ
   ============================================================ */

.nmdp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: var(--nmdp-sidebar-bg);
    color: var(--nmdp-sidebar-text);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left 0.3s ease, background-color 0.3s ease;
    box-shadow: 2px 0 8px rgba(0,0,0,0.06);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.nmdp-sidebar::-webkit-scrollbar { width: 4px; }
.nmdp-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.nmdp-topbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 60px;
    background-color: var(--nmdp-topbar-bg);
    color: var(--nmdp-topbar-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: left 0.3s ease, background-color 0.3s ease;
}

.nmdp-main-content {
    margin-left: 260px;
    margin-top: 60px;
    padding: 28px;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* ============================================================
   САЈДБАР ХЕДЕР
   ============================================================ */

.nmdp-sidebar-header {
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
}

.nmdp-sidebar-logo-img {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nmdp-sidebar-logo-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--nmdp-sidebar-text);
    text-align: center;
}

.nmdp-sidebar-logo-tagline {
    font-size: 11px;
    color: var(--nmdp-sidebar-text);
    opacity: 0.55;
    text-align: center;
}

/* ============================================================
   НАВИГАЦИЈА
   ============================================================ */

.nmdp-sidebar-nav { flex: 1; }

.nmdp-sidebar-menu,
.nmdp-sidebar-menu ul { list-style: none; margin: 0; padding: 0; }

.nmdp-sidebar-menu { padding: 12px 0; }

.nmdp-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--nmdp-sidebar-text);
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.nmdp-sidebar-menu a:hover {
    background-color: var(--nmdp-sidebar-hover-bg);
    color: var(--nmdp-sidebar-hover-text);
    opacity: 1;
    padding-left: 24px;
}

.nmdp-sidebar-menu .current-menu-item > a,
.nmdp-sidebar-menu .current-menu-ancestor > a {
    background-color: var(--nmdp-active-bg) !important;
    color: var(--nmdp-active-text) !important;
    font-weight: 700;
    border-radius: 0 25px 25px 0;
    margin-right: 14px;
    padding-left: 20px;
}

.nmdp-sidebar-menu .current-menu-item > a:hover { padding-left: 20px; }

.nmdp-sidebar-menu .sub-menu {
    background-color: var(--nmdp-submenu-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0,0,0.2,1), opacity 0.25s ease;
    opacity: 0;
}

.nmdp-sidebar-menu .sub-menu a { padding-left: 48px; font-size: 13px; font-weight: 400; }
.nmdp-sidebar-menu .sub-menu a:hover { padding-left: 52px; }

.nmdp-sidebar-menu .menu-item-has-children > a::after {
    content: '▾';
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nmdp-sidebar-menu .menu-item-has-children.nmdp-submenu-open > a::after { transform: rotate(180deg); }

.nmdp-sidebar-menu .menu-item-has-children.nmdp-submenu-open > .sub-menu {
    max-height: 600px;
    opacity: 1;
}

/* Dashicon икони */
.nmdp-sidebar-menu li[class*="menu-icon-"] > a::before {
    font-family: dashicons;
    speak: never;
    font-style: normal;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-size: 18px;
    width: 20px;
    flex-shrink: 0;
    color: inherit;
}

.nmdp-sidebar-menu li.menu-icon-home > a::before           { content: "\f102"; }
.nmdp-sidebar-menu li.menu-icon-dashboard > a::before      { content: "\f226"; }
.nmdp-sidebar-menu li.menu-icon-settings > a::before       { content: "\f111"; }
.nmdp-sidebar-menu li.menu-icon-users > a::before          { content: "\f307"; }
.nmdp-sidebar-menu li.menu-icon-user > a::before           { content: "\f110"; }
.nmdp-sidebar-menu li.menu-icon-groups > a::before         { content: "\f484"; }
.nmdp-sidebar-menu li.menu-icon-documents > a::before      { content: "\f107"; }
.nmdp-sidebar-menu li.menu-icon-folder > a::before         { content: "\f318"; }
.nmdp-sidebar-menu li.menu-icon-bell > a::before           { content: "\f227"; }
.nmdp-sidebar-menu li.menu-icon-list > a::before           { content: "\f163"; }
.nmdp-sidebar-menu li.menu-icon-stats > a::before          { content: "\f239"; }
.nmdp-sidebar-menu li.menu-icon-calendar > a::before       { content: "\f145"; }
.nmdp-sidebar-menu li.menu-icon-mail > a::before           { content: "\f466"; }
.nmdp-sidebar-menu li.menu-icon-lock > a::before           { content: "\f160"; }
.nmdp-sidebar-menu li.menu-icon-tools > a::before          { content: "\f107"; }
.nmdp-sidebar-menu li.menu-icon-shield > a::before         { content: "\f332"; }
.nmdp-sidebar-menu li.menu-icon-chart-bar > a::before      { content: "\f238"; }
.nmdp-sidebar-menu li.menu-icon-cloud > a::before          { content: "\f176"; }
.nmdp-sidebar-menu li.menu-icon-edit > a::before           { content: "\f464"; }
.nmdp-sidebar-menu li.menu-icon-plus > a::before           { content: "\f132"; }
.nmdp-sidebar-menu li.menu-icon-trash > a::before          { content: "\f182"; }
.nmdp-sidebar-menu li.menu-icon-info > a::before           { content: "\f348"; }
.nmdp-sidebar-menu li.menu-icon-warning > a::before        { content: "\f534"; }
.nmdp-sidebar-menu li.menu-icon-money > a::before          { content: "\f524"; }
.nmdp-sidebar-menu li.menu-icon-media > a::before          { content: "\f104"; }
.nmdp-sidebar-menu li.menu-icon-location > a::before       { content: "\f231"; }
.nmdp-sidebar-menu li.menu-icon-megaphone > a::before      { content: "\f488"; }
.nmdp-sidebar-menu li.menu-icon-id > a::before             { content: "\f336"; }
.nmdp-sidebar-menu li.menu-icon-budget > a::before         { content: "\f484"; }
.nmdp-sidebar-menu li.menu-icon-expenses > a::before       { content: "\f177"; }
.nmdp-sidebar-menu li.menu-icon-cart > a::before           { content: "\f174"; }
.nmdp-sidebar-menu li.menu-icon-store > a::before          { content: "\f513"; }
.nmdp-sidebar-menu li.menu-icon-bank > a::before           { content: "\f531"; }
.nmdp-sidebar-menu li.menu-icon-folder-open > a::before    { content: "\f319"; }
.nmdp-sidebar-menu li.menu-icon-pdf > a::before            { content: "\f531"; }
.nmdp-sidebar-menu li.menu-icon-clipboard > a::before      { content: "\f481"; }
.nmdp-sidebar-menu li.menu-icon-archive > a::before        { content: "\f480"; }
.nmdp-sidebar-menu li.menu-icon-reports > a::before        { content: "\f239"; }
.nmdp-sidebar-menu li.menu-icon-chat > a::before           { content: "\f125"; }
.nmdp-sidebar-menu li.menu-icon-feedback > a::before       { content: "\f175"; }
.nmdp-sidebar-menu li.menu-icon-search > a::before         { content: "\f179"; }
.nmdp-sidebar-menu li.menu-icon-admin > a::before          { content: "\f112"; }
.nmdp-sidebar-menu li.menu-icon-database > a::before       { content: "\f545"; }
.nmdp-sidebar-menu li.menu-icon-upload > a::before         { content: "\f344"; }
.nmdp-sidebar-menu li.menu-icon-download > a::before       { content: "\f316"; }
.nmdp-sidebar-menu li.menu-icon-printer > a::before        { content: "\f547"; }
.nmdp-sidebar-menu li.menu-icon-lightbulb > a::before      { content: "\f339"; }

/* ============================================================
   САЈДБАР КОРИСНИК
   ============================================================ */

.nmdp-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
    background: rgba(0,0,0,0.03);
}

.nmdp-sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--nmdp-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.nmdp-sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nmdp-sidebar-user-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.nmdp-sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--nmdp-sidebar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nmdp-sidebar-user-role { font-size: 11px; color: var(--nmdp-sidebar-text); opacity: 0.55; }

/* ============================================================
   ТОПБАР ЕЛЕМЕНТИ
   ============================================================ */

.nmdp-topbar-left,
.nmdp-topbar-right { display: flex; align-items: center; gap: 12px; }

.nmdp-toggle-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--nmdp-topbar-text);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.nmdp-toggle-btn:hover { background: rgba(255,255,255,0.22); }
.nmdp-toggle-btn .dashicons { font-size: 22px; width: 22px; height: 22px; }

.nmdp-page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--nmdp-topbar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.nmdp-topbar-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.15);
    color: var(--nmdp-topbar-text);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.nmdp-topbar-login-btn:hover { background: rgba(255,255,255,0.25); opacity: 1; }

/* ============================================================
   ТОПБАР ВИЏЕТИ
   ============================================================ */

.nmdp-topbar-widgets-area { display: flex; align-items: center; gap: 6px; }

.nmdp-topbar-widget-item { position: relative; display: flex; align-items: center; }

.nmdp-widget-trigger-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--nmdp-topbar-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    position: relative;
}

.nmdp-widget-trigger-btn:hover { background: rgba(255,255,255,0.22); }
.nmdp-widget-trigger-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }

.nmdp-topbar-widget-item > *:not(.nmdp-widget-trigger-btn):not(.nmdp-notif-badge) {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
    border: 1px solid rgba(0,0,0,0.07);
    z-index: 1100;
    min-width: 240px;
    padding: 14px;
    color: #374151;
}

.nmdp-topbar-widget-item.nmdp-widget-open > *:not(.nmdp-widget-trigger-btn):not(.nmdp-notif-badge) {
    display: block;
    animation: nmdpFadeDown 0.2s ease;
}

/* ============================================================
   ИЗВЕСТУВАЊА ЅВОНЧЕ
   ============================================================ */

.nmdp-notif-widget { position: relative; }

.nmdp-notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--nmdp-topbar-bg);
    line-height: 1;
}

.nmdp-notif-badge.nmdp-badge-hidden { display: none; }

.nmdp-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
    border: 1px solid rgba(0,0,0,0.07);
    z-index: 1100;
    overflow: hidden;
}

.nmdp-notif-dropdown.nmdp-dropdown-open { display: block; animation: nmdpFadeDown 0.2s ease; }

.nmdp-notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.nmdp-notif-dropdown-title { font-size: 14px; font-weight: 700; color: #1e293b; }

.nmdp-notif-mark-all {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--nmdp-primary);
    cursor: pointer;
    font-weight: 500;
}

.nmdp-notif-dropdown-list { max-height: 320px; overflow-y: auto; }

.nmdp-notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s ease;
    cursor: pointer;
}

.nmdp-notif-item:hover { background: #f8fafc; }
.nmdp-notif-item.nmdp-unread { background: #eff6ff; }

.nmdp-notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nmdp-notif-icon .dashicons { font-size: 16px; width: 16px; height: 16px; }

.nmdp-notif-body { flex: 1; min-width: 0; }

.nmdp-notif-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nmdp-notif-msg { font-size: 12px; color: #64748b; line-height: 1.4; }
.nmdp-notif-time { font-size: 11px; color: #94a3b8; margin-top: 4px; }

.nmdp-notif-dropdown-footer {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.nmdp-notif-dropdown-footer a { font-size: 13px; color: var(--nmdp-primary); font-weight: 500; }

/* ============================================================
   ПРОФИЛ DROPDOWN
   ============================================================ */

.nmdp-profile-wrapper { position: relative; }

.nmdp-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: var(--nmdp-topbar-text);
    border: 2px solid rgba(255,255,255,0.4);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    overflow: hidden;
    font-family: inherit;
}

.nmdp-avatar-btn:hover { background: rgba(255,255,255,0.32); border-color: rgba(255,255,255,0.7); }

.nmdp-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.nmdp-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 256px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
    border: 1px solid rgba(0,0,0,0.07);
    z-index: 1100;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nmdp-profile-dropdown.nmdp-dropdown-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nmdp-dropdown-user { display: flex; align-items: center; gap: 12px; padding: 16px; }

.nmdp-dropdown-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--nmdp-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.nmdp-dropdown-user-info { flex: 1; min-width: 0; }
.nmdp-dropdown-name { font-size: 14px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmdp-dropdown-role { font-size: 12px; color: #6b7280; margin-top: 1px; }

.nmdp-dropdown-divider { height: 1px; background: #f1f5f9; margin: 2px 0; }

.nmdp-dropdown-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 16px 6px;
}

.nmdp-dropdown-palette { display: flex; gap: 8px; padding: 6px 16px 12px; flex-wrap: wrap; }

.nmdp-palette-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.nmdp-palette-dot:hover { transform: scale(1.2); }
.nmdp-palette-dot.nmdp-palette-active { border-color: #1a1a1a; transform: scale(1.15); }

.nmdp-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.nmdp-dropdown-item:hover { background: #f9fafb; color: #111827; opacity: 1; }
.nmdp-dropdown-item .dashicons { font-size: 18px; width: 18px; height: 18px; color: #6b7280; flex-shrink: 0; }

.nmdp-dropdown-logout { color: #dc2626; border-radius: 0 0 14px 14px; }
.nmdp-dropdown-logout:hover { background: #fef2f2; color: #b91c1c; }
.nmdp-dropdown-logout .dashicons { color: #dc2626; }

/* ============================================================
   КОЛАПС
   ============================================================ */

body.nmdp-sidebar-collapsed .nmdp-sidebar { left: -260px; }
body.nmdp-sidebar-collapsed .nmdp-topbar  { left: 0; }
body.nmdp-sidebar-collapsed .nmdp-main-content { margin-left: 0; }

/* ============================================================
   FOOTER
   ============================================================ */

.nmdp-footer { margin-top: auto; padding-top: 24px; }

.nmdp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    gap: 24px;
    flex-wrap: wrap;
}

.nmdp-footer-text { font-size: 13px; color: #94a3b8; display: flex; align-items: center; gap: 8px; }

.nmdp-footer-version {
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.nmdp-footer-socials { display: flex; gap: 10px; align-items: center; }

.nmdp-footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.nmdp-footer-social-link:hover { background: var(--nmdp-primary); color: #fff; opacity: 1; }
.nmdp-footer-social-link .dashicons { font-size: 18px; width: 18px; height: 18px; }

/* ============================================================
   ADMIN BAR
   ============================================================ */

.admin-bar .nmdp-topbar  { top: 32px; }
.admin-bar .nmdp-sidebar { top: 32px; height: calc(100vh - 32px); }
.admin-bar .nmdp-main-content { margin-top: 92px; }

@media screen and (max-width: 782px) {
    .admin-bar .nmdp-topbar  { top: 46px; }
    .admin-bar .nmdp-sidebar { top: 46px; height: calc(100vh - 46px); }
    .admin-bar .nmdp-main-content { margin-top: 106px; }
}

/* ============================================================
   МОБИЛЕН
   ============================================================ */

.nmdp-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
    backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    .nmdp-topbar       { left: 0; }
    .nmdp-sidebar      { left: -260px; }
    .nmdp-main-content { margin-left: 0; padding: 16px; }
    body.nmdp-sidebar-mobile-open .nmdp-sidebar         { left: 0; }
    body.nmdp-sidebar-mobile-open .nmdp-sidebar-overlay { display: block; }
    .nmdp-page-title { max-width: 180px; font-size: 14px; }
}

/* ============================================================
   UI КОМПОНЕНТИ
   ============================================================ */

.nmdp-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.nmdp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.nmdp-badge-success { background: #f0fdf4; color: #16a34a; }
.nmdp-badge-error   { background: #fef2f2; color: #dc2626; }
.nmdp-badge-warning { background: #fffbeb; color: #d97706; }
.nmdp-badge-info    { background: #eff6ff; color: #2563eb; }

.nmdp-btn,
.nmdp-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nmdp-btn-primary  { background: var(--nmdp-primary); color: #fff; }
.nmdp-btn-primary:hover  { background: var(--nmdp-primary-light); opacity: 1; color: #fff; }
.nmdp-btn-outline  { background: transparent; color: var(--nmdp-primary); border: 1.5px solid var(--nmdp-primary); }
.nmdp-btn-outline:hover  { background: var(--nmdp-primary); color: #fff; opacity: 1; }
.nmdp-btn-danger   { background: #dc2626; color: #fff; }
.nmdp-btn-danger:hover   { background: #b91c1c; opacity: 1; color: #fff; }
.nmdp-btn-success  { background: #16a34a; color: #fff; }
.nmdp-btn-success:hover  { background: #15803d; opacity: 1; color: #fff; }

.nmdp-btn-sm, .nmdp-btn-outline-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--nmdp-primary);
    color: var(--nmdp-primary);
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.nmdp-btn-sm:hover, .nmdp-btn-outline-sm:hover { background: var(--nmdp-primary); color: #fff; opacity: 1; }

.nmdp-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #64748b;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}

.nmdp-btn-icon:hover { color: var(--nmdp-primary); background: #f1f5f9; }

.nmdp-input {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.nmdp-input:focus { outline: none; border-color: var(--nmdp-primary); box-shadow: 0 0 0 3px rgba(30,58,138,0.1); }

.nmdp-textarea {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.nmdp-textarea:focus { outline: none; border-color: var(--nmdp-primary); box-shadow: 0 0 0 3px rgba(30,58,138,0.1); }

.nmdp-select {
    padding: 9px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.nmdp-select:focus { outline: none; border-color: var(--nmdp-primary); }

.nmdp-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.nmdp-toggle input { opacity: 0; width: 0; height: 0; }
.nmdp-toggle-slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 24px; cursor: pointer; transition: background 0.3s ease; }
.nmdp-toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; left: 3px; top: 3px; transition: transform 0.3s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.nmdp-toggle input:checked + .nmdp-toggle-slider { background: var(--nmdp-primary); }
.nmdp-toggle input:checked + .nmdp-toggle-slider::before { transform: translateX(20px); }

.nmdp-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: #94a3b8; font-size: 14px; }

.nmdp-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 20px; color: #94a3b8; font-size: 14px; text-align: center; }

.nmdp-inline-msg { font-size: 13px; font-weight: 500; display: none; }

.nmdp-error-msg { padding: 20px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; color: #991b1b; font-size: 14px; }

.nmdp-page-header { margin-bottom: 24px; }

.nmdp-page-title-h1 { font-size: 22px; font-weight: 800; color: #1e293b; }

.nmdp-page-body { font-size: 15px; color: #475569; line-height: 1.7; }

/* Ripple */
.nmdp-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: scale(0);
    animation: nmdpRipple 0.6s linear;
    pointer-events: none;
}

/* ============================================================
   DASHBOARD — WELCOME
   ============================================================ */

.nmdp-welcome-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 24px;
    min-height: 320px;
    background: linear-gradient(135deg, var(--nmdp-primary) 0%, var(--nmdp-primary-light) 100%);
    display: flex;
    align-items: stretch;
}

.nmdp-particles-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.nmdp-welcome-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
    gap: 10px;
    flex: 1;
}

.nmdp-welcome-greeting { font-size: 28px; font-weight: 800; color: #ffffff; line-height: 1.2; text-align: center;}
.nmdp-welcome-greeting span { display: block; font-size: 18px; font-weight: 400; opacity: 0.85; margin-top: 4px; }
.nmdp-welcome-hint { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 8px; text-align: center;}

/* ============================================================
   DASHBOARD — СТАТИСТИЧКИ КАРТИЧКИ
   ============================================================ */

.nmdp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }

.nmdp-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    animation: nmdpSlideUp 0.4s ease both;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nmdp-stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.nmdp-stat-card:nth-child(1) { animation-delay: 0.05s; }
.nmdp-stat-card:nth-child(2) { animation-delay: 0.10s; }
.nmdp-stat-card:nth-child(3) { animation-delay: 0.15s; }
.nmdp-stat-card:nth-child(4) { animation-delay: 0.20s; }

.nmdp-stat-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.nmdp-stat-card-icon .dashicons { font-size: 20px; width: 20px; height: 20px; }
.nmdp-stat-card-icon.blue   { background: #eff6ff; color: #1e3a8a; }
.nmdp-stat-card-icon.green  { background: #f0fdf4; color: #16a34a; }
.nmdp-stat-card-icon.amber  { background: #fffbeb; color: #d97706; }
.nmdp-stat-card-icon.red    { background: #fef2f2; color: #dc2626; }
.nmdp-stat-card-icon.purple { background: #faf5ff; color: #7c3aed; }
.nmdp-stat-card-icon.teal   { background: #f0fdfa; color: #0d9488; }

.nmdp-stat-card-value { font-size: 28px; font-weight: 800; color: #1e293b; line-height: 1; margin-bottom: 4px; }
.nmdp-stat-card-label { font-size: 13px; color: #64748b; }
.nmdp-stat-card-trend { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 10px; }
.nmdp-trend-up { color: #16a34a; }
.nmdp-trend-down { color: #dc2626; }
.nmdp-stat-card-trend .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* ============================================================
   DASHBOARD — БРЗИ АКЦИИ
   ============================================================ */

.nmdp-quick-actions-wrap { margin-bottom: 24px; }
.nmdp-quick-actions-title { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.nmdp-quick-actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

.nmdp-quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    animation: nmdpSlideUp 0.4s ease both;
    cursor: pointer;
    border: none;
    font-family: inherit;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
}

.nmdp-quick-action-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); opacity: 1; color: #ffffff; }
.nmdp-quick-action-card .dashicons { font-size: 28px; width: 28px; height: 28px; }

/* ============================================================
   DASHBOARD — GRID
   ============================================================ */

.nmdp-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }

.nmdp-dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    animation: nmdpSlideUp 0.4s ease 0.25s both;
}

.nmdp-dashboard-card-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.nmdp-dashboard-card-more { font-size: 12px; color: var(--nmdp-primary); font-weight: 400; text-decoration: none; }
.nmdp-dashboard-card-more:hover { opacity: 0.7; }

.nmdp-activity-list { display: flex; flex-direction: column; }
.nmdp-activity-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f8fafc; }
.nmdp-activity-row:last-child { border-bottom: none; }

.nmdp-activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
}

.nmdp-activity-body { flex: 1; min-width: 0; }
.nmdp-activity-text { font-size: 13px; color: #475569; line-height: 1.5; }
.nmdp-activity-text strong { color: #1e293b; font-weight: 600; }
.nmdp-activity-meta { font-size: 11px; color: #94a3b8; margin-top: 3px; display: flex; gap: 8px; }

/* ============================================================
   ПРОФИЛ, ЧЛЕНОВИ, ДОКУМЕНТИ, НОТИФИКАЦИИ, ЛОГ
   ============================================================ */

.nmdp-profile-wrap { background: #ffffff; border-radius: 16px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.nmdp-profile-cover { height: 600px; position: relative; background: linear-gradient(135deg, var(--nmdp-primary) 0%, var(--nmdp-primary-light) 100%); overflow: hidden; }
.nmdp-cover-edit-btn { position: absolute; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 6px; padding: 7px 14px; background: rgba(0,0,0,0.45); color: #ffffff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; font-family: inherit; }
.nmdp-profile-header { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: flex-start; padding: 0 30px 24px; }
.nmdp-profile-avatar-wrap { position: relative; margin-top: -44px; flex-shrink: 0; }
.nmdp-profile-avatar-img { width: 100px; height: 100px; border-radius: 50%; border: 4px solid #ffffff; box-shadow: 0 4px 16px rgba(0,0,0,0.15); object-fit: cover; }
.nmdp-profile-avatar-fallback { width: 100px; height: 100px; border-radius: 50%; border: 4px solid #ffffff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: #ffffff; }
.nmdp-avatar-edit-btn { position: absolute; bottom: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--nmdp-primary); color: #ffffff; border: 2px solid #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nmdp-profile-info { padding-top: 16px; min-width: 0; }
.nmdp-profile-name { font-size: 22px; font-weight: 800; color: #1e293b; margin-bottom: 8px; }
.nmdp-profile-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.nmdp-profile-role-badge { display: inline-flex; align-items: center; padding: 3px 12px; background: var(--nmdp-primary); color: #ffffff; border-radius: 20px; font-size: 12px; font-weight: 600; }
.nmdp-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.nmdp-profile-action-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; background: #f1f5f9; color: #475569; border-radius: 8px; font-size: 13px; transition: all 0.2s ease; }
.nmdp-profile-action-btn:hover { background: var(--nmdp-primary); color: #ffffff; opacity: 1; }
.nmdp-profile-stats { padding-top: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 140px; text-align: center; }
.nmdp-profile-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nmdp-profile-stat-num { font-size: 20px; font-weight: 800; color: var(--nmdp-primary); }
.nmdp-profile-stat-lbl { font-size: 11px; color: #94a3b8; text-transform: uppercase; }
.nmdp-profile-tabs-nav { display: flex; border-top: 1px solid #e2e8f0; overflow-x: auto; scrollbar-width: none; }
.nmdp-profile-tabs-nav::-webkit-scrollbar { display: none; }
.nmdp-profile-tab-link { display: flex; align-items: center; gap: 7px; padding: 14px 20px; font-size: 14px; font-weight: 500; color: #64748b; border-bottom: 3px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; white-space: nowrap; text-decoration: none; }
.nmdp-profile-tab-link:hover { color: var(--nmdp-primary); opacity: 1; }
.nmdp-profile-tab-link.nmdp-tab-active { color: var(--nmdp-primary); border-bottom-color: var(--nmdp-primary); font-weight: 700; }
.nmdp-profile-tab-content { padding: 24px; }
.nmdp-profile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nmdp-field-full { grid-column: 1 / -1; }

.nmdp-members-wrap { }
.nmdp-members-filters { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.nmdp-members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.nmdp-member-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: box-shadow 0.2s ease, transform 0.2s ease; animation: nmdpSlideUp 0.35s ease both; }
.nmdp-member-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-3px); }
.nmdp-member-card-cover { height: 250px; background: linear-gradient(135deg, var(--nmdp-primary) 0%, var(--nmdp-primary-light) 100%); }
.nmdp-member-card-body { padding: 0 16px 16px; text-align: center; }
.nmdp-member-card-avatar-wrap { margin-top: -28px; margin-bottom: 10px; display: flex; justify-content: center; }
.nmdp-member-card-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid #ffffff; box-shadow: 0 3px 10px rgba(0,0,0,0.12); }
.nmdp-member-card-initials { width: 60px; height: 60px; border-radius: 50%; background: var(--nmdp-primary); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; border: 3px solid #ffffff; }
.nmdp-member-card-name { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.nmdp-member-card-role { display: inline-flex; align-items: center; padding: 2px 10px; background: var(--nmdp-primary); color: #ffffff; border-radius: 20px; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.nmdp-member-card-actions { display: flex; gap: 8px; justify-content: center; }

.nmdp-notif-filters { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #e2e8f0; padding-bottom: 16px; }
.nmdp-notif-filter-btn { padding: 7px 16px; border-radius: 8px; border: none; background: #f1f5f9; color: #475569; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s ease; font-family: inherit; }
.nmdp-notif-filter-btn:hover, .nmdp-notif-filter-btn.active { background: var(--nmdp-primary); color: #ffffff; }
.nmdp-notif-list { display: flex; flex-direction: column; gap: 10px; }
.nmdp-notif-card { display: flex; gap: 14px; padding: 16px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; transition: all 0.2s ease; position: relative; }
.nmdp-notif-card.nmdp-unread { background: #eff6ff; border-color: #bfdbfe; }
.nmdp-notif-card-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nmdp-notif-card-body { flex: 1; min-width: 0; }
.nmdp-notif-card-title { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.nmdp-notif-card-msg { font-size: 13px; color: #475569; line-height: 1.5; margin-bottom: 8px; }
.nmdp-notif-card-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: #94a3b8; }
.nmdp-notif-type-badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.nmdp-notif-card-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.nmdp-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nmdp-primary); position: absolute; top: 16px; right: 16px; }

.nmdp-activity-log-wrap { }
.nmdp-activity-log-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; margin-bottom: 20px; align-items: end; }
.nmdp-activity-log-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.nmdp-activity-log-table th { padding: 12px 16px; font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; background: #f8fafc; border-bottom: 1px solid #e2e8f0; text-align: left; }
.nmdp-activity-log-table td { padding: 12px 16px; font-size: 13px; color: #475569; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.nmdp-activity-log-table tr:last-child td { border-bottom: none; }
.nmdp-activity-log-table tr:hover td { background: #f8fafc; }

.nmdp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.nmdp-pagination-btn { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid #e2e8f0; background: #ffffff; color: #475569; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; font-family: inherit; }
.nmdp-pagination-btn:hover, .nmdp-pagination-btn.active { background: var(--nmdp-primary); color: #ffffff; border-color: var(--nmdp-primary); }

.nmdp-docs-list { display: flex; flex-direction: column; gap: 8px; }
.nmdp-doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0; }
.nmdp-doc-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--nmdp-primary); color: #ffffff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nmdp-doc-info { flex: 1; min-width: 0; }
.nmdp-doc-title { display: block; font-size: 14px; font-weight: 500; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmdp-doc-meta { font-size: 12px; color: #94a3b8; }

.nmdp-activity-timeline { display: flex; flex-direction: column; position: relative; padding-left: 20px; }
.nmdp-activity-timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: #e2e8f0; border-radius: 1px; }
.nmdp-activity-item { display: flex; gap: 14px; padding: 10px 0; }
.nmdp-activity-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--nmdp-primary); border: 2px solid #ffffff; box-shadow: 0 0 0 2px var(--nmdp-primary); flex-shrink: 0; margin-left: -18px; margin-top: 4px; }
.nmdp-activity-label { font-size: 14px; font-weight: 600; color: #1e293b; display: block; }
.nmdp-activity-desc { font-size: 12px; color: #64748b; display: block; margin-top: 2px; }
.nmdp-activity-time { font-size: 11px; color: #94a3b8; display: block; margin-top: 3px; }

/* ============================================================
   ДОКУМЕНТИ МЕНАЏЕР
   ============================================================ */

.nmdp-documents-wrap { }
.nmdp-documents-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.nmdp-documents-layout-btns { display: flex; border: 1.5px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.nmdp-layout-btn { padding: 7px 12px; background: none; border: none; cursor: pointer; color: #64748b; transition: background 0.15s, color 0.15s; display: flex; align-items: center; }
.nmdp-layout-btn.active { background: var(--nmdp-primary); color: #ffffff; }
.nmdp-folders-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding: 12px; background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0; }
.nmdp-folder-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; color: #475569; cursor: pointer; transition: all 0.15s ease; font-family: inherit; }
.nmdp-folder-btn:hover, .nmdp-folder-btn.active { background: var(--nmdp-primary); color: #ffffff; border-color: var(--nmdp-primary); }
.nmdp-docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.nmdp-doc-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-align: center; transition: all 0.2s ease; cursor: pointer; position: relative; }
.nmdp-doc-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: var(--nmdp-primary); }
.nmdp-doc-card-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--nmdp-primary); color: #ffffff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.nmdp-doc-card-name { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nmdp-doc-card-meta { font-size: 11px; color: #94a3b8; }
.nmdp-doc-card-actions { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }

.nmdp-upload-drop-zone { border: 2px dashed #e2e8f0; border-radius: 12px; padding: 40px 20px; text-align: center; transition: all 0.2s ease; }
.nmdp-upload-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nmdp-upload-progress { margin-top: 8px; display: none; }
.nmdp-upload-progress.active { display: block; }
.nmdp-progress-wrap { height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; }
.nmdp-progress-bar { height: 100%; background: var(--nmdp-primary); border-radius: 2px; transition: width 0.3s ease; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .nmdp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .nmdp-dashboard-grid { grid-template-columns: 1fr; }
    .nmdp-profile-header { grid-template-columns: auto 1fr; }
    .nmdp-profile-stats { display: none; }
    .nmdp-activity-log-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nmdp-stats-grid { grid-template-columns: 1fr 1fr; }
    .nmdp-quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
    .nmdp-profile-header { grid-template-columns: 1fr; text-align: center; }
    .nmdp-profile-avatar-wrap { margin: -44px auto 0; }
    .nmdp-profile-meta, .nmdp-profile-actions { justify-content: center; }
    .nmdp-profile-form-grid { grid-template-columns: 1fr; }
    .nmdp-members-grid { grid-template-columns: repeat(2, 1fr); }
    .nmdp-welcome-content { padding: 24px 20px; }
    .nmdp-welcome-greeting { font-size: 22px; }
    .nmdp-activity-log-filters { grid-template-columns: 1fr; }
}