body, html{
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: rgba(232, 232, 232, 1);
    background-color: #eff6ff;
    font-size: 16px;
    font-family: Segoe UI;
    height: 100%;
}

.clear{
    clear: both;
}

h1{font-size: 26px;color:#1F8BBD; margin:0; margin-bottom: 10px; text-align: left;}
h2, h3{margin: 0; padding: 0;color:#1F8BBD;}

#header{
    height: 45px;
    background-color: #1F8BBD;
    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 #39f;
    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: #1F8BBD;
    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;
}
/* ===== Universal table style ===== */
.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;
}

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;
    font-size: 20px;
    font-weight: 900;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

th.sortable.sort-desc::after {
    content: '\2193';
    opacity: 1;
    font-size: 20px;
    font-weight: 900;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

/* ===== Tabulky přehledů — no-wrap všechny buňky kromě Poznámky ===== */
#table_clients td,
#table_cases td,
#table_forms td,
#table_cases_bydate td {
    white-space: nowrap;
}

/* Sloupec Poznámka — zalamuje se (clients=9, cases=8, forms=7, casesbydate=8) */
#table_clients td:nth-child(9),
#table_cases td:nth-child(8),
#table_forms td:nth-child(7),
#table_cases_bydate td:nth-child(8) {
    white-space: normal;
}

/* ===== 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;
}

#content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
    background-color: #ffffff;
    margin-top: 0;
}

#content table thead tr {
    background-color: #1F8BBD;
    color: #ffffff;
}

#content table th {
    padding: 9px 12px;
    border: 1px solid #aacfe0;
    font-weight: 600;
}

#content table td {
    padding: 8px 12px;
    border: 1px solid #c8dce8;
    color: #444;
}

#content table tbody tr {
    background-color: #ffffff;
}

#content table tbody tr:nth-child(even) {
    background-color: #f0f7fc;
}

#content table tbody tr:hover {
    background-color: #d9eef7;
}

#content table a:link,
#content table a:visited,
#content table a:hover {
    color: #1F8BBD;
}

/* Statistics tables: centered, half width */
table.w50 {
    width: 50%;
    margin: 0 auto 20px;
}

table.w50 td:first-child {
    width: 75%;
}

.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;

}



#persons{
    margin-bottom: 5px;
}

             .tox-statusbar__branding{
                 display: none;
             }

.tox.tox-tinymce{
    border-radius: 0;
}

