html {
    height: 100%;
}

body {
    background-color: #f8f8f8;
    font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"
}

* {
    -webkit-font-smoothing: antialiased;
}

body, .modal-content {
    background-color: #002b36;
    color: #fff;
}

#nav {
    width: 80px;
    height: 100%;
    background: #002b36;
    color: hsla(196, 13%, 80%, 1);
    font-size: 10px;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
    border-right: 1px solid #0A4151;
}

#nav > * { transition: all 0.2s }

#nav .nav-item {
    height: 70px;
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    color: hsla(196, 13%, 80%, 1);
    text-decoration: none !important;
}
#nav .nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 8px;
    opacity: 0.5;
    transition: all 0.1s;
}

#nav .nav-item:hover { opacity: 1; }
#nav .nav-item:hover svg {
    transform: scale(1.25);
    opacity: 1;
}

#nav a {
    user-select: none;
    user-drag: none;
    -webkit-user-drag: none;
}

#nav .nav-item.active {
    background-color: hsla(192, 81%, 26%, 1);
    opacity: 1;
    color: hsla(196, 13%, 90%, 1);
    border-bottom: 1px solid hsla(192, 81%, 19%, 1);
    border-radius: 6px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#nav .nav-item.active svg {
    opacity: 1;
}

#nav-copyright {
    font-size: 8px;
    text-align: center;
    margin: 8px;
    opacity: 0.5;
    color: hsla(196, 13%, 80%, 1);
    text-decoration: none !important;
    margin-top: 1rem;
}

.nav-user {
    margin-top: auto;
}

.nav-user > a {
    text-align: center;
    margin-top: auto;
    display: block;
}

.nav-user > a img {
    width:  32px;
    height: 32px;
    border-radius: 100%;
    border:  1px solid hsla(196, 13%, 80%, 1);
    transition: all 0.2s
}

.nav-user:hover > a img {
    transform: scale(1.1);
}

.nav-user.logged-out img {
    border-color:  rgb(197, 207, 211);
}

#nav-logo {
    text-align: center;
    line-height: 1;
    margin-top: 1rem;
    font-size: 9px;
    width: 32px;
    margin-left: auto;
    margin-right: auto;
}

#ihp-plan {
    text-align: center;
    margin-bottom: 2rem;
}

#content {
    width: 100%;
    height: 100%;
    overflow: scroll;
}

/* Context Menu */
.menu-for-table, .menu-for-column, .menu-for-enum {
    display: none;
    z-index: 1000;
    position: absolute;
    overflow: hidden;
    border: 1px solid #CCC;
    white-space: nowrap;
    font-family: sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #000;
    border-radius: 5px;
    padding: 4px 0;
    backdrop-filter: blur(20px) saturate(2);
}

.menu-for-table a, .menu-for-column a, .menu-for-enum a, .link-button  {
    display: block;
    padding: 1px 20px 0px;
    cursor: pointer;
    list-style-type: none;
    user-select: none;
    text-decoration: none !important;
    color: black;
}

.link-button {
    border: none;
    text-align: left;
    width: 100%;
    background-color: transparent;
}


.menu-for-table a:hover, .menu-for-column a:hover, .menu-for-enum a:hover, .link-button:hover  {
    background-color: #4f94fc;
    color: #fefefe;
}

.custom-menu div {
    margin-top: 5px;
    margin-bottom: 5px;
    height: 0;
    width: 100%;
    border-style: none none solid none;
    border: 1px solid #e3e3e3;
}

.context-menu-open {
    display: block;
    position: fixed;
}

/* slightly transparent fallback */
.backdrop-blur {
    background-color: rgba(240, 240, 240, .98);
  }
  
  /* if backdrop support: very transparent and blurred */
  @supports ((-webkit-backdrop-filter: blur(2em)) or (backdrop-filter: blur(2em))) {
    .backdrop-blur {
      background-color: rgba(240, 240, 240, .5);
      -webkit-backdrop-filter: blur(2em);
      backdrop-filter: blur(2em);
    }
  }

.select2 .select2-selection {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.select2.select2-container .select2-selection--single {
    height: 38px !important;
    border: 1px solid #ced4da;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    color: #495057;
}

.data-rows-table {
    font-size: 14px;
    width: 100%;
}

.data-rows-table [data-fieldname$="id"] { font-size: 8px }
.data-rows-table [data-fieldname="created_at"] { font-size: 8px }
.data-rows-table [data-fieldname="password_hash"] { font-size: 8px }

#nav-upgrade {
    margin-top: auto;
}

.email-support a {
    color:  rgba(13, 99, 120, 0.8);
}

.popover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.popover-header {
    background-color: rgba(2, 19, 23, 0.04);
}

.btn-primary {
    background-color:  hsla(192, 81%, 26%, 1);
    border: 1px solid hsla(192, 81%, 19%, 0.1);
    font-weight: 500;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: hsla(192, 81%, 26%, 0.8);
    border: 1px solid hsla(192, 81%, 19%, 0.1);
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    background-color: hsla(192, 81%, 26%, 0.8);
    border: 1px solid hsla(192, 81%, 19%, 0.1);
}

.btn-primary:focus {
    background-color:  hsla(192, 81%, 36%, 1);
    border: 1px solid hsla(192, 81%, 19%, 0.1);
}

.text-body {
    color: #fff !important;
}

.table td, .table th {
    border-top: 1px solid #0A4151;
}

::selection {
    background-color: #2aa198;
    color: #fdf6e3;
}

.border, .border-left, .border-bottom, .border-right, .border-top {
    border-color: #0A4151 !important;
}

.text-muted {
    color: hsla(196, 13%, 80%, 1) !important;
}

.modal-header {
    border-bottom: 1px solid #0A4151
}

.modal-header .close {
    color: hsl(192deg 100% 30% / 50%);
    transition: all 0.2s;
}

.btn-primary:disabled {
    background-color:  hsl(192deg 81% 42% / 50%);
    border:  1px solid hsl(192deg 81% 42% / 100%);
}

.btn-primary:focus {
    box-shadow:  0 0 0 0.2rem hsl(192deg 81% 42% / 50%) !important;
}

a, a:hover {
    color: #E5EAEB;
    text-decoration: none;
}

.btn.btn-link {
    color: hsla(196, 13%, 80%, 1);
}

.btn.btn-link:hover {
    background-color: hsla(196, 13%, 80%, 0.1);
}

.btn-add {
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    display: flex;
    align-items: center;
}


.btn {
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.btn-secondary {
    background-color: #2AA198;
    border: 0;
}

.btn.btn-secondary:hover {
    background-color: hsl(175deg 59% 33%);
}

.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show>.btn-secondary.dropdown-toggle {
    background-color: hsl(175deg 59% 33%);   
}

.popover {
    text-align: left;
    background-color: #0B5163;
    border: 1px solid hsl(175deg 59% 40% / 33%) !important;
    border-radius: 4px;
    font-size: 12px;

    padding-left: 8px;
    padding-right: 8px;
    padding-top: 2px;
    padding-bottom: 2px;

    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.popover .popover-header {
    border-bottom: 0px;
}

.popover a {
    color: hsla(196, 13%, 80%, 1);
    text-decoration: underline;
}

.popover a.btn {
    text-decoration: none;
    background-color: #002B37;
    border: 1px solid hsla(192, 81%, 26%, 0.8);
}

.popover a.btn:hover {
    color: #fff;
    background-color: hsl(193deg 90% 6%);
}

.popover a.btn:focus {
    color: #fff;
    background-color: hsl(193deg 80% 6%);
}

.bs-popover-auto[x-placement^=right]>.arrow::after, .bs-popover-right>.arrow::after {
    border-right-color: #0B5163;
}