﻿/*
 * DN-INDEX (c) 2022 @alva-it
 */

@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter/static/Inter-Regular.ttf") format("truetype"), url("/fonts/Inter/static/Inter-SemiBold.ttf") format('truetype');
}


/* COLORS */

:root {
    --color-primary: #4E67AF;
    --color-active: #8BBB2B;
    --color-active-shadow: rgba(139, 187, 43, 0.5);
    --color-icon: #9EAAB4;
    --color-disabled: #C6CCD1;
    --bg-gray: #e3e4ea;
    --bg-primary: #4E67AF;
    --bg-colored-box: #FFCF48;
    --sidebar-bg: #444f6f;
    --sidebar-bg-active: #2c354f;
    --control-label-old: #989898;
    --control-label: #828589;
    --control-has-val-old: rgba(152, 220, 143, 0.25);
    --control-has-val: #E5F6E3;
    --control-has-val-hover: #D5F6D3;
    --text-gray: #dae0e5;
    --text-darkgray: #828589;
    --text-primary: #4E67AF;
    --text-secondary: #444f6f;
    --text-warning: #dc3545;
    --text-black-old: #31343d;
    --text-black: black;
    --text-red: #dd3126;
    --text-blue: rgba(156, 175, 239);
    --text-gray-old: rgba(0, 0, 0, 0.075);
    --scrollbar: rgba(78, 103, 175, 0.5);
    --btn-bg-primary: #FFCF48;
    --btn-bg-secondary: #FFFFFF;
    --btn-bg-primary-hover: #F8BD17;
    --btn-bg-secondary-hover: #FFFFFF;
    --btn-text-primary: #595959;
    --btn-text-secondary: #B7B7B7;
}


/* COMMON */

.debug-border, .debug-border * {
    border: dashed 1px red !important;
}
.noborder, no-border {
    border: none !important;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  _color: #0366d6;
  color: #4e67af;
}
a[disabled="disabled"] {
    pointer-events: none;
}


.btn {
    line-height: 1.2;
    text-transform: uppercase;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    height: 50px;
    border-radius: 25px;
    box-shadow: 0 10px 30px 0px rgba(78, 103, 175, 0.5);
    -moz-box-shadow: 0 10px 30px 0px rgba(78, 103, 175, 0.5);
    -webkit-box-shadow: 0 10px 30px 0px rgba(78, 103, 175, 0.5);
    -o-box-shadow: 0 10px 30px 0px rgba(78, 103, 175, 0.5);
    -ms-box-shadow: 0 10px 30px 0px rgba(78, 103, 175, 0.5);
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
    transition: all 0.4s;
}

.btn:hover {
    box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5);
    -moz-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5);
    -webkit-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5);
    -o-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5);
    -ms-box-shadow: 0 10px 30px 0px rgba(51, 51, 51, 0.5);
}

.btn-small {
    height: 32px;
}

.cut-text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.nowrap {
    white-space: nowrap;
}
.text-primary {
    color: var(--text-primary) !important;
}
.text-black {
    color: var(--text-black) !important;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}
.required::after {
    content: "*";
    font-weight: bold;
    color: red;
}

.pointer {
    cursor: pointer;
}
.nopointer {
    cursor: default !important;
}

.underline {
    text-decoration: underline !important;
}

.bold {
    font-weight: 700;
}

.form-button-block {
    position: absolute;
    right: 51px;
    padding-top: 40px;
    border: 0;
    background-color: transparent;
}
.form-button-block * {
    border: 0;
    background-color: transparent;
}
.form-button {
    border: 0;
    background-color: transparent;
}
.form-button-block button:hover, .form-button-block button:focus, .form-button:hover, .form-button:focus  {
    outline: none;
}

.form-button-block button:disabled img {
    opacity: 0.5;
}
.form-button-right {
    display: flex;
    justify-content: flex-end;
}
img.disabled {
    opacity: 0.5;
}

.control-label {
    color: var(--control-label);
    _text-overflow: ellipsis;
    _overflow: hidden;
    _white-space: nowrap;
    width: 100%;
}

.control-label-value {
    color: var(--text-black);
    _font-weight: 600;
    font-size: 1rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.control-radio img {
    padding-left: 5px;
    padding-right: 5px;
    margin-top: -5px;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html, body {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  _margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.wrapper {
    display: flex;
    align-items: stretch;
    perspective: 1500px;
    width: calc(100% - 70px);
    margin-left: 70px; /* for sidebar */
}

.content-container {
    min-height: 100vh;
    width: 100%;
}

.content {
    padding: 10px 20px 20px 20px;
}

#topmenu {
    _margin: -20px 0 0 -40px;
}
@media (max-width: 768px) {
    #topmenu .login-partial-name {
        display: none;
    }
}


.preloader {
    background-color: #fff;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
}

.preloader__loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}
.loader {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 40%;
    text-align: center;
    z-index: 1000;
}

.dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.big-circle {
    height: 140px;
    width: 140px;
    border-radius: 50%;
    border: solid 1px gray;
}

.sample-item {
    border: 1px solid var(--bg-gray);
    border-radius: 30px;
    padding: 2px;
    box-shadow: 0px 1px 6px 0px rgb(163 167 175 / 65%);
}


/* SIDEBAR */
.sidebar {
    min-height: 100vh;
    min-width: 70px;
    max-width: 70px;
    background: var(--sidebar-bg);
    color: #fff;
    padding-left: 6px;
    padding-right: 6px;
    position: fixed;
    top: 0;
}

.sidebar-bg {
    background: var(--sidebar-bg);
}

.sidebar-logo {
    padding: 22px 2px 72px 2px;
}
.sidebar-logo img {
    max-height: 36px;
    max-width: 30px;
    text-align:center;
}

.sidebar a, a:hover, a:focus {
    _color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-item {
    position: relative;
    width: 58px;
    height: 58px;
    padding: 4px 12px 8px 12px;
    margin-bottom: 6px;
    text-align: center;
}
.sidebar-item img {
    max-height: 32px;
    max-width: 30px;
}
.sidebar-item button {
    max-height: 32px;
    max-width: 30px;
    padding: 0;
}

.sidebar-item.active {

    _background: var(--sidebar-bg-active);
    _border-radius: 15px;
}


.sidebar-item.active img {
    filter: brightness(300%)
}
.sidebar-item:hover img.blacklight {
    filter: brightness(300%)
}

.sidebar-dropdown-menu {
    background: var(--sidebar-bg-active);
    border: none;
    padding: 20px 0 20px 0;
    left: 18px !important;
    top: -18px !important;
    border-radius: 0 0.25rem 0.25rem 0;
}

.sidebar-dropdown-menu-item {
    padding: 10px 0 10px 45px;
    color: #FFF;
}

.sidebar-dropdown-menu-item:hover, .sidebar-dropdown-menu-item:focus {
    background-color: transparent;
    color: var(--text-blue);
}

.sidebar-tooltip .tooltip-inner {
    background-color: var(--theme-primary);
    font-size: 17px;
    border-radius: 0 0.25rem 0.25rem 0;
    min-height: 60px;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}

.sidebar-item-text {
    font-size: 10px;
    margin-left: -12px;
    margin-right: -12px;
}
.sidebar-item .label {
    position: absolute;
    min-width: 14px;
    top: 5px;
    right: 10px;
    text-align: center;
    font-size: 9px;
    padding: 2px 3px;
    line-height: .9;
    border-radius: 7px;
}
.sidebar-item .label-danger {
    background-color: #dd4b39 !important;
}

/* BREADCRUMB */
.breadcrumb {
    padding: 0;
    margin-bottom: 5px;
}
.breadcrumb, .breadcrumb, .breadcrumb ol {
    color: var(--color-primary);
    background-color: transparent;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: left;
}

.breadcrumb-arrow {
    padding-left: 5px;
    padding-right: 5px;
}

/* Переопределение размеров */
.width-50  { width: 50px  !important; }
.width-75  { width: 75px  !important; }
.width-100 { width: 100px !important; }
.width-125 { width: 125px !important; }
.width-150 { width: 150px !important; }
.width-170 { width: 170px !important; }
.width-175 { width: 175px !important; }
.width-200 { width: 200px !important; }
.width-225 { width: 225px !important; }
.width-250 { width: 250px !important; }
.width-275 { width: 275px !important; }
.width-300 { width: 300px !important; }
.width-325 { width: 325px !important; }
.width-350 { width: 350px !important; }
.width-375 { width: 375px !important; }
.width-400 { width: 400px !important; }

.height-50  { height: 50px  !important; }
.height-75  { height: 75px  !important; }
.height-100 { height: 100px !important; }
.height-125 { height: 125px !important; }


.min-height-25  { min-height: 25px  !important; }
.min-height-50  { min-height: 50px  !important; }
.min-height-75  { min-height: 75px  !important; }
.min-height-100 { min-height: 100px !important; }
.min-height-125 { min-height: 125px !important; }
.min-height-150 { min-height: 150px !important; }
.min-height-175 { min-height: 175px !important; }
.min-height-200 { min-height: 200px !important; }
.min-height-225 { min-height: 225px !important; }
.min-height-250 { min-height: 250px !important; }
.min-height-275 { min-height: 275px !important; }
.min-height-300 { min-height: 300px !important; }
.min-height-325 { min-height: 325px !important; }
.min-height-350 { min-height: 350px !important; }
.min-height-375 { min-height: 375px !important; }

.font-weight-100 { font-weight: 100; }
.font-weight-200 { font-weight: 200; }
.font-weight-300 { font-weight: 300; }
.font-weight-400 { font-weight: 400; }
.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }

.card-header-actions {
    float: right;
}


/* select2 */
.select2-selection {
    font-size: 1rem;
    padding: 0.375rem 0;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #e9ecef;
    cursor: default;
}
/* /select2 */


.input-currency {
    text-align: right;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*Стили для публикаций*/
.articles a {
    color: #000000;
}
.articles a:hover {
    color: #000000;
}

.card-grid-filter-item {
    box-shadow: 0px 4px 19px rgba(0, 0, 0, 0.17);
    border-radius: 15px;
    height: 44px;
    line-height: 44px;
    cursor: pointer;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.card-grid-filter-item:hover {
    background: rgba(242,206,86,0.5);
}

.card-grid-filter-item.active:hover {
    _color: #3E7D66;
}

.card-grid-filter-item.active {
    background: rgba(242,206,86,1);
    font-weight: 600 !important;
}

.grey-box {
    _border: 1px solid #E0E0E0;
    border: 1px solid #AAA;
    border-radius: 20px;
}

.article-card {
    background-color: #fff;
    margin-bottom: 30px;
    outline: none;
    border-radius: 10px;
    overflow: hidden;
    height: calc(100% - 30px);
    width: 100%;
    max-width: 550px;
    box-shadow: 0px 10px 21px rgba(0, 0, 0, 0.09);
    transition-property: box-shadow;
    transition-duration: .3s;
}

.article-card__inner {
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 0 20px 30px;
    height: 100%;
    position: relative;
    z-index: 1;
}

.article-card__img {
    margin-bottom: 20px;
    margin-left: -20px;
    margin-right: -20px;
    display: block;
    font-size: 0;
    outline: none;
    cursor: pointer;
}

.article-card-small__img {
    height: auto;
    width: 100%;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0px 10px 21px rgba(0, 0, 0, 0.20);
    --tw-scale-x: 1.0;
    --tw-scale-y: 1.0;
    transform: scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    transition-property: transform;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .3s;
}

.article-card__title, .article-card-small__title {
    display: block;
    outline: none;
    text-decoration: none;
    cursor: pointer;
}

.article-card-image__wrapper {
    padding-top: 62%;
    position: relative;
    overflow: hidden;
}

.article-card-image {
    position: absolute;
    top: 0;
    height: auto;
    max-width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    display: block;
    z-index: 2;
    --tw-scale-x: 1.0;
    --tw-scale-y: 1.0;
    transform: scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    transition-property: transform;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .3s;
}

.article-card:hover .article-card-image {
    --tw-scale-x: 1.1;
    --tw-scale-y: 1.1;
    transition-duration: .3s;
}

.article-card:hover {
    box-shadow: 0px 10px 21px rgba(0, 0, 0, 0.20);
    transition-property: box-shadow;
    transition-duration: .3s;
}

.article-card-small__img:hover {
    --tw-scale-x: 1.1;
    --tw-scale-y: 1.1;
    transition-duration: .3s;
}
.card-grid-filter-item:hover {
    background: rgba(242,206,86,0.5);
}
.card-grid-filter-item.active:hover {
    _color: #3E7D66;
}

.card-grid-filter-item.active {
    background: rgba(242,206,86,1);
    font-weight: 600 !important;
}

/* BILLING PANEL */
.billing-panel {
    padding: 2px 0px 2px 83px;
    background: linear-gradient(120.72deg, #FFD76D 0%, #FEB137 84.37%);
    border-radius: 0 0 0.5rem 0;
}

.billing-plan-link {
    color: var(--btn-bg-secondary);
    font-weight: 600;
}

.billing-plan-link:hover {
    color: var(--btn-text-primary);
}


.tariff-card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.tariff-card-container > div {
    padding: 5px 10px 45px 10px;
    position: relative;
}

.tariff-card {
    padding: 42px 30px 30px 30px;
    box-sizing: border-box;
    width: 268px;
    min-width: 268px;
    height: 635px;
    min-height: 635px;
    background: #FFFFFF;
    box-shadow: 1px 12px 14px rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    overflow-y: hidden;
    border: 1px solid #EBEBEB;
}
.tariff-card.Beneficial {
    background: linear-gradient(180deg, #FFCF48 0%, #FAB904 100%);
}
.tariff-card.vip {
    background: linear-gradient(180deg, #033D2A 0%, #095F45 100%);
}
.tariff-card-container > div:hover {
    _box-shadow: 2px 1px 6px 0px #00000096;
    margin-top: -2px;
    margin-bottom: 2px;
}
.tariff-type {
    position: absolute;
    top: -10px;
    left: 40px;
    padding: 5px 25px;
    background: #FFFFFF;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
}
.tariff-title {
    border-radius: 30px;
    font-weight: 300;
    font-size: 16px;
    text-transform: uppercase;
}
.tariff-price {
    padding-top: 7px;
    font-weight: 600;
    font-size: 45px;
}
.tariff-price-per {
    padding: 10px;
    font-weight: 300;
    font-size: 16px;
    display: flex;
    align-items: flex-end;
    color: #2D2D2D;
    text-transform: uppercase;
}
.tariff-yearly {
    font-size: 12px;
}
.tariff-header {
    min-height: 130px;
}
.tariff-button-container {
    position: absolute;
    bottom: 60px;
    width: 210px;
}
.tariff-button {
}
.tariff-button {
    box-sizing: border-box;
    background: #F1F1F1;
    _border: 1px solid #EBEBEB;
    border-radius: 30px;
    padding: 3px 12px;
    cursor: pointer;
}
.tariff-button,  .tariff-button a {
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    color: #000000;
}
.tariff-button:hover {
    box-shadow: 4px 3px 12px 0px #00000096;
}

.tariff-desc {
    font-weight: 300;
    font-size: 13px;
    color: #272727;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    padding-bottom: 40px;
}

.tariff-card.vip .tariff-title, .tariff-card.vip .tariff-price, .tariff-card.vip .tariff-desc {
    color: #FFF;
}
.tariff-card.vip .tariff-button {
    background: #FFCF48;
}
.tariff-card.vip .tariff-button a:hover {
    color: #FFFFFF;
}
.tariff-card.vip .tariff-type {
    background: #FFCF48;
}
.tariff-card ul {
    list-style-image: url('/images/ul-round-duotone.svg');
    margin: 0;
    padding-left: 20px;
}

.simple-table {
    margin-top: 20px;
    border: 1px solid #E9E9E9;
    border-radius: 10px;
    padding: 10px;
}
.simple-table > div {
    display: flex;
    padding: 15px;
}
.simple-table > div:not(:last-child) {
    border-bottom: 1px solid #eee;
}
.simple-table > div > div:first-child {
    margin-right: auto;
    font-weight: 600;
}
.simple-table > div > div:not(:first-child) {
    padding-left: 7px;
}

.compact-table {
    margin-top: 10px;
    border: 1px solid #E9E9E9;
    border-radius: 10px;
    padding: 2px 10px;
}
.compact-table > div {
    display: flex;
    padding: 5px;
}
.compact-table > div:not(:last-child) {
    border-bottom: 1px solid #eee;
}
.compact-table > div > div:first-child {
    margin-right: auto;
    font-weight: 600;
}
.compact-table > div > div:not(:first-child) {
    padding-left: 7px;
}

ul.round-duotone {
    list-style-image: url('/images/ul-round-duotone.svg');
    margin: 0;
    padding-left: 20px;
}