:root {
  --header-color: #303030;
  --button-color: #1e87f0;
  --button-hover-color: #1668c0;
  /* 166ab8 */
  --link-color: #1e87f0;
  --link-hover-color: #ff6b6b;
}

.navbar-brand {
  padding-top: 0 !important;
}

.navbar-bg {
  /* background-color: #1b1c1b; */
  background-color: var(--header-color) !important;
}

.offcanvas {
  background-color: var(--header-color) !important;
}

.navbar-bg input {
  background-color: var(--header-color) !important;
}

.navbar-bg .btn-outline-secondary {
  --bs-btn-color: #a4b0bb;
}

a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover-color);
}

.navbar-bg a {
  color: rgba(255, 255, 255, 0.8);
}

.navbar-bg a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.navbar-bg a.active {
  color: rgba(255, 255, 255);
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
  outline: none;
  box-shadow: none;
}

.offcanvas .btn-close:focus,
.offcanvas .btn-close:active {
  outline: none;
  box-shadow: none;
}


.show_all_mccs,
.toggle_all_bank_mccs_categories_mccs {
  text-decoration: none;
  border-bottom: 1px dotted;
  cursor: pointer;
}

.show_all_mccs[aria-expanded="true"] {
  display: none;
}

.add_point_wrap {
  background: #f8f9fa;
}

.add_point_wrap p.fs-2 {
  margin-top: -7px !important;
  line-height: 128%;
}


.footer {
  background-color: #f8f9fa;
}

.footer a {
  color: #495057;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus {
  color: #0d6efd;
  text-decoration: underline;
}




@media (max-width: 1200px) {
  .points-list-table-responsive thead {
    display: none;
  }

  .points-list-table-responsive tr {
    display: block;
    margin-bottom: 1.25rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
  }

  .points-list-table-responsive td {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    border: 0;
    border-bottom: 1px solid #dee2e6;
    padding: 0.6rem 0.75rem;
  }

  .points-list-table-responsive td:last-child {
    border-bottom: 0;
  }

  .points-list-table-responsive td::before {
    content: attr(data-label);
    text-align: left;
    font-weight: bold;
    margin-right: 20px;
    min-width: 108px;
  }

  .points-list-table-responsive.table-hover>tbody>tr:hover>* {
    --bs-table-hover-bg: transparent !important;
    background-color: transparent !important;
  }

  /* Иначе в таблице сливается с текстом выше */
  .tooltip.show {
    opacity: 0.98 !important;
  }
}


.items-list a {
  text-decoration: none;
}


.item-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}


.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.comment-item {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0 !important;
}

.section-title {
  font-weight: 700;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 8px;
}


.comment_user_name {
  line-height: 1;
  display: block;
  font-weight: bold;
  margin-top: 2px;
}

.comment_photo {
  background-color: var(--button-color);
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding-top: 7px;
  text-align: center;
  font-weight: bold;
  color: #fff;
}

.comment_reply_btn {
  cursor: pointer;
  text-decoration: none;
}

.comment_reply_btn:hover {
  color: var(--link-color) !important;
}

/*.sub_comments .comment:last-child .flex-row.mb-3 {
  margin-bottom: 0!important;
}*/


.green-tooltip {
  --bs-tooltip-bg: #198754;
  --bs-tooltip-color: var(--bs-white);
}

.red-tooltip {
  --bs-tooltip-bg: #dc3545;
  --bs-tooltip-color: var(--bs-white);
}

.point_up_btn,
.point_down_btn {
  cursor: pointer;
}

.point_votes .point_votes_btns {
  white-space: nowrap;
}


.show_add_point_additional_info_btn {
  text-decoration: none;
  border-bottom: 1px dotted;
  cursor: pointer;
}

.hide_add_point_additional_info_btn_text {
  display: none;
}

.show_add_point_additional_info_btn[aria-expanded="true"] .show_add_point_additional_info_btn_text {
  display: none;
}

.show_add_point_additional_info_btn[aria-expanded="true"] .hide_add_point_additional_info_btn_text {
  display: inline;
}


.btn-blue {
  color: #fff;
  background-color: var(--button-color);
  border-color: var(--button-color);
}

.btn-blue:focus,
.btn-blue.focus {
  color: #fff;
  background-color: var(--button-color);
  border-color: var(--button-color);
}

.btn-blue:hover {
  color: #fff;
  background-color: var(--button-hover-color);
  border-color: var(--button-hover-color);
}

.btn-blue:active,
.btn-blue.active,
.open>.dropdown-toggle.btn-blue {
  color: #fff;
  background-color: var(--button-hover-color);
  border-color: var(--button-hover-color);
  background-image: none;
}

.btn-blue:active:hover,
.btn-blue.active:hover,
.open>.dropdown-toggle.btn-blue:hover,
.btn-blue:active:focus,
.btn-blue.active:focus,
.open>.dropdown-toggle.btn-blue:focus,
.btn-blue:active.focus,
.btn-blue.active.focus,
.open>.dropdown-toggle.btn-blue.focus {
  color: #fff;
  background-color: #1976d2;
  border-color: #1976d2;
}

.btn-blue[disabled],
.btn-blue.disabled:hover,
.btn-blue[disabled]:hover,
fieldset[disabled] .btn-blue:hover,
.btn-blue.disabled:focus,
.btn-blue[disabled]:focus,
fieldset[disabled] .btn-blue:focus,
.btn-blue.disabled.focus,
.btn-blue[disabled].focus,
fieldset[disabled] .btn-blue.focus {
  color: #fff;
  background-color: #1976d2;
  border-color: #1976d2;
}
