@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 95%
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}
    .top-row-item {
        margin: 0 auto; /* Adjust as needed */
        margin-right:10px;
        text-align: right;
    }

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}


.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.popup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}


.maintitle {
    text-align: center;
}

.datalist-options-input {
    clear: both;
    margin: 0 auto;
    width: 100%;
    margin-bottom: 20px;
}

.bold-label {
    font-weight: bold;
}

.table-div {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    margin-bottom: 25px;
}

table.status-table {
    width: 100%;
    border-bottom: 3px solid #c1926b;
    border-left: 1px solid #f7f7f7;
}

.text-float-center-bottom {
    text-align: center;
    vertical-align: bottom;
}

.text-float-left {
    text-align: left !important;
}

.text-float-right {
    text-align: right !important;
}

.status-table th {
    text-align: center;
    height: 35px;
    color: #fff;
    background: -webkit-linear-gradient(0deg, #7f462c, #c1926b); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(0deg, #7f462c, #c1926b); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(0deg, #7f462c, #c1926b); /* For Firefox 3.6 to 15 */
    background: linear-gradient(0deg, #7f462c, #c1926b); /* Standard syntax (must be last) */
    border-left: 1px solid rgba(0,0,0,0.1);
    border-right: 1px solid rgba(0,0,0,0.1);
    vertical-align: bottom;
}

.status-table tr:nth-child(even) {
    background: #f2ebd5;
}

.status-table tr:nth-child(odd) {
    background: #fff;
}

.status-table > tbody > tr > td {
    text-align: center;
    border-left: 1px solid rgba(0,0,0,0.1);
    border-right: 1px solid rgba(0,0,0,0.1);
    vertical-align: bottom;
}

.status-table input {
    text-align: right;
}

table.status-table a {
    color: #0080ff;
    text-decoration: underline;
}

.input-field > tbody > tr > td {
    padding: 7px 5px 7px 5px !important;
}

.display-none {
    display: none;
}


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.href-do-nothing {
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: block;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

