body {
    margin: 0;
}

.navbar {
    width: 100%;
    background-color: #33b5e5;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
}

.navbar_tab_links {
    padding-left: 16px;
    padding-right: 16px;
    display: inline-block;
}

.navbar_tab_link {
    color: white;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    font-size: 16px /* t */;
    text-decoration: none;
    display: inline-block;
    margin-right: 16px;
    padding-top: 12px;
    padding-bottom: 16px;
    border-top: 4px solid #33b5e5;
}

.navbar_tab_link:hover {
    color: rgba(255,255,255,.8);
}

.navbar_tab_link:hover.selected {
    border-top: 4px solid rgba(255,255,255,.8);
    color: rgba(255,255,255,.8);
}

.navbar_tab_link.selected {
    border-top: 4px solid white;
}

.button {
    background: #428bca;
    border: #357ebd solid 1px;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    padding: 8px 15px;
    text-decoration: none;
    text-align: center;
    min-width: 60px;
    position: relative;
    margin-left: 8px;
    outline: none;
}

.button:hover {
    cursor: pointer;
    background: #357ebd;
}

textarea {
	width: 100%;
	padding: 8;
	display: inline-block;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: Roboto, sans-serif;
	font-weight: 300;
	font-size: 14px;
    margin-bottom: 20px;
    outline: none;
    height: 120px;
    resize: vertical;
    min-height: 2.5em;
}


input[type=text], input[type=number], input[type=date] {
	width: 100%;
	padding: 8;
	display: inline-block;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: Roboto, sans-serif;
	font-weight: 300;
	font-size: 14px;
    margin-bottom: 20px;
    outline: none;
}

input[type=email] {
	width: 100%;
	padding: 8;
	display: inline-block;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: Roboto, sans-serif;
	font-weight: 300;
	font-size: 14px;
    margin-bottom: 20px;
    outline: none;
}

input[type=password] {
	width: 100%;
	padding: 8;
	display: inline-block;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: Roboto, sans-serif;
	font-weight: 300;
	font-size: 14px;
    margin-bottom: 20px;
    outline: none;
}

.form-invalid input[type=text]:invalid, .form-invalid input[type=number]:invalid, .form-invalid textarea {
	border: 1px solid red;
}

input[type=checkbox] {
}

.pn-check {
    color: #ccc;
    margin-right: 8px;
    cursor: pointer;
}


.pn-check.positive, .pn-check:hover.positive {
    color: green !important;
}

.pn-check.negative, .pn-check:hover.negative {
    color: red !important;
}

.pn-check:hover {
    color: #6C7A89;
}

.pn-check.locked {
    cursor: default
}

.pn-check.locked:hover {
    color: #ccc;
    cursor: default

}


select {
    outline: none;
	width: 100%;
	padding: 16px;
	display: inline-block;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: Roboto, sans-serif;
	font-weight: 300;
	font-size: 14px;
	margin-bottom: 20px;
	background-color: white;
}

label {
	width: 100%;
	padding-left: 4px;
	display: inline-block;
	box-sizing: border-box;
	font-family: Roboto, sans-serif;
	font-weight: 300;
	font-size: 14px;
	margin-bottom: 8px;
}

.login-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -120px;
    margin-left: -150px;
    width: 302px;
    height: 240px;
}

.login-panel .buttons {
    display: flex;
}

.login-panel .buttons .first {
    margin-left: 0;
}

.login-panel .button {
    flex-basis: 50%;
}

.new-file-upload-wrapper {
    width: 70px;
    height: 72px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    border-radius: 3px;
    cursor: pointer !important;
    margin-left: 20px;
}

.new-file-upload {
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer !important;
}

.new-file-upload-wrapper i {
    color: #ccc;
    cursor: pointer !important;
    text-align: center;
    width: 100%;
    font-size: 24px;
    margin-top: -48px;
}

.files-upload-view {
    display: inline-flex;
    flex-wrap: wrap;
}

.file-upload-remove {
    position: absolute;
    top: -14px;
    right: -14px;
    color: #a9a9a9;
    cursor: pointer;
    font-size: 14px;
}

.file-upload-edit {
    position: absolute;
    top: -16px;
    right: -20px;
    color: #a9a9a9;
    cursor: pointer;
    font-size: 14px;
}


.any-file-preview-box {
    width: 72px;
    height: 72px;
}

.any-file-icon {
    font-size: 24px;
    text-align: center;
    display: block;
    padding-top: 16px;
}

.any-file-title {
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 5px;
    max-height: 13px;
    text-align: center;
}

.modal-body .file-preview:nth-child(5n+1), .new-file-upload-wrapper:nth-child(5n+1) {
    margin-left: 0;
}

.file-preview {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    cursor: pointer !important;
    margin-left: 20px;
    text-align: center;
    position: relative;
}

.file-preview img {
    max-width: 72px;
    max-height: 72px;
    width: auto;
    height: auto;
    border-radius: 3px;
}

.file-preview a {
    width: auto !important;
    padding: 0 !important;
}

.task-template-node {

}

.task-template-node .node-link {
    text-align: left;
}

.task-template-node .selected {
    color: #a9a9a9;
}

.task-template-node .selected:hover {  
    cursor: default;
}

.task-template-node .sub-nodes {
    margin-left: 20px;
}

.client-notes {
    height: auto;
    border: none;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    font-size: 16px /* t */;
}

.select-inline {
    width: 100%;
    display: inline-flex;
}

.del-inline {
    margin-left: 8px !important;
    margin-top: 3px !important;
}   

.wl {
    margin: 8px 16px;
    flex-basis: 100%;
}

.wl.wl-2 {
    flex-basis: auto;
    flex: 0 0 auto;
}

.wl a {
    padding: 8;
    width: 100%;
    background: #33b5e5;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    font-size: 16px /* t */;
    background-color: white;
    flex-basis: 15%;
    text-align: center;
    color: black;
    text-decoration: none;
}

.wl a:hover {
    color: #a9a9a9;
    cursor: pointer;
}

.card-table-rows {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: auto;


    /*
    arghhhhhhh....
    for some reason box shadow of elements gets cutted otherwise.
    */
    padding: 10px;
    margin: -10px;
}

.page-content-wrapper {
    position: absolute;
    top: 50px;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
}

.ctp-wrapper {
    flex: 1 1 auto;
    display: flex;
}

.marker-revision {
    background-color: rgba(255, 0, 0, 0.05) !important;
    position: relative;
    margin-bottom: 42px !important;
}

.marker-revision:after {
    content: 'Требуется ревизия!';
    bottom: -28px;
    left: 0px;
    color: red;
    font-style: italic;
    position: absolute;
}

.marker-doc-expires {
    background-color: rgba(255, 0, 0, 0.05) !important;
    position: relative;
    margin-bottom: 42px !important;
}

.marker-doc-expires:after {
    content: 'Срок договора истекает менее чем через неделю!';
    bottom: -28px;
    left: 0px;
    color: red;
    font-style: italic;
    position: absolute;
}

.marker-leave {
    background-color: rgba(255, 0, 0, 0.05) !important;
    position: relative;
    margin-bottom: 42px !important;
}

.marker-leave:after {
    content: 'Клиент должен был освободить помещение!';
    bottom: -28px;
    left: 0px;
    color: red;
    font-style: italic;
    position: absolute;
}

.marker-counter {
    background-color: rgba(255, 0, 0, 0.05) !important;
    position: relative;
    margin-bottom: 42px !important;
}

.marker-counter:after {
    content: 'Недостаточно показаний для выставления счета!';
    bottom: -28px;
    left: 0px;
    color: red;
    font-style: italic;
    position: absolute;
}

.marker-nocheck {
    background-color: rgba(255, 0, 0, 0.05) !important;
    position: relative;
    margin-bottom: 42px !important;
}

.marker-nocheck:after {
    content: 'Шаблоны счетов не указаны, счет за месяц не может быть выставлен!';
    bottom: -28px;
    left: 0px;
    color: red;
    font-style: italic;
    position: absolute;
}

.marker-nocounter {
    background-color: rgba(255, 0, 0, 0.05) !important;
    position: relative;
    margin-bottom: 42px !important;
}

.marker-nocounter:after {
    content: 'Счетчики не указаны, счет за месяц не может быть выставлен!';
    bottom: -28px;
    left: 0px;
    color: red;
    font-style: italic;
    position: absolute;
}


.marker-noowner {
    background-color: rgba(255, 0, 0, 0.05) !important;
    position: relative;
    margin-bottom: 42px !important;
}

.marker-noowner:after {
    content: 'Не указаны реквизиты собственника, счет за месяц не может быть выставлен!';
    bottom: -28px;
    left: 0px;
    color: red;
    font-style: italic;
    position: absolute;
}