html {
    font-size: 100%;
}

body {
    color: #333;
    background: #f4f6f8;
    font-size: 14px;
}


.container {
    margin: 0 auto;
    width: 95%;
    max-width: 980px;
}

#content {
    border: 1px solid #e4e4e4;
    background: white;
    box-shadow: 0 0 5px #dfdfdf;
    padding: 20px 2%;
}


#content h1 {
    margin: 0;
    margin-bottom: 20px;
    text-align: center;
}

#print-warning {
    display: none;
}

.tip {
    color: #31708F;
    background-color: #D9EDF7;
    border: 1px solid #BCE8F1;
    border-radius: 4px;
    font-size: 12px;
    margin: 25px 0 15px;
    padding: 10px;
    line-height: 18px;
}

/* form */
.dm-form {
    
}

.dm-form select:invalid,
.dm-form input:invalid {
  box-shadow: none;
}

.dm-form select:-moz-submit-invalid,
.dm-form input:-moz-submit-invalid {
  box-shadow: none;
}

.dm-form select:-moz-ui-invalid,
.dm-form input:-moz-ui-invalid {
  box-shadow:none;
}


.dm-form .row {
    margin: 6px 0;
}

.form-actions {
    margin-top: 15px;
    margin-bottom: 5px;
    text-align: right;
}

.msg-change {
    
}

.msg-error {
    color: #ff0000;
    font-size: 10px;
    margin: 0;
    padding: 0;
}

.dm-form .msg-error {
    
}

.info {
    font-size: 10px;
}

#submit {
    padding: 10px 16px;
}

.agr {
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.agr label,
.person label {
    display: inline-block;
    width: 20%;
    min-width: 100px;
}

.value input[type=text],
.statement-date select,
.agr select,
.agr input[type=text],
.person input[type=text],
.person select {
    border: 1px solid #c6c6c6;
    padding: 2px 3px;
}


.agr input[type=text],
.person input[type=text] {
    min-width: 250px;
}

.person #zleceniobiorca_kraj {
    min-width: 200px;
}
.person #zleceniobiorca_obywatelstwo {
    min-width: 200px;
}

.value input[type=text]:focus,
.statement-date select:focus,
.agr select:focus,
.person select:focus,
.person input[type=text]:focus {
    border: 1px solid #4285f4;
}

.person input[type=text]:invalid {
    border-width: 1px;
}

input[type=text].error,
.statement-date select:-moz-ui-invalid,
.agr select:-moz-ui-invalid,
.agr input[type=text]:-moz-ui-invalid,
.agr input[type=text]:-moz-submit-invalid,
.person input[type=text]:-moz-ui-invalid,
.person input[type=text]:-moz-submit-invalid,
.person select:-moz-ui-invalid,
.person select:-moz-submit-invalid {
    border: 1px solid #ff0000;
    box-shadow: none;
}


/*
#wrapper_zleceniobiorca_us {
    float: none;
}

#wrapper_zleceniobiorca_us label {
    display: block;
    width: 100%;
}

#wrapper_zleceniobiorca_us input {
    width: 98%;
    max-width: 600px;
}
*/

.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
}



/* grid */
.dm-grid {
    
}

.dm-grid .col {
    float: left;
}

.dm-grid .w50 {
    width: 50%;
}

.dm-grid .w60 {
    width: 60%;
}

.dm-grid .w100 {
    width: 100%;
}

/* statement */
.statement {
    min-height: 100px;
}

.statement .choice-values,
.statement .node {
    
}

.statement .invisible {
    display: none;
}

#nodes > .node {
    border-top: 1px solid #e8e8e8;
    padding: 15px;
}

.statement .node {
    padding: 0 15px;
}

.statement .node:hover {
    background: #f5f5f5;
}

.statement .node .node {
    margin-left: 25px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.statement .node .list {
    margin-top: 5px;
}

.statement .list li > .node {
    margin: 5px 0;
    padding: 0;
}

.statement .list ul {
    margin-top: 5px;
}

.statement .question {
    font-weight: normal;
    
}

.statement .node:hover .question {
    color: #1E3A77;
}

.statement .right {
    margin-left: 5px;
}

.statement label {
    display: inline-block;
}

.statement .value label {
    margin-right: 10px;
}

.statement .indefinite {
    margin-left: 10px;
}

.statement .choice label {
    cursor: pointer;
    text-transform: uppercase;
}

.statement .choice {
    margin-left: 15px;
}

.choice input {
    margin: 0 5px;
}

.statement input[type=radio] {
    cursor: pointer;
}

.statement .indefinite input {
    margin-right: 5px;
}


.choice input[type=radio] {
    display: none;
    margin: 10px;
}

.choice input[type=radio] + label {
    display: inline-block;
    margin: 0;
    margin-right: 6px;
    padding: 4px 0;
    background-color: #dadada;
    border-color: #d5d5d5;
    text-align: center;
    width: 50px;
}

.choice input[type=radio] + label:hover {
    background-color: #c0c0c0;
}

.choice input[type=radio]:checked + label {
    background-image: none;
    background-color: #536896;
    color: white;
}

.choice input[type=radio]:checked + label.tak {
    background-color: #3C8147;
}

.error input[type=radio] + label {
    background: #D35151;
}

input[type=text].error,
select.error {
    border: 1px solid #ff0000;
}

.pracownik-urlop .question {
    display: inline-block;
    min-width: 100px;
}

.zatrudnienie .question {
    display: inline-block;
    min-width: 125px;
}

.niepelnosprawnosc .question {
    display: inline-block;
    min-width: 185px;
}


.statement-date {
    display: inline-block;
    margin-right: 50px;
}

.statement-date label {
    margin-right: 15px;
}




/* nodes */
.pracodawca label,
#node_2n01 label,
#node_2n02 label {
    min-width: 120px;
}
.pracodawca input,
#node_2n01 input,
#node_2n02 input {
    width: 70%;
}
/*
#node_2n111_32 .select {
	display: block;
}
*/
.zasilek select {
	margin-top: 5px;
}

.funkcjonariusz .choice input[type=radio] + label {
	margin-top: 5px;
}

.kwota .question,
#node_30n11 .question {
    min-width: 75px;
}

#node_35n label {
    min-width: 60px;
}
#node_35n input {
    width: 25%;
}

[id^="node_35n6a0"] input {
    width: 70% !important;
}

#node_8n13 .question {
    margin-right: 10px;
}

#node_8n131 input {
    width: 70%;
}

#node_50n .question {
    width: 576px;
	text-align: justify;
}

//#node_8n131 label {
//    font-weight: bold;
//}

.node35n .question {
    margin-right: 15px;
}



#download-area {
    display: none;
}


#download-mask {
    display: none;
    position: absolute;
    background: #f4f6f8;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0.95;
}

#download-msg {
    display: none;
    background: #fff;
    border: 1px solid #a4a6a8;
    box-shadow: 0 0 6px #a4a6a8;
    border-radius: 2px;
    position: fixed;
    *position: absolute;
}

#download-msg p {
    padding: 40px 30px;
    font-size: 16px;
    font-style: italic;
    text-align: center;
}

#download-msg img {
    display: block;
    margin-top: 10px;
    width: 100%;
    height: 19px;
}

.messages {
    display: none;
    margin: 15px 0;
    text-align: center;
}

.messages .warning {
    color: red;
}


/* tools */

.dm-grid .row:before,
.dm-grid .row:after,
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.dm-grid .row:after,
.clearfix:after {
    clear: both;
}

.dm-grid .row,
.clearfix {
    *zoom: 1;
}



/* JQUERY UI */
.ui-autocomplete {
	position: absolute;
	top: 0;
	left: 0;
	cursor: default;
}

.ui-front {
	z-index: 1000;
}

.ui-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: block;
	outline: none;
}

.ui-menu .ui-menu {
	position: absolute;
}

.ui-menu .ui-menu-item {
	position: relative;
	margin: 0;
	padding: 3px 1em 3px .4em;
	cursor: pointer;
	min-height: 0; /* support: IE7 */
	/* support: IE10, see #8844 */
	list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
}

.ui-menu .ui-menu-divider {
	margin: 5px 0;
	height: 0;
	font-size: 0;
	line-height: 0;
	border-width: 1px 0 0 0;
}

.ui-menu .ui-state-focus,
.ui-menu .ui-state-active {
	/* margin: -1px; */
}

.ui-widget {
    box-shadow: 0 2px 3px #999;
}

.ui-widget-content {
    background: white;
    border: 1px solid #4285f4;
}

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
	background: #4285f4;
    color: white;
}

.ui-helper-hidden-accessible {
    display: none;
}