:root {
    --jr-font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --bs-font-sans-serif: var(--jr-font);
    --bs-body-font-family: var(--jr-font);
    --jr-ink: #1c2940;
    --jr-muted: #758197;
    --jr-blue: #2874dc;
    --jr-line: #e8edf4;
    --jr-surface: #f4f6fa;
    --jr-sidebar-width: 252px;
    --jr-header-height: 80px;
}

:where(body, p, a, button, input, select, textarea, h1, h2, h3, h4, h5, h6, label, legend, table, caption, th, td, span, div, small, strong, b, em, li, dt, dd, summary):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.material-icons):not([class*="note-icon"]):not([class*="glyphicon"]) {
    font-family: var(--jr-font) !important;
}

body.jr-app {
    margin: 0;
    padding-top: var(--jr-header-height) !important;
    background: var(--jr-surface);
    color: var(--jr-ink);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.jr-app :where(h1, h2, h3, h4, h5, h6, strong, b) { font-weight: 500; }
.jr-app button, .jr-app a { -webkit-tap-highlight-color: transparent; }
.jr-app a { text-decoration: none; }
.jr-app :where(a, button, summary):focus-visible { outline: 3px solid #65a8ff; outline-offset: 4px; }
.jr-app #main-content { display: flex; flex-direction: column; min-height: calc(100svh - var(--jr-header-height)); margin-left: 0; transition: margin-left .22s ease; }
.jr-app #page-content { min-width: 0; min-height: 0; flex: 1 0 auto; }
.jr-app #page-content:focus { outline: none; }

.jr-skip-link { position: fixed; top: -100px; left: 20px; z-index: 1100; padding: 10px 18px; background: #fff; color: #18355d; border-radius: 8px; }
.jr-skip-link:focus { top: 12px; }

#topbar.jr-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    left: 0;
    right: 0;
    height: var(--jr-header-height);
    padding: 0 32px;
    border-bottom: 1px solid var(--jr-line);
    background: rgba(255, 255, 255, .97);
    color: var(--jr-ink);
    z-index: 1030;
    transition: left .22s ease;
}

.jr-topbar-start, .jr-topbar-end { display: flex; align-items: center; gap: 22px; min-width: 0; }
.jr-topbar-end { gap: 20px; flex-shrink: 0; }
.jr-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--jr-line); border-radius: 11px; background: #fff; color: #61738e; font-size: 17px; cursor: pointer; flex: 0 0 auto; }
.jr-icon-button:hover { background: #edf4ff; color: var(--jr-blue); border-color: #d5e5fc; }
.jr-header-location { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.jr-header-location > span { font-size: 12px; color: var(--jr-muted); letter-spacing: .03em; }
.jr-header-location strong { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-header-divider { height: 30px; width: 1px; background: var(--jr-line); }
.jr-mobile-brand { display: inline-flex; width: 102px; padding: 2px 7px; background: #152339; border-radius: 9px; }
.jr-mobile-brand img { width: 100%; height: 36px; object-fit: contain; }
.jr-account-toggle { display: flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; color: var(--jr-ink); text-align: left; cursor: pointer; }
.jr-user-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #dce8f9; border-radius: 50%; background: #eaf2ff; color: #2461b2; font-size: 15px; font-weight: 500; overflow: hidden; }
.jr-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jr-account-copy { display: flex; flex-direction: column; max-width: 180px; }
.jr-account-copy strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-account-copy small { color: var(--jr-muted); font-size: 12px; text-transform: capitalize; }
.jr-chevron { font-size: 11px; opacity: .65; }

.jr-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 11px 18px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 1.45; text-align: center; cursor: pointer; transition: background .15s, box-shadow .15s; }
.jr-button-primary { background: var(--jr-blue); color: #fff; box-shadow: 0 4px 9px #2874dc1a; }
.jr-button-primary:hover { background: #1b63c4; color: #fff; box-shadow: 0 5px 12px #2874dc28; }
.jr-button-small { min-height: 38px; padding: 8px 14px; }
.jr-dropdown { min-width: 218px; padding: 7px; margin-top: 12px !important; border: 1px solid var(--jr-line); border-radius: 14px; box-shadow: 0 15px 50px #172c471a; font-size: 13px; }
.jr-dropdown .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: #43556e; font-weight: 400; }
.jr-dropdown .dropdown-item:hover, .jr-dropdown .dropdown-item:focus { background: #f0f5fe; color: #2169c8; }
.jr-dropdown .dropdown-item > i { width: 17px; text-align: center; color: #6a7f9d; }
.jr-dropdown .dropdown-divider { border-color: var(--jr-line); }
.jr-dropdown .jr-logout, .jr-dropdown .jr-logout > i { color: #b24c59; }
.jr-dropdown-heading { padding: 8px 12px 10px; color: var(--jr-ink); overflow-wrap: anywhere; }
.jr-dropdown-heading small { display: block; color: var(--jr-muted); font-size: 12px; text-transform: capitalize; }

body.jr-app #sidebar.jr-sidebar {
    display: flex;
    flex-direction: column;
    width: var(--jr-sidebar-width);
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    border-right: 1px solid #203049;
    background: linear-gradient(165deg, #17263b 0%, #111c2d 58%, #142137 100%);
    color: #cfdaea;
    overflow: hidden;
    z-index: 1040;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s;
}

.jr-sidebar-brand { display: flex; align-items: center; justify-content: space-between; flex: 0 0 80px; height: 80px; padding: 13px 21px; }
.jr-sidebar-brand > a { display: block; }
.jr-sidebar-brand img { display: block; width: 148px; height: 54px; object-fit: contain; object-position: left center; }
body.jr-app #btn-dismiss-sidebar { position: static; width: 32px; height: 32px; border-color: #334258; background: #ffffff08; color: #c4d2e7; font-size: 15px; }
.jr-workspace-tag { display: flex; align-items: center; gap: 8px; margin: 0 23px 17px; padding: 0 0 20px; border-bottom: 1px solid #ffffff0d; color: #8e9fb8; font-size: 12px; letter-spacing: .025em; }
.jr-workspace-tag > span { width: 5px; height: 5px; border-radius: 50%; background: #59cbb7; box-shadow: 0 0 0 4px #59cbb70c; }
.jr-sidebar-navigation { flex: 1; min-height: 0; padding: 0 13px 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #33465e transparent; }
.jr-nav-group { margin-bottom: 19px; }
.jr-nav-caption { padding: 0 12px; margin: 0 0 9px; color: #8292ab; font-size: 10px; font-weight: 500; letter-spacing: .16em; }
.jr-nav-list, .jr-nav-submenu { list-style: none; margin: 0; padding: 0; }
.jr-nav-list li + li { margin-top: 3px; }
.jr-sidebar .jr-nav-link { display: flex; align-items: center; gap: 12px; position: relative; width: 100%; min-height: 43px; padding: 10px 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #b7c5d9; text-align: left; font-size: 13px; line-height: 1.5; font-weight: 400; cursor: pointer; }
.jr-sidebar .jr-nav-link > i:first-child { width: 18px; color: #8fa4bf; font-size: 15px; text-align: center; flex: 0 0 18px; }
.jr-sidebar .jr-nav-link:hover, .jr-sidebar .jr-nav-link:focus-visible { color: #fff; background: #ffffff08; }
.jr-sidebar .jr-nav-link.active { color: #f0f6ff; border-color: #426da44a; background: linear-gradient(100deg, #2b527e80, #24395070); }
.jr-sidebar .jr-nav-link.active > i:first-child { color: #7cb7ff; }
.jr-active-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #73b0ff; }
.jr-nav-chevron { margin-left: auto; color: #8093ae; font-size: 11px; transition: transform .2s; }
.jr-nav-parent[aria-expanded="true"] .jr-nav-chevron { transform: rotate(180deg); }
.jr-nav-submenu { margin: 6px 0 0 20px; padding-left: 10px; border-left: 1px solid #34475f; }
.jr-nav-submenu .jr-nav-link { min-height: 37px; font-size: 12px; padding: 8px 10px; }
.jr-nav-submenu .jr-nav-link > i:first-child { font-size: 13px; }
.jr-sidebar-bottom { flex: 0 0 auto; padding: 16px; border-top: 1px solid #ffffff0a; }
.jr-sidebar-note { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 10px; border: 1px solid #31465d80; border-radius: 11px; background: #ffffff03; color: #d0daea; font-size: 12px; }
.jr-sidebar-note small { display: block; margin-top: 2px; color: #8396b0; font-size: 11px; }
.jr-sidebar-note-icon { color: #7aafef; font-size: 17px; }
.jr-sidebar-account { display: flex; gap: 10px; align-items: center; min-width: 0; color: #ced9e8; font-size: 13px; }
.jr-sidebar-account:hover { color: #fff; }
.jr-sidebar-account > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.jr-sidebar-account small { display: block; color: #8396b0; font-size: 11px; text-transform: capitalize; }
.jr-sidebar-account > i { font-size: 12px; color: #8296b2; }
.jr-avatar-small { width: 32px; height: 32px; flex-basis: 32px; background: #2b3f59; border-color: #354d6c; color: #adcef8; font-size: 13px; }

body.jr-app .jr-sidebar-overlay { display: none; position: fixed; inset: 0; width: auto; height: auto; background: #0a152e66; backdrop-filter: blur(3px); z-index: 1035; opacity: 1; }
body.jr-sidebar-open { overflow: hidden; }
body.jr-sidebar-open #sidebar.jr-sidebar { transform: translateX(0); visibility: visible; }
body.jr-sidebar-open .jr-sidebar-overlay { display: block; }

.footer.jr-app-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 32px; padding: 21px 0; border-top: 1px solid #e4eaf2; background: transparent; color: #8591a3; font-size: 12px; }
.jr-app-footer > div { display: flex; align-items: center; gap: 15px; }
.jr-footer-brand { color: #34577e; font-size: 16px; font-weight: 500; letter-spacing: -.04em; }
.jr-footer-brand > span { color: #8d9caf; font-size: 13px; }
.jr-footer-purpose { color: #8390a3; }
.jr-public-topbar { height: 80px; padding: 13px 24px; background: #152339; }
.jr-public-topbar img { width: 148px; height: 54px; object-fit: contain; }

@media (min-width: 1200px) {
    .jr-app #main-content { margin-left: var(--jr-sidebar-width); }
    #topbar.jr-topbar { left: var(--jr-sidebar-width); }
    body.jr-app #sidebar.jr-sidebar { visibility: visible; transform: translateX(0); }
    .jr-sidebar-brand { padding-left: 27px; }
    .jr-mobile-brand, body.jr-app #btn-dismiss-sidebar { display: none; }
    body.jr-sidebar-collapsed #sidebar.jr-sidebar { visibility: hidden; transform: translateX(-100%); }
    body.jr-sidebar-collapsed #main-content { margin-left: 0; }
    body.jr-sidebar-collapsed #topbar { left: 0; }
}

@media (max-width: 767px) {
    :root { --jr-header-height: 68px; }
    #topbar.jr-topbar { gap: 10px; padding: 0 18px; }
    .jr-topbar-start, .jr-topbar-end { gap: 12px; }
    .jr-header-location, .jr-account-copy, .jr-account-toggle > .jr-chevron, .jr-header-divider { display: none; }
    .jr-account-toggle { gap: 0; }
    .jr-app-footer { flex-wrap: wrap; }
    .footer.jr-app-footer { margin: 0 20px; padding: 18px 0; gap: 9px; }
    .jr-app-footer > div { gap: 10px; }
    .jr-footer-purpose { display: none; }
}

@media (max-width: 359px) {
    #topbar.jr-topbar { padding: 0 12px; }
    .jr-topbar-start, .jr-topbar-end { gap: 8px; }
    .jr-create-menu .jr-chevron { display: none; }
    .jr-mobile-brand { width: 87px; }
    .jr-button-small { gap: 5px; padding: 8px 10px; }
    .jr-footer-brand { display: none; }
}

@media (max-height: 680px) {
    .jr-sidebar-note { display: none; }
    .jr-sidebar-bottom { padding: 12px 17px; }
    .jr-nav-group { margin-bottom: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .jr-app *, .jr-app *::before, .jr-app *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    body.jr-app { padding: 0 !important; background: #fff; }
    body.jr-app #sidebar, body.jr-app #topbar, .jr-sidebar-overlay, .jr-skip-link { display: none !important; }
    body.jr-app #main-content { margin: 0; min-height: 0; }
    .footer.jr-app-footer { margin: 0; }
}

.ja-pagination p,
.jr-route-pagination p,
nav .flex-sm-fill p.small {
    display: none !important;
}
