﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

@font-face {
    font-family: MyImpact;
    src: url("/fonts/impact.ttf");
}

:root {
    color-scheme: light dark;
    --prm-color: black;
    --prm-bg-clr: black;
    --sec-color: gray;
    --lnk-color: #448aff;
    --mnu-color: #f6f6f6;
    --dlg-color: white;
    --bkg-color: #2062B8;
    --txt-color: white;
}

@media(prefers-color-scheme: dark) {
    :root {
        --prm-color: #ffffff;
        --sec-color: #b3b3b3;
        --lnk-color: #58a6ff;
        --mnu-color: #212121;
        --dlg-color: #404040;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Oxygen-Sans, Roboto, "Helvetica Neue", Cantarell, Ubuntu, Arial, sans-serif;
    margin: 0;
}

img {
    max-width: 100%;
}

.on-img-text {
    text-shadow: white -2px -2px 12px;
}

/*#region Layout */

/*#region Row */

.row {
    display: flex;
    align-items: center;
}

.list-row {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #d3d3d3;
}

    .list-row label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .list-row > .icon {
        margin-right: 6px;
    }

    .list-row b {
        font-weight: 500;
        white-space: nowrap;
        padding: 5px 10px;
        border: 1px solid #d3d3d3;
        border-radius: 5px;
    }

.row-right {
    flex-grow: 1;
    justify-content: flex-end;
    display: inline-flex;
    align-items: center;
}

.list-row-actions {
    padding: 16px;
}

/*#endregion*/

.sec {
    margin: 16px 0;
}

.sec-top-l {
    margin-top: 24px;
}

.column {
    margin-left: auto;
    margin-right: auto;
    max-width: 450px;
    padding: 0 16px;
}

.atc {
    text-align: center;
}

.fit-center {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/*#endregion*/

/*#region Spaces */

.my8 {
    margin: 8px 0;
}

.mt-8 {
    margin-top: -8px;
}

.m16 {
    margin: 16px;
}

/*#endregion*/

/*#region Nav Bar */

.nav-bar {
    padding: 20px 16px;
    height: 20px;
}

    .nav-bar.app {
        background-color: var(--bkg-color);
        color: var(--txt-color);
    }

div[onmouseover] {
    cursor: pointer;
}

a.bizlect {
    font-family: 'MyImpact';
    font-size: 26px;
    font-weight: normal;
    color: #21618C;
    text-shadow: #85C1E9 2px 2px 2px;
    text-decoration: none;
    margin-right: 8px;
}

a.bizlect2 {
    /*font-family: 'MyImpact';*/
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
}

a.bizlect:hover {
    text-decoration: none;
}

.nav-bar.app a.bizlect {
    color: white;
}

/*#endregion*/

.link-bar {
    display: flex;
    align-items: center;
    column-gap: 32px;
}

/*#region Menu */

.dd-menu {
    display: none;
    position: absolute;
    z-index: 9999;
    right: -24px;
    padding: 4px;
    background-color: var(--mnu-color);
    border: 1px solid #ddd;
}

    .dd-menu.left {
        left: 0;
        right: initial;
    }

    .dd-menu.fixed {
        position: fixed;
        width: fit-content;
    }

.show-dd {
    display: block;
}

.menu-item {
    position: relative;
    max-width: 160px;
    padding: 8px 6px 8px 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    color: black;
}

    .menu-item.admin {
        display: none;
    }

    .menu-item:hover {
        background-color: #d4d7dc;
        cursor: pointer;
    }

    .menu-item > .icon {
        font-size: 14px;
        position: absolute;
        top: 11px;
        left: 4px;
    }

        .menu-item > .icon.szm {
            font-size: 17px;
            top: 10px;
            left: 2px;
        }

    .menu-item > img {
        width: 14px;
        position: absolute;
        top: 11px;
        left: 4px;
    }

    .menu-item a {
        text-decoration: none;
        color: var(--prm-color);
    }

.menu-sep {
    border-bottom: 1px solid lightgray;
}

/*#endregion*/

/*#region Tabs */

.tab {
    border-top: 2px solid transparent;
}

    .tab.active {
        background-color: #dadada;
        border-top: 2px solid black;
    }

    .tab:hover {
        background-color: #d4d7dc;
        cursor: pointer;
    }

    .tab .icon.close {
        font-size: inherit;
        margin: -8px -8px -8px 8px;
        border: 2px solid transparent;
        border-radius: 50%;
        padding: 2px;
    }

        .tab .icon.close:hover {
            border-color: black;
        }

.tabs-btns-bar {
    display: flex;
    column-gap: 8px;
    border-bottom: 1px solid #d3d3d3;
}

    .tabs-btns-bar .tab {
        padding: 16px 14px;
    }

    .tabs-btns-bar .pill-btn {
        align-self: start;
    }

.btn-tabs {
    display: inline-block;
}

    .btn-tabs div {
        display: inline-block;
        padding: 8px 12px;
        border: 1px solid #d4d7dc;
        float: left;
    }

        .btn-tabs div:not(:last-child) {
            border-right: none;
        }

        .btn-tabs div:hover {
            background-color: #d4d7dc;
            cursor: pointer;
        }

    .btn-tabs .active {
        background-color: #d4d7dc;
        background-color: #dadada;
    }

    .btn-tabs:after {
        content: "";
        clear: both;
        display: table;
    }

.pill-tabs div:first-child {
    border-top-left-radius: 999em;
    border-bottom-left-radius: 999em;
}

.pill-tabs div:last-child {
    border-top-right-radius: 999em;
    border-bottom-right-radius: 999em;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

/*#endregion*/

/*#region Path */

.path-bar {
    display: flex;
    align-items: center;
}

.path-lnk {
    font-weight: 600;
}

    .path-lnk + .path-lnk:before {
        content: '\276F';
        margin: 0 8px;
        font-weight: normal;
    }

    .path-lnk:last-child {
        /*color: var(--bkg-color);*/
    }

    .path-lnk:not(:last-child):hover {
        text-decoration: underline;
        cursor: pointer;
    }

/*#endregion*/

/*#region Tables */

td.num {
    text-align: right;
}

.record-table {
    table-layout: fixed;
    border-spacing: 0;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro", monospace;
    font-size: 14px;
    color: #00557F;
    margin-bottom: 2px;
}

    .record-table th {
        border-bottom: 1px dotted gray;
        border-right: 1px dotted gray;
        padding: 4px 8px;
        background-color: #006699;
        color: white;
    }

    .record-table td {
        border-bottom: 1px dotted gray;
        border-right: 1px dotted gray;
        padding: 4px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
    }

        .record-table td .icon {
            font-size: 14px;
            vertical-align: middle;
        }

.tbl {
    table-layout: fixed;
    border-collapse: collapse;
}

    .tbl th, .tbl td {
        border-bottom: 1px dotted gray;
        border-right: 1px dotted gray;
        padding: 6px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        max-width: 300px;
    }

    .tbl tr:hover {
        background-color: #e5e5e5;
    }

    .tbl tr.active td {
        background-color: #e5e5e5;
    }

    .tbl .gold {
        background-color: gold;
        color: black;
        font-weight: 600;
    }

    .tbl input[type=text] {
        padding: 0;
        border: 0;
        font-size: initial;
    }

.bw-tbl th {
    background-color: #006699;
    color: white;
    font-weight: 400;
}

/*#endregion*/

/*#region Forms */

label {
    font-weight: 700;
}

.comment {
    color: gray;
    font-size: 12px;
    padding-left: 4px;
}

input[type=text],
input[type=number],
input[type=search],
input[type=tel],
input[type=url],
input[type=email] {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    outline: none;
    border: 1px solid lightgray;
    font-size: 16px;
    font-family: "Noto Sans";
    text-overflow: ellipsis;
}

input[type=checkbox] {
    width: unset;
    margin: 0 12px;
}

input[type=checkbox] {
    width: unset;
    position: relative;
    margin: 0 4px 0 0;
    top: 2px;
}

input[type=number] {
    text-align: right;
    width: 6em;
}

input[readonly] {
    background-color: lightgray;
}

textarea {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0;
    margin: 0;
    font-size: 18px;
    font-family: Verdana, sans-serif;
}

textarea {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    padding: 6px;
    border: 1px solid lightgray;
}

.input-box {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    align-items: center;
}

    .input-box > input + .icon {
        position: absolute;
        right: 4px;
        cursor: pointer;
    }

    .input-box > input[readonly] {
        cursor: pointer;
    }

    .input-box > input {
        /*border-radius: 999em;*/
        padding-right: 32px;
    }

    .input-box input:hover + .input-clear {
        display: inline-block;
    }

    .input-box .input-clear:hover {
        display: inline-block;
    }

.dd-list {
    display: none;
    position: absolute;
    color: black;
    background-color: #f6f6f6;
    border: 1px solid #ddd;
    overflow: hidden;
    overflow-y: scroll;
    left: 0;
    right: 0;
    z-index: 32;
}

    .dd-list div {
        line-height: 32px;
        padding: 6px;
    }

        .dd-list div:hover {
            background-color: #d4d7dc;
            cursor: pointer;
        }

select {
    outline: none;
}

    select.green {
        background-color: #3CB371;
        color: white;
    }

    select.blue {
        background-color: #448aff;
        color: white;
    }

    select.red {
        background-color: #CD5C5C;
        color: white;
    }

    select.orange {
        background-color: #ff8f00;
        color: white;
    }

/*#endregion*/

/*#region Buttons */

.pill-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--bkg-color);
    color: var(--txt-color);
    font-size: 16px;
    letter-spacing: .5px;
    white-space: nowrap;
    padding: 8px 24px 10px;
    border: 1px solid var(--bkg-color);
    border-radius: 999em;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.link-btn {
    display: inline-block;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    color: var(--bkg-color);
}

    .link-btn:hover {
        text-decoration: underline;
    }

.icon.btn {
    background-color: var(--bkg-color);
    color: var(--txt-color);
    border: 1px solid var(--bkg-color);
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
}

/*#endregion*/

/*#region Icons */

.icon {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

    .icon.close:before {
        content: 'close';
        cursor: pointer;
    }

    .icon.menu:before {
        content: 'menu';
        cursor: pointer;
    }

    .icon.back {
        float: left;
        cursor: pointer;
    }

        .icon.back:before {
            content: 'arrow_back';
        }

    .icon.xxl {
        font-size: 128px;
        color: var(--bkg-color);
    }

.dd-icon:after {
    content: 'arrow_drop_down';
}

/*#endregion*/

/*#region Colors */

.red {
    color: #CD5C5C;
    border-color: #CD5C5C;
}

.bg-red {
    background-color: #CD5C5C;
    border-color: #CD5C5C;
}

.lred {
    color: tomato;
}

.blue {
    color: var(--lnk-color);
    border-color: var(--lnk-color);
}

.bg-blue {
    background-color: blue !important;
}

.green {
    color: #3CB371;
    border-color: #3CB371;
}

.bg-green {
    border-color: #3CB371 !important;
    background-color: #3CB371 !important;
    color: white;
}

.bg-sky {
    background-color: #E1EEf4 !important;
}

.bg-test {
    background-color: #3CB371 !important;
}

.orange {
    color: #ff8f00;
    border-color: #ff8f00;
}

.brown {
    color: #9e9d24;
}

.yellow {
    color: #FFD700;
}

.lgray {
    color: lightgray;
}

.bg-lgray {
    background-color: #dadada;
}

.gray {
    color: rgb(168, 168, 168);
}

.black {
    color: var(--prm-color);
}

.test {
    border-bottom: 10px solid #6eb43f;
    border-top: 10px solid #ee3524;
    color: #00557F;
    color: #DD4A68;
    background-color: #F7CDCD;
    background-color: #DFFFDE;
    background-color: #E1EEf4;
    background-color: #36752D;
    background-color: #991821;
    background-color: #006699;
    background-color: #21618C;
}

/*#endregion*/

/*#region Banner */

.banner h1 {
    font-size: 39px;
    font-weight: 700;
    padding: 0;
    margin: 0;
}

.banner h2 {
    font-size: 34px;
    font-weight: 400;
    padding: 0;
    margin: 0;
}

.banner h3 {
    font-size: 20px;
    font-weight: 400;
    padding: 0;
    margin: 0;
}

.banner .list h3 {
    margin: 8px 0;
}

.top-bg {
    background-image: url("/images/gov-building.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: -100;
}

@media (min-width: 601px) {
    .banner {
        display: flex;
        justify-content: center;
        margin: 64px 0;
    }

        .banner.on-left {
            justify-content: flex-start;
            margin-left: 64px;
        }
}

/*#endregion*/

/*#region Empty */

.empty-view {
    padding: 32px 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    text-align: center;
}

/*#endregion*/

/*#region Messages */

.msg-icon {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 8px;
    text-align: center;
    font-family: Verdana;
    font-weight: bold;
    color: #e2eaf3;
}

.msg-error {
    padding: 8px;
    color: firebrick;
    background-color: #FFBABA;
    border-radius: 3px;
}

    .msg-error .msg-icon {
        background-color: red;
        font-size: 15px;
    }

        .msg-error .msg-icon:before {
            content: '\00D7';
        }

.msg-info {
    padding: 8px;
    color: #00529B;
    background-color: #BDE5F8;
    border-radius: 3px;
}

    .msg-info .msg-icon {
        background-color: darkblue;
    }

        .msg-info .msg-icon:before {
            content: 'i';
        }

/*#endregion*/

/*#region Progress */

.busy-pane {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
}

    .busy-pane > div {
        position: absolute;
        top: 40%;
        width: 100%;
        text-align: center;
        color: white;
    }

.busy-dual-ring {
    width: 80px;
    height: 80px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

    .busy-dual-ring:after {
        content: " ";
        display: block;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        border: 6px solid white;
        border-color: white transparent white transparent;
        animation: busy-dual-ring 1.2s linear infinite;
    }

@keyframes busy-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*#endregion*/

.cols {
    display: flex;
    column-gap: 8px;
    align-items: flex-start;
}

.sub-txt {
    font-size: 0.8em;
    color: gray;
}

.list-row input[type=radio] {
    margin-right: 18px;
}

.list-row > div {
    text-align: left;
}

.list-row em {
    vertical-align: text-top;
    margin: 0 6px;
    padding: 0 6px 2px 6px;
    border-radius: 1.2em;
    font-size: 0.8em;
    font-weight: 400;
    font-style: normal;
    background-color: tomato;
    color: white;
}
