:root {
  --x-ui-outside-color: #0081c6;
  --x-ui-border-color: #253363;

  --x-ui-content-border-color: #dddddd;
  --x-ui-content-light-background: #f9f9f9;
  --x-ui-content-hover-background: #f5f5f5;
}

*[is=x-ui] ui-tabbar > ui-tab.inactive, ui-tabbed > ui-tabbar > ui-tab.switch {
  background: #99cce6;
}
[is=x-ui] #main ui-tabbar ui-before {
  padding-right: 0.5em;
  width: 4.2em;
}
[is=x-ui] #main ui-tabbar ui-before .logo {
  content: url(/cdp_ui/logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 4.2em;
  height: 80%;
}

[is="x-ui"] ui-rest > ui-content > ui-area { padding: 1em; }

[is="x-ui"] input, [is="x-ui"] button, [is="x-ui"] select {
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  margin: 0;
  padding: 0.5em;
  border: 1px solid var(--x-ui-border-color);
  width: 30em;
}

[is="x-ui"] ui-area button {
  width: initial;
  padding: 0.7em 5em;
}

[is="x-ui"] select {
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}

.fading {
  color: red;
  display: none;
  border: 0 none !important;
}
