/* ==========================================================
   DOCUMENTS
========================================================== */

.skbt-documents {
  padding: 30px 0 54px;
}

.skbt-documents__inner {
  width: min(calc(100% - var(--content-gutter)), var(--content-width));

  margin-inline: auto;
}

/* ==========================================================
   FILTERS
========================================================== */

.skbt-documents__filters {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    auto;

  align-items: end;

  gap: 18px;

  margin-bottom: 36px;
  padding: 20px 22px;

  background: #fff;

  border: 1px solid #dde1e6;
  border-radius: var(--radius-md);

  box-shadow: 0 6px 20px rgba(14, 20, 32, 0.045);
}

.skbt-documents__filter {
  display: flex;

  min-width: 0;

  flex-direction: column;

  gap: 7px;
}

.skbt-documents__filter label {
  color: #656c75;

  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;

  
  letter-spacing: 0.07em;
}

.skbt-documents__filter select {
  width: 100%;
  min-height: 44px;

  padding: 0 13px;

  color: var(--color-dark);

  background: #fff;

  border: 1px solid #d8dde2;
  border-radius: 6px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  outline: none;
}

.skbt-documents__filter select:focus {
  border-color: var(--color-primary);

  box-shadow: 0 0 0 2px rgba(208, 32, 42, 0.08);
}

/* ==========================================================
   RESET
========================================================== */

.skbt-documents__reset {
  min-height: 44px;

  margin: 0;
  padding: 0 16px;

  color: var(--color-primary) !important;

  background: transparent !important;

  border: 0 !important;

  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;

  letter-spacing: 0.07em;

  cursor: pointer;
}

.skbt-documents__reset:hover,
.skbt-documents__reset:focus-visible {
  color: var(--color-primary-hover) !important;

  background: transparent !important;

  outline: none;
}

/* ==========================================================
   RESULTS HEADER
========================================================== */

.skbt-documents__heading {
  display: flex;

  align-items: baseline;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 26px;
}

.skbt-documents__title {
  position: relative;

  margin: 0;

  color: var(--color-dark);

  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.skbt-documents__title::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -10px;

  width: 44px;
  height: 3px;

  background: var(--color-primary);

  border-radius: 999px;
}

.skbt-documents__count {
  flex: 0 0 auto;

  color: #626872;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;

  white-space: nowrap;
}

/* ==========================================================
   LIST
========================================================== */

.skbt-documents__list {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

/* ==========================================================
   DOCUMENT
========================================================== */

.skbt-document {
  display: flex;

  min-height: 72px;

  align-items: center;
  justify-content: space-between;

  gap: 22px;

  padding: 10px 16px;

  box-sizing: border-box;

  background: #fff;

  border: 1px solid #dce0e5;
  border-radius: var(--radius-md);

  box-shadow: 0 3px 12px rgba(14, 20, 32, 0.025);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.skbt-document:hover {
  border-color: #cfd4da;

  box-shadow: 0 6px 18px rgba(14, 20, 32, 0.055);

  transform: none;
}

.skbt-document[hidden] {
  display: none !important;
}

/* ==========================================================
   CONTENT
========================================================== */

.skbt-document__content {
  display: flex;

  min-width: 0;

  flex: 1 1 auto;

  align-items: center;

  gap: 14px;
}

.skbt-document__text {
  display: flex;

  min-width: 0;

  flex-direction: column;
  justify-content: center;

  margin: 0;
  padding: 0;
}

/* ==========================================================
   TITLE
========================================================== */

.skbt-document .skbt-document__name {
  margin: 0 !important;
  padding: 0 !important;

  font-size: inherit;
  line-height: 1 !important;
}

.skbt-document .skbt-document__name-link {
  display: inline-block;

  margin: 0 !important;
  padding: 0 !important;

  overflow-wrap: anywhere;

  color: var(--color-dark);

  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25 !important;

  text-decoration: none;

  transition: color 0.2s ease;
}

.skbt-document .skbt-document__name-link:hover,
.skbt-document .skbt-document__name-link:focus-visible,
.skbt-document:hover .skbt-document__name-link {
  color: var(--color-primary);

  text-decoration: none;

  outline: none;
}

/* ==========================================================
   META
========================================================== */

.skbt-document .skbt-document__meta {
  margin: 4px 0 0 !important;
  padding: 0 !important;

  color: #626872;

  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25 !important;
}

.skbt-document .skbt-document__source {
  margin: 2px 0 0 !important;
  padding: 0 !important;

  color: #777f89;

  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.25 !important;
}

/* ==========================================================
   ICON BASE
========================================================== */

.skbt-document__icon {
  display: flex;

  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  align-items: center;
  justify-content: center;

  background-color: #f7f8fa;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 23px;

  border: 1px solid #dde2e7;
  border-radius: 6px;

  text-decoration: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.skbt-document__icon:hover,
.skbt-document__icon:focus-visible {
  transform: none;

  outline: none;
}

/* ==========================================================
   GENERIC FILE
========================================================== */

.skbt-document__icon--file {
  background-color: #f7f8fa;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='23' viewBox='0 0 20 23' fill='none'%3E%3Cpath d='M3.75 1.75H12.25L16.5 6V21.25H3.75V1.75Z' fill='white' stroke='%2377808A' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M12.25 1.75V6H16.5' stroke='%2377808A' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M6.25 11H14M6.25 14H14M6.25 17H11.75' stroke='%2377808A' stroke-width='1.35' stroke-linecap='round'/%3E%3C/svg%3E");
}

.skbt-document:hover .skbt-document__icon--file,
.skbt-document__icon--file:hover {
  background-color: #f4f5f6;

  border-color: #bfc5cb;
}

/* ==========================================================
   PDF
========================================================== */

.skbt-document__icon--pdf {
  background-color: #fff7f7;

  border-color: rgba(208, 32, 42, 0.22);

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='23' viewBox='0 0 20 23' fill='none'%3E%3Cpath d='M3.75 1.75H12.25L16.5 6V21.25H3.75V1.75Z' fill='white' stroke='%23D0202A' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M12.25 1.75V6H16.5' stroke='%23D0202A' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M6.25 11H14M6.25 14H14M6.25 17H11.75' stroke='%23D0202A' stroke-width='1.35' stroke-linecap='round'/%3E%3C/svg%3E");
}

.skbt-document:hover .skbt-document__icon--pdf,
.skbt-document__icon--pdf:hover {
  background-color: #fff0f1;

  border-color: rgba(208, 32, 42, 0.45);
}

/* ==========================================================
   WORD
========================================================== */

.skbt-document__icon--doc {
  background-color: #f4f7fc;

  border-color: rgba(43, 87, 154, 0.22);

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='23' viewBox='0 0 20 23' fill='none'%3E%3Cpath d='M3.75 1.75H12.25L16.5 6V21.25H3.75V1.75Z' fill='white' stroke='%232B579A' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M12.25 1.75V6H16.5' stroke='%232B579A' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M6.25 11H14M6.25 14H14M6.25 17H11.75' stroke='%232B579A' stroke-width='1.35' stroke-linecap='round'/%3E%3C/svg%3E");
}

.skbt-document:hover .skbt-document__icon--doc,
.skbt-document__icon--doc:hover {
  background-color: #eaf0fa;

  border-color: rgba(43, 87, 154, 0.45);
}

/* ==========================================================
   EXCEL
========================================================== */

.skbt-document__icon--xls {
  background-color: #f3f9f6;

  border-color: rgba(33, 115, 70, 0.22);

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='23' viewBox='0 0 20 23' fill='none'%3E%3Cpath d='M3.75 1.75H12.25L16.5 6V21.25H3.75V1.75Z' fill='white' stroke='%23217346' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M12.25 1.75V6H16.5' stroke='%23217346' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M6.25 11H14M6.25 14H14M6.25 17H14' stroke='%23217346' stroke-width='1.35' stroke-linecap='round'/%3E%3C/svg%3E");
}

.skbt-document:hover .skbt-document__icon--xls,
.skbt-document__icon--xls:hover {
  background-color: #e9f5ee;

  border-color: rgba(33, 115, 70, 0.45);
}

/* ==========================================================
   DOWNLOAD
========================================================== */

.skbt-document__download {
  display: inline-flex;

  min-width: 98px;
  min-height: 40px;

  flex: 0 0 auto;

  align-items: center;
  justify-content: center;

  padding: 0 14px;

  color: var(--color-primary);

  background: #fff;

  border: 1px solid var(--color-primary);
  border-radius: 6px;

  font-size: 9px;
  font-weight: 800;
  line-height: 1;

  text-decoration: none;

  text-transform: uppercase;
  letter-spacing: 0.06em;

  white-space: nowrap;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.skbt-document__download:hover,
.skbt-document__download:focus-visible {
  color: #fff;

  background: var(--color-primary);

  text-decoration: none;

  outline: none;
}

/* ==========================================================
   EMPTY
========================================================== */

.skbt-documents__empty {
  padding: 28px;

  color: #626872;

  background: #fff;

  border: 1px solid #dfe3e8;
  border-radius: var(--radius-md);

  font-size: 13px;
  line-height: 1.5;

  text-align: center;
}

.skbt-documents__empty[hidden] {
  display: none !important;
}

/* ==========================================================
   PAGINATION
========================================================== */

.skbt-documents__pagination {
  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  flex-wrap: wrap !important;

  gap: 6px !important;

  width: 100% !important;

  margin: 28px 0 0 !important;
  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;
}

.skbt-documents__pagination[hidden] {
  display: none !important;
}

.skbt-documents__pagination .skbt-documents__page {
  display: inline-flex !important;

  width: 38px !important;
  height: 38px !important;

  min-width: 38px !important;
  min-height: 38px !important;

  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #59606a !important;

  background: #fff !important;
  background-image: none !important;

  border: 1px solid #dfe2e6 !important;
  border-radius: 6px !important;

  box-shadow: none !important;

  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  cursor: pointer !important;
}

.skbt-documents__pagination .skbt-documents__page:hover,
.skbt-documents__pagination .skbt-documents__page:focus-visible {
  color: var(--color-primary) !important;

  background: #fff !important;

  border-color: var(--color-primary) !important;

  outline: none !important;
}

.skbt-documents__pagination .skbt-documents__page--active {
  color: #fff !important;

  background: var(--color-primary) !important;

  border-color: var(--color-primary) !important;

  cursor: default !important;
}

.skbt-documents__pagination .skbt-documents__page--active:hover {
  color: #fff !important;

  background: var(--color-primary) !important;
}

.skbt-documents__pagination .skbt-documents__page:disabled {
  opacity: 0.4 !important;

  cursor: default !important;
}

.skbt-documents__pagination-ellipsis {
  display: inline-flex;

  width: 28px;
  height: 38px;

  flex: 0 0 28px;

  align-items: center;
  justify-content: center;

  color: #8a9098;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  user-select: none;
}

@media (max-width: 600px) {
  .skbt-documents__pagination-ellipsis {
    width: 20px;
    height: 36px;

    flex-basis: 20px;

    font-size: 13px;
  }
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {
  .skbt-documents__filters {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 16px;
  }

  .skbt-documents__reset {
    grid-column: 1 / -1;

    justify-self: start;

    padding-left: 0;
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {
  .skbt-documents {
    padding: 28px 0 34px;
  }

  .skbt-documents__inner {
    width: min(calc(100% - var(--content-gutter-mobile)), var(--content-width));
  }

  .skbt-documents__filters {
    grid-template-columns: 1fr;

    gap: 14px;

    margin-bottom: 34px;
    padding: 18px;
  }

  .skbt-documents__reset {
    grid-column: auto;
  }

  .skbt-documents__heading {
    align-items: baseline;

    gap: 12px;

    margin-bottom: 24px;
  }

  .skbt-documents__title {
    font-size: 20px;
  }

  .skbt-documents__count {
    font-size: 10.5px;
  }

  .skbt-document {
    min-height: 68px;

    gap: 10px;

    padding: 9px 12px;

    box-sizing: border-box;
  }

  .skbt-document__content {
    gap: 10px;
  }

  .skbt-document__icon {
    width: 36px;
    height: 36px;

    flex-basis: 36px;

    background-size: 17px 20px;
  }

  .skbt-document .skbt-document__name-link {
    font-size: 12.5px;
    line-height: 1.25 !important;
  }

  .skbt-document .skbt-document__meta {
    margin-top: 3px !important;

    font-size: 10px;
    line-height: 1.25 !important;
  }

  .skbt-document .skbt-document__source {
    margin-top: 2px !important;

    font-size: 9px;
    line-height: 1.25 !important;
  }

  .skbt-document__download {
    min-width: 84px;
    min-height: 36px;

    padding-inline: 9px;

    font-size: 7.5px;
  }

  .skbt-documents__pagination {
    gap: 5px !important;

    margin-top: 24px !important;
  }

  .skbt-documents__pagination .skbt-documents__page {
    width: 36px !important;
    height: 36px !important;

    min-width: 36px !important;
    min-height: 36px !important;
  }
}
