:root {
  --header-color: #212528;
  --button-color: #008dfb;
  --button-hover-color: #1976d2;
  /*--link-color: #;
  --link-hover-color: #;*/
}

html {
  scroll-behavior: smooth;
}

.navbar-bg {
  background-color: var(--header-color) !important;
}

.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 {
  background-color: var(--header-color) !important;
}

.offcanvas .btn-close:focus,
.offcanvas .btn-close:active {
  outline: none;
  box-shadow: none;
}

/* center svg */
/*.navbar-bg .btn {
  font-family: sans-serif;
}*/

.navbar-bg input {
  background-color: var(--header-color) !important;
}

.navbar-bg .btn-outline-secondary {
  color: #a4b0bb;
}

.footer {
  background-color: #f8f9fa;
}

.footer a {
  color: #495057;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus {
  color: #0d6efd;
  text-decoration: underline;
}

/*.services_categories a {
  text-decoration: none;
}*/

.fs-xs {
  font-size: 0.75rem !important;
}

.service_icon {
  height: 48px;
}

.service_icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service_icon_letter {
  width: 48px;
  height: 48px;
  min-width: 48px;
}

.item-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/*.service_current_status_summary {
  min-height: 190px;
}*/
.service_current_status_btn_wrap,
.service_problem_report_btn_wrap {
  max-width: 280px;
}

#add_comment_btn,
.add_comment_reply_btn {
  max-width: 180px;
}

.service_current_status_notice {
  font-size: 0.75rem;
  line-height: 1.3;
}

.service_current_status_notice .text-muted:hover {
  color: #495057 !important;
}

#problem_report,
.comments_header {
  scroll-margin-top: 10px;
}

.show_all_problems {
  text-decoration: none;
  border-bottom: 1px dotted;
  cursor: pointer;
}

.show_all_problems[aria-expanded="true"],
.show_table_all_problems[aria-expanded="true"],
.show_all_related_services[aria-expanded="true"] {
  display: none;
}

.btn-link-dashed {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  margin-bottom: 12px !important;
  font: inherit;
  color: #0d6efd;
  cursor: pointer;
  border-bottom: 1px dotted #0d6efd;
  text-decoration: none;
  transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.btn-link-dashed.text-muted {
  color: var(--bs-secondary-color) !important;
  border-bottom-color: var(--bs-secondary-color) !important;
}

.btn-link-dashed:hover {
  color: #0a58ca !important;
  ;
  border-bottom-color: #0a58ca !important;
  ;
}


.service_description p:last-child {
  margin-bottom: 0.25rem !important;
}

.service_current_status_summary {
  font-size: 0.95rem;
  color: #333;
}

.table_service_problems .badge {
  width: 10px;
  height: 10px;
  padding: 0;
}

.table_service_problems_tr1 {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.table_service_problems_tr2 {
  font-size: 0.75rem;
}

.quote-card {
  background: #fff;
  color: #222222;
  padding: 20px;
  padding-left: 50px;
  box-sizing: border-box;
  border: 1px solid #dee2e6;
  box-shadow: 0 0 5px rgba(34, 34, 34, 0.12);
  position: relative;
  overflow: hidden;
  min-height: 120px;

  margin: 0 0 1rem;
}

.quote-card p,
.quote-card ul {
  margin: 0;
  max-width: 80%;
}

.quote-card cite {
  font-size: 16px;
  margin-top: 10px;
  display: block;
  font-weight: 200;
  opacity: 0.8;
}

.quote-card:before {
  font-family: Georgia, serif;
  content: "“";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 5em;
  color: rgba(238, 238, 238, 0.8);
  font-weight: normal;
}

.quote-card:after {
  font-family: Georgia, serif;
  content: "”";
  position: absolute;
  bottom: -110px;
  line-height: 100px;
  right: -32px;
  font-size: 25em;
  color: rgba(238, 238, 238, 0.8);
  font-weight: normal;
}

@media (max-width: 640px) {
  .quote-card:after {
    font-size: 22em;
    right: -25px;
  }
}


.comment_user_name {
  /*line-height: 1;
  display: block;
  margin-top: 2px;*/
  font-weight: bold;
}

.comment_user_name a {
  font-weight: bold;
}

.comment_photo {
  background-color: var(--button-color);
  color: #fff;
  font-size: .875em;
  /*min-width: 40px;
  width: 40px;
  height: 40px;*/
  min-width: 32px;
  min-height: 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;

  align-items: center !important;
  justify-content: center !important;
  display: flex !important;

  /*padding-top: 7px;
  text-align: center;*/
  font-weight: 500;
}

.comment_reply_btn {
  cursor: pointer;
  text-decoration: none;
}

.comment_reply_btn:hover {
  color: var(--link-color) !important;
}

.sub_comments .comment:last-child {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.btn-blue {
  color: #fff;
  background-color: var(--button-color);
  border-color: var(--button-color);
}

.btn-blue:focus,
.btn-blue.focus {
  color: #fff;
  background-color: #286090;
  border-color: #122b40;
}

.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: var(--button-hover-color);
  border-color: var(--button-hover-color);
}

.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: var(--button-hover-color);
  border-color: var(--button-hover-color);
}

.items-list a .img-thumbnail .caption {
  padding: 6px 15px;
  color: #333;
  background: #eee;
  font-size: 14px;
  height: 54px;
  overflow: hidden;
  margin-top: 4px;
}

.items-list a {
  text-decoration: none;
}

.items-list a:hover .img-thumbnail .caption {
  color: var(--bs-link-hover-color);
}

.bg-blue {
  background-color: var(--button-color) !important;
}

.border-blue {
  border-color: var(--button-color) !important;
}

#page_visits_chart {
  background-color: #f8f9fa;
  border-radius: 15px;
  margin-top: 15px;
}


.list-link {
  transition: all 0.2s ease;
  color: #495057;
  text-decoration: none;
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}

.list-link:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.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;
}


.problem-chip {
  display: none;
}

.problem-label {
  display: block;
  padding: 8px 12px;
  margin: 4px 0;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  background: #fff;
  text-align: center;
  transition: all 0.2s ease;
}

.problem-label {
  display: inline-block;
  /*padding: 6px 14px;
        margin: 3px;*/
  border-radius: 8px;
  font-size: 0.85rem;
  width: 100%;

  padding: 8px 16px;
  margin: 4px 2px;
  border-radius: 50px;
  font-size: 0.9rem;
  user-select: none;
}

.problem-label:hover {
  border-color: #0d6efd;
  background-color: #f8f9fa;
}

.problem-chip:checked+.problem-label {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;

  font-weight: 500;
  box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 700;
  color: #333;
}

.btn-more-link {
  font-size: 0.85rem;
  color: #6c757d;
  text-decoration: none;
  padding: 5px 12px;
  display: inline-block;
}

.btn-more-link:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.problem-group {
  height: 100%;
  /* Чтобы блоки в ряду были одной высоты */
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
}

.problem-group.has-selected {
  /*border: 2px solid #0d6efd;*/
  background-color: #f0f7ff !important;
}

.problem-group .selected-count {
  font-size: 0.75rem;
  background: #0d6efd;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  display: none;
}

.problem-group .has-selected .selected-count {
  display: inline-block;
}

.accordion-custom-btn {
  /* background-color: #f1f3f5 !important; */
  background-color: #f8f9fa !important;
  border-radius: 12px !important;
  padding: 15px 20px !important;
  color: #495057 !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  border: 1px solid #e9ecef !important;
}

.accordion-custom-btn:hover {
  background-color: #e9ecef !important;
  color: #0d6efd !important;
}

.accordion-custom-btn.has-selected-inner {
  border: 1px solid #0d6efd !important;
  background-color: #e7f1ff !important;
  color: #0d6efd !important;
}

.accordion-button:focus {
  box-shadow: none !important;
}

.accordion-button::after {
  filter: grayscale(1);
}

.accordion-button span {
  font-weight: normal;
  color: #495057;
  /*border: 1px;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;*/

  text-decoration: none;
  display: inline-block;
  /* Чтобы линия была точно по ширине текста */
  line-height: 1.2;
  border-bottom: 1px dotted #495057;
  /* #495057  */
  padding-bottom: 1px;
}

.accordion-button:hover span {
  color: #0a58ca;
  border-bottom: 1px dotted #0d6efd;
}


.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* history */
.btn-remove-history {
  opacity: 0.3;
  padding: 0.2rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 992px) {
  .btn-remove-history {
    opacity: 0;
  }

  .item-card:hover .btn-remove-history {
    opacity: 0.5;
  }

  .btn-remove-history:hover {
    opacity: 0.6 !important;
    transform: scale(1.1);
  }
}

@media (max-width: 991.98px) {
  .btn-remove-history {
    opacity: 0.5;
  }
}
