/* Open Sans Light 300, Semibold and Spectral SC */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,600|Spectral+SC&subset=cyrillic');

html {
    height: 100%;
}

body {
    height: 100%;
}

/* UI Bootstrap 4 cursor fix */
.nav, .pagination, .carousel, .card-title a {
    cursor: pointer;
}

* {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.navbar-brand {
    font-family: 'Spectral SC', serif;
}

.bg-unired {
    background: #A8011D;
}

.navbar-dark .navbar-nav .nav-link, .nav-item {
    color: white;
}

.cf-nav-link {
    color: white;
    text-decoration: none !important;
    font-weight: normal !important;
}

.cf-nav-link:hover {
    text-decoration: underline !important;
}

#notification-box {
    background-color: #F5F5F5;
    border-radius: 2px;
    border-color: #D3D3D3;
    width: 23em;
    max-height: 23em;
    overflow-y: auto;
}

#notification-box .row {
    max-height: 23em;
}

.notification-text {
  line-height: 1.25em;
  word-wrap: break-word;
  padding-right: 1em;
}

.img-fluid.rounded-circle.fas {
    width: 40px;
    height: 40px;
    font-size: 20px;
    text-align: center;
    padding-top: 10px;
    border: 1px solid #707070;
}

.no-border {
    border: none!important;
}

.navbar .img-fluid.rounded-circle.fas:not(.fa-4x) {
    width: 25px;
    height: 25px;
    font-size: 14px;
    text-align: center;
    padding-top: 5px;
}

#nav-clock {
    border-left: 2px solid white;
    margin-left: 5px;
    padding-left: 5px;
    cursor: default;
    font-size: 15px;
}

.i-report {
    color: white;
    background-color: #53a6a8;
}

.i-settings {
    color: #8B8B8B;
    background-color: #D3D3D3;
}

.i-manual {
    color: #8B8B8B;
    background-color: #D3D3D3;
}

.i-bell {
    color: #765700;
    background-color: #FFBF40;
}

.i-user {
    color: #8B8B8B;
    background-color: #D3D3D3;
}

.i-stock {
    color: white;
    background-color: #7BA52B;
}

.i-currency {
    color: white;
    background-color: #B352C2;
}

.i-bank {
    color: white;
    background-color: #CAA912;
}

.i-trade {
    color: white;
    background-color: #548AA9;
}

.i-facilities {
    color: white;
    background-color: #ff4c4c;
}

.i-employees {
    color: white;
    background-color: #548AA9;
}

.i-vehicles {
    color: white;
    background-color: #54A99E;
}

.i-supplies {
    color: white;
    background-color: #006400;
}

.i-receivables-liabilities {
    color: white;
    background-color: #E50000;
}

.i-profitAndLoss {
    color: white;
    background-color: #FF8C00;
}

.i-status {
    color: white;
    background-color: #575757;
}

@media screen and (min-width: 768px) {
    .main-content {
        /*margin-left: 400px;*/
        /*margin-right: 400px;*/
        /* margin-left: 20%;
        margin-right: 20%; */
        background-color: #FFFFFF;
        /* min-width: 50%; */
        padding-top: 30px;
        padding-right: 45px;
        padding-bottom: 45px;
        padding-left: 45px;
        margin-top: 30px;
        /* height: 100%; */
    }

    .col-fixed-left {
        left: 0;
    }

    .col-fixed-right {
        right: 0;
    }

    .col-fixed-left, .col-fixed-right {
        /* min-width: 16em;
        max-width: 20%; */
        padding: 3% 2% 2% 2%;
        /* position: fixed;
        height: 100%; */
        background-color: #FAFAFA;
    }


}

.main-content h1 {
    padding-bottom: 10px;
}

.main-content h2 {
    font-weight: normal;
}

#notifications-dropdown > a.dropdown-toggle::after {
    display: none!important;
}

#user-dropdown > a.dropdown-toggle::after {
    display: none!important;
}

.unstyled-a, .unstyled-a:hover {
  text-decoration: none;
  color: inherit;
}

.left-menu a {
    padding-right: 5px;
    color: #707070;
    text-decoration: none;
}

.left-menu .fas + span {
    padding-left: 10px;
    font-weight: 600;
}

.left-menu > .row {
    margin-top: 10px;
    margin-bottom: 10px;
}

.state-info {
    padding-left: 15px;
    margin-bottom: 20px;
}

.state-info .ng-binding {
    font-weight: 600;
}

#ratios-container {
    border: 0.5px solid #707070;
    background-color: white;
    color: #4A4A4A;
    padding: 1em;
}

#ratios-container h2 {
    padding: 0.25em;
}

#ratios-container [scope=row] {
    padding-left: 1em;
    padding-right: 1em;
}

#ratios-container th[scope=row] {
  max-width: 4.75em;
}

tr:first-child > *  {
    border: none;
}

#ratios-container td:nth-child(2) {
    text-align: right;
}

#ratios-container td {
    vertical-align: middle;
}

/* Chat */
#chat-box {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

#chat {
    border: 1px solid #999;
    border-radius: 5px;
    left: 200px;
    position: fixed;
    bottom: -8px;
    padding-bottom: 15px;
    margin: 0 5px;
    height: 325px;
    width: 300px;
    background: #F5F5F5;
    overflow: hidden;
}

#chat .col, #chat .col-auto, #chat .row {
    margin: 0;
    padding-left: 5px;
    padding-right: 5px;
    flex-grow: 0;
}

#chat-title {
    background: #A8011D;
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
}

#chat .form-group {
    padding-top: 20px;
    color: #707070;
    position: absolute;
    width: inherit;
    bottom: 12px;
}

#chat input[type="text"] {
    border-radius: 10px;
    height: 1.75em;
}

.message-from {
    background-color: lightgreen;
    border-radius: 2%;
}

.message-to {
    background-color: lightskyblue;
    border-radius: 2%;
}

/* Notification badges */

i[data-badge="0"]:after {
    content: none!important;
}

.i-bell[data-badge]:after {
    content:attr(data-badge);
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.725em;
    background-color: #719D8D;
    color: white;
    width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
    border-radius: 50%;
    box-shadow: 0 0 1px #333;
}

.i-chat[data-badge]:after {
    content:attr(data-badge);
    position: absolute;
    bottom: -5px;
    right: 45px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: .55em;
    background-color: #ad5664;
    color: white;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 1px #333;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

table th,
table td {
    vertical-align: middle !important;
}

.btn-crimson {
    background-color: #A8011D;
    color: white;
}

.btn-crimson:disabled {
    background-color: #5c0110;
}

.white {
    color: white;
}

.back-button {
    color: #c8c8c8 !important;
}

.back-button:hover {
    color: #e1e1e1 !important;
}

.notification-toast {
    background-color: #fafafa;
    color: black;
    /*position: absolute;*/
    /*bottom: 0;*/
    /*right: 0;*/
    /*width: 1px;*/
    /*height: 1px;*/
}

/* regular links */
#bs-div a,
#pl-div a,
#cfs-div a {
    text-decoration: inherit;
    color: inherit;
}

#bs-div a:hover,
#pl-div a:hover,
#cfs-div a:hover,
#bs-div a:focus,
#pl-div a:focus,
#cfs-div a:focus {
    text-decoration: inherit;
    color: inherit;
    font-weight: inherit;
}

a:not(.navbar-brand) {
    text-decoration: underline;
    color: black;
}

a:not(.navbar-brand):hover,
a:not(.navbar-brand):focus {
    font-weight: bold;
    text-decoration: none;
    color: black;
}

/* tab links */
a.active:not(.navbar-brand) {
    font-weight: bold;
    text-decoration: none;
    color: black !important;
}

a.active:not(.navbar-brand):hover,
a.active:not(.navbar-brand):focus {
    font-weight: bold;
    text-decoration: none;
    color: black !important;
}

/* game side-nav-bar links */
a span {
    text-decoration: underline;
    font-weight: none;
    color: #707070 !important;
}

a span:hover,
a span:focus {
    font-weight: bold;
    text-decoration: none;
    color: black !important;
}

a.active span {
    font-weight: bold;
    text-decoration: none;
    color: black !important;
}

a.active span:hover,
a.active span:focus {
    font-weight: bold;
    text-decoration: none;
    color: black !important;
}

/* Tooltip Style */

/* Tooltip Wrapper */
.has-tooltip {
  position: relative;
}
.has-tooltip .tooltip {
  opacity: 0;
  visibility: hidden;
  -webkit-transition: visibility 0s ease 0.5s,opacity .3s ease-in;
  -moz-transition: visibility 0s ease 0.5s,opacity .3s ease-in;
  -o-transition: visibility 0s ease 0.5s,opacity .3s ease-in;
  transition: visibility 0s ease 0.5s,opacity .3s ease-in;
}
.has-tooltip:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.has-tooltip .tooltip-bottom {
  opacity: 0;
  visibility: hidden;
  -webkit-transition: visibility 0s ease 0.5s,opacity .3s ease-in;
  -moz-transition: visibility 0s ease 0.5s,opacity .3s ease-in;
  -o-transition: visibility 0s ease 0.5s,opacity .3s ease-in;
  transition: visibility 0s ease 0.5s,opacity .3s ease-in;
}
.has-tooltip:hover .tooltip-bottom {
  opacity: 1;
  visibility: visible;
}

/* Tooltip Body */
.tooltip {
  background-color: #222;
  /*bottom: 130%;*/
  bottom: 100%;
  color: #fff;
  font-size: 12px;
  left: 50%;
  /*margin-left: -56px;*/
  margin-left: -65px;
  padding: 6px;
  position: absolute;
  text-align: center;
  text-decoration: none;
  text-transform: none!important;
  text-shadow: none;
  width: 130px;
  z-index: 4;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
}

/* Tooltip Caret */
.tooltip:after {
  border-top: 5px solid #222;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  bottom: -5px;
  content: " ";
  font-size: 0px;
  left: 50%;
  line-height: 0%;
  margin-left: -4px;
  position: absolute;
  width: 0px;
  z-index: 1;
}

/* Tooltip Bottom Body */
.tooltip-bottom {
  background-color: #222;
  top: 120%;
  color: #fff;
  font-size: 12px;
  left: 50%;
  /*margin-left: -56px;*/
  margin-left: -50px;
  padding: 6px;
  position: absolute;
  text-align: center;
  text-decoration: none;
  text-transform: none!important;
  text-shadow: none;
  width: 100px;
  z-index: 4;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
}

.light-margin {
    margin: 0.3em;
}

.square-30-px {
    height: 30px;
    width: 30px;
}

.settings-heading {
    font-size: 1.07rem;
    border-bottom: 1px black;
    border-bottom-style: solid;
    width: 100%;
    margin-top: 1em;
    margin-bottom: 0;
}

.ratios-heading {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    font-size: 1.20rem;
    text-transform: none !important;
}

.resp-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.resp-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.crimson {
    color: #A8011D;
}

.green {
    color: #009900;
}
