
/*---------zakładka kalendarium--------*/
#events-search-form {
	margin: 0 auto 1em;
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-flex-direction: row;
	flex-direction: row;
}

#events-search-form > div.box-date-to {
	min-width: 20%;
}

#events-search-form > div.box-date-from {
	min-width: 30%;
}

#events-search-form > div.search-box {
	width: 25%;
}

#events-search-form > div.box-tags {
	width: 25%;
}

@media screen and (max-width: 1000px) {
	#events-search-form {
		-webkit-justify-content: flex-end;
		justify-content: flex-end;
		align-items: flex-end;	
	}

	#events-search-form > .search-box, #events-search-form > .box-tags {
		width: 50% !important;
		text-align: right;
	}
}

@media screen and (max-width: 468px) {
	#events-search-form > div, #events-search-form > .tags, #events-search-form > .search-box {
		width: 100% !important;
		text-align: right;
	}

	#events-search-form > div.search-box, #events-search-form > div.box-tags {
		width: 100% !important;
	}

	table#kalendarium tr.row-inner-details {
		line-height: 1em;
	}
}

#events-search-form > div {
	padding: 1em 0 0 1em;
}

#events-search-form {
	width: 100%;
}

.box-tags > div {
	float: left;
}

.box-tags {
	min-width: 10em;
}

.label-tags, .search-text {
	text-align: right;
	float: left;
}

.label-tags {
	width: 3em;
}

.search-text {
	width: 3.8em;
}

.tags-select {
	width: calc(100% - 3em);
}

#events-search-form .selection {
	max-height: 28px;
}

table#kalendarium { 
	margin:0 auto; 
	width:100%;
}

table#kalendarium tr {
	border: 0;
	background: none;
	line-height: 1.2em;
	cursor: pointer;
}

table#kalendarium tr.row-link {
	border-top: 1px solid #FFF;
}

table#kalendarium tr.row-details:last-child {
	border-bottom: 1px solid #FFF;
}

table#kalendarium tr.row-highlighted {
	background-color: rgba(255, 255, 255, 0.05);
}

table#kalendarium tr.row-details > td,
table#kalendarium tr.row-tags > td {
	padding-top: 0;
}

table#kalendarium > tbody > tr.row-link > td.name {
	font-weight: 700;
	width: 61.5%;
	max-width: 61.5%;
	text-decoration: underline;
}

table#kalendarium td {
	vertical-align: middle;
}

table#kalendarium td.picture-cell {
	vertical-align: top;
}

table#kalendarium td.description {
	width: 100%;
	max-width: 100%;
	text-align: justify;
	line-height: 1.75;
}

table#kalendarium td.description, div.location, div.time {
	line-height: 1.5;
	overflow-wrap: anywhere;
}

table#kalendarium tr.row-details {
	line-height: 1em !important;
	font-size: 1em !important;
}

table#kalendarium p.tags-line {
	margin-bottom: 0;
	font-weight: 400;
	color: rgb(255, 255, 255);
}

table#kalendarium > tbody > tr.row-link > td.picture-cell {
	width: 30%;
	max-width: 30%;
	text-align: right;
}

table#kalendarium > tbody > tr.row-link > td.picture-cell img {
	max-height: 10em;
	max-width: 100%;
}

table#kalendarium .dates {
	width: 12em;
}

table#kalendarium a.button {
	float: right;
}

div.box-details {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
}

div.box-details > div.time{
	padding: 0.5em 0;
	max-width: 22em;
	margin-right: 1em;
}
div.box-details > div.time span.nowrap{
	white-space: nowrap;
}

div.box-details > div.location{
	padding: 0.5em 0;
	flex-grow: 2;
	text-wrap: wrap;
}

.ui-datepicker-current, .ui-datepicker-close {
	display: none;
}

#events-search-form select {
	height: auto;
	display: inline-block;
	width: auto;
	cursor: pointer;
}

#events-search-form input:not(.search-input) {
	height: auto;
	width: 8em;
	display: inline-block !important;
	cursor: pointer;
}

#events-search-form input.events-text{
	width: calc(100% - 3.8em);
	cursor: text;
}

#events-search-form input.date {
	padding: 0 0.9em;
}
/*---------Koniec zakładka kalendarium --------*/
/*---------Kalendarium formularz zgłoszenie wydarzenia--------*/
#form-event-create input,
#form-event-create textarea {
	color: #000;	
}

#form-event-create p#lang-info {
	font-size: 0.75em;
}

#form-event-create input[type="time"], 
#form-event-create input.date,
#form-event-create textarea#comments{
	border: 1px solid #d9d9d9;
}

#form-event-create textarea {
	font-size: 16px;
	resize: none;
	width: 100%;	
}

#form-event-create input[type="time"] {
	border-radius: 3px;
	background-color: #fff !important;
}

#form-event-create textarea#event-name,
#form-event-create textarea#event-location,
#form-event-create textarea#event-link {
	height: 1.5em;
	margin: 0;
}

#form-event-create input, #form-event-create textarea {
	box-shadow: none;
}

#form-event-create .swal2-textarea:focus {
	border:1px solid #d9d9d9;
}

#form-event-create input.date {
	box-shadow: none;
	-webkit-box-shadow: none;
}

#form-event-create div#first_day,
#form-event-create div#last_day {
	position: relative;
}

#form-event-create > div {
	display:flex;
	flex-direction: row;
	margin: 0.5em 0;
	position: relative;
}

#form-event-create .form-label {
	font-size: 0.9em;
	width: 30%;
	text-align: right;
	padding: 0.5em 0.5em 0.5em 0;
}

#form-event-create #box-event-everyday .form-label {
	padding: 0.1em 0.5em 0.5em 0;
}

#form-event-create .day-box .form-label {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
}

#form-event-create .form-inputs {
	width: 70%;
}

#form-event-create .form-inputs.row-times,
#form-event-create .day-box > .form-inputs > .form-row {
	display:flex;
	flex-direction: row;
}

#form-event-create .day-box > .form-inputs > .form-row {
	justify-content: flex-start;
}

#form-event-create .day-box > .form-inputs > .form-row > .form-day-label {
	width: 3.5em;
	text-align: left;
	padding-top: 0.52em;
	font-size: 0.9em;
}

#form-event-create input:not([type="checkbox"]):not([type="time"]) {
	margin: 0;
	width: 100%;
}
#box-time-interval .row-times > .box-hour {
	width:45%;
}

div.box-hour {
	max-width: 7em;
}

#form-event-create input#time-since,
#form-event-create input#time-until {
	width: 100% !important;
	margin-top: 0.1em;
}

.time-to, .time-from {
	text-align: right;
	padding: 0.25em 0.25em 0 0.25em;
}

div.time-to label,
div.time-from label {
	margin-bottom: 0;
	padding: 0.25em 0;
	white-space: nowrap;
}

div#box-event-everyday label {
	text-align: justify;
	padding-top: 0.5em;
}

input.date {
	color: #777;
	box-shadow: none;
}

#form-event-create input {
	font-size: 1em;
}

#form-event-create label {
  color: #545454;
  font-weight: 400;
  cursor: pointer;
}

#form-event-create input[type="checkbox"] {
  appearance: checkbox;
  -moz-appearance: checkbox;
  -webkit-appearance: checkbox;
  -ms-appearance: checkbox;
  z-index: 1;
  opacity: 1;  
  float: none;
  display: inline-block;
  margin-right: .5em; 
  cursor: pointer;
  
  -ms-transform: scale(1.5); /* IE */
  -moz-transform: scale(1.5); /* FF */
  -webkit-transform: scale(1.5); /* Safari and Chrome */
  -o-transform: scale(1.5); /* Opera */
  transform: scale(1.5);
}

#swal2-html-container #ui-datepicker-div {
	position: absolute !important;
	width: 15em;
}

#form-event-create .cmpDetRow, #form-event-create .hidden {
  display: none;
}

#form-event-create .err-text {
	font-size: 12px;
	text-align: left;
	color:#ff0000;
	padding-top: 0.3em;
}

#form-event-create div#box-event-everyday{
	margin-bottom: 0.25em;
	text-align: justify;
}

#form-event-create div#box-event-everyday .form-inputs input{ 
	margin-top: 0.3em;
}

#form-event-create div#box-event-everyday .form-inputs label { 
	padding-top: 0;
	margin: 0;
}

#form-event-create .box-day-time-checkbox {
	padding: 2px 0 4px;
}

#form-event-create .day-time {
	width: 7em;
}

#form-event-create #event-picture {
	border: 0;
	padding: 0.2em 0 0;
}

#picture-label {
	position: relative;	
	height: 6em; 
	border: 1px solid #d9d9d9;	
	background-size: auto 100%;
	background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
	font-size: 1em;
	text-align: center;	
	padding-top: 2.5em;
	margin: 0;
}

#picture-label > input {
	display: none;
}

#event-picture:valid ~ span {
	display: none;
}

.swal2-actions button {
  letter-spacing: 0;
  height: 2.4em !important;
  line-height: 1.2em !important;
  font-size: 1.2em !important;
}

.swal2-popup .swal2-styled.swal2-confirm {
  background-color: rgb(48, 133, 214);
}

.swal2-styled.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(48, 133, 214, 0.502);
}

.swal2-container .swal2-close {
	box-shadow: none;
  color: #bb2828;
}

/* "x" na inputach do czyszczenia, input wymaga klasy allow-clear, div zewnętrzny position: relative */
input + .clear-date {
	display: none;
}

input.allow-clear {
	padding-right: 1.5rem !important;
}

input.allow-clear + .clear-date {
	color: #000;
	cursor: pointer;
	display: block !important;
	position: absolute;
	right: 10px;
	top: -0.5rem;
	font-size: 2.5rem;
}
/* koniec "x" */

/* Koniec kalendarium zgłoszenie wydarzenia */
/**************** Media Query *********************/
@media screen and (max-width: 736px) {
	#form-event-create .form-label {
		font-size: 0.8em;
		width: 35%;
		padding: 0.25em 0.25em 0.25em 0;
	}

	#time-to, #time-from {
		min-width: 7%;
		text-align: right;
		padding: 0.5em 0 0;
	}

	#form-event-create label {
		font-size: 0.8em;
	}

	#box-time-interval .row-times > .box-hour	{
		width:30%;
		height: 1.75em;
	}

	#form-event-create input#time-since,
	#form-event-create input#time-until {
		height: 1.75em;
	}

	#form-event-create .day-box > .form-inputs > .form-row > .row-times {
		flex-direction: row;
	}

	#form-event-create .day-box > .form-inputs > .form-row > .row-times > div {
		flex: 1 1 100%;
		/* display:flex; */
		flex-direction: row;
		align-items: baseline;
	}

	#form-event-create .day-box > .form-inputs > .form-row > .row-times .time-from,
	#form-event-create .day-box > .form-inputs > .form-row > .row-times .time-to {
		text-align: left;
	}

	#form-event-create .day-box > .form-inputs > .form-row > .row-times .day-time {
		width: 5.5rem;
	}

	#form-event-create #box-time-interval > .row-times > div.box-hour {
		width: 5.5rem;
	}

	div.box-details > div.time {
		width: 100%;
	}

	div.box-details > div.location {
		max-width: 100% !important;
		overflow-wrap: anywhere;
	}

	table#kalendarium td.picture-cell {
		width: 41.5% !important;
		max-width: 41.5% !important;
	}

	table#kalendarium td.name {
		width: 50% !important;
		max-width: 50% !important;
	}

}

@media screen and (max-width: 480px) {
	#swal2-html-container {
		margin: 1em 0.8em .3em;
	}
}