/* Aplikační vzhled nad Bootstrapem 5; zachované názvy tříd Zend formulářů. */
:root {
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.42857143;
    --bs-body-color: #333;
    --bs-link-color: #428bca;
    --bs-link-hover-color: #2a6496;
    --bs-border-radius: 4px;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 20px 0 10px; }
h4, h5, h6 { margin: 10px 0; }
h1, h2, h3, h4, h5, h6 { line-height: 1.1; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
label { display: inline-block; font-weight: 700; margin-bottom: 5px; }
input[type="checkbox"], input[type="radio"] { margin: 4px 0 0; }
.container { padding-inline: 15px; }
@media (min-width: 1200px) {
    .container { max-width: 1170px; }
}
.row { --bs-gutter-x: 30px; }
.form-group > .row { display: flow-root; }
.form-group > .row > [class*="col-"] { float: left; }
legend { float: none; width: 100%; font-size: 21px; border-bottom: 1px solid #e5e5e5; }
textarea.form-control { height: auto; }
select.form-control { appearance: auto; }
.form-group { margin-bottom: 15px; }
.control-label { padding-top: 7px; }
.form-horizontal .control-label { margin-bottom: 0; text-align: right; }
.form-horizontal .form-group { margin-inline: -15px; }
.form-horizontal .form-group::before, .form-horizontal .form-group::after { display: table; content: " "; }
.form-horizontal .form-group::after { clear: both; }
.form-inline .form-group {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
}
.form-inline .form-control { display: inline-block; vertical-align: middle; }
.form-select { font-size: 14px; }
select[multiple] { height: auto; min-height: 100px; }
.input-sm { padding: 5px 10px; font-size: 12px; }
.table { --bs-table-bg: transparent; }
.btn { --bs-btn-font-size: 14px; --bs-btn-line-height: 1.42857143; white-space: nowrap; }
.btn-default {
    --bs-btn-color: #333;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #ccc;
    --bs-btn-hover-color: #333;
    --bs-btn-hover-bg: #ebebeb;
    --bs-btn-hover-border-color: #adadad;
}
.btn-xs { --bs-btn-padding-y: 1px; --bs-btn-padding-x: 5px; --bs-btn-font-size: 12px; }
.pull-left { float: left; }
.pull-right { float: right; }
.hide, .hidden { display: none !important; }
.col-xs-6 { flex: 0 0 auto; width: 50%; }
.col-xs-12 { flex: 0 0 auto; width: 100%; }
@media (min-width: 992px) {
    .col-xs-12.col-md-3, .col-xs-6.col-md-3 { width: 25%; }
}

.navbar-fixed-top { position: fixed; inset: 0 0 auto; z-index: 1030; }
.navbar { padding: 0; }
.navbar > .container { display: block; }
.navbar-nav { flex-direction: row; }
.navbar-nav > li > a { display: block; padding: 15px; line-height: 20px; }
.dropdown-menu { font-size: 14px; }
.dropdown-menu > li > a { display: block; padding: 3px 20px; white-space: nowrap; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background: #f5f5f5; }
.navbar .dropdown:hover > .dropdown-menu, .navbar .dropdown:focus-within > .dropdown-menu { display: block; }
.caret {
    display: inline-block;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.pagination > li { display: inline; }
.pagination > li > a, .pagination > li > span {
    display: block;
    float: left;
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
}
.pagination > .active > a { color: #fff; background: #428bca; }
.pagination > .disabled > a { color: #999; pointer-events: none; }
.close {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}
.modal-header .close, .modal-header .btn-close { order: 1; }
.modal-dialog {
    width: var(--bs-modal-width);
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    padding: 10px;
}
.modal { --bs-modal-width: 680px; --bs-modal-padding: 20px; --bs-modal-header-padding: 15px; }
.nav-tabs .nav-link { padding: 10px 15px; }
.select2-container { max-width: 100%; }
.all_atributes_form_part .select2-container { min-width: 60px; }
.all_atributes_form_part .x-allAtributeSelector .select2-container { width: 300px !important; }
.select2-container--open { z-index: 1060; }

/* Vlastní formuláře uživatelské části mají pevnou šířku i typografii. */
body.user select.form-select {
    width: 100%;
    max-width: 100%;
    height: 26px;
    padding: 3px 32px 3px 6px;
    border-radius: 0;
    font-size: 14px;
    color: #403f3f;
}
body.user select.form-select[multiple] { height: auto; }

/* Ikony stávajících akcí; nejsou součástí distribuce Bootstrapu 5. */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../bootstrap/fonts/glyphicons-halflings-regular.woff') format('woff');
    font-display: block;
}
.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}
.glyphicon-euro::before { content: '\20ac'; }
.glyphicon-user::before { content: '\e008'; }
.glyphicon-remove::before { content: '\e014'; }
.glyphicon-repeat::before { content: '\e030'; }
.glyphicon-edit::before { content: '\e065'; }
.glyphicon-plus-sign::before { content: '\e081'; }
.glyphicon-minus-sign::before { content: '\e082'; }
.glyphicon-remove-sign::before { content: '\e083'; }
.glyphicon-question-sign::before { content: '\e085'; }
