﻿body {
    background-color: #C1E3BF;
    font-size: 1rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

dialog {
    overflow-x:auto;
    padding:30px;
}

.dimmer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: 99;
    border-radius: 10px;
    display: none;
}

.contentcontainer {
    position: relative;
    flex-grow: 1;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.menulinkcontainer {
    display: flex;
    flex-direction: row;
    gap: 10px;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    align-items: center;
}

    .menulinkcontainer:hover {
        background-color: rgba(92,190,92,0.5);
    }

    .menulinkcontainer .selected {
        background-color: white;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    }

.menulink {
    color: #394A38;
    font-size: 0.8rem;
    text-decoration: none;
    display: block;
    font-weight: 600;
}

    .menulink:hover {
        color: black;
    }

    .menulink:active {
        background-color: limegreen;
        border-radius: 10px;
    }

    .menulink .selected {
        background-color: white;
        color:black;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    }

.titlebar {
    position: relative;
    height: 40px;
    background-color: #037726;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-bottom: solid 2px lightgray;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding-left: 20px;
    padding-right: 20px;
}

.blockout {
    background-color: #037726;
    height: 20px;
    width: 20px;
}

.notificationpanel {
    position: absolute;
    top: 50px;
    right: 10px;
    width: 300px;
    background-color: white;
    border: solid 2px #037726;
    border-radius: 20px;
    padding: 20px;
    z-index: 100;
    display: none;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

#notificationsinner {
    width: 100%;
}

.notification {
    display:flex; 
    flex-direction:row;
    justify-content:flex-start;
    align-items:flex-start;
    gap:15px;
}

.notification .title {
    font-weight:bold;
}

.notification .message {
    margin-top:10px;
}

.notification .date {
    font-size:x-small;
    color:gray;
}

input[type=text] {
    background-color: #F3F6F9;
    border-radius: 6px;
    border: solid 1px #F3F6F9;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 1.1rem;
    box-sizing: border-box;
    display: block;
    width: 100%;
    color: #3F4254;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    input[type=text]:active,
    input[type=text].active,
    input[type=text]:focus,
    input[type=text].focus {
        background-color: #EBEDF3;
        border: solid 1px rgb(5,114,236);
        outline: none;
        transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

input[type=number] {
    background-color: #F3F6F9;
    border-radius: 6px;
    border: solid 1px #F3F6F9;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 1.1rem;
    box-sizing: border-box;
    display: block;
    width: 100%;
    color: #3F4254;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    input[type=number]:active,
    input[type=number].active,
    input[type=number]:focus,
    input[type=number].focus {
        background-color: #EBEDF3;
        border: solid 1px rgb(5,114,236);
        outline: none;
        transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

input[type=date] {
    background-color: #F3F6F9;
    border-radius: 6px;
    border: solid 1px #F3F6F9;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 1.1rem;
    box-sizing: border-box;
    display: block;
    width: 100%;
    color: #3F4254;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    input[type=date]:active,
    input[type=date].active,
    input[type=date]:focus,
    input[type=date].focus {
        background-color: #EBEDF3;
        border: solid 1px rgb(5,114,236);
        outline: none;
        transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

input[type=datetime-local] {
    background-color: #F3F6F9;
    border-radius: 6px;
    border: solid 1px #F3F6F9;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 1.1rem;
    box-sizing: border-box;
    display: block;
    width: 100%;
    color: #3F4254;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    input[type=datetime-local]:active,
    input[type=datetime-local].active,
    input[type=datetime-local]:focus,
    input[type=datetime-local].focus {
        background-color: #EBEDF3;
        border: solid 1px rgb(5,114,236);
        outline: none;
        transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

textarea {
    background-color: #F3F6F9;
    border-radius: 6px;
    border: solid 1px #F3F6F9;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 1.1rem;
    box-sizing: border-box;
    display: block;
    width: 100%;
    color: #3F4254;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    textarea:active,
    textarea.active,
    textarea:focus,
    textarea.focus {
        background-color: #EBEDF3;
        border: solid 1px rgb(5,114,236);
        outline: none;
        transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

select {
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #F3F6F9;
    border-radius: 6px;
    border: solid 1px #F3F6F9;
    padding: 12px;
    font-size: 1.1rem;
    box-sizing: border-box;
    display: block;
    width: 100%;
    color: #3F4254;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" fill="%233F4254" viewBox="0 0 20 20"><polygon points="5,7 15,7 10,12"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

    /* Firefox fix for inconsistent padding in some versions */
    select:-moz-focusring {
        padding-left: 12px !important;
        padding-right: 36px !important; /* Adjusted for custom arrow */
    }

    /* IE11 and Edge Legacy fix */
    select::-ms-expand {
        display: none;
    }

input[type=password] {
    background-color: #F3F6F9;
    border-radius: 6px;
    border: solid 1px #F3F6F9;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 1.1rem;
    box-sizing: border-box;
    display: block;
    width: 100%;
    color: #3F4254;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    input[type=password]:active,
    input[type=password].active,
    input[type=password]:focus,
    input[type=password].focus {
        background-color: #EBEDF3;
        border: solid 1px rgb(5,114,236);
        outline: none;
        transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

input[type="checkbox"] {
    display: none;
}

    input[type="checkbox"] + label {
        display: inline-block;
        width: 100%;
        height: 20px;
        background: url('/img/checkbox-inactive.png') no-repeat;
        margin-bottom: 10px;
    }

    input[type="checkbox"]:checked + label {
        background: url('/img/checkbox-active.png') no-repeat;
    }

    input[type="checkbox"] + label span {
        margin-left: 30px;
    }

.btn {
    border-radius: 20px;
    font-weight: bold;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 9px;
    padding-bottom: 9px;
    text-decoration: none;
    font-size: smaller;
}

    .btn.disabled {
        background-color: silver;
        border-color: silver;
        color: white;
        pointer-events: none;
    }

    .btn:hover {
        text-decoration: none;
    }

.btn-primary {
    background-color: #394A38;
    color: white;
}

    .btn-primary:hover {
        background-color: darkgray;
    }

    .btn-primary:active {
        background-color: limegreen;
    }

.btn-secondary {
    background-color: white;
    border: solid 1px #394A38;
    color: #394A38;
}

    .btn-secondary:hover {
        background-color: darkgray;
        border: none;
        color: white;
    }

    .btn-secondary:active {
        background-color: limegreen;
    }

.actionbutton {
    text-decoration: none;
    color: white;
    font-size: smaller;
}

    .actionbutton:hover {
        text-decoration: none;
        color: lightgray;
    }

    .actionbutton:active {
        color: limegreen;
    }

.listrow {
    border-bottom: solid 1px silver;
    border-left: solid 1px silver;
    border-right: solid 1px silver;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 15px;
}

    .listrow:hover {
        color: #394A38;
        background-color: #F6F7Fb;
    }

div .listrow:first-child {
    border-top: solid 1px silver;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

div .listrow.headed {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

div .listrow:not(:first-child) {
}

div .listrow:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-top: none;
}

.reporthead {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    font-size: smaller;
}

.reporttable {
    width: 100%;
    border: solid 1px black;
    margin-top: 20px;
}

    .reporttable thead {
        background-color: lightgray;
        border: solid 1px black;
        font-size: small;
    }

.reportrow {
    font-size: small;
}

.listtitle {
    background-color: #394A38;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 10px;
    color: white;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    margin-top: 20px;
}

.tablink {
    font-size: larger;
    font-weight: bold;
    color: rgb(199,199,199);
    text-decoration: none;
}

    .tablink.selected {
        color: black;
        text-decoration: underline;
    }

.tabrow {
    display: flex;
    flex-direction: row;
    gap: 30px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .tabrow::-webkit-scrollbar {
        display: none;
    }

.vcenterdiv {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hcenterdiv {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: row;
}

.dialog {
    position: absolute;
    background-color: white;
    border-radius: 6px;
    border: solid 1px black;
    z-index: 100;
    display: flex;
    flex-direction: column;
    top: -100%;
    left: 0;
}

    .dialog .title {
        background-color: #394A38;
        color: white;
        padding: 10px;
        flex-grow: 1;
        font-weight: bold;
    }

    .dialog .content {
        background-color: white;
        flex-grow: 3;
        overflow-y: auto;
    }

    .dialog .innercontent {
        padding: 15px;
    }

    .dialog .buttons {
        background-color: rgb(246,247,251);
        padding: 15px;
        flex-grow: 1;
    }

.smalldialog {
    max-width: 50%;
    max-height: 50%;
}

.largedialog {
    width: 85%;
    height: 80%;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #BDBDBD;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #6E6E6E;
    }

.color-change {
    width: 24px;
    height: 24px;
}

    .color-change svg path {
        fill: red;
    }

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-1 {
    flex: 0 0 auto;
    width: 8.33%;
}

.col-2 {
    flex: 0 0 auto;
    width: 16.67%;
}

.col-3 {
    flex: 0 0 auto;
    width: 25%;
}

.col-4 {
    flex: 0 0 auto;
    width: 33.33%;
}

.col-5 {
    flex: 0 0 auto;
    width: 41.67%;
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-7 {
    flex: 0 0 auto;
    width: 58.33%;
}

.col-8 {
    flex: 0 0 auto;
    width: 66.67%;
}

.col-9 {
    flex: 0 0 auto;
    width: 75%;
}

.col-10 {
    flex: 0 0 auto;
    width: 83.33%;
}

.col-11 {
    flex: 0 0 auto;
    width: 91.67%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.tbcontainer {
    position: relative;
}

.tbinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.tbreveal {
    cursor: pointer;
}

    .tbreveal:hover {
        color: green;
    }

@media(max-width:768px) {
    #menugutter {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 250px;
        z-index: 1000;
        background-color: white;
        min-width: 0;
        overflow-y: auto;
    }

    #innermenugutter {
        padding: 45px;
        background-color: rgba(92,190,92,0.3);
        overflow-y: auto;
    }

    #maincontainer {
        padding: 7px;
    }

    .actionbuttontext {
        display: none;
    }

    .gutteractivate {
        display: inline;
    }
}

@media(min-width:769px) {
    #menugutter {
        min-width: 220px;
    }

    #maincontainer {
        padding: 15px;
    }

    #gutterback {
        display: none;
    }

    .gutteractivate {
        display: none;
    }
}
