:root {
  --documents-red: #d50000;
  --documents-dark-red: #970000;
  --documents-deep-red: #670000;
  --documents-gold: #ffd21f;
  --documents-ink: #101828;
  --documents-muted: #667085;
  --documents-line: #e5e9f0;
  --documents-bg: #f6f8fb;
}

body.documents-page-active,
body.documents-page-active input,
body.documents-page-active select,
body.documents-page-active button {
  font-family: "Inter", "Be Vietnam Pro", sans-serif;
}

body.documents-page-active h1,
body.documents-page-active h2,
body.documents-page-active h3,
body.documents-page-active .nav-menu,
body.documents-page-active footer {
  font-family: "Be Vietnam Pro", "Inter", sans-serif;
}

body.documents-page-active {
  background: var(--documents-bg);
  color: var(--documents-ink);
}

.documents-page-active .nav-chevron {
  margin-left: 4px;
  font-size: .68rem;
}

.documents-page-active .documents-ticker {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.documents-ticker-track {
  width: max-content;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 44px;
  padding-left: 100%;
  animation: documentsTicker 34s linear infinite;
  color: #172033;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}

.documents-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.documents-ticker-track i {
  color: var(--documents-red);
  font-size: .38rem;
}

@keyframes documentsTicker {
  to { transform: translateX(-100%); }
}

.documents-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 25%, rgba(255, 193, 7, .2), transparent 24%),
    linear-gradient(110deg, #650000 0%, #9c0000 45%, #e00000 100%);
}

.documents-hero::before,
.documents-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.documents-hero::before {
  inset: 0;
  opacity: .16;
  background:
    repeating-linear-gradient(125deg, transparent 0 34px, rgba(255,255,255,.2) 35px 36px),
    radial-gradient(circle at 18% 40%, transparent 0 90px, rgba(255,255,255,.18) 91px 92px, transparent 93px);
}

.documents-hero::after {
  width: 280px;
  height: 280px;
  right: -65px;
  top: -125px;
  border: 55px solid rgba(255, 210, 31, .08);
  border-radius: 50%;
}

.documents-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  min-height: 255px;
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  align-items: center;
  gap: 36px;
  box-sizing: border-box;
}

.documents-hero-copy {
  max-width: 760px;
}

.documents-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ffe668;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.documents-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 3.3vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.documents-hero-copy > p {
  max-width: 690px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  line-height: 1.7;
}

.documents-hero-stats {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.documents-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.86);
  font-size: .84rem;
  font-weight: 600;
}

.documents-hero-stats strong {
  color: #ffe347;
  font-size: 1.08rem;
}

.documents-hero-art {
  position: relative;
  min-height: 190px;
}

.folder {
  position: absolute;
  bottom: 8px;
  width: 76px;
  height: 160px;
  border: 3px solid rgba(255,255,255,.46);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(90deg, #9a0000, #e12b2b 35%, #a80000);
  box-shadow: 12px 15px 28px rgba(54,0,0,.25);
}

.folder::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 74px;
  border: 2px solid #e8c9c9;
  background: #fff;
}

.folder span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid #fff;
}

.folder span:nth-child(1) { width: 18px; height: 18px; bottom: 18px; }
.folder span:nth-child(2) { width: 7px; height: 7px; bottom: 23px; background: #fff; }
.folder-one { right: 205px; transform: rotate(-5deg); }
.folder-two { right: 130px; height: 170px; transform: rotate(2deg); }

.hero-paper {
  position: absolute;
  right: 16px;
  bottom: -8px;
  width: 160px;
  height: 190px;
  padding: 30px 26px;
  border-radius: 5px;
  background: #fff;
  color: #d00000;
  box-shadow: 0 20px 34px rgba(65,0,0,.35);
  transform: rotate(6deg);
  box-sizing: border-box;
}

.hero-paper > i {
  font-size: 2.35rem;
}

.hero-paper b {
  display: block;
  height: 5px;
  margin-top: 12px;
  border-radius: 4px;
  background: #d9dde5;
}

.hero-paper b:nth-of-type(2) { width: 78%; }
.hero-paper b:nth-of-type(3) { width: 92%; }
.hero-paper b:nth-of-type(4) { width: 64%; }

.hero-paper em {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 5px double #fff;
  border-radius: 50%;
  background: #d50000;
  color: #fff;
  font-style: normal;
}

.hero-star {
  position: absolute;
  right: -60px;
  top: -35px;
  color: rgba(255, 213, 25, .22);
  font-size: 9rem;
  transform: rotate(12deg);
}

.documents-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 24px 50px;
  box-sizing: border-box;
}

.documents-breadcrumb {
  min-height: 44px;
  padding: 14px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: .82rem;
  box-sizing: border-box;
}

.documents-breadcrumb a {
  color: #475467;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.documents-breadcrumb a:hover {
  color: var(--documents-red);
}

.documents-breadcrumb > i {
  color: #94a3b8;
  font-size: .65rem;
}

.documents-breadcrumb > span {
  color: #1e293b;
  font-weight: 600;
}

.documents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 24px;
  align-items: start;
}

.documents-main-panel,
.documents-sidebar {
  min-width: 0;
}

.documents-filter-card,
.documents-list-card,
.documents-side-card {
  border: 1px solid var(--documents-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(16,24,40,.05);
}

.documents-filter-card {
  padding: 20px;
  margin-bottom: 18px;
}

.documents-card-heading,
.documents-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.documents-card-heading {
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--documents-line);
}

.documents-card-heading > div,
.documents-side-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.documents-heading-icon,
.documents-side-heading > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff0f0;
  color: var(--documents-red);
}

.documents-card-heading h2,
.documents-list-heading h2,
.documents-side-heading h2 {
  margin: 0;
  color: #b80000;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.documents-card-heading p,
.documents-list-heading p {
  margin: 4px 0 0;
  color: var(--documents-muted);
  font-size: .77rem;
}

.documents-reset-button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font-weight: 700;
  cursor: pointer;
}

.documents-reset-button:hover {
  border-color: #f3a2a2;
  color: var(--documents-red);
}

.documents-filter-grid {
  display: grid;
  grid-template-columns: .9fr 1.4fr 1fr .92fr auto;
  gap: 13px;
  align-items: end;
}

.documents-filter-grid label {
  min-width: 0;
}

.documents-filter-grid label > span {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: .75rem;
  font-weight: 700;
}

.documents-input-wrap {
  position: relative;
  width: 100%;
}

.documents-input-wrap > i {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 5;
  color: #98a2b3;
  font-size: .85rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.documents-input-wrap input,
.documents-input-wrap select,
.documents-sort select {
  width: 100%;
  height: 42px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #172033;
  font-size: .8rem !important;
  box-sizing: border-box !important;
  transition: border-color .2s, box-shadow .2s;
}

.documents-input-wrap input::placeholder {
  font-size: .76rem;
  color: #a0aab4;
}

.documents-input-wrap input,
.documents-input-wrap select {
  padding-left: 38px !important;
  padding-right: 12px !important;
}

.documents-input-wrap select {
  padding-right: 32px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}

.documents-input-wrap input[type="date"] {
  padding-left: 38px !important;
  font-family: inherit;
}

.documents-input-wrap input:focus,
.documents-input-wrap select:focus,
.documents-sort select:focus {
  border-color: var(--documents-red);
  box-shadow: 0 0 0 3px rgba(213,0,0,.08);
}

.documents-search-button {
  height: 42px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #df0000, #a70000);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(183,0,0,.18);
}

.documents-list-card {
  overflow: hidden;
}

.documents-list-heading {
  min-height: 76px;
  padding: 0 20px;
  border-bottom: 1px solid var(--documents-line);
}

.documents-list-heading h2 i {
  margin-right: 7px;
}

.documents-sort {
  display: flex;
  align-items: center;
  gap: 9px;
}

.documents-sort label {
  color: #667085;
  font-size: .75rem;
  font-weight: 600;
}

.documents-sort select {
  width: 132px;
  padding: 0 10px;
}

.documents-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.documents-table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
  table-layout: fixed;
}

.documents-table thead {
  background: linear-gradient(90deg, #a90000, #d80000);
  color: #fff;
}

.documents-table th {
  height: 44px;
  padding: 0 11px;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
}

.documents-table td {
  padding: 12px 11px;
  border-bottom: 1px solid #e9edf3;
  color: #344054;
  font-size: .77rem;
  line-height: 1.48;
  vertical-align: middle;
}

.documents-table tbody tr {
  transition: background .2s;
}

.documents-table tbody tr:hover {
  background: #fff8f8;
}

.documents-table tbody tr:last-child td {
  border-bottom: 0;
}

.documents-table .col-index { width: 48px; text-align: center; }
.documents-table .col-number { width: 112px; }
.documents-table .col-type { width: 118px; }
.documents-table .col-date { width: 103px; text-align: center; }
.documents-table .col-download { width: 88px; text-align: center; }
.documents-table td:first-child,
.documents-table td:nth-child(5),
.documents-table td:nth-child(6),
.documents-table td:last-child { text-align: center; }

.documents-number {
  color: #172033;
  font-weight: 700;
}

.documents-type-badge {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #f3d0d0;
  border-radius: 6px;
  background: #fff1f1;
  color: #bd0000;
  font-size: .65rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.documents-type-badge.type-blue {
  border-color: #d2e0fa;
  background: #edf4ff;
  color: #1758a5;
}

.documents-type-badge.type-orange {
  border-color: #fde2bb;
  background: #fff7e9;
  color: #a95600;
}

.documents-download {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #f1b5b5;
  border-radius: 7px;
  background: #fff;
  color: #c80000;
  font-weight: 700;
  text-decoration: none;
}

.documents-download:hover {
  background: #d60000;
  color: #fff;
}

.documents-download.is-disabled {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #98a2b3;
  cursor: not-allowed;
}

.documents-loading,
.documents-empty {
  min-height: 260px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  color: #667085;
}

.documents-loading {
  flex-direction: row;
  gap: 7px;
}

.documents-loading p {
  margin-left: 7px;
  font-size: .82rem;
}

.documents-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--documents-red);
  animation: documentsPulse 1s infinite alternate;
}

.documents-loading span:nth-child(2) { animation-delay: .2s; }
.documents-loading span:nth-child(3) { animation-delay: .4s; }

@keyframes documentsPulse {
  to { opacity: .25; transform: translateY(-5px); }
}

.documents-empty i {
  margin-bottom: 12px;
  color: #c8ced8;
  font-size: 3rem;
}

.documents-empty h3 {
  margin: 0;
  font-size: 1.05rem;
}

.documents-empty p {
  margin: 8px 0 0;
  font-size: .82rem;
}

.documents-pagination {
  min-height: 62px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--documents-line);
}

.documents-pagination p {
  margin: 0;
  color: #667085;
  font-size: .75rem;
}

.documents-pagination > div {
  display: flex;
  gap: 6px;
}

.documents-page-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe3ea;
  border-radius: 7px;
  background: #fff;
  color: #475467;
  font-weight: 700;
  cursor: pointer;
}

.documents-page-button:hover,
.documents-page-button.is-active {
  border-color: var(--documents-red);
  background: var(--documents-red);
  color: #fff;
}

.documents-page-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.documents-sidebar {
  display: grid;
  gap: 18px;
}

.documents-side-card {
  padding: 18px;
}

.documents-side-heading {
  margin-bottom: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--documents-line);
}

.documents-side-heading > span {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.documents-side-heading h2 {
  font-size: .9rem;
}

.documents-category-list {
  display: grid;
  gap: 4px;
}

.documents-category-button {
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  font-size: .76rem;
  text-align: left;
  cursor: pointer;
}

.documents-category-button:hover,
.documents-category-button.is-active {
  background: #fff0f0;
  color: #b90000;
}

.documents-category-button > i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4f6f9;
  color: #d00000;
}

.documents-category-button b {
  min-width: 27px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: .66rem;
  text-align: center;
}

.documents-category-button.is-active b {
  background: #fff;
  color: #c00000;
}

.documents-quick-stats {
  display: grid;
  gap: 8px;
}

.documents-stat-row {
  min-height: 58px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  background: #f8fafc;
}

.documents-stat-row > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf1ff;
  color: #1758c4;
}

.documents-stat-row span {
  color: #667085;
  font-size: .7rem;
  font-weight: 600;
}

.documents-stat-row strong {
  color: #172033;
  font-size: 1rem;
}

.documents-support p {
  margin: 0 0 14px;
  color: #667085;
  font-size: .78rem;
  line-height: 1.6;
}

.documents-support a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  color: #c40000;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.documents-support a:hover {
  border-color: #dc0000;
  background: #fff5f5;
}

.documents-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 1000;
  max-width: min(420px, calc(100% - 28px));
  padding: 12px 18px;
  border-radius: 9px;
  background: #172033;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: 0 16px 35px rgba(16,24,40,.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: .25s;
}

.documents-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
  .documents-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .documents-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .documents-search-button {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .documents-hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .documents-layout {
    grid-template-columns: 1fr;
  }

  .documents-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .documents-support {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body.documents-page-active {
    padding-top: 66px !important;
  }

  .documents-page-active .top-marquee {
    display: none;
  }

  .documents-hero-inner {
    min-height: 230px;
    padding: 28px 18px;
    grid-template-columns: 1fr;
  }

  .documents-hero-copy {
    max-width: none;
  }

  .documents-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .documents-hero-copy > p {
    font-size: .86rem;
    line-height: 1.65;
  }

  .documents-hero-stats {
    margin-top: 18px;
    gap: 9px 18px;
  }

  .documents-hero-art {
    position: absolute;
    right: -28px;
    bottom: -42px;
    width: 240px;
    min-height: 170px;
    opacity: .2;
    pointer-events: none;
  }

  .documents-shell {
    padding: 0 12px 34px;
  }

  .documents-breadcrumb {
    min-height: 50px;
    font-size: .73rem;
  }

  .documents-filter-card {
    padding: 15px;
  }

  .documents-card-heading {
    align-items: flex-start;
  }

  .documents-card-heading p {
    display: none;
  }

  .documents-heading-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .documents-reset-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: .73rem;
  }

  .documents-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .documents-list-heading {
    min-height: 72px;
    padding: 12px 15px;
  }

  .documents-table {
    min-width: 0;
    table-layout: auto;
  }

  .documents-table thead {
    display: none;
  }

  .documents-table,
  .documents-table tbody,
  .documents-table tr,
  .documents-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .documents-table tbody {
    padding: 10px;
  }

  .documents-table tbody tr {
    position: relative;
    margin-bottom: 10px;
    padding: 14px 14px 13px;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    background: #fff;
  }

  .documents-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .documents-table td {
    padding: 0;
    border: 0;
    text-align: left !important;
  }

  .documents-table td:nth-child(1) {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff0f0;
    color: #bd0000;
    font-weight: 800;
  }

  .documents-table td:nth-child(2) {
    padding-right: 42px;
    color: #172033;
    font-size: .82rem;
    font-weight: 800;
  }

  .documents-table td:nth-child(3) {
    margin-top: 8px;
  }

  .documents-table td:nth-child(4) {
    margin-top: 10px;
    color: #344054;
    font-size: .78rem;
    line-height: 1.55;
  }

  .documents-table td:nth-child(5),
  .documents-table td:nth-child(6) {
    width: auto;
    margin-top: 11px;
    display: inline-flex;
    align-items: center;
    color: #667085;
    font-size: .68rem;
  }

  .documents-table td:nth-child(5)::before {
    content: "Ban hành: ";
    margin-right: 4px;
    font-weight: 700;
  }

  .documents-table td:nth-child(6)::before {
    content: "Hiệu lực: ";
    margin: 0 4px 0 14px;
    font-weight: 700;
  }

  .documents-table td:nth-child(7) {
    margin-top: 12px;
  }

  .documents-download {
    width: 100%;
  }

  .documents-sidebar {
    grid-template-columns: 1fr;
  }

  .documents-support {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .documents-hero-inner {
    min-height: 250px;
  }

  .documents-eyebrow {
    font-size: .67rem;
  }

  .documents-hero-copy > p {
    max-width: 96%;
  }

  .documents-hero-stats span {
    font-size: .7rem;
  }

  .documents-filter-grid {
    grid-template-columns: 1fr;
  }

  .documents-search-button {
    grid-column: auto;
    width: 100%;
  }

  .documents-list-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .documents-sort {
    width: 100%;
    justify-content: space-between;
  }

  .documents-sort select {
    width: 142px;
  }

  .documents-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .documents-pagination > div {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .documents-ticker-track,
  .documents-loading span {
    animation: none;
  }
}

/* ===== ĐỒNG BỘ BỐ CỤC CHUNG VỚI CÁC TRANG CÔNG KHAI ===== */
.documents-page-active header.site-header {
  min-height: 140px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 3px double #d4af37;
  background: linear-gradient(to bottom, #fff 0%, #faf8f0 100%);
  box-sizing: border-box;
}

.documents-page-active .header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.documents-page-active .header-logo-wrap {
  width: 100%;
  text-align: center;
}

.documents-page-active .site-logo {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 140px;
  margin: 0;
  object-fit: contain;
}

.documents-page-active .header-mobile-btn {
  display: none;
}

.documents-page-active > nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: 53px;
  background: #df0000;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .13);
}

.documents-page-active > nav .nav-container {
  width: 100%;
  max-width: 1200px;
  min-height: 53px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  box-sizing: border-box;
}

.documents-page-active > nav .nav-menu {
  min-width: 0;
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
}

.documents-page-active > nav .nav-menu > li {
  display: flex;
  align-items: stretch;
}

.documents-page-active > nav .nav-menu > li > a {
  min-height: 53px;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  box-sizing: border-box;
}

.documents-page-active > nav .nav-menu > li.active > a {
  background: #a80000;
  color: #fff600;
}

.documents-page-active > nav .nav-actions {
  min-height: 53px;
  margin-left: auto;
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.documents-page-active > nav .nav-action-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  place-items: center;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  font-size: 1.05rem;
}

.documents-page-active .top-marquee {
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #fff;
}

.documents-page-active .top-marquee-container {
  width: 100%;
  max-width: 1200px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
}

.documents-page-active .top-marquee-date {
  width: auto;
  min-width: 250px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 0 0 auto;
  background: #f1f5f9;
  font-size: .88rem;
  box-sizing: border-box;
}

.documents-page-active .documents-ticker {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  overflow: hidden;
}

.documents-page-active .documents-ticker-track {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-left: 36px;
  font-size: .78rem;
}

.documents-page-active .documents-hero {
  min-height: 188px;
}

.documents-page-active .documents-hero-inner {
  width: min(1200px, 100%);
  min-height: 188px;
  padding: 24px;
  box-sizing: border-box;
}

.documents-page-active .documents-eyebrow {
  margin-bottom: 8px;
  font-size: .7rem;
}

.documents-page-active .documents-hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.documents-page-active .documents-hero-copy > p {
  max-width: 650px;
  margin-top: 12px;
  font-size: .87rem;
  line-height: 1.65;
}

.documents-page-active .documents-hero-stats {
  margin-top: 18px;
  gap: 18px 28px;
}

.documents-page-active .documents-hero-art {
  min-height: 158px;
  transform: scale(.76);
  transform-origin: center right;
}

.documents-page-active .documents-shell {
  width: min(1200px, 100%);
  padding: 0 24px 42px;
}

.documents-page-active nav.documents-breadcrumb {
  position: static;
  z-index: auto;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.documents-page-active .documents-layout {
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
}

.documents-page-active .documents-filter-card {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 10px;
}

.documents-page-active .documents-card-heading {
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.documents-page-active .documents-filter-grid {
  grid-template-columns: .9fr 1.35fr 1fr .9fr auto;
  gap: 10px;
}

.documents-page-active .documents-list-heading {
  min-height: 64px;
  padding: 0 16px;
}

.documents-page-active .documents-table {
  min-width: 0;
  table-layout: fixed;
}

.documents-page-active .documents-table th {
  height: 40px;
  padding: 0 8px;
  font-size: .62rem;
}

.documents-page-active .documents-table td {
  padding: 10px 8px;
  font-size: .7rem;
  line-height: 1.42;
}

.documents-page-active .documents-table .col-index { width: 42px; }
.documents-page-active .documents-table .col-number { width: 128px; }
.documents-page-active .documents-table .col-type { width: 105px; }
.documents-page-active .documents-table .col-date { width: 88px; }
.documents-page-active .documents-table .col-download { width: 94px; }

.documents-page-active .documents-table td:nth-child(2) {
  white-space: nowrap;
  word-break: normal;
}

.documents-page-active .documents-download {
  min-width: 68px;
  white-space: nowrap;
}

.documents-page-active .documents-loading,
.documents-page-active .documents-empty {
  min-height: 170px;
}

.documents-page-active .documents-loading[hidden],
.documents-page-active .documents-empty[hidden],
.documents-page-active .documents-pagination[hidden] {
  display: none !important;
}

.documents-page-active .documents-sidebar {
  gap: 14px;
}

.documents-page-active .documents-side-card {
  padding: 14px;
  border-radius: 10px;
}

.documents-page-active footer {
  width: 100%;
  margin-top: 60px;
  padding: 60px 0 30px;
  border-top: 4px solid #af0000;
  background: #df0000;
  color: rgba(255, 255, 255, .92);
  box-sizing: border-box;
}

.documents-page-active .footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
  box-sizing: border-box;
}

.documents-page-active .footer-col {
  min-width: 0;
}

.documents-page-active .footer-logo-wrap {
  width: 310px;
  max-width: 100%;
  margin-bottom: 24px;
}

.documents-page-active .footer-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.documents-page-active .footer-col h3 {
  margin: 0 0 24px;
  padding: 0 0 0 12px;
  border-left: 3px solid #fff;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
}

.documents-page-active .footer-col p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .92);
  font-size: .88rem;
  line-height: 1.75;
}

.documents-page-active .footer-links,
.documents-page-active .footer-contact-list,
.documents-page-active .footer-members-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.documents-page-active .footer-links {
  display: grid;
  gap: 13px;
}

.documents-page-active .footer-links a,
.documents-page-active .footer-contact-list a {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
}

.documents-page-active .footer-contact-list {
  display: grid;
  gap: 15px;
}

.documents-page-active .footer-contact-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-size: .84rem;
  line-height: 1.55;
}

.documents-page-active .footer-contact-list .contact-icon {
  margin-top: 3px;
  color: #fff600;
}

.documents-page-active .social-links {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.documents-page-active .social-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.documents-page-active .footer-visit-counter {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .09);
}

.documents-page-active .footer-visit-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: .76rem;
}

.documents-page-active .footer-visit-row {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
}

.documents-page-active .footer-visit-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}

.documents-page-active .online-dot { background: #4ade80; }
.documents-page-active .total-dot { background: #fde047; }
.documents-page-active .footer-visit-value {
  margin-left: auto;
  color: #fff;
  font-weight: 800;
}

.documents-page-active .footer-sub-contacts {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(112, 0, 0, .16);
}

.documents-page-active .sub-contact-title {
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.documents-page-active .sub-contact-title i {
  margin-right: 7px;
  color: #fff600;
}

.documents-page-active .footer-members-list li {
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
  font-size: .73rem;
}

.documents-page-active .footer-members-list li:last-child {
  border-bottom: 0;
}

.documents-page-active .footer-member-role {
  font-weight: 800;
}

.documents-page-active .footer-member-phone {
  flex: 0 0 auto;
  color: #fff600;
  font-weight: 800;
  text-decoration: none;
}

.documents-page-active .footer-bottom {
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .88);
  text-align: center;
}

.documents-page-active .footer-bottom p {
  margin: 0;
  font-size: .76rem;
  line-height: 1.55;
}

.documents-page-active .footer-bottom .footer-source-note {
  margin-top: 7px;
  color: rgba(255, 255, 255, .68);
}

.documents-page-active .back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  left: auto;
  top: auto;
  z-index: 1400;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: #d60000;
  color: #fff;
  box-shadow: 0 8px 24px rgba(120, 0, 0, .28);
  cursor: pointer;
}

@media (max-width: 1200px) and (min-width: 821px) {
  .documents-page-active > nav .nav-container {
    padding: 0 16px;
  }

  .documents-page-active > nav .nav-menu > li > a {
    padding: 16px 8px;
    font-size: .72rem;
  }

  .documents-page-active > nav .nav-action-btn {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .documents-page-active .documents-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}

@media (max-width: 820px) {
  .documents-page-active {
    padding-top: 56px !important;
  }

  .documents-page-active header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1205;
    width: 100%;
    min-height: 56px;
    height: 56px;
    padding: 0 14px;
    border-bottom: 1px solid #e7eaf0;
    background: #fff;
  }

  .documents-page-active .header-container {
    min-height: 56px;
    height: 56px;
    padding: 0;
    flex-direction: row;
    justify-content: space-between;
  }

  .documents-page-active .header-logo-wrap {
    width: auto;
    flex: 1 1 auto;
  }

  .documents-page-active .site-logo {
    width: 150px;
    max-height: 40px;
  }

  .documents-page-active .header-mobile-btn {
    width: 40px;
    height: 40px;
    display: grid !important;
    place-items: center;
    flex: 0 0 40px;
    border: 0;
    background: transparent;
    color: #c90000;
    font-size: 1rem;
  }

  .documents-page-active > nav {
    min-height: 0;
  }

  .documents-page-active > nav .nav-container {
    min-height: 0;
    padding: 0;
  }

  .documents-page-active > nav .nav-actions {
    display: none !important;
  }

  .documents-page-active .top-marquee {
    display: none !important;
  }

  .documents-page-active .documents-hero {
    min-height: 190px;
  }

  .documents-page-active .documents-hero-inner {
    min-height: 180px;
    padding: 22px 16px 20px;
    grid-template-columns: 1fr;
  }

  .documents-page-active .documents-hero-copy {
    max-width: 100%;
  }

  .documents-page-active .documents-hero-copy h1 {
    font-size: 1.65rem;
    line-height: 1.12;
  }

  .documents-page-active .documents-hero-copy p {
    max-width: 100%;
    font-size: .78rem;
    line-height: 1.55;
  }

  .documents-page-active .documents-hero-art {
    display: none;
  }

  .documents-page-active .documents-hero-stats {
    gap: 14px;
    flex-wrap: wrap;
  }

  .documents-page-active .documents-hero-stat {
    font-size: .72rem;
  }

  .documents-page-active .documents-shell {
    padding: 0 12px 28px;
  }

  .documents-page-active .documents-layout {
    grid-template-columns: 1fr;
  }

  .documents-page-active nav.documents-breadcrumb {
    min-height: 42px;
    font-size: .7rem;
  }

  .documents-page-active .documents-filter-card,
  .documents-page-active .documents-list-card,
  .documents-page-active .documents-side-card {
    border-radius: 10px;
  }

  .documents-page-active .documents-filter-card {
    padding: 13px;
  }

  .documents-page-active .documents-card-heading {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .documents-page-active .documents-filter-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .documents-page-active .documents-filter-grid label {
    min-width: 0;
  }

  .documents-page-active .documents-filter-grid input,
  .documents-page-active .documents-filter-grid select,
  .documents-page-active .documents-search-button {
    width: 100%;
    min-width: 0;
    height: 44px;
  }

  .documents-page-active .documents-search-button {
    grid-column: auto;
    justify-content: center;
  }

  .documents-page-active .documents-list-heading {
    min-height: 0;
    padding: 13px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .documents-page-active .documents-sort {
    width: 100%;
    justify-content: space-between;
  }

  .documents-page-active .documents-sort select {
    min-width: 140px;
  }

  .documents-page-active .documents-table {
    min-width: 0;
  }

  .documents-page-active .documents-table td:nth-child(2) {
    padding-right: 42px;
    white-space: nowrap;
  }

  .documents-page-active .documents-download {
    width: 100%;
    min-height: 38px;
    justify-content: center;
  }

  .documents-page-active .documents-sidebar {
    gap: 12px;
  }

  .documents-page-active footer {
    margin-top: 24px;
    padding: 30px 0 18px;
  }

  .documents-page-active .footer-container {
    margin-bottom: 24px;
    padding: 0 16px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .documents-page-active .footer-logo-wrap {
    width: 205px;
    margin: 0 auto 16px;
  }

  .documents-page-active .footer-col:first-child {
    text-align: center;
  }

  .documents-page-active .footer-col h3 {
    margin-bottom: 14px;
    font-size: .92rem;
  }

  .documents-page-active .footer-col p {
    margin-bottom: 14px;
    font-size: .72rem;
    line-height: 1.55;
  }

  .documents-page-active .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 16px;
    font-size: .74rem;
  }

  .documents-page-active .social-links {
    margin-top: 16px;
    justify-content: center;
  }

  .documents-page-active .social-btn {
    width: 38px;
    height: 38px;
  }

  .documents-page-active .footer-visit-counter,
  .documents-page-active .footer-sub-contacts {
    margin-top: 16px;
    padding: 12px;
  }

  .documents-page-active .footer-contact-list {
    gap: 10px;
  }

  .documents-page-active .footer-contact-list li {
    font-size: .72rem;
  }

  .documents-page-active .footer-members-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 9px 0;
    font-size: .69rem;
  }

  .documents-page-active .footer-bottom {
    padding: 18px 16px 0;
  }

  .documents-page-active .footer-bottom p {
    font-size: .65rem;
    line-height: 1.5;
  }

  .documents-page-active .back-to-top {
    position: fixed !important;
    right: 14px !important;
    bottom: 14px !important;
    left: auto !important;
    top: auto !important;
    z-index: 1400 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 2px solid rgba(255, 255, 255, .52) !important;
    border-radius: 50% !important;
    background: #d60000 !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(120, 0, 0, .28) !important;
    font-size: .95rem !important;
  }
}
