
/* Оголошення */

.announcements-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.announcements-container .title {
  font-size: 32px;
  line-height: 44px;
  font-weight: 500;
}

.announcements-content {
  margin-top: 24px;
  display: flex;
  flex-direction: row;
}

.announcements-years {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 2px solid #F8C46E;
  width: auto;
}

.announcement-year-tab {
  padding: 20px 25px;
  pointer-events: none;
  font-size: 14px;
  line-height: 24px;
  opacity: .5;
  font-weight: bold;
}

.announcement-year-tab.active {
  pointer-events: auto;
  opacity: 1;
}

.announcement-year-tab.current {
  background-color: #FEF5E3;
}

.announcements-articles {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-left: 40px;
}

.announcements-articles .article {
  display: flex;
  flex-direction: column;
  width: 100%;

}

.announcements-articles .article:not(:first-child) {
  margin-top: 26px;
}

.article-publish-date {
  font-size: 16px;
  line-height: 36px;
  color: #6D727C;
  position: relative;
  padding-left: 26px;
  text-transform: lowercase;
}

.article-publish-date:before {
  content: '';
  width: 22px;
  height: 22px;
  display: flex;
  position: absolute;
  background: url(/wp-content/themes/GPchild/assets/icons/icon_time.svg);
  background-size: cover;
  background-repeat: no-repeat;
  left: 0;
  top: 50%;
  transform: translateY(-55%);
}

.announcements-pagination {
  margin-top: auto;
  padding-top: 60px;
}

.announcements-list-dropdown {
  width: 100%;
  display: none;
  flex-direction: column;
  position: relative;
}

.announcements-list-current-tab {
  font-size: 14px;
  line-height: 24px;
  background: #F5F7FA;
  padding: 15px 25px;
  text-align: left;
  position: relative;
  cursor: pointer;
  border-bottom: 2px solid #F8C46E;
  height: 50px;
}

.announcements-list-current-tab:after {
  content: '';
  width: 24px;
  height: 24px;
  background: url(/wp-content/themes/GPchild/assets/icons/icon_dropdown.svg);
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%) rotate(180deg);
  transition: transform .4s ease;
}

.announcements-list-dropdown.active .announcements-list-current-tab:after {
    transform: translateY(-50%) rotate(0deg);
}

.announcements-list-tabs-container {
  background: #F5F7FA;
  padding: 12px;
  position: absolute;
  width: 100%;
  display: flex;
  top: 50px;
  z-index: 10;
  display: none;
}

.announcements-list-dropdown.active .announcements-list-tabs-container {
  display: flex;
  width: 100%;
}

.announcements-list-tabs {
  max-height: 311px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #6D727C #6d727c54;
  width: 100%;
}

.announcements-list-tabs::-webkit-scrollbar {
  width: 3px;
  background: #6d727c54;
}

.announcements-list-tabs::-webkit-scrollbar-thumb {
  background: #6D727C;
}

.announcements-list-tabs::-webkit-scrollbar-track {
  background: #6d727c54;
}

.announcements-list-tab {
  opacity: .5;
  padding: 12px;
  font-size: 14px;
  line-height: 24px;
}

.announcements-list-tab.active {
  pointer-events: auto;
  opacity: 1;
}

/*.announcements-list-tab.current {
  pointer-events: none;
}*/

@media (max-width: 768px) {
  .announcements-content {
    flex-direction: column;
    justify-content: flex-start;
  }
  .announcements-years {
    display: none;
  }
  .announcements-list-dropdown {
    display: flex;
  }
  .announcements-articles {
    padding: 0;

  }
  .announcements-articles .article {
    margin-top: 24px;
  }
  .announcements-articles .article:first-child {
    margin-top: 16px;
  }
  .announcements-articles .article a {
    font-size: 16px;
    line-height: 26px;
  }
  .announcements-pagination {
    margin-top: 40px;
    padding-top: 0;
  }
}

/* Оголошення за категорією */

.table-by-year:not(:first-child) {
  margin-top: 60px;
}

.table-by-year header,
.table-by-year h2 {
  font-size: 32px;
  line-height: 44px;
  font-weight: 500;
}

.documents-container .documents .link.announcements-link {
  flex-direction: column;
}

.documents-container .documents .link.announcements-link a {
  padding-left: 0;
}
.documents-container .documents .link.announcements-link a:before {
  display: none;
}

.tab-tables-container .documents-container .documents .link:not(:first-child) {
  margin-top: 24px;
}

.tab-tables-container .documents-container {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .table-by-year header,
  .table-by-year h2 {
    font-size: 28px;
  }
}

/* Форми звітності */

.reports-form {
  width: 880px;
  padding: 0;
  position: relative;
}

.reports-form .link:not(:first-child) {
  margin-top: 20px;
}

.reports-form-external {
  width: 880px;
}

.reports-form-external a {
  text-decoration: underline !important; 
  display: block;
}
.reports-form-external a:not(:first-child) {
  margin-top: 16px;
}
.reports-form-external a:hover {
  color: #004BC1;
}

@media ( max-width: 1024px ) {
  .reports-form,
  .reports-form-external {
    width: 100%;
  }
}

@media ( max-width: 768px ) {
  .reports-form a:hover,
  .reports-form-external a:hover {
    color: #000000;
  }
  .reports-form a:active,
  .reports-form-external a:active {
    color: #004BC1;
  }
  .reports-form-external a {
    font-size: 16px;
    line-height: 28px; 
  }
}