/* TODO:Fix tooltip nie aktualizują pozycji podczas przeskrolowanie okna tymczasowo wyłączamy je */
.mce-widget.mce-tooltip {
  display: none !important;
}
/* ======================================== Obrazki ===================== */
.image-preview {
  margin: 0 40px 16px 0;
  width: 200px;
  height: 200px;
  display: block;
  position: relative;
  text-align: center;
  overflow: visible;
  background: #e9e9e9;

  /*transition: width 300ms;*/
}

.image-preview .image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  background: #f5f5f5 center no-repeat;
  background-size: cover;
}

.image, .small-image {
  display: block;
  background: #f5f5f5 center no-repeat;
  background-size: cover;
}

.small-image {
  width: 60px;
  height: 60px;
}

.image-preview.too-small .image {
  background-size: auto;
  border: solid 1px #e8e8e8;
}

.image-controls {
  display: block;
  position: absolute;
  top: 0;
  right: -40px;
  width: 40px;
  background: none;
}

.image-controls a, .image-controls span {
  width: 40px;
  height: 40px;
  margin-bottom: 1px;
  padding: 4px;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  background: #464b55;
}

/* ======================================================================= */
/* ========================================FORM=========================== */

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #bcbcbc !important;
  opacity: 1;
}

::-moz-placeholder { /* Firefox 19+ */
  color: #bcbcbc !important;
  opacity: 1;
}

:-ms-input-placeholder { /* IE 10+ */
  color: #bcbcbc !important;
  opacity: 1;
}

:-moz-placeholder { /* Firefox 18- */
  color: #bcbcbc !important;
  opacity: 1;
}

label {
  display: block;
  min-height: 24px;
  margin: 4px 0.2rem 4px;
  font-size: 1rem;
  color: #656565;
}

/*label:before {
  content: '\A';
}*/
.resources-editor #MAIN-CONTENT label {
  color: #777;
}

input, select, textarea, .count_left, .mce-tinymce.mce-container, .plugins {
  margin: 0 1rem 1rem 0;
  box-sizing: border-box;
  max-width: 850px;
}
.mce-tinymce.micro .mce-container > iframe{
  height: 40px!important;
}
input, select, textarea, .count_left {
  padding: 9px 15px;
  height: 40px; /*to samo co button*/
  width: 100%;
  max-width: 420px;
  border: 0 none;
  font-family: tahoma, arial, sans-serif;
  color: #656565;
  font-size: 1em;
}

input, select, textarea, .switch_plugin span {
  background: #fff;
  border: solid 1px #bdbdbd;
  border-radius: 4px;
}

.data-table input, .data-table select, .data-table textarea {
  width: 100%;
}

.data-table input, .data-table select, .data-table textarea, .data-table .switch_plugin span {
  background: #fff;
}

.shortinput, input.shortinput, select.shortinput {
  width: 258px;
}

select {
  padding-right: 5px;
  /*-webkit-appearance: none;*/
  /*-moz-appearance: none;*/
  /* appearance: none;*/
}

.custom-select, .search-input {
  margin: 0px 20px 20px 20px;
  box-sizing: border-box;
  max-width: 850px;

  background: #fff;
  border: solid 1px #bdbdbd;
  border-radius: 4px;

  width: 100%;
  max-width: 420px;
  overflow: hidden;
  position: relative;
  height: 40px;
}

.custom-select select, .search-input input {
  background: transparent;
  margin: 0;
  width: 100%;
  border: 0 !important;
  padding-right: 40px;
  outline: none;
}

.custom-select:after, .search-input:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  padding: 4px;
  box-sizing: border-box;
  background-color: #fff;
  background-position: top center;
  background-repeat: no-repeat;
  background-origin: content-box;
  pointer-events: none;
}

.search-input {
  max-width: 250px;
}

.search-input:after {
  background-image: url(icons/form-zoom.png);
}

.custom-select:after {
  background-image: url(icons/form-select.png);
}

textarea {
  height: auto;
  min-height: 132px;
  line-height: 1.45;
  /*width: 100%;*/
  resize: none;
}

textarea.code {
  color: #5454C0;
  font-family: courier new;
  font-size: 14px;
  line-height: 1.5em;
  padding: 0.5em 1em;
}

textarea.rows-2 {
  min-height: 30px;
}

textarea.rows-2:focus {
  min-height: 130px;
}

/* inputy - typ godzina */
.input-hour {
  width: 420px;
}

.input-hour > input {
  width: 203px;
  box-sizing: border-box;
  margin: 0 0 8px 0;
}

/* pola wymagane i zablokowane */
em.req {
  color: #dc0c0c;
}

input.empty {
  border-color: #dc0c0c;
}

form input:focus, form select:focus, form textarea:focus {
  /*border-color: #888;*/
}

/* ================== datapicker =============== */
.ui-widget-header {
  /*background: #ddd !important;*/
}

/* ================== edycja listy checkboxow ========== */
.edit-list-button {
  display: block;
  padding: 5px 21px;
  margin: 0 0 1em 0;
  width: 10em;
  background: url(graphics/edit-this-list.png) 5px 4px no-repeat;
}

.edit-list-button:hover {
  text-decoration: underline;
}

/* ==================zliczanie znaków ================== */
.count_left { /* pokazuje ile znaków pozostało w polu */
  display: block;
  min-height: 0;
  height: 1.2em;
  padding: 0;
  margin: -10px 2px -5px 0;
  text-align: right;
  font-size: 0.9em;
  opacity: 0.5;
}

.count_left:before {
  content: "..";
}

/* ================== Radio i checkbox ===================== */
input[type="checkbox"], input[type="radio"] {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  display: none;
}

input[type="checkbox"] + label, input[type="radio"] + label {
  display: inline-block;
  padding: 1rem 1rem 1rem 50px;
  margin: 0 1rem 1rem 0;
  min-width: 200px;
  min-height: 22px;
  /*float: left;*/
  position: relative;
  box-sizing: border-box;
  vertical-align: middle;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  border: solid 1px #ddd;
}

input[type="checkbox"] + label::before, input[type="radio"] + label::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 16px;
  display: block;
  width: 18px;
  height: 18px;
  margin-right: 0.5em;
  transition: all 300ms;
  border: 2px solid #9d9d9d;
  border-radius: 2px;
  line-height: 1;
}

input[type="radio"] + label::before {
  border-radius: 50%;
}

input[type="checkbox"]:checked + label::before {
  content: url("icons/form-checkbox-checked.png");
  background: #20b99a;
  border-color: #20b99a;
}

input[type="radio"]:checked + label::before {
  content: url(icons/form-radio-checked.png);
  border-color: #20b99a;
}


.message-window input[type="radio"] + label{
  border: none;
  padding: .5rem 1rem .5rem 50px;
  margin: 0 1rem 0 0;
}

.message-window input[type="radio"] + label::before{
  top: 10px;
}

/* -------------- modyfikatory ---------------- */
/*gdy jest dużo checkboxow obok siebie */
.huge-list input[type="checkbox"] + label, .huge-list input[type="radio"] + label {
  width: 300px;
}

/*gdy ma być obrazek w checkboxie */
input[type="checkbox"] + label.with-small-image, input[type="radio"] + label.with-small-image {
  padding-left: 100px;
}

input[type="checkbox"] + label.with-small-image::before, input[type="radio"] + label.with-small-image::before {
  top: 16px;
  left: 66px;
}

input[type="checkbox"] + label.with-small-image .image, input[type="radio"] + label.with-small-image .image {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  height: 100%;
  max-width: 50px;
  margin: 0;
}

/*gdy ma być większy obrazek w checkboxie */
input[type="checkbox"] + label.with-big-image, input[type="radio"] + label.with-big-image {
  float: left;
}

input[type="checkbox"] + label.with-big-image span, input[type="radio"] + label.with-big-image span {
  width: 300px;
  height: 150px;
  display: block;
  background: #f5f5f5 center;
  background-size: contain;
  border: solid 1px #e8e8e8;
}

input[type="checkbox"] + label.with-big-image strong, input[type="radio"] + label.with-big-image strong {
  margin-top: 16px;
  display: block;
  font-weight: normal;
}

input[type="checkbox"]:checked + label.with-big-image,
input[type="radio"]:checked + label.with-big-image {
  border-color: #20b99a;
}

/* -------checkbox-button -> np w kontrolkach zdjęc galerii, multiblokow itp-- */
.checkbox-button {
  display: block;
  position: relative;
  height: 40px;
  width: 40px;
}

.checkbox-button input[type="checkbox"] + label {
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-width: 0;
  display: block;
  border: 0;
}

.checkbox-button input[type="checkbox"] + label::before {
  top: 9px;
  left: 9px;
}

/* --------------- to trzeba zastapic ------------- */
input[type="radio"] + label.check-whole-box {
  margin: 0;
}

input[type="radio"] + label.check-whole-box::before {
  display: none;
}

input[type="radio"] + label.check-whole-box .card {
  width: 100%;
}

input[type="radio"]:checked + label.check-whole-box .card {
  border: 1px solid #2ad9b6;
}

input[type="radio"] + label.check-whole-box .card::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 35px;
  height: 35px;
  border-radius: 30px;
  background: #2ad9b6 url('icons/btn-ok.png') no-repeat center;
  opacity: 0;
  transition: opacity 300ms;
}

input[type="radio"]:checked + label.check-whole-box .card::after {
  opacity: 1;
}

/* ==================Toggle switch ===================== */
.switch_plugin span {
  background: #4A4A4A url(icons/toggle-icons.png) center no-repeat;
}

.switch_plugin {
  margin: 0 8px 8px 0;
  display: block;
  position: relative;
  padding: 10px 0;
}

.switch_plugin span {
  content: " ";
  height: 22px;
  width: 45px;
  margin: 0 0.5em -5px 0;
  position: relative;
  top: 0;
  left: 0;
  display: inline-block;
  cursor: pointer;
  border-radius: 16px;
  background: #bdbdbd;
  border: 0;
}

.switch_plugin span:after {
  content: " ";
  height: 16px;
  width: 16px;
  box-sizing: border-box;
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  border-radius: 16px;
  transition: left 300ms;
  cursor: pointer;
  background: #fff;
  border: 0;
}

.switch_plugin input[value="1"] + span {
  background: #2ad9b6 !important;
}

.switch_plugin input[value="1"] + span:after {
  left: 26px;
  background: #fff;
}

/* ================================= disabled ===========*/
.disabled, input[disabled="disabled"], select[disabled="disabled"], textarea[disabled="disabled"],
input[disabled], select[disabled], textarea[disabled] {
  color: #bcbcbc;
  background: #f5f5f5;
  /*opacity: 0.6;*/
  /* background-image: url(icons/form-lock.png);*/
  background-position: center right;
  background-repeat: no-repeat;
}

/* ========================================== */
.fieldset { /* grupuje pola i pluginy np w celu sortowania */
  margin-bottom: 15px;
  position: relative;
  border: solid 1px #ddd;
  background: #d9d9d9;
}

.fieldset > div, .fieldset > h3 {
  margin: 15px !important;
}

.fieldset > div.gallery-preview {
  background: transparent;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

/* ============================================================================================================================== */
/* ==================================================== przyciski ===========*/
.button, .clean-button, .add-button, .msg-button, .browse-area-item {
  width: auto;
  height: auto;
  min-width: 4em;
  /*min-height: 40px;*/
  height: 40px; /* ?? */
  min-width: 160px;
  margin: 0 1rem 1rem 0;
  padding: 11px 30px;
  box-sizing: border-box;
  border-radius: 2px;
  overflow: hidden;

  line-height: 20px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: background-color 200ms;
}

.button, .clean-button, .add-button, .msg-button {
  color: #f5f5f5 !important;
  background: #464b55;
}

.button:hover, .clean-button:hover, .add-button:hover, .msg-button:hover, .uploadify:hover .uploadify-button, .uploadifive-button, .uploadifive-button:hover, .button:focus {
  cursor: pointer;
  background: #575d67 !important;
}

.button img, .clean-button img {
  margin: -8px -1px -6px -1px;
  display: inline-block;
  vertical-align: middle;
}

.button input[type='submit'] {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  width: auto;
  height: auto;
  display: block;
  float: none;
  width: 100%;
  cursor: pointer;
}

.button.disabled, .add-button.disabled, .button.disabled:hover, .add-button.disabled:hover {
  background: rgba(70, 75, 85, 0.7) !important;
  background: #464b55 !important;
  color: rgba(255, 255, 255, 0.3) !important;
  cursor: default;
  box-sizing: border-box;
  opacity: 0.8;
}

.add-button.disabled span {
  background: rgba(255, 255, 255, 0.3) !important;
  /* background: #a4a7ac !important;*/
}

.add-button.disabled span img {
  opacity: 1;
  filter: invert(63%);
}

.button.disabled span, .add-button.disabled span {
  cursor: default;
}

/* przyciski bezpośrednio w section */
section > .button {
  min-width: 258px;
  text-align: left;
}

section > .controls {
  margin-top: 20px;
}

/* przyciski z obrazkiem */
.add-button {
  min-width: 180px;
  padding-left: 55px;
  display: inline-block;
  position: relative;
  text-align: left;
}

.add-button span, .uploadify-button:before, .uploadifive-button:before, .file-preview span, .browse-area-item span {
  cursor: pointer;
  padding: 4px 2px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 36px;
  box-sizing: border-box;
  display: block;
  background: #000;
}

.add-button span img {

}

.add-button.orange span, .uploadify-button.orange:before, .uploadifive-button.orange:before, .file-preview.orange span, .browse-area-item span {
  background: #ff9e2b;
}

.add-button.red span, .uploadify-button.red:before, .uploadifive-button.red:before, .file-preview.red span, .browse-area-item.red span {
  background: #dc143c;
}

.add-button.mint span, .uploadify-button.mint:before, .uploadifive-button.mint:before, .file-preview.mint span, .browse-area-item.mint span {
  background: #2ad9b6;
}

.add-button.blue span, .uploadify-button.blue:before, .uploadifive-button.blue:before, .file-preview.blue span, .browse-area-item.blue span {
  background: #429ffd;
}

.add-button.purple span, .uploadify-button.purple:before, .uploadifive-button.purple:before, .file-preview.purple span, .browse-area-item.purple span {
  background: #e130fe;
}

.add-button.width-auto {
  min-width: 0;
  width: auto;
}

.button.alt, .add-button.alt {
  color: #777 !important;
  border: solid 1px #777;
  background: transparent;
}

.button.alt span, .add-button.alt span {
  background: #f0f0f0;
}

.button.alt span img, .add-button.alt span img {
  filter: invert(0.7);
}

.button.alt:hover, .add-button.alt:hover {
  background: #f8f8f8 !important;
}

.button.alt:hover span, .add-button.alt:hover span {
  background: #e5e5e5 !important;
}

/* przyciski w message window */
.msg-button {
  padding: 6px;
  margin-right: 1px;
  margin-left: 0;
  width: 40px;
  height: 40px;
  min-width: 0;
  display: inline-block;
  overflow: hidden;
  float: none;
  cursor: pointer;
}


.x {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 25px;
  height: 25px;
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.x img {
  width: 25px;
  height: 50px;
  margin: -25px 0 0;
  border: none;
}

.x:hover img {
  margin-top: 0px;
}

ul.gallery-editor .x:hover {
  opacity: 1;
}

.del {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 23px;
  height: 23px;
  display: block;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.75;
}

.del img {
  width: 18px;
  height: 14px;
  margin: 5px 0 0 4px;
  border: none;
}

.handle {
  cursor: pointer;
}

.uploadify { /*container*/
  display: inline-block;
  margin: 4px 8px 8px 0
}

.uploadify object {
  opacity: 0;
}

.uploadifive-button input[type="file"] {
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  cursor: pointer;
  opacity: 0 !important;
}

/*najlepiej zakomentowac caly fragment uploadify.css */
.uploadify-button, .uploadifive-button {
  cursor: pointer;
  margin: 0px 16px 16px 0;
  box-sizing: border-box;
  position: relative;
  border: none !important;
  border-radius: 2px !important;
  line-height: 20px !important;
  text-align: left !important;
  background: #4e5258 !important;
  height: auto !important;
}

.uploadify-button span {
  background: 0 none;
  position: static;
  display: inline;
  height: auto;
  width: auto;
  padding: 0;
  top: auto;
  bottom: auto;
  left: auto;
  box-sizing: content-box;
}

.uploadify-button:before, .uploadifive-button:before {
  content: url(icons/btn-add.png);
}

.swfupload {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.browser-window .uploadify {
  float: left;
  margin: 8px 8px 8px 0;
  width: 200px !important;
}

/* przyciski group links*/
.tools-group-links {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

/* =============================konkretne ikony z przycisków ===========*/

.group-links-button {
  width: auto;
  min-width: 4em;
  height: 42px;
  margin: 0;
  padding: 11px 30px 11px 0;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 20px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-align: left;
  vertical-align: middle;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: normal;
  text-transform: initial;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #777;
  border-bottom: 1px solid #ccc;
  transition: background-color 200ms, padding-left 200ms linear;
}

.group-links-button img {
  margin: 4px 0 0 7px;
  display: inline-block;
  vertical-align: middle;
}

.group-links-button:hover {
  padding-left: 5px;
  background-color: #f8f8f8;
}

.group-links-button span {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 42px;
  height: 42px;
  transition: right 300ms linear;
}

.group-links-button:hover span {
  right: -3px;
}

.group-links-button span img {
  filter: invert(0.5);
}

.button:before {
  margin: -13px 7px -15px -6px;
  display: inline-block;
  vertical-align: middle;
}

.ok-button:before {
  content: url(icons/btn-ok.png);
}

/* ====================== kontenery przycisków ================= */
.controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.combo-btn {
  margin: 0px 16px 16px 0;
  display: flex;
  border-radius: 2px;
  min-width: 320px;
}

.combo-btn > * {
  margin: 0 !important;
  border-radius: 0;
  margin-right: 1px !important;
  flex: 1;
}

.combo-btn > *:last-child {
  margin: 0 !important;
}

/* ========================================IKONY ======================== */


/* =======================ikony plików i ikony języków =================*/
.page-icon {
  margin: 0;
  padding: 15px 15px 10px 45px;
  box-sizing: border-box;
  min-height: 45px;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.page-icon img {
  position: absolute;
  left: 5px;
  top: 50%;
  margin-top: -16px;
  filter: invert(50%);
}

.page-icon:hover {
  background: #ececec;
}

/* =======================ikona handlera =================== */
.handler {
  cursor: pointer;
  overflow: hidden;
  width: 30px;
}

.handler.mini {
  padding: 5px;
  width: 15px;
  height: 15px;
}

.handler:hover {
  opacity: 1;
}

.module-box .handler {
  position: absolute;
  bottom: 0px;
  right: 0px;
}

/* =======================ikona obrazkow (listy wyboru obrazka) =========== */
.thb-icon {
  width: 100px;
  margin: 0 5px 0.5em 0;
  padding: 0.5em 0 0.5em 0;
  text-align: center;
  display: inline-block;
  vertical-align: top;
}

.thb-icon img {
  min-height: 50px;
  min-width: 50px;
  max-width: 95px;
  max-height: 75px;
  /*border: solid 1px #aaa;*/
}

.thb-icon:hover img {
  opacity: 0.9;
}

.thb-icon span {
  text-overflow: ellipsis;
  word-wrap: break-word;
  display: block;
}

/* ============================= Pluginy ================================ */
.file-preview {

}

/* ============== Obrazek =================== */

/*.image-preview .thb {
  margin: 0;
  max-width: none;
  max-height: none;
  min-height: 50px;
  width: auto;
  height: auto;
  display: block;
  text-align: center;
  border: 0 none;
  position: relative;
}
.image-preview .thb img {
  margin: 0 auto !important;
  max-width: 100%;
  max-height: 400px;
  display: block;
}
.image-preview .content {
  padding: 10px;
  color: #aaa;
  background: #4a4a4a;
}
.image-preview .content p {
	text-overflow: ellipsis;
	overflow: hidden;
}*/
.image-preview .del {
  /*background: rgba(255,255,255,0.5);*/
}

/* ============ otwieranie podgladu obrazka ========= */
.image-preview .thb:hover img {
  opacity: 0.75;
  position: relative;
}

.image-preview .thb:hover:after {
  content: url(graphics/zoom-in.png);
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  overflow: hidden;
  cursor: pointer;
  pointer-events: none;
  /*background: rgba(255,255,255,0.2) url(graphics/zoom-in-out.png) center no-repeat;*/
}

/* ======================== galeria ================================== */
div.gallery-preview {
  position: relative;
  clear: both;
}

div.gallery-preview .controls {
  clear: both;
}

.gallery-preview .image-preview {
  float: left;
  margin-right: 56px;
}

div.gallery-preview .del {
  background: rgba(255, 255, 255, 0.9);
}

div.gallery-preview .del img {
  margin: 3px 0 0 6px;
}

/* ======================== video ================================= */
.video-preview {
  margin: 0 0 1rem 0;
  width: 420px;
  position: relative;
}

.video-preview .x {
  right: -20px;
}

/* ======================== plik ================================== */
.url-plugin-buttons {
  height: 0;
  margin-right: 1rem;
  box-sizing: border-box;
  overflow: hidden;
  transition: height 200ms;
  max-width: 850px;
}

.url-plugin-buttons > div {
  border-radius: 4px;
  border: solid 1px #ddd;
  padding: 16px 0px 0px 16px;

}

.url-plugin-buttons .add-button {
  margin-top: 0;
}

.url-plugin-buttons.show-me {
  margin-top: 10px;
  height: 80px;
}

a.button-preview {
  display: inline-block;
  padding: 1rem 1rem 1rem 66px;
  margin: 0 15px 15px 0;
  line-height: 20px;
  min-width: 250px;
  position: relative;
  box-sizing: border-box;
  vertical-align: middle;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  border: solid 1px #ddd;
}

.huge-list .button-preview {
  width: 300px;
}

a.button-preview:hover {
  background: #f8f8f8;
}

.button-preview span.icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  padding: 9px;
  box-sizing: border-box;
  width: 50px;
  background: #70b6fe;
}

.button-preview span.icon.mint {
  background: #2ad9b6;
}

a.button-preview span.icon img {
  max-width: 32px;
  max-height: 32px;
  display: block;
}

.cms-icons-preview a.button-preview span.icon { /* ikonka w oknie podglądu folderu icons */
  background: #999;;
}

.file-preview, .file-preview:hover, .site-preview, .site-preview:hover {
  /*  display: block;
    padding: 1rem 1rem 1rem 50px;
    margin: 0 16px 16px 0;
    min-width: 200px;
    position: relative;
    box-sizing: border-box;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
    border: solid 1px #ddd;

    */


  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none !important;
  border: solid 1px #cecec1;
  max-width: 250px;
  padding-right: 30px;
}

.site-preview a, .file-preview a {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.site-preview .del, .file-preview .del {
  top: 6px;
}

.file-preview span {
  background: #74cfb3;
}

/* -- nowe -- */
.site-preview, .file-preview {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 35px;
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-end;
}

.site-preview > a:first-child, .file-preview > a:first-child {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
}

.site-preview > a:first-child:hover, .file-preview > a:first-child:hover {
  background: #eee;
}

.site-preview .del, .file-preview .del {
  top: 0;
  right: 0;
  bottom: 0;
  width: 35px;
  height: 100%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-preview .del:hover, .file-preview .del:hover {
  background: #ccc;
}

.site-preview .del img, .file-preview .del img {
  margin: 0;
  width: 18px;
  height: auto;
  margin-right: -7px;
}

/* ======================== strona ================================ */
.site-preview span {
  background: #72ade9;
}

/*================================== listy przyciskow w main content === */
.content-toolbar {
  padding: 0;
  min-height: 40px;
  border: solid 1px #aaa;
  background: #fcfcfc;
}

.content-toolbar ul {
  float: none;
  clear: both;
  margin: 0;
  padding: 0;
  display: block;
}

.content-toolbar ul li {
  margin: 0 1px 0 0;
  padding: 0;
  display: block;
  float: left;
}

.content-toolbar ul li a {
  display: block;
  font-size: 12px;
  text-align: center;
  height: 20px;
  min-width: 99px;
  padding: 12px 10px 8px 10px;
}

.content-toolbar ul li a:hover {
  color: #888;
}

.content-toolbar p {
  padding: 10px;
  height: 20px;
}

/* ========================== tabele trzymające formularze ======*/
.form-wrapper {
  table-layout: fixed;
  width: 100%;
}

.form-wrapper td {
  vertical-align: top;
  padding: 4px 0;
}

.form-wrapper tr.highlight td {
  background: #F6F6F6;
}

.form-wrapper label {
  margin: 7px 0.5em 0; /* gorny - tyle co padding pola input */
}

.form-wrapper td:last-child label {
  margin-left: 0;
}

.form-wrapper input, .form-wrapper select, .form-wrapper textarea {
  margin: 0 0px;
  width: 100%;
}

.form-wrapper .button {
  margin: 0;
  width: auto;
  float: none;
  display: block;
}

/* ================================= tabele danych ======*/
.data-table {
  width: 100%;
  table-layout: fixed;
  margin-bottom: 40px;
}

.data-table tbody tr, .data-table-empty {
  background: none;
}

.data-table tbody tr:hover {
  background: #f8f8f8;
}

.data-table th,
.data-table td {
  padding: 0 15px;
  height: 40px;
  word-wrap: break-word;
  border-bottom: 1px solid #ededed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.browse-area .data-table th, .browse-area .data-table td {
  border-bottom-color: #bdbdbd;
}

.data-table .tinymce-cell {
  padding: 0;
  overflow: visible;
}

.data-table .tinymce-cell > div {
  margin: 4px 0;
}

.data-table th {
  text-align: center;
  color: #6f6f6f;
  cursor: default;
  border-right: solid 1px #fff;
  background: #ededed no-repeat center;
}

.data-table th.thb-wrapper {
  background: none;
}

.data-table th.header {
  cursor: pointer;
}

.data-table th.headerSortUp {
  background-image: url(icons/tbl-sort-down.png);
  background-position: right;
}

.data-table th.headerSortDown {
  background-image: url(icons/tbl-sort-up.png);
  background-position: right;
}

.data-table tr {
  border-bottom: solid 1px #ededed;
}

.data-table td {
  width: 100%;
  vertical-align: middle;
}

.data-table td, .data-table td a {
  color: #6c6c61;
}

.data-table .button-wrapper {
  padding: 0 !important;
  width: 40px;
  border-right: 0;
  text-align: center;
  background: none;
}

.data-table .button-wrapper > label {
  /*margin: 0;*/
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: center;*/
}

.data-table .button-wrapper > label:before {
  margin-right: 0;
}

.data-table .button-wrapper > span, .data-table .button-wrapper > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  transition: background 300ms;
}

.data-table .button-wrapper img {
  filter: invert(50%);
  transition: filter 300ms;
}

.data-table .button-wrapper > span:hover, .data-table .button-wrapper > a:hover {
  background: #429ffe;
}

.data-table .button-wrapper > span:hover img, .data-table .button-wrapper > a:hover img {
  filter: invert(0);
}

.data-table .thb-wrapper, .data-table .icon-wrapper {
  padding: 0;
  width: 40px;
  text-align: center;
}

.data-table .thb-wrapper span {
  margin: 0;
  width: 40px;
  height: 40px;
  overflow: hidden;
  display: block;
  background: #ddd center;
  background-size: cover;
}

.data-table-empty {
  text-align: center;
  font-size: 1.2em;
  padding: 1em
}

.data-table-controls, .data-table-footer {
  text-align: left;
}

.data-table-controls .add-button, .data-table-footer .add-button {
  display: inline-block
}

.data-table .button {
  padding: 0;
  margin: 0;
  width: 40px;
  height: 40px;
  min-width: 0;
  min-height: 0;
  text-align: center;
  border-radius: 40px;
  background: none;
}

.data-table .button:hover {
  background: #e0e0e0;
}

.data-table input, .data-table select, .data-table textarea {
  margin: 0 0px;
  min-height: 0;
  height: 40px;
  width: 100%;
  /*transition: min-height 200ms;*/
}

.data-table textarea:focus {
  min-height: 130px;
}

td input[type="checkbox"] + label,
td input[type="radio"] + label,
th input[type="checkbox"] + label,
th input[type="radio"] + label {
  padding: 0;
  margin: 0;
  min-width: 22px;
  border: none;
}

td input[type="checkbox"] + label::before,
td input[type="radio"] + label::before,
th input[type="checkbox"] + label::before,
th input[type="radio"] + label::before {
  top: 0;
  left: 0;
}

td[onclick]:hover{
  cursor: pointer;
}

table.narrow-width {
  max-width: 420px;
}

table.normal-width {
  max-width: 850px;
}

table.full-width {
  max-width: none;
}

.table-filters{
  display: none;
  align-items: flex-start;
  border: 1px solid #ededed;
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}
.table-filters.show-me{
  display: flex;
}
.table-filters > div{
  width: 25%;
  flex-basis: 25%;
  margin: 0 10px;
}

.table-filters input{
  margin: 0 0 5px 0;
}
.table-filters .search-input{
  margin: 0;
}
.table-filters .filters-header {
  position: absolute;
  top: -15px;
  left: 22px;
  padding: 0 10px;
  background: #fff;
  margin: 0;
  color: #bdbdbd;
}
.table-filters > div.filter-controls{
  flex-basis: 215px;
  width: 215px;
  align-self: flex-end;
}
.table-filters .filter-controls{
  margin-bottom: -11px;
}
.table-filters .filter-controls a.button{
  width: 100%;
}
/* =============================================================== */
/* =================================okna ========================= */
.window, .message-window, .browser-window {
  position: fixed;
  /*top: 50%; left: 50%;*/
  top: 80px;
  left: 40px;
  /*transform: translate(-50%, -50%);*/
  width: 600px;
  min-height: 350px;
  padding: 30px 30px 80px 120px;
  display: none;
  z-index: 1000;
  background: #fefefe;
  box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.5);
}

.window-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 98 !important;
  display: none;
}

.window-overlay.show-me {
  display: block;
}

.window-overlay .window {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*  top:auto !important;
    left:auto !important;*/
  right: auto !important;
  bottom: auto !important;
  min-height: 350px;
  height: 70vh;
  max-height: 80vh;
  width: 900px;
  max-width: 80vw;
  display: block;
  padding: 30px 30px 60px 120px;
  box-sizing: border-box;
  z-index: 99 !important;
}

.window-overlay .window > .content {
  position: absolute;
  top: 40px;
  left: 120px;
  bottom: 60px;
  right: 0;
  overflow-y: auto;
}

.window-overlay .window > .x {
  width: 30px;
  height: 30px;
  background: #0d0f14;
  display: flex;
  justify-content: center;
  align-items: center;
}

.window-overlay .window > .x img {
  margin: 0;
  width: 40%;
  height: auto;
  display: block;
}

.window-overlay .window.small {
  height: auto;
  height: 350px;
  width: 700px;
}

.window-overlay .window.medium {
  height: auto;
  height: 450px;
  width: 800px;
}

/* === elementy w oknach === */
.message-window > h2, .window > h2, .browser-window > h2 {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 20px;
}

.window-path {
  margin: 20px 0;
}

.window-path span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 40px;
  background: #f5f5f5;
}

.window-path span.active {
  background: #ef3852;
  color: #fff;
}

/* === okno z lista modulow === */
.browser-window .modules-browser {
  margin: -1px 0 0 0;
  padding: 0px 0px 15px 0;
  float: none;
  width: auto;
}

.browser-window .modules-browser .std-table {
  width: 100%;
}

.window .url-plugin .add-button {
  display: block;
  margin: 0 16px 16px 0;
  float: left;
  clear: both;
  min-width: 300px;
}

.window .url-plugin .url-plugin-button {
  display: none;
}

.window .url-plugin .url-plugin-buttons {
  display: block;
  height: auto !important;
}

.window .url-plugin .url-plugin-buttons > div {
  padding: 0;
  border: none;
  height: auto;
}

/* =======================narzędzia w oknach */
.window .controls, .message-window .controls, .browser-window .controls {
  position: absolute;
  bottom: 4px;
  left: 120px;
  right: 5px;
  height: 55px;
  vertical-align: top;
  text-align: right;
  justify-content: flex-end;
}

.window .controls, .browser-window .controls {
  text-align: right;
}

.window .controls .add-button, .browser-window .controls .add-button {
  width: auto;
  min-width: 0;
}

#nicelightbox.window .controls {
  left: 0;
  right: 0;
  background: #fefefe;
}

.browser-window .filter-search {
  margin-top: 0;
}

.browser-window > h2, .browser-window > .content {
  padding-right: 300px;
}

/* =========okno z komunikatem / potwierdzeniem = */
.message-window {
  padding: 60px 20px 120px 190px;
  width: 500px;
  box-sizing: border-box;
  min-height: 130px;
  text-align: left;
}

.message-window .color-stripe {
  width: 135px;
}

/* ===========================okno z listą plików =*/
.browser-window {
  width: 50vw;
  height: 60vh;
  max-width: 1200px;
  min-width: 600px;
  max-height: 700px;
  min-height: 350px;
  padding-right: 0;
}

.browser-window.full-size {
  width: 90vw;
  height: 80vh;
  max-width: 1220px;
}

.browser-window.show-me {
  display: flex;
  flex-direction: column;
}

.nav-area-col {
  width: 50%;
  float: left;
}

.nav-area {
  margin: 0 0 0 -40px;
  height: 0px;
  overflow: visible;
}

.nav-area .add-button, .nav-area .button {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  width: 40px;
  min-width: 0;
}

.browse-area {
  flex-grow: 3;
  height: 230px;
  padding: 10px 15px 10px 31px;
  overflow: auto;
  border-right: 0;
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  margin-left: -121px;
  position: relative;
  z-index: 1;
}

.browse-area .col {
  float: left;
  width: 50%;
}

.browse-area .hr {
  position: relative;
  padding-top: 20px;
  padding-bottom: 20px;
  overflow: hidden;
  background: none;
  width: 100%;
  height: 42px;
  box-sizing: border-box;
}

.browse-area .hr:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translate(0, -2px);
  background: #bdbdbd;
}

.select-templates {
  height: 200px;
}

.select-templates .col {
  width: 33%;
}

.new_mb_template {
  display: block;
  background: #fff;
  margin: 10px;
  padding: 10px;
  text-align: center;
  border-radius: 3px;
  border: 1px solid #ddd;
  transition: border 300ms;
}

.new_mb_template > span.tpl-name {
  display: block;
  text-align: center;
}

.new_mb_template img {
  width: 200px;
}

.new_mb_template:hover {
  border: 1px solid #429ffd;
}

.browse-area-item {
  /*  display: inline-block;*/
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 50px;
  position: relative;
  white-space: nowrap;
  max-width: 100%;
  width: 100%;
  border-radius: 0;
  text-align: left;
  margin: 0 5px 2px 0;
  box-sizing: border-box;
}

.browse-area-item span {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  display: inline-block;
  background: #bdbdbd;
  padding: 6px;
}

.browse-area-item span img {
  width: 28px;
}

.browse-area-item:hover {
  background: #ececec;
}

.browse-area-item:hover span {
  background: #ef3852;
}

/* ===== kolorki browserów ===== */
.page-editor .color-stripe, .page-editor .browse-area-item:hover span {
  background: #429ffd;
}

.news-editor .color-stripe, .news-editor .browse-area-item:hover span {
  background: #ff9e2b;
}

.resources-editor .color-stripe, .resources-editor .browse-area-item:hover span {
  background: #2ad9b6;
}

.shop-editor .color-stripe, .shop-editor .browse-area-item:hover span {
  background: #e130fe;
}

/* ========= okno z podglądem obrazka =========== */
.image-preview-window {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  width: auto;
  height: auto;
  min-width: 530px;
}

.image-preview-window .img-wrapper {
  min-width: 500px;
  min-height: 360px;
  text-align: center;
  cursor: pointer;
  background-color: #fefefe;
  background-position: center;
  background-repeat: no-repeat;
  /*background-size: contain;*/
}

.image-preview-window .img-wrapper img {
  display: block;
  /* display:none;*/
  margin: 0 auto;
  visibility: hidden;
}

.image-preview-window .img-wrapper:hover:after {
  content: url(graphics/zoom-out.png);
  width: 32px;
  height: 32px;
  margin: -30px 0 0 -16px;
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  overflow: hidden;
  cursor: pointer;
  pointer-events: none;
}

/*okno tłumaczeń */
#add_translation {
  right: 200px;
  left: auto;
}

.image-preview-window .image-name {
  padding: 12px 1em 0 0;
  height: 40px;
}

/* ==== pokazywanie okien =============*/
.hide-me {
  display: none;
}

.show-me, .hide-me.show-me {
  display: block;
}

.ajax-loader {
  position: absolute;
  bottom: 50%;
  right: 50%;
}

.message-window .ajax-loader {
  position: absolute;
  bottom: 30%;
  right: 30%;
}

.ajax-loader-icon {
  margin-right: -75px;
  padding: 7px 0 0 40px;
  width: 150px;
  height: 25px;
  position: absolute;
  bottom: 50%;
  right: 50%;
  color: #ddd;
  text-align: left;
  vertical-align: middle;
}

.ajax-loader-icon img {
  position: absolute;
  top: 0;
  left: 0;
}

/* =========================== Tiny MCe tweaks ============ */
textarea.tinymce_adv {
  width: 100%;
  padding: 0;
}

textarea.tinymce-micro {
  height: 38px !important;
  min-height: 38px;
  width: 458px !important;
}

textarea.tinymce-small {
  height: 78px !important;
  min-height: 78px;
  width: 458px !important;
}

.mce-tinymce, .mce-tinymce div {
  overflow: visible
}

.mce-tinymce {
  border: solid 1px #999 !important;
  border-radius: 3px;
}

.mce-body {
  border: solid 1px #999 !important;
}

.mce-container-body, .mce-panel {
  border-radius: 4px !important;
}

.mce-container-body, .mce-panel, .mce-btn button {
  background: none !important;
}

.mce-edit-area {
  padding: 0;
  border-radius: 3px !important;
  overflow: hidden !important;
  border: 0 none !important;
  background: #fff !important;
}

/* ---------toolbar fun -------------- */
.mce-toolbar {
  border-bottom: solid 1px #999 !important;
  border-radius: 3px 3px 0 0;
  background: #fff !important;
}

/* ------- ukrywany toolbar -------- */
.micro .mce-toolbar {
  position: absolute;
  top: -40px;
  right: 0;
  background: #fff !important;
  border: solid 1px #999 !important;
  border-radius: 3px;
}

.hide-toolbar .mce-toolbar {
  display: none !important;
}

/* --------------------------------- */
.mce-flow-layout-item {
  margin: 0 !important;
}

.mce-btn {
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 none !important;
  box-shadow: none !important;
  background-image: none !important;
  background: none !important;
}

.mce-btn button {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 none !important;
  padding: 7px 9px !important;
  background: none !important;
}

.mce-menu {
  /*border-radius: 0px !important;*/
  background: transparent !important;
}

.mce-menu-item > span {
  background: none !important;
}

.mce-floatpanel {
  background: #fff !important;
}

/* ==== przyciski w tiny mce ==== */
.mce-btn button:hover, .mce-menu-item:hover, .mce-btn button:hover span, .mce-menu-item:hover span {
  color: #fff !important;
  background: #4A4A4A !important;
}

.mce-btn button:hover i.mce-caret {
  border-top-color: #fff;
}

.mce-btn-group .mce-first, .mce-btn-group .mce-last {
  border: none !important;
}

.mce-btn i {
  color: #585858;
  font-size: 15px;
  text-shadow: none !important;
  /* text-shadow: 0px 0px 0px #585858 !important;*/
}

.mce-btn button:hover i {
  text-shadow: none !important;
}

.mce-btn button:hover i, .mce-menu-item:hover i {
  color: #fff;
  text-shadow: none !important;
}

.mce-btn-group {
  border-right: solid 5px transparent !important;
}

/* =============== wyszukiwarka skryptowa wewnętrzna============================== */
.filter-search {
  text-align: right;
  overflow: hidden;
}

.filter-search > div {
  float: right;
}

.filter-search > input {
  height: 34px;
  padding: 5px 15px;
}

section > .filter-search, #div_pages > .filter-search {
  position: absolute;
  top: 20px;
  right: 20px;
  min-width: 270px;

}

section > .filter-search input, #div_pages > .filter-search input {
  margin-right: 0;
}

#div_pages > .filter-search {
  top: 38px;
  right: 50px;
}

#div_pages > .filter-search .search-input {
  margin: 0;
}

.form-table {
  display: table;
  margin: 0 -10px;
}

.table-row {
  display: table-row;
}

.table-cell {
  display: table-cell;
  padding: 5px 10px;
}

.table-cell input, .table-cell select {
  margin: 0;
  min-width: 350px;
}

.table-cell.short input, .table-cell.short select {
  min-width: 180px;
}

.page-adress {
  margin-bottom: 0;
}
.page-adress input {
  display: inline-block;
}

/* ----- date picker ----- */
.ui-datepicker-calendar, .ui-datepicker {
  background: #12151c !important;
  border: none !important;
}

.ui-widget-content {
  color: #f0f0f0 !important;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-widget-header {
  background: #12151c !important;
  color: #f0f0f0 !important;
  border: none !important;
  font-weight: normal !important;
}

.ui-state-hover {
  background: #12151c !important;
  border: none !important;
}

.ui-datepicker th, .ui-widget-header {
  font-weight: normal !important;
  color: #888 !important;
}

.ui-datepicker td a {
  text-align: center !important;
  border-radius: 10%;
}

.ui-datepicker-today {
  border: 1px solid #656565 !important;
}

.ui-datepicker td a.ui-state-hover {
  background: #dc143c !important;
}

.ui-icon {
  background: none !important;
  display: none;
}

.ui-datepicker-next {
  top: 0 !important;
  right: 0 !important;
  border-radius: 0px !important;
}

.ui-datepicker-prev {
  top: 0 !important;
  left: 0 !important;
  border-radius: 0 !important;
}

.ui-datepicker .ui-datepicker-prev-hover {
  left: 0 !important;
  background: #dc143c !important;
  border-radius: 0px !important;
}

.ui-datepicker .ui-datepicker-next-hover {
  right: 0 !important;
  background: #dc143c !important;
  border-radius: 0px !important;
}

.ui-datepicker-next:after, .ui-datepicker-next:before,
.ui-datepicker-prev:after, .ui-datepicker-prev:before {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: #fff;
}

.ui-datepicker-next:after {
  top: 15px;
  left: 9px;
  transform: rotate(135deg);
}

.ui-datepicker-next:before {
  top: 10px;
  left: 9px;
  transform: rotate(45deg);
}

.ui-datepicker-prev:after {
  top: 15px;
  left: 9px;
  transform: rotate(45deg);
}

.ui-datepicker-prev:before {
  top: 10px;
  left: 9px;
  transform: rotate(-45deg);
}

.ui-datepicker .ui-datepicker-header {
  padding: 0 !important;
}

.ui-corner-all {
  border-radius: 0 !important;
}

.image-listing-combo {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  max-width: 850px;
}
.image-listing-combo > div.img-plugin {
  overflow: visible
}
.image-listing-combo > div.form-field {
  flex: 1;
  margin-left: 50px;
}
.image-listing-combo > div.form-field div.mce-tinymce {
  height: 200px;
}
.image-listing-combo > div.form-field div.mce-edit-area {
  height: 163px;
}
.image-listing-combo > div.form-field div.mce-edit-area iframe {
  height: 100% !important;
}

.input-combo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.input-combo input {
  flex:1;
}
