body {
  margin: 0; 
  padding: 0;
  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
  font-size: 10px;
}
input, textarea, select {
  font-size: 14px;
}
.link, div[onclick], span[onclick], td[onclick], input[onclick] { cursor: pointer; }
div[onclick]:hover, span[onclick]:hover, td[onclick]:hover { text-decoration: underline; background-color: #ddd; }
.fl { float: left; }
.fr { float: right; }
.cb { clear: both; }
.hidden {
  display: none;
}
.underline {
   text-decoration: underline;
}
.strike {
   text-decoration: line-through;
}
.drag {
  cursor: move;
}
.center {
  text-align: center;
}
.left {
  text-align: left;
}
.right {
  text-align: right;
}
.italic {
  font-style: italic;
}
.bold {
  font-weight: bold; 
}
.normal {
  font-weight: normal; 
}
.red {
  color: red;
}

.ui-tooltip, .arrow:after {
  background: black;
  border: 2px solid white;
}

.ui-tooltip {
  max-width: 100px;
  max-width: 300px;
  padding: 10px 20px;
  color: white;
  border-radius: 20px;
  /*font: bold 14px "Helvetica Neue", Sans-Serif;
  text-transform: uppercase;*/
  box-shadow: 0 0 7px black;
  z-index: 3;
}
.ui-wider-tooltip { max-width: 600px;}
.arrow {
  width: 70px;
  height: 16px;
  overflow: hidden;
  position: absolute;
  left: 50%;
  margin-left: -35px;
  bottom: -16px;
}
.arrow.top {
  top: -16px;
  bottom: auto;
}
.arrow.left {
  left: 20%;
}
.arrow:after {
  content: "";
  position: absolute;
  left: 20px;
  top: -20px;
  width: 25px;
  height: 25px;
  box-shadow: 6px 5px 9px -9px black;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  tranform: rotate(45deg);
}
.arrow.top:after {
  bottom: -20px;
  top: auto; 
}

ul.names, ul.oroskopia {display: none;}


/*
div.fog, div.fog_without_loader {
  position: absolute;
  top: 0; bottom: 0; left:0; right: 0;
  background-color: Silver;
  opacity: 0.8;
  z-index: 1000;
}
div.fog:after{
  content: "";
  background-image: url(images/ajax-loader.gif);
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  width: 2em;
  height: 2em;
  margin-top: -1em;
  margin-left: -1em;
  z-index: 999;
}
*/
.popup > .fog{ position: fixed; z-index: -1;}
.popup > .fog:after{display: none;}
.popup {
  display: none;
  position: fixed;
  /*width: 30em;*/
  /*height: 22.5em;*/
  top: 10%;
  /*left: 50%;
  margin-left: -15em;
  */
  left: 0; right: 0;
  vertical-align: middle;
  /*z-index: 1000;*/
}
.popup > div.outer {
  display: -webkit-flex; /* Safari */
  display: flex;
  -webkit-justify-content: space-around; /* Safari */
  justify-content:         space-around;
}
.popup > div.outer > div.inner {
  padding: 5em 4.1em;
  background-color: #fff;
  position: relative;
  /*position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;*/
}
.popup > div.outer > div.inner > div.close {
  background-color: #4b4f5a;
  color: #fff;
  cursor: pointer;
  font-size: 2em;
  height: 1em;
  line-height: 1em;
  position: absolute;
  text-align: center;
  top: 0;
  right: 0;
  width: 1em;
  z-index: 1;
}
.popup > div.outer > div.inner > div.close:hover {
  color: #7dcefd;
}



div.select_name_popup {}
div.select_name_popup > input[name=filter] {}
div.select_name_popup > div.result {
  border-top: 1px solid lightgrey;
  margin-top: 1em;
  padding-top: 1em;
  width: 40em;
  height: 30em;
  overflow-y: auto;
  -moz-column-count: 3;
  -moz-column-gap: 1em;
  -webkit-column-count: 3;
  -webkit-column-gap: 1em;
  column-count: 3;
  column-gap: 1em;
}
div.select_name_popup > div.result > div[data-value]{
  cursor: pointer;
}
div.select_name_popup > div.result > div[data-value]:hover{
  background-color: #ccc;
}
td.name {position: relative;}
div.empty_name{
  display: inline-block;
  cursor: pointer;
  position: absolute;
  right: 0.8em;
  top: 0.4em;
}
div.empty_name:hover{
  background-color: #ccc;
}



div.player_info, 
div.edit_player_info{}

ul.player_info_menu {
  display: block;
  margin: 0;
}
ul.player_info_menu > li {
  display: inline-block;
  margin-left: 1em;
  font-size: 12px;
  padding: 0.4em;
  cursor: pointer;
  border: 2px solid #ddd;
  -moz-border-radius: 0.8em 0.8em 0 0;
  border-radius: 0.8em 0.8em 0 0;
  border-bottom: 0;
}
ul.player_info_menu > li:hover { background-color: Linen;}

[data-tab=service] {
  background-color: PowderBlue !important;
}
[data-tab=call_center] {
  background-color: Cornsilk !important;
}

.microphone {
  display: inline-block;
  width: 1.5em;
  height: 2.5em;
  background-image: url('data:image/svg+xml;base64, PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA2MCAxMjUiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYwIDEwMCI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+CiAgLnN0e2ZpbGw6IzU1NTt9Cjwvc3R5bGU+CiAgPHBhdGggY2xhc3M9InN0IiBkPSJNNTIsMzh2MTRjMCw5Ljc1Ny04LjI0MiwxOC0xOCwxOGwwLDBoLThjLTkuNzU3LDAtMTgtOC4yNDMtMTgtMThWMzhIMHYxNGMwLDE0LjA5NCwxMS45MDYsMjYsMjYsMjZ2MTRIOXY4aDQydi04SDM0Vjc4bDAsMCBjMTQuMDk0LDAsMjYtMTEuOTA2LDI2LTI2VjM4SDUyeiIgLz4KICA8cGF0aCBjbGFzcz0ic3QiIGQ9Ik0yNiw2NGg4YzUuNzE0LDAsMTAuNzg4LTQuNDgzLDExLjgwNC0xMEgzMy45MTd2LTRINDZ2LTRIMzMuOTE3di00SDQ2di00SDMzLjkxN3YtNEg0NnYtNEgzMy45MTd2LTRINDZ2LTRIMzMuOTE3di00SDQ2di00IEgzMy45MTd2LTRoMTEuODg3QzQ0Ljc4OCw0LjQ4MywzOS43MTQsMCwzNCwwaC04Yy02LjM5MywwLTEyLDUuNjA3LTEyLDEydjQwQzE0LDU4LjM5MywxOS42MDcsNjQsMjYsNjR6Ii8+CiAgPC9zdmc+');
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: center;
}
.microphone.working {
  -webkit-box-shadow: 0px 0px 5px 5px rgba(255,0,0,.9);
  box-shadow: 0px 0px 5px 5px rgba(255,0,0,.9);
}

div.media {
  background-color: LightYellow;
  border: 1px solid Peru;
  max-width: 40em;
  width: 40em;
  max-height: 30em;
  position: absolute;
  right: 1em;
  bottom: 1em;
  display: none;
}

div.media > table {
  border-collapse: separate;
  border-spacing: 1em;
  width: 100%;
}
div.media > table > tbody >tr > td {
  padding: 0.5em;
  vertical-align: top;
}
div.media > table > tbody > tr > td.directories {width: 20%; background-color: #fac784;}
div.media > table > tbody > tr > td.directory {width: 80%; background-color: #eff0f0; position: relative}
div.media > table > tbody > tr > td.directory input[name=view_ctl] { position: absolute; top: 0; right: 0; padding: 0.3em; }


div.media td.directory.grid > ul { margin-bottom: 2em;}
div.media td.directory.grid > ul > li {
  display: inline-block;
  width: 20%;
  margin: 0.5em;
  border: 0px solid #999;
  position: relative;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}
div.media td.directory.grid > ul > li:before {
  content: "";
  display: block;
  padding-bottom: 100%;
}
div.media td.directory.grid > ul > li > label {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 11; 
}
div.media td.directory.grid > ul > li > label.time {top: inherit; bottom: 0;}
div.media td.directory.grid > ul > li.shablon { display: none;}
div.media td.directory.grid > ul > li.dir{
  background-image: url(images/fileicons/_Close.png);
  pointer: cursor;
}
div.media td.directory > ul > li.dir.back {display: none;}

div.media td.directory.grid > ul > li.file.pdf{
  background-image: url(images/fileicons/pdf.png)
}
div.media td.directory.grid > ul > li.file.image{

}
div.media td.directory.grid > ul > li.file > label{ display: none;}
div.media td.directory.grid > ul > li:hover > label{ display: block; color: white;}


div.media td.directory.grid > ul > li > div.dim {
  position: absolute;
  top: 0; bottom: 0; left:0; right: 0;
  background-color: black;
  opacity: 0.5;
  z-index: 10;
  display: none
}
div.media td.directory.grid > ul > li:hover > div.dim {display: block;}
div.media td.directory.grid > div.preview{ display: none;}

div.media td.directory.list > ul { margin-bottom: 2em; margin-right: 12em;}
div.media td.directory.list > ul > li {display: block;  background-image: inherit !important; cursor: pointer;}
div.media td.directory.list > ul > li > label {}
div.media td.directory.list > ul > li > label.time { display: inline-block; float: right;}
div.media td.directory.list > ul > li.selected > label {color: white; background-color: navy;}
div.media td.directory.list > ul > li.shablon { display: none;}
div.media td.directory.list > ul > li > div.dim { display: none }
div.media td.directory.list > div.preview {position: absolute; right: 1em; top:4em; width: 10em; height: 10em;   background-position: center center; background-repeat: no-repeat; background-size: contain; border: 1px solid #999;}



div.media td.directory  form[name=upload_files_form] input[type=file] { display: none; }
div.media td.directory  form[name=upload_files_form] ul.selected_images { display: block; }
div.media td.directory  form[name=upload_files_form] ul.selected_images > li{ display: inline-block; margin-right: 1em; width: 10%;}
div.media td.directory  form[name=upload_files_form] ul.selected_images > li > img{ width: 100%;}



.popup .directory { width: 100%; display: block; position: relative;}
.popup .directory input[name=view_ctl] { position: absolute; top: 0; right: 0; padding: 0.3em; }
.popup .directory div.preview { display: none; }
.popup .directory.grid > ul { margin-bottom: 2em;}
.popup .directory.grid > ul > li {
  display: inline-block;
  width: 15%;
  margin: 0.3em;
  border: 0px solid #999;
  position: relative;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}
.popup .directory.grid > ul > li:before {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.popup .directory.grid > ul > li > label {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 11; 
}
.popup .directory.grid > ul > li > label.time {top: inherit; bottom: 0;}
.popup .directory.grid > ul > li.shablon { display: none;}
.popup .directory.grid > ul > li.dir{
  background-image: url(images/fileicons/_Close.png);
  pointer: cursor;
}
.popup .directory.grid > ul > li.file.pdf{
  background-image: url(images/fileicons/pdf.png)
}
.popup .directory.grid > ul > li.file.image{

}
.popup .directory.grid > ul > li.file > label{ display: none;}
.popup .directory.grid > ul > li:hover > label{ display: block; color: white;}

.popup .directory.grid > ul > li > div.dim {
  position: absolute;
  top: 0; bottom: 0; left:0; right: 0;
  background-color: black;
  opacity: 0.5;
  z-index: 10;
  display: none
}
.popup .directory.grid > ul > li:hover > div.dim {display: block;}

.popup .directory.list > ul { margin-bottom: 2em;}
.popup .directory.list > ul > li {display: block;  background-image: inherit !important; cursor: pointer;}
.popup .directory.list > ul > li:hover {background-color: #ddd;}
.popup .directory.list > ul > li > label {}
.popup .directory.list > ul > li > label.time { display: inline-block; float: right;}
.popup .directory.list > ul > li.selected > label {color: white; background-color: navy;}
.popup .directory.list > ul > li.shablon { display: none;}
.popup .directory.list > ul > li > div.dim { display: none }





.treeview { /*CSS for Simple Tree Menu*/
  margin: 0;
  padding: 0;
}
.treeview ul{ 
  margin: 0;
  padding: 0;
}
.treeview li{ /*Style for LI elements in general (excludes an LI that contains sub lists)*/
  list-style-type: none;
  padding-left: 3.1em;
  margin-bottom: 0;
  
  background-image: url(images/tree/line.png);
  background-repeat: repeat-y;
  background-position: left top;
}
.treeview li.none{ 
  background: none;  
}
.treeview li:last-child{ 
  background-image: url(images/tree/half_line.png);
  background-repeat: no-repeat;
  background-position: left top; 
}
.treeview li ul{
  margin-left: -1.8em;
}
.treeview li.closed > ul{
  display: none;
}
.treeview li > label.name {
  cursor: pointer;
  display: block;
  margin-left: -3em;
  padding-left: 3em;
  min-height: 1.5em;
}
.treeview li.opened > label.name {
  background-image: url(images/tree/open_minus.png);
  background-repeat: no-repeat;
  background-position: left top;
}
.treeview li.closed > label.name {
  background-image: url(images/tree/closed_plus.png);
  background-repeat: no-repeat;
  background-position: left top;
}
.treeview li > label.name.list {
  background-image: url(images/tree/page_line.png);
  background-repeat: no-repeat;
  background-position: left top;
}div.reminder {
  max-width: 45em;
  background:  rgba(255, 192, 203, 0.5);
  border: 2px solid #999999;
  padding: 1em;
  position: fixed;
  bottom: 0;
  right: 0;
  
  display: grid;
  box-sizing: border-box;
  grid-template-columns: auto 9em;
  grid-template-areas:
    "h2 switch"
    "info info"
    "remindersList remindersList";
  grid-gap: 1em;
}
div.reminder > h2 {grid-area: h2;}
div.reminder > .switch {grid-area: switch;}
div.reminder > div.info {grid-area: info;}
div.reminder > div.remindersList {
	grid-area: remindersList;
  max-height: 30em;
  overflow: auto; 
}

div.reminder > div.remindersList > div {
  background: #f1ddcf;
  padding: 1em;
  margin-bottom: 1em;
}


div.reminder > div.remindersList > div[data-preincoming_id] {
  background: #f1ddcf;
  padding: 1em;
  margin-bottom: 1em;
 
  display: grid;
  box-sizing: border-box;
  grid-template-columns: auto 3em;
  grid-template-areas: "info button";
  grid-gap: 1em;
}
div.reminder > div.remindersList > div[data-preincoming_id]  > span {grid-area: info;}
div.reminder > div.remindersList > div[data-preincoming_id]  > button {grid-area: button;}





/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 5em;
  height: 3em;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 2em;
  width:  2em;
  left: 0.5em;
  bottom: 0.5em;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #555;
}

input:focus + .slider {
  box-shadow: 0 0 1px #555;
}

input:checked + .slider:before {
  -webkit-transform: translateX(2em);
  -ms-transform: translateX(2em);
  transform: translateX(2em);
}

/* Rounded sliders */
.slider.round {
  border-radius: 1.5em;
}

.slider.round:before {
  border-radius: 50%;
}

.legend {
  position: absolute;
  top: 0;
  right: -4em;
  width: 3em;
  height: 3em;
  bottom: 0;
}

.legend > svg {
  width: 100%;
  height: 100%;
  fill: #ccc;
  stroke: #ccc;
}
input:checked ~ .legend > svg {
  fill: #555;
  stroke: #555;
}