:root {
    --simpegrs-primary: #5cb85c;
    --simpegrs-primary-dark: #4cae4c;
    --simpegrs-sidebar: #ffffff;
    --simpegrs-sidebar-hover: #f3fbf3;
    --simpegrs-sidebar-active: #e8f6e8;
    --simpegrs-surface: #ffffff;
    --simpegrs-surface-alt: #f6f7fb;
    --simpegrs-border: #d8e4d8;
    --simpegrs-text: #2c3a45;
    --simpegrs-muted: #6c7a86;
    --simpegrs-danger: #dd4b39;
}

body.simpegrs-body,
body.simpegrs-login-body {
    background: var(--simpegrs-surface-alt);
    color: var(--simpegrs-text);
    font-family: "Roboto", sans-serif;
}

body.simpegrs-body,
body.simpegrs-body .page-wrapper,
body.simpegrs-body .page-body-wrapper,
body.simpegrs-body .page-body,
body.simpegrs-body .simpegrs-main {
    background: var(--simpegrs-surface-alt) !important;
    color: var(--simpegrs-text) !important;
}

body.simpegrs-body .page-header,
body.simpegrs-body .header-wrapper,
body.simpegrs-body .simpegrs-topbar {
    background: var(--simpegrs-primary) !important;
    color: #fff !important;
}

body.simpegrs-body .sidebar-wrapper,
body.simpegrs-body .simpegrs-sidebar,
body.simpegrs-body .simpegrs-sidebar > div,
body.simpegrs-body .logo-wrapper {
    background: var(--simpegrs-sidebar) !important;
    color: var(--simpegrs-text) !important;
}

body.simpegrs-body .card,
body.simpegrs-body .simpegrs-panel {
    background: var(--simpegrs-surface) !important;
    color: var(--simpegrs-text) !important;
}

.simpegrs-shell {
    display: flex;
    min-height: 100vh;
}

.simpegrs-sidebar {
    width: 280px;
    background: var(--simpegrs-sidebar);
    color: var(--simpegrs-text);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--simpegrs-border);
}

.simpegrs-sidebar-close,
.simpegrs-sidebar-toggle {
    border: 0;
    background: transparent;
    color: inherit;
}

.simpegrs-brand-mark,
.simpegrs-avatar {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--simpegrs-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.simpegrs-brand-title {
    color: var(--simpegrs-primary-dark);
    font-weight: 700;
}

.simpegrs-logo-wrapper a,
.simpegrs-sidebar-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.simpegrs-brand-subtitle,
.simpegrs-sidebar-section,
.simpegrs-page-header p,
.simpegrs-user-role,
.simpegrs-stat-label,
.simpegrs-kicker {
    color: var(--simpegrs-muted);
}

.simpegrs-menu,
.simpegrs-submenu,
.simpegrs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simpegrs-menu .sidebar-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px 12px 20px;
    color: #2d4a2d;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-weight: 600;
}

.simpegrs-menu .sidebar-link .simpegrs-menu-text {
    flex: 1 1 auto;
    min-width: 0;
}

.simpegrs-menu .sidebar-link .simpegrs-menu-text,
.page-wrapper.compact-wrapper .simpegrs-sidebar .sidebar-main .sidebar-links li a .simpegrs-menu-text {
    color: #2d4a2d !important;
    opacity: 1 !important;
    font-weight: 600;
}

.simpegrs-menu .sidebar-link .simpegrs-menu-icon,
.simpegrs-menu .sidebar-link .simpegrs-menu-icon i {
    color: #3c653c !important;
    opacity: 1 !important;
}

/* Hide template chevron injected by sidebar-menu.js */
.simpegrs-sidebar .according-menu,
.simpegrs-sidebar .sidebar-link .according-menu {
    display: none !important;
}

.simpegrs-menu .sidebar-link:hover {
    background: var(--simpegrs-sidebar-hover);
    color: var(--simpegrs-primary-dark);
}

.simpegrs-menu .sidebar-link:hover .simpegrs-menu-text {
    color: var(--simpegrs-primary-dark) !important;
}

.simpegrs-menu .simpegrs-menu-item.active > .sidebar-link,
.simpegrs-menu .simpegrs-menu-item.open > .sidebar-link {
    background: var(--simpegrs-sidebar-active);
    color: var(--simpegrs-primary-dark);
    border-left: 3px solid var(--simpegrs-primary);
}

.simpegrs-menu .simpegrs-menu-item.active > .sidebar-link .simpegrs-menu-text,
.simpegrs-menu .simpegrs-menu-item.open > .sidebar-link .simpegrs-menu-text,
.page-wrapper.compact-wrapper .simpegrs-sidebar .sidebar-main .sidebar-links li a.active .simpegrs-menu-text {
    color: var(--simpegrs-primary-dark) !important;
}

.simpegrs-menu-caret {
    margin-left: auto !important;
    flex: 0 0 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    color: #3c653c !important;
    opacity: 1 !important;
}

.simpegrs-menu-caret i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.simpegrs-menu-item:not(.open) > .sidebar-link .simpegrs-menu-caret i {
    transform: rotate(-90deg);
}

.simpegrs-menu-item.open > .sidebar-link .simpegrs-menu-caret i,
.simpegrs-menu-item.active.open > .sidebar-link .simpegrs-menu-caret i {
    transform: rotate(0deg);
}

.simpegrs-menu-item.active > .sidebar-link .simpegrs-menu-caret,
.simpegrs-menu-item.open > .sidebar-link .simpegrs-menu-caret {
    color: var(--simpegrs-primary-dark) !important;
}

.simpegrs-menu-item.disabled > .sidebar-link {
    opacity: 1;
    color: #94a3b8;
    cursor: not-allowed;
}

.simpegrs-menu-item.disabled > .sidebar-link .simpegrs-menu-text {
    color: #94a3b8 !important;
}

.simpegrs-menu-icon,
.simpegrs-menu .stroke-icon,
.simpegrs-menu .fill-icon {
    width: 18px;
    text-align: center;
}

.simpegrs-menu .sidebar-submenu {
    display: none;
    background: #fbfefb;
}

.simpegrs-menu .simpegrs-menu-item.open > .sidebar-submenu {
    display: block;
}

.simpegrs-menu .sidebar-submenu a,
.simpegrs-menu .sidebar-submenu .sidebar-link {
    padding-left: 50px;
    color: #355a35 !important;
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
    opacity: 1 !important;
    font-weight: 600;
}

.simpegrs-menu .sidebar-submenu .simpegrs-menu-item.active > .sidebar-link,
.simpegrs-menu .sidebar-submenu .simpegrs-menu-item.active > a {
    color: var(--simpegrs-primary-dark) !important;
    background: var(--simpegrs-sidebar-active);
    border-left: 3px solid var(--simpegrs-primary);
}

/* ---- Sidebar menu sections (Area Saya / Manajemen / Admin) ---- */
.simpegrs-menu-section {
    list-style: none;
    margin: 0 10px 10px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--simpegrs-sec-border, #e4ece4);
    background: var(--simpegrs-sec-bg, #f8faf8);
    overflow: hidden;
}

.simpegrs-menu-section + .simpegrs-menu-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.simpegrs-menu-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 10px 14px 8px 16px;
    border: 0;
    border-bottom: 1px solid var(--simpegrs-sec-border, #e4ece4);
    background: linear-gradient(180deg, var(--simpegrs-sec-head-bg, #fff) 0%, var(--simpegrs-sec-bg, #f8faf8) 100%);
    cursor: pointer;
    text-align: left;
}

.simpegrs-menu-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--simpegrs-sec-head, #6b8f6b);
}

.simpegrs-menu-section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--simpegrs-sec-accent, #3c653c);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--simpegrs-sec-accent, #3c653c) 18%, transparent);
    flex-shrink: 0;
}

.simpegrs-menu-section-caret {
    color: var(--simpegrs-sec-head, #6b8f6b);
    font-size: 0.75rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.simpegrs-menu-section:not(.is-open) .simpegrs-menu-section-caret {
    transform: rotate(-90deg);
}

.simpegrs-menu-section-items {
    list-style: none;
    margin: 0;
    padding: 4px 0 6px;
    display: none;
    background: var(--simpegrs-sec-bg, #f8faf8);
}

.simpegrs-menu-section.is-open .simpegrs-menu-section-items {
    display: block;
}

.simpegrs-menu-section-head:hover .simpegrs-menu-section-label,
.simpegrs-menu-section-head:hover .simpegrs-menu-section-caret {
    color: var(--simpegrs-sec-accent, #3c653c);
}

/* Menu - role / personal */
.simpegrs-menu-section--personal,
.simpegrs-menu-section[data-section="personal"] {
    --simpegrs-sec-accent: #15803d;
    --simpegrs-sec-head: #166534;
    --simpegrs-sec-bg: #f0fdf4;
    --simpegrs-sec-border: #bbf7d0;
    --simpegrs-sec-head-bg: #ecfdf3;
    --simpegrs-sec-active: #dcfce7;
}

/* Manajemen SDM */
.simpegrs-menu-section--sdm,
.simpegrs-menu-section[data-section="sdm"] {
    --simpegrs-sec-accent: #1d4ed8;
    --simpegrs-sec-head: #1e40af;
    --simpegrs-sec-bg: #eff6ff;
    --simpegrs-sec-border: #bfdbfe;
    --simpegrs-sec-head-bg: #dbeafe;
    --simpegrs-sec-active: #dbeafe;
}

/* Administrasi Sistem */
.simpegrs-menu-section--admin,
.simpegrs-menu-section[data-section="admin"] {
    --simpegrs-sec-accent: #7c3aed;
    --simpegrs-sec-head: #5b21b6;
    --simpegrs-sec-bg: #f5f3ff;
    --simpegrs-sec-border: #ddd6fe;
    --simpegrs-sec-head-bg: #ede9fe;
    --simpegrs-sec-active: #ede9fe;
}

/* Section dinamis / lainnya */
.simpegrs-menu-section:not([data-section="personal"]):not([data-section="sdm"]):not([data-section="admin"]) {
    --simpegrs-sec-accent: #b45309;
    --simpegrs-sec-head: #92400e;
    --simpegrs-sec-bg: #fffbeb;
    --simpegrs-sec-border: #fde68a;
    --simpegrs-sec-head-bg: #fef3c7;
    --simpegrs-sec-active: #fef3c7;
}

.simpegrs-menu-section .simpegrs-menu-icon {
    color: var(--simpegrs-sec-accent, #3c653c) !important;
}

.simpegrs-menu-section .simpegrs-menu-caret {
    color: var(--simpegrs-sec-head, #3c653c) !important;
}

.simpegrs-menu-section .sidebar-submenu {
    background: color-mix(in srgb, var(--simpegrs-sec-bg, #f8faf8) 88%, #fff);
}

.simpegrs-menu-section .simpegrs-menu-item.active > .sidebar-link,
.simpegrs-menu-section .simpegrs-menu-item.open > .sidebar-link {
    background: var(--simpegrs-sec-active, var(--simpegrs-sidebar-active));
    border-left-color: var(--simpegrs-sec-accent, var(--simpegrs-primary));
}

.simpegrs-menu-section .simpegrs-menu-item.active > .sidebar-link .simpegrs-menu-text,
.simpegrs-menu-section .simpegrs-menu-item.open > .sidebar-link .simpegrs-menu-text,
.simpegrs-menu-section .simpegrs-menu-item.active > .sidebar-link .simpegrs-menu-caret,
.simpegrs-menu-section .simpegrs-menu-item.open > .sidebar-link .simpegrs-menu-caret {
    color: var(--simpegrs-sec-head, var(--simpegrs-primary-dark)) !important;
}

.simpegrs-menu-section .sidebar-submenu .simpegrs-menu-item.active > .sidebar-link,
.simpegrs-menu-section .sidebar-submenu .simpegrs-menu-item.active > a {
    background: var(--simpegrs-sec-active, var(--simpegrs-sidebar-active));
    border-left-color: var(--simpegrs-sec-accent, var(--simpegrs-primary));
    color: var(--simpegrs-sec-head, var(--simpegrs-primary-dark)) !important;
}

/* ---- Sidebar menu pins (favorit) ---- */
.simpegrs-menu-item {
    position: relative;
}

.simpegrs-menu-pin {
    position: absolute;
    top: 50%;
    right: 34px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
    z-index: 2;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.simpegrs-menu-item:hover .simpegrs-menu-pin,
.simpegrs-menu-pin.is-pinned,
.simpegrs-menu-pin:focus-visible {
    opacity: 1;
}

.simpegrs-menu-pin:hover {
    background: #fef9c3;
    color: #ca8a04;
}

.simpegrs-menu-pin.is-pinned {
    color: #ca8a04;
}

.simpegrs-menu-item.open > .sidebar-link .simpegrs-menu-caret,
.simpegrs-menu-item > .sidebar-link.sidebar-title .simpegrs-menu-caret {
    right: 16px;
}

.simpegrs-menu-pins-wrap {
    list-style: none;
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e4ece4;
}

.simpegrs-menu-pins-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 16px 6px 20px;
}

.simpegrs-menu-pins-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b45309;
}

.simpegrs-menu-pins-title .fa {
    margin-right: 4px;
}

.simpegrs-menu-pins-count {
    font-size: 0.62rem;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 1px 7px;
}

.simpegrs-menu-pins-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.simpegrs-menu-pins-list .simpegrs-menu-item > .sidebar-link {
    padding-right: 44px;
}

.simpegrs-menu .sidebar-submenu .simpegrs-menu-pin {
    right: 14px;
}

.page-wrapper.compact-wrapper .simpegrs-sidebar .sidebar-main .sidebar-links li a.active {
    background: var(--simpegrs-sidebar-active) !important;
    color: var(--simpegrs-primary-dark) !important;
}

.simpegrs-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.simpegrs-topbar {
    background: linear-gradient(90deg, #449d44 0%, #5cb85c 50%, #4cae4c 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(30, 90, 30, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.simpegrs-topbar .header-wrapper,
.simpegrs-hero-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.simpegrs-topbar-title,
.simpegrs-page-header h1,
.simpegrs-hero h2,
.simpegrs-panel h2,
.simpegrs-panel h3 {
    margin: 0;
}

.simpegrs-user-pill {
    text-align: right;
}

.simpegrs-user-name {
    display: block;
    font-weight: 600;
}

.simpegrs-profile-media {
    align-items: center;
    gap: 12px;
    color: #fff;
}

.simpegrs-profile-media .media-body span,
.simpegrs-profile-media .media-body p {
    color: #fff;
}

.simpegrs-logout-btn,
.simpegrs-btn-primary {
    background: var(--simpegrs-primary-dark);
    color: #fff;
    border: 0;
}

.simpegrs-logout-btn:hover,
.simpegrs-btn-primary:hover {
    background: #2f6f94;
    color: #fff;
}

.simpegrs-content-wrap {
    padding: 14px 14px 20px;
}

.simpegrs-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.simpegrs-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--simpegrs-muted);
    font-size: 13px;
}

.simpegrs-panel {
    background: var(--simpegrs-surface);
    border: 1px solid var(--simpegrs-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.simpegrs-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
}

.simpegrs-stat-value,
.simpegrs-hero-name,
.simpegrs-placeholder-path {
    font-size: 22px;
    font-weight: 700;
}

/* Legacy module placeholder (unmigrated routes) */
body.simpegrs-body .simpegrs-content-wrap:has(.legacy-page) {
    padding: 0;
}

body.simpegrs-body .page-body.simpegrs-main:has(.legacy-page) {
    background: #fff;
}

.legacy-page {
    min-height: calc(100vh - 118px);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #1b2a2f;
}

.legacy-top {
    padding: 12px 18px;
    border-bottom: 1px solid #e7f2ea;
    background: linear-gradient(180deg, #f7fff9, #fff);
}

.legacy-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.legacy-breadcrumb a {
    color: #1e9a5a;
    text-decoration: none;
    font-weight: 600;
}

.legacy-breadcrumb a:hover {
    text-decoration: underline;
}

.legacy-body {
    flex: 1;
    padding: 20px 18px 28px;
    max-width: 980px;
}

.legacy-hero {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 22px 20px;
    margin-bottom: 18px;
    border: 1px solid #e7f2ea;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 52%, #f8fafc 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.legacy-hero-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.28);
}

.legacy-hero-main {
    flex: 1;
    min-width: 0;
}

.legacy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.legacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.legacy-badge-phase {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.legacy-badge-status {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.legacy-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.legacy-summary {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    max-width: 62ch;
}

.legacy-path-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.legacy-path-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.legacy-path {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #334155;
    word-break: break-all;
}

.legacy-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.legacy-copy-btn:hover {
    background: #f8fdf9;
    border-color: #bbf7d0;
    color: #166534;
}

.legacy-copy-btn.is-copied {
    background: #ecfdf3;
    border-color: #86efac;
    color: #166534;
}

.legacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.legacy-card {
    background: #fff;
    border: 1px solid #e7f2ea;
    border-radius: 14px;
    padding: 16px 18px;
}

.legacy-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.legacy-card-title .fa {
    color: #16a34a;
}

.legacy-card-text,
.legacy-card-lead {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.legacy-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.legacy-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}

.legacy-feature-list .fa {
    color: #22c55e;
    margin-top: 2px;
}

.legacy-alt-list {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.legacy-alt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fafbfc;
    transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s, background 0.12s;
}

.legacy-alt-item:hover {
    transform: translateY(-1px);
    border-color: #bbf7d0;
    background: #f8fdf9;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.1);
}

.legacy-alt-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #166534;
    flex-shrink: 0;
}

.legacy-alt-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legacy-alt-body strong {
    font-size: 13px;
    color: #0f172a;
}

.legacy-alt-body small {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
}

.legacy-alt-arrow {
    color: #94a3b8;
    flex-shrink: 0;
}

.legacy-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legacy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
}

.legacy-btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.legacy-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.32);
}

.legacy-btn-ghost {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.legacy-btn-ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.legacy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.legacy-note .fa {
    color: #2563eb;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .legacy-hero {
        flex-direction: column;
    }

    .legacy-grid {
        grid-template-columns: 1fr;
    }

    .legacy-body {
        padding: 16px 14px 24px;
    }
}

.simpegrs-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--simpegrs-border);
}

.simpegrs-list li:last-child {
    border-bottom: 0;
}

.simpegrs-table th {
    width: 180px;
    color: var(--simpegrs-muted);
}

.simpegrs-footer {
    border-top: 1px solid var(--simpegrs-border);
    background: #fff;
    color: var(--simpegrs-muted);
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
    font-size: 13px;
}

.simpegrs-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(92, 184, 92, 0.18), transparent 22%),
        radial-gradient(circle at bottom right, rgba(92, 184, 92, 0.16), transparent 24%),
        #f3f4f7;
}

.simpegrs-login-layout {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(340px, 490px) minmax(420px, 1fr);
    gap: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(44, 58, 69, 0.16);
}

.simpegrs-login-panel {
    min-height: 720px;
}

.simpegrs-login-form-panel {
    background: linear-gradient(180deg, #418f3d 0%, #3f9238 100%);
    color: #fff;
    padding: 56px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.simpegrs-login-brand-block {
    text-align: center;
    margin-bottom: 40px;
}

.simpegrs-login-brand-block h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.simpegrs-login-brand-block p {
    margin: 12px auto 0;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    text-transform: uppercase;
    font-size: 15px;
}

.simpegrs-login-alert {
    border: 0;
    border-radius: 12px;
    margin-bottom: 20px;
}

.simpegrs-login-form .form-label {
    color: #fff;
    margin-bottom: 10px;
    font-size: 20px;
}

.simpegrs-input-wrap {
    position: relative;
}

.simpegrs-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.92);
    z-index: 2;
}

.simpegrs-login-form .form-control {
    border: 0;
    border-radius: 8px;
    min-height: 54px;
    padding-left: 46px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.simpegrs-login-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.simpegrs-login-form .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.14);
}

.simpegrs-login-submit {
    background: #f45a7a;
    border: 0;
    border-radius: 999px;
    color: #fff;
    min-height: 54px;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.simpegrs-login-submit:hover {
    background: #ea4a6d;
    color: #fff;
}

.simpegrs-login-info-panel {
    background: linear-gradient(180deg, #fbfbfb 0%, #f6f8f6 100%);
    padding: 20px;
}

.simpegrs-login-info-card {
    height: 100%;
    background:
        radial-gradient(circle at top right, rgba(92, 184, 92, 0.22), transparent 18%),
        radial-gradient(circle at bottom left, rgba(92, 184, 92, 0.16), transparent 20%),
        #ffffff;
    border-radius: 28px;
    border: 1px solid #e3eee3;
    padding: 34px 32px;
}

.simpegrs-login-info-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.simpegrs-login-info-kicker {
    color: #365136;
    font-size: 20px;
    font-weight: 600;
}

.simpegrs-login-info-head h2 {
    font-size: 58px;
    line-height: 1.04;
    margin: 6px 0 0;
    color: #1f262d;
    font-weight: 700;
}

.simpegrs-login-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.simpegrs-login-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #5cb85c;
    color: #fff;
    font-weight: 600;
}

.simpegrs-login-badge.outline {
    background: #fff;
    border: 1px solid #cfe5cf;
    color: #4a7f4a;
}

.simpegrs-login-info-body {
    display: grid;
    grid-template-columns: minmax(250px, 360px) minmax(280px, 1fr);
    gap: 28px;
    align-items: center;
}

.simpegrs-login-device {
    display: flex;
    justify-content: center;
}

.simpegrs-login-device-screen {
    width: 260px;
    min-height: 520px;
    border-radius: 40px;
    background: linear-gradient(180deg, #ffffff 0%, #eef8ee 100%);
    border: 8px solid #1f1f1f;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    padding: 18px;
    position: relative;
}

.simpegrs-login-device-screen::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 20px;
    border-radius: 999px;
    background: #111;
}

.simpegrs-login-device-bar {
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, #5cb85c 0%, #3c8f3c 100%);
    margin-top: 20px;
    margin-bottom: 18px;
}

.simpegrs-login-device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.simpegrs-login-device-card {
    height: 72px;
    border-radius: 14px;
    background: #f7faf7;
    border: 1px solid #dce8dc;
}

.simpegrs-login-device-card.large {
    height: 150px;
}

.simpegrs-login-points {
    display: grid;
    gap: 16px;
}

.simpegrs-login-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f8fcf8;
    border: 1px solid #dcebdc;
    border-radius: 18px;
    padding: 18px 18px 16px;
    color: #355235;
    font-size: 16px;
    line-height: 1.6;
}

.simpegrs-login-point i {
    color: #3ea75a;
    font-size: 20px;
    margin-top: 3px;
}

.simpegrs-login-shell {
    align-items: flex-start;
    justify-content: center;
    padding: 72px 18px 32px;
    background:
        linear-gradient(rgba(120, 0, 0, 0.2), rgba(120, 0, 0, 0.28)),
        url("../legacy-login/74-slide-bg.jpg") center top / cover no-repeat,
        #b60000;
}

.simpegrs-login-card {
    width: min(430px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border-top: 5px solid #d71920;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    padding: 30px 34px 24px;
}

.simpegrs-login-logo-wrap {
    text-align: center;
    margin-bottom: 18px;
}

.simpegrs-login-logo {
    width: min(300px, 86%);
    height: auto;
}

.simpegrs-login-card .simpegrs-login-brand-block {
    margin-bottom: 22px;
    text-align: center;
}

.simpegrs-login-card .simpegrs-login-brand-block h1 {
    color: #2d6f95;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    text-transform: uppercase;
}

.simpegrs-login-card .simpegrs-login-brand-block p {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px auto 0;
    max-width: 340px;
    text-transform: uppercase;
}

.simpegrs-login-card .form-label {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
}

.simpegrs-login-card .simpegrs-input-icon {
    color: #777;
    left: 13px;
}

.simpegrs-login-card .form-control {
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    color: #333;
    min-height: 42px;
    padding-left: 40px;
}

.simpegrs-login-card .form-control::placeholder {
    color: #9a9a9a;
}

.simpegrs-login-card .form-control:focus {
    background: #fff;
    border-color: #2d8fbd;
    box-shadow: 0 0 0 0.15rem rgba(45, 143, 189, 0.18);
    color: #333;
}

.simpegrs-login-card .simpegrs-login-submit {
    background: #d71920;
    border-radius: 4px;
    box-shadow: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    min-height: 42px;
    text-transform: uppercase;
}

.simpegrs-login-card .simpegrs-login-submit:hover {
    background: #b80f16;
    color: #fff;
}

.simpegrs-login-card .simpegrs-login-alert {
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    padding: 10px 12px;
}

.simpegrs-login-footer {
    border-top: 1px solid #e7e7e7;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 22px;
    padding-top: 16px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .simpegrs-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    body.sidebar-open .simpegrs-sidebar {
        transform: translateX(0);
    }

    .simpegrs-page-header,
    .simpegrs-hero,
    .simpegrs-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .simpegrs-login-layout,
    .simpegrs-login-info-body {
        grid-template-columns: 1fr;
    }

    .simpegrs-login-panel {
        min-height: auto;
    }

    .simpegrs-login-form-panel,
    .simpegrs-login-info-card {
        padding: 28px 22px;
    }

    .simpegrs-login-brand-block h1 {
        font-size: 34px;
    }

    .simpegrs-login-info-head h2 {
        font-size: 40px;
    }

    .simpegrs-login-shell {
        padding-top: 34px;
    }

    .simpegrs-login-card {
        padding: 24px 20px 20px;
    }

    .simpegrs-login-card .simpegrs-login-brand-block h1 {
        font-size: 20px;
    }
}

body.form-login-body {
    min-height: 100vh;
    background: #e8e8e8 url("../legacy-login/puspem.jpg") center top / cover no-repeat !important;
    color: #25352b;
    font-family: "Open Sans", "Roboto", Arial, sans-serif;
    overflow-x: hidden;
}

.legacy-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 35px 16px 26px;
    background: transparent;
}

.legacy-login-container {
    max-width: 1170px;
}

.legacy-login-desk {
    filter: drop-shadow(0 0 13px rgba(0, 0, 0, 0.12));
}

.legacy-login-row {
    align-items: stretch;
}

.legacy-login-form {
    min-height: 900px;
    background: #3f8939;
    border-radius: 25px;
    color: #fff;
    padding: 56px 46px;
    text-align: center;
}

.legacy-login-form h1 {
    color: #fff;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 10px;
}

.legacy-login-form p {
    color: #fff;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 52px;
    text-transform: uppercase;
}

.legacy-login-alert {
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    margin: 0 0 18px;
    text-align: left;
}

.legacy-login-form-inner {
    margin: 0 auto;
    max-width: 400px;
    text-align: left;
}

.legacy-login-field {
    margin-bottom: 34px;
}

.legacy-login-field label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 9px;
}

.legacy-login-field .input-group {
    height: 36px;
}

.legacy-login-field .input-group-text,
.legacy-login-field .form-control {
    background: #53a853;
    border: 0;
    color: #fff;
    min-height: 36px;
}

.legacy-login-field .input-group-text {
    border-radius: 5px 0 0 5px;
    color: rgba(255, 255, 255, 0.84);
    justify-content: center;
    min-width: 48px;
}

.legacy-login-field .form-control {
    border-radius: 0 5px 5px 0;
    font-size: 13px;
    margin-bottom: 0;
}

.legacy-login-field .form-control::placeholder {
    color: rgba(255, 255, 255, 0.68) !important;
    opacity: 1 !important;
}

.legacy-login-field .form-control:focus {
    background: #5cb35b;
    border: 0;
    box-shadow: none;
    color: #fff;
}

.legacy-login-submit {
    width: 100%;
    min-height: 36px;
    background: #fa607e;
    border: 0;
    border-radius: 50px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 13px;
}

.legacy-login-submit:hover,
.legacy-login-submit:focus {
    background: #f55273;
    color: #fff;
}

.legacy-detail-box {
    padding: 0;
}

.legacy-showcase-card {
    position: relative;
    min-height: 900px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 21px solid rgba(255, 255, 255, 0.78);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(15, 52, 30, 0.22);
    padding: 36px 26px 26px;
}

.legacy-showcase-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 193, 105, 0.42), rgba(57, 193, 105, 0));
}

.legacy-showcase-card::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 160, 90, 0.3), rgba(47, 160, 90, 0));
}

.showcase-particle {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    background: rgba(35, 154, 76, 0.25);
    animation: particleFloat 6s ease-in-out infinite;
}

.showcase-particle.p1 {
    top: 22%;
    left: 47%;
    width: 10px;
    height: 10px;
}

.showcase-particle.p2 {
    top: 70%;
    left: 85%;
    width: 6px;
    height: 6px;
    animation-delay: 1.6s;
}

.showcase-particle.p3 {
    top: 12%;
    left: 82%;
    width: 8px;
    height: 8px;
    animation-delay: 0.8s;
}

.legacy-showcase-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.legacy-showcase-top h2 {
    color: #1b2124;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.legacy-showcase-top img {
    width: 190px;
    max-width: 34%;
    height: auto;
}

.legacy-showcase-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 54px;
}

.legacy-phone-scene {
    flex: 0 0 310px;
    display: flex;
    justify-content: center;
}

.legacy-phone-frame {
    width: 300px;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.25));
    animation: phoneFloat 4.2s ease-in-out infinite;
}

.legacy-showcase-content {
    flex: 1;
    min-width: 0;
}

.legacy-feature-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
}

.legacy-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(43, 121, 70, 0.13);
    border-radius: 14px;
    background: rgba(246, 250, 247, 0.82);
    color: #214931;
    font-size: 17px;
    line-height: 1.48;
}

.legacy-feature-list i {
    flex: 0 0 auto;
    color: #2aab59;
    margin-top: 4px;
}

.legacy-store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legacy-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 70px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.18;
    text-decoration: none;
}

.legacy-store-btn.android {
    min-width: 252px;
    background: #111;
    color: #fff;
    box-shadow: 0 12px 20px rgba(17, 17, 17, 0.22);
}

.legacy-store-btn.android:hover {
    color: #fff;
    transform: translateY(-2px);
}

.legacy-store-btn.ios {
    min-width: 240px;
    min-height: 58px;
    background: rgba(233, 238, 236, 0.78);
    border: 1px solid #cbd3d0;
    color: #738080;
}

@keyframes phoneFloat {
    0%,
    100% {
        transform: rotate(-5deg) translateY(0);
    }

    50% {
        transform: rotate(-5deg) translateY(-9px);
    }
}

@keyframes particleFloat {
    0%,
    100% {
        opacity: 0.2;
        transform: translateY(0);
    }

    50% {
        opacity: 0.55;
        transform: translateY(-12px);
    }
}

@media (max-width: 1366px) {
    .legacy-login-container {
        max-width: 1170px;
    }

    .legacy-login-form,
    .legacy-showcase-card {
        min-height: 760px;
    }

    .legacy-showcase-top h2 {
        font-size: 34px;
    }

    .legacy-phone-scene {
        flex-basis: 260px;
    }

    .legacy-phone-frame {
        width: 250px;
    }

    .legacy-feature-list li {
        font-size: 15px;
    }

    .legacy-store-btn {
        font-size: 18px;
    }
}

@media (max-width: 991.98px) {
    body.form-login-body {
        background-position: center top !important;
    }

    .legacy-login-shell {
        padding: 24px 14px;
    }

    .legacy-login-form,
    .legacy-showcase-card {
        min-height: auto;
    }

    .legacy-login-form {
        border-radius: 22px 22px 0 0;
        padding: 36px 28px;
    }

    .legacy-showcase-card {
        border-radius: 0 0 22px 22px;
        border-width: 16px;
        padding: 24px 18px;
    }

    .legacy-showcase-main {
        gap: 16px;
        margin-top: 24px;
    }

    .legacy-showcase-top {
        flex-direction: column;
    }

    .legacy-showcase-top img {
        max-width: 170px;
        width: 150px;
    }

    .legacy-phone-scene {
        flex-basis: 205px;
    }

    .legacy-phone-frame {
        width: 205px;
    }
}

@media (max-width: 767.98px) {
    .legacy-login-form h1 {
        font-size: 34px;
    }

    .legacy-showcase-top h2 {
        font-size: 30px;
    }

    .legacy-showcase-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .legacy-phone-scene {
        width: 100%;
        flex-basis: auto;
        justify-content: flex-start;
    }

    .legacy-phone-frame {
        transform: rotate(-2deg);
    }

    .legacy-store-btn {
        width: 100%;
    }
}

/* ---------- Topbar (nav header) ---------- */
body.simpegrs-body .simpegrs-topbar .header-wrapper {
    min-height: 56px;
    gap: 14px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

body.simpegrs-body .simpegrs-topbar-center {
    flex: 1 1 auto;
    justify-content: flex-start;
    max-width: 420px;
    margin-right: auto;
}

.simpegrs-topbar-search-inline {
    position: relative;
    width: 100%;
}

.simpegrs-topbar-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    pointer-events: none;
}

.simpegrs-topbar-search-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 999px;
    padding: 9px 14px 9px 38px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.simpegrs-topbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.simpegrs-topbar-search-input:focus {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.simpegrs-topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.simpegrs-topbar-tools > li {
    list-style: none;
}

.simpegrs-topbar-clock {
    text-align: right;
    color: #fff;
    line-height: 1.15;
    padding: 0 6px;
    min-width: 118px;
}

.simpegrs-clock-time {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.simpegrs-clock-date {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.86);
    text-transform: capitalize;
}

.simpegrs-topbar-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.simpegrs-topbar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.38);
}

.simpegrs-topbar-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.simpegrs-avatar-topbar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.95rem;
}

/* ---- Topbar profile dropdown (modern, fixed — tidak terpotong) ---- */
.simpegrs-profile-nav {
    position: relative;
}

.simpegrs-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(240px, 42vw);
    padding: 4px 10px 4px 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.simpegrs-profile-trigger:hover,
.simpegrs-profile-nav.is-open .simpegrs-profile-trigger {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.simpegrs-profile-trigger-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.2;
    text-align: left;
}

.simpegrs-profile-trigger-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.simpegrs-profile-trigger-role {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.simpegrs-profile-chevron {
    font-size: 10px;
    opacity: 0.85;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.simpegrs-profile-nav.is-open .simpegrs-profile-chevron {
    transform: rotate(180deg);
}

.simpegrs-profile-menu {
    position: fixed;
    z-index: 11050;
    width: min(260px, calc(100vw - 24px));
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 18px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}

.simpegrs-profile-nav.is-open .simpegrs-profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.simpegrs-profile-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 72%);
    border-bottom: 1px solid #e8f2ea;
}

.simpegrs-profile-menu-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    flex-shrink: 0;
}

.simpegrs-profile-menu-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.simpegrs-profile-menu-meta strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simpegrs-profile-menu-meta span {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: capitalize;
}

.simpegrs-profile-menu-body {
    padding: 8px;
}

.simpegrs-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none !important;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease;
}

.simpegrs-profile-menu-item:hover {
    background: #f0fdf4;
    color: #166534;
}

.simpegrs-profile-menu-item.is-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.simpegrs-profile-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    flex-shrink: 0;
    font-size: 13px;
}

.simpegrs-profile-menu-item:hover .simpegrs-profile-menu-icon {
    background: #dcfce7;
    color: #166534;
}

.simpegrs-profile-menu-item.is-logout:hover .simpegrs-profile-menu-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.simpegrs-avatar-photo.simpegrs-avatar-topbar {
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center top;
    background: rgba(255, 255, 255, 0.12);
}

body.simpegrs-body .simpegrs-topbar .simpegrs-profile-trigger .simpegrs-profile-trigger-name,
body.simpegrs-body .simpegrs-topbar .simpegrs-profile-trigger .simpegrs-profile-trigger-role {
    color: #fff;
}

body.simpegrs-body .simpegrs-topbar .simpegrs-profile-trigger .simpegrs-profile-trigger-role {
    opacity: 0.88;
}

body.simpegrs-body .simpegrs-topbar .nav-right ul li svg {
    stroke: #fff;
}

.simpegrs-search-dropdown,
.simpegrs-search-overlay-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    max-height: 280px;
    overflow: auto;
    padding: 6px;
}

.simpegrs-search-overlay-results {
    position: static;
    margin-top: 12px;
    max-height: 50vh;
    box-shadow: none;
    border: 1px solid #e7ece9;
}

.simpegrs-search-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.35;
}

.simpegrs-search-item:hover {
    background: #f0fdf4;
    color: #166534;
}

.simpegrs-search-item small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.75rem;
}

.simpegrs-search-empty {
    padding: 12px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

body.simpegrs-body .simpegrs-topbar .search-full.simpegrs-search-full {
    background: rgba(255, 255, 255, 0.98);
}

body.simpegrs-body .simpegrs-topbar .search-full.simpegrs-search-full input {
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

body.simpegrs-body .simpegrs-topbar .search-full .close-search {
    color: #64748b;
}

@media (max-width: 991.98px) {
    .simpegrs-topbar-clock {
        min-width: 96px;
    }

    .simpegrs-clock-time {
        font-size: 0.85rem;
    }

    .simpegrs-clock-date {
        display: none;
    }
}

@media (max-width: 575.98px) {
    body.simpegrs-body .simpegrs-topbar .simpegrs-profile-trigger-text {
        display: none;
    }

    body.simpegrs-body .simpegrs-topbar .simpegrs-profile-chevron {
        display: none;
    }

    body.simpegrs-body .simpegrs-topbar .simpegrs-profile-trigger {
        padding: 4px;
        border-radius: 50%;
    }
}

/* ---- Topbar notifications ---- */
.simpegrs-notifications-nav {
    position: relative;
}

.simpegrs-notifications-btn {
    position: relative;
}

.simpegrs-notifications-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.simpegrs-notifications-panel {
    width: min(360px, calc(100vw - 24px));
    right: 0;
    left: auto;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.simpegrs-notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #f8faf8 0%, #fff 100%);
    border-bottom: 1px solid #e8efe8;
    color: #1e293b;
}

.simpegrs-notifications-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.simpegrs-notifications-mark-all {
    border: 0;
    background: transparent;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 0;
}

.simpegrs-notifications-mark-all:hover {
    text-decoration: underline;
}

.simpegrs-notifications-item-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.simpegrs-notifications-item-wrap.is-unread {
    background: linear-gradient(90deg, rgba(220, 252, 231, 0.45) 0%, rgba(255, 255, 255, 0) 72%);
}

.simpegrs-notifications-item-wrap.is-read {
    opacity: 0.72;
}

.simpegrs-notifications-item-wrap .simpegrs-notifications-item {
    flex: 1 1 auto;
    min-width: 0;
}

.simpegrs-notifications-mark-one {
    flex: 0 0 auto;
    align-self: center;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #166534;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.simpegrs-notifications-mark-one:hover {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.simpegrs-notifications-head strong {
    font-size: 0.92rem;
}

.simpegrs-notifications-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 2px 8px;
}

.simpegrs-notifications-body {
    max-height: 360px;
    overflow: auto;
    background: #fff;
}

.simpegrs-notifications-group + .simpegrs-notifications-group {
    border-top: 1px solid #eef2f7;
}

.simpegrs-notifications-group-label {
    padding: 8px 14px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.simpegrs-notifications-item {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.simpegrs-notifications-item:hover {
    background: #f8fafc;
    color: inherit;
}

.simpegrs-notifications-item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
}

.simpegrs-notifications-item-message {
    margin-top: 3px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

.simpegrs-notifications-item-time {
    margin-top: 4px;
    font-size: 0.68rem;
    color: #94a3b8;
}

.simpegrs-notif-status {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.simpegrs-notif-status.is-approved {
    background: #dcfce7;
    color: #166534;
}

.simpegrs-notif-status.is-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.simpegrs-notif-status.is-pending {
    background: #fef3c7;
    color: #b45309;
}

.simpegrs-notifications-empty {
    padding: 22px 16px;
    text-align: center;
    font-size: 0.82rem;
    color: #94a3b8;
}

.simpegrs-notifications-load-more {
    padding: 12px 16px 14px;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

.simpegrs-notifications-load-more.is-loading {
    color: #64748b;
}

body.simpegrs-body .simpegrs-topbar .simpegrs-notifications-panel.onhover-show-div {
    margin-top: 10px;
}

body.simpegrs-body .simpegrs-topbar .simpegrs-notifications-nav.is-open .simpegrs-notifications-panel {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*
 * Topbar & dropdown profil/notifikasi harus di atas sticky header modul
 * (banyak modul memakai z-index: 30–31 pada tab/menu konten).
 */
body.simpegrs-body .page-wrapper .page-header.simpegrs-topbar {
    z-index: 1040 !important;
    overflow: visible;
}

body.simpegrs-body .simpegrs-topbar .header-wrapper,
body.simpegrs-body .simpegrs-topbar .nav-right,
body.simpegrs-body .simpegrs-topbar .nav-right > ul,
body.simpegrs-body .simpegrs-topbar .simpegrs-topbar-tools,
body.simpegrs-body .simpegrs-topbar .simpegrs-profile-nav {
    position: relative;
    z-index: 1041;
    overflow: visible;
}

body.simpegrs-body .simpegrs-topbar .simpegrs-profile-nav.is-open {
    z-index: 11051;
}

/* Legacy profile-dropdown — nonaktifkan agar tidak bentrok */
body.simpegrs-body .simpegrs-topbar .profile-dropdown.onhover-show-div {
    display: none !important;
}

body.simpegrs-body .simpegrs-topbar .simpegrs-notifications-nav {
    overflow: visible;
}

body.simpegrs-body .simpegrs-topbar .simpegrs-notifications-nav.onhover-dropdown {
    position: relative;
    z-index: 1041;
}

body.simpegrs-body .simpegrs-topbar .simpegrs-notifications-panel.onhover-show-div {
    z-index: 1042 !important;
}

body.simpegrs-body .simpegrs-topbar .simpegrs-notifications-nav.is-open {
    z-index: 1043;
}

body.simpegrs-body .simpegrs-topbar .simpegrs-notifications-nav.is-open .simpegrs-notifications-panel {
    z-index: 1044 !important;
}

