:root {
    /*#fffefa;*/
    --header: #54babc;
    --lighterHeader: #249a9c;
    --main: #fffefa;
    --footer: #afafaf;
    --font: #153232;
    --lighterFont: #ffffff;
    --darkerFont: #999999;
    --placeholder: #cec1aa;
    --line: #e8dabf;
    --lightLine: #ffffff;
    --graphLine: #eeeeee;
    --graphDarkLine: #cccccc;
    --overlay: #ffffff;
    --input: #ffffff;
    --inputHover: #f0f0f0;
    --buttonLight: #ffffff;
    --buttonMid: #fbf8f0;
    --buttonDark: #c0f2f1;
    --buttonDarker: #c2f3f2;
    --loginLight: #D6230F;
    --loginMid: #b22b1b;
    --loginDark: #a31f10;
    --toolRack: #FFFFFF;
    --toolRackTool: #fbf8f0;
    --toolRackHover: #c0f2f1;
    --table: #ffffff;
    --tableEven: #f9f9f9;
    --tableOdd: #ffffff;
    --tableHeader: #ffffff;
    --blueBack: #54babc;
    --sliderTrack: #6fdbe7;
    --sliderThumb: #ffffff;
    --successLight: #00df19;
    --successDark: #009f29;
    --errorLight: #df0000;
    --errorDark: #9f0000;
    --indexButton: #54babc;
    --indexButtonDarker: #54babc;
    --icon: #153232;
    --iconLight: #ffffff;
    --graphDotGood: #00AA00;
    --graphDotMedium: #BBBB00;
    --graphDotBad: #AA0000;
    --graphDotCritical: #BB00BB;
    --shadow: #d8c2aab3;
    --tag: #dddddd;
    --tagRed: #b22b1b;
    --tagBlack: #000000;
}

    :root[data-theme='dark'] {
        --header: #000000;
        --lighterHeader: #2e2e2e;
        --main: #222222;
        --footer: #5b5b5b;
        --lighterFont: #dddddd;
        --font: #cccccc;
        --placeholder: #656565;
        --darkerFont: #999999;
        --line: #313131;
        --lightLine: #676767;
        --graphLine: #343434;
        --graphDarkLine: #454545;
        --overlay: #333333;
        --input: #000000;
        --inputHover: #212121;
        --buttonLight: #222222;
        --buttonMid: #111111;
        --buttonDark: #333333;
        --buttonDarker: #444444;
        --loginLight: #D6230F;
        --loginMid: #b22b1b;
        --loginDark: #a31f10;
        --toolRack: #2e2e2e;
        --toolRackTool: #121212;
        --toolRackHover: 5e5e5e;
        --table: #000000;
        --tableEven: #1d1d1d;
        --tableOdd: #000000;
        --tableHeader: #000000;
        --blueBack: #1f1e67;
        --sliderTrack: #4e5de7;
        --sliderThumb: #ffffff;
        --successLight: #00df19;
        --successDark: #009f29;
        --errorLight: #df0000;
        --errorDark: #9f0000;
        --indexButton: #5e5e5e;
        --indexButtonDarker: #666666;
        --icon: #8f8f8f;
        --iconLight: #e1e1e1;
        --graphDotGood: #00FF00;
        --graphDotMedium: #ffff00;
        --graphDotBad: #FF0000;
        --graphDotCritical: #FF00FF;
        --shadow: #4f4f4fb3;
        --tag: #dddddd;
        --tagRed: #b22b1b;
        --tagBlack: #000000;
    }

/* #region General */

.theme-transition *:not(table) {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .theme-transition *::before,
    .theme-transition *::after {
        transition: inherit;
    }

input,
button,
textarea,
select{
    -webkit-tap-highlight-color: transparent;
}

* {
    font-weight: 400;
    font-family: 'Quicksand', sans-serif;
    text-transform: uppercase;
    text-overflow: ellipsis;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: var(--main);
    color: var(--font);
    margin: auto;
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "footer";
    grid-template-rows: 60px auto 10px;
    grid-template-columns: auto;
    height: 100vh;
    width: 100%;
    font-size: 14px;
}

    body.noGrid {
        grid-template-areas: "main";
        grid-template-rows: 1fr;
        grid-template-columns: auto;
    }

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    grid-area: header;
    color: var(--lighterFont);
    background-color: var(--header);
    z-index: 101;
    height: 60px;
}
/*
.sidebar {
    grid-area: sidebar;
    background-color: dimgrey;
    justify-content: flex-start;
    display: none;
}*/

main {
    grid-area: main;
    background-color: var(--main);
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: scroll;
    /*outline: dotted 2px green;*/
}

foot {
    position: fixed;
    bottom: 0;
    /*grid-area: footer;*/
    margin: 0px;
    background-color: var(--buttonDark);
    z-index: 101;
    width: 100%;
    font-size: 0.8em;
    text-transform: initial;
}

    foot div {
        text-transform: initial;
        margin: 2px;
    }

summary {
    color: var(--lighterFont);
    background-color: var(--header);
    margin: 10px 0px 0px 0px;
    padding: 5px 5px 5px;
}

details {
    margin: 15px 0px;
}

.noTT {
    text-transform: none;
}

/*hr {
    background-color: lightsteelblue;
    height: 1px;
    border: none;
}*/

/* #endregion */

/* #region Useful classes */

.leftOriented {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.rightOriented {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.stretchColumn {
    align-items: stretch;
    flex-direction: column;
    display: flex;
}

.column {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.flexCenter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flexStart {
    display: flex;
    justify-content: start;
}

.flexEnd {
    justify-content: flex-end;
    align-content: flex-end;
    display: flex;
}

.spaceAround {
    width: 100%;
    align-content: space-around;
}

.spaceBetween {
    width: 100%;
    display: flex;
    justify-content:space-between;
    align-content: space-between;
}

.smallInput {
    width: 50px;
}

.twentieth {
    width: 5%;
}

.eighth {
    width: 12.5%;
}

.seventh {
    width: 14.285%;
}

.sixth {
    width: 18.333%;
}

.fifth {
    width: 20%;
    min-width: 150px;
}

.quarter {
    width: 25%;
}

.almostHalf {
    width: 48%;
}

.third {
    width: 33%;
}

.mainWide {
    width: 95%;
}

.mostWide {
    width: 90%;
}

.threeFourths
{
    width: 75%;
}

.twoThirds {
    width: 66%;
}

.half {
    width: 50%;
}

.wide {
    width: 100%;
}

.high {
    height: 100%;
}

.twoThirdsHigh {
    height: 66%;
}

.halfHigh {
    height: 50%;
}

.thirdHigh {
    height: 33%;
}

.quarterHigh {
    height: 25%;
}

.fifthHigh {
    height: 20%;
}

.sixthHigh {
    height: 18.33%;
}

.eighthHigh {
    height: 12.5%;
}

.smallForm {
    font-size: 10px;
}

.bigger {
    padding: 5px 10px;
    margin: 0px 10px;
}

.biggest {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/*.blackBackground {
    color: white;
    background-color: black;
}*/

.noBorder {
    border: none;
}

/*.whiteBorder {
    border: solid 1px white;
}*/

/*.hover:hover {
    background-color: #4d4d4d;
}*/

.noMargin {
    margin: 0px;
}

.autoMargin {
    margin: auto;
}

.noPadding {
    padding: 0px;
}

.horizontalPadding {
    padding: 0px 7px;
}

.smallPadding {
    padding: 7px;
}

.smallerPadding {
    padding: 3px;
}

.justEnoughSpace {
    margin: 0px;
    height: 100%;
    width: auto;
}

.smallMargin {
    margin: 1px;
}

.mediumMargin {
    margin: 5px;
}

.mediumMarginUp {
    margin: 5px 0 0 0;
}

.plusMarginUp {
    margin: 15px 0 0 0;
}

.largeMarginUp {
    margin: 25px 0 0 0;
}

.marginRight {
    margin: 0 10px 0 0;
}

.marginLeft {
    margin: 0 0 0 5px;
}

.marginDown {
    margin: 0 0 25px 0;
}

.largeMargin {
    margin: 10px;
}

.titleMargin {
    margin: 20px 0px 20px 0px;
}
.titleMarginUp {
    margin: 20px 0px 0px 0px;
}

.smallFont {
    font-size: 14px;
}

.mediumFont {
    font-size: 16px;
}

.largeFont {
    font-size: 18px;
}

.titleFont {
    font-size: 24px;
}

.uThin {
    font-weight: 100;
}

.thin {
    font-weight: 300;
}

.bold {
    font-weight: 700;
}

.uBold {
    font-weight: 900;
}
/*
.white {
    color: white;
}*/

/*.black {
    color:black;
}*/

/* #endregion */

/* #region Overlay */

.overlay {
    margin: 0px;
    position: fixed;
    align-content: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: none;
    left: 0px;
    bottom: 0px;
}

.overlay-box {
    background: var(--overlay);
    padding: 120px 20px 0px 20px;
    display: grid;
    grid-template-areas:
        "title"
        "bar"
        "content";
    grid-template-rows: 60px 75px auto;
    grid-template-columns: 100%;
    position: absolute;
    right: 0;
    width: 600px;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overlayInfo {
    margin: 45px 0 0 0;
/*    position: relative;
    top: 45px;*/
}

.close {
    position: absolute;
    top: 180px;
    right: 30px;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
    color: black;
    z-index: 102;
}

.overlayTitle {
    grid-area: title;
    margin: 10px 0 0 0;
}

.overlayBar {
    grid-area: bar;
    border-bottom: 1px solid var(--line);
}

.overlayContent {
    grid-area: content;
}

.overlayConfirmButton {
    position: absolute;
    bottom: 80px;
    left: 40px;
}

.overlayConfirmButtonDouble {
    width: 560px;
    position: absolute;
    bottom: 80px;
    left: 40px;
}

/* #endregion */

/* #region Testing */
/**/
/** {
    outline: 1px solid green;
}*/

.green {
    outline: 2px solid green;
}

*:focus {
    outline: none;
}

/* #endregion */

/* #region Specifics */

/** {
    color: var(--font)
}*/

.export {
    width: 33%;
}

.exportItem {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 5px;
    background-color: var(--input);
}

.exportTitle {
    width: 85%;
}

.exportTitleText {
    font-weight: bold;
    padding: 3px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 3px;
}

.exportContent {
    font-size: 0.8em;
    padding-left: 10px;
}

input[type=checkbox] {
    height: 25px;
    width: 25px;
    margin: 0px;
}

.groupSelects * {
    text-transform:none;
}

.pageButton {
    border-radius: 0px;
    border: none;
    border-top: solid 1px var(--line);
    border-bottom: solid 1px var(--line);
    border-left: solid 1px var(--line);
    border-right: none;
}

    .pageButton:first-child {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }
    .pageButton:last-child {
        border-right: solid 1px var(--line);
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

.bump {
    z-index: 2;
}

.vscomp-dropbox-container {
    z-index: 2;
}

input[type=submit][disabled]:hover {
    background-color: var(--input);
    cursor: default;
}

input[disabled].disabled {
    background-color: var(--inputHover);
    cursor: default;
    color: var(--darkerFont);
}

input[disabled].disabled:hover {
    background-color: var(--inputHover);
}


.targetButton {
    color: var(--lighterFont) !important;
    background-color: var(--blueBack) !important;
}

.ellipsis {
    text-overflow: ellipsis;
    word-wrap: unset;
    word-break: keep-all;
    white-space: nowrap;
    overflow:hidden;
}

.indexHigh {
    height: 100%;
    max-height: 95%;
}

.tag {
    height: 184px;
    width: 384px;
    display: grid;
    grid-template-areas:
        "header header"
        "content qr"
        "info qr";
    grid-template-rows: 17% auto 13%;
    grid-template-columns: 60% 40%;
    position: relative;
    border: 1px solid var(--line);
    background-color: var(--tag);
    color: var(--tagBlack);
}
/*.tag * {
    background-color: #dddddd;
}*/

.tag-container {
    margin: 0px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    overflow: hidden;
}

#tagDetail {
    border-left: none;
    border-right: none;
    border: none;
}

    .tagId div {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 20px;
        color: var(--lighterFont);
    }

.tagHeader {
    grid-area: header;
    /*margin-left: 3%;*/
    position: relative;
    font-size: 20px;
    /*    z-index: 10;*/
    padding: 0px 10px;
}
    .tagHeader div {
        padding: 4px 2px;
        margin: 0px;
        font-size: 20px;
    }

    .tagHeader select {
        border-radius: 0px;
        font-size: 15px;
        border-top-right-radius: 0px;
        background-color: var(--tag);
        color: var(--font);
        border: none;
        width: 100%;
        height: 100%;
        text-overflow: ellipsis;
    }

.tagContent {
    grid-area: content;
    padding: 0px 10px;
    position: relative;
}

    .tagContent div:first-child {
        padding: 4px 2px;
        font-size: 14px;
    }

    .tagContent div:last-child {
        position: absolute;
        top: 33%;
        left: 27%;
        font-size: 60px;
        font-weight: bold;
        height: auto;
    }

.tagInfo {
    grid-area: info;
    padding: 0px 10px;
    position: relative;
    font-size: 10px;
}
.tagQr {
    grid-area: qr;
    position: relative;
    font-size: 10px;
    background-color: var(--tag);
}

.tagIcon {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    height: 147px;
    width: 147px;
}

.tagInfoText {
    position: absolute;
    top: 50%;
    transform: translate(0%, -50%);
    font-size: 14px;
    width: 100%;
    color: var(--tag);
    font-weight: lighter;
}

.tagNew {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    position: relative;
    border: dotted 3px var(--line);
    border-radius: 5px;
}

.addTagButton {
    width: 50px;
    height: 50px;
    border-radius: 100px;
    font-size: 50px;
    color: var(--header);
    box-sizing: content-box;
    border: solid 3px var(--header);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--main);
    background: radial-gradient(circle at 45% 40%, var(--main) 50%, var(--blueBack));
    box-shadow: 0px 8px 1px var(--shadow);
}

    .addTagButton:hover {
        position: relative;
        top: 2px;
        background-color: var(--input);
        background: radial-gradient(circle at 45% 44%, var(--main) 50%, var(--blueBack));
        box-shadow: 0px 6px 1px var(--shadow);
    }

.error {
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    padding: 15px 30px;
    border-radius: 5px;
    margin: 0px;
    color: var(--lighterFont);
    background: linear-gradient(to bottom, var(--errorLight), var(--errorDark));
}

.success {
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    padding: 15px 30px;
    border-radius: 5px;
    margin: 0px;
    color: var(--lighterFont);
    background: linear-gradient(to bottom, var(--successLight), var(--successDark));
}

.notification {
    position: fixed;
    top: -100px; /* Hidden above the screen */
    left: 50%;
    transform: translateX(-50%);
    background: #00000000;
    color: white;
    font-family: sans-serif;
    transition: top 0.3s ease-in-out;
    z-index: 1000;
}

    .notification.show {
        top: 30px; /* Slide into view */
    }

input[type=password],
input[type=text],
input[type=number],
input[type=email],
input[type=search],
h2,
.editThing div,
form div,
.smallFont,
td,
td *,
svg text,
.tag div {
    text-transform: none;
}

.whitespace {
    padding: 20px;
}

#indexTable td {
    padding: 10px 5px;
    font-size: 12px;
    overflow: auto;
    white-space: normal;
}

.graph {
    height: auto;
}

.graphInput {
    border-right: none;
    border-radius: 0px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 5px;
    text-align: center;
    padding: 6px;
}

.graphButton {
    padding: 6px;
    color: var(--font);
    background-color: var(--input);
    box-sizing: border-box;
    border: 1px solid var(--line);
    cursor: pointer;
    border-left: none;
    border-top-left-radius: 0px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 0px;
}

.graphButton:hover {
    background-color: var(--inputHover);
}

.scanMsg {
    margin: 10px;
    padding: 5px 3px;
    width: 80%;
    height: auto;
}

    .scanMsg div {
        height: auto;
        padding: 5px 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        text-align: center;
        vertical-align: middle;
        line-height: normal;
    }

.session-messages {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: flex-start;
    height: auto;
    /*outline: 4px solid yellow;*/
}

.session-messages div {
    margin: 0 0 0 0;
    padding: 4px;
}

.content {
    font-size: 12px;
}

.minHeight {
    min-height: 450px;
}

.smallTH {
    font-size: 10px;
    text-align: center;
}
.bigTD {
    font-size: 15px;
    text-align: center;
    max-height: 50px;
    height: 100%;
    width: 33%;
}

.wideFont {
    margin: 10px 0px;
    font-size: 200%;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 85%;
    color: var(--lighterFont);
    word-break: break-word;
    vertical-align: middle;
    line-height: normal;
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-content: center;
}

.centerFont {
    text-align: center;
    
}

.coloredBackground {
    background-color: var(--blueBack);
    padding: 0 0 10px 0;
}


.logItem {
    height: 100%;
    width: 95%;
}

.logItemContainer {
    height: 85%;
    width: 100%;
    /*border: 2px solid red;*/
    align-content: flex-start;
    justify-content: flex-start;
    align-self: flex-start;
    justify-self: flex-start;
    margin: 45px 0 0 0;
}

.buttonsForm {
    margin: 10px 0px 0px 0px;
}

.buttons {
    display: flex;
    align-content: space-around;
    justify-content: space-around;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
    /*border: 2px solid green;*/
    padding: 0px;
}

.logBtnDiv {
    display: flex;
    align-content: center;
    justify-content: center;
    width: 32%;
    height: 18%;
    min-height: 30px;
    margin: 0 0 10px 0;
}

.logBtnDivConfirm {
    display: flex;
    align-content: center;
    justify-content: center;
    width: 48%;
    height: 25%;
    min-height: 30px;
    margin: 0 0 10px 0;
}

.logBtn {
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: var(--tableEven);
    border: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
    line-height: normal;
}

header select, header button, header input {
    color: var(--lighterFont);
    background-color: var(--header);
}

.multiSelect {
    border: none;
    color: var(--font);
    background-color: var(--input);
}

.start {
    justify-self:flex-start;
    align-self: flex-start;
}

.mainMargin {
    margin: 40px 0px 0px 0px;
}

.mainMarginThatShrinksWhenSmall {
    margin: 40px 0px 0px 0px;
}

.index {
    width: 66%;
}

#indexBtnLeft {
    border-radius: 0px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
#indexBtnMid {
    border-radius: 0px;
    border: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
#indexBtnRight {
    border-radius: 0px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.phoneIndexNav {
    height: 75%;
    width: 100%;
    font-size: 12px;
}

.indexBtn {
    border: 1px solid var(--line);
    color: var(--font);
    background: linear-gradient(to bottom,var(--buttonLight), var(--buttonMid) );
    border-radius: 4px;
    cursor: pointer;
}

    .indexBtn:hover {
        background: linear-gradient(to bottom, var(--buttonDark), var(--buttonDarker));
    }

.indexBtnSmall {
    border: 1px solid var(--line);
    color: var(--lighterFont);
    /*background: linear-gradient(to bottom, #EAEAEA, #dadada);*/
    background-color: var(--indexButton);
    border-radius: 4px;
    cursor: pointer;
}
    .indexBtnSmall:hover {
        background-color: var(--indexButtonDarker);
    }

.toggle {
    color: var(--font);
    background-color: var(--overlay);
    border: none;
    cursor: pointer;
}

    .toggle:hover {
        background-color: var(--inputHover);
    }

.toolRack {
    height: 45px;
    position: fixed;
    left: 0px;
    top: 60px;
    z-index: 101;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    justify-content: flex-start;
    background-color: var(--toolRack);
    box-shadow: 0 1px 4px var(--shadow);
}

    .toolRack button, .toolRack input {
        /*background-color: var(--toolRack);*/
        background: linear-gradient(to bottom, var(--toolRack), var(--toolRackTool));
        border-right: 1px solid var(--line);
        /*border-bottom: 1px solid var(--line);*/
        border-left: none;
        border-bottom: none;
        border-top: none;
        /*border-top: 1px solid var(--line);*/
        color: var(--font);
        min-width: 150px;
        min-height: 45px;
        cursor: pointer;
        border-radius: 0px;
        margin: 0 0 0 0;
    }

        .toolRack button.sorted, .toolRack input.sorted {
            background: linear-gradient(to bottom, var(--toolRackHover), var(--toolRackTool));
        }

    .toolRack button.small {
        min-width: 50px;
        width: 25%;
    }

        .toolRack button:hover, .toolRack input:hover {
            background: linear-gradient(to bottom, var(--toolRack), var(--toolRackHover));
            /*box-shadow: 0px 4px 4px -3px rgba(192, 242, 241, 0.7);*/
        }

/*button {
    background: #e0e0e0;
    border: none;
    padding: 10px 20px;
    box-shadow: 2px 2px 4px #aaa, -2px -2px 4px #fff;
    border-radius: 6px;
}
*/
.icon {
    width: auto;
    height: 32px;
    pointer-events: none;
}

.iconLarge {
    width: auto;
    height: 64px;
    pointer-events: none;
}

.darkmodeIcon {
    position: relative;
    bottom: 4px;
    width: auto;
    height: 50px;
    pointer-events: none;

}

.darkmodeIconBtn {
    padding: 10px 5px;
    border-left: 1px solid var(--lightLine);
    border-radius: 0px;
}

.darkmodeIconBtn:hover {
    background-color: var(--lighterHeader);
}

.hiddenButton {
    position: relative;
    right: 80px;
    border: none;
    background-color: none;
    color: black;
    border-radius: 50px;
    height: 20px;
    width: 20px;
    text-align: center;
    vertical-align: middle;
    line-height: normal;
    padding: 0;
}

.nudgeLeft {
    position:relative;
    right: 12px;
}
.nudgeRight {
    position: relative;
    left: 12px;
}

.nudgeDown {
    position: relative;
    top: 40px;
}
.nudgeDownMedium {
    position: relative;
    top: 20px;
}

.nudgeDownLittle {
    position: relative;
    top: 8px;
}
.nudgeUp {
    position: relative;
    bottom: 20px;
}

.addHeight {
    height: 110%;
}

.clickThrough {
    pointer-events: none;
}

.companySelect {
    appearance: none; /* Standard */
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none; /* Firefox */
}

    .companySelect:focus {
        outline: none;
        border: none;
        border-color: transparent; /* optional */
    }

.textEnd {
    text-align: center;
}

.backColor {
    background-color: var(--main);
}

.loginLogo{
    margin: 0 0 50px 0;
    min-width: 250px;
}

.minWide {
    min-width: 250px;
}

.minWideSmaller {
    min-width: 100px;
}

.nudgeUpwards {
    margin: 0 0 10% 0;
}

.percentBtn {
    color: var(--lighterFont);
    background-color: var(--header);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
}

    .percentBtn:hover {
        background-color: var(--buttonDarker);
    }

.loginBtn {
    color: var(--lighterFont);
    background: linear-gradient(to bottom, var(--loginLight), var(--loginMid));
    /*background-color: #D6230F;*/
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /*border:none;*/
}

    .loginBtn:hover {
        background: linear-gradient(to bottom, var(--loginMid), var(--loginDark));
        /*background-color: #c32210;*/
    }

.loginText {
    display: flex;
    align-self: flex-start;
    margin: 0 0 0 2.3%;
}

input {
    color: var(--font);
    background-color: var(--input);
}

    input:hover {
        background-color: var(--inputHover);
    }

input::placeholder {
    color: var(--placeholder);
}

.editThing div:not(.counter):first-child, .editThing select:not(.counter):first-child, .editThing input:not(.counter):first-child {
    width: 33%;
    margin: 10px 0;
    padding: 2px;
}

.editThing div:last-child, .editThing select:last-child, .editThing input:last-child {
    width: 66%;
    margin: 10px 0;
    padding: 2px;
}

    .editThing div:not(.counter):last-child:hover, .editThing select:not(.counter):last-child:hover, .editThing input:not(.counter):last-child:hover {

    }

.editThingHalf div:not(.counter), .editThingHalf select:not(.counter), .editThingHalf input:not(.counter) {

    width: 49%;
    margin: 2px;
    padding: 2px;
}

.space {
    margin: 2px;
    padding: 2px;
}

.counter {
    margin: 2px;
    padding: 2px;
}

.editThing div:not(.counter), .editThingHalf div:not(.counter) {
    text-align: start;
}

input,
select,
button {
    box-sizing: border-box;
    padding: 0.5rem;
    border: 1px solid var(--line);
    /*font-size: 1rem;*/
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

input, button{
    background-color: var(--input);
    color: var(--font);
}

    input:hover:not(input[type="submit"]) {
        background-color: var(--inputHover);
    }

    input:hover:is(input[type="submit"]) {
        background: var(--buttonDark);
    }

    input:hover:is(input[type="submit"]).darker {
        background: var(--lighterHeader);
    }

    button:hover {
        background-color: var(--inputHover);
    }

/*.input {
    width: 50%;
}*/

/*.selectInput {
    width: 51%;
}*/

/*form div {
    margin: 10px 0px;
}*/

div.main {
    margin: 10px 10px 10px 10px;
    width: 95%;
    /*height: 90%;*/
}

label, h3, h4 {
    margin: 15px auto 5px auto;
}

label, span {
    font-size: 14px;
}

.logOutButton {
    padding: 10px 30px;
    border-left: 1px solid var(--lightLine);
    border-radius: 0px;
}

.logOutButton:hover {
    background-color: var(--lighterHeader);
}

button.scanBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.title {
    margin: 5px 8px 4px 8px;
    /*width: 180px;*/
    height: 45px;
}

.selectCompanyBtn {

}

.split {
    width: 200px;
}

.graphText {
    writing-mode: vertical-rl;
    text-orientation: sideways;
    font-family: Roboto, sans-serif;
    font-size: 9px;
    letter-spacing: 1px; /* Adjust as needed */
}

/* #endregion */

/* #region Selects */
select {
    overflow: auto;
}

    /*select::-webkit-scrollbar {
        display: none;
    }*/

    select.tools {
        margin: 0px 0px 0px 10px;
        width: 90%;
        font-size: 16px;
        background-color: var(--input);
        cursor: pointer;
        /*scroll-behavior: unset;*/
    }

.selected {
    background-color: var(--buttonDark);
    border-radius: 5px;
}

    .selected:hover {
        background-color: var(--buttonDarker);
        border-radius: 5px;
    }
/*select.headerDropDown option:first-child {
    display: none;
}*/

option:not(:first-child) {
    padding-top: 2px;
    border-top: none;
    /*border-top-color: none;*/
}

option:not(.selected):hover {
    background-color: var(--inputHover);
    /*border-color: none;*/
    /*border-top-color: none;*/
}

option {
    text-transform:none;
}

optgroup {
    font-size: 12px;
    padding: 7px 0 0 0;
    font-weight: bold;
}

optgroup:first-child {
    font-size: 12px;
    padding: 0px 0 0 0;
    font-weight: bold;
}
/* #endregion */

/* #region Scanner */

#scanButton {
    font-size: 16px;
    padding: 10px 50px;
    cursor: pointer;
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none; /* For Safari */
    -moz-user-select: none; /* For Firefox */
}

/*#scanButton:active {
    background-color: red;
}*/

.reader {
    /*outline: 1px solid green;*/
    height: auto;
}

#scanner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    /*outline: 1px solid yellow;*/
}

#scannerOverlay {
    display: flex;
    position: fixed;
    top: 60px;
    z-index: 200;
    color: var(--lighterFont);
    background-color: rgba(0,0,0,0.75);
    width: 100%;
    height: 15%;
    font-size: 30px;
    justify-content: center;
    align-content: center;
}

div.scanner {
    margin: 10px 10px 10px 10px;
    width: 95%;
    height: auto;
    max-height: 400px;
    overflow: hidden;
}

/* #endregion */

/* #region Slider */

/*input[type="range"] {
    margin: 0 auto;
    width: 300px;
    height: 300px;
    transform: rotate(270deg);
}*/

input[type="range"] {
    margin: 20px 30px 30px 30px;
    accent-color: var(--sliderTrack);
    background-color: transparent;
}

/*    input[type="range"]::-webkit-slider-runnable-track {
        background-color: var(--sliderTrack);
    }

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        background-color: var(--sliderThumb);
    }*/

.value-display {
    display: flex;
    align-self: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: 800;
}

#slider {
    width: 100%;
    height: 20%;
}

/* #endregion */

/* #region Table */

table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    text-align: left;
    font-size: 12px;
    background-color: var(--table);
    white-space: nowrap;
}

    table button:hover, table input:hover {
        background-color: var(--buttonDark);
    }

/*td {
    text-transform: none;
}*/

.tableBorder {
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

th, td {
    padding: 6px 7px;
    border: 1px solid var(--line);

    /*border: 1px solid #ddd;*/
    /*    border-left: 2px solid darkgrey;
    border-right: 2px solid darkgrey;*/
}

td:has(> button), td:has(> form) {
    padding: 0px 7px;
}

th {
    padding: 10px 7px;
    font-weight: bold;
    font-size: 12px;
    position: sticky;
    top: 0;
    background-color: var(--tableHeader);
    /*z-index: 10;*/
    border-top: 1px solid var(--main);
}

tr:nth-child(even) {
    background-color: var(--tableEven);
}

    tr:nth-child(even):hover {
        background: linear-gradient(to bottom, var(--buttonDark), var(--tableEven) 10%, var(--tableEven) 90%, var(--buttonDark));
    }

tr:nth-child(odd) {
    background-color: var(--tableOdd);
}

    tr:nth-child(odd):hover {
        background: linear-gradient(to bottom, var(--buttonDark), var(--tableOdd) 10%, var(--tableOdd) 90%, var(--buttonDark));
    }

tr:last-child {
    /*border-bottom: solid 2px darkgrey;*/
}

td:last-child, th:last-child {
    border-right: 1px solid var(--main);
}

td:first-child, th:first-child {
    border-left: 1px solid var(--main);
}

#productTable {
    width: 75%;
}

.tableDiv {
    width: 90%;
    min-width: 0;
    height: fit-content;
}

.table-container {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    height: fit-content;
}

.dt-layout-full {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid var(--line);
}

.data {
    border: none;
}

details div.table-container {
    border-top: none;
}

td.center {
    justify-content: center;
    align-content: center;
}

/* #endregion */

/* #region Media change */

@media (max-width: 824px) {

    button.adminBtn, button.productBtn, .hideWhenSmall {
        display: none;
    }

    body {
        /*        margin: auto;
        display: grid;*/
        height: 100dvh;
        width: 100%;
        font-size: 14px;
    }

    .widePhoneThirdPC {
        width: 100%;
    }

    .widePhoneHalfPC {
        width: 100%;
    }

    .index {
        width: 95%;
    }

    .mainMarginThatShrinksWhenSmall {
        margin: 0px;
    }

    .export {
        width: 90%;
    }
}

@media (min-width: 825px) {
    body {
        font-size: 16px;
        grid-template-areas:
            "header"
            "main";
        grid-template-rows: 60px auto;
        grid-template-columns: auto;
    }

    .hideWhenBig {
        display:none;
    }

    .sidebar {
        display: flex;
    }

    button.scanBtn {
        display: none;
    }

    .reader {
        max-width: 750px;
    }
    
    .widePhoneThirdPC {
        width: 33%;
    }

    .widePhoneHalfPC {
        width: 48%;
    }

    .export {
        width: 50%;
    }
}
/* #endregion */