/**
 * Styles for alert boxes and notifications.
 */

.alert {
  margin: 0.2em 0 0.8em 0;
  padding: 0.3em 0.6em;
  border: 1px solid;
  border-radius: 0.2em;
  line-height: 1.4em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: baseline;
  align-content: flex-start;
}

.alert .glyphicons.icon,
.alert .halflings.icon {
  top: 0.15em;
  margin-right: 0.45em;
  order: -1;
}

.alert.alert-success {
  color: #3C763D;
  background-color: #DFF0D8;
  border-color: #D6E9C6;
}

.alert.alert-info {
  color: #31708F;
  background-color: #D9EDF7;
  border-color: #BCE8F1;
}

.alert.alert-warning {
  color: #8A6D3B;
  background-color: #FCF8E3;
  border-color: #FAEBCC;
}

.alert.alert-danger {
  color: #A94442;
  background-color: #F2DEDE;
  border-color: #EBCCD1;
}

.alert-text-success {
  color: #3C763D !important;
}

.alert-text-info {
  color: #31708F !important;
}

.alert-text-warning {
  color: #8A6D3B !important;
}

.alert-text-danger {
  color: #A94442 !important;
}

.toolbar {
  height: 50px;
  box-sizing: border-box;
  background: #e9e9e9;
  border-bottom: 1px solid #ddd;
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  align-items: center !important;
  align-content: space-between !important;
  vertical-align: middle;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.toolbar h1 {
  order: 0;
  flex-shrink: 1;
  align-self: center;
  margin: 0 6px !important;
  padding: 0;
  box-sizing: content-box;
}

.toolbar a {
  text-decoration: none;
  color: inherit;
  font-weight: normal;
  outline: 0;
}

.toolbar a:active,
.toolbar h1 a:active > img {
  background: rgba(0, 0, 0, 0.15);
}

.toolbar h1 a img {
  padding: 6px;
  height: 21px;
  display: block;
}

.toolbar .left .glyphicons,
.toolbar .left .halflings,
.toolbar .right .glyphicons,
.toolbar .right .halflings {
  font-size: 17px;
}

.toolbar div.left {
  order: -1;
  flex-shrink: 0;
  align-self: center;
  display: inline;
  margin-left: 12px;
  text-align: left;
}

.toolbar div.right {
  order: 1;
  flex-shrink: 0;
  align-self: center;
  display: inline;
  margin-right: 12px;
  text-align: right;
}

a.toolbar-btn-message,
a.toolbar-btn-message:visited {
  color: inherit;
}

a.toolbar-btn-message:focus:before,
a.toolbar-btn-message:active:before {
  content: "\e121";
  background: rgba(0, 0, 0, 0.15);
}

.toolbar.inverted {
  background: #1b1c1d;
  border-bottom: 1px solid #2d2e2f;
}

.toolbar.inverted .glyphicons,
.toolbar.inverted img {
  filter: invert(0.7);
}

.ui.breadcrumb + .ui.toolbar-messages {
  margin-top: 1em;
}

@media not screen, (max-width: 767px) {
  .ui.toolbar-messages .ui.message {
    margin-top: -1em;
    margin-left: -1em;
    margin-right: -1em;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #ddd;
  }

  .ui.toolbar-messages .ui.message:first-child {
    margin-top: -1.5em;
  }

  .ui.toolbar-messages .ui.message:last-child {
    margin-bottom: -0.5em;
  }
}

.ui.sidebar a.item > .right {
  opacity: 0.5;
  transition: opacity 0.1s ease;
  float: right;
  margin-right: -0.15rem;
}

.ui.sidebar a.item:hover > .right {
  opacity: 1;
}

p .glyphicons {
  display: inline;
  vertical-align: middle;
}

.ui.sidebar .glyphicons {
  display: inline-block;
  margin: 0 0.25rem 0 0;
  width: 1.18em;
  height: 1em;
  text-align: center;
  speak: none;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  font-size: 1em;
  opacity: 0.9;
  line-height: 0.15em;
  float: right;
}

.ui.vertical.menu i.icon .glyphicons {
  line-height: 0.5rem;
}

.ui.pagination a.icon .glyphicons::before {
  padding: 0;
}

/**
 * Custom styles to patch some Semantic UI defaults.
 */

@media only screen and (max-width: 767px) {
  .ui.table:not(.unstackable) tr {
    padding-top: 0em;
    padding-bottom: 0em;
  }

  .ui.table:not(.unstackable) tr > td,
  .ui.table:not(.unstackable) tr > th {
    padding: 0.4em 0.75em !important;
  }
}

.steps.unstackable {
  overflow-x: auto;
}

.pagination {
  overflow-x: auto;
  max-width: 100%;
}

form.inline {
  display: inline-block;
}

@media not screen, (max-width: 991px) {
  .ui.breadcrumb {
    display: none;
  }
}

.ui.breadcrumb a.active.section {
  color: rgba(0, 0, 0, 0.87) !important;
}

.ui.form .field.error-outline input {
  border-color: #c26c6c !important;
}

.pushable .pusher.inverted {
  background: #1b1c1d;
}

.ui.menu.inverted .icon.link .glyphicons {
  filter: invert(0.7);
}

.inverted.transition.glow {
  animation-name: glow-inverted;
}

@keyframes glow-inverted {
  0% {
    background-color: #00b6f0;
  }

  30% {
    background-color: blend-normal(#00b6f0, #1b1c1d);
  }

  100% {
    background-color: #1b1c1d;
  }
}

span.spacer {
  margin: 0;
  padding: 0;
  display: block;
  height: 1em;
}

span.spacer.x05 {
  height: 0.5em;
}

span.spacer.x2 {
  height: 2em;
}

span.spacer.x3 {
  height: 3em;
}

span.spacer.x4 {
  height: 4em;
}

span.spacer.x5 {
  height: 5em;
}

.margin-center {
  margin-left: auto;
  margin-right: auto;
}

.align-center {
  text-align: center;
}

.display-inline {
  display: inline;
}

.display-inline-block {
  display: inline-block !important;
}

code.literal {
  padding: 2px 4px;
  color: #c0341d;
  background-color: #fbe5e1;
  border-radius: 4px;
}

.highlight-box {
  text-align: center;
  margin: 1.5em 0;
  padding: 0.5em 0.5em 0.3em;
}

.highlight-box i.attention-icon {
  padding: 0.2em 0 0.25em;
  font-size: 72px;
  color: #555555;
  text-shadow: 0 1px #222222;
  font-size: 32px;
}

@media screen and (min-width: 100px) {
  .highlight-box i.attention-icon {
    font-size: calc(32px + 64 * math.div((100vw - 100px), 500));
  }
}

@media screen and (min-width: 600px) {
  .highlight-box i.attention-icon {
    font-size: 96px;
  }
}

.highlight-box i.arrow-icon {
  padding: 0;
  font-size: 3em !important;
  color: #555555;
  text-shadow: 0 1px #222222;
  font-size: 32px;
}

@media screen and (min-width: 100px) {
  .highlight-box i.arrow-icon {
    font-size: calc(32px + 64 * math.div((100vw - 100px), 500));
  }
}

@media screen and (min-width: 600px) {
  .highlight-box i.arrow-icon {
    font-size: 96px;
  }
}

.highlight-box img.logo {
  max-width: 100%;
  width: 75px;
  margin-top: 5px;
  margin-bottom: 5px;
}

@media screen and (min-width: 100px) {
  .highlight-box img.logo {
    width: calc(75px + 125 * math.div((100vw - 100px), 500));
  }
}

@media screen and (min-width: 600px) {
  .highlight-box img.logo {
    width: 200px;
  }
}

@media screen and (min-width: 100px) {
  .highlight-box img.logo {
    margin-top: calc(5px + 20 * math.div((100vw - 100px), 500));
  }
}

@media screen and (min-width: 600px) {
  .highlight-box img.logo {
    margin-top: 25px;
  }
}

@media screen and (min-width: 100px) {
  .highlight-box img.logo {
    margin-bottom: calc(5px + 20 * math.div((100vw - 100px), 500));
  }
}

@media screen and (min-width: 600px) {
  .highlight-box img.logo {
    margin-bottom: 25px;
  }
}

.page {
  margin-top: 1.5em;
  margin-bottom: 2em;
}

.ui.dimmer.modals.page {
  margin-top: 0;
  margin-bottom: 0;
}

.page-divider {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  align-content: space-between;
}

.page-divider .slot,
.page-divider i.glyphicons,
.page-divider i.halflings {
  margin: 10px 15px;
  order: 0;
  flex-grow: 0;
  display: inline-block;
  color: #555555;
  text-shadow: 0 1px #222222;
}

.page-divider i.glyphicons.scale,
.page-divider i.halflings.scale {
  font-size: 16px;
}

@media screen and (min-width: 100px) {
  .page-divider i.glyphicons.scale,
  .page-divider i.halflings.scale {
    font-size: calc(16px + 32 * math.div((100vw - 100px), 500));
  }
}

@media screen and (min-width: 600px) {
  .page-divider i.glyphicons.scale,
  .page-divider i.halflings.scale {
    font-size: 48px;
  }
}

.page-divider span.line:nth-of-type(1) {
  order: -1;
  height: 1px;
  margin: 20px 0;
  background-color: #D5D5D5;
  display: inline-block;
  flex-grow: 1;
  content: "";
}

.page-divider span.line:nth-of-type(2) {
  order: 1;
  height: 1px;
  margin: 20px 0;
  background-color: #D5D5D5;
  display: inline-block;
  flex-grow: 1;
  content: "";
}

ul.ui-listview.center > li > a.ui-btn {
  text-align: center;
}

.fi.fir {
  border-radius: 0.15em;
}

.fi-pirate {
  background-image: url(/img/flag/pirate_4x3.svg);
}

.fi-pirate.fis {
  background-image: url(/img/flag/pirate_1x1.svg);
}

.ui.button .icon .fi {
  display: inline-block;
  height: 100%;
}

.sidebar .alt-button {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 40px;
  height: 40px;
  display: block;
  padding: 13px 5px 13px 5px;
  transition: background 0.1s ease, color 0.1s ease;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .alt-button .glyphicons {
  width: 30px;
  height: 14px;
  margin: 0;
}

.sidebar .alt-button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar .alt-button.logout {
  background: darkred !important;
}

.sidebar .alt-button.logout:hover {
  background: rgba(139, 0, 0, 0.8) !important;
}

.sidebar .item.header.spaced {
  padding-top: 2.5em;
  font-style: italic;
}

.sidebar .has-alt-button {
  padding-right: 50px !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.bar-header {
  display: flex;
  justify-content: space-between;
}

.bar-header .balance {
  margin-right: 0.5rem;
}

.label-top-up {
  margin-right: 0 !important;
  height: 26px;
}

.subtle,
.menu.fluid .sub-label {
  color: gray;
}

.ui.text.positive {
  color: green;
}

.ui.text.negative {
  color: red;
}

.menu.fluid .sub-label {
  float: right;
  margin-left: 12px;
  display: block;
  font-size: smaller;
  line-height: normal;
}

a.subtle.link {
  color: rgba(0, 0, 0, 0.4);
  transition: 0.1s color ease;
}

a.subtle.link:hover {
  color: rgba(0, 0, 0, 0.8);
}

.checkbox-list-inline-field {
  display: inline-block !important;
  margin-left: 0.25em !important;
  width: 7em !important;
}

.inventory-balance-quantity-field {
  display: inline-block !important;
  margin: 0;
  width: 5em !important;
}

.pirate {
  position: sticky;
  left: 110px;
  margin: 25px auto 90px auto;
  display: inline-block;
  animation: pirate 8s ease-in-out 1s both;
}

.pirate img {
  width: 120px;
  margin: 0 0 -65px 0;
  position: relative;
  animation: pirate-img 8s ease-in-out 1s both;
}

.glyphicons.chunk-spacer {
  display: block;
  text-align: center;
  margin: -0.75em 0;
  color: darkgray;
}

.glyphicons.list-more::before {
  padding: 0 !important;
}

.text-align-center {
  text-align: center;
}

@keyframes pirate {
  0% {
    opacity: 0;
    left: 0;
    bottom: -45px;
  }

  25% {
    opacity: 1;
    bottom: 0;
  }

  85% {
    opacity: 1;
    bottom: 0;
  }

  99% {
    opacity: 0;
    left: 120px;
    bottom: -45px;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    left: 120px;
    bottom: -45px;
    transform: scale(0);
  }
}

@keyframes pirate-img {
  0% {
    bottom: -2px;
  }

  25% {
    bottom: 5px;
  }

  35% {
    bottom: -2px;
  }

  45% {
    bottom: 5px;
  }

  55% {
    bottom: -2px;
  }

  65% {
    bottom: 5px;
  }

  75% {
    bottom: -2px;
  }

  85% {
    bottom: 5px;
  }

  100% {
    bottom: -2px;
  }
}


