/* Self-contained Document Library changelist mock — desktop, filter open, no sidebar.
   Pair with templates/product_pages/includes/mocks/document_library_changelist.html
   Expects product fonts: --font-display (Fraunces), --font-body (DM Sans). */

.docs-changelist-mock {
  --docs-mock-bg: #f8f4ee;
  --docs-mock-card-bg: #fff;
  --docs-mock-border: #e7ddd0;
  --docs-mock-shadow: 0 8px 18px rgba(40, 32, 22, 0.06), 0 1px 2px rgba(40, 32, 22, 0.04);
  --docs-mock-link: #1a1a1a;
  --docs-mock-quiet: #6f6254;
  --docs-mock-crumb: rgba(74, 62, 42, 0.65);
  --docs-mock-crumb-current: #3d3428;
  --docs-mock-title: #2a241c;
  --docs-mock-moss: #2a3d2a;
  --docs-mock-zebra: color-mix(in srgb, var(--docs-mock-bg) 55%, #fff);
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--docs-mock-bg);
  color: var(--docs-mock-title);
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 2.35cqi;
  line-height: 1.25;
  overflow: hidden;
}
.docs-changelist-mock *,
.docs-changelist-mock *::before,
.docs-changelist-mock *::after {
  box-sizing: border-box;
}

.docs-changelist-mock__body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.docs-changelist-mock__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 2.4cqi 2.4cqi 1.4cqi;
  overflow: hidden;
}

.docs-changelist-mock__crumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.7cqi;
  margin: 0 0 1.4cqi;
  padding: 0.15cqi 0;
  color: var(--docs-mock-crumb);
  font-size: 1.95cqi;
  line-height: 1.35;
  white-space: nowrap;
}
.docs-changelist-mock__sep { flex: 0 0 auto; opacity: 0.75; }
.docs-changelist-mock__crumb-current {
  color: var(--docs-mock-crumb-current);
  font-weight: 600;
}

.docs-changelist-mock__header {
  display: flex;
  align-items: center;
  margin-bottom: 1.3cqi;
}
.docs-changelist-mock__title {
  margin: 0;
  color: var(--docs-mock-title);
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 3.8cqi;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.docs-changelist-mock__search {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: min(52cqi, 100%);
  margin-bottom: 1.5cqi;
  padding: 1.1cqi 1.6cqi 1.1cqi 4.6cqi;
  border: 1px solid var(--docs-mock-border);
  border-radius: 1cqi;
  background-color: color-mix(in srgb, #fff 72%, var(--docs-mock-bg));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1.5cqi center;
  background-size: 2.3cqi;
  color: #9a9084;
  font-size: 2.05cqi;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-changelist-mock__results {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--docs-mock-border);
  border-radius: 8px;
  background: var(--docs-mock-card-bg);
  box-shadow: var(--docs-mock-shadow);
}
.docs-changelist-mock__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.docs-changelist-mock__table th,
.docs-changelist-mock__table td {
  padding: 1.05cqi 1.1cqi;
  border-bottom: 1px solid color-mix(in srgb, var(--docs-mock-border) 85%, transparent);
  text-align: left;
  vertical-align: middle;
  font-size: 1.85cqi;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--docs-mock-quiet);
}
.docs-changelist-mock__table th {
  background: color-mix(in srgb, var(--docs-mock-bg) 70%, #fff);
  color: var(--docs-mock-title);
  font-size: 1.7cqi;
  font-weight: 600;
}
.docs-changelist-mock__table tbody tr:nth-child(even) td {
  background: var(--docs-mock-zebra);
}
.docs-changelist-mock__table tbody tr:first-child td {
  padding-top: 1.55cqi;
}
.docs-changelist-mock__table tbody tr:last-child td {
  border-bottom: 0;
}
.docs-changelist-mock__th-check,
.docs-changelist-mock__td-check {
  width: 4cqi;
  padding-left: 1.2cqi !important;
  padding-right: 0.3cqi !important;
}
.docs-changelist-mock__table th:nth-child(2),
.docs-changelist-mock__table td:nth-child(2) {
  width: 34%;
}
.docs-changelist-mock__table th:nth-child(3),
.docs-changelist-mock__table td:nth-child(3) {
  width: 22%;
}
.docs-changelist-mock__table th:nth-child(4),
.docs-changelist-mock__table td:nth-child(4) {
  width: 14%;
}
.docs-changelist-mock__table th:nth-child(5),
.docs-changelist-mock__table td:nth-child(5) {
  width: 14%;
}
.docs-changelist-mock__check {
  display: block;
  width: 2cqi;
  height: 2cqi;
  border: 1px solid #c4b8a8;
  border-radius: 0.3cqi;
  background: #fff;
}
.docs-changelist-mock__row-title {
  color: var(--docs-mock-link);
  /* font-weight: 600; */
}
.docs-changelist-mock__count {
  flex: 0 0 auto;
  margin: 1.6cqi 0 0.6cqi;
  padding: 0.4cqi 0.2cqi 0.8cqi 1.6cqi;
  color: var(--docs-mock-quiet);
  font-size: 1.85cqi;
  line-height: 1.2;
}

/* Filter panel — overlays the full right side over the list. */
.docs-changelist-mock__filter {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 34cqi;
  max-width: 46%;
  padding: 2.2cqi 1.8cqi 1.6cqi;
  border-left: 1px solid var(--docs-mock-border);
  background: var(--docs-mock-bg);
  box-shadow: -8px 0 22px rgba(40, 32, 22, 0.12);
  overflow: hidden;
}
.docs-changelist-mock__filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5cqi;
  color: var(--docs-mock-title);
  font-size: 2.15cqi;
}
.docs-changelist-mock__filter-close {
  font-size: 2.6cqi;
  line-height: 1;
  color: var(--docs-mock-quiet);
}
.docs-changelist-mock__filter-group {
  margin-bottom: 1.5cqi;
}
.docs-changelist-mock__filter-group h4 {
  margin: 0 0 0.7cqi;
  color: color-mix(in srgb, var(--docs-mock-moss) 72%, var(--docs-mock-quiet) 28%);
  font-size: 1.75cqi;
  font-weight: 600;
  text-transform: none;
}
.docs-changelist-mock__filter-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-changelist-mock__filter-group li {
  margin: 0;
  padding: 0.45cqi 0.6cqi 0.45cqi 1.1cqi;
  border-left: 2px solid transparent;
  color: var(--docs-mock-quiet);
  font-size: 1.8cqi;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.docs-changelist-mock__filter-group li.is-selected {
  border-left-color: color-mix(in srgb, var(--docs-mock-moss) 70%, var(--docs-mock-quiet) 30%);
  color: color-mix(in srgb, var(--docs-mock-moss) 68%, var(--docs-mock-quiet) 32%);
  font-weight: 500;
}
