/*
 * CSS компонент карточки
 * Применяются в качестве плиток-ссылок основного меню на главной странице
 *
 * @author sagittaracc <sagittaracc@gmail.com>
 */

.card {
  cursor: pointer;
  position: relative;
  width: 278px;
  height: 140px;
  background: #bc1c48;
  color: white;
  text-align: center;
  border-radius: 7px;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
  -webkit-transition: opacity .5s;
  transition: opacity .5s;
}

.card>.header {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 38px;
}

.card>.header>i {
  font-size: 85px;
  -webkit-transition: transform .5s;
  transition: transform .5s;
}

.card>.text {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 28px;
  font-size: 20px;
  line-height: 28px;
  border-top: 0;
  -webkit-transition: opacity .3s;
  transition: opacity .3s;
}

.card:hover {
  opacity: 0.8;
}

.card:hover>.header {
  /*  */
}

.card:hover>.header>i {
  transform: scale(1.3) translate(0, 10px);
}

.card:hover>.text {
  opacity: 0;
}
/*
 * Стили страницы "Графики"
 *
 * @author sagittaracc <sagittaracc@gmail.com>
 */

#chart-area {
  background: white;
}
/*
 * Стили компонента Input Action
 * Смотри /web/js/input-action.js
 *
 * @author sagittaracc <sagittaracc@gmail.com>
 */

.input-action-block {
  position: relative;
}

.input-action-block>input {
  padding-right: 50px;
}

.input-action-block>a.action {
  position: absolute;
  top: 5px;
  cursor: pointer;
  right: 5px;
  background: #0072bca6;
  color: white;
  padding: 5px;
  border-radius: 5px;
  line-height: 14px;
}

.input-action-block>span.loader {
  position: absolute;
  top: 10px;
  right: 95px;
}
/*
 * Была просьба чтобы левое меню задвигалось с анимацией
 *
 * @author sagittaracc <sagittaracc@gmail.com>
 */

.left_col {
  transition: all .2s linear 0s;
}
/*
 * Дизайн формы входа
 *
 * @author sagittaracc <sagittaracc@gmail.com>
 */

body.blank {
  background: #2D9AFF;
}

body.blank .wrap {
  flex-wrap: wrap;
  align-items: flex-start !important;
}

body.blank .wrap .logo {
  background: url("../../img/logo.png");
  background-position: center;
  background-size: 120px;
  border-radius: 25px 25px 0;
  width: 120px;
  height: 120px;
  margin: auto;
}

.site-login {
  background: #F5F5F5;
  border-radius: 70px 0;
  padding: 45px;
}

.site-login h1 {
  font-size: 30px;
  color: black;
  font-weight: bold;
}

.site-login input[type="password"],
.site-login input[type="text"] {
  border: none;
  border-radius: 5px !important;
  -webkit-box-shadow: 0px 4px 10px -5px rgba(0, 0, 0, 0.6) inset;
  -moz-box-shadow: 0px 4px 10px -5px rgba(0, 0, 0, 0.6) inset;
  box-shadow: 0px 4px 10px -5px rgba(0, 0, 0, 0.6) inset;
}

.site-login button[type="submit"] {
  background: #2D9AFF;
  border: none;
  border-radius: 5px;
  font-size: 24px;
}

.site-login label[for="loginform-rememberme"] {
  color: black;
  font-size: 12px;
  line-height: 21px;
}

.floating {
  -webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2);
}
.x_panel.collapse-left ul.nav {
  float: left !important;
  margin-left: 15px;
}
/*
 * Стилизованный скроллбар
 * Сгенерировать стили можно здесь - https://w3generator.com/scrollbar
 *
 * @author sagittaracc <sagittaracc@gmail.com>
 */

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-thumb {
  background: #A8A6A8;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: #878587;
}

::-webkit-scrollbar-track {
  background: #FFFFFF;
  border-radius: 0px;
  box-shadow: inset 0px 0px 0px 0px #F0F0F0;
}
* {
  font-family: 'Montserrat', sans-serif;
}

html,
body {
  height: 100%;
}

body.blank {
  display: flex;
  padding: 40px 0;
}

.wrap {
  min-height: 100%;
  height: auto;
  margin: 0 auto -60px;
  padding: 0 0 60px;
}

body.blank .wrap {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: -40px auto;
  padding: 15px;
}

body.blank .wrap>div {
  width: 100%;
}

.wrap>.container {
  padding: 70px 15px 20px;
}

.footer {
  height: 60px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.jumbotron {
  text-align: center;
  background-color: transparent;
}

.jumbotron .btn {
  font-size: 21px;
  padding: 14px 24px;
}

.not-set {
  color: #c55;
  font-style: italic;
}

/* add sorting icons to gridview sort links */

a.asc:after,
a.desc:after {
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  padding-left: 5px;
}

a.asc:after {
  content: 
    "\e151";
}

a.desc:after {
  content: 
    "\e152";
}

.sort-numerical a.asc:after {
  content: "\e153";
}

.sort-numerical a.desc:after {
  content: "\e154";
}

.sort-ordinal a.asc:after {
  content: "\e155";
}

.sort-ordinal a.desc:after {
  content: "\e156";
}

.grid-view th,
.grid-view td:last-child {
  white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
  min-width: 50px;
}

.hint-block {
  display: block;
  margin-top: 5px;
  color: #999;
}

.error-summary {
  color: #a94442;
  background: #fdf7f7;
  border-left: 3px solid #eed3d7;
  padding: 10px 20px;
  margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */

.nav li>form>button.logout {
  padding: 15px;
  border: none;
}

@media (max-width:767px) {
  .nav li>form>button.logout {
    display: block;
    text-align: left;
    width: 100%;
    padding: 10px 15px;
  }
}

.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
  text-decoration: none;
}

.nav>li>form>button.logout:focus {
  outline: none;
}

/* Корректировка стилей конкретно под личный кабинет */

.site_title {
  padding-left: 0 !important;
  text-align: center;
  font-size: 19px !important;
}

.img-circle.profile_img {
  padding: 0 !important;
  margin-top: 24px !important;
}

.x_title h2 {
  width: auto;
  white-space: normal;
}

/* TODO: Какой - то странный баг на экраннах меньше 768px блоки все равно с выравниванием float: left */

@media (max-width: 768px) {
  .col-sm-3,
  .col-sm-9 {
    float: none !important;
  }
}

/* Yii-gentellela override */

.nav-sm .container.body .col-md-3.left_col {
  width: 90px !important;
}

.nav-sm .navbar.nav_title {
  width: 90px !important;
}

.nav-sm .container.body .right_col {
  margin-left: 90px !important;
}

.nav-sm .main_container .top_nav {
  margin-left: 90px !important;
}

/* Custom bootstrap blocks */

.col-lg-5,
.col-lg-7 {
  padding-left: 40px !important;
  padding-right: 40px !important;
}

@media (max-width: 1199px) {
  .col-lg-5 {
    float: none !important;
  }

  .col-lg-7 {
    float: none !important;
  }
}

.nav-sm .nav.side-menu li a {
  padding: 8px 5px !important;
}

.loader {
  background-image: url("../../img/loader.gif");
  display: inline-block;
  vertical-align: middle;
}

.loader.small {
  background-size: 20px;
  width: 20px;
  height: 20px;
}

.sidebar-footer a {
  width: 33.33% !important;
}

.site-index {
  -webkit-transition: all .3s linear 0s;
  transition: all .3s linear 0s;
}

.site-index.blured {
  opacity: 0.3;
}

#chatbox .chat {
  display: none;
  width: 550px;
  height: 450px;
  position: absolute;
  z-index: 2;
  right: 0;
  margin-top: 1px;
  overflow-y: hidden;
  border: 1px solid #d9dee4;
  background: #ededed;
  -webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
  -moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
  box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
}

#chatbox #sagittaracc-chat-block {
  border: none !important;
  border-bottom: 1px solid #d9dee4 !important;
}

#chatbox.open .chat {
  display: block;
}

#chatbox .chat .simple-chat {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 46px;
}

#chatbox .chat .send-message {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
}

.grid-view tr.selectable {
  cursor: pointer;
}

.grid-view tr.selectable:hover {
  background: #f5f5f5;
}

.back-nav {
  border: 1px solid #dddddd;
  height: 34px;
  line-height: 30px;
  padding-left: 7px;
  cursor: pointer;
}

.back-nav > i:before {
  content: "\f053";
}

.label-info1 {
  background: #5bc0de;
}

.form-control {
  border-radius: 2px !important;
}

.inline-filter {
  margin-top: 5px;
  float: left;
}

.inline-filter .form-group {
  display: inline-table;
  margin-right: 10px;
}

.inline-filter .form-group .btn {
  margin-bottom: -60px;
}

.overflow-auto {
  overflow-x: auto;
  overflow-y: auto;
}

.h1-caption {
  font-size: 24px;
  padding-top: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eeeeee;
}
/*
 * Компонент Switcher
 * Аналог простого переключателя на мобильных устройства
 *
 * @author sagittaracc <sagittaracc@gmail.com>
 */

.switcher {
  display: inline-block;
  width: 56px;
  height: 30px;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
}

.switcher.enable {
  /*  */
}

.switcher.disable {
  opacity: 0.5;
  cursor: default;
}

.switcher.on {
  background-image: url("../../img/on.png");
}

.switcher.off {
  background-image: url("../../img/off.png");
}

.switcher.indetermite {
  background-image: url("../../img/indetermite.png");
}
/*
 * Стили виджетов на главной странице
 *
 * @author sagittaracc <sagittaracc@gmail.com>
 */

.widget {
  width: 285px;
  border-radius: 7px;
  color: #e9edef;
  cursor: pointer;
  min-height: 135px;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}

.widget.resurs {
  padding: 5px 15px 5px 55px;
  min-height: 140px;
}

.widget:hover {
  opacity: 0.8;
}

.widget.resurs>i {
  float: left;
  width: 65px;
  text-align: center;
  font-size: 65px;
  margin-left: -34px;
  margin-top: 25px;
  margin-right: 16px;
}

.widget.resurs>div {
  font-size: 16px;
}

.widget.resurs>h3 {
  font-size: 13px;
}

.widget.resurs>h3>span {
  margin-right: 10px;
}

.widget.resurs>h4 {
  font-size: 14px;
  margin-bottom: 0;
  margin-left: -40px;
}

.widget.resurs>h4>i {
  margin-right: 5px;
}

.widget.resurs>p {
  margin-bottom: 0;
}

.widget.resurs a {
  color: white;
  text-decoration: underline;
}

.widget.resurs a:hover {
  color: white;
}

.widget .comment {
  margin-left: -42px;
  margin-top: 9px;
}
/*
 * Здесь происходит управление параметром z-index элементов приложения
 *
 * @author sagittaracc <sagittaracc@gmail.com>
 */

.modal {
  z-index: 10000 !important;
}
#sagittaracc-chat-block {
  position: relative;
  width: 100%;
  height: 100%;
  background: white;
  border: 1px solid #d9dee4;
}

#sagittaracc-chat-block .message-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
}

#sagittaracc-chat-block .message-list .header-1 {
  font-size: 23px;
  text-align: center;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

#sagittaracc-chat-block .message-list .message-block {
  background: #f7f7f7;
  padding: 7px;
  margin: 7px;
}

#sagittaracc-chat-block .message-list .message-block .username {
  font-weight: bold;
  font-size: 15px;
}

#sagittaracc-chat-block .message-list .message-block .username .time {
  font-weight: normal;
  font-size: 12px;
  color: #aaa;
}

#sagittaracc-chat-block .message-list .message-block .message {
  font-size: 15px;
}
.c3 svg {
  font: 10px sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.c3 line,
.c3 path {
  fill: none;
  stroke: #000;
}

.c3 text {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.c3-bars path,
.c3-event-rect,
.c3-legend-item-tile,
.c3-xgrid-focus,
.c3-ygrid {
  shape-rendering: crispEdges;
}

.c3-chart-arc path {
  stroke: #fff;
}

.c3-chart-arc rect {
  stroke: #fff;
  stroke-width: 1;
}

.c3-chart-arc text {
  fill: #fff;
  font-size: 13px;
}

.c3-grid line {
  stroke: #aaa;
}

.c3-grid text {
  fill: #aaa;
}

.c3-xgrid,
.c3-ygrid {
  stroke-dasharray: 3 3;
}

.c3-text.c3-empty {
  fill: grey;
  font-size: 2em;
}

.c3-line {
  stroke-width: 1px;
}

.c3-circle {
  fill: currentColor;
}

.c3-circle._expanded_ {
  stroke-width: 1px;
  stroke: #fff;
}

.c3-selected-circle {
  fill: #fff;
  stroke-width: 2px;
}

.c3-bar {
  stroke-width: 0;
}

.c3-bar._expanded_ {
  fill-opacity: 1;
  fill-opacity: .75;
}

.c3-target.c3-focused {
  opacity: 1;
}

.c3-target.c3-focused path.c3-line,
.c3-target.c3-focused path.c3-step {
  stroke-width: 2px;
}

.c3-target.c3-defocused {
  opacity: .3!important;
}

.c3-region {
  fill: #4682b4;
  fill-opacity: .1;
}

.c3-region text {
  fill-opacity: 1;
}

.c3-brush .extent {
  fill-opacity: .1;
}

.c3-legend-item {
  font-size: 12px;
}

.c3-legend-item-hidden {
  opacity: .15;
}

.c3-legend-background {
  opacity: .75;
  fill: #fff;
  stroke: #d3d3d3;
  stroke-width: 1;
}

.c3-title {
  font: 14px sans-serif;
}

.c3-tooltip-container {
  z-index: 10;
}

.c3-tooltip {
  border-collapse: collapse;
  border-spacing: 0;
  background-color: #fff;
  empty-cells: show;
  -webkit-box-shadow: 7px 7px 12px -9px #777;
  -moz-box-shadow: 7px 7px 12px -9px #777;
  box-shadow: 7px 7px 12px -9px #777;
  opacity: .9;
}

.c3-tooltip tr {
  border: 1px solid #ccc;
}

.c3-tooltip th {
  background-color: #aaa;
  font-size: 14px;
  padding: 2px 5px;
  text-align: left;
  color: #fff;
}

.c3-tooltip td {
  font-size: 13px;
  padding: 3px 6px;
  background-color: #fff;
  border-left: 1px dotted #999;
}

.c3-tooltip td>span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
}

.c3-tooltip .value {
  text-align: right;
}

.c3-area {
  stroke-width: 0;
  opacity: .2;
}

.c3-chart-arcs-title {
  dominant-baseline: middle;
  font-size: 1.3em;
}

.c3-chart-arcs .c3-chart-arcs-background {
  fill: #e0e0e0;
  stroke: #fff;
}

.c3-chart-arcs .c3-chart-arcs-gauge-unit {
  fill: #000;
  font-size: 16px;
}

.c3-chart-arcs .c3-chart-arcs-gauge-max {
  fill: #777;
}

.c3-chart-arcs .c3-chart-arcs-gauge-min {
  fill: #777;
}

.c3-chart-arc .c3-gauge-value {
  fill: #000;
}

.c3-chart-arc.c3-target g path {
  opacity: 1;
}

.c3-chart-arc.c3-target.c3-focused g path {
  opacity: 1;
}

.c3-drag-zoom.enabled {
  pointer-events: all!important;
  visibility: visible;
}

.c3-drag-zoom.disabled {
  pointer-events: none!important;
  visibility: hidden;
}

.c3-drag-zoom .extent {
  fill-opacity: .1;
}