/*  GENERAL */
* {
    margin: 0;
    padding: 0;
}

p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

div {
    display: block;
}

img {
    border: none;
}

.box {
    position: relative;
    margin-top: 5px;
    margin-bottom: 15px;
    border-top: 1px solid #afcffa;
    border-left: 0px;
    border-right: 0px;
    border-bottom: 1px solid #afcffa;
    background-color: #dfeffc;
    padding: 10px;
}

.loading {
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 1px;
    right: 1px;
    background-color: rgba(29, 59, 87, 0.7);
    text-align: center;
    vertical-align: middle;
}

.loading img {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    margin: auto;
    color: white;
    font-weight: bold;
}

a {
    color: #4297D7;
    text-decoration: none;
    cursor: pointer;
}

a:hover,
a:active {
    color: #1d5987;
}

h3 {
    font-size: 1em;
    color: #4c7cbd;
    margin-top: 12px;
    margin-bottom: 8px;
}
h3 a {
    color: #4c7cbd;
    text-decoration: none;
}
h3 a:hover {
    text-decoration: underline;
}

.unpaid {
    color: red;
    font-weight: bold;
}

.tree {
    font-size: 120%;
}

.tree_node {
    margin-left: 15px;
    font-size: 98%;
    font-weight: bold;
    }

.script {
    display: none;
}

.p {
    padding-bottom: 5px;
    text-align: justify;
}

/*  ERROR   */

.errors {
    text-align: center;
    color: red;
    margin: 30px auto;
}

.errors:empty {
    margin: 0;
}

.errors li {
    display: list-item;
    list-style-image: none;
    overflow: hidden;
}

/*  LOGIN   */

#login {
    margin-top: 20%;
}

#login_dialog {
    margin: 0 auto;
    width: 350px;
    color: #1d5987;
}

#login_dialog fieldset {
    border: none;
    padding: 10px;
}

#login_dialog label {
    width: 100px;
    text-align: right;
    display: inline-block;
}

#login_dialog div {
    padding-bottom: 5px;
    height: 30px;
    line-height: 30px;
}

#login_btn {
    float: right;
    width: 100px;
    /*height: 25px;*/
    margin-top: 15px;
}

#userpass, #username {
    border: 1px solid #1d5987;
    float: right;
    width: 200px;
    height: 25px;
    font-weight: Bold;
    text-indent: 10px;
}


/*  FILTER  */
.filter {
    padding: 10px;
    overflow: auto;
}

.filter label {
    font-weight: bold;
    margin-right: 5px;
}

.filter label, .filter input, .filter select {
    /*height: 25px;*/
    height: 50%;
}

.filter select {
    padding-left: 5px;
}

.filter input[type="submit"] {
    float: right;
    width: 70px;
}

.filter span {
    display: inline-block;
    padding-right: 10px;
}

.filterX{
    float: right;
}

/*  TABLE   */
table {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    border-spacing: 0;
    text-shadow: none;
}

th {
    background-color: #4297d7;
    color: white;
}

th a {
    color: white;
    text-decoration: underline;
}

td.number {
    text-align: right;
}

th.tight {
	width: 1px;
	white-space: nowrap;
	padding-left: 10px;
	padding-right: 10px;
}

th.leftcol {
    width: 20ex;
}

td, th {
    padding: 2px;
}

tr.sumrow {
    font-weight: bold;
}

tr.sumrow td {
    border-top: 1px solid #4297d7;
    background-color: #F0D8B8;
}

textarea {
    margin-top: 10px;
    margin-bottom: 10px;
}

/*  STYLETABLE  */

.styleTable th {
    background-color: #4297D7;
    color: #FFFFFF;
}

.styleTable table {
    background-color: #FFFFFF;
    margin-bottom: 20px;
    margin-top: 5px;
    border: 2px solid #4297D7;
}

.styleTable td, .styleTable th {
    border-right: 1px solid #4297D7;
    border-bottom: 1px solid #4297D7;
}

.styleTable {
    font-size: 90%;
}

.styleTable tr.even {
    background-color: #DEEFFF;
}

/*  USERPANEL   */
#userPanel form label {
    text-align: left;
    line-height: 25px;
    width: 250px;
    display: inline-block;
}

#userPanel form input[type="password"] {
    /*width: 250px;*/
    margin-bottom: 10px;
    line-height: 25px;
}

#userPanel form input[type="submit"] {
    /*width: 100px;*/
    float: right;
    /*height: 25px;*/
}

#header form input[type="submit"] {
	margin-bottom: 5px;
}

input.error {
	background-color: #FFA0A0;
}

.underpaid {
    font-weight: bold;
}

.center {
    text-align: center;
}

.title {
    font-weight: bold;
}

.vtop {
    vertical-align: top;
}

#butt_addrow {
    float: right;
    /*width: 75px;*/
    width: 90px;
}

.tab_left {
    text-align: left;
}

.red {
    color: red;
}

.filesezn{
    display: inline-block;
}

.odkazsezn{
    width: 50%;
    margin-bottom: 0.5em;
}

.filesezn1{
    display: inline-block;
    float: right;
    margin-left: 1em;
    margin-right: 1em;
}
#sizeDoc{
    width:45px;
}

.filesezndel{
    text-decoration: line-through;
}

.tree_parent_doc {
    margin-top: 2em;
    font-size: 120%;
}

.tree_node_doc {
    margin-left: 15px;
    margin-top: 0.4em;
    font-size: 100%;
    }

.number {
    text-align: right;
}
    
.row{
    padding-bottom: 3px;
    max-width: 99%;
}    

.form-control{
    max-width: 99%;
}    

#select-domy-sel, #select-prostory-sel, #select-firmy-sel {
    width: 95%;
}

input.btn.btn-default {
    margin-top: 5px;
}

#AktualFirma {
    display:none;
}



input.datum.form-control.hasDatepicker {
    display: inline-block; 
    width: 85%;
}

input.datumIns.form-control.hasDatepicker {
    display: inline-block; 
    width: 85%;
}

#clear {
     clear: both;
}

/*
img.ui-datepicker-trigger{
    top: 0px;
}
*/

/*
td.tab_left.datum{
    width: 100%;
}
*/


@media screen and (max-width: 800px) {
   #login_dialog label {
       float: left;  
       text-align: left;
   }

    #login_dialog {
        margin: 0;
        width: auto;
    }
    #userpass, #username {
        display: block;
        float: left;
     }
}