:root {
    --tcgreen: #C6E1B4;
    --tcorange: #FCE5D7;
    --tcred: #FD6675;
    --tcgrey: #BFBFBF;
}

[x-cloak] { display: none !important; }

body {
    font-family: Arial, Helvetica, sans-serif;
}

.outer_container {
    height: 95dvh;
    max-height: 95dvh;
    width: 95dvw;
    max-width: 95dvw;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    user-select: none;
}

.stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 16dvw;
    min-width: 16dvw;
}

.stack .boxes {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 16px; /* Adjust font size as needed */
    font-weight: bold;
    color: rgba(0, 0, 0, 0.4);
}

.stack .boxes > div {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    text-align: center; /* Center text inside the paragraph */
    width: 100%;
    /*
    outline: 0.5px solid #787878;
    border: none;
    */
    border: 0.5px solid #787878;
    box-sizing: border-box;
}

.stack .boxes > div.selected {
    background-color: rgba(255,255,255,0.2);
    color: rgba(0, 0, 0, 0.8);
    border: 2px solid purple;
}

.stack .boxes p {
    cursor: default;
    position: absolute;
}

.stack .table_container {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
}

.stack table {
    font-size:2px;
    border-spacing: 0px;
    border: 1px solid darkgray;
    border-collapse: collapse;
}

.stack td {
    border: 0.5px solid var(--tcgrey);
    width: 2dvw;
    min-width: 2dvw;
    padding: 0px;
    box-sizing: border-box;
    background-color: white;
}

@supports (-webkit-touch-callout: none) {
    /* CSS specific to iOS devices */ 
    .stack td {
        border: 1px solid var(--tcgrey);
        width: 2dvw;
        min-width: 2dvw;
        padding: 0px;
        box-sizing: border-box;
        background-color: white;
    }
}

.stack td:empty::after, .panel td:empty::after{
    content: "\00a0";
}

.cellcolors td[data-v='0'] {
    background-color: white;
}

.cellcolors td[data-v='1'] {
    background-color: var(--tcgreen);
}

.cellcolors td[data-v='2'] {
    background-color: var(--tcorange);
}

.cellcolors td[data-v='3'] {
    background-color: var(--tcred);
}

.cellcolors td[data-v='4'] {
    background-color: var(--tcgrey);
}

.cellcolors td[data-v='9'] {
    background-color: white;
}

.panel {
    width: 78dvw;
    display: flex;
    flex-direction: row;
    position: relative;
}

.panel > div {
    display: flex;
    flex-direction: row;
}

.panel .left {
    width: 18dvw;
    min-width: 18dvw;
    font-size: 12.5px;
    overflow-x: hidden;
}

.panel .right {
    width: calc(60dvw + 8px);
    min-width: 60dvw;
    overflow-x: scroll;
    overflow-y: visible;
    font-size: 12.5px;
}

.panel .left table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
}

.panel .right table {
    border-collapse: collapse;
}

.panel .left td {
    width: 100%;
    min-width: 100%;
    text-align: right;
    padding: 0px 0.7em 0px 0px;
    white-space: nowrap;
    overflow-x: hidden;
    height: 5.3dvh;
    min-height: 5.3dvh;
    max-height: 5.3dvh;
    border-spacing: 0px;
    border: 1px solid transparent;
}

.panel .left tr:nth-child(even) {background: #eee}
.panel .left tr:nth-child(odd) {background: #fff}

.panel .right td {
    width: 7.5dvw;
    min-width: 7.5dvw;
    padding: 0px;
    height: 5.3dvh;
    min-height: 5.3dvh;
    max-height: 5.3dvh;
    border-spacing: 0px;
    border: 1px solid darkgray;
    text-align: center;
}

.panel tr:first-child td {
    vertical-align: bottom;
    font-weight: bold;
    height: 10dvh;
    min-height: 10dvh;
    max-height: 10dvh;
}

.client_photo {
    position: fixed;
    top: 1dvh;
    left: 20dvw;
    width: 140px;
    z-index: 5;
}

.client_photo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.top_bar {
    display: flex;
    flex-direction: row;
    width: 78dvw;
    margin-bottom: 2em;
}

.top_bar a {
    background: #ddd;
    text-align: left;
    font-size: 24px;
    margin-right: 12px;
    padding: 2px 4px;
    border: 1px solid lightgray;
    border-radius: 50px;
    -webkit-border-radius:50px;
    transition: background 0.5s;
}

.top_bar a:focus {
    background: darkgray;
    border: 1px solid #777;
}

.dayview {
    position: absolute;
    top: 0;
    left: 18dvw;
    z-index: 3;
    background-color: white;
}

.common_panel table {
    border-collapse: collapse;
}

.common_panel td {
    padding-left: 2em;
    padding-right: 2em;
    height: 5.3dvh;
    min-height: 5.3dvh;
    max-height: 5.3dvh;
    border-spacing: 0px;
    border: 1px solid darkgray;
}

.common_panel tr:first-child td {
    vertical-align: bottom;
    font-weight: normal;
    height: 3dvh;
    min-height: 3dvh;
    max-height: 3dvh;
    color: purple;
}

.meds_panel {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background-color: white;
    width: 80dvw;
    min-width: 80dvw;
    height: 75dvh;
    min-height: 75dvh;
    margin-left: 8dvw;
}

.meds_panel div {
    display: flex;
    flex-direction: column;
    margin-left: 0dvw;
    height: 60dvh;
    width: 65dvw;
    min-width: 65dvw;
    font-size: 12.5px;
}

.meds_panel td {
    padding-left: 2px;
    padding-right: 2px;
    text-align: center;
}

.meds_panel tr:first-child td:first-child {
    font-weight: bold;
}

.ecg_panel {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background-color: white;
    width: 80dvw;
    min-width: 80dvw;
    height: 75dvh;
    min-height: 75dvh;
}

.ecg_panel div {
    overflow-y: scroll;
    height: 60dvh;
    margin-left: 16dvw;
    font-size: 12.5px;
}

.ecg_panel tr:nth-child(even) td:first-child {background: #eee}
.ecg_panel tr:nth-child(odd) td:first-child {background: #fff}

.ecg_panel tr:first-child td:nth-child(4) {
    font-weight: bold;
}

.le_panel div {
    overflow-y: scroll;
    height: 60dvh;
    margin-left: 16dvw;
    font-size: 12.5px;
}

.le_panel tr:first-child td:nth-child(2) {
    font-weight: bold;
}

.le_panel tr:nth-child(even) td:first-child {background: #eee}
.le_panel tr:nth-child(odd) td:first-child {background: #fff}

