/* ------------------------------------
  RESET
------------------------------------- */

html,
body,
div,
span,
h1,
h2,
h3,
h4,
p,
blockquote,
pre,
a,
code,
img,
svg,
small,
strike,
strong,
sub,
sup,
b,
u,
i,
ol,
ul,
li,
form,
label,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
main,
article,
aside,
canvas,
input,
footer,
header,
nav,
section,
time,
button,
video,
textarea,
input {
    -moz-box-sizing: border-box;
    -webkit-appearance: none;
    -webkit-box-sizing: border-box;
    /*appearance: none;*/
    border: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

main,
article,
aside,
footer,
header,
nav,
section {
    display: block;
}

@viewport {
    width: device-width;
}

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-size: 100%;
    text-size-adjust: 100%;
}

* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

ul {
    list-style: none;
}

button {
    font-size: var(--n-font-size-m);
    font-feature-settings: var(--n-font-features);
    font-family: var(--n-font-family);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    border: 0;
}

::selection {
    background: var(--n-color-primary);
    color: var(--n-color-negative);
}

::-moz-selection {
    background: var(--n-color-primary);
    color: var(--n-color-negative);
}

/* ------------------------------------
  BODY
------------------------------------- */

html {
    scroll-behavior: smooth;
}

.modal {
    overflow: hidden;
}

body {
    --left-width: 250px;
    background: var(--n-color-background);
    font-family: var(--n-font-family);
    color: var(--n-color-text);
    font-feature-settings: var(--n-font-features);
    font-weight: 400;
    line-height: var(--n-line-height);
    font-size: var(--n-font-size-m);
}

    body.resizing {
        cursor: col-resize;
    }

        body.resizing nav a,
        body.resizing nav button {
            pointer-events: none;
        }

main,
nav,
.n-resize {
    top: 0;
    min-height: 100%;
    position: absolute;
}

main {
    right: 0;
    z-index: 1;
    transition: width 0.2s ease;
    width: calc(100% - var(--left-width));
}

.collapsed main {
    padding-top: calc(var(--n-space-xl) * 1.9);
}

.resizing main {
    transition: none;
}

.collapsed main {
    transition: width 0.2s ease;
}

/* ------------------------------------
  NAVIGATION
------------------------------------- */

nav {
    background: var(--n-color-nav);
    border-right: 1px solid var(--n-color-border);
    color: var(--n-color-text-light);
    font-weight: var(--n-font-weight);
    padding: 0 var(--n-space-m) 100px;
    line-height: var(--n-line-height-tight);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    overflow-y: auto;
    position: fixed;
    display: flex;
    transition: transform 0.3s ease;
    flex-direction: column;
    align-items: flex-start;
    user-select: none;
    width: var(--left-width);
    z-index: 2;
    top: 0;
    left: 0;
    bottom: 0;
}

.collapsed-active nav {
    padding-bottom: 0;
}

nav ul {
    margin-bottom: var(--n-space-m);
    min-width: 100%;
}

nav img {
    margin-right: var(--n-space-s);
    margin-left: calc(var(--n-space-s) / 1.5);
}

nav button {
    color: var(--n-color-negative);
    font-size: var(--n-font-size-m);
    font-family: var(--n-font-family);
    padding: var(--n-space-s) 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.n-icon-dropdown {
    fill: var(--n-color-caption);
    margin-left: var(--n-space-s);
    width: 12px;
}

nav .n-icon-dropdown {
    fill: var(--n-color-caption);
    transition: opacity 0.05s ease;
    margin-left: auto;
    margin-right: calc(var(--n-space-s) * 1.5);
}

.n-dropdown:hover .n-icon-dropdown,
.n-dropdown.active .n-icon-dropdown {
    opacity: 1;
}

.n-logo-container:hover .n-icon-dropdown {
    opacity: 1;
}

nav h2 {
    min-width: 100%;
    color: var(--n-color-text-lighter);
    font-weight: var(--n-font-weight-active);
    font-size: var(--n-font-size-m);
    padding-left: var(--n-space-s);
    margin-bottom: var(--n-space-s);
}

nav li {
    min-width: 100%;
    display: block;
}

nav a {
    color: var(--n-color-text-light);
    padding: var(--n-space-s) var(--n-space-s) var(--n-space-s) var(--n-space-s);
    border-radius: var(--n-border-radius-s);
    min-height: 28px;
    position: relative;
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 100%;
}

    nav a:hover {
        background: var(--n-color-nav-hover);
        color: var(--n-color-text);
    }

        nav a:hover .n-icon {
            stroke: var(--n-color-text);
        }

nav .n-active a:hover .n-icon {
    stroke: var(--n-color-negative);
}

nav a:active {
    opacity: 0.7;
}

.n-resize {
    position: absolute;
    top: 0;
    right: -3px;
    bottom: 0;
    width: 12px;
    background: transparent;
    cursor: col-resize;
}

.n-panel .n-resize {
    left: -6px;
    right: auto;
}

.n-resize::after {
    content: "";
    position: absolute;
    z-index: 999999;
    top: 0;
    left: 6px;
    width: 3px;
    bottom: 0;
    background: var(--n-color-primary);
    transition: opacity 0.2s 0.15s ease;
    opacity: 0;
}

.n-resize:hover::after,
body.resizing .n-resize::after {
    opacity: 1;
}

.collapsed .n-resize {
    display: none !important;
}

.n-icon {
    margin-right: calc(var(--n-space-s) * 1.4);
    stroke: var(--n-color-text-light);
    width: var(--n-space-m);
    height: auto;
}

.n-active .n-icon,
.n-active .n-caret {
    stroke: var(--n-color-negative);
}

.n-active > a,
.n-active > a:hover {
    background: var(--n-color-primary);
    color: var(--n-color-negative);
    font-weight: var(--n-font-weight-active);
    box-shadow: var(--n-box-shadow);
}

.n-user-container {
    background: var(--n-color-nav);
    position: fixed;
    left: var(--n-space-m);
    bottom: 0;
    width: calc(var(--left-width) - calc(var(--n-space-m) * 2));
    padding: var(--n-space-m) 0;
    z-index: 99;
}

.collapsed-active .n-user-container {
    width: calc(250px - calc(var(--n-space-m) * 2));
    margin-top: auto;
    position: relative;
    top: auto;
    left: auto;
}

.n-user.n-dropdown {
    color: var(--n-color-text-light);
    padding: calc(var(--n-space-s) / 3) var(--n-space-m) calc(var(--n-space-s) / 3) calc(var(--n-space-s) / 2);
    display: flex;
    border-radius: var(--n-border-radius-s);
}

.n-user .n-icon-dropdown {
    margin-right: -2px;
}

.n-dropdown-icon {
    margin-right: calc(var(--n-space-s) / 2);
    transform: translateY(1px);
    width: 32px;
    height: 32px;
}

.n-logo-container {
    margin-bottom: var(--n-space-m);
    margin-left: calc(var(--n-space-m) * -1);
    width: calc(100% + calc(var(--n-space-m) * 2));
    border-bottom: 1px solid var(--n-color-border);
    min-height: var(--n-space-xxl);
    display: flex;
    align-items: center;
    position: relative;
}

    .n-logo-container:hover {
        background: var(--n-color-nav-hover);
    }

.n-logo {
    font-weight: var(--n-font-weight-heading);
    font-size: var(--n-font-size-l);
    color: var(--n-color-text);
    pointer-events: none;
    position: relative;
}

.n-dropdown {
    border-radius: 0;
    padding: var(--n-space-m);
}

    .n-dropdown.active,
    .n-dropdown:hover {
        background: var(--n-color-nav-hover);
    }

    .n-dropdown:active {
        opacity: 0.7;
    }

.n-clinic-icon {
    color: var(--n-color-negative);
    background: var(--n-color-primary);
    border-radius: var(--n-border-radius);
    box-shadow: var(--n-box-shadow);
    text-align: center;
    min-width: 24px;
    min-height: 24px;
    line-height: 24px;
    margin-right: var(--n-space-s);
    margin-left: calc(var(--n-space-s) / 3);
    font-size: var(--n-font-size-s);
    font-weight: var(--n-font-weight-active);
    display: inline-block;
}

i {
    color: var(--n-color-negative);
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--n-border-radius-pill);
    text-align: center;
    min-width: 20px;
    padding: 4px;
    position: relative;
    margin-left: calc(var(--n-space-s) / 3);
    font-size: var(--n-font-size-xs);
    font-weight: var(--n-font-weight-active);
    display: inline-block;
    transition: opacity 0.05s ease;
    font-style: normal;
}

.notifications i {
    background: var(--n-color-info);
    opacity: 1;
    color: rgba(0, 0, 0, 0.8);
    font-weight: var(--n-font-weight-active);
    font-feature-settings: var(--n-font-features-reduced);
    padding: 4px 6px;
}

a:hover i {
    opacity: 1;
}

.n-circle {
    width: 9px;
    height: 9px;
    border-radius: var(--n-border-radius-circle);
    background: var(--n-color-warning);
    border: 1px solid var(--n-color-nav);
    position: absolute;
    top: 8px;
    left: 18px;
    z-index: 99;
}

.collapsed nav {
    transform: translateX(-250px);
}

.collapsed-permanent nav {
    width: 250px;
}

.expanded nav {
    transform: translateX(0px);
}

/* ------------------------------------
  NAVIGATION HINTS
------------------------------------- */

.n-hint {
    position: absolute;
    right: var(--n-space-s);
    top: 50%;
    font-size: var(--n-font-size-xs);
    line-height: var(--n-line-height);
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

a:hover .n-hint {
    transition: opacity 0.2s 0.9s ease, visibility 0.2s 0.9s ease;
    opacity: 1;
    visibility: visible;
}

.n-hint-label {
    color: var(--n-color-negative);
}

/* ------------------------------------
  HEADER
------------------------------------- */

header {
    background: var(--n-color-surface);
    box-shadow: var(--n-box-shadow-header);
    left: var(--left-width);
    z-index: 9;
}

.collapsed header {
    position: fixed;
    top: 0;
    right: 0;
}

.n-header-top {
    padding: var(--n-space-m) var(--n-space-l);
    border-bottom: 1px solid var(--n-color-border);
    min-height: var(--n-space-xxl);
}

.n-header-top,
.n-header-bottom {
    width: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

    .n-header-top .n-button-primary {
        margin-left: auto;
    }

h1 {
    font-size: var(--n-font-size-l);
    font-weight: var(--n-font-weight-heading);
    margin-right: var(--n-space-m);
    margin-top: -1px;
}

    h1 .n-caret {
        transform: rotate(0deg);
    }

.n-header-bottom a {
    text-decoration: none;
    color: var(--n-color-text);
    padding: var(--n-space-m) 0 var(--n-space-s);
    margin-right: var(--n-space-l);
    border-bottom: 3px solid transparent;
}

.n-header-bottom .n-active {
    font-weight: var(--n-font-weight-active);
    color: var(--n-color-primary);
    border-bottom: 3px solid var(--n-color-primary);
}

/* ------------------------------------
  BUTTON
------------------------------------- */

.n-button {
    border: 1px solid var(--n-color-border-strong);
    font-weight: var(--n-font-weight);
    box-shadow: var(--n-box-shadow);
    border-radius: var(--n-border-radius-s);
    padding: var(--n-space-s) var(--n-space-m);
    color: var(--n-color-text);
    background: var(--n-color-button-background);
    min-height: var(--n-space-xl);
    font-size: var(--n-font-size-m);
    line-height: var(--n-line-height-tight);
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

    .n-button[disabled],
    .n-button[disabled]:hover {
        border: 1px solid var(--n-color-border);
        background: var(--n-color-border);
        opacity: 0.5;
        box-shadow: none;
        color: var(--n-color-caption);
        pointer-events: none;
    }

    .n-button:hover,
    .n-dropdown-container:hover .n-button {
        border-color: var(--n-color-caption);
        color: var(--n-color-text);
        background: var(--n-color-nav) !important;
    }

    .n-button:active,
    .n-dropdown-container:active .n-button {
        transition: none;
        transform: translateY(1px);
        opacity: 0.8;
    }

    .n-button svg {
        fill: var(--n-color-caption);
        margin-right: calc(var(--n-space-s) / 2);
    }

    .n-button:hover svg,
    .n-dropdown-container:hover .n-button svg {
        fill: var(--n-color-text);
    }

    .n-button i {
        color: var(--n-color-success);
        margin-left: 0rem;
    }

.n-button-filter {
    padding: calc(var(--n-space-s) / 1.5) var(--n-space-s);
    border: 1px dashed var(--n-color-caption);
    color: var(--n-color-caption);
    min-height: var(--n-space-l);
    box-shadow: none;
    font-size: var(--n-font-size-s);
    border-radius: var(--n-border-radius-s);
    background: var(--n-color-surface);
    margin-right: var(--n-space-m);
}

.n-button.n-dropdown {
    text-align: left;
    justify-content: space-around;
    padding-left: var(--n-space-m);
    padding-right: var(--n-space-s);
}

    .n-button.n-dropdown svg {
        margin-left: var(--n-space-m);
    }

/* ------------------------------------
  NAVIGATION TOGGLE
------------------------------------- */

.n-toggle {
    margin-left: calc(var(--n-space-s) * -1);
    margin-right: var(--n-space-s);
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    border-radius: var(--n-border-radius-s);
    text-align: center;
    width: 30px;
    height: 30px;
    z-index: 2;
}

    .n-toggle:hover::after,
    .n-toggle.n-active::after {
        content: "";
        position: absolute;
        top: 0;
        left: -40px;
        cursor: default;
        height: 50px;
        width: 200px;
        background: transparent;
        z-index: -1;
    }

    .n-toggle svg {
        stroke: var(--n-color-caption);
        transition: opacity 0.2s ease;
        width: 21px;
        height: auto;
    }

    .n-toggle .n-toggle-fix {
        width: 15px;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        position: absolute;
        stroke: var(--n-color-text);
        opacity: 0;
    }

    .n-toggle i {
        display: block;
        background: var(--n-color-info);
        transition: opacity 0.2s ease;
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 16px;
        font-size: 10px;
        padding: 4px 6px;
        color: rgba(0, 0, 0, 0.8);
        font-weight: var(--n-font-weight-active);
        font-feature-settings: var(--n-font-features-reduced);
        border-radius: var(--n-border-radius-pill);
        line-height: 1;
        z-index: 999;
        position: absolute;
        top: -6px;
        right: -6px;
    }

.collapsed .n-toggle {
    display: flex;
}

.collapsed-permanent .n-toggle:hover,
.collapsed-permanent .n-toggle.n-active {
    background: var(--n-color-background);
}

    .collapsed-permanent .n-toggle:hover svg,
    .collapsed-permanent .n-toggle:hover i,
    .collapsed-permanent .n-toggle.n-active svg,
    .collapsed-permanent .n-toggle.n-active i {
        opacity: 0;
    }

    .collapsed-permanent .n-toggle:hover .n-toggle-fix,
    .collapsed-permanent .n-toggle.n-active .n-toggle-fix {
        opacity: 1;
    }

/* ------------------------------------
  CARD
------------------------------------- */

.n-card {
    background: var(--n-color-surface);
    min-height: 300px;
    border-radius: 5px;
    box-shadow: var(--n-box-shadow-card);
    margin: var(--n-space-l);
    padding: var(--n-space-m);
    padding-top: 0;
}

.n-card-heading {
    width: calc(100% + calc(var(--n-space-m) * 2));
    margin-left: calc(var(--n-space-m) * -1);
    border-bottom: 1px solid var(--n-color-border);
    padding: var(--n-space-m);
}

.n-card-heading h2 {
    font-size: var(--n-font-size-m);
    font-weight: var(--n-font-weight-heading);
    min-width: 20%;
    background: var(--n-color-surface);
    transform: translateZ(0);
    position: relative;
    margin: 0;
    display: inline-block;
    width: auto;
}

.n-card-footer {
    padding-top: var(--n-space-m);
    display: flex;
    align-items: center;
    white-space: nowrap;
    justify-content: space-between;
    color: var(--n-color-caption);
    user-select: none;
}

.n-dropdown-container {
    position: relative;
    margin-right: var(--n-space-l);
}

.n-card-content {
    position: relative;
}

@media (max-width: 1000px) {
    .n-card-content {
        margin-left: calc(var(--n-space-m) * -1);
        width: calc(100% + calc(var(--n-space-m) * 2));
        overflow-x: auto;
    }
}

/* ------------------------------------
  TABLE
------------------------------------- */

table {
    width: calc(100% + calc(var(--n-space-m) * 2));
    margin-left: calc(var(--n-space-m) * -1);
    line-height: var(--n-line-height-tight);
    text-align: left;
    border-spacing: 0;
    border-collapse: separate;
    font-variant-numeric: tabular-nums;
}

th {
    border-bottom: 1px solid var(--n-color-border);
    font-weight: var(--n-font-weight-active);
    font-size: var(--n-font-size-s);
    color: var(--n-color-caption);
    padding: calc(var(--n-space-m) / 1.1) var(--n-space-m);
    background: var(--n-color-surface);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 3;
}

th::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--n-color-nav);
    z-index: -1;
    opacity: 0.6;
}

.collapsed th {
    top: calc(var(--n-space-xl) * 1.9);
}

@media (max-width: 1000px) {
    .collapsed th {
        top: 0;
    }
}

td {
    border-bottom: 1px solid var(--n-color-border);
    white-space: nowrap;
}

tbody tr:hover {
    background: var(--n-color-nav);
    cursor: pointer;
}

tbody .active,
tbody .active:hover {
    background: var(--n-color-nav);
    color: var(--n-color-text);
    opacity: 1;
    cursor: default;
}

    tbody tr:hover td,
    tbody .active td {
        color: var(--n-color-text);
    }

    tbody tr:hover .n-badge,
    tbody .active .n-badge {
        color: var(--n-color-text);
    }

.resizing tbody tr {
    background: var(--n-color-surface);
    cursor: col-resize;
}

.n-ellipsis {
    max-width: 0;
    width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.n-right {
    text-align: right;
}

.n-caption {
    color: var(--n-color-caption);
}

td {
    padding: var(--n-space-m);
}

@media (max-width: 1000px) {
    td {
        padding: var(--n-space-m) var(--n-space-s);
    }
}

th:first-child,
td:first-child {
    padding-left: var(--n-space-l);
}

.n-table-action {
    display: flex;
    position: relative;
    margin-left: auto;
    margin-top: -10px;
    margin-bottom: -10px;
    border-radius: var(--n-border-radius-s);
    border: 1px solid transparent;
    transition: all 0.1s ease;
    width: 40px;
    height: 30px;
}

tr:hover .n-table-action,
tbody .active .n-table-action {
    border-color: var(--n-color-border-strong);
    color: var(--n-color-text);
    background: var(--n-color-button-background);
    box-shadow: var(--n-box-shadow);
}

tr .n-table-action:hover,
.n-table-action.n-active {
    border-color: var(--n-color-caption) !important;
    color: var(--n-color-text);
    background: var(--n-color-button-background) !important;
    box-shadow: var(--n-box-shadow);
}

    .n-table-action:hover svg,
    .n-table-action.n-active svg {
        fill: var(--n-color-text);
    }

.n-table-action:active {
    transition: none;
    transform: translateY(1px);
    opacity: 0.8;
}

.n-table-action svg {
    fill: var(--n-color-caption);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

/* ------------------------------------
  BADGES
------------------------------------- */

.n-badge {
    border-radius: var(--n-border-radius-pill);
    background: var(--n-color-surface);
    border: 1px solid var(--n-color-border);
    font-size: var(--n-font-size-s);
    padding: calc(var(--n-space-s) / 2) var(--n-space-s) calc(var(--n-space-s) / 2) calc(var(--n-space-s) * 2.5);
    color: var(--n-color-caption);
    position: relative;
}

    .n-badge:hover {
        background: var(--n-color-nav);
        color: var(--n-color-text);
        cursor: pointer;
    }

    .n-badge::after {
        content: "";
        width: 8px;
        height: 8px;
        background: var(--n-color-success);
        border-radius: var(--n-border-radius-circle);
        display: inline-block;
        position: absolute;
        transform: translateY(-50%);
        top: 50%;
        left: var(--n-space-s);
        z-index: 2;
    }

.n-badge-warning::after {
    background: var(--n-color-warning);
}

.n-badge-alert::after {
    background: var(--n-color-alert);
}

/* ------------------------------------
  PAGINATION
------------------------------------- */

.n-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .n-pagination p {
        margin-right: var(--n-space-l);
    }

@media (max-width: 1000px) {
    .n-pagination p {
        display: none;
    }
}

.n-pagination .n-caret {
    fill: var(--n-color-caption);
    min-width: calc(var(--n-space-s) * 1.35);
    margin-right: 0;
    opacity: 1;
    height: auto;
}

.n-pagination .n-button:hover .n-caret {
    fill: var(--n-color-text);
}

.n-pagination .n-button {
    width: 38px;
    align-items: center;
    justify-content: center;
    margin-left: 1px;
}

.n-pagination .n-number {
    background: none;
    box-shadow: none;
    border: none;
}

.n-pagination .n-button-active {
    background: var(--n-color-primary) !important;
    color: var(--n-color-negative);
    font-weight: var(--n-font-weight-active);
    cursor: default;
}

.n-pagination .page-next {
    margin-left: calc(var(--n-space-s) / 2);
}

    .n-pagination .page-next .n-caret {
        transform: rotate(0deg);
    }

.n-pagination .page-prev {
    margin-right: calc(var(--n-space-s) / 2);
}

/* ------------------------------------
  SUB NAVIGATION
------------------------------------- */

.n-sub-nav {
    display: none;
    margin-left: calc(var(--n-space-m) + calc(var(--n-space-s) * 1.3));
    margin-bottom: 0;
    min-width: 0;
}

.n-expanded .n-sub-nav {
    display: block;
}

.n-sub-nav li,
.n-sub-nav a {
    min-width: 0;
}

/* ------------------------------------
  MODAL SEARCH
------------------------------------- */

.n-modal-container {
    position: fixed;
    width: 640px;
    min-height: var(--n-space-xl);
    background: var(--n-color-surface);
    z-index: 99999;
    transform: translateX(-50%) translateY(-10px) scale(0.97);
    box-shadow: var(--n-box-shadow-modal);
    border-radius: 5px;
    top: 80px;
    left: 50%;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

    .n-modal-container::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.005);
        z-index: -1;
    }

.modal .n-modal-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1.0001);
}

.n-modal {
    content: "";
    position: fixed;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
}

.modal .n-modal-search {
    opacity: 1;
    visibility: visible;
}

.n-search {
    width: 100%;
    outline: 0;
    font-size: var(--n-font-size-l);
    font-weight: var(--n-font-weight);
    padding: var(--n-space-m) var(--n-space-m) var(--n-space-m) calc(var(--n-space-m) * 2.5);
    background: transparent;
    color: var(--n-color-text);
    font-family: var(--n-font-family);
    border-bottom: 1px solid var(--n-color-border);
    border-radius: 0;
    position: relative;
    z-index: 1;
}

::-webkit-input-placeholder {
    color: var(--n-color-caption);
    opacity: 1 !important;
}

::-moz-placeholder {
    color: var(--n-color-caption);
    opacity: 1 !important;
}

:-ms-input-placeholder {
    color: var(--n-color-caption);
    opacity: 1 !important;
}

.n-search-icon {
    position: absolute;
    top: calc(var(--n-space-m) * 1.1);
    left: var(--n-space-m);
    width: var(--n-space-m);
    height: auto;
    z-index: 2;
    stroke: var(--n-color-caption);
}

.n-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(var(--n-space-xl) * 1.1);
    padding: var(--n-space-s) var(--n-space-m);
    border-bottom: 1px solid var(--n-color-border);
    position: relative;
}

    .n-search-heading::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--n-color-nav);
        z-index: -1;
        opacity: 0.6;
    }

    .n-search-heading .n-button {
        font-size: var(--n-font-size-s);
        border-radius: var(--n-border-radius-s);
        min-height: var(--n-space-l);
        padding: calc(var(--n-space-s) / 1.5) var(--n-space-s);
    }

    .n-search-heading h3 {
        font-size: var(--n-font-size-s);
        font-weight: var(--n-font-weight-active);
        color: var(--n-color-caption);
    }

.n-enter {
    margin-left: auto;
    display: none;
}

.n-row {
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--n-color-border);
    padding: var(--n-space-s) var(--n-space-s) var(--n-space-s) var(--n-space-m);
}

    .n-row:hover {
        cursor: pointer;
        background: var(--n-color-nav);
    }

        .n-row:hover .n-enter {
            display: block;
        }

    .n-row svg {
        width: 12px;
        height: auto;
        margin-right: var(--n-space-s);
        stroke: var(--n-color-caption);
    }

.n-search-footer {
    display: flex;
    align-items: center;
    padding: var(--n-space-s) var(--n-space-m);
    color: var(--n-color-caption);
    font-size: var(--n-font-size-xs);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

    .n-search-footer svg {
        width: auto;
        height: 10px;
        margin-right: var(--n-space-s);
        stroke: var(--n-color-caption);
    }

    .n-search-footer span {
        color: var(--n-color-border-strong);
        margin: 0 var(--n-space-s);
    }

/* ------------------------------------
  EXPAND TOGGLE
------------------------------------- */

.n-expand {
    margin-left: auto;
    width: calc(var(--n-space-l) * 1.2);
    height: calc(var(--n-space-l) * 1.2);
    position: absolute;
    top: 50%;
    right: calc(var(--n-space-s) / 2);
    border-radius: var(--n-border-radius-s);
    transform: translateY(-50%);
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.n-caret {
    pointer-events: none;
    transform: rotate(-90deg);
    fill: var(--n-color-caption);
    width: var(--n-space-m);
    height: auto;
}

.n-expanded .n-caret {
    transform: rotate(0deg);
}

/* ------------------------------------
  COLLAPSED NAVIGATION
------------------------------------- */

.collapsed-permanent nav {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    min-height: 0;
    top: calc(var(--n-space-m) * 4);
    bottom: calc(var(--n-space-m) * 1.5);
    border: 0;
    box-shadow: var(--n-box-shadow-nav);
}

.collapsed-active nav {
    transform: translateX(0);
}

/* ------------------------------------
  TOOLTIPS
------------------------------------- */

.tippy-box[data-theme~="nord"] {
    background-color: rgba(20, 20, 20, 0.95);
    color: var(--n-color-negative);
    font-family: var(--n-font-family);
    font-size: var(--n-font-size-xs);
}

.n-tooltip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.n-key,
.tippy-box[data-theme~="nord"] svg {
    border-radius: var(--n-border-radius-s);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1px;
    width: 16px;
    line-height: var(--n-line-height-tight);
    display: inline-block;
    text-align: center;
    font-size: var(--n-font-size-xs);
    background: rgba(255, 255, 255, 0.1);
    margin-left: 2px;
}

.tippy-box[data-theme~="nord"] svg {
    min-width: 16px;
    width: 16px;
    padding: 2px;
    height: auto;
    margin-left: var(--n-space-s);
    stroke: var(--n-color-negative);
}

/* ------------------------------------
  SELECT
------------------------------------- */

.n-select {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    font-size: var(--n-font-size-m);
    font-family: var(--n-font-family);
    color: var(--n-color-text);
    width: 100%;
    opacity: 0.0001;
    cursor: pointer;
    background: transparent;
    block-size:var(--n-space-xl)
    border: 0;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

/* ------------------------------------
  BREADCRUMBS
------------------------------------- */

header h1 a {
    color: var(--n-color-caption);
    font-weight: var(--n-font-weight);
    font-size: var(--n-font-size-m);
    margin-right: calc(var(--n-space-s) / 2);
    text-decoration: none;
}

header h1 .n-caret {
    fill: var(--n-color-caption);
    opacity: 1;
    transition: none;
    margin-right: var(--n-space-s);
}

/* ------------------------------------
  LOADING STATE
------------------------------------- */

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

table {
    transition: opacity 0.26s ease;
}

.loading table {
    transition: none;
    pointer-events: none;
    opacity: 0.001;
}

.loading .n-card h2 {
    transition: none;
    color: transparent;
    opacity: 0.6;
    background: var(--n-color-border);
    border-radius: var(--n-border-radius-s);
    border-color: transparent;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.loading .n-card h2 {
    margin-bottom: -5px;
}

.n-skeleton {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.n-skeleton div {
    background: var(--n-color-border);
    border-radius: var(--n-border-radius-s);
    opacity: 0.3;
    border-color: transparent;
    position: relative;
    height: var(--n-space-l);
    margin: var(--n-space-m) 0 0;
    overflow: hidden;
}

@media (max-width: 1000px) {
    .n-skeleton div {
        margin-left: var(--n-space-m);
    }
}

.loading .n-skeleton {
    display: block;
}

.n-skeleton div:first-of-type {
    margin-top: var(--n-space-l);
}

.loading .n-card h2::after,
.n-skeleton div::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: var(--n-color-skeleton);
    animation: shimmer 1.5s infinite;
    content: "";
}

.n-skeleton-force {
    position: absolute;
    border-color:red;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: var(--n-color-skeleton);
    animation: shimmer 1.5s infinite;
    content: "test";
}


/* ------------------------------------
  TABS
------------------------------------- */

.n-tabs {
    margin-left: calc(var(--n-space-l) * -1);
    border-bottom: 1px solid var(--n-color-border);
    width: calc(100% + calc(var(--n-space-l) * 2));
    padding: var(--n-space-s) calc(var(--n-space-l) * 2);
    background: var(--n-color-surface);
    user-select: none;
    display: none;
    white-space: nowrap;
}

    .n-tabs.show {
        display: block;
    }

    .n-tabs a {
        text-decoration: none;
        color: var(--n-color-text);
        font-size: var(--n-font-size-m);
        font-size: var(--n-font-size-m);
        color: var(--n-color-text);
        border: 0;
        min-height: 32px;
        padding: calc(var(--n-space-s) / 2) var(--n-space-s) calc(var(--n-space-s) / 1.6);
        margin-right: -3px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--n-border-radius-s);
        position: relative;
    }

    .n-tabs span {
        position: absolute;
    }

    .n-tabs a::after {
        content: attr(data-label);
        font-weight: var(--n-font-weight-active);
        opacity: 0;
    }

    .n-tabs a:not(.n-active):hover {
        background: var(--n-color-nav);
    }

    .n-tabs a:not(.n-active):active {
        transform: translateY(1px);
        opacity: 0.8;
    }

    .n-tabs .n-active {
        font-weight: var(--n-font-weight-active);
        background: var(--n-color-primary);
        color: var(--n-color-negative);
        box-shadow: var(--n-box-shadow);
        cursor: default;
    }

/* ------------------------------------
  USER MENU POP-OUT
------------------------------------- */

.n-popout {
    position: absolute;
    bottom: calc(100% - var(--n-space-s));
    width: var(--left-width);
    padding: var(--n-space-s) 0;
    border-radius: var(--n-border-radius-s);
    color: var(--n-color-text);
    left: 0;
    background: var(--n-color-surface) !important;
    box-shadow: var(--n-box-shadow-popout);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.97);
    z-index: 99;
}

.collapsed-active .n-popout {
    width: calc(250px - calc(var(--n-space-m) * 2));
    position: absolute;
}

.n-popout.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1.0001);
}

.n-popout a {
    color: var(--n-color-text);
    margin: 0 var(--n-space-s);
    border-radius: var(--n-border-radius-s);
    min-width: 0;
    width: auto;
    display: flex;
    align-content: center;
    align-items: center;
    padding: var(--n-space-s) var(--n-space-s);
    text-decoration: none;
}

    .n-popout a:hover {
        background: var(--n-color-primary);
        color: var(--n-color-negative);
    }

    .n-popout a:active {
        opacity: 0.7;
    }

.n-popout .n-icon {
    stroke: var(--n-color-text-light);
    margin: 0 calc(var(--n-space-s) / 2) 0 auto;
    opacity: 1;
    width: 11px;
}

.n-popout a:hover .n-icon {
    stroke: var(--n-color-negative);
}

.n-divider {
    background: var(--n-color-border);
    margin: var(--n-space-s) 0;
    height: 1px;
    width: 100%;
}

/* ------------------------------------
  FILTERS
------------------------------------- */

.modal2 .n-modal-filter .n-modal-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1.0001);
}

.modal2 .n-modal-filter {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------------
  ACTIONS POP-OUT
------------------------------------- */

.n-actions,
.collapsed-active .n-actions {
    position: absolute;
    z-index: 99;
    top: calc(100% + var(--n-space-s));
    transform: translateY(-10px) scale(0.97);
    right: 0;
    left: auto;
    bottom: auto;
    width: 200px;
}

    .n-actions.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1.0001);
    }

.n-table-actions-container {
    position: relative;
    width: 100%;
}

.n-popout-top {
    bottom: calc(100% + var(--n-space-s));
    transform: translateY(10px) scale(0.97);
    top: auto;
}

/* ------------------------------------
  GRID
------------------------------------- */

.n-grid {
    display: flex;
    height: 100%;
    width: 100%;
}

.n-grid-cell:first-of-type {
    width: 100%;
}

.n-grid-cell:last-of-type {
    width: 0;
    display: none;
}

@media (min-width: 1231px) {
    .panel .n-grid-cell:first-of-type {
        width: calc(100% - 320px);
    }

    .panel .n-grid-cell:last-of-type {
        display: block;
        width: 320px;
    }
}

@media (max-width: 1230px) {
    .panel .n-grid-cell:first-of-type {
        width: 100%;
    }

    .n-grid-cell:last-of-type {
        width: 0;
        display: none;
    }
}

/* ------------------------------------
  PANEL SIDEBAR
------------------------------------- */

.n-panel {
    position: fixed;
    z-index: 40;
    background: var(--n-color-surface);
    border-left: 1px solid var(--n-color-border);
    box-shadow: var(--n-box-shadow-header);
    padding: 0 var(--n-space-l) var(--n-space-l);
    overflow: hidden;
    overflow-y: auto;
    width: 320px;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
}

    .n-panel .n-button + .n-button {
        margin-left: var(--n-space-s);
    }

@media (max-width: 1230px) {
    .n-panel {
        display: none;
    }
}

.n-panel h2 {
    font-weight: var(--n-font-weight-heading);
    line-height: var(--n-line-height-heading);
    font-size: var(--n-font-size-xl);
    padding-bottom: calc(var(--n-space-s) + 3px);
}

.n-panel .n-divider {
    margin-bottom: var(--n-space-xl);
}

    .n-panel .n-divider:last-of-type {
        margin-top: var(--n-space-xl);
    }

.n-panel-header {
    display: flex;
    margin: 0 0 var(--n-space-l) calc(var(--n-space-l) * -1);
    padding: var(--n-space-l) var(--n-space-l) calc(var(--n-space-s) + 3px);
    align-items: center;
    justify-content: center;
    min-height: var(--n-space-xxl);
    width: calc(100% + calc(var(--n-space-l) * 2));
    border-bottom: 1px solid var(--n-color-border);
    background: var(--n-color-surface);
}

    .n-panel-header button {
        display: flex;
        align-items: center;
        background: none;
        border: 0;
        box-shadow: none;
        justify-content: center;
        margin-top: calc(calc(var(--n-space-s) * 1.4) * -1);
        width: 36px;
    }

        .n-panel-header button:first-of-type {
            margin-left: auto;
        }

        /*.n-panel-header button:last-of-type {
            margin-left: 0;
            margin-right: calc(var(--n-space-s) * -1);
        }*/

        .n-panel-header button svg {
            stroke: var(--n-color-caption);
            margin: -1px 0 0 -1px;
            min-width: 11px;
        }

        .n-panel-header button:hover svg {
            stroke: var(--n-color-text);
        }

label {
    color: var(--n-color-caption);
    font-weight: var(--n-font-weight-active);
    font-size: var(--n-font-size-s);
    margin: 0;
    white-space: nowrap;
    display: inline-block;
    width: 35%;
}

.n-panel p {
    display: inline-block;
    margin: 0;
    width: 55%;
}

.n-panel .n-badge {
    display: inline-block;
    margin: -10px 0;
}

.n-panel-row {
    margin: var(--n-space-l) 0;
}

.n-panel .n-desc {
    width: 100%;
    display: block;
    margin-bottom: var(--n-space-l);
}

.n-panel .n-button-primary {
    margin-bottom: var(--n-space-xl);
    background: var(--n-color-primary);
    color: var(--n-color-negative);
    border-color: var(--n-color-primary);
    font-weight: var(--n-font-weight-active);
}

    .n-panel .n-button-primary:hover {
        background: var(--n-color-primary-dark) !important;
        border-color: var(--n-color-primary-dark);
    }

.status-update {
    display: inline-block;
    width: 55%;
}

.n-panel .n-id {
    background: var(--n-color-nav);
    border-radius: var(--n-border-radius);
    border: 1px solid var(--n-color-border);
    color: var(--n-color-text);
    font-size: var(--n-font-size-s);
    line-height: var(--n-line-height-heading);
    padding: calc(var(--n-space-s) / 1.5) var(--n-space-s) calc(var(--n-space-s) / 2);
    display: inline-block;
    width: auto;
}
