@import "font.css";
@import "indicators.css";
@import "colors.css";
html {
    font-size: 56.25%;
}
div.content {
    font-size: 80%;
}
body {
    font-family: "Noto Sans Mono", sans-serif;
    font-weight: 400;
    background: var(--color-main-bg);
}

.block {
    display: block !important;
}

.top-nav-links,
.side-nav,
h1, h2, h3, h4, h5, h6 {
    font-family: "Noto Sans Mono", sans-serif;
}
@media only screen and (max-width: 600px) {
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 600px) {
    .mobile-hidden {
        display: none !important;
        width: 0 !important;
    }
}

.reset {
    margin: auto;
    padding: 0;
    height: auto;
}

.align-center {
    display: block;
    margin: 0 auto;
}

.compact,
.compact * {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

@media only screen and (max-width: 600px) {
    h3 {
        font-size: 2.2rem;
    }
}
.button {
    margin-right: 0.5rem;
}
.button.inverse {
    background: var(--color-white);
    border-color: var(--color-fransight-red);
    color: var(--color-fransight-red);
}
@media only screen and (max-width: 600px) {
    .button {
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
        height: 2.9rem;
        line-height: 2.9rem;
        padding: 0 2rem;
    }
}
.button-small {
    margin-bottom: 0;
    height: 2.5rem;
    padding: 0 1.7rem;
    line-height: 2.5rem;
}
.button-tiny {
    margin-bottom: 0;
    height: 1.5rem;
    padding: 0 1.1rem;
    line-height: 1.5rem;
    font-size: 8px;
}
.hidden {
    display: none;
}

.align-right {
    text-align: right;
}
.nav-sub-nav {
    margin-left: 20px;
}

.top-right {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
}
.top-right-secondary {
    position: absolute !important;
    top: 50px !important;
    right: 10px !important;
}
.bottom-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.menu-burger {
    display: none;
}

.app-logo {
    flex: 0 0 auto;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 0;
}
.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media only screen and (max-width: 600px) {
    .app-logo {
        position: fixed;
        top: 5px;
        left: 5px;
        width: 30px;
        height: 30px;
        z-index: 1000;
    }
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1;
}


.nav-admin-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.nav-admin-trigger {
    cursor: pointer;
}
.nav-admin-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--color-white);
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 200;
    padding: 4px 0;
}
.nav-admin-dropdown:hover .nav-admin-dropdown-menu {
    display: block;
}
.nav-admin-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    white-space: nowrap;
}



.top-nav-title {
    font-size: 18pt;
    font-weight: bold;
    position: relative;
    padding-left: 90px;
}
.top-nav-subtitle {
    font-size: 8pt;
    font-weight: lighter;
}
@media only screen and (max-width: 600px) {
    .menu-burger {
        display: block;
        position: fixed;
        top: 5px;
        right: 5px;
        cursor: pointer;
        height: 30px;
        width: 30px;
        z-index: 1000;
    }

    .top-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .top-nav-title {
        font-size: 14pt;
        font-weight: bold;
        padding-left: 60px;
        min-height: 30px;
    }

    .top-nav-links {
        display: none;
    }

    .top-nav-links.visible {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        align-items: center;
        gap: 4px;
        padding: 4px 0;
        white-space: nowrap;
    }

    .nav-icon {
        display: inline-flex;
        flex-shrink: 0;
    }

    .nav-admin-dropdown {
        display: contents;
    }
    .nav-admin-dropdown:hover .nav-admin-dropdown-menu {
        display: contents;
    }
    .nav-admin-trigger {
        display: none;
    }
    .nav-admin-dropdown-menu {
        display: contents;
    }
    .nav-admin-dropdown-menu a {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        font-size: 0.8em;
        background: rgba(47, 133, 174, 0.1);
        border-radius: 1em;
        padding: 3px 10px;
    }
}

.relative {
    position: relative;
}

.branding.logo {
    position: absolute;
    top: -20px;
    left: 0px;
    height: 80px;
}

@media only screen and (max-width: 600px) {
    .branding.logo {
        top: -10px;
        left: 0px;
        height: 50px;
    }
}
.relative {
    position: relative;
}

.absolute-top-right {
    position: absolute;
    top: 0;
    right: 0;
}

.absolute-top-left {
    position: absolute;
    top: 0;
    left: 0;
}

.company_registration {
    margin: 0 0 20px 0;
    padding: 10px;
    border-radius: 20px;
    background-color: #efefef;
    display: inline-block;

    /* font-size: 10pt; */

    width: 100%;
}
.company_registration h5 {
}
.company_registration ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.company_registration ul li {
    margin: 0;
    padding: 0;
}

.supplier_summary {
    margin: 0 0 20px 0;
    padding: 10px;
    border-radius: 20px;
    background-color: #fff2f2;
    display: inline-block;

    vertical-align: top;
    width: calc(50% - 5px);
}

.half-block {
    position: relative;
    display: inline-block;
    width: calc(50% - 5px);
    vertical-align: top;
}
@media only screen and (max-width: 600px) {
    .half-block {
        display: block;
        width: 100%;
    }
}

.third-block {
    position: relative;
    display: inline-block;
    width: calc(33% - 4px);
    vertical-align: top;
}
@media only screen and (max-width: 600px) {
    .third-block {
        display: block;
        width: 100%;
    }
}

table.compact-table tr {
    line-height: initial;
}
table.compact-table tr td {
    padding: 2px 3px;
}

hr {
    margin: 1rem 0;
    border-top-color: #6c757d;
}


.device-status::before {
    content: '';
    display: inline-block;
    width: .6em;
    height: .6em;
    border-radius: 50%;
    margin-right: .35em;
    vertical-align: middle;
}
.device-status.online::before  { background: #28a745; }
.device-status.offline::before { background: #dc3545; }
.device-status.unknown::before { background: #6c757d; }