input:focus, button:focus{
  outline: none;
}
/*
* buttons
*/
button.btn{
  border: 1px solid #bbbbbb;
  border-radius: 8px;
  color: #373837;
  padding: 4px 12px;
  text-decoration: none;
  margin: 2px 2px;
  cursor: pointer;
  font-size: 0.9em;
  font-family: 'farsi-1', 'english-1';
}

button.btn-default{
  background-color: #fcfcfc;
}

button.btn-default:hover, button.btn-default:focus{
  background-color: #e3e3e3;
}

button.btn-default:active{
  box-shadow: 0px 1px 2px 1px #b9b9b9 inset;
}


button.btn-alert{
  color: #ffffff;
  background-color: #d61111;
  border-color: #d61111;
}

button.btn-alert:hover, button.btn-alert:focus{
  background-color: #cf0f0f;
}

button.btn-alert:active{
  box-shadow: 0px 1px 12px #7e0f0f inset;
}

button.btn-no-border{
  border: 0;
  background-color: inherit;
  margin: 0;
  padding: 4px 10px;
}
button.btn-no-border-with-hover:hover, button.btn-no-border-with-hover:focus{
  background-color: #f0f0f0;
}

/*
* text input
*/
input[type=text], input[type=password] {
  padding: 2px 8px;
  margin-bottom: 2px;
  border: 1px solid rgb(200,200,200);
  border-radius: 4px 4px 4px 4px;
  font-family: 'farsi-1', 'english-1';
  font-size: 0.95em;
  text-align: center;
}

input[type=text]:focus {
  border-color: rgb(72, 72, 72);
}

/*
* search div
*/
button.search-button{
  border-color: #ffffff;
  background-color: #ffffff;
}
button.search-button:hover{
  border-color: #dfdfdf;
}
input.search-input{
  border-radius: 8px;
  border-color: #d5d5d5;
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 0.95em;
  text-align: center;
  min-width: 100px;
}

/*
* table
*/
td, th{
  font-family: 'farsi-1', 'english-1';
  font-size: 0.9em;
}

div.table-responsive{
  overflow-x: auto;
}

table.bordered {
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid #ddd;
  width: 100%;
}

table.bordered th,
table.bordered td{
  border: 1px solid #ddd;
  text-align: center;
  padding: 2px;
}

table.bordered tbody tr:hover,
table.striped  tbody tr:nth-child(odd):hover{
  background-color: #eee;
}

table.striped tbody tr:nth-child(odd){
  background-color: #f8f8f8;
}

table.colored-row tbody tr{
  background-color: #f8f8f8;
}


.table-responsive tr .hover-visible{
  visibility: hidden;
}
.table-responsive tr:hover .hover-visible{
  visibility: visible;
}

button.hover-visible{
  padding: 2px 8px;
  border-radius: 2px;
}

img.btn-icon{
  height: 14px;
  margin-top: 2px;
}

.btn-no-border img.btn-icon{
  height: 18px;
}

table.nowrap tbody td{
  white-space: nowrap;
}

/*
* tooltip
*/
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext, .tooltip .tooltiptext-simple {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 2px 4px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -60%;
}

.tooltip .tooltiptext-simple{
  bottom: 120%;
}

button.btn-no-border .tooltiptext-bottom{
  font-size: 14px;
}

.tooltip .tooltiptext-bottom {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 2px 4px;
  position: absolute;
  z-index: 1;
  top: 150%;
  left: 50%;
  margin-left: -60%;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.tooltip .tooltiptext-bottom::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.tooltip .tooltiptext-simple::after {
  position: absolute;
  bottom: 50%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
}

.tooltip:hover .tooltiptext,
.tooltip:hover .tooltiptext-bottom,
.tooltip:hover .tooltiptext-simple {
  visibility: visible;
}

/*
* Modal
*/
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  border-radius: 12px;
  width: 700px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.5s;
  animation-name: animatetop;
  animation-duration: 0.5s
}

#imageModal .modal-content{
  width: 80vw;
  margin-bottom: 40px;
}

#imageModalImage{
  width: 80%;
  padding: 4px;
  margin-top: 16px;
}

@media screen and (max-width: 1000px) {
  .modal-content {
    width: 80%;
  }
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: #252525;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 8px 16px;
  border-bottom: 0px solid #e2e2e2;
  color: #787878;
}

.modal-body {
  padding: 16px;
  padding-top: 36px;
}

.modal-footer {
  padding: 16px 16px 28px 16px;
  border-top: 0px solid #f0f0f0;
  color: #787878;
}

/*
* pagination
*/
input.pagination-page-no{
  border-radius: 8px;
  text-align: center;
}
input.pagination-page-no-fa{
  font-family: 'farsi-num';
}
.pagination{
  font-family: 'farsi-1', 'english-1';
  font-size: 0.9em;
  padding: 12px;
}
.pagination a{
  text-decoration: none;
  color: rgb(122, 122, 122);
}
.pagination-no-of-pages, .pagination-page-title{
  color: rgb(122, 122, 122);
}

/*
* simple general checkbox
*/
input[type="checkbox"].mycheckbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

input[type="checkbox"].mycheckbox+span:hover {
  cursor: pointer;
  color: rgb(242, 0, 0);
}

/* Checkbox un-checked style */
input[type="checkbox"].mycheckbox+span:before {
  content: '';
  border: 1px solid grey;
  border-radius: 3px;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.5em;
  margin-top: 0.5em;
  vertical-align: -2px;
}

input[type="checkbox"].mycheckbox:checked+span:before {
  background-image: url('../_library/img/icon_check.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  border-radius: 2px;
  background-color: #ffffff;
  color: white;
}

/* Adding a dotted border around the active tabbed-into checkbox */
input[type="checkbox"].mycheckbox:focus+span:before,
input[type="checkbox"].mycheckbox:not(:disabled)+span:hover:before {
  /* Visible in the full-color space */
  box-shadow: 0px 0px 0px 2px rgba(0, 150, 255, 1);
  outline-color: transparent; /*switch to transparent*/
  outline-width: 2px;
  outline-style: dotted;
  }

/* Disabled checkbox styles */
input[type="checkbox"].mycheckbox:disabled+span {
  cursor: default;
  color: black;
  opacity: 0.5;
}


/*
* Rounded checkbox
*/
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
}

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

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

input:checked + .slider:before {
  transform: translateX(16px);
}

.slider.round {
  border-radius: 24px;
}

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

/*
* Loader
*/
  .my-pulse-vector-loader{
    fill: red;
    height: 40px;
    padding-right: 40px;
    padding-left: 40px;
    animation-name: myPulseVectorAnim;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
  }
  @keyframes myPulseVectorAnim {
    from {clip-path: inset(0px 70% 0px 0% );}
    to   {clip-path: inset(0px 0%  0px 80%);}
  }

/*
* Notification counter
*/
span.counter{
  font-family: 'farsi-num';
  font-size: 12px;
  background-color: red;
  border-radius: 12px;
  color: white;
  padding: 2px 10px 2px 10px;
  margin-right: 8px;
  display: none; /* inline */
}

/*
* RightBar
*/
.right-bar {
  margin: 0;
  padding: 0;
  width: 0;
  background-color: #f9f9f9;
  position: fixed;
  left: 0px;
  top: 0px;
  height: 100%;
  transition: 0.4s;
  z-index: 1;
  border-left: 1px solid rgb(189, 189, 189);
  /* white-space: nowrap; */
  overflow-x: scroll;
  overflow-y: scroll;
  text-overflow: ellipsis;
}

#myRightBar .top-close-button{
  float: right;
  padding-top: 45px;
  padding-left: 8px;
}

.right-bar .top-close-button .close-symbol{
  padding: 10px;
  font-size: 18px;
}

#myRightBar .top-close-button img.btn-icon{
  filter: invert(50%);
}

.right-bar .right-bar-title h3{
  color: #000000;
  padding: 0;
  margin: 0;
  padding-top: 28px;
  font-family: 'farsi-1', 'english-2';
  text-align: center;
}
.right-bar .right-bar-title h4{
  color: #ff4444;
  padding: 0;
  margin: 0;
  padding-top: 4px;
  font-family: 'farsi-1', 'english-1';
  font-weight: normal;
  text-align: center;
  font-size: 0.95em;
}
.right-bar .right-bar-buttons{
  padding-left: 24px;
  padding-right: 24px;
}

#myRightBarLoader{
  display: none;
}

/*
* Plot
*/
div.plot-section svg{
  width: 100%;
}

/*
*   Ajax Spinner
*/
.ajax-spinner {
    width: 28px;
    height: 28px;
    border: 4px solid #ddd;
    border-top: 4px solid #444;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ajax-progress {
    height: 6px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.ajax-progress-bar {
    height: 100%;
    width: 0%;
    background: red;
    transition: width 0.3s ease;
}

.ajax-error {
    color: #b00020;
    font-weight: 500;
}
