@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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: 3rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
    background-color: dimgray;
}

    .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: 0;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.padding-0 {
    padding-right: 0;
    padding-left: 0;
}

.sidebar {
    background: url('/img/munkalapLoginBG.png') no-repeat center center;
    background-size: cover;
}

    .sidebar .top-row {
        background-color: rgba(0, 0, 0, 0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255, 255, 255, 0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255, 255, 255, 0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.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;
}

#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;
    }

@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: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-toggler {
        display: flex;
    }

    .sidebar .collapse {
        display: block;
    }

    .navbar-toggler-icon {
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        vertical-align: middle;
        background: no-repeat center center;
        background-size: 100% 100%;
    }
}

.ui-fieldset {
    border: 2px double #337AB7;
}

fieldset {
    min-width: 0;
    padding: 0;
    padding-left: 15px;
    margin: 0 0 10px 0;
    border: 0;
}

.ui-fieldset-legend {
    margin: 0 0 0 1rem;
    width: auto;
    color: black;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0 1rem;
}

.ui-fieldset-content-wrapper {
    overflow: hidden;
}

.bg-fieldset-color {
    background-color: white;
    margin-top: 15px;
}

.ui-fieldset-content {
    padding: 0 0.5rem 0.5rem 0;
    border: 0;
}

@media only screen and (min-width: 600px) {
    .ui-fieldset-dynamic-content {
        padding: 0 0.5rem 0.5rem 0;
    }

    .ui-fieldset-dynamic-content-mobil {
        display: none;
    }

    .col-sm-3.first-field {
        margin-bottom: 4px;
    }

    input[type="date"] {
        width: 100%;
    }
}

@media only screen and (max-width: 599.98px) {
    .ui-fieldset-legend {
        font-size: 1rem;
    }

    .ui-fieldset-dynamic-content {
        display: none;
    }

    .ui-fieldset-dynamic-content-mobil {
        padding: 0.125rem 0 0.3rem 0;
    }

    .form_control, .blazored-typeahead {
        margin-top: 5px;
        margin-bottom: 5px;
    }

        .ui-fieldset-dynamic-content-mobil .form_control + label, .blazored-typeahead + label {
            display: flex;
            position: absolute;
            top: 20px;
            left: 15px;
            right: 10px;
            font-size: 18px;
            background-color: transparent;
            margin-left: 0.5rem;
            padding-top: 5px;
            padding-bottom: 15px;
            color: #aaa;
            transition: 0.1s ease-in-out;
        }

    .ui-fieldset-dynamic-content-mobil .form_control {
        border: 1px solid #ced4da;
    }

    .ui-fieldset-dynamic-content-mobil .valid.modified:not([type="checkbox"]) {
        padding: 0;
        min-width: 70px;
    }

    .btn-success {
        margin-bottom: 10px;
    }
}

.bg-fieldset-color.dynamic-content {
    background-color: beige;
    margin-top: 0;
}

label {
    display: contents;
}

textarea {
    resize: none;
}

    textarea.form-control {
        height: auto;
        margin: 5px 0 0 0;
    }

.form_control {
    height: 41px;
    border-radius: 5px;
    border: 1px solid #aaa;
    background-color: white;
    color: black;
    display: block;
    width: 100%;
    padding: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background-clip: padding-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form_control + label, .blazored-typeahead + label {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        font-size: 18px;
        background-color: white;
        margin-left: 0;
        padding-left: 1px;
        padding-right: 1px;
        color: #aaa;
        transition: 0.1s ease-in-out;
    }

    .form_control:focus {
        border-color: rgb(88, 0, 214);
        transition: all 0.1s ease-in-out;
    }

        .form_control:focus + label, .form_control.has_class + label, .blazored-typeahead + label {
            top: -8px;
            color: #495057;
            font-size: 12px;
        }

    .form_control.has_class.readonly {
        cursor: not-allowed;
        background-color: #f5f5cb;
    }

        .form_control.has_class.readonly + label, .form_control.has_class.transparent_label + label {
            background-color: transparent;
        }

.modal-body {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

@media only screen and (max-width: 599.98px) {
    .modal-dialog {
        max-width: 90%;
        margin: 1.75rem auto;
    }

    .modal-content {
        height: auto;
        overflow-y: auto;
    }
}

@media only screen and (min-width: 600px) {
    .modal-dialog {
        max-width: 600px;
        height: 360px;
        pointer-events: auto !important;
    }
}

hr {
    display: flex;
    margin-top: 0;
    margin-bottom: 0;
    border-style: none;
    border-width: 0;
    border-color: white;
    padding-bottom: 2px;
}

.form-control {
    padding: 0;
}

input[type="date"], input[type="datetime-local"], input[type="month"], input[type="time"] {
    -webkit-appearance: listbox;
    min-width: 10px;
}

input[type="number"] {
    text-align: right;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #26b050;
    padding: 0;
    min-width: 70px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 30px;
    color: black;
}

    .header #h5_header {
        display: inline;
        font-weight: bold;
        font-size: 1.8rem;
    }

.col-lg-6.login_div {
    float: none;
    margin: auto;
    text-align: center;
}

.cb_class {
    margin: 15px 3px 10px 0;
}

.col-sm-6.cb_class {
    margin: 0 3px 10px 0;
}

input[type="checkbox"], input[type="radio"] {
    margin-right: 5px;
}

.container {
    max-width: 1250px;
    background-color: white;
}

.col-sm-3 > .blazored-typeahead__input {
    flex: 1;
    max-width: 100%;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
}

.action_buttons {
    width: 100%;
    height: 50px;
    margin-bottom: 10px;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.row.column1-row {
    width: 100%;
}

@media (min-width: 850px) {
    .img-qr {
        background-color: white;
        width: 140px;
        height: 140px;
        margin-top: -10px;
    }
}

@media screen and (max-width: 849.98px) and (min-width: 750px) {
    .img-qr {
        background-color: black;
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 749.98px) {
    .img-qr {
        display: none;
    }
}

.spinner {
    border: 16px solid silver;
    border-top: 16px solid #337AB7;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1000ms linear infinite;
    top: 40%;
    left: 55%;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form_control.has_class.number_type, .form-control.number_type {
    text-align: right;
}

.main .top-row {
    position: inherit;
}

.blazored-typeahead.valid.modified, .blazored-typeahead {
    background-color: white;
}

@media (min-width: 1082px) {
    .col-sm-2 > .blazored-typeahead > .blazored-typeahead__controls > .blazored-typeahead__input {
        max-width: 70%;
    }
}

@media screen and (max-width: 1081.98px) and (min-width: 1001px) {
    .col-sm-2 > .blazored-typeahead > .blazored-typeahead__controls > .blazored-typeahead__input {
        max-width: 67%;
    }
}

@media screen and (max-width: 1000.98px) and (min-width: 912px) {
    .col-sm-2 > .blazored-typeahead > .blazored-typeahead__controls > .blazored-typeahead__input {
        max-width: 64%;
    }
}

@media screen and (max-width: 911.98px) and (min-width: 816px) {
    .col-sm-2 > .blazored-typeahead > .blazored-typeahead__controls > .blazored-typeahead__input {
        max-width: 58%;
    }
}

@media screen and (max-width: 815.98px) and (min-width: 740px) {
    .col-sm-2 > .blazored-typeahead > .blazored-typeahead__controls > .blazored-typeahead__input {
        max-width: 50%;
    }
}

@media screen and (max-width: 739.98px) and (min-width: 599px) {
    .col-sm-2 > .blazored-typeahead > .blazored-typeahead__controls > .blazored-typeahead__input {
        max-width: 38%;
    }
}

.cb_teriteses_item {
    margin-left: -32px;
    margin-right: 5px;
}

.cb_megjegyzes_item {
    margin-left: -8px;
}

.form-control.input_teriteses_item {
    margin-top: -24px;
}

@media screen and (max-width: 599.98px) {
    .modal-body > .form-group.row.button {
        display: grid;
    }
}

@media screen and (min-width: 600px) {
    .modal-body > .form-group.row.button {
        text-align: center;
        display: block;
    }
}

.dividerClass {
    border-top-color: #d7d7d7;
    margin: 0;
    padding: 0;
    border: 1px double #337AB7;
}

.form-group {
    margin: 0;
    padding: 0;
}

.form-control {
    padding-left: 2px;
    padding-right: 2px;
}

.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
    padding-left: 3px;
    padding-right: 2px;
    padding-bottom: 0;
}

.fixTableHead {
    overflow-y: auto;
    height: 300px;
}

    .fixTableHead thead th {
        position: sticky;
        top: 0;
    }

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 8px 15px;
    border: 2px solid #529432;
}

th {
    background: #ABDD93;
}

.grid-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.btn-column-chooser {
    width: 16px;
    height: 16px;
    -webkit-mask-image: url("images/icons/column-chooser.svg");
    mask-image: url("images/icons/column-chooser.svg");
    background-color: currentColor;
}

.fab-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    user-select: none;
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35) !important;
}

.flexGrid {
    flex: 1 1 auto;
    overflow-y: auto;
}
