body, html{
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #FCFFEB;
    font-size: 16px;
    font-family: Segoe UI;
    height: 100%;
}

.clear{
    clear: both;
}

h1{font-size: 26px;color:#BDBD00; margin:0; margin-bottom: 10px;}
h2, h3{margin: 0; padding: 0;color:#BDBD00;}

#header{
    height: 45px;
    background-color: #BDBD00;
    clear: both;
    padding: 5px 5px 0px;
}

#navigation{
    float: left;
    width: 50%;
    border:0px solid black;
}

#submenu{
    text-align: left;
    margin-left: 0px;
    padding-bottom: 10px;
    border-bottom: 1px solid #bdbd00;
    margin-bottom: 15px;
}


#login_user{
    float: right;
    width: 50%;
    border:0px solid black;
    text-align: right;
    color: white;
    padding: 0px ;
}

#login_user a{
    color: white;
}

#version{
}

#login_user .uk-button{
    margin-left: 10px;
}



#content{
    height: calc(100% - 90px);
    text-align: center;
    padding: 10px;
}

#content form{
    width: 900px;
    border: 1px solid rgba(199, 199, 199, 1)    ;
    margin: 0px auto;
    text-align: left;
    margin-top: 10px;
    padding: 20px;
    background-color: #F0F0F0;
}

#content hr{
    height: 1px;
    margin: 50px 20% 35px;
    background-color: rgba(168, 168, 168, 1);
    width: 60%;

}

#content form hr{
    height: 1px;
    margin: 15px 0px;
    background-color: rgba(168, 168, 168, 1);
    width: 100%;

}

.box_item{
    background-color: white;
    padding: 15px 10px;
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
    width: 100px;
    box-shadow: 2px 2px 5px grey;
}

.box_item:hover{
    background-color: #BDBD00;
    cursor: pointer;
    text-decoration: none;
}

.box_item:hover .box_item_label{
    color: white;
    border-top: 1px dotted white;
    text-decoration: none;

}


.box_item_label{
    border-top: 1px dotted gray;
    padding: 10px 0 0;
    margin-top: 15px;
    font-size: 18px;
}

a .box_item{
    color:#444;
    text-decoration: none;
}

#datatable_content{
    text-align: left;
    padding: 10px;
}

#datatable_content table, table.w50{
    width:100%;
    border: 1px solid #B2B2B2;
    border-collapse: collapse;
}


#datatable_content table thead tr, table.w50 thead tr{
    background-color: #7b7b7b;
    color: white;
}

#datatable_content table th, table.w50 th{
    margin: 1px;
    padding: 7px;
    border: 1px solid #B2B2B2;
    font-weight: normal;

}

#datatable_content table td, table.w50 td{
    padding: 7px;
    border: 1px solid #B2B2B2;
}



table.w50{
    margin: 0px auto;
    width:50%;
    text-align: left
}

table.w50 tr{
    background-color: #FFFFFF;
}

table.w50 td:first-child{
    width: 75%;

}

table.w50 th  {
        background: #F0F0F0;

}



#datatable_content table tbody tr:nth-child(even) {background-color: #F0F0F0;}
#datatable_content table tbody tr:nth-child(odd) {background-color: #FFFFFF}

table a:link, table a:hover, table a:visited{
    color: #bdbd00;
}

.output_data{
    text-align: right;
    width: 942px;
    margin: 0px auto;
    border: 0px solid gray;
    margin-bottom: -10px;


}

.output_data .item{
    border: 1px solid rgba(199, 199, 199, 1);
    border-bottom: 0;
    float: right;

}

/* ===== Prehledy: panel nad tabulkou (tlacitko vlevo, pocitadlo + hledani vpravo) ===== */
.cases-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cases-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cases-toolbar-right span {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.cases-toolbar-right input[type="text"] {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #c8dce8;
    font-size: 16px;
    width: 220px;
    box-sizing: border-box;
}

/* ===== Razeni sloupcu ===== */
th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 24px !important;
}

th.sortable::after {
    content: '\2195';
    opacity: 0.4;
    font-size: 20px;
    font-weight: 900;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

th.sortable.sort-asc::after {
    content: '\2191';
    opacity: 1;
}

th.sortable.sort-desc::after {
    content: '\2193';
    opacity: 1;
}

#datatable_content table tbody tr.no-results td {
    text-align: center;
    color: #666;
    padding: 18px 8px;
}

#persons{
    margin-bottom: 10px;
    margin-top: -5px;
}

/* ===== Quill editor ===== */
.ql-toolbar.ql-snow {
    border: 1px solid #c8dce8;
    border-bottom: none;
    background: #f7fbfd;
}

.ql-container.ql-snow {
    border: 1px solid #c8dce8;
    font-size: 15px;
    font-family: Segoe UI, sans-serif;
    background: #ffffff;
}

.ql-editor {
    min-height: inherit;
}

/* Velikost písma — popisky v dropdownu */
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value]::before {
    content: attr(data-value) !important;
    font-size: 14px;
}

.ql-snow .ql-picker.ql-size .ql-picker-item:not([data-value])::before,
.ql-snow .ql-picker.ql-size .ql-picker-label:not([data-value])::before {
    content: 'Normal' !important;
}

