﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    font-family: 'Roboto'
}

.password-eye {
    border: 1px solid #ced4da;
    background-color: white;
    cursor: pointer;
}

.logo-img {
    background-image: url(../images/logo.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%;
}
@media screen and (max-width: 767px) {
    .logo-img {
        background-image: url(../images/logo.png);
        background-position: left;
        background-repeat: no-repeat;
        background-size: 35%;
    }
   
}

.background-map {
    top: 0;
    left: 0;
    background-color: white;
    background-image: url(../images/background.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 100%;
}

.fit-content {
    width: fit-content
}

.btn-medi {
    color: white;
    border-color: #4E6E81;
    background-color: #d42323;
    white-space: normal;
    word-wrap: break-word;
}

    .btn-medi:focus {
        box-shadow: 0 0 0 0.2rem rgba(84,191,209,0.15);
    }

    .btn-medi:hover, .btn-medi:active {
        color: #fff;
        background-color: #d42323;
        border-color: #4E6E81;
    }

.btn-medi-white {
    color: #d42323;
    border-color: #4E6E81;
    background-color: white;
}

    .btn-medi-white.disabled {
        color: gray;
        border-color: gray;
    }

    .btn-medi-white:hover:not(.disabled), .btn-medi-white:active:not(.disabled) {
        color: #1861ac;
        border-color: #4E6E81;
        background-color: white;
    }

.btn-medi-red {
    color: red;
    border-color: red;
    background-color: white;
}

    .btn-medi-red.disabled {
        color: gray;
        border-color: gray;
    }

    .btn-medi-red:hover:not(.disabled), .btn-medi-white:active:not(.disabled) {
        color: #1861ac;
        border-color: #4E6E81;
        background-color: white;
    }

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.footer {
    overflow: hidden !important;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
    float: right;
}

.top-row-logo {
    height: 6.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
        background: white;
    }

        .main .top-row > a {
            margin-left: 1.5rem;
        }

.sidebar {
    background: white;
}

    .sidebar .top-row {
        border-bottom: 1px solid #d6d5d5;
        margin: 0;
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

.btn input[type=file] {
    cursor: pointer !important;
}

.table-start tr td:last-of-type {
    border-left: 3px solid #d42323;
}

.table-start tr td {
    border-bottom: none;
    border-top: none;
}

.mat-text-field, .h-40px {
    height: 40px !important;
    width: 100%;
}

.form-control:focus {
    border-color: #4E6E81;
    box-shadow: inset 0 1px 1px #4E6E81, 0 0 8px #4E6E81;
}

.accordion {
    --bs-accordion-active-bg: #4E6E81;
    --bs-accordion-active-color: white;
    --bs-accordion-btn-focus-border-color: #d42323;
    --bs-accordion-btn-focus-box-shadow: black;
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='black'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.nav-link:focus, .nav-link:hover {
    color: #d42323 !important;
}

.nav-item a.active, .nav-item a:hover {
    background-color: #e6e6e6 !important;
    border-right: 3px solid #d42323;
    color: #d42323 !important;
}

.nav {
    
    --bs-nav-link-hover-color: black;    
}

.pagination {
    --bs-pagination-color: #d42323;
    --bs-pagination-hover-color: #d42323;
    --bs-pagination-focus-color: #d42323;
    --bs-pagination-active-bg: #d42323;
    --bs-pagination-active-border-color: #d42323;
}

.scrollableY {
    overflow-y: auto;
}
.scrollableX {
    overflow-x: auto;
}

.nav-item {
    font-size: 1rem;
}

    .nav-item:first-of-type {
        margin-top: 1rem;
    }

    .nav-item:last-of-type {
        margin-bottom: 1rem;
    }

    .nav-item a {
        color: #354052;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        padding: 2rem 1.5rem;
        transition: background-color ease 0.3s;
    }

        .nav-item a.active, .nav-item a:hover {
            background-color: rgba(84,191,209,0.15);
            border-right: 3px solid #d42323;
        }

.content {
    padding-top: 1.1rem;
    padding-left: 4em;
}

.user_id {
    padding-right: 7px !important;
}

.modal-backdrop {
    z-index: 1 !important;
}

.row-hovershow .btn-hovershow {
    opacity: 0;
}

.row-hovershow:hover .btn-hovershow {
    opacity: 1;
}

.navbar-toggler {
    background-color: #B2B2B2;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.table-striped tbody tr:hover {
    background-color: rgba(0,0,0,0.15);
}

.table-striped tbody tr {
    transition: 0.3s;
}

.remove-table-hover tr:hover {
    background-color: unset !important;
}

.material-icons {
    padding-right: 17px;
    font-size: 28px;
    color: #d42323;
}

    .material-icons.red {
        color: red;
    }

    .material-icons.gray {
        color: gray;
    }

    .material-icons.md-18 {
        padding-right: 11px;
        font-size: 18px;
    }

    .material-icons.md-24 {
        padding-right: 14px;
        font-size: 24px;
    }

    .material-icons.md-36 {
        padding-right: 21px;
        font-size: 36px;
    }

    .material-icons.md-48 {
        padding-right: 23px;
        font-size: 48px;
    }

.validation-message {
    color: red;
}

.hover-hand {
    cursor: pointer;
}

.custom-tab-control {
    font-family: Arial, sans-serif;
}

/* Styly pro tab-headers (záložky) */
.tab-headers {
    display: flex;
    padding: 0px;
}

/* Styly pro jednotlivé záložky */
.tab-header {
    padding: 8px 16px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    /* Styly pro aktivní záložku */
    .tab-header.active {
        color: white;
        border-color: #d42323;
        background-color: #d42323;
        white-space: normal;
    }
    /* Styly pro zvýraznění záložky při hover */
    .tab-header:not(.active):hover {
        background-color: #f0f0f0; /* Změna barvy při najetí myši */
    }

/* Styly pro obsah záložek */
.tab-content {
    padding: 20px;
    border: 1px solid #e0e0e0;
    /*border-top: none;*/
    border-radius: 0px 0px 5px 5px;
    background-color: #ffffff;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.loader-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: #d42323;
    display: inline-block;
    -webkit-animation: grow 1.7s infinite ease-in-out both;
    animation: grow 1.7s infinite ease-in-out both;
}

    .loader-dot.dot1 {
        -webkit-animation-delay: -0.60s;
        animation-delay: -0.60s;
    }

    .loader-dot.dot2 {
        -webkit-animation-delay: -0.30s;
        animation-delay: -0.30s;
    }

@-webkit-keyframes grow {
    0%, 80%, 100% {
        -webkit-transform: scale(0)
    }

    40% {
        -webkit-transform: scale(1.0)
    }
}




@media (max-width: 767.98px) {
     .top-row {
        display: none;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        max-width: 320px;
        height: 95vh;
        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;
    }
}

.container-fluid {
    display: table;
    width: 100%;
}

    .container-fluid > .row {
        display: table-row;
    }

        .container-fluid > .row > * {
            display: table-cell;
            padding: 5px;
            white-space: nowrap;
        }

.col {
    width: 100%;
}

.row.equal-cols .col:not(:first-child):not(:last-child) {
    margin: 0px 1%;
}

#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: 1200px) {
    .modal-lg, .modal-xl {
        --bs-modal-width: 85%;
    }
}

@media (min-width: 801px) {
    app {
        max-width: 90vw;
    }
}
@media (max-width: 800.98px) {
    app {
        max-width: 84vw;
    }
    .modal-dialog {
        max-width: 80%;
    }
}

@media (max-width: 420px) {
    app {
        max-width: 99vw;
    }

    .modal-dialog {
        max-width: 95%;
    }
}

.table > :not(caption) > * > * {
    padding: 0;
}