.news-filter-wrap { border:1px solid #ccc; padding:12px; border-radius:6px; background:#fafafa; }
.filters select { margin-right:10px; padding:5px; }
.news-list { list-style:none; margin:0; padding:0; }
.news-list li { padding:6px 0; border-bottom:1px solid #eee; display:flex; justify-content:space-between; }
.news-list a { font-weight:bold; text-decoration:none; }
.news-list .date { color:#000; font-size:13px; }
.loading { font-style:italic; }
.no-results { color:#a00; font-weight:bold; }


/*Archive Table */

:root{
  --dmer-blue-dark: #305a91;
  --dmer-blue-light: #4f78b8;
  --dmer-alt-row: #f7faff;
  --focus-outline: #ffbf47;
  --border-light: #d7e2f3;
}

/* Table Base */

.archive-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-family: "Noto Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  border-spacing: 0;
  border: 2px solid var(--dmer-blue-dark);
  table-layout: auto; /* allow flexible column widths */
  margin-top: 20px;
}

/* Caption */
.archive-table caption {
  caption-side: top;
  text-align: center;
  font-weight: 700;
  color: var(--dmer-blue-dark);
  padding: 0.6rem;
  font-size: 21px;
}

/* Header */
.archive-table thead tr th {
  background: linear-gradient(90deg, var(--dmer-blue-dark), var(--dmer-blue-light));
  color: #fff;
  font-weight: 600;
  padding: 12px;
  font-size: 1.05em;
  text-align: center;
  white-space: nowrap;
}

/* Cells */
.archive-table th,
.archive-table td {
  border: 1px solid var(--dmer-blue-dark);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

/* Alternate rows */
.archive-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Links */
.archive-table a {
  color: var(--dmer-blue-dark);
  text-decoration: none;
}
.archive-table a:hover {
  text-decoration: underline;
}

/* Buttons - PDF / View */
.news-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: #0b3d91;
  border-radius: 6px;
  padding: 6px 10px;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.news-more-link .link-text { display: inline-block; }

/* PDF style */
.news-more-link.pdf {
  color: #b30000;
  background: #fff3f3;
  border: 1px solid #f0b4b4;
}
.news-more-link.pdf:hover { background: #ffe1e1; color: #900; }

/* View style */
.news-more-link.view {
  color: #004a99;
  background: #e8f2ff;
  border: 1px solid #b5d1ff;
}
.news-more-link.view:hover { background: #d6e9ff; color: #003366; }

/* Sr No, Date, File Size - keep nowrap and centered */
.archive-table td[data-label="Sr. No."],
.archive-table td[data-label="Date"],
.archive-table td[data-label="File Size"],
.archive-table th:nth-child(1),
.archive-table th:nth-child(3),
.archive-table th:last-child {
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

/* Title cell - allow word breaking for long titles */
.archive-table td.cell-title a {
  word-break: break-word;
  white-space: normal;
  display: inline-block;
  max-width: 100%;
}

/* Prevent icon wrapping in small screens */
.news-more-link i {
  font-size: 1em;
  line-height: 1;
  display: inline-block;
}

/* Responsive layout for mobile - stack rows */
@media screen and (max-width: 768px) {
  .archive-table,
  .archive-table thead,
  .archive-table tbody,
  .archive-table th,
  .archive-table td,
  .archive-table tr {
    display: block;
    width: 100%;
  }
  .archive-table thead { display: none; }
  .archive-table tr {
    margin-bottom: 1rem;
    border: 2px solid var(--dmer-blue-dark);
    border-radius: 8px;
    padding: 0.5rem;
  }
  .archive-table td {
    position: relative;
    padding-left: 45%;
    border: none;
    border-bottom: 1px solid #ddd;
    white-space: normal;
    text-align: left;
  }
  .archive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    font-weight: bold;
    color: var(--dmer-blue-dark);
  }
  .archive-table td[data-label="Sr. No."],
  .archive-table td[data-label="Date"],
  .archive-table td[data-label="File Size"] {
    padding-left: 0.6rem;
  }
}

.news_pagination
{
    margin-top: 20px;
}
/* Small whitespace/tightness helpers */
.wpnw-small { font-size: 0.9em; color: #555; }

.archive-table td:first-child {
  white-space: nowrap;
}