@media (max-width: 1300px) {
  body p,
  body a {
    font-size: 1.1rem;
  }
}

@media (max-width: 1280.98px) {
  body p,
  body a {
    font-size: 1.125rem;
  }
}

@media (max-width: 1024.98px) {
  body p,
  body a {
    font-size: 1.286rem;
  }
}

:root {
  --color-width: #00197e;
}

body.theme-dark {
  --color-width: #ffffff;
}
.audit-container {
  width: 100%;
}

.audit-wrapper-container {
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  gap: 36px;
  margin: 0 auto;
  padding: 50px clamp(40px, 7vw, 100px);
}

.audit-wrapper-container p {
  line-height: 34px;
  text-align: center;
  text-transform: capitalize;
  max-width: 858px;
  margin: 0 auto;
}
.audit-status {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.audit-status h2 {
  font-size: 1.778rem;
  text-align: center;
}
/* Wrapper for overflow safety */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* Table base */
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
}

/* Header */
.audit-table thead th {
  background: var(--blue-bg); /* deep blue */
  color: var(--white-text);
  font-size: 20px;
  font-weight: 500;
  padding: 10.5px 10px;
  width: 248px;
  max-height: 59px;
  text-align: center;
  z-index: 9999;
}

.audit-table tbody tr {
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  border-left: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
}
/* Body cells */
.audit-table tbody td {
  font-size: 18px;
  padding: 18px 10px;
  text-align: center;
}

@media (max-width: 1280.98px) {
  .audit-wrapper-container {
    padding: 50px 50px;
  }
}

@media (max-width: 1024.98px) {
  .audit-wrapper-container {
    padding: 50px 40px;
    gap: 24px;
  }

  .audit-wrapper-container p {
    font-size: 1.286rem;
  }
  
  .audit-status h2 {
    font-size: 1.714rem;
  }
  .audit-table thead th {
    padding: 12px 6px;
  }
}
@media (max-width: 769px) {
  .audit-wrapper-container p {
    max-width: 592px;
  }
}
@media (max-width: 700px) {
  .audit-wrapper-container {
    padding: 36px 16px;
  }

  .table-wrapper {
    overflow: hidden;
  }

  .audit-table {
    display: flex;
    width: 100%;
    border-collapse: collapse;
    line-height: 20px;
  }

  /* LEFT BLUE COLUMN (HEADERS) */
  .audit-table thead {
    display: flex;
    flex-direction: column;
    flex: 0 0 123px; /* fixed sidebar width */
    background: var(--blue-bg);
  }

  .audit-table thead tr {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .audit-table th {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 16px 8px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* RIGHT SCROLLABLE DATA */
  .audit-table tbody {
    display: flex;
    flex-direction: row;
    flex: 1;
  }

  .audit-table tbody tr {
    display: flex;
    flex-direction: column;
    min-width: 115px;
    border-right: 1px solid rgba(0, 25, 126, 0.2);
  }

  .audit-table td {
    font-size: 16px;
    padding: 16px 8px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid rgba(0, 25, 126, 0.2);
  }
  .audit-table thead th {
    width: 117px;
    padding: 8px 4px;
    font-size: 16px;
  }
  /* Remove last borders */
  .audit-table td:last-child {
    border-bottom: none;
  }

  /* SCROLLBAR */
  .audit-scroll::-webkit-scrollbar {
    height: 14px;
  }

  .audit-scroll::-webkit-scrollbar-thumb {
    background-color: var(--color-width);
  }

  .audit-scroll {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 12px; /* THIS creates space below table */
  }
  .audit-table tbody td {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .audit-wrapper-container P {
    font-size: 1.3334rem;
  }
  .audit-status {
    gap: 12px;
  }
}
