﻿:root {
    --cis-color-hover: #e4eaee;
    --cis-color-header: #e4e4e4;
}

header { position: relative; }
header .ajax-link { color: var(--gov-color-blue); text-decoration: none; font-weight:bold; }
header .ajax-link:hover { color: var(--gov-color-blue-light-hover); text-decoration: underline; }
#main { padding: 0; height: calc(100vh - 92px) }

h2 { margin: 0; font-weight: bold; font-size: 2rem; }
h3 { margin: 0 !important; font-size: 1.15rem; }
p { margin-bottom: 5px; font-size: 1.05rem; }

label { white-space: nowrap; color: var(--gov-color-grey-dark)}
label[for] { cursor: pointer; }

.gov-button { height: 42px !important; padding: .825rem; }
.gov-button:focus { border-color: initial; }

.gov-logo__sitename-env {
    display: block;
}

#help {
    display: none;
}

a[data-icon]:before, button[data-icon]:before {
    font-size: 14px;
    font-family: FontAwesome !important;
}

button[data-icon="api"]:before { content: '\f121' }

button[data-icon="sitemap"]:before {
    content: '\f0e8'
}

button[data-icon="filter"]:before {
    content: '\f0b0'
}

#app-modal {
    position: fixed;
    right: 50%;
    bottom: 50%;
    transform: translate(50%, 50%);
    width: auto;
    min-width: 200px;
    background-color: white;
    z-index: 10000;
    border-radius: 10px;
}

    #app-modal h2 {
        margin: 0;
    }

.cis-wrapper {
    padding: 0.75rem 1.25rem 1.5rem 1.25rem;
}

.gov-form-control {
    margin-bottom: 0 !important;
}

.gov-form-control--classic {
    display: flex;
    flex-direction: column;
}

.gov-form-control__input {
    padding: 0.5rem 0.75rem;
    line-height: 1.375;
}

.gov-form-control--classic .gov-form-control__input {
    order: 2;
    height: 42px;
}

.gov-form-control--classic .gov-form-control__input::placeholder {
    color: gray;
}

.gov-form-control--classic select {
    padding: 0.5rem 0.75rem;
    line-height: 1.375;
    order: 2;
}

.gov-form-control input[type='date'] { max-width: 150px; height: 42px; }

.gov-form-control--classic .gov-form-control__label {
    order: 1;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--gov-color-grey-mid);
    margin-bottom: 0.25rem;
}

header .gov-form-control--classic.search {
    margin: 0;
    width: 400px;
}

.cis-header-main {
    display:flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tblCisDetail {
    width: auto;
}

.tblCisDetail tr:last-child {
    border: none;
}

.tblCisDetail tr td {
    font-size: 14px;
    color: black;
    white-space: nowrap;
    min-width: 0;
}

.tblCisDetail tr td a {
    font-size: 14px;
    color: var(--gov-color-blue-light);
    text-decoration: underline !important;
}

.tblCisDetail tr td a:hover {
    color: var(--gov-color-blue-light-hover) !important;
}

.gov-form-control--classic.search input {
    padding-left: 35px;
}

.gov-form-control--classic.search::before {
    content: '\f002';
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: 'FontAwesome';
    z-index: 1;
}

a[target=_blank]::after {

}

#cisFiles {
    display: none;
    position: absolute;
    right: 0;
    z-index: 20;
    background: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 12px 28px rgba(0, 0, 0, 0.12);
}

#cisFiles a {
    text-decoration: none !important;
}

#cisFiles.visible { display: block; }

.narrow-col {
    min-width: 0;
    width: 20px;
}

.th-filter-wrapper {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.th-filter-wrapper:has(*) {
    margin-top: 10px;
}

.th-filter {
    display: inline-block;
    background: white;
    color: var(--skill-grid-header);
    border-radius: 12px;
    text-transform: none;
    padding: 3px 8px;
    cursor: pointer;
}

.th-filter::after {
    content: '\f00d';
    font-family: 'FontAwesome';
    color: var(--gov-color-error);
    font-size: 10px;
    margin-left: 5px;
}

.th-filter:hover {
    background: var(--cis-color-hover);
}

.btn-back {
    border: 1px solid var(--skill-grid-header);
    color: var(--skill-grid-header);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-back:hover {
    background: var(--gov-color-blue-hover);
}

.button-open::after {
    content: '\f0d7';
    font-family: 'FontAwesome';
    margin-left: 10px;
}

.cis-select {
    padding: 0.5rem 0.15rem;
    border-radius: 3px;
    height: 42px;
}

#divSettings {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 12px 28px rgba(0, 0, 0, 0.12);
    border-radius: 5px;
}

#divSettings select { border: 1px solid var(--gov-color-grey-mid) !important; border-radius: 3px; }

.gov-autocomplete__results, .gov-multiselect__options {
    max-height: 450px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 12px 28px rgba(0, 0, 0, 0.12);
}

#btnDescription::after {
    content: '';
}

#btnDownload::before {
    content: '\f019';
    font-family: 'FontAwesome';
}

#btnFilter::after {
    content: ''
}

#cisFilter > div:first-of-type {
    flex-direction: row;
}

.cis-label { display: none; }

/*.form-check-input:checked {
    background-color: var(--gov-color-blue) !important;
    border-color: var(--gov-color-blue) !important;
}*/

@media (min-width: 1260px) {
    .gov-logo__sitename-env {
        display: inline-block;
    }

    .gov-logo__sitename-env::before {
        content: '- ';
    }
}

@media (min-width: 900px) {
    a[data-icon]:before, button[data-icon]:before {
        margin-right: 10px;
    }

    #btnFilter::after {
        content: 'Výchozí filtr'
    }

    #btnAPI::after {
        content: 'API'
    }

    #btnDescription::after {
        content: 'Popis struktury';
    }

    #btnDownload::before {
        content: 'Stáhnout';
        font-family: 'Roboto', sans-serif;
    }

    header .search {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 15;
    }

    #textToSearch {
        width: 350px !important;
    }
}

@media (min-width: 700px) {
    .cis-label {
        display: block;
    }

    .cis-select {
        padding: 0.5rem 0.75rem;
    }

    h2 { font-size: 2.7rem; }
    h3 { font-size: 1.25rem; }

    #help {
        display: block;
    }
}