/* View route stylesheet placeholder for archive_aup. */

.nav-dropdown.open .nav-dropdown-content {
  display: block;
}

.sys-pages-dropdown.open .sys-pages-dropdown-content {
  display: block;
}

.aup-archive-filter-form {
  display: flex;
  gap: 1em;
  align-items: flex-end;
  margin-bottom: 1.5em;
}

.aup-archive-filter-form label {
  font-weight: 500;
}

.aup-archive-filter-form input[type="date"] {
  width: 200px;
  font-size: 1.1rem;
  padding: 0.6rem;
}

.aup-archive-filter-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
  background: #1d87f8;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.aup-archive-filter-btn:hover, .aup-archive-filter-btn:focus {
  background: #0056b3;
}

.aup-archive-reset-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
  background: #eee;
  color: #333;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  margin-left: 0.5em;
  transition: background 0.2s;
}

.aup-archive-reset-btn:hover, .aup-archive-reset-btn:focus {
  background: #ccc;
}

.aup-archive-list-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: #f0f4fa;
  font-weight: 600;
  padding: 0.8em 1em;
  border-bottom: 1px solid #e0e0e0;
}

.aup-archive-list-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  padding: 0.7em 1em;
  border-bottom: 1px solid #f0f0f0;
}

.aup-archive-list-row:last-child {
  border-bottom: none;
}

body.dark-mode .aup-archive-list-header {
  border-bottom: 1px solid #333;
  background: #1a1d22 !important;
  color: #7fc1ff !important;
}

body.dark-mode .aup-archive-list-row {
  border-bottom: 1px solid #222;
  color: #e0e0e0;
}

.aup-archive-diff-header, .aup-archive-diff-row {
  display: grid !important;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
}

.aup-archive-diff-header > div, .aup-archive-diff-row > div {
  border-left: 1px solid #d0d0d0;
  padding: 0.45em 0.7em;
  background: inherit;
  min-width: 0;
  overflow-wrap: break-word;
}

.aup-archive-diff-header > div:first-child, .aup-archive-diff-row > div:first-child {
  border-left: none;
}

.aup-archive-diff-header {
  border-bottom: 1px solid #bdbdbd;
  font-weight: 600;
  background: #f8fafd !important;
  color: #1a4a7a;
}

.aup-archive-diff-row {
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.aup-archive-diff-row:last-child {
  border-bottom: none;
}

.aup-archive-diff-row.aup-diff-added {
  background: #eaffea;
  color: #1a5c1a;
}

.aup-archive-diff-row.aup-diff-removed {
  background: #ffeaea;
  color: #a11;
  font-style: italic;
  text-decoration: line-through;
}

.aup-archive-diff-row.aup-diff-changed {
  background: #fffbe6;
}

body.dark-mode .aup-archive-diff-header {
  background: #1a1d22 !important;
  color: #7fc1ff !important;
  border-bottom: 1px solid #333;
}

body.dark-mode .aup-archive-diff-row {
  background: #23272e;
  color: #eee;
  border-bottom: 1px solid #333;
}

.aup-label {
  color: #888;
  font-size: 0.97em;
  font-weight: 500;
  margin-right: 0.3em;
}

.aup-pdf-block {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.aup-pdf-block-sep {
  margin-top: 22px;
  margin-bottom: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  height: 0;
  border-radius: 18px 18px 0 0;
  overflow: visible;
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  min-height: 38px;
}

.aup-pdf-block-sep:first-child {
  margin-top: 0;
}

.aup-archive-diff-block {
  margin: 0 0 2em 0;
  padding: 1.5em 0 0 0;
  background: #f8fafd;
  border-left: 4px solid #007bff;
  border-radius: 0 0 8px 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.aup-diff-added {
  background: #eaffea;
  color: #1a5c1a;
}

.aup-diff-removed {
  background: #ffeaea;
  color: #a11;
  font-style: italic;
  text-decoration: line-through;
}

.aup-diff-changed {
  background: #fffbe6;
}

.aup-strike {
  color: #a11;
  font-style: italic;
  text-decoration: line-through;
  margin-right: 0.4em;
}

.aup-green {
  color: #1a5c1a;
  font-weight: bold;
}

body.dark-mode .aup-archive-diff-block {
  background: #1e1e1e;
  border-left: 4px solid #4dabff;
}

body.dark-mode .aup-diff-added {
  background: #1e3a1e !important;
  color: #7fff7f !important;
}

body.dark-mode .aup-diff-removed {
  background: #3a1e1e !important;
  color: #ff7f7f !important;
}

body.dark-mode .aup-diff-changed {
  background: #3a3a1e !important;
  color: #ffe066 !important;
}

body.dark-mode .aup-strike {
  color: #ff7f7f !important;
}

body.dark-mode .aup-green {
  color: #7fff7f !important;
}

@media (max-width: 1100px) {
  .aup-archive-diff-header, .aup-archive-diff-row {
    font-size: 0.97em;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr 1fr 1fr 1fr;
  }

}

@media (max-width: 800px) {
  .aup-archive-diff-header, .aup-archive-diff-row {
    font-size: 0.93em;
    grid-template-columns: 1.7fr 1.7fr 1fr 1fr 1fr 1fr 1fr 1fr;
  }

}
