:root {
    --vh: 100vh; /* Fallback for browsers that do not support env() */
    --vh: calc(var(--vh-safe-area-inset-bottom, 0px) + 100vh - env(safe-area-inset-bottom));

    /* background: var(--bg-window); */

    /* --bg-window: #F3F4F6; */
    --bg-toolbar: #ccc;
    /* --bg-core: white; */
    --bg-core: #F3F4F6;
    --bg-active: #dde1e5;
    --bg-hover: #cdcfd2;

    --text-primary: #333;
    --text-secondary: #666;
    --text-error: #ff0000;
    --text-success: #008000;

    --text-menubar-primary: #F7F7F7;
    --text-menubar-secondary: #BBC9DA;

    --text-secondary-breadcrumb: #666;

    --text-patient-id: #800080;

    --text-message-core: #343434;
    --text-message-core-self: #ffffff;
    --text-message-author: rgb(150, 149, 149);
    --text-message-author-self: #003a90;
    --text-message-date: #9e9d9d;
    --text-message-date-self: #b9d5ff;

    --text-code: #333;
    --bg-code: rgba(0,0,0,0.12);
    --font-code: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier,
        monospace;
    
    --border-wss-grid-minor: #ccc;
    --border-wss-grid-medium: #999;
    --border-wss-grid-major: #777;

    --border-table: #c4c4c4;
    --bg-table-data: #fffee9;
    /* --bg-table-header: #81b56f; */
    --bg-table-header: #82b0ff;

    --bg-menuselect: #0d5a8c;
    --bg-cursor: #f8ba68;
    --bg-cursor-readonly: #a6a6a6;
    --bg-dirty: #b0f868;
    /* --bg-menubar: #00662b; */
    --bg-menubar: #191919;
    --bg-breadcrumb-bar: #ccc;
    --bg-row-hover: #ffff00;
    /* --bg-message: #f1e6c1; */
    --bg-message: #E9E8EB;
    --bg-message-self: #4088F6;

    --bg-chat-panel: #CFDBB8;
    --bg-wss-panel: #E7EAD3;

    --bg-row-odd: #fffdec;
    --bg-row-even: #deeafe;

    --bg-nav-quick: #E5E5E5;
    /* --bg-nav-quick: #e27bfe; */
    --bg-side-context_menu: #ffffff;
    /* --bg-side-context_menu: #e69200; */
    /* --bg-side-button-active: #5f7d96; */
    --bg-side-button-active: #2C5C97;

    --bg-clear: rgba(0, 0, 0, 0.0);
    --bg-obscure: rgba(0, 0, 0, 0.5);

    --indent-context: 10px;
    --width-context-menu: 190px;
    --width-button-bar: 50px;

    --padding-panel: 10px;

    /* Plots have a 40px area for labels, so to align the plots
    * with the WSS grid the plot heading width needs to be 40px narrower
    * than the WSS heading width (+9px to match padding and border)
    */
    --width-wss-heading: 250px;
    --width-plot-heading: 219px;

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

.context__app-icon-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.context__app-button{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #000;
}
.app-button__icon{
    width: 40px;
    height: 40px;
}
.app-button__text{
    display: block;
    text-align: center;
    color: #303030;
    font-size: 12px;
    font-weight: 500;
}

html, body {
    height: var(--vh);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}
h1 {
    font-size: 20px;
    margin: 0;
    padding: 0px;
    color: var(--text-primary);
}
h2 {
    font-size: 17px;
    margin:15px 0 0 0;
    padding: 0px;
    color: var(--text-primary);
}
input {
    font-size: 12pt;
}
code {
    color: var(--text-code);
    background-color: var(--bg-code);
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 2px 5px;
    font-family: var(--font-code);
    font-size: 75%;
    border: none;
    border-radius: 0;
}
.menubar {
    background-image: none;
    background-color: var(--bg-menubar);
}
.layout-row{
    display: flex;
    flex-flow: row;
    flex: 1 1;
    justify-content: space-between;
}
.layout-column{
    display: flex;
    flex-flow: column;
    flex: 1 1;
    justify-content: space-between;
}
.layout-column-start-nogrow{
    display: flex;
    flex-flow: column;
    flex: 0 1;
    justify-content: start;
}
.box {
    display: flex;
    /* flex: 1 1 auto; */
    flex-flow: column;
    height: 100%;
    min-height: 0;
}
.core{
    align-items: stretch;
    /* background-color:  orange; */
}

/* The "Main" large panel, includes breadcrumb bar */
.content-panel {
    justify-content: flex-start;
    align-items: stretch;
    height: 100%;
    /* TODO: Width: subtract side panel? */
    /* TODO: The reason that 80% works here is a mystery. 70 works too, but at 100 we overflow. Why?
       there must be a better way to solve this */
    width: 80%;
    min-height: 0;
    
    background-color: var(--bg-core);
}
/* The "Content" area, below breadcrumb bar */
.content {
    justify-content: flex-start;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    
    background-color: var(--bg-core);
}
.content.login {
    justify-content: center;
    align-items: center;
    overflow-y: scroll;
}
.content.patients {
    padding: 10px;
}
.content.admin {
    padding: 10px;
    justify-content: start;
    align-items: center;
    overflow-y: scroll;
    overflow-x: scroll;
}
.content.admin-user {
    padding: 10px;
    justify-content: start;
    align-items: center;
    overflow-y: scroll;
    overflow-x: scroll;
    gap: 10px;
}
.content.beta-test-info {
    padding: 10px;
    justify-content: center;
    align-items: center;
}
.content.apps {
    padding: 10px;
    justify-content: start;
    align-items: center;
    overflow: auto;
    gap: 20px;
}
.content__centered-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content__app-icon-container{
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}
.content__app-button{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #000;
    min-width: 64px;
}

.login-button-field {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
.patient-panel-container{
    /* Flexbox overflow fix */
    min-height: 0;
}
.patient-panel-left{
    display: flex;
    flex: 0 1;
    min-width: 400px;
    /* background-color: aqua; */
    /* Flexbox overflow fix */
    min-height: 0;
    padding: var(--padding-panel);
    /* padding-left: 5px; */
    /* padding-bottom: 5px; */
    background-color: var(--bg-core);
    border-right: 1px solid #ccc;
}
.patient-panel-left.hidden{
    display: none;
}
.patient-panel-right{
    flex: 1 1;
    justify-content: flex-start;
    /* Flexbox overflow fix */
    min-height: 0;
    overflow-y: scroll;
    padding: var(--padding-panel);
    /* background-color: greenyellow; */
    /* background-color: var(--bg-wss-panel); */
    background-color: var(--bg-core);
}
.panel-heading{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #777;
    margin: -5px 0 5px 0;
}
.panel-chat-mobile{
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    height: 500px;
    padding-top: 8px;
    margin-bottom: 15px;
}

.link-as-button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin-left: 8px;
    font-size: 15px;
    color: var(--text-primary);
    border: 0;
    background: var(--bg-active);
    border-radius: 5px;
    padding: 4px 10px;
    cursor: pointer;
    /* white-space: nowrap; */

    /* No text selection inside the button/link */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}
.link-as-button:hover {
    background: var(--bg-hover);
}
.nostretch{
    display: flex;

    justify-content: center;
    align-content: center;
    flex-direction: column;
}
.error-text{
    color: var(--text-error);
}
/* ----------------------------
 * Navigation
 * ---------------------------- */
 .main {
    display: flex;
    /* flex: 1 1 auto; */

    height: 100%;
    min-height: 0;
 }
 .nav-side {
    display: flex;
    flex: 1 1 auto;
    min-width: calc(var(--width-button-bar) + var(--width-context-menu));
    max-width: calc(var(--width-button-bar) + var(--width-context-menu));
    height: 100%;
    background-color: var(--bg-nav-quick);
    z-index: 20;
 }
 .nav-side-button-bar {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;

    min-width: var(--width-button-bar);
    max-width: var(--width-button-bar);
    height: 100%;
    background-color: var(--bg-nav-quick);
 }
 .nav-side-context-menu {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    gap: 10px;

    min-width: var(--width-context-menu);
    max-width: var(--width-context-menu);

    background-color: var(--bg-side-context_menu);
    border-right: 1px solid #ccc;
 }
 .nav-side-context-content {
    display: flex;
    margin: 10px; 
    align-items: stretch;
    gap: 10px;
 }
.nav-side-context-menu .button {
    margin: 0 0 0 var(--indent-context);
    border: 1px solid #a0a0a0;
    border-radius: 5px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #313131;
}
.nav-side-context-menu h1 {
    font-size: 14px;
    margin: 0;
    border-bottom: 1px solid #5b76a6;
    color: #3A4E6E;
}
.nav-round-button {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    border-radius: 50%;

    color: #404040;
    background-color: #CECECE;
    text-decoration: none;
}
.nav-round-button:hover{
    background-color: #B6B6B6;
}
.nav-round-button.active{
    color: #f2f2f2;
    background-color: var(--bg-side-button-active);
}
.nav-context-button{
    height: auto;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin: 0;
    margin-bottom: 5px;
    font-size: 1em;
    color: var(--text-primary);
    border: 1px solid #999;
    background: var(--bg-active);
    border-radius: 5px;
    padding: 4px 10px;
    cursor: pointer;
    /* white-space: nowrap; */

    /* No text selection inside the button/link */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

/* ----------------------------
 * Dimmer
 * ---------------------------- */
.dimmer{
    /* This div fills the whole screen and acts as a "dimmer" for
    * the base content of the page. The mp-card-detail element inherits
    * its visibility from this root, so we show/hide the card detail by
    * toggling the visibility of this element.
    */
    z-index: 10;
    position: absolute;
    pointer-events: none;

    width: 100%;
    left: 0px;
    
    height: 100%;
    top: 0px;

    background-color: var(--bg-clear);
    -webkit-transition: background-color 400ms linear;
    -ms-transition: background-color 400ms linear;
    transition: background-color 400ms linear;
}
.dimmer.obscure{
    pointer-events: auto;
    background-color: var(--bg-obscure);
}

/* ----------------------------
 * Login
 * ---------------------------- */
.login-item {
    display: flex;
    margin: 7px;
    /* text-align: center; */
    align-items: center;
}
.login-label {
    padding-right: 10px;
    width: 100px;
    text-align: right;
}
.login-error-text, 
.login-success-text,
.password-change-error-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 10px;
    width: 360px;
    color: var(--text-error);
}
.login-success-text {
    color: var(--text-success);
}
.password-change-error-text {
    min-height: 50px;
}
.login-info {
    display: inline-block;
    text-align: center;
    margin: 10px;
    width: 360px;
    color: var(--text-error);
}
.login-message-password-reset-required {
    display: inline-block;
    text-align: center;
    color: #ec9100;
}
.login-message-password-reset-required.hidden{
    display: none;
}
/* ----------------------------
 * Breadcrumb bar
 * ---------------------------- */
.breadcrumb-bar {
    background-color: var(--bg-breadcrumb-bar);
    border-bottom: 1px solid var(--border-wss-grid-minor);

    /* No text selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */

    font-size: 16px;
}
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    margin: 0.5rem;
}
.controls.breadcrumbs {
    justify-content: left;
    align-items: left;
    height: 10px;
    margin-left: 1rem;
    color: var(--text-secondary-breadcrumb);
    white-space: nowrap;
}
.controls.breadcrumbs a {
    text-decoration: none;
    color: var(--text-secondary-breadcrumb);
}

.patient-list-item .link-as-button {
    border: 1px solid #999;
    padding: 2px 10px;
    margin: 3px 0px;
}

.patient-id {
    font-weight: bold;
    color: var(--text-patient-id);
    cursor: default;
}

.core-child {
    /* As flex child */
    flex-grow: 1;
    flex-direction: column;

    /* As flex parent */
    display: flex;

    min-height: 0;

    /* background-color: (var) */
    margin: 10px;
    max-height: 100%;
}

/* ----------------------------
 * Menu Bar
 * ---------------------------- */
.menubar {
    justify-content: space-between;
}
.menugroup {
    display: flex;
    margin: 8px;
}
.menubar .text {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}
.menubar .title{
    font-size: 16px;
}
.menubar .version{
    display: flex;
    align-content: center;
    flex-direction: column;
    justify-content: center;
}
.menubar .nonStandardHostName{
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    
    color: #ffbf00;

    margin-left: 0;
}
.toggle-menu{
    display: none;
    align-items: center;
    justify-content: center;
    margin-right: 8px;

    width: 30px;
    height: 30px;
    border-radius: 50%;

    color: #f2f2f2;
    background-color: #324772;
}
.menubar .user-info {
    display: flex;
    align-items: center;
}

/* ----------------------------
 * Patient List
 * ---------------------------- */
.patient-list{
    flex: 1 1;
    justify-content: flex-start;
    overflow-y: scroll;
    overflow-x: scroll;
    height: 100%;
    min-height: 0;

    margin-top: 10px;
}
.patient-list-patient.mobile {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    align-items: center;
}
.patient-box {
    border: 1px solid #ccc;
}
.patient-list-row{
    flex: 1 1;
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: var(--bg-row-even);

    cursor:default;
}
.patient-list-row.odd{
    background-color: var(--bg-row-odd);
}
.mobile .patient-list-row{
    background-color: var(--bg-row-odd);
}
.patient-list-row.data.deleted{
    background-color: #f9dada;
}
.patient-list-patient:not(.mobile) .patient-list-row.data:hover{
    background-color: var(--bg-row-hover);
}

.patient-list-item{
    flex-shrink: 0;
    display: flex;

    text-align: center;
    
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
    padding: 0 6px 0 6px;
    margin: 2px 6px 2px 6px;
    width: 160px;
    overflow-wrap: break-word;
}
.patient-list-item.narrow{
    width: 60px;
}
.patient-list-item.narrow2{
    width: 70px;
}
.patient-list-item.narrow3{
    width: 80px;
}
.patient-list-item.wide{
    width: 190px;
}
.patient-list-item.wide2{
    width: 215px;
}

.mobile .patient-list-item{
    min-height: 27px;
    padding: 0;
    margin: 0;
    font-size: 15px;
}
.mobile .first .patient-list-item{
    /* height: 37px; */
    height: 42px;
}

/* Mobile heading */
.mobile .patient-list-item.heading{
    display: flex;
    align-items: center;
    justify-content: right;
    background-color: var(--bg-table-header);
    padding: 0 8px 0 0;
    margin: 0;
    font-weight: 700;
    width: 130px;
}
.patient-list-item.mobile{
    display: flex;
    align-items: left;
}

.patient-list-row.heading{
    display: flex;
    flex-direction: row;
    background-color: var(--bg-table-header);
}
.patient-list-item.heading{
    font-weight: 700;
}

.page-heading-row{
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
}
.page-heading-icon{
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    gap: 15px;
}
.page-heading-item{
    text-align: center;
    vertical-align:middle;
    /* padding: 0 6px 0 6px; */
    margin: 0;
    /* margin: 0px 10px 0px 0px; */
    /* width: 160px; */
    /* overflow-wrap: break-word; */
}
.page-heading-item.title{
    font-size: 20px;
    font-weight: 700;
}
.login-items-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-authenticator-prompt, 
.beta-tester-prompt {
    display: inline-block;
    text-align: center;
    margin: 10px;
}
#text-search{
    border: 1px solid #aaa;
    /* width: 500px; */
}
.mobile .patient-list-item.data{
    display: flex;
    align-items: center;
    justify-content: left;
    padding-left: 8px;
}
.mobile .patient-list-item.data:not(.first){
    box-shadow: inset 0 1px 0 #ccc;
}
.mobile .patient-list-item.heading:not(.first){
    /* box-shadow: inset 0 1px 0 #9090f0; */
    box-shadow: inset 0 1px 0 #779BB0;
}

/* ----------------------------
 * Patient Messages
 * ---------------------------- */
 .patient-messages{
    display: flex;
    flex-direction: column;

    flex: 1 1;

    align-items: stretch;
    padding: 10px;
    border: 1px solid #a5a5a5;

    background-color: #ffffff;
    /* width: 380px; */
    font-size: 15px;
    overflow-y: scroll;
    /* overflow-x: scroll; */
 }
 .patient-message{
    background-color: var(--bg-message);
    /* width: 350px; */
    margin-bottom: 4px;
    padding: 5px 10px;
    border-radius: 14px;
    margin-right: 20px;
 }
 .patient-message.self-authored{
    background-color: var(--bg-message-self);
    margin-right: 0px;
    margin-left: 20px;
}
.patient-messages > .patient-message:last-of-type{
    margin-bottom: 0px;
}
.patient-message .heading{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 5px;
}
.patient-message .name{
    color: var(--text-message-author);
    font-weight: 600;
}
.patient-message.self-authored .name{
    visibility: hidden;
    color: var(--text-message-author-self);
 }
 .patient-message .date{
    color: var(--text-message-date);
    font-size: 12px;
 }
 .patient-message.self-authored .date{
    color: var(--text-message-date-self);
    font-size: 12px;
 }
 .patient-message .text{
    white-space: pre-wrap;
    color: #343434;
 }
 .patient-message.self-authored .text{
    color: var(--text-message-core-self);
 }
.patient-message-compose-area{
    display: flex;
    flex-direction: column;
    border: 1px solid #a5a5a5;
    /* padding: 0 0 5px 0; */
    /* background-color: orange; */
    /* background-color: #8ca5af; */
    background-color: #a2b9db;
}
#patient-message-compose-text{
    flex: 1 0;
    min-height: 100px;
    width: auto;
    margin: 8px;
    padding: 5px;
    /* IMPORTANT: 16px is the min font size to avoid iOS "auto zooming" on the text field when 
    it gets focus. DO NOT reduce it. */
    font-size: 16px;
    /* background-color: #80F080; */
    background-color: white;
    overflow-y: scroll;
    outline: none;
    resize: none;
}
.patient-message-row{
    display: flex;
    justify-content: flex-end;
    padding: 5px;
    /* background-color:#ffff00; */
 }
 /* ----------------------------
  * Patient WSS
  * ---------------------------- */
.patient-wss {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    color: #555;

    /* overflow-y: scroll; */
    /* overflow-x: scroll; */

    /* No text selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    
    cursor: default;
}
.nv-wss-mobile-scroll-container{
    border: 1px solid #757575;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-x: scroll;
    overflow-y: none;
    width: 100% - 16px;
    height: 400px;
    min-height: 1150px;
    padding: 8px;
    margin-bottom: 15px;
}
.wss-row{
    display: flex;
    /* flex: 0 0; */
    flex-direction: row;
    background-color: #ddd;
    min-height: 21px;
}
.wss-row.tod-label{
    color: #888;
    min-height: 25px;
}
.wss-row.totals{
    background-color: #CBC7B4;
}
.wss-row.data{
    background-color: var(--bg-row-even);
}
.wss-row.data.odd{
    background-color: var(--bg-row-odd);
}
.patient-wss.discharged .wss-row.data{
    background-color: #e8e8e8;
}
.patient-wss.discharged .wss-row.data.odd{
    background-color: #f8f8f8;
}
.wss-row.data:hover{
    background-color: var(--bg-row-hover);
}
.wss-heading{
    width: var(--width-wss-heading);
    overflow-wrap: break-word;
    border-left: 1px solid var(--border-wss-grid-minor);
    border-top: 1px solid var(--border-wss-grid-minor);
    margin: 0;
    padding: 0px 4px;/
}
.wss-heading.void{
    background-color: var(--bg-core);
    border-left: 1px solid var(--bg-core);
    border-top: 1px solid var(--bg-core);
}
.wss-heading.void.last{
    border-top:  1px solid var(--border-wss-grid-minor);
}
.wss-cell{
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 26px;
    max-width: 26px;
    border-left: 1px solid var(--border-wss-grid-minor);
    border-top: 1px solid var(--border-wss-grid-minor);
    /* margin: -1px 0 0 -1px; */
    margin: 0;
    box-sizing: border-box;
}
.wss-cell.total{
    border-left: 1px solid var(--border-wss-grid-medium);
}
.wss-row .wss-cell:last-child{
    border-right: 1px solid var(--border-wss-grid-major);
}
.patient-wss .wss-row:last-child .wss-cell{
    border-bottom: 1px solid var(--border-wss-grid-major);
    border-top: 1px solid var(--border-wss-grid-major);
}
.patient-wss .wss-row:first-child .wss-cell,
.wss-cell.first-row{
    border-top: 1px solid var(--border-wss-grid-major);
}
.patient-wss .wss-row .wss-cell.day-start{
    border-left: 1px solid var(--border-wss-grid-major);
}
.wss-cell.day-start{
    border-left: 1px solid var(--border-wss-grid-major);
}
.wss-cell.dirty{
    background-color: var(--bg-dirty);
}
.wss-cell.cursor{
    background-color: var(--bg-cursor);
}
.patient-wss.discharged .wss-cell.cursor{
    background-color: var(--bg-cursor-readonly);
}
.wss-cell.full-day{
    /* This cell spans a full day */
    min-width: 78px;
    max-width: 78px;
    border-bottom: 1px solid var(--border-wss-grid-medium);
}
.wss-cell.date{
    font-size: 12px;
}

 /* ----------------------------
  * Patient Plots
  * ---------------------------- */
.plot-row{
    display: flex;
    flex-direction: row;
    /* background-color: var(--bg-wss-panel); */
}
.plot-heading{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: center;

    min-width: var(--width-plot-heading);
    font-size: 20px;
    font-weight: 700;
    color: #777;
    margin: -5px 0 5px 0;
}
 /* ----------------------------
  * Treatment History
  * ---------------------------- */
.treatment-history{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    padding: 0;
    margin-left: 37px;
    /* width: 1088px; */
    background-color: none;
    /* font-family: Monaco, monospace; */
    font-size: 14px;
    color: #aaa;
}
.treatment-history.mobile{
    width: auto;
    margin-left: 0;
}
.treatment-value{
    /* color: rgb(0, 119, 141); */
    color: var(--text-primary);
    font-weight: 700;
}
 /* ----------------------------
  * Plot row content
  * ---------------------------- */
.plot-row-content-generic{
    padding: 5px;
    margin-left: 37px;
    width: 1088px;
}
.telemetry-button{
    border: 1px solid #999;
    margin: 0;
    margin-bottom: 5px;
}

/* ----------------------------
 * Data Grid
 * ---------------------------- */
.nv-data-grid {
    border: 1px solid var(--border-table);
    color: black;
}
.nv-data-grid-row{
    flex: 1 1;
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: stretch;

    cursor:default;
}
.nv-data-grid-item{
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 0 0 0 8px;

    /* text-align: center; */
    vertical-align:middle;
    min-height: 27px;
    width: 223px;
    margin: 0;
    font-size: 15px;
    overflow-wrap: break-word;
    background-color: var(--bg-row-odd);

}
.nv-data-grid-item.heading{
    display: flex;
    align-items: center;
    justify-content: right;
    background-color: var(--bg-table-header);
    padding: 0 8px 0 0;
    margin: 0;
    font-weight: 700;
    width: 130px;
}
.nv-data-grid-item.data:not(.first){
    box-shadow: inset 0 1px 0 #ccc;
}
.nv-data-grid-item.heading:not(.first){
    box-shadow: inset 0 1px 0 #779BB0;
}

/* ----------------------------
 * Generic Table
 * ---------------------------- */
 table.generic-table{
    border-spacing: 0px;
    border-collapse: collapse;
    margin: 1rem;
}
.generic-table td, 
.generic-table th {
    border: 1px solid var(--border-table);
    padding: 2px 10px;
}
.generic-table th {
    background: var(--bg-table-header);
}
.generic-table td {
    background: var(--bg-table-data);
}
/* ----------------------------
 * WSS Tooltip
 * ---------------------------- */
 .wss-tooltip{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5px;
    background-color: #fffebf;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    z-index: 10;
    position: absolute;
    /* opacity: 90%; */
    /* left: 300px; */
    /* top: 300px; */
}
.wss-tooltip--hidden{
    display: none;
}
.wss-tooltip__display_label{
    font-weight: 700;
}
.wss-tooltip__row{
    margin-left: 10px;
}
/* ----------------------------
 * ISO-8601 Date
 * ---------------------------- */
 /* The display:inline makes it so that the span does not cause a
    line break during copy-paste */
.iso8601-t, .iso8601-offset{
    opacity: 0.3; 
    display: inline;
}
.patient-message .iso8601-t,
.patient-message .iso8601-offset{
    opacity: 0.5;
}

 /* ----------------------------
 * Media
 * ---------------------------- */

@media screen and (max-width: 768px) {
    .toggle-menu{
        display: flex;
    }
    .menubar .user-info{
        display: none;
    }
    .menubar .nonStandardHostName{
        display: none;
    }
    .nav-side{
        position: absolute;
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        /* Must force height because auto-height no longer works when this
         * menu is hidden.  The value below leaves a big gap but has enough
         * margin so scroll bars won't start appearing if the heading bar
         * ever changes height slightly.
         */
        height: 90dvh;
    }
    .slide-in {
        animation: sp-slide-in 0.5s forwards;
        -webkit-animation: sp-slide-in 0.5s forwards;
    }
    
    .slide-out-immediate {
        animation: sp-slide-out 0s forwards;
        -webkit-animation: sp-slide-out 0s forwards;
    }

    .slide-out {
        animation: sp-slide-out 0.5s forwards;
        -webkit-animation: sp-slide-out 0.5s forwards;
    }
    
    /* The dropzone js library is already using the animation
     * names `slide-in` and `slide-out`, so we prefix with `sp-`
     * to avoid the name collision.
     */
    @keyframes sp-slide-in {
        100% { transform: translateX(0%); }
    }
    
    @-webkit-keyframes sp-slide-in {
        100% { -webkit-transform: translateX(0%); }
    }
        
    @keyframes sp-slide-out {
        0% { transform: translateX(0%); }
        100% { transform: translateX(-100%); }
    }
    
    @-webkit-keyframes sp-slide-out {
        0% { -webkit-transform: translateX(0%); }
        100% { -webkit-transform: translateX(-100%); }
    }
}