﻿/*---------------------------------------------------------*/
/*                         General                         */
/*---------------------------------------------------------*/

.bk-title-separator {
    width: 11px;
    background: #758D96;
    height: 2px;
    margin-left: 10px;
    margin-right: 10px;
}

.bk-helpText input.dx-texteditor-input {
    color: #82959C !important;
    font-size: 14px;
    font-style: italic;
}

.main .bk-content.with-footer {
    height: calc(100% - (123px)) !important;
    transition: all 0.1s ease-in-out;
}

    .main .bk-content.with-footer.with-tabs {
        height: calc(100% - (159px));
        transition: all 0.1s ease-in-out;
    }

.main .bk-content.with-tabs {
    height: calc(100% - (96px));
    transition: all 0.1s ease-in-out;
}

.btn-primary.bk-multibutton {
    padding-left: 15px;
    padding-right: 0px;
}

.nav-pills.ui-tabs {
    border: none;
}

.bk-blue-btn span {
    font-size: 13px;
}

.bk-icon-btn.bk-disabled,
.reports_dropdown.bk-disabled .bk-icon-btn {
    color: #cecece;
}

.opacity-50 {
    opacity: 0.5 !important;
}

/** Nastylování multitlačítka **/
.bk-multibutton i {
    padding-left: 10px;
    padding-right: 5px;
}

.bk-multibutton::after {
    display: none !important;
}

.bk-multibutton ~ .dropdown-menu {
    background: #F7F8F9;
    box-shadow: 0 2px 3px 0 rgba(0,0,0,0.15);
    padding: 0px;
    border: none;
}

    .bk-multibutton ~ .dropdown-menu .dropdown-item {
        height: 32px;
        font-weight: 600;
        font-size: 13px;
        color: #566971;
        letter-spacing: 0;
        line-height: 16px;
        border-radius: 3px;
        display: flex;
        align-items: center;
    }

        .bk-multibutton ~ .dropdown-menu .dropdown-item:first-child {
            border-top-left-radius: 3px;
            border-top-right-radius: 3px;
        }

        .bk-multibutton ~ .dropdown-menu .dropdown-item:last-child {
            border-bottom-left-radius: 3px;
            border-bottom-right-radius: 3px;
        }

        .bk-multibutton ~ .dropdown-menu .dropdown-item:hover {
            color: #fff;
            background-color: #00a2e2;
            cursor: pointer;
        }

        .bk-multibutton ~ .dropdown-menu .dropdown-item:active {
            color: #fff;
            background-color: #007EB0;
        }

.bk-gray-btn-background {
    background: #f5f7f7;
    border: 1px solid #f5f7f7;
}

/** Buttongroup**/

.bk-btn-radio {
    border-radius: 16px;
    height: 32px;
    font-size: 13px;
    line-height: 17px;
    font-weight: 600;
    border-color: #abb9bf;
    display: flex;
    align-items: center;
}

    .bk-btn-radio:not(.active) {
        color: #00a2e2;
        background: #fff;
    }

    .bk-btn-radio:focus {
        outline: 0;
        border: 1px solid #00A2E2;
        box-shadow: 0 0 0 3px rgba(0,162,226,0.15);
    }

    .bk-btn-radio:hover {
        color: #fff;
        background-color: #0090C9;
        border-color: #0090c9;
    }

    .bk-btn-radio.active {
        color: #fff;
        background-color: #00A2E2;
        border-color: #00a2e2;
    }

    .bk-btn-radio:active {
        color: #fff;
        background-color: #007EB0;
        border-color: #0090c9;
    }

    .bk-btn-radio.active.disabled {
        color: #fff;
        background-color: #E6E6E6;
        border-color: #CECECE;
        pointer-events: none;
    }

    .bk-btn-radio:not(.active).disabled {
        color: #CECECE;
        background-color: #fff;
        border-color: #CECECE;
        pointer-events: none;
    }

.btn-group-vertical > .btn {
    text-align: center;
}

.btn-group > .btn-group:not(:last-child) > .btn,
.btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

@media (min-width: 992px) {
    .modal-xl {
        max-width: 1140px;
    }
}
/*---------------------------------------------------------*/
/*                   Start of Settings                     */
/*---------------------------------------------------------*/
/** Index **/
.bk-label-text {
    height: auto;
    margin-bottom: 0px;
}

.bk-middle-wrap {
    height: calc(100% - 63px);
    overflow-y: auto;
    overflow-x: hidden;
}

/*---------------------------------------------------------*/
/*                    End of Settings                      */
/*---------------------------------------------------------*/

/*---------------------------------------------------------*/
/*                   Start of Admission                    */
/*---------------------------------------------------------*/

/** Index **/
.bk-listbox {
    padding: 20px 70px 15px 70px;
}

.dx-master-detail-row.dx-adaptive-detail-row svg.dxbg-bar-gauge {
    display: none !important;
}

.dx-master-detail-row.dx-datagrid-edit-form .dx-datagrid-edit-form-item .dx-field-item-label-content {
    max-width: 120px;
    line-height: 14px;
}

    .dx-master-detail-row.dx-datagrid-edit-form .dx-datagrid-edit-form-item .dx-field-item-label-content > .dx-field-item-label-text {
        white-space: normal;
    }

.dx-tabpanel .dx-tab,
.dx-tab {
    height: 32px;
}

.dx-dialog .dx-dialog-wrapper .dx-overlay-content .dx-dialog-buttons .dx-toolbar-center {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
}

    .dx-dialog .dx-dialog-wrapper .dx-overlay-content .dx-dialog-buttons .dx-toolbar-center .dx-toolbar-button:first-child {
        padding-left: 10px;
        padding-right: 0;
    }

.dx-tabpanel .dx-tabs-wrapper, .dx-tabs:not(.dx-scheduler-view-switcher) .dx-tabs-wrapper {
    display: flex;
    justify-content: flex-start;
}

/*---------------------------------------------------------*/
/*                    End of Admission                     */
/*---------------------------------------------------------*/
/*---------------------------------------------------------*/
/*             Start of Admissions/Candidates              */
/*---------------------------------------------------------*/
.bk-icon-admissions:hover {
    cursor: pointer;
    color: #007eb0;
}

/** Lišta na schování panelu **/
.bk-switch-bar {
    width: 18px;
    right: 0;
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 9;
    border-left: 1px solid #ECEFF0;
}

    .bk-switch-bar:hover {
        background: #0090c9;
    }

        .bk-switch-bar:hover .ico32-ovladani-smerovkaVpravo {
            color: #fff;
        }

    .bk-switch-bar .ico32-ovladani-smerovkaVpravo {
        color: #758D96;
        font-size: 20px;
        font-weight: bold;
        width: 18px;
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

#notesForm .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label {
    min-width: 120px;
}

#candidateFormApplication .dx-field-item-label {
    white-space: normal;
}

#candidateFormApplication > div > div > div > div:nth-child(1) .dx-field-item-label {
    white-space: nowrap;
    min-width: 150px;
}

/** Nadpis **/
.bk-candidate-header {
    padding: 12px 16px;
    background: #eceff0;
    border-radius: 3px;
    display: flex;
    flex-direction: row;
}

    .bk-candidate-header .dx-texteditor input.dx-texteditor-input {
        font-weight: bold;
    }

    .bk-candidate-header .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label .dx-field-item-label-text {
        font-weight: 400;
    }

    .bk-candidate-header .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label {
        min-width: initial;
    }

/** dxTabPanel **/
.candidateTabs-wrapper ._tabContent {
    height: 100%;
    overflow: auto;
    padding: 0px 15px;
}

#candidateTabs .dx-tabpanel-container {
    overflow: hidden;
}

/** ListBox v kartě uchazeče **/
.bk-listbox-candidates {
    width: auto;
    transition: width 0.7s;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 3px 2px 0px 4px;
}

@-moz-document url-prefix() {
    .bk-listbox-candidates {
        width: calc(100% - 18px);
    }
}

.bk-dxtable-admissions-overview .dx-row {
    cursor: pointer;
}

#_itemsForMultiEdit {
    columns: 3;
}

    #_itemsForMultiEdit li::marker {
        color: transparent;
    }

@media (max-width: 991px) {
    #_itemsForMultiEdit {
        columns: 2;
    }
}

.bk-editingCellGrid .dx-row.dx-data-row:hover {
    color: #435359 !important;
    background-color: transparent !important;
}

.bk-editingCellGrid .dx-datagrid .dx-datagrid-rowsview .dx-datagrid-content .dx-datagrid-table .dx-data-row:not(.dx-edit-row):not(.dx-row-inserted):hover > td {
    color: #435359 !important;
}

.bk-editingCellGrid .dx-datagrid .dx-datagrid-rowsview .dx-datagrid-content .dx-datagrid-table .dx-data-row:not(.dx-edit-row):not(.dx-row-inserted) > td:hover {
    cursor: text;
}

/** Zákonní zástupci **/
.bk-pill-representatives > .btn {
    border-radius: 3px !important;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 8px 7px 8px;
    line-height: 14px;
}

    .bk-pill-representatives > .btn:hover {
        box-shadow: none;
        background: #0090c9 !important;
        color: #fff !important;
    }

    .bk-pill-representatives > .btn:active:focus,
    .bk-pill-representatives > .btn.active:focus {
        box-shadow: none !important;
    }

    .bk-pill-representatives > .btn:not(.active) {
        background: #fff;
        color: #00a2e2;
    }

.bk-pill-representatives:hover {
    color: #fff;
}

.bk-pill-representatives > a.active {
    color: #fff !important;
    border-top-left-radius: 3px !important;
    border-top-right-radius: 3px !important;
}

.dx-texteditor.bk-readonly,
.bk-input.bk-readonly,
.bk-input[readonly].bk-readonly {
    border-color: transparent !important;
    opacity: 1 !important;
    pointer-events: none;
}

    .bk-input.bk-readonly:focus,
    .bk-input[readonly].bk-readonly:focus {
        box-shadow: none;
        color: inherit;
    }

    .dx-texteditor.bk-readonly *,
    .bk-input.bk-readonly,
    .bk-input[readonly].bk-readonly {
        background: transparent !important;
    }

/** Poznámky **/
.bk-label-text.notes {
    width: 130px;
}

/** Levý panel s uchazeči a jeho skrývání **/
#cover {
    transition: width 0.7s;
    min-width: 300px;
    max-width: 300px;
}

    #cover.active {
        margin-left: -300px;
        margin-right: 30px;
    }

#cover-candidates:not(.show):not(.active) {
    transition: width 0.7s;
    width: 300px !important;
}

#cover-candidates.active {
    width: 100% !important;
    transition: width 0.7s;
}

#cover-candidates.show {
    width: 343px;
    transition: width 0.7s;
}

#cover-candidates.active ~ .btn-hidePanel {
    display: none !important;
}

@media (max-width: 1000px) {
    #cover-candidates:not(.show):not(.active) {
        width: 0px !important;
    }
}

@media (max-width: 940px) {
    #cover-candidates:not(.show) {
        width: 100% !important;
    }

    #cover-candidates.show {
        width: 100%;
        transition: width 0.7s;
    }
}

.bk-dxtable-admissions-overview .dx-datagrid-content .dx-datagrid-table .dx-row .dx-command-select {
    width: 25px;
    min-width: 25px;
    max-width: 25px;
}


/** QR Dialog **/
#QRModal .modal-dialog {
    max-width: 250px;
    margin: auto;
    margin-top: calc(50vh - 250px );
}

.modal-content {
    background: #FAFAFB !important;
    border-color: #FAFAFB !important;
}

/** Záložka Známky z přihlášky **/
.gradesFromApplication .dx-command-edit.dx-command-edit-with-icons.dx-cell-focus-disabled {
    width: 0px !important;
    min-width: 0px !important;
}

.gradesFromApplication .dx-datagrid-rowsview .dx-datagrid-content .dx-datagrid-table .dx-row .dx-command-edit.dx-command-edit-with-icons {
    width: 85px !important;
}

.gradesFromApplication .dx-datagrid .dx-column-indicators {
    display: none;
}

.gradesFromApplication .dx-datagrid-rowsview .dx-row.border-top {
    border-top: 2px solid #82959C !important;
}

    .gradesFromApplication .dx-datagrid-rowsview .dx-row.border-top > td {
        border-bottom: 0px;
    }

/** Úprava formu **/
.dx-layout-manager .dx-field-item:not(.dx-last-col) {
    padding-right: 0px;
}

/*.dx-layout-manager .dx-label-h-align.dx-flex-layout:not(.text-nowrap) .dx-field-item-label .dx-field-item-label-text {
    white-space: normal;
}*/

/*.dx-layout-manager .dx-label-h-align .dx-field-item-label .dx-field-item-label-content {
    max-width: 100%;
}
*/
.label-autow .dx-field-item-label .dx-field-item-label-content {
    max-width: none !important;
}

.bk-formCheckBox .dx-field-item-content {
    max-width: 40px;
}

.bk-formCheckBox .dx-field-item-label .dx-field-item-label-content {
    width: auto !important;
    max-width: none !important;
}

.dx-layout-manager .dx-tabpanel .dx-multiview-item-content {
    padding: 0px;
}

.dx-dropdowneditor-button-visible .dx-texteditor-input,
.dx-datebox.dx-auto-width .dx-texteditor-input, .dx-datebox:not(.dx-texteditor-empty).dx-auto-width .dx-texteditor-input {
    padding-right: 6px;
}

/*.dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label {
    min-width: 110px;
}*/

#headerForm .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label {
    min-width: initial;
}

.dx-tabpanel-tabs {
    min-width: 100%;
}

/** Přetížení stylů pro datagrid, kde jsou sloupce zafixované, kde je hover efekt nastaven vlastností gridu, nikoliv css styly */
.dx-datagrid .dx-datagrid-rowsview.dx-fixed-columns .dx-datagrid-content .dx-datagrid-table .dx-data-row:not(.dx-edit-row):not(.dx-row-inserted):hover {
    color: inherit;
    background-color: inherit;
}

.dx-datagrid-table.dx-datagrid-table-fixed .dx-data-row.dx-state-hover:not(.dx-selection):not(.dx-row-inserted):not(.dx-row-removed):not(.dx-edit-row) > td:not(.dx-focused) {
    background-color: #0090C9;
    color: #fff;
}

    .dx-datagrid-table.dx-datagrid-table-fixed .dx-data-row.dx-state-hover:not(.dx-selection):not(.dx-row-inserted):not(.dx-row-removed):not(.dx-edit-row) > td:not(.dx-focused) .result-icon {
        color: #fff !important;
    }

/** Záložka Známky z přihlášky **/
.gradesFromApplication .dx-datagrid-header-panel .dx-toolbar,
.admissionsForCandidate .dx-datagrid-header-panel .dx-toolbar {
    margin-bottom: 0px;
}

/** Notifikace zobrazovaného režimu - Editace/Prohlížení **/
.bk-mode-notification {
    width: 100%;
    height: 18px;
    display: flex;
    justify-content: center;
}

    .bk-mode-notification > span {
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        font-size: 12px;
        font-weight: bold;
        width: 150px;
        text-align: center;
        line-height: 18px;
    }

    .bk-mode-notification.reading > span {
        background-color: #ECEFF0;
        color: #82959C;
    }

    .bk-mode-notification.editing > span {
        background-color: #E58200;
        color: #fff;
    }

.bk-card-header.reading {
    border-top: 4px solid #ECEFF0;
}

.bk-card-header.editing {
    border-top: 4px solid #E58200;
}

.bk-formCheckBox .dx-field-item-content,
.bk-correspondenceAddressCheckbox .dx-field-item-content {
    max-width: 40px;
}

.bk-formCheckBox .dx-field-item-label .dx-field-item-label-content,
.bk-correspondenceAddressCheckbox .dx-field-item-label .dx-field-item-label-content {
    width: auto !important;
    max-width: none !important;
}

#notesForm .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label {
    display: flex;
    align-items: center;
}

/* Úprava položky formuláře pro vlastní zobrazení, pokud se jedná o zobrazení věku */
#headerForm.dx-form.age-shown .dx-item-content.dx-box-item-content > .dx-item:nth-child(4) {
    max-width: 7rem;
}

/** Responzivita **/
@media (max-width: 576px) {
    .pr-xs-0 {
        padding-right: 0px !important;
    }
}

@media (max-width: 850px) {
    .bk-hide-850 {
        display: none;
    }
}

@media all and (max-width: 1014px) {
    .bk-tab.bk-tab-admissions ul li > a:not(.active) {
        display: none;
    }

    .bk-dropdown-hamburger.bk-dropdown-admissions {
        display: block !important;
        height: 32px;
    }

        .bk-dropdown-hamburger.bk-dropdown-admissions > .dropdown-menu {
            left: 150px !important;
        }

    .bk-tab.bk-tab-admissions ul li.spacer {
        display: none;
    }
}

#candidateResults .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label,
#candidateEnrollmentData .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label {
    min-width: 170px;
    white-space: normal;
}

#candidateEnrollment .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label {
    white-space: normal;
}

#parentForm .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label,
#studentForm .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label {
    min-width: 100px;
    white-space: normal;
}

    #parentForm .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label .dx-field-item-label-content,
    #studentForm .dx-layout-manager .dx-label-h-align.dx-flex-layout .dx-field-item-label .dx-field-item-label-content {
        width: 100%;
        max-width: 100%;
    }

.address-form .dx-field-item-label {
    min-width: auto !important;
}

/*---------------------------------------------------------*/
/*              End of Admissions/Candidates               */
/*---------------------------------------------------------*/
/*---------------------------------------------------------*/
/*                     Start of Groups                     */
/*---------------------------------------------------------*/
.dx-popup-title.dx-toolbar {
    display: none;
}

/*---------------------------------------------------------*/
/*                     End of Groups                       */
/*---------------------------------------------------------*/

/*---------------------------------------------------------*/
/*                     Start of Criteria                   */
/*---------------------------------------------------------*/

.dx-widget.dx-treeview {
    font-size: 14px;
}

/** Accordion **/
.card-header {
    background-color: #eee;
    padding: .5em .5em .5em .7em;
}

    .card-header > h5 > button {
        color: #444;
        font-size: 15px;
        width: 100%;
        text-align: left;
    }

        .card-header > h5 > button:hover,
        .card-header > h5 > button:focus {
            color: #0090C9;
            text-decoration: none;
        }

.card .card-body,
.card .card-body select,
.card .card-body input.form-control {
    font-size: 13px;
}

    .card .card-body select,
    .card .card-body input.form-control {
        height: 32px !important;
    }

/** DevExtreme Accordion **/
.dx-accordion {
    background-color: transparent;
}

    .dx-accordion .dx-accordion-item-title {
        color: #435359;
        font-weight: 300;
    }

    .dx-accordion .dx-accordion-item {
        border: none;
        margin-bottom: 15px;
        background: #F5F6F7;
        border-radius: 8px;
    }

        .dx-accordion .dx-accordion-item:last-child {
            border: none;
        }

/** select/multiselect **/
.bootstrap-select > .dropdown-toggle.bs-placeholder, .bootstrap-select > .dropdown-toggle.bs-placeholder:hover, .bootstrap-select > .dropdown-toggle.bs-placeholder:focus, .bootstrap-select > .dropdown-toggle.bs-placeholder:active,
.bootstrap-select > .dropdown-toggle, .bootstrap-select > .dropdown-toggle:hover, .bootstrap-select > .dropdown-toggle:focus, .bootstrap-select > .dropdown-toggle:active,
.btn-light:not(:disabled):not(.disabled).active, .btn-light:not(:disabled):not(.disabled):active, .show > .btn-light.dropdown-toggle {
    color: #555555;
    font-size: 13px;
    background-color: #fff;
    border: 1px solid #ced4da;
}

.bootstrap-select.show > .dropdown-toggle,
.bootstrap-select.show > .dropdown-toggle.bs-placeholder {
    border-color: #00a2e2;
}

.bootstrap-select .dropdown-menu li,
.btn-light:not(:disabled):not(.disabled).active, .btn-light:not(:disabled):not(.disabled):active, .show > .btn-light.dropdown-toggle {
    font-size: 13px;
}

.bootstrap-select .dropdown-toggle:focus {
    outline: none !important;
}

.btn-light.focus, .btn-light:focus {
    box-shadow: none !important;
}

.bootstrap-select .bs-ok-default:after {
    color: #00a2e2;
}

.bootstrap-select .dropdown-item:active .bs-ok-default:after {
    color: #fff;
}

/** Bootstrap list **/
.list-group-item-action:focus, .list-group-item-action:hover {
    color: #fff;
    background-color: #0090c9;
}

.list-group {
    max-height: 300px;
    overflow: auto;
}

.list-group-item {
    padding-top: 6px;
    padding-bottom: 5px;
}

/** Edit table **/

.table-editable table tbody tr td.bk-constant {
    max-width: 85px;
}

.table-editable table tbody tr td.bk-description {
    max-width: 250px;
}

.table-editable table tbody tr td.bk-title {
    max-width: 150px;
}

.bk-label-text {
    display: flex;
    align-items: center;
    min-width: 90px;
    padding-right: 10px;
}

.dx-popup-wrapper > .dx-overlay-content {
    max-width: 80vw;
}

.no-border .dx-datagrid-rowsview .dx-row:not(.dx-edit-row),
.no-border .dx-datagrid-rowsview .dx-row > td {
    border-bottom: 0;
}

.no-border .dx-datagrid-headers .dx-datagrid-table .dx-row > td {
    padding: 3px;
}

.form-inline {
    flex-wrap: nowrap;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    top: 1px;
}

/*---------------------------------------------------------*/
/*                     End of Criteria                     */
/*---------------------------------------------------------*/
/*---------------------------------------------------------*/
/*              TODO: Přesunout do commonu?                */
/*---------------------------------------------------------*/

.dx-texteditor.dx-state-readonly.bk-input-important input.dx-texteditor-input,
.dx-texteditor.bk-input-important,
.bk-input-important {
    background: #FFF7EA;
    border-color: #AEA6A9;
    color: #354348;
}

    .dx-texteditor.bk-input-important:not(.dx-state-focused):not(.dx-state-disabled):not(.dx-state-active) .dx-texteditor-container,
    .dx-texteditor.bk-input-important .dx-texteditor-input {
        background: transparent;
    }

    .dx-texteditor.bk-input-important.dx-state-readonly {
        border-color: #cecece;
    }

.dx-datagrid-rowsview .dx-dropdowneditor-button-visible .dx-texteditor-input {
    padding-right: 6px;
}

.dx-datagrid .dx-checkbox-icon {
    height: 16px;
    width: 16px;
    font-size: 12px;
}

.dx-datagrid .dx-datagrid-rowsview .dx-datagrid-content .dx-datagrid-table .dx-data-row:not(.dx-edit-row):not(.dx-row-inserted):hover .result-icon,
.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > td .result-icon {
    color: #fff !important;
}

.bk-input[disabled] {
    color: #566971 !important;
}

.dx-dropdowneditor-button-visible.dx-show-clear-button .dx-texteditor-input {
    padding-right: 6px !important;
}

.dx-datagrid-rowsview .dx-row:not(.dx-edit-row):hover .dx-datagrid-group-closed,
.dx-datagrid-rowsview .dx-row:not(.dx-edit-row):hover .dx-datagrid-group-opened {
    color: #898989;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

.badge-info {
    color: #305766;
    background-color: #E0EDF2;
}

.badge-success {
    color: #59942C;
    background-color: rgba(89, 148, 44, 0.1);
}

.badge-warning {
    color: #E58200;
    background-color: rgba(229, 130, 0, 0.1);
}

.badge-danger {
    color: #DB0F1D;
    background-color: rgba(219, 15, 29, 0.1);
}

.badge-light {
    color: #566971;
    background-color: #F5F6F7;
}

.badge.result {
    height: 30px;
    width: 60px;
    font-size: 18px;
    font-weight: 700;
    align-items: center;
    display: flex;
    justify-content: center;
    border-radius: 5px;
}

.dx-datagrid .dx-datagrid-content .dx-datagrid-table .dx-row .dx-command-edit-with-icons .dx-link {
    width: 30px;
    height: 24px;
    padding: 0px;
    font-size: 32px;
    text-align: center;
    line-height: 24px;
    margin: 0px 5px;
    vertical-align: middle;
}

.dx-datebox-wrapper-datetime .dx-timeview {
    margin: 0px !important;
}

.dx-datebox-wrapper-datetime .dx-calendar {
    width: 100%;
}

.bk-hidden-input {
    width: 0;
    height: 0;
    border: 0;
    outline: none;
}

.bk-menu-logo.mobile-visible {
    z-index: 999;
}

.dx-button.btn-secondary {
    color: #0090c9;
    background-color: #ECEFF0;
    border-color: #ECEFF0;
}

    .dx-button.btn-secondary:not(.dx-state-disabled):hover {
        background-color: #D4DBDE;
        border-color: #D4DBDE;
        color: #0090c9;
    }

    .dx-button.btn-secondary:not(.dx-state-disabled):active {
        background-color: #C2CCD1;
        border-color: #C2CCD1;
        color: #0090c9;
    }

    .dx-button.btn-secondary:not(.dx-state-disabled):focus {
        box-shadow: 0 0 0 3px rgba(0,162,226,0.1);
        background-color: #eceff0;
        border-color: #eceff0;
        color: #0090c9;
    }

/*---------------------------------------------------------*/
/*                     DX - Tags                           */
/*---------------------------------------------------------*/
.bk-listbox-candidates .dx-tagbox {
    background: transparent;
    border: none !important;
    box-shadow: none;
}

    .bk-listbox-candidates .dx-tagbox .dx-tag-content {
        border-radius: 3px;
        background-color: #00a2e2;
        color: #fff;
    }

    .bk-listbox-candidates .dx-tagbox.dx-state-disabled .dx-tag-content {
        border: 1px solid #cecece;
        background-color: #E6E6E6;
        color: #cecece;
    }

    .bk-listbox-candidates .dx-tagbox .dx-tag-content .dx-tag-remove-button {
        font: 14px/1 baka-webicons;
    }

        .bk-listbox-candidates .dx-tagbox .dx-tag-content .dx-tag-remove-button:before {
            width: 20px;
            content: "\e93f";
            -webkit-transform: none;
            -moz-transform: none;
            -ms-transform: none;
            -o-transform: none;
            transform: none;
            background: none;
            font-size: 20px;
            right: 0px;
            top: 7px;
        }

        .bk-listbox-candidates .dx-tagbox .dx-tag-content .dx-tag-remove-button:before,
        .bk-listbox-candidates .dx-tagbox .dx-tag-content .dx-tag-remove-button:after {
            background: none;
        }

/*---------------------------------------------------------*/
/*           Ikona vyhledávání datové schránky             */
/*---------------------------------------------------------*/

.dx-field-item-content {
    position: relative;
}

    .dx-field-item-content .bk-icon-searchDatabox {
        position: absolute;
        top: 1px;
        right: 1px;
        width: 32px;
        height: 32px;
        font-size: 32px;
        color: #00a2e2;
    }

    .dx-field-item-content .dx-textbox:not(.dx-state-readonly) ~ .bk-icon-searchDatabox {
        color: #00a2e2;
    }

    .dx-field-item-content .dx-textbox.dx-state-readonly ~ .bk-icon-searchDatabox {
        color: #cecece;
        pointer-events: none;
    }

    .dx-field-item-content .dx-textbox:not(.dx-state-readonly) ~ .bk-icon-searchDatabox:hover {
        cursor: pointer;
    }

    .dx-field-item-content .dx-textbox.dx-state-readonly ~ .bk-icon-searchDatabox:hover {
        cursor: default;
    }

.bk-icon-btn {
    font-size: 32px;
    color: #00a2e2;
    margin-right: 5px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

    .bk-icon-btn:hover {
        color: #fff;
        background: #00a2e2;
        transition: all .3s cubic-bezier(.4,0,.2,1);
        cursor: pointer;
    }

.bk-sidenav {
    z-index: 999 !important;
}

.dx-selectbox-popup-wrapper.dx-dropdownlist-popup-wrapper.dx-popup-wrapper .dx-overlay-content {
    width: auto !important;
    min-width: 100%;
}

.dx-selectbox-popup-wrapper.dx-dropdownlist-popup-wrapper .dx-list-item,
.dx-selectbox-popup-wrapper.dx-dropdownlist-popup-wrapper .dx-empty-message {
    display: inline-flex;
    align-items: center;
}

.dx-datebox.dx-auto-width.dx-dropdowneditor-button-visible .dx-texteditor-input,
.dx-datebox:not(.dx-texteditor-empty).dx-auto-width.dx-dropdowneditor-button-visible .dx-texteditor-input {
    padding-right: 6px !important
}

.ui-tooltip {
    z-index: 99999;
}

.dx-header-filter-menu .dx-popup-normal {
    min-width: 300px;
    width: auto !important;
}

    .dx-header-filter-menu .dx-popup-normal .dx-popup-content .dx-item.dx-list-item {
        display: inline-flex;
        align-items: center;
    }

.dx-header-filter-menu .dx-toolbar-items-container .dx-toolbar-after {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.bk-errorRow {
    background-color: #FBF3F3;
    color: #A80C16;
}

.section-tip {
    display: flex;
    align-items: center;
    background: #f1fbff;
    border-radius: 5px;
    padding: 12px;
    color: #0190c9;
}

    .section-tip.error {
        background: rgba(208, 51, 51, 0.15);
        color: #DB0F1D;
    }

    .section-tip span {
        font-size: 13px;
        line-height: 16px;
        font-style: italic;
    }

    .section-tip i {
        font-size: 20px;
        margin-right: 16px;
    }

.dx-datagrid-export-button .dx-icon-export-excel-button {
    font: 14px/1 baka-webicons;
    font-size: 32px;
}

    .dx-datagrid-export-button .dx-icon-export-excel-button:before {
        content: "\e903";
    }

/*---------------------------------------------------------*/
/*               Dropdown v DX gridech                     */
/*---------------------------------------------------------*/

.bk-control-panel a {
    color: transparent;
}

    .bk-control-panel a:hover {
        text-decoration: none !important;
    }

.dx-datagrid-table .dx-row.dx-adaptive-detail-row .bk-visible-in-detail,
.dx-datagrid-table .dx-row:not(.dx-adaptive-detail-row) .bk-visible-in-grid {
    display: block;
}

.dx-datagrid-table .dx-row.dx-adaptive-detail-row .bk-visible-in-grid,
.dx-datagrid-table .dx-row:not(.dx-adaptive-detail-row) .bk-visible-in-detail {
    display: none;
}

.dx-datagrid-table .dx-row.dx-adaptive-detail-row .master-detail > .bk-visible-in-detail {
    display: block !important;
}

.dx-datagrid-table .dx-row:not(.dx-adaptive-detail-row) .icons-justify-end {
    justify-content: flex-end;
}

/* Custom validační vykřičník pro názvy tabs */
.nonvalid-tab {
    position: relative;
    padding-right: 21px; /* 18px vykřičník + 5px mezera */
    display: inline-block;
}

    .nonvalid-tab:after {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 1rem;
        height: 1rem;
        line-height: 1rem;
        font-size: 11px;
        background-color: #d9534f;
        color: #fff;
        content: '!';
        border-radius: 50%;
        pointer-events: none;
    }
