﻿* {
    font-family: Arial, Helvetica, sans-serif;
}

    *:disabled {
        cursor: not-allowed;
    }

body {
    margin: 0;
}

label {
    display: block;
    margin-top: 0.5em;
}

.form-input {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
}

    .form-input.modified.valid {
        border: 2px solid #076f32;
    }

    .form-input.invalid {
        border: 2px solid #00a2de;
    }

    .form-input.modified.invalid {
        border: 2px solid #cd1316;
    }

input[type=checkbox] {
    width: initial;
}

input[type=radio] {
    width: initial;
}

    input[type=radio] + label {
        display: initial;
    }

.sentinel-large-header {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3em;
    padding-bottom: 2em;
    height: 120px;
}

.application {
    display: grid;
    height: 100vh;
    grid-template-columns: 350px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: 'menu-top menu-top' 'menu-side content';
}

.application-no-menu {
    display: grid;
    height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: 'menu-top' 'content';
}

.button {
    cursor: pointer;
    background-color: #646363;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

    .button + .button {
        margin-left: 0.25em;
    }

    .button:hover {
        background-color: #d0d0d0;
    }

    .button:disabled {
        background: repeating-linear-gradient( 45deg, #646363, #646363 10px, #d0d0d0 10px, #d0d0d0 20px );
    }

.button-block {
    width: 100%;
}

    .button-block + .button-block {
        margin-left: 0;
        margin-top: 0.25em;
    }

.button-transmitter {
    background-color: #009e99;
}

    .button-transmitter:hover {
        background-color: #2cb5b5;
    }

    .button-transmitter:disabled {
        background: repeating-linear-gradient( 45deg, #009e99, #009e99 10px, #2cb5b5 10px, #2cb5b5 20px );
    }

.button-receiver {
    background-color: #007fc6;
}

    .button-receiver:hover {
        background-color: #00a2de;
    }

    .button-receiver:disabled {
        background: repeating-linear-gradient( 45deg, #007fc6, #007fc6 10px, #00a2de 10px, #00a2de 20px );
    }

.button-set {
    background-color: #e36c18;
}

    .button-set:hover {
        background-color: #eea100;
    }

    .button-set:disabled {
        background: repeating-linear-gradient( 45deg, #e36c18, #e36c18 10px, #eea100 10px, #eea100 20px );
    }

.button-security {
    background-color: #ac1410;
}

    .button-security:hover {
        background-color: #cd1316;
    }

    .button-security:disabled {
        background: repeating-linear-gradient( 45deg, #ac1410, #ac1410 10px, #cd1316 10px, #cd1316 20px );
    }


.button-zigbee {
    background-color: #000000;
}

    .button-zigbee:hover {
        background-color: #0e2a57;
    }

    .button-zigbee:disabled {
        background: repeating-linear-gradient( 45deg, #000000, #000000 10px, #0e2a57 10px, #0e2a57 20px );
    }

.button-ics {
    background-color: #03210e;
}

    .button-ics:hover {
        background-color: #076f32;
    }

    .button-ics:disabled {
        background: repeating-linear-gradient( 45deg, #03210e, #03210e 10px, #076f32 10px, #076f32 20px );
    }

.alert {
    padding: 10px;
    background-color: #646363;
    color: white;
    margin-bottom: 15px;
}

.alert-transmitter {
    background-color: #2cb5b5;
}

.alert-receiver {
    background-color: #00a2de;
}

.alert-set {
    background-color: #eea100;
}

.alert-security {
    background-color: #cd1316;
}


.alert-zigbee {
    background-color: #0e2a57;
}

.alert-ics {
    background-color: #076f32;
}

table {
    border-collapse: collapse;
    width: 100%;
}

td, th {
    border: 1px solid #ddd;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #03210e;
    color: white;
}

.discover-item {
    display: flex;
    padding: 1em;
    cursor: pointer;
    border-bottom: solid thin #ececec;
}

    .discover-item:hover {
        background-color: #ececec;
    }

    .discover-item:active {
        background-color: #d0d0d0;
    }

    .discover-item p {
        flex: 1;
        margin: 0;
    }

.tabbar {
    margin-top: 1em;
    display: flex;
    border-bottom: solid 0.25em #009e99;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.tabbar-tab {
    background-color: #646363;
    color: white;
    padding: 1em;
    flex-grow: 1;
}

    .tabbar-tab p {
        display: inline;
        margin-right: 0.5em;
    }

    .tabbar-tab button {
        float: right;
    }

    .tabbar-tab:hover {
        background-color: #d0d0d0;
    }

    .tabbar-tab.active {
        background-color: #009e99;
    }

        .tabbar-tab.active:hover {
            background-color: #2cd5b5;
        }

.tabbar-button {
    background-color: #646363;
    color: white;
    padding: 1em;
    cursor: pointer;
    border: none;
}

    .tabbar-button:hover {
        background-color: #d0d0d0;
    }

.component-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,1);
    z-index: 2;
}


    .component-overlay:hover {
        background-color: rgba(0,0,0,0.5);
    }
