/*
    light blue #A6CCE5
    dark blue #09629D
*/
.align-right { text-align: right;}
.align-left { text-align: left;}
.align-center { text-align: center;}

input[type="time"]::-webkit-outer-spin-button, /* Removes arrows */
input[type="time"]::-webkit-inner-spin-button, /* Removes arrows */
input[type="time"]::-webkit-clear-button { /* Removes blue cross */
  -webkit-appearance: none;
  margin: 0;
}

.clearfix:after {
  content:"";
  display:table;
  clear:both;
}
p.submit {
  margin-top: 25px;
}

.fa.fa-icon::after {
    content: "x";
}

table.dataTable td .actions { white-space: nowrap;}
table.dataTable td .actions span {cursor: pointer}

#file_tags form input[type="text"], #file_tags form select {
    width: 345px;
}
#file_tech span.value {
    white-space: nowrap;
}

form.formset input { border:none; }
form.formset ul.errorlist.nonfield {
  margin-top: 15px;
  font-size: 1.2em;
}
table.formset { border-collapse: collapse; }
table.formset tr.time-invalid td {
	background-color: #ccc;
}

/*table.formset td.sequence input{width: 100;}*/
table.formset th {text-align: center;}
table.formset td {text-align: center;}
table.formset td input {width: 90%;}

table.formset td.sequence { padding-left: 10px;  width:20px;}

table.formset td.date_start, table.formset td.date_end { width: 105px; }
table.formset td.time_start, table.formset td.time_end { width: 80px; }
table.formset td.play_at_random { text-align: center;}
table.formset td.play_at_random input { display: inline; width: 30%;}
table.formset td.play_count, table.formset td.play_per_hour  { width: 40px;}
table.formset td.play_at { width: 75px;}
table.formset td.play_at input { text-align: right; padding-left:3px; padding-right:3px;}
table.formset td.play_on_weekday {width: 183px;}

body fieldset {
  border: None;
  padding:0;
  margin: 0;

}


form.form input[type="time"] {
  width: 70px;
  text-align: center;
}
form.form input[type="number"] {
  width: 40px;
  padding-left: 8px;
}

form textarea#id_note {
  display: block;
  width: 100%;
  height: 100px;
}

textarea#id_customer_locality_id {
  margin-bottom: -10px;
}

a.inline-playable {
  padding-left: 25px;
  /*background: url('../img/icons/play.svg') no-repeat top left; background-size: contain;*/
  background: url('../sm2/image/icon_play.png') no-repeat center left;
}
a.inline-playable.sm2_playing {
  background: url('../sm2/image/icon_pause.png') no-repeat center left;
}
#confirm_dialog.APPcontainer.small {
  height: 312px !important;
}
#confirm_dialog fieldset {
  margin: 60px 0 0 65px;
  text-align: center;
}
#confirm_dialog fieldset input:first-child {
  margin-right: 50px;
}

.weekdays, .playtimes {
  float: left;
}

.playtimes {
  width: 260px;
}

#player_control .timepicker{
  width: 105px !important;
}

.weekday label {
  width: 27px;
}
.weekday input[type="checkbox"] {
  margin-bottom: 10px;
  margin-right: 5px;
}

#id_download_time_start, #id_download_time_end { width: 60px; }

input[type="number"], input.datepicker, input.timepicker { text-align: right;}
input.datepicker, input.timepicker { padding-left: 3px; padding-right: 3px;}

input[type="hidden"] { border:none }

form .date_start button, form .date_end button {color: #014A7B;}

.formset .play_on_weekday ul {
  list-style: none;
  margin:0;
  padding: 0 0 0 5px;
  width: 176px;
}
.formset .play_on_weekday ul li {
  margin:0; padding:0; border: none;
  float: left;
  width: 25px;
}
.formset .play_on_weekday ul li label {text-align: center; padding:0; border: none; color: #014A7B; font-size: 80%;}

form.form ul li {
  list-style: none;
}
#launch_form label {
  border: none;
}

ul.errorlist {list-style: none; margin: 5px 8px; padding:0;}
ul.errorlist li {margin:0; font-size:80%; color: red;}

.selectize-input {
  border: solid 2px #D1E4F1; border-radius: 8px;
  -webkit-box-shadow: none;
  box-shadow: none;
}
fieldset.multiselect {
  display: block;
  padding-top: 20px;
  width: 80%;
  margin: 0 auto;
}
fieldset.multiselect .submit {
  margin-top: 25px;
}
fieldset.multiselect .submit input {
  display: block;
  float: left;
}
div.multiselect_header {
  padding: 3px 2px;
  color: #09629D;
  text-align: center;
  text-transform: uppercase;
}
/*.playlist_files {
  margin: 10px 0 0 100px;
}*/
.ui-sortable-helper {
    display: table;
}
a.button {
  display: inline-block;
  color: white; font-weight: bold;
  background: #A6CCE5;
  border: none; border-radius: 8px; padding: 2px 0.75%;
  line-height: 1.4em;
  margin: 2px auto;
  cursor: pointer; }
a.button:hover { background-color: #014A7B; }
#programitems_form .submit input, #programitems_form a.button {
  margin-right: 15px;
}
#programitems_form .submit input.bold {
  background-color: #014A7B;
}
a.button.disabled, a.button.disabled:hover,
input[type="submit"].disabled, input[type="submit"].disabled:hover {
   background-color: #aaa!important;
}
form .helptext {
  display: none;
  font-size: 80%;
  color: #666;
}

form input[type="text"]:disabled, form input[type="number"]:disabled {
  background-color: #eee;
  color: #eee;
}

/* from ales */
.btn-file {
  position: relative;
  _overflow: hidden;
}

.btn-file input[type=file] {
  display: block;
  _position: absolute;
  _top: 0;
  _right: 0;
  min-width: 100%;
  min-height: 100%;
  _font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  _opacity: 0;
  outline: none;
  background: white;
  cursor: inherit;
}

#app-version {
  font-size: 70%;
  margin-top: 1em;
  color: #ddd;
}

/* status LED colors */
.fa.fa-easymusic-led.playing, .fa.fa-easymusic-led.ok { background-color: green; }
.fa.fa-easymusic-led.stopped { background-color: red; }
.fa.fa-easymusic-led.not_allowed { background-color: orange; }
.fa.fa-easymusic-led.no_song { background-color: violet; }

.fa.fa-easymusic-led.download { background-color: green; }
.fa.fa-easymusic-led.waiting { background-color: orange; }
.fa.fa-easymusic-led.suspended { background-color: violet; }
.fa.fa-easymusic-led.finished { background-color: gray; }

.fa.fa-easymusic-led.active { background-color: green; }
.fa.fa-easymusic-led.error { background-color: red; }
.fa.fa-easymusic-led.timed { background-color: red; }
.fa.fa-easymusic-led.unknown { background-color: gray; }


/* jfu upload button */
.fileinput-button {
  position: relative;
  overflow: hidden;
}
.fileinput-button input {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  -ms-filter: 'alpha(opacity=0)';
  font-size: 200px;
  direction: ltr;
  cursor: pointer;
}

.fileupload-buttonbar .btn {
  display: inline-block;
  width: 37%;
  color: white;
  font-weight: bold;
  background: #A6CCE5;
  padding: 2px 0.75%;
  line-height: 1.5em;
  margin: 2px auto;
  border-radius: 8px;
  text-align: center;
}

#fileupload, #fileupload .fileupload-progress {margin-top: 25px;}
#fileupload .progress-bar {
  height:20px;
  background-color:green;
}
#fileupload .progress-extended {
  color: green;
  margin-top: 8px;
  font-size: 80%;
}
#fileupload .message {
  color: #d9534f;
}
.tech_log .info {
    padding: 0px 15px;
    font-size: 0.9em;
    color: #333;
    max-height: 120px;
    overflow-y: scroll;
}
.tech_log .info ul {
    padding-left: 1em;
  margin-top: 2px;
  margin-bottom: 2px;
}
.tech_log .info ul li {
    list-style: none;
}
.circle {
    display: inline-block;
    border: 1px solid gray;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    -khtml-border-radius: 15px;
    border-radius: 15px;
    padding: 2px 4px 4px 4px;
    cursor: pointer;
}
#playlist_files  table.dataTable > tbody > tr {
    cursor: auto;
  }

.add_playlist_button, .add_filtered_button {
  cursor: pointer;
  color: white;
  font-weight: bold;
  background: #102D5D;
  border: none;
  border-radius: 8px;
  padding: 2px 7.75%;
  line-height: 1.5em;
  margin: 2px auto;
}

.add_filtered_button:hover, .add_playlist_button:hover { background-color: #EC0677; }

#file_form #progress_bar {
    margin-top: 20px;
}
#file_form .progress {
    position:relative;
    border: 1px solid #ddd;
    padding: 1px;
    border-radius: 3px;
}
#file_form .bar {
    background-color: #B4F5B4;
    width:0%;
    height:20px;
    border-radius: 3px;
}
#file_form .percent {
    position:absolute;
    display:inline-block;
    top:3px;
    left:48%;
}
#file_form  #status {
    margin-top: 20px;
}
#file_form  #status .error {
    color: red;
}
.warnings {
	margin-top: 15px;
}
.warning {
	background-color: #ffe666;
	padding: 5px 10px;
	
}

span#note_icon {
  margin-left: 40%;
}

.program_versions {
  width: 100px;
}

.program_version_item {
  margin-top: 10px;
  cursor: pointer;
  font-size: 13px;
}
.program_version_item:hover {
  background-color: #c4c5c5;
}

.program_version_item:active {
  background-color: red;
}

.video-bg {
  background-color: #bccfed;
}
.image-bg {
  background-color: #ebd8c5;
}

#program_form {
  position: fixed;
}

td.playlist {
  padding: 0px 13px 0px 3px !important;
}





#program_preview_form {
  width: 35%;
  display: flex;
  align-items: baseline;
}

#program_preview_form p {
  display: flex;
  align-items: baseline;
  flex: 1;
}

#program_preview_form input[type=submit]{
  display: none
}

#program_preview_form label{
  display: none;
}

#program_preview_form input {
  font-size: calc(2vmin);
  width: 100%;
  box-sizing: border-box;
  outline: 0;
  padding: .75rem;
  position: relative;
  width: 100%;
  padding: 0.4rem 0.75rem 0.4rem 3rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

.player-nav {
  display: flex;
  width: 59%;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 50px;
  height: 100% !important;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
}

.player-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: left;
  align-items: baseline;
}

.back-players {
  padding: 5px 20px;
  color: #102D5D;
  border: 1px solid #102D5D;
}
.back-players:hover{
  background-color: #102D5D;
  color: white;
}

.player-menu a{
  padding: 5px 40px;
  border: 1px solid #EC0677;
}
.player-menu a:hover{
  background-color: #EC0677;
  color: white;
}
.player-menu a.active{
  background-color: #EC0677;
  color: white;
}


.player-menu a.back-players:hover{
  background-color: #ffffff;
  color: #d9534f;
}

.fa.fa-xls-export{
  width: 36px !important;
  height: 36px !important;
}


.player-info-wrapper {
  display: flex;
  width: 60%;
  margin: auto;
}

.content-wrapper {
  width: 60%;
  margin: auto;
  margin-top: 70px;
}

.player-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
}

.player-info .player-name {
  font-size: calc(2.1vmin);
  font-weight: 600;
}
.player-info .locality-name {
  font-size: calc(3.2vmin);
  font-weight: 800;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: end;
  gap: 20px;
}

.past-date{
  color: #EC0677;
  font-weight: 600;
}

.time-line-table table {
  border: none;
  border-collapse:separate !important; 
  border-spacing: 0 0.3em;
}
.time-line-table table td {
  width: 60%;
 border: none !important;
}
.media-preview {
  text-align: right;
}
.media-preview-div{
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: end;
  cursor: pointer;
  gap: 20px;
}

.media-type-img {
  width: 20px !important;
  height: 20px !important;
  opacity: 0.2;
}

.time-line-wrapper {
  margin-top: 30px;
}

.time-line {
  font-size: calc(2.2vmin);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  border-bottom: 3px solid rgba(184, 184, 184, 0.378);
  border-radius: 4px;
}


td.media-name {
  font-size: calc(1.9vmin);
}

td.media-name div {
  padding-left: 20px;
}

.divide-line {
  width: 77%;
  border-bottom: 4px solid #c1bfbf;
  position: absolute;
  border-radius: 5px;
  }

td.media-preview img {
  width: 100px;
  height: 99px;
  object-fit: cover;
}
td.media-preview video {
  width: 100px;
  height: 99px;
  object-fit: cover;
}

.media-popup-vid, 
.media-popup-img {
  max-width: 100%;
  max-height: 700px;
  object-fit: cover;
}


#btnpost {
  margin-right: 5px;
}

.playlist-dropdown {
  background-color: white;
  padding: 10px 5px;
  width: auto;
}

.playlist-dropdown li{
  list-style-type: none; 
  cursor:pointer;
  padding: 0 5px;
}
.playlist-dropdown li:hover{
  background-color: rgb(206, 206, 206);
}

.playlist-select-wrap {
  max-height: 200px; 
  overflow-y: auto;
  text-align: left;
  text-decoration: none;
  max-width: 617px;
  margin: 10px 5px;
}

.no-playlists {
  padding: 10px;
  margin-left: 20px;
  color: red;
  font-weight: 800;
  font-size: 1.2em;
}

/* TOOLTIP */

.program_list {
  display:inline-block;
  position:relative;
  border-bottom:1px dotted #666;
  text-align:left;
}


.program_list .bottom {
  min-width:200px;
  /*max-width:400px;*/
  top:15px;
  left:50%;
  transform:translate(-50%, 0);
  padding:20px;
  color:#666666;
  background-color:#EEEEEE;
  font-weight:normal;
  font-size:13px;
  border-radius:8px;
  position:absolute;
  z-index:99999999;
  box-sizing:border-box;
  box-shadow:0 1px 8px rgba(0,0,0,0.5);
  display:none;
}

.program_list:hover .bottom {
  display:block;
}

.program_list .bottom i {
  position:absolute;
  bottom:100%;
  left:50%;
  margin-left:-12px;
  width:24px;
  height:12px;
  overflow:hidden;
}

.program_list .bottom i::after {
  content:'';
  position:absolute;
  width:12px;
  height:12px;
  left:50%;
  transform:translate(-50%,50%) rotate(45deg);
  background-color:#EEEEEE;
  box-shadow:0 1px 8px rgba(0,0,0,0.5);
}

.same_line_div {
  display: contents;
}


.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
  position: absolute;
  top: 42%;
  left: 43%;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #faf7f7;
  border-color: #014A7B transparent #014A7B transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
.player_chain {
  padding: 0 18px;
  background-color: white;
  display: none;
  overflow: hidden;
  transition: display 0.2s, ease-out;
}