html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/*
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}*/

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    box-sizing: border-box;
}

/* */
.dflex {
    display: flex;
}

.dflex_row {
    display: flex;
    flex-direction: row;
}

.dflex_col {
    display: flex;
    flex-direction: column;
}

.dflex_center {
    justify-content: center;
    align-items: center;
}

.dflex_hcenter {
    justify-content: center;
}

.dflex_vcenter {
    align-items: center;
}

.box {
    width: 200px;
}

.dialog_row {
    margin: 4px;
}

/* -- */

.pismo {
    font-family: Sans;
    font-size: 16px;
}

/*the container must be positioned relative:*/
.custom-select {
    position: relative;
    font-family: Sans;
    background-color: white;
    margin: 0px;
    padding: 0px;
}

.custom-select select {
    display: none; /*hide original SELECT element:*/
}

.select-selected {
    background-color: white;
    margin: 0px;
    padding: 0px;
}

/*style the arrow inside the select element:*/
.select-selected:after {
    position: absolute;
    content: "";
    top: 9px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #000 transparent transparent transparent;
}

/* point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
    border-color: transparent transparent #000 transparent;
    top: 4px;
}

/*style the items (options), including the selected item:*/
.select-items div, .select-selected {
    color: #000000;
    padding: 0px 0px;
    /* border: 1px solid transparent; */
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
    user-select: none;
}

/*style items (options):*/
.select-items {
    position: absolute;
    background-color: white;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    border: 1px solid #2d9fd9;
    z-index: 99;
}

    .select-items div {
        padding: 2px 0px;
    }

/*hide the items when the select box is closed:*/
.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

.border {
    border: 1px solid #2d9fd9;
    border-radius: 4px;
}

hr {
    margin: 0px 0px;
    padding: 0px;
}

.boxh {
    height: 200px;
}

.sz {
    -ms-box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 100%;
    border: 1px solid #ccc;
    padding: 2px;
    margin: 1px;
}

.outline {
    border: 1px solid #ccc;
}

.outline:focus {
    border: 1px solid #555;
}

.cont_grid {
    display: grid;
    grid-template-columns: 3fr 3fr;
    grid-template-rows: auto auto minmax(100px,1fr);
    gap: 0px 0px;
    grid-template-areas:
        "topbar topbar"
        "form form"
        "grid grid";
}

.content {
    grid-area: content;
    background-color: lime;
}

.sidebar {
    grid-area: sidebar;
    background-color: red;
    padding: 8px;
}

.topbar {
    grid-area: topbar;
    background-color: magenta;
}

.form {
    grid-area: form;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 4px;
}

.grid {
    grid-area: grid;
    background-color: rgba(0, 0, 0, 0.1);
}

.jsgrid-header-cell {
    padding: 0.2em;
}

.jsgrid-cell {
    padding: 0.3em;
}

.jsgrid {
    font-size: 0.75em;
}

/* Custom validace formularu + Bootstrap 5.1 */
.input-validation-error {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.input-validation-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.row_green td {
    background-color: #A9DFBF!important;
}

.row_green_alt td {
    background-color: #ABEBC6 !important;
}

.row_blue td {
    background-color: #AED6F1!important;
}

.row_red td {
    background-color: #F5B7B1!important;
}

.row_orange td {
    background-color: #FAD7A0!important;
}


.jsgrid-div {
    display: flex;
    align-items: center;
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.jsgrid-img {
    vertical-align: middle;
    margin-right: 3px;
}	
