/*****************************************************************************
 zmiana wyglądu domyślnych elementów AdminLTE
*/

@media (min-width: 576px) {
  .form-group .col-form-label {
    text-align: right;
  }
}

.card-body.p-0 .table tbody > tr > td:last-of-type {
	padding-right: 0.5rem;
}

.custom-file-label {
	overflow: hidden;
}
.custom-file-label.form-control-sm {
	height: calc(1.8125rem + 2px);
	padding: .25rem .5rem;
	font-size: .875rem;
	line-height: 1.5;
	border-radius: .2rem;
}

.custom-file-label.form-control-sm::after {
	height: 1.8125rem;
	padding: .25rem .5rem;
	/* line-height: 1.5; */
	border-radius: 0 .2rem .2rem 0;
}

/* AdminLTE 3.1 */
.text-sm .nav-legacy.nav-sidebar .nav-item > .nav-link > .nav-icon {
	margin-left: 0px !important;
}
.text-sm .nav-sidebar.nav-child-indent .nav-treeview {
  padding-left: .75rem;
}

/* zagnieżdżone tabele */
.card-body.p-0 .table .table thead > tr > th:first-of-type,
.card-body.p-0 .table .table thead > tr > td:first-of-type,
.card-body.p-0 .table .table tfoot > tr > th:first-of-type,
.card-body.p-0 .table .table tfoot > tr > td:first-of-type,
.card-body.p-0 .table .table tbody > tr > th:first-of-type,
.card-body.p-0 .table .table tbody > tr > td:first-of-type {
  padding-left: 0.3rem;
}

.card-body.p-0 .table .table thead > tr > th:last-of-type,
.card-body.p-0 .table .table thead > tr > td:last-of-type,
.card-body.p-0 .table .table tfoot > tr > th:last-of-type,
.card-body.p-0 .table .table tfoot > tr > td:last-of-type,
.card-body.p-0 .table .table tbody > tr > th:last-of-type,
.card-body.p-0 .table .table tbody > tr > td:last-of-type {
  padding-right: 0.3rem;
}



/*****************************************************************************
 Stylowanie Modali:
 - dodatkowy, większy rozmiar okna modalnego
 - klasa do okna wycentrowanego w pionie (lekko przesunięty do góry)
*/
@media (min-width: 768px) {
  .modal-xl {
	width: 90%;
	max-width:95%;
  }
}

.modal.vertical-centered {
  text-align: center;
  padding: 0!important;
}
.modal.vertical-centered:before {
  content: '';
  display: inline-block;
  height: 80%;	/* dla idealnego centrowania powinno być 100%*/
  vertical-align: middle;
  margin-right: -4px;
}
.modal.vertical-centered .modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}

a[data-toggle=modal] {
	cursor: pointer;
}

/*
 pleaseWaitModal
	inicjalnie - zwykły spinner 
	z klasą 'progress' - pasek postępu
*/
#pleaseWaitModal .cmsSpinner 				{ display: inherit; }
#pleaseWaitModal .cmsProgressBar		{ display: none; }
#pleaseWaitModal.progress .cmsSpinner 			{ display: none; }
#pleaseWaitModal.progress .cmsProgressBar		{ display: inherit; }


/*****************************************************************************
 stylowanie linków
*/
a.cms-list, a.cms-list:hover {
	color: #333;
}

a.list {
	color: #444;
}
a.list:hover {
	color: #000;
	font-weight: 600;
}

.breadcrumb > li > a {
	color: #777;
}


/*****************************************************************************
 odstęp od ikon dekorujących napisy
*/
.fa.cms,
.fab.cms,
.far.cms,
.fas.cms {
	margin-right: 0.3em;
}


/*****************************************************************************
 style używane w formularzach
*/
.admin-buttons .btn,
.admin-button {
	min-width: 100px;
}

.admin-buttons-left {
	float: left !important;
}
.admin-buttons-right {
	float: right !important;
}

.admin-button-left {
	float: left !important;
	margin-bottom: .5rem !important;
	margin-right: .5rem !important;
	min-width: 100px;
}

.admin-buttons-left .btn {
	margin-right: .5rem !important;
	min-width: 100px;
}
.admin-buttons-right .btn {
	margin-left: .5rem !important;
	min-width: 100px;
}


.admin-button-right {
	float: right !important;
	margin-bottom: .5rem !important;
	margin-left: .5rem !important;
	min-width: 100px;
}
div.admin-button-left {
	line-height: 2em;
}

.form-group .radio-group,
.form-group .checkbox-group {
    padding: 0 0 5px 10px;
}

.form-group .radio-group .header,
.form-group .checkbox-group .header {
    margin-left: -10px;
    font-weight: 600;	
}

.form-part-header {
    line-height: 35px;
    padding: 3px 10px 4px;
    font-size: 20px;
    color: #444;
    border-top-width: 3px;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}
.form-part-body {
	padding: 10px 10px 0;
}

.col-form-label.col-sm-0 {
	display: none;
}
@media (max-width: 576px) {
	.col-form-label.col-sm-0 {
		display: initial;
	}
}

/*****************************************************************************
 stylowanie walidowanych pól
*/
label.error {
	color: #dd4b39;
}
input.error {
    border: 1px solid #dd4b39;
}


/*****************************************************************************
 wskazanie, że pole w sekcji ma błąd
*/
form .form-section-header.child-has-error {
	color: #dd4b39;
}
form .form-section-header.child-has-error::after {
	margin-left: 0.25em;
	font-size: 1.2em;
	vertical-align: top;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	content: "\f05e";
}
/* sekcja z ikoną błędu staje się wyższa - zwiększamy dolną przestrzeń w pozostałych*/
.text-sm .card a.nav-link:not(.with-child-has-error-sign) {
	padding-bottom: 10px;
}
.text-sm .card a.nav-link.with-child-has-error-sign {
	padding-bottom: 6px;
}


/*****************************************************************************
 tooltip
*/
.tooltip {
	min-width: 400px;
}
.tooltip-inner {
	background-color: #ecf0f5;
	color: #000;
	border: 1px solid #000;
	min-width: 400px;
	text-align: left;
}
.tooltip-inner .tooltipHeader {
	font-weight: bold;
	font-size: 1.1em;
	padding-bottom: 10px;
}

.admin-tooltip {
	margin-left: 0.3em;
	cursor: help;
}


/*****************************************************************************
 tabele, wskaźniki sortowania
*/
.sortIndicator::after {
	margin-left: 0.5em;
	font-size: 1.1em;
	vertical-align: middle;
	font-family: "Font Awesome 5 Free";
	cursor: pointer;
	content: "\f0dc";
	opacity: 0.4;
}
.sortIndicator.up::after {
	content: "\f160";
	opacity: 0.7;
}
.sortIndicator.down::after {
	content: "\f161";
	opacity: 0.7;
}

.table > thead > tr > th {	/*ze względu na wskaźniki sortowania - tytuły w tabeli muszą być równane do góry*/
    vertical-align: top;
}


td.id-col, 
th.id-col {
	width: 50px;
}

td.flag-col, 
th.flag-col {
	width: 30px;
	text-align: center;
}

td.numeric-col, 
th.numeric-col {
	text-align: right;
}

tr.noActive td,
tr.noActive th {
	color: gray;
	font-style: italic;
}

.table-striped tbody .table-not-striped tbody tr:nth-of-type(odd) {
	background-color: transparent;
}

.table-striped.table-hover tbody .table-not-striped tbody tr:nth-of-type(odd):hover {
	background-color: rgba(0,0,0,.075);
}

/*****************************************************************************
 modyfikacje wyglądu kart
*/
.card-tools .tool-group {
    float: right;
    display: inline-flex;
    white-space: nowrap;
    line-height: 2em;
    padding: 0 0 3px 10px;
}

.card-edit {
	float: right;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: #000;
	text-shadow: 0 1px 0 #fff;
	opacity: .5;
	overflow: visible;
	padding: 0;
	background-color: transparent;
	border: 0;
	margin-top: -10px;
	margin-right: -5px;	
}

.card.callout .card-footer {
	margin: -1rem;
}
.card.callout .card-footer a {
	color: #fff;
	text-decoration: none;
}


/*****************************************************************************
 CKEditor
*/
.cke_toolbox_main .cke_combo__placeholder_select .cke_combo_text.cke_combo_inlinelabel
{
	width: auto;
}

/*****************************************************************************
 inne
*/

.CMSCustomTabHeader {
	padding: 0.25rem 0 0 0 !important;
	white-space: nowrap;
}
.CMSCustomTabHeader > div:nth-child(1) {
	padding-right: 0;
}
.CMSCustomTabHeader > div:nth-child(1) .nav {
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 3px;
}
.CMSCustomTabHeader > div:nth-child(1) h3 {
	margin: 0.5rem 1rem !important;
}

.CMSCustomTabHeader > div:nth-child(2) {
	padding-left: 0;
	font-weight: bold;
}
@media (max-width: 576px) {
	.CMSCustomTabHeader > div:nth-child(1) .nav {
		border-bottom: 0 !important;
		padding-bottom: inherit;
	}
}

/* ścieżka dodatkowa dla drzewa stron */
ul.breadcrumb.pagesTree {
	margin: 0px;
}

/* chowanie brakujących języków w formularzu DOC */
.nonExistingLanguage {
	display: none;
}

/* stylowanie ID obiektu na liście */
span.node-id {
	 color:#999; font-weight:200; display:inline-block; padding: 0 5px 0;
}

/* zunifikowany znaczek ładowania treści do kontenera */
.loading {
	background:url(../images/loader.gif) center center no-repeat;
}

/* stylowanie obrazków z okienku pomocy kontekstowej */
#help_tabs img {
	max-width: 100%;
}


#main_tree span.fancytree-title {
	display: inline;
}
.CMSActionTool {
	padding: 4px 3px;
}
.noActiveMark {
	text-align: center;
	font-weight: bold;
	color: Red;
	float: right;
	padding-right: 10px;
}

.adminEmptyList {
	text-align: center;
	font-style: italic;
}

.pageToolbarItem {
    width: 22px;
    display: table-cell;
    text-align: center;
}

.indicatorR{
	text-align: center;
	font-weight: bold;
	color: Red;
}
.indicatorB {
	text-align: center;
	font-weight: bold;
	color: Blue;
}

.indicatorG {
	text-align: center;
	font-weight: bold;
	color: Green;
}


.intelliPanel {
	min-width:200px;
}

select#f2p_placecode option[data-status="own"],
select#f2p_placecode option[data-status="inherited"] {
	font-style: italic
}
select#f2p_placecode option[data-status="inherited"] {
	color: grey;
}
select#f2p_placecode option[data-status="own"] {
	color: silver;
}

.card-title .adnotacja {
	padding-top: 10px;
}