.has-error .table-control {
	border-width: thin;
	border-color: #dd4b39;
	box-shadow: none;
	border-style: solid;
}

.has-error .table-control:focus {
	outline: none !important;
}

.badge-error {
  background-color: #b94a48;
}
.badge-error:hover {
  background-color: #953b39;
}
.badge-warning {
  background-color: #f89406;
}
.badge-success {
  background-color: #5cc45e;
}
.badge-info {
  background-color: #3a87ad;
}
.badge-inverse {
  background-color: #333333;
}

.table-control[disabled],
.table-control[readonly],
fieldset[disabled] .table-control {
	background-color: #eee;
	opacity: 1;
	box-shadow: none;
	border-width: thin;
	border-color: #ccc;
	border-style: solid;
}

.rows-per-page {
	margin-top: 20px;
	margin-bottom: 50px;
}

.rows-per-page select {
	height: 33.5px;
}

.resource-link {
	text-decoration: underline;
	cursor: pointer;
}

.resource-link:hover {
	font-weight: bold;
}

.bold {
	font-weight: bold;
}

.action-bar {
	margin-left: 230px;
   	position: fixed;
   	top: 52px;
   	left: 0;
   	right: 0;
   	/*margin-top: -30px;*/
	/*padding: 1px 235px 1px 0px;*/
	background: #ffffff;
	border-bottom: 1px solid silver;
	z-index: 500;
}

.btn-white {
	background-color: #ffffff;
	color: #444;
	border-color: #ddd;
}

.btn-transparent {
	background-color: transparent;
	border-color: #ddd;
}

.btn-fix-width {
	width: 100px;
}

.btn-fix-width-icon {
	width: 50px;
}

.btn-white:hover {
	color: #333 ;
  	/*background-color: #e6e6e6;*/
  	border-color: #adadad;
}

.alert-container {
	position: absolute; 
	/*left: 50%;*/
	/*width: 40%;*/
	z-index: 1;
}

.alert {
	text-align: center;
	/*position: relative;*/ 
	/*left: -50%;*/
	
	padding: 4px 35px 4px 35px;
	margin-top: 5px;
	z-index: 2000;
}

.search-sidebar-right
{
	float: right;
}

/**
 * Wyłącza menu z powiadomieniami
 */
.messages-menu, .notifications-menu, .tasks-menu, .sidebar-form
{
	/*display: none !important;*/
}


/*
 * Component: Search sidebar. By default, this is the right sidebar.
 */
.search-sidebar-bg {
  position: fixed;
  z-index: 400;  
  bottom: 0;
}


.fixed .search-sidebar
{
	right: -230px;
	top: 90px;			/* zmiana z 0 na 90 */
}

.search-sidebar-bg,
.search-sidebar {
  top: 0px;			/* zmiana z 0 na 90 */
  right: -245px;
  width: 230px;
  -webkit-transition: right 0.3s ease-in-out;
  -o-transition: right 0.3s ease-in-out;
  transition: right 0.3s ease-in-out;
}
.search-sidebar {
  position: absolute;
  padding-top: 20px;		/* zmiana z 50 na 20 */
  z-index: 410;
}
@media (max-width: 768px) {
  .search-sidebar {
    padding-top: 100px;
  }
}
.search-sidebar > .tab-content {
  padding: 10px 15px;
}

.search-sidebar.search-sidebar-open + .search-sidebar-bg {
  right: 0;
}

.fixed.search-sidebar.search-sidebar-open,
.fixed.search-sidebar.search-sidebar-open + .fixed.search-sidebar-bg {
  right: 0;
}

.fixed .search-sidebar.search-sidebar-open {
  right: 0px !important;
}

.search-sidebar.search-sidebar-open ,
.search-sidebar-open .search-sidebar-bg,
.search-sidebar-open .search-sidebar {
  right: 0;
  margin-top: 70px;
}
@media (min-width: 768px) {
  .search-sidebar-open .content-wrapper,
  .search-sidebar-open .right-side,
  .search-sidebar-open .main-footer {
    margin-right: 230px;
  }
}
.nav-tabs.search-sidebar-tabs > li:first-of-type > a,
.nav-tabs.search-sidebar-tabs > li:first-of-type > a:hover,
.nav-tabs.search-sidebar-tabs > li:first-of-type > a:focus {
  border-left-width: 0;
}
.nav-tabs.search-sidebar-tabs > li > a {
  border-radius: 0;
}
.nav-tabs.search-sidebar-tabs > li > a,
.nav-tabs.search-sidebar-tabs > li > a:hover {
  border-top: none;
  border-right: none;
  border-left: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.nav-tabs.search-sidebar-tabs > li > a .icon {
  font-size: 16px;
}
.nav-tabs.search-sidebar-tabs > li.active > a,
.nav-tabs.search-sidebar-tabs > li.active > a:hover,
.nav-tabs.search-sidebar-tabs > li.active > a:focus,
.nav-tabs.search-sidebar-tabs > li.active > a:active {
  border-top: none;
  border-right: none;
  border-bottom: none;
}
@media (max-width: 768px) {
  .nav-tabs.search-sidebar-tabs {
    display: table;
  }
  .nav-tabs.search-sidebar-tabs > li {
    display: table-cell;
  }
}
.search-sidebar-heading {
  font-weight: 400;
  font-size: 16px;
  padding: 10px 0;
  margin-bottom: 10px;
}
.search-sidebar-subheading {
  display: block;
  font-weight: 400;
  font-size: 14px;
}
.search-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0 -15px;
}
.search-sidebar-menu > li > a {
  display: block;
  padding: 10px 15px;
}
.search-sidebar-menu > li > a:before,
.search-sidebar-menu > li > a:after {
  content: " ";
  display: table;
}
.search-sidebar-menu > li > a:after {
  clear: both;
}
.search-sidebar-menu > li > a > .search-sidebar-subheading {
  margin-top: 0;
}
.search-sidebar-menu .menu-icon {
  float: left;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
}
.search-sidebar-menu .menu-info {
  margin-left: 45px;
  margin-top: 3px;
}
.search-sidebar-menu .menu-info > .search-sidebar-subheading {
  margin: 0;
}
.search-sidebar-menu .menu-info > p {
  margin: 0;
  font-size: 11px;
}
.search-sidebar-menu .progress {
  margin: 0;
}
.search-sidebar-dark {
  color: #b8c7ce;
}
.search-sidebar-dark,
.search-sidebar-dark + .search-sidebar-bg {
  background: #222d32;
}
.search-sidebar-dark .nav-tabs.search-sidebar-tabs {
  border-bottom: #1c2529;
}
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li > a {
  background: #181f23;
  color: #b8c7ce;
}
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li > a,
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li > a:hover,
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li > a:focus {
  border-left-color: #141a1d;
  border-bottom-color: #141a1d;
}
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li > a:hover,
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li > a:focus,
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li > a:active {
  background: #1c2529;
}
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li > a:hover {
  color: #fff;
}
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li.active > a,
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li.active > a:hover,
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li.active > a:focus,
.search-sidebar-dark .nav-tabs.search-sidebar-tabs > li.active > a:active {
  background: #222d32;
  color: #fff;
}
.search-sidebar-dark .search-sidebar-heading,
.search-sidebar-dark .search-sidebar-subheading {
  color: #fff;
}
.search-sidebar-dark .search-sidebar-menu > li > a:hover {
  background: #1e282c;
}
.search-sidebar-dark .search-sidebar-menu > li > a .menu-info > p {
  color: #b8c7ce;
}
.search-sidebar-light {
  color: #5e5e5e;
}
.search-sidebar-light,
.search-sidebar-light + .search-sidebar-bg {
  background: #f9fafc;
  border-left: 1px solid #d2d6de;
}
.search-sidebar-light .nav-tabs.search-sidebar-tabs {
  border-bottom: #d2d6de;
}
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li > a {
  background: #e8ecf4; 
  color: #444444;
}
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li > a,
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li > a:hover,
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li > a:focus {
  border-left-color: #d2d6de;
  border-bottom-color: #d2d6de;
}
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li > a:hover,
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li > a:focus,
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li > a:active {
  background: #eff1f7;
}
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li.active > a,
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li.active > a:hover,
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li.active > a:focus,
.search-sidebar-light .nav-tabs.search-sidebar-tabs > li.active > a:active {
  background: #f9fafc;
  color: #111;
}
.search-sidebar-light .search-sidebar-heading,
.search-sidebar-light .search-sidebar-subheading {
  color: #111;
}
.search-sidebar-light .search-sidebar-menu {
  margin-left: -14px;
}
.search-sidebar-light .search-sidebar-menu > li > a:hover {
  background: #f4f4f5;
}
.search-sidebar-light .search-sidebar-menu > li > a .menu-info > p {
  color: #5e5e5e;
}
.search-sidebar-white {
  color: #5e5e5e;
}
.search-sidebar-white,
.search-sidebar-white + .search-sidebar-bg {
  background: #ffffff;
  border-left: 1px solid #d2d6de;
}
.search-sidebar-white .nav-tabs.search-sidebar-tabs {
  border-bottom: #d2d6de;
}
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li > a {
  background: #ffffff;
  color: #444444;
}
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li > a,
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li > a:hover,
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li > a:focus {
  border-left-color: #d2d6de;
  border-bottom-color: #d2d6de;
}
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li > a:hover,
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li > a:focus,
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li > a:active {
  background: #eff1f7;
}
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li.active > a,
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li.active > a:hover,
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li.active > a:focus,
.search-sidebar-white .nav-tabs.search-sidebar-tabs > li.active > a:active {
  background: #f9fafc;
  color: #111;
}
.search-sidebar-white .search-sidebar-heading,
.search-sidebar-white .search-sidebar-subheading {
  color: #111;
}
.search-sidebar-white .search-sidebar-menu {
  margin-left: -14px;
}
.search-sidebar-white .search-sidebar-menu > li > a:hover {
  background: #f4f4f5;
}
.search-sidebar-white .search-sidebar-menu > li > a .menu-info > p {
  color: #5e5e5e;
}
.dropdown-action-menu > li > a {
  color: #333 !IMPORTANT;
}

.context-footer {
 	margin-left: 230px;
   	position: fixed;
   	bottom:37px;
   	left: 0;
   	right: 0;
   	z-index: 1000;
   	background-color: white;
}

.context-action-bar {
	background-color: #3c8dbc;
	text-align: center;
	height:1.5em;   /* Height of the footer */
	display: none;
	cursor: pointer;
	color: white;
}

.context-footer-collapsed .context-action-bar-collapsed {
   	display: block;
}

.context-footer-expanded .context-action-bar-expanded {
   	display: block;
}

.context-data {
	height:35rem;   /* Height of the footer */
	display: none;
	vertical-align: top;
}

.context-footer-expanded .context-data {
	display: block;
}

.context-data-menu {
	height:100%; 
	border-right: 1px silver solid;
	padding-right: 0px;
}

.context-data .table-wrapper {
	display: block;
	padding: 0;
	margin: 0;
	overflow-y: auto;
	height: 31rem;
}

@media (min-width: 768px)
{
	.sidebar-mini.sidebar-collapse .context-footer {
		margin-left: 50px!important;
	}
	
	.sidebar-mini.sidebar-collapse .action-bar  {
		margin-left: 50px!important;
	} 
	
	.context-data .pagination  {
		margin-top: 0px;
		margin-bottom: 0px;
	}
}

@media (max-width: 767px)
{
	.context-footer {
		margin-left: 0px!important;
	}
	
	.action-bar  {
		margin-left: 0px!important;
		top: 104px;
	} 
	
	.context-data .pagination  {
		margin-top: -20px;
		margin-bottom: 0px;
	}
}

#flash {
    position: fixed;
    margin-left: 10px;
    bottom: 0;
    z-index: 9999;
}


/* The snackbar - position it at the bottom and in the middle of the screen */
#flashContainer {
    position: fixed; /* Sit on top of the screen */
    z-index: 9999; /* Add a z-index if needed */
    right: 0; /* Center the snackbar */
    bottom: 75px; /* 30px from the bottom */
}

#flashContainer .flash-item {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
}

#flashContainer .flash-item.error {
    border-right: 15px solid #ff0000
}
#flashContainer .flash-item.success {
    border-right: 15px solid #23A623
}
#flashContainer .flash-item.info {
    border-right: 15px solid #bce8f1
}
#flashContainer .flash-item.warning {
    border-right: 15px solid #fe8501
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#flashContainer .flash-item.show {
    visibility: visible; /* Show the snackbar */

/* Add animation: Take 0.5 seconds to fade in and out the snackbar. 
However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
    animation: fadein 0.5s, fadeout 0.5s 4.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

.highlight td {
	background: lightsalmon;
}

.like-disabled {
	background-color: #fff !IMPORTANT;
    border-color: #ccc !IMPORTANT;
}

table.floatThead-table {
    border-top: none;
    border-bottom: none;
    background-color: #FFF;
}

.context-data-menu button {
	white-space: normal;
}

.nav-tabs-custom>.nav-tabs.uidocument>li.active
{
	border-top-width: 5px;
	border-top-color: #4b646f;
}

.form-header {
	margin-top: 5px;
	white-space: nowrap;
  	overflow: hidden;
  	text-overflow: ellipsis;
}

.drag-over .attachment-pane 
{
	z-index: 500;
	margin:-1em;
	border: 1em dashed #3c8dbc;
	vertical-align: bottom;
}

.drag-over.drag-blocked .attachment-pane
{
	border-color: red;
	background-color: rgb(255,0,0,0.5);
} 

tr.item-done .btn-link
{
	color: white;
}

tr.item-done td,
table.item-done,
table.item-done thead tr th,
table.item-done tr:nth-of-type(even) td
{
	background-color: #5caddc;
	border-color: #4899c8;
}

tr.item-done:nth-of-type(odd) td,
table.item-done tr:nth-of-type(odd) td 
{
	background-color: #4899c8;
	border-color: #2879a8;
}


tr.user-disabled td
{
	background-color: #FF000090;
}

tr.user-disabled:nth-of-type(odd) td
{
	background-color: #DD000088;
}

tr.service-order-rejected td
{
	background-color: #ff952b;
}

tr.service-order-rejected:nth-of-type(odd) td
{
	background-color: #ffA53b;
}

td.incoming-correspondence-overdue
{
	background-color: #AF0000;
	border: 1px dotted red;
}

td.incoming-correspondence-overdue a
{
	color: lightgray;
}

td.incoming-correspondence-3-days-due
{
	background-color: #ffde44;
	border: 1px dotted red;
}

td.incoming-correspondence-3-days-due a
{
	color: black;
}

tr.incoming-correspondence-rejected td
{
	background-color: #4F0000;
}

tr.incoming-correspondence-rejected td a
{
	color: lightgray;
}

tr.incoming-correspondence-rejected:nth-of-type(odd) td
{
	background-color: #6F0000;
}

tr.incoming-correspondence-decree td
{
	background-color: #b8b01f;
}

tr.incoming-correspondence-decree td a
{
	color: black;
}

tr.incoming-correspondence-decree:nth-of-type(odd) td
{
	background-color: #d4ca13;
}

tr.table-row-alert td
{
	background-color: #F99492;
}

tr.table-row-alert:nth-of-type(odd) td
{
	background-color: #E98482;
}

tr.table-row-success td
{
	background-color: #B7F3B1;
}

tr.table-row-success:nth-of-type(odd) td
{
	background-color: #93D088;
}

tr.building-30-days td
{
	background-color: #ffa500;
}

tr.building-30-days:nth-of-type(odd) td
{
	background-color: #FFB732;
}

tr.building-30-days td > a
{
	color: white;
}

tr.building-after-days td
{
	background-color: #ff0000;
}

tr.building-after-days:nth-of-type(odd) td
{
	background-color: #FF3232;
}

tr.building-after-days td > a
{
	color: white;
}

.active-menu span{
	color: white;
}

.active-menu i {
	color: red;
}

.dropDownSearchButton {
  	background-image: url('../img/searchicon.png');
  	background-size: 12px 12px;
  	background-position: 12px 11px;
  	background-repeat: no-repeat;
  	padding: 7px 12px 7px 35px;
  	border: none;
  	border-bottom: 1px solid #ddd;
}

ui-select-match-link {
	float: left;
	margin-top: 0.5rem;
	margin-right: 0.5rem;
	color: #3c8dbc;
}

ui-select-match-link:hover {
	color: #72afd2;
}

.ui-select-match-text > span {
	padding-right: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    
}

.ui-select-match-text.ui-select-allow-clear span {
	padding-right: 50px;
}

.ui-select-toggle > .btn.btn-link {
  margin-right: 10px;
  top: 6px;
  position: absolute;
  right: 10px;
}

.nested-view-open,
.nested-view-open:nth-of-type(odd) > td {
	background-color: #3c8dbc;
}

.nested-view-open,
.nested-view-open > td > a,
.nested-view-open > span > a {
	color: white
}

ul.jstree-container-ul {
	margin-bottom: 3em;
}

.application-info button {
	padding-top: 0; 
	padding-bottom: 0; 
	border: 0; 
	height: 16px; 
	margin-top: -3px;
}
.application-info .fa {
	font-size: 16px;
}

.form-group.form-group-no-margin
{
	margin-bottom: 0px;
}

.category-div {
	padding-top: 3px;
    padding-bottom: 3px;
    background-color: #d2d6de;
    color: rgb(51, 51, 51);
}

.category-div > a  {
	color: rgb(51, 51, 51) !important;
}

.category-div > i {
	margin-right: 5px;
    margin-left: 5px;
}

.attachment-div {
	padding-top: 3px;
    padding-bottom: 3px;
}

.attachment-div> div > i {
	margin-right: 5px;
}

.attachment-div:hover {
	background-color: #3c8dbc;
	color: white !important;
}

.attachment-div:hover > div > a {
	background-color: #3c8dbc;
	color: white !important;
}

.todo-list-item {
	background-color: #ffffff !important;
}

.todo-list-item:hover {
	background-color: #f4f4f4 !important;
	cursor: pointer;
	transition: 1s;
}

#dashboard-box-footer{
	text-align: center;
	padding: 0 !important;	
}

.small-box-footer{
	min-height: 44px;
}


.plan-building-site-task
{
	width: 100%;
	margin: 0 -3px 5px -3px;
	border: 2px solid;
	border-color: inherit;
	overflow: hidden;
	display: grid;
}

/*
.plan-building-site-task.plan-building-site-task-height
{
	min-height: 6.5em;
}
*/
.draggable {
	cursor: move;
}

.plan-building-site-task .pbsk-title .pbsk-time
{
	text-align: right;
}
.plan-building-site-task .pbsk-body .pbsk-body-date
{
	text-align: center;
}

.plan-building-site-task .pbsk-highlight {
	font-size: 14px !IMPORTANT;
}

.plan-building-site-task .pbsk-body .pbsk-body-name,
.plan-building-site-task div .pbsk-name div,
.plan-building-site-task .pbsk-title .pbsk-title-ellipsis
{
  	overflow: hidden;
  	text-overflow: ellipsis;
  	font-size: 12px;
}

.plan-building-site-task .pbsk-body .pbsk-body-name
{
	height: 3em;
}

.plan-building-site-task .pbsk-title .pbsk-index
{
	font-weight: bold;
}