@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
:root{
    --backgroundGrey: rgb(245, 243, 243);
    --borderGrey: rgb(223, 212, 212);
    --foregroundLight: rgb(251, 251, 252);
    --foregroundDark: rgb(226, 222, 222);
    --primary: rgb(59, 172, 221);
    --secondary: rgb(49, 117, 180);
    --shadow: rgb(201, 196, 196);
    --normal: rgb(14, 15, 37);
    --contrast: white;
    --medium: rgb(158, 155, 155);
    --danger: rgb(172, 4, 4);
    --horizontalPadding: 2.5%;
    --verticalPadding: 0;
    --deviceDisplay: none;
    --wideToSquare: 12rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Montserrat, Open Sans, Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 500;
    line-height: 1.3rem;
}
/* html {
    padding: 1rem var(--horizontalPadding);
    background-color: var(--backgroundGrey);
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
}
body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    position: relative;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
} */

html {
    padding: 1rem var(--horizontalPadding);
    background-color: var(--backgroundGrey);
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    overscroll-behavior: none;
    touch-action: none;
}
body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    overscroll-behavior: none;
    touch-action: none;
    padding: 1rem var(--horizontalPadding)
}

.app-wrapper {
    height: 100%;
    width: 100%;
    padding: 0 2%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y
}

main {
    position: relative;
    padding: 0;
    max-width: 700px;
    width: 100%;
    margin: 1rem auto 2rem;
}

.mobileSpacer {
    display: var(--deviceDisplay);
    background-color: transparent;
    height: 0;
    margin: 1rem 0;
}
.navTopLeft {
    width: 2.5rem;
    height: 2.5rem;
    position: fixed;
    z-index: 5;
}
.navTopRight {
    width: 2.5rem;
    height: 2.5rem;
    position: fixed;
    z-index: 5;
    margin-left: auto;
    padding: 0;
    margin-right: 0;
    right: var(--horizontalPadding);
}
footer {
    position: fixed;
    bottom: 5dvh;
    padding: 0;
    margin: 0;
}
footer p {
    margin-top: 5px;
    display: var(--mobileHide);
}
footer button, footer .saveButton {
    width: var(--wideToSquare);
    min-width: var(--wideToSquare);
    margin: 0
}
.footerBottomLeft {
    width: var(--wideToSquare);
    height: 3rem;
    position: fixed;
    z-index: 5;
    padding: 0;
}
.footerBottomRight {
    width: var(--wideToSquare);
    height: 3rem;
    position: fixed;
    z-index: 5;
    right: var(--horizontalPadding);
    padding: 0;
}
.footerBottomCenter {
    width: var(--wideToSquare);
    height: 3rem;
    position: fixed;
    left: 50%;
    z-index: 5;
    translate: -50% 0;
}
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 var(--horizontalPadding);
    position: relative;
    width: 100%;
    height: 2.5rem;
    min-height: 2.5rem
}
header h1 {
    white-space-collapse: break-spaces;
}


#larkeHeader {
    width: 100%;
    margin-left: 0;
    display: flex;
    min-height: 100px;
    background-color: var(--secondary);
    border-radius: 0.5rem;
    flex-direction: row;
    align-content: space-evenly;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem
}
.div40 {
    width: 34%;
    padding: 0
}
.div60 {
    width: 64%;
    padding: 0
}
.div50 {
    width: 49%;
    padding: 0
}
.div25 {
    max-width: 24%;
    padding: 0
}
.div30 {
    max-width: 33%;
    width: 33%;
    padding: 0;
    align-content: center;
    padding: 1rem 1rem 0;
    border: 1px solid var(--borderGrey);
    border-radius: 1rem;
    margin: 0.5rem
}
.div33 {
    max-width: 33%;
    width: 33%;
    padding: 0;
    align-content: first baseline;
    margin: 0 0.25rem 0 0
}
img {
    margin-bottom: 1rem;
    aspect-ratio: 1 / 1;
    width: auto;
    min-height: 120px;
    object-position: center;
    border: 1px outset var(--primary);
    object-fit: contain;
    cursor: pointer;
}
#larkeHeader h2 {
    text-align: left; 
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.8rem;
    white-space: nowrap;
    overflow: hidden;
    color: var(--contrast)
}
#larkeHeader h3 {
    font-size: 1.2rem;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    overflow: clip;
    color: var(--contrast);
    margin-bottom: 0.25rem
}
#larkeHeader h6 {
    font-size: 0.6rem;
    line-height: 1rem;
    white-space: nowrap;
    overflow: clip;
    color: var(--contrast)
}
#larkeHeader h5 {
    font-size: 0.75rem;
    line-height: 1.25rem;
    white-space: nowrap;
    overflow: clip;
    color: var(--contrast)
}
#larkeHeader h4 {
    text-align: left;
    margin-left: 0;
    color: var(--contrast);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.square {
    margin-bottom: 1rem;
    border-radius: 1rem;
    background-color: var(--medium);
    padding: 2rem;
    width: 100%;
}
.saveButton {
    height: 2.75rem;
    margin: 0;
    position: relative;
    min-width: var(--wideToSquare);
    justify-content: center;
    gap: 10px;
    border-top: 1px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    box-shadow: 0 0 10px 1px var(--contrast)
}
form .saveButton {
    position: static;
    margin: 1rem 0 1rem auto;
}

dialog form {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    justify-self: center;
    padding: 0 5% 2rem;
}
h2 {
    font-weight: 500;
    font-size: 1.5rem;
    text-align: center;
}
h1 {
    font-weight: 500;
    text-align: center;
    margin: 0;
    line-height: 100%;
    font-size: 1.5rem
}
h4 {
    margin-left: 1rem;
}

hr {
    margin: 1rem 0 1.75rem;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border: none;
    height: 3px;
    width: 100%;
    border-radius: 50%;
}
section {
    display: flex;
    flex-direction: row;
    align-items: first baseline;
    justify-content: left;
    margin: 0;
    width: 100%;
    position: relative;
    gap: 1.5%;
    height: fit-content;
}

form {
    width: 100%;
    position: relative;
    text-align: center;
    padding: 1.5rem 12.5%;
}
.sectionBlock {
    padding: 1rem 1rem 0.5rem 1rem;
    border-radius: 1rem;
    background-color: var(--foregroundDark);
    margin: 1rem 0 1rem 0;
}
.sectionBlock2 {
    background-color: transparent;
    border: 2px solid var(--foregroundDark);
    margin: 1rem 0;
    border-radius: 1rem;
    padding: 1rem 1rem 0.5rem 1rem;
}
.contactHolder {
    display: flex;
    flex-direction: row;
    align-content: stretch;
    margin-bottom: 0.5rem;
    position: relative;
}
.contactCode {
    border-radius: 0.5rem 0 0 0.5rem;
    width: 40%;
    margin: 0;
    height: 2.5rem;
    border: 1px solid var(--primary);
    box-shadow: none;
    background-color: var(--foregroundLight);
    color: var(--primary);
}
.contactNumber {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin: 0;
    appearance: textfield;
}
.contactNumber::-webkit-outer-spin-button, .contactNumber::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}
input, textarea {
    width: 100%;
    margin: 0 auto 0.5rem auto;
    height: 2.75rem;
    border-radius: 0.5rem;
    padding: 0 1rem;
    font-size: 1rem;
    border: 1px solid var(--borderGrey);
    background-color: var(--foregroundLight);
    -webkit-tap-highlight-color: transparent;
}
input:active, textarea:active {
    background-color: transparent
}
input:focus, textarea:focus {
    outline: none;
    border: 1px solid var(--primary)
}
input[type="checkbox"] {
    /* appearance: none;
    -webkit-appearance: none; */
    height: 2.25rem;
    width: 2.25rem;
    margin: 0.25rem 0.5rem 0.25rem auto;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}
input[type="checkbox"]:disabled {
    accent-color: var(--foregroundDark);
    cursor: default;
}
input[type="time"], input[type="date"] {
    cursor: pointer;
    padding: 0 1rem 0 1rem;
    max-width: 100%;
    width: 100%;           
}

input::placeholder, textarea::placeholder {
    color: var(--medium)
}
textarea {
    padding: 1rem;
    height: 6rem;
}
button {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: fit-content;
    font-size: 1.2rem;
    min-width: 2.75rem;
    border-radius: 3rem;
    background-color: var(--primary);
    color: var(--foregroundLight);
    border: none;
    box-shadow: 1px 1px 3px 1px var(--shadow);
    height: 3rem;
    margin: 0.5rem 0 1.5rem 1rem;
    cursor: pointer;
    padding: 2px 0 0;
    -webkit-tap-highlight-color: transparent;
}
button:hover {
    background-color: var(--secondary)
}
button:active {
    scale: 1.05
}
span {
    position: absolute;
    width: 2.75rem;
    height: 2.75rem;
    text-align: center;
    align-content: center;
    top: 1rem;
    left: 3rem;
    cursor: pointer;
    background-color: transparent;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 2px 0 var(--shadow)
}
span:hover {
    background-color: var(--primary);
}
span:active {
    scale: 1.05;
    background-color: var(--foregroundLight);
}
svg {
    fill: var(--primary)
}
button svg {
    fill: var(--foregroundLight);
    height: 32px;
    width: 32px;
}

.biopsyButton, .billingButton {
    padding: 0 0.25rem;
    display: block;
    height: 2.25rem;
    margin: 0.25rem 0.5rem;
    margin-bottom: 0;
    min-width: 110px;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    background-color: var(--primary);
    color: var(--contrast); 
    cursor: pointer;
    border: 0.5px outset var(--shadow);
    box-shadow: none;
}
.billingButton {
    padding: 0 0.125rem
}
.biopsyButtonInactive:hover, .billingButtonInactive:hover {
    color: var(--primary);
    background-color: var(--foregroundDark);
}
.biopsyButton:active, .billingButton:active {
    box-shadow: 1px 1px 2px 0 var(--shadow)
}
.billingButtonInactive, .biopsyButtonInactive {
    padding: 0 0.25rem;
    display: block;
    height: 2.25rem;
    margin: 0.25rem 0.5rem;
    margin-bottom: 0;
    min-width: 110px;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    background-color: var(--foregroundDark);
    color: var(--normal);
    cursor: pointer;
    border: 0.5px outset var(--shadow);
    box-shadow: none;
}
.billingButtonInactive:disabled, .biopsyButtonInactive:disabled {
    background-color: var(--borderGrey);
    color: var(--medium);
    cursor: default;

}
.grid {
    display: grid;
    flex-direction: row;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    row-gap: 0.25rem;
    column-gap: 1rem;
    margin-bottom: 1.5rem;
}
p {
    height: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
    align-content: center;
}
label {
    display: block;
    height: 2rem;
    width: 100%;
    padding: 0 1rem;
    font-weight: 400;
    cursor: pointer;
    align-content: left;
    margin: 0 0 0.5rem 0;
    border-radius: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}
label:active {
    color: var(--primary);
    border-radius: 0.5rem;
    border: 1px solid var(--primary);
    background-color: transparent;
}

table {
    border-collapse: collapse;
    margin-bottom: 1rem
}
th {
    padding: 0;
    border-spacing: 0;
    margin: 0;
    background-color: var(--foregroundDark);
    border-radius: 0.5rem;
    height: 2rem;
}
.tableInput {
    margin: 0;
    text-align: center;
}
.index_0 {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--foregroundDark);
}

select {
    width: calc(100% - 1rem);
    height: 100%;
    border-radius: 0;
    padding: 0 1rem 0 0;
    font-size: 1rem;
    margin-bottom: 0;
    cursor: pointer;
    border: none;
    background-color: transparent;
    -webkit-tap-highlight-color: transparent
}
 select:focus {
    outline: none;
}

.selectHolder {
    width: 100%;
    border: 1px solid var(--borderGrey);
    background-color: var(--foregroundLight);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0 1rem;
    height: 2.75rem;
}
option {
    font-size: 0.9rem;
}
.headingHolder {
    padding-right: 1rem;
    min-width: 150px;
}
img {
    height: 100px;
    background-color: var(--contrast);
    align-content: center;
    padding: 1rem;
    border-radius: 1rem;
}
dialog {
    position: relative;
    flex-direction: column;
    min-width: 325px;
    width: 90%;
    max-width: 650px;
    min-height: 200px;
    height: fit-content;
    margin: 50px auto;
    background-color: var(--foregroundLight);
    border-radius: 2rem;
    border: 1px solid var(--secondary);
    text-align: center;
    align-items: center;
    z-index: 30;
}
dialog:focus{
    outline: none;
    border: 1px solid var(--secondary)
}
dialog::backdrop {
    background-color: rgba(172, 171, 171, 0.486);
    backdrop-filter: blur(10px);
}

dialog header {
    position: relative;
    width: 100%;
    text-align: center;
    background-color: transparent;
    justify-content: center;
    font-size: 1.4rem;
    padding: 1rem 3rem;
    height: 5rem;
    margin-bottom: 0.5rem
}
ul {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    list-style-type: none;
}
ol {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}
li {
    height: auto;
    display: flex;
    flex-direction: column;
}
div {
    height: fit-content;
    position: relative;
    display: flex;
    flex-direction: column;
}
.standardLink {
    text-decoration: underline solid var(--primary);
    color: var(--primary);
    font-size: 1.1rem;
    margin: 0;
    background-color: transparent;
    height: fit-content;
    width: fit-content;
    padding: 5px;
    border-radius: 0;
    box-shadow: none;
}
.standardLink:visited {
    color: var(--secondary)
}
.standardLink:hover {
    text-decoration: underline solid var(--secondary);
    border: none;
    color: var(--secondary);
    background-color: transparent;
}
.standardLink svg {
    fill: var(--primary)
}
#menuDialog {
    position: absolute;
    min-width: 30vw;
    max-width: 250px;
    min-height: 150px;
    height: fit-content;
    color: var(--contrast);
    text-align: left;
    border-radius: none;
    align-items: first baseline;
    border-radius: 2rem;
    top: 1rem;
    right: var(--horizontalPadding);
    left: auto;
    padding: 1rem;
    margin: 0
}
a {
    display: inline-block;
    color: var(--normal);
    margin: 0.2rem 0.5rem 0.2rem 1rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--transparent);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
a:visited {
    color: var(--normal)
}a:hover {
    color: var(--primary);
    border: 1px solid var(--primary);
}
a:active {
    scale: 1.05;
    background-color: transparent
}

.menuItem {
    width: 90%;
    background-color: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--borderGrey);
    box-shadow: none;
    height: 3rem;
    text-align: left;
    padding: 0.5rem 0 0.5rem 0;
    color: var(--normal);
    transform-origin: left;
    margin-bottom: 0;
    margin-top:0;
    font-size: 1rem;
}
.menuItem:hover {
    color: var(--primary);
    background-color: transparent
}
.menuItem:active {
    scale: 1.05
}
.viewPasswordEye {
    display: block;
    position: absolute;
    box-shadow: none;
    background-color: transparent;
    right: 0.5rem;
    left: auto;
    top: 2.5px;
    z-index: 2;
    margin: 0;
    padding: 0;
    font-size: 1.5rem
}
.viewPasswordEye:hover {
    background-color: transparent
}
.viewPasswordEye:active {
    scale: 1.3
}        
.supplierElement {
    font-size: 0.9rem;
    font-weight: 400;
    padding-left: 1rem;
}

.submitButton {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    font-size: 1.2rem;
    min-width: 12rem;
    border-radius: 3rem;
    background-color: var(--primary);
    color: var(--foregroundLight);
    border: none;
    box-shadow: 1px 1px 3px 0 var(--shadow);
    height: 3rem;
    margin: 1rem 0 0 auto;
    cursor: pointer;
    text-align: center;
    padding: 0 1rem;
    align-items: center;
    justify-content: center;
    justify-items: center;
    line-height: 100%;
}
.submitButton:hover {
    background-color: var(--secondary)
}
.submitButton:active {
    scale: 1.05
}
.submitButton:disabled {
    color: var(--foregroundDark);
    background-color: var(--medium)
}
#successPopup {
    z-index: 99;
    padding: 2.5rem;
    align-items: center;
    text-align: center;
    justify-content: center;
    align-content: center;
    width: 80vw;
    max-width: 325px;
    min-height: 150px;
    min-width: 250px;
    height: fit-content;
    border: 1px solid var(--primary)
}
#successPopup h4 {
    color: var(--primary);
    margin: auto;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8rem;
}
#errorPopup {
    z-index: 100;
    flex-direction: column;
    min-width: 325px;
    max-width: 325px;
    min-height: 150px;
    height: fit-content;
    align-items: center;
    text-align: center;
    justify-content: center;
    align-content: center;
    background-color: var(--foregroundLight);
    border: 1px solid var(--danger);
    padding: 3rem 2.5rem 2rem;
}
.errorString {
    color: var(--danger);
    margin-left: 1rem;
    font-style: italic;
    display: none;
}
#errorPopup h4 {
    color: var(--danger);
    margin: auto;
    font-size: 1.1rem;
    line-height: 1.8rem;
    font-weight: 400
}
#errorPopup svg {
    fill: var(--danger)
}
.iconButton {
    position: relative;
    display: block;
    text-align: center;
    align-content: center;
    margin:0;
    z-index: 6;
    height: 2.75rem;
    width: 2.75rem;
    border-radius: 50%;
    background-color: var(--backgroundGrey);
    color: var(--primary);
    box-shadow: none;
    padding: 1px 0 0 1px;
}
.iconButton:hover {
    box-shadow: 1px 1px 2px 0 var(--shadow);
    border: 1px solid var(--contrast);
    border-radius: 50%;
    padding: 0;
    background-color: var(--foregroundLight);
}
.iconButton:active {
    background-color: var(--foregroundLight);
    padding: 0;
    border: 1px solid var(--contrast);
    scale: 1.15
}
.iconButton svg {
    margin-top: 3px;
    height: 32px;
    width: 32px;
    fill: var(--primary);
}
.iconButton a {
    margin:0;
    padding: 0;
}
dialog .iconButton {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background-color: var(--foregroundLight)
}



/* LOADING WIDGET */
#loadingIcon {
    display: none;
    width: 200px;
    height: 200px;
    text-align: center;
    align-content: center;
    border-radius: 50%;
    z-index: 90;
    position: fixed;
    top: 40vh;
    translate: -50% -50%;
    left: 50%;
}
.loadingHolder {
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    text-align: center;
    align-items: center;
    justify-content: center;
    justify-items: center;
    position: relative;
    backdrop-filter: blur(1px);
    opacity: 0.5
}
.loadingItem_1, .loadingItem_2, .loadingItem_3, .loadingItem_4 {
    border-radius: 50%;
    border-top-left-radius: 0;
    box-shadow: none;
    background-color: transparent;
    margin: auto;
    position: absolute;
    translate: -50% -50%;
    left: 50%;
    top: 50%;
    height: 80%;
    width: 80%;
    animation-duration: 1.5s;
    animation-name: loadingAnimation;
    animation-timing-function: linear;
    animation-delay: 0;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: none;
    cursor:default
}
.loadingItem_1:hover, .loadingItem_2:hover, .loadingItem_3:hover, .loadingItem_4:hover {
    background-color: transparent;
}

.loadingItem_2 {
    rotate: 45deg;
}
.loadingItem_3  {
    rotate: 90deg;
}
.loadingItem_4 {
    rotate: 135deg;
}
.loadingItem_5 {
    rotate: 180deg;
}

.loadingItem_1::before, .loadingItem_2::before, .loadingItem_3::before, .loadingItem_4::before {
    content: "";
    width: 17px;
    height: 17px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
}
.loadingItem_1::after, .loadingItem_2::after, .loadingItem_3::after, .loadingItem_4::after {
    content: "";
    width: 17px;
    height: 17px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    right: 0;
    bottom: 0;
}
@keyframes loadingAnimation {
    0% {
        transform: rotateZ(0);
        scale: 0.8
    }
    25% {
        transform: rotateZ(90deg);
        scale: 0.3;
    }
      100% {
        transform: rotateZ(360deg);
        scale: 0.8;
    }
}
#closeMenu {
    position: absolute;
    right: 1rem;
    left: auto;
    top: 0.5rem;
    background-color: transparent;
    box-shadow: none;
    border-radius: 50%;
    padding: 10px 0 0 6px;
}
#closeMenu:hover {
    background-color: var(--foregroundLight);
    padding: 8px 0 0 4px;
    box-shadow: 2px 2px 1px 0 var(--shadow)
}
.infrastructureHolder, .medicationHolder, .checkboxHolder, .inputHolder {
    position: relative;
    width: 100%;
    margin: 0 auto 0.5rem auto;
    height: 2.75rem;
    border-radius: 0.5rem;
    padding: 0 1rem 0 130px;
    font-size: 1rem;
    border: 1px solid var(--borderGrey);
    background-color: var(--foregroundLight);
    -webkit-tap-highlight-color: transparent;
}
.inputHolder {
    padding: 0 1rem 0 1rem
}
.passwordHolder {
    position: relative;
    width: 100%;
    margin: 0 0 0.5rem 0;
    height: 2.75rem;
    border-radius: 0.5rem;
    padding: 0 1rem;
    font-size: 1rem;
    border: 1px solid var(--borderGrey);
    background-color: var(--foregroundLight);
}
.checkboxHolder {
    padding: 0.25rem; 
    margin: 0; 
    background-color: transparent;
    height: fit-content;
}


.infrastructureHolder input, .medicationHolder input, .passwordHolder input,  .inputHolder input {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    height: 100%;
    border-radius: 0;
    min-width: 30px;
}
.checkboxHolder input[type="checkbox"] {
    z-index: 2;
    padding: 0;
    height: 2.25rem;
    width: 2.25rem;
    margin: 0.25rem 0.5rem 0.25rem auto;
    margin-left: auto;
    cursor: pointer
}
.infrastructureHolder label, .medicationHolder label, .checkboxHolder label {
    position: absolute;
    height: 100%;
    width: fit-content;
    padding: 0 3.5rem 0 0.5rem;
    text-align: left;
    align-content: center;
    left: 0.5rem;
    margin: 0;
    border-radius: 0;
    color: var(--medium)
}
.checkboxHolder label {
    color: var(--normal)
}
.infrastructureHolder label:active, .medicationHolder label:active, .checkboxHolder label:active {
    color: var(--primary);
    border-radius: 0;
    border: 0
}
.infrastructureHolder select {
    background-color: transparent;
    height: 100%;
    margin: 0;
    border: 0;
    padding: 0
}
.infrastructureHolder select:focus {
    outline: none
}
.inputTag {
    margin: 0 auto 0 0.5rem;
    padding: 0;
    color: var(--medium);
    font-size: 0.9rem
}
.medicationHolder {
    padding: 0 90px 0 120px;
    cursor: pointer;
    width: 49%
}
.medicationHolder p {
    height: 100%;
    width: 80px;
    text-align: left;
    color: var(--medium);
    position: absolute;
    right: 0;
    font-size: 0.8rem;
    line-height: 1rem
}
#viewData p {
    position: relative;
    width: 100%;
    margin: 0 auto 0.5rem auto;
    height: 2.5rem;
    border-radius: 0.5rem;
    padding: 0 1rem;
    font-size: 1rem;
    border: 1px solid var(--borderGrey);
    background-color: transparent;
    cursor: default;
}

#signatureHolder {
    margin-bottom: 2rem; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    row-gap: 0.25rem;
    column-gap: 0.5rem;
    margin-bottom: 1.5rem;
    background-color: transparent;
}
#signatureHolder .checkboxHolder {
    border: 1px solid var(--borderGrey);
    height: 4rem;
    padding: 0.5rem;
}
#signatureHolder label {
    font-weight: 500;
    font-size: 0.9rem;
    height: 3rem;
    width: 125px;
    color: var(--normal);
    margin: 0;
    padding: 0;
}
#signatureHolder p {
    margin-left: 1rem; 
    font-weight: 400; 
    font-style: italic
}



/* SMALL CELL WIDTH---------------------------------------------- */

@media (max-width: 459px) {
    :root {
        --deviceDisplay: inline-block;
        --mobileHide: none;
        --wideToSquare: 2.75rem
    }
  
    .dialogForm {
    margin: 0.5rem;
    padding: 0 1rem 1rem;
    }
    dialog {
        width: 90%;
    }
    dialog header {
        font-size: 1.2rem;
        padding: 2rem 3rem;
        height: 4rem;
        margin-bottom: 0.5rem
    }
    dialog header h2 {
        font-size: 1.2rem
    }
    .errorPopup h4 {
        font-size: 0.9rem
    }
    .div50, .div40, .div60, .medicationHolder {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* LARGE CELL WIDTH---------------------------------------------- */

@media (max-width: 499px) {
    :root {
        --deviceDisplay: inline-block;
        --mobileHide: none;
        --wideToSquare: 2.75rem
    }

    #larkeHeader {
        flex-direction: column;
    }
    section {
        flex-direction: column
    }    
    .div50, .div40, .div60, .medicationHolder {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    th {
        padding: 0;
        border-spacing: 0;
        margin: 0 0 0.5rem;
        background-color: var(--foregroundDark);
        border-radius: 0.5rem;
        height: 2rem;
        border: 4px solid var(--backgroundGrey)
    }
    .tableInput {
        margin: 0;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.2rem;
    }
    .tableInput[type="time"] {
        font-size: 0.8rem;
        padding: 0.125rem
    }
    .index_0 {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px outset var(--shadow);
    }
    .div30 {
        padding: 0;
        margin-bottom: 0;
        border: none;
    }
    .div30 input, .div30 label {
        font-size: 0.8rem
    }
}


/* SMALL TAB WIDTH---------------------------------------------- */
@media (min-width: 500px) and (max-width: 599px) {
    :root {
        --horizontalPadding: 5dvw;
        --verticalPadding: 1rem;
        --deviceDisplay: inline-block;
        --mobileHide: none;
        --wideToSquare: 2.75rem
    }

    #larkeHeader {
        flex-direction: column;
    }
    section {
        flex-direction: column
    }    
    .div50, .div40, .div60, .medicationHolder {
        width: 100%;
        margin-bottom: 0.5rem
    }
    .div30 {
        padding: 0rem;
        margin-bottom: 0;
        border: none;
    }
    .div30 input, .div30 label {
        font-size: 0.9rem
    }

    th {
        padding: 0;
        border-spacing: 0;
        margin: 0 0 0.5rem;
        background-color: var(--foregroundDark);
        border-radius: 1rem;
        height: 2rem;
        border: 4px solid var(--backgroundGrey)
    }
    .tableInput {
        margin: 0;
        text-align: center;
        font-size: 0.9rem
    }
    .index_0 {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px outset var(--shadow);
    }
}

/* LARGE TAB WIDTH---------------------------------------------- */
@media (min-width: 600px) and (max-width: 650vw) {
    :root {
        --horizontalPadding: 1dvw;
        --verticalPadding: 1rem;
        --deviceDisplay: none;
        --mobileHide: none;
        --wideToSquare: 2.75rem;
    }
    .div30 {
        padding: 0;
        margin-bottom: 0;
        border: none;
    }
}

/* LAPTOP WIDTH---------------------------------------------- */

@media (min-width: 651px) and (max-width: 750vw) {
    :root {
        --horizontalPadding: 5dvw;
        --verticalPadding: 0.5rem;
        --deviceDisplay: none;
        --mobileHide: inline-block;
        --wideToSquare: 12rem;
    }
    .div30 {
        padding: 0;
        margin-bottom: 0;
        border: none;
    }
}

/* DESKTOP WIDTH---------------------------------------------- */
@media (min-width: 751px) and (max-width: 899vw) {
    :root {
        --horizontalPadding: 5dvw;
        --verticalPadding: 0.5rem;
        --deviceDisplay: none;
        --mobileHide: inline-block;
        --wideToSquare: 12rem;
    }
    .div30 {
        padding: 0.5rem;
        margin-bottom: 0;
        border: 1px solid var(--shadow);
    }
}

/* LARGE DESKTOP WIDTH---------------------------------------------- */
@media (min-width: 900px) and (max-width: 1299vw) {
    :root {
        --horizontalPadding: 10dvw;
        --verticalPadding: 1rem;
        --deviceDisplay: none;
        --mobileHide: inline-block;
        --wideToSquare: 12rem;
    }
    .div30 {
        padding: 1rem;
        margin-bottom: 0;
        border: 1px solid var(--shadow);
    }
}

/* VERY LARGE DESKTOP WIDTH---------------------------------------------- */

@media (min-width: 1300px) {
    :root {
        --horizontalPadding: 20dvw;
        --verticalPadding: 1rem;
        --deviceDisplay: none;
        --mobileHide: inline-block
        --wideToSquare: 12rem;
    }
    .div30 {
        padding: 1rem;
        margin-bottom: 0;
        border: 1px solid var(--shadow);
    }
}
