@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9em;
}

a, .btn-link {
    color: #0366d6;
}

    a.btn-sm {
        cursor: pointer;
    }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* scroll hack */
app > .main > .content {
    height: calc(100vh - 3.5rem);
    overflow: auto;
}

/*table.table td > a, table.table td > span {
    display: block;
    padding: 0.3rem;
}*/

.dropdown-item {
    cursor: pointer;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row.auth {
        z-index: 10;
    }

.develop-info .api-info {
    display: none;
    position: absolute;
    width: 450px;
    background-color: white;
    padding: 20px;
    border: solid 1px black;
    overflow: auto;
}

.develop-info:hover .api-info {
    display: block;
}

.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;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

        .sidebar .top-row.navbar {
            padding: 0;
            background-color: #f7f7f7;
            border-right: 1px solid #d6d5d5;
        }

    .sidebar .navbar-brand img {
        height: 40px;
    }

    .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;
            }

        .sidebar .nav-subitems > ul {
            padding-left: 15px;
        }

        .content { padding-top: 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;
}

.bg-dark span {
    color: white;
}

#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 (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }

    .sidebar {
        display: none;
    }
}

@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;
    }
}


/* blazor reconnect */
.blazor-reconnect-modal > div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    background-color: rgba(255,255,255,.8);
    text-align: center;
    font-weight: bold;
}

.components-reconnect-hide > div {
    display: none;
}

.components-reconnect-show > div {
    display: none;
}

.components-reconnect-show > .show {
    display: block;
}

.components-reconnect-failed > div {
    display: none;
}

.components-reconnect-failed > .failed {
    display: block;
}

.components-reconnect-rejected > div {
    display: none;
}

.components-reconnect-rejected > .rejected {
    display: block;
}

.blazor-reconnect-modal > div > p {
    margin-top: 30vh;
    display: block;
    padding: 30px;
    opacity: 1;
    width: 30vw;
    margin-left: auto;
    margin-right: auto;
}


/* modal loading */
.modal-body .loading {
    margin-left: calc(50% - 24px);
    height: 48px;
    width: 48px;
    color: rgba(90, 90, 90, 0.2);
    position: relative;
    display: inline-block;
    border: 5px solid;
    border-radius: 50%;
    border-right-color: #5a5a5a;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* toasts */
.toasts {
    position: relative;
}

    .toasts > div {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 100;
    }

    .toasts .toast {
        min-width: 250px;
    }

        .toasts .toast.toast-error, .toasts .toast.toast-error .toast-header {
            background-color: lightcoral;
        }


/* sores */
.store-info.active {
    color: red;
    font-weight: bold;
}


/* quick order */
.fast-order-lookup input {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.fast-order-lookup {
    padding: 0;
}
/*quick order min height*/
#quick-order-form .tab-content {
    min-height: 210px;
}

.blazored-typeahead__result,
.blazored-typeahead__notfound,
.blazored-typeahead__results-header,
.blazored-typeahead__results-footer {
    padding: 0px 5px !important;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.editable-field-InventarniProduktUUID .blazored-typeahead {width: 500px;}


/* requests */
.table-striped tbody tr.state-Request { background-color: #ffa8a8; }

.table-striped tbody tr.state-OnTheWay {
    background-color: #d5d53f;
}

.table-striped tbody tr.type-Out.state-OnTheWay {
    background-color: #59c859;
}

.table-striped tbody tr.state-Confirmed {
    background-color: #fff;
}

.list-requests .doc-items, .list-packages .doc-items { display: none; position: absolute; right: 0; background-color: #fff; padding: 1rem; width: 40rem; z-index: 8; border: solid 1px #000; }

.list-requests .hover-docs, .list-packages .hover-docs { display: inline-block; position: relative; }

    .list-requests .hover-docs:hover .doc-items, .list-packages .hover-docs:hover .doc-items { display: block; }

.list-requests .doc-items p, .list-packages .doc-items p { color: black; }

/* grid */



/* stats */
.stats-sums td, .stats-sums th {
    padding: 10px;
}

.stats-sums {
    background-color: #dedede;
    font-weight: bold;
}


/* system override */
.modal-body textarea {
    width: 470px;
    height: 200px;
}

body .modal-dialog {max-width: 70vw;}
#loginForm {width: 450px;}

/* inline lookup */
.inline-lookup { position: relative; }

    .inline-lookup button {
        position: absolute;
        right: 0;
        top: 0;
    }

.location-free {
    color: green;
}
.location-full {
    color: red;
}

/* File Input translations */

.custom-file-label::after{
    content:"Hledat" !important;
}


/* store-location */
.store-location .badge > span {
    display: inline-block;
    padding: 2px;
}
.store-location .badge .badge-close {
    background-color: #6c757d;
    margin-left: 3px;
}

/* fixed grid head */
.fixed-head table { text-align: left; position: relative; border-collapse: collapse; }
.fixed-head th { background: white; position: sticky; top: 0; box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4); }
.main .content .fixed-head th { top: -1.1rem; }

/* BUGs */
.editable-field-type-CheckBox .form-group > label {display: none;}


/* inventary store */
.dev-grid-col-Prijem_vydej { width: 340px; }


/* invoice */
.subinvoice-hover { display: none; position: absolute; background-color: white; padding: 10px; border: solid 1px black; margin-left: 30px; }
.subinvoice-hover td {padding: 2px 10px;}
.subinvoice:hover .subinvoice-hover { display: block; }

/* grid select */
.dev-grid tr:has(.item-selected) { background-color: #5db95d; }
.dev-grid-col-Number input{margin-right: 10px;}
.main .table-striped tbody tr.item-selected { background-color: #5db95d; }
