@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace ya url("http://bar.yandex.ru/firefox");
@namespace html url("http://www.w3.org/1999/xhtml");

ya|tabs,
ya|tabpanel {
  color: #585858;
}

ya|tabpanel[collapsed="true"] *|*[yaShowOnCollapsed="false"],
ya|tabpanel[collapsed="false"] *|*[yaShowOnCollapsed="true"] {
  display: none;
}

.toggle-holder {
  margin: 0.5em -0.5em 0 0;
}

.toggle-holder * {
  cursor: pointer;
}

.toggle-holder label {
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none;
}

ya|tabpanel .toggle-holder hbox {
  padding-right: 14px;
  background: url("chrome://yasearch/skin/dialogs/images/arrows/arrow-dn.png") 100% 65% no-repeat;
}

ya|tabpanel[collapsed="false"] .toggle-holder hbox {
  background-image: url("chrome://yasearch/skin/dialogs/images/arrows/arrow-up.png");
}

textbox {
  font-size: 1.3em;
}

ya|tabpanel[id="login-tabpanel"] {
  font-size: 0.6em;
  margin: 1em 0 0.6em 0;
  padding: 0 1.2em;
}

ya|tabpanel[id="login-tabpanel"],
#login-grid checkbox,
#login-grid button {
  color: rgb(146,91,29);
}

textbox {
  margin: 0.3em 0 !important;
}

#login-grid {
  margin: 0.5em;
}

#login-grid column {
  padding: 0 0.25em;
}

#login-grid row:last-child {
  margin-top: -0.2em;
}

#login-grid checkbox {
  padding: 0;
  margin: 0;
}

ya|dialogcontent[yaServiceName="mfd"] .not-mfd-display,
ya|dialogcontent:not([yaServiceName="mfd"]) .mfd-display {
  display: none;
}

ya|dialogcontent[yaServiceName="mfd"] .mfd-hidden {
  visibility: hidden;
}

#about-service-holder {
  margin: 5px 0 0 0;
}

#about-service-holder *|* {
  margin: 0;
  padding: 0;
}

#about-service-holder description {
  width: 1px;
  font-size: 1.05em;
}

#about-service-holder > vbox > description {
  margin: 0.2em 0 0.4em 0;
  color: rgb(119,66,17);
}

#about-service-holder > vbox description.header-desc {
  margin: 0.2em 0;
  font-size: 1.3em;
  font-weight: bold;
  color: rgb(190,123,39);
}

#about-service-holder grid {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

#about-service-holder grid description {
  margin-left: 0.4em;
  margin-right: 0.15em;
}

ya|tabpanel {
  font-size: 0.8em;
  margin: 1em 1em 0.6em 1em;
}

ya|tabpanel[id="user-info-tabpanel"] {
  margin: 0.75em 0.8em 0.6em 0.8em;
}

ya|tabbox:not([selected="true"]) {
  max-width: 1px !important;
  min-width: 1px !important;
  max-height: 1px !important;
  min-height: 1px !important;
}

ya|tabbox:not([selected="true"]) *|* {
  display: none !important;
}

.dark-label {
  color: #473e2d;
}

.request-status-label {
  color: #208020;
}

.attention-label {
  color: #c2510f;
}

#yasearch-connection-status {
  font-size: 1.2em;
}

#yasearch-connection-status > * {
  -moz-box-align: center;
  -moz-box-pack: center;
  display: inline-block;
  text-align: center;
}

checkbox#yasearch-store-password {
  color: #b66f15;
}

#user-info-services {
  margin-top: 0.7em;
}

#user-info-services > label {
  font-size: 1.25em;
  color: #614f37;
}

#user-info-services hbox.service-data {
  -moz-box-flex: 1;
  -moz-box-align: center;
}

#user-info-services hbox.service-counter-data {
  font-size: 0.7em;
  padding-top: 0.25em;
}

#user-info-services hbox.service-data:not([yaserviceerror="0"]) {
  color: #b28b47;
}

#user-info-services hbox.service-data hbox.full-counter {
  color: #ce4c01;
  margin-left: 0.4em;
}

#user-info-services .service-counter-data[yaIsCounter="yes"] {
  min-width: 3em;
}

#user-info-services-list {
  margin: 0.4em 0 1em 0;
  color: #614f37;
}

#user-info-services-list row {
  padding: 0.2em 0 0.8em 0;
}

#all-services-box {
  -moz-box-pack: center;
  color: #ce4c01;
  margin: 0.3em 0 0.6em 0;
}

#all-services-box label:not([yahref]) {
  visibility: hidden;
}

#user-info-services-list row > hbox {
  margin: 0 0.15em 0 0;
}

#user-info-services-list row > hbox + hbox {
  margin: 0 0 0 0.5em;
}

#user-info-services-list hbox.service-icon {
  width: 16px;
  overflow: hidden;
  margin: 0 0.4em 0 0;
}

#user-switch-or-exit {
  color: #76511d;
  font-size: 0.75em;
}

#user-switch-or-exit > vbox {
  -moz-box-align: start;
  -moz-box-flex: 1;
}

#user-switch-or-exit > vbox + vbox {
  -moz-box-align: end;
  padding-left: 1em;
}

#user-info {
  min-height: 80px;
}

#user-info-avatar {
  -moz-binding: url("chrome://yasearch/content/dialogs/bindings.xbl#avatar") !important;
  -moz-box-pack: center;
  -moz-box-align: center;
  min-width: 60px;
  min-height: 60px;
}

#user-info-avatar > vbox {
  background: #fff;
  border: 5px solid #fee4af;
  -moz-box-pack: center;
  -moz-box-align: center;
}

#user-info-avatar html|img {
  display: block;
}

#user-info-yaru-column {
  min-width: 11.5em;
  -moz-box-pack: center;
}

#user-info-name {
  margin:0 0 0 9px;
  font-size: 19px !important;
  color: #000;
}

#user-info-status {
  margin-top: 5px;
  -moz-binding: url("chrome://yasearch/content/dialogs/status.xbl#status") !important;
}

#user-info-name html|span:first-letter {
  color: red;
}

.yaoverfl {
  -moz-binding: url("chrome://yasearch/content/dialogs/bindings.xbl#cropped") !important;
  -moz-box-flex: 1;
}

.yaoverfl:not([yaoverflowed="true"]) > stack > vbox {
  display: none;
}

#yasearch-username #treecolAutoCompleteComment {
  max-width: 14px !important;
  width: 14px !important;
}

#yasearch-username treechildren.autocomplete-treebody::-moz-tree-image(treecolAutoCompleteComment) {
  list-style-image: url("../browser-icons/delete.png");
  -moz-image-region: rect(0px, 24px, 12px, 12px);
  cursor: pointer;
}

#yasearch-username treechildren.autocomplete-treebody::-moz-tree-image(treecolAutoCompleteComment, current, commentColumnHover) {
  -moz-image-region: rect(0px, 12px, 12px, 0px);
}
