/*---------------- Search Box */

#FSearchBox {
    float: left;
}

#MSearchBox {
    white-space : nowrap;
    float: none;
    margin-top: 8px;
    right: 0px;
    width: 170px;
    height: 24px;
    z-index: 102;
}

#MSearchBox .left
{
    display:block;
    position:absolute;
    left:10px;
    width:20px;
    height:19px;
    background:url('search_l.png') no-repeat;
    background-position:right;
}

#MSearchSelect {
    display:block;
    position:absolute;
    width:20px;
    height:19px;
}

.left #MSearchSelect {
    left:4px;
}

.right #MSearchSelect {
    right:5px;
}

#MSearchField {
    display:block;
    position:absolute;
    height:19px;
    background:url('search_m.png') repeat-x;
    border:none;
    width:115px;
    margin-left:20px;
    padding-left:4px;
    color: #909090;
    outline: none;
    font: 9pt Arial, Verdana, sans-serif;
    -webkit-border-radius: 0px;
}

#FSearchBox #MSearchField {
    margin-left:15px;
}

#MSearchBox .right {
    display:block;
    position:absolute;
    right:10px;
    top:8px;
    width:20px;
    height:19px;
    background:url('search_r.png') no-repeat;
    background-position:left;
}

#MSearchClose {
    display: none;
    position: absolute;
    top: 4px;
    background : none;
    border: none;
    margin: 0px 4px 0px 0px;
    padding: 0px 0px;
    outline: none;
}

.left #MSearchClose {
    left: 6px;
}

.right #MSearchClose {
    right: 2px;
}

.MSearchBoxActive #MSearchField {
    color: #000000;
}

/*---------------- Search filter selection */

#MSearchSelectWindow {
    display: none;
    position: absolute;
    left: 0; top: 0;
    border: 1px solid #90A5CE;
    background-color: #F9FAFC;
    z-index: 10001;
    padding-top: 4px;
    padding-bottom: 4px;
    -moz-border-radius: 4px;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -webkit-border-bottom-right-radius: 4px;
    -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
}

.SelectItem {
    font: 8pt Arial, Verdana, sans-serif;
    padding-left:  2px;
    padding-right: 12px;
    border: 0px;
}

span.SelectionMark {
    margin-right: 4px;
    font-family: monospace;
    outline-style: none;
    text-decoration: none;
}

a.SelectItem {
    display: block;
    outline-style: none;
    color: #000000; 
    text-decoration: none;
    padding-left:   6px;
    padding-right: 12px;
}

a.SelectItem:focus,
a.SelectItem:active {
    color: #000000; 
    outline-style: none;
    text-decoration: none;
}

a.SelectItem:hover {
    color: #FFFFFF;
    background-color: #3D578C;
    outline-style: none;
    text-decoration: none;
    cursor: pointer;
    display: block;
}

/*---------------- Search results window */

iframe#MSearchResults {
    width: 60ex;
    height: 15em;
}

#MSearchResultsWindow {
    display: none;
    position: absolute;
    left: 0; top: 0;
    border: 1px solid #000;
    background-color: #EEF1F7;
    z-index:10000;
}

/* ----------------------------------- */


#SRIndex {
    clear:both; 
    padding-bottom: 15px;
}

.SREntry {
    font-size: 10pt;
    padding-left: 1ex;
}

.SRPage .SREntry {
    font-size: 8pt;
    padding: 1px 5px;
}

body.SRPage {
    margin: 5px 2px;
}

.SRChildren {
    padding-left: 3ex; padding-bottom: .5em 
}

.SRPage .SRChildren {
    display: none;
}

.SRSymbol {
    font-weight: bold; 
    color: #425E97;
    font-family: Arial, Verdana, sans-serif;
    text-decoration: none;
    outline: none;
}

a.SRScope {
    display: block;
    color: #425E97; 
    font-family: Arial, Verdana, sans-serif;
    text-decoration: none;
    outline: none;
}

a.SRSymbol:focus, a.SRSymbol:active,
a.SRScope:focus, a.SRScope:active {
    text-decoration: underline;
}

span.SRScope {
    padding-left: 4px;
}

.SRPage .SRStatus {
    padding: 2px 5px;
    font-size: 8pt;
    font-style: italic;
}

.SRResult {
    display: none;
}

DIV.searchresults {
    margin-left: 10px;
    margin-right: 10px;
}

/*---------------- External search page results */

.searchresult {
    background-color: #F0F3F8;
}

.pages b {
   color: white;
   padding: 5px 5px 3px 5px;
   background-image: url("../tab_a.png");
   background-repeat: repeat-x;
   text-shadow: 0 1px 1px #000000;
}

.pages {
    line-height: 17px;
    margin-left: 4px;
    text-decoration: none;
}

.hl {
    font-weight: bold;
}

#searchresults {
    margin-bottom: 20px;
}

.searchpages {
    margin-top: 10px;
}


/* Telegram rewrites */

/*---------------- Search Box */

#MSearchBox {
  margin-top: 2px;
  margin-right: 15px;
  width: 200px;
  height: 30px;
  border: 1px solid #e6e6e6;
  border-radius: 15px;
  position: relative;
}

#MSearchBox .left
{
  display: block;
  position: absolute;
  left: 0;
  width: 35px;
  height: 28px;
  background: none;
}

#MSearchBox .left:before
{
  content: '';
  display: inline-block;
  position: absolute;
  left: 10px;
  top: 4px;
  width: 20px;
  height: 20px;
  background: url(../tdlib_1x.png) no-repeat 0px -41px;
}

#MSearchSelect {
  display: inline-block;
  position: absolute;
  width: 35px;
  height: 28px;
  opacity: 0;
}

.left #MSearchSelect {
  left: 0;
}

.right #MSearchSelect {
  right: 0;
}

#MSearchField {
  display: block;
  position: absolute;
  height: 28px;
  background: none;
  border: none;
  width: 135px;
  margin-left: 35px;
  padding: 0 0 0 4px;
  color: #b3b3b3;
  outline: none;
  font-family: "Lucida Grande", Arial, Helvetica, sans-serif;
  font-size: 12px;
  border-radius: 0;
}

#MSearchBox .right {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: none;
}

#MSearchClose {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 0;
  outline: none;
  width: 28px;
  height: 28px;
}

#MSearchClose:before
{
  content: '';
  display: inline-block;
  position: absolute;
  right: 6px;
  top: 4px;
  width: 20px;
  height: 20px;
  background: url(../tdlib_1x.png) no-repeat 0px -64px;
}

#MSearchClose img {
  display: none;
}

.left #MSearchClose {
    left: 0;
}

.right #MSearchClose {
    right: 0;
}

.MSearchBoxActive #MSearchField {
    color: #222;
}

/*---------------- Search filter selection */

#MSearchSelectWindow {
  font-size: 13px;
  background-color: #fff;
  border-radius: 0;
  border: none;
  margin: 7px 0 0 0;
  padding: 6px 0;
  border: 1px solid rgba(29,92,123,0.3);
  -webkit-box-shadow: 0 1px 1px rgba(20,60,83,0.1);
  box-shadow: 0 1px 1px rgba(20,60,83,0.1);
  width: 200px;
}

.SelectItem,
a.SelectItem {
  font-family: "Lucida Grande", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: normal;
  line-height: 20px;
  padding: 8px 12px 8px 15px;
  margin: 0;
  color: #08c;
}

.SelectItem.active:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url(../tdlib_1x.png) no-repeat 0 -150px;
  float: right;
}

span.SelectionMark {
  display: none;
}

a.SelectItem:focus,
a.SelectItem:active {
  color: #08c;
}

a.SelectItem:hover {
  color: #08c;
  background-color: #f0f6fa;
}

/*---------------- Search results window */

iframe#MSearchResults {
  width: 400px;
  height: 200px;
}

#MSearchResultsWindow {
  display: none;
  position: absolute;
  left: 0; top: 0;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  -webkit-box-shadow: 0 1px 1px rgba(20,60,83,0.1);
  box-shadow: 0 1px 1px rgba(20,60,83,0.1);
  z-index: 10000;
  margin: 15px 0 0 48px;
}

/* ----------------------------------- */


#SRIndex {
  padding: 0;
}

.SREntry {
  font-size: 12px;
  padding: 5px 10px;
}

.SRPage .SREntry {
  font-size: 12px;
  padding: 5px 10px;
  word-wrap: break-word;
  overflow: hidden;
}

body.SRPage {
  font: 400 12px/18px "Lucida Grande", Arial, Helvetica, sans-serif;
  color: #222;
  margin: 0;
}

.SRChildren {
  margin: 5px -10px 0;
  padding: 0;
}

.SRSymbol {
  font-family: "Lucida Grande", Arial, Helvetica, sans-serif;
  color: #08c;
  display: inline-block;
  padding: 5px 410px 5px 10px;
  margin: -5px -410px -5px -10px;
}

a.SRScope {
  display: block;
  font-family: "Lucida Grande", Arial, Helvetica, sans-serif;
  color: #222;
  padding: 3px 10px 3px 30px;
  text-indent: -10px;
}

a.SRSymbol:hover,
a.SRScope:hover {
  background: #f0f6fa;
  text-decoration: none;
}

a.SRSymbol:focus, a.SRSymbol:active,
a.SRScope:focus, a.SRScope:active {
  background: #f7f8fb;
  text-decoration: none;
}

span.SRScope {
  padding-left: 4px;
  pointer-events: none;
}

.SRPage .SRStatus {
  padding: 20px 10px;
  font-size: 12px;
  text-align: center;
  color: #999;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
  #MSearchBox .left:before,
  #MSearchClose:before,
  .SelectItem.active:before {
    background-image: url(../tdlib_2x.png);
    background-size: 20px 180px;
  }
}
