/* Self-contained Document Library changelist mock — desktop, top bar, collapsed sidebar, Type
   filter open. Copies the cx list's look (layout.css "cx-layout list" and "App shell"): the moss
   top bar, the sidebar's icon rail, header with count and Add document,
   search, segmented toggle, dashed filter chips, the list card with file-type tiles.
   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: #f8f4ee;
  --docs-mock-head-bg: #f8f4ec;
  --docs-mock-line: #e7ddd0;
  --docs-mock-row-line: #efe7d8;
  --docs-mock-chip-bg: #fbf8f1;
  --docs-mock-chip-border: #e3d9c7;
  --docs-mock-text: #333;
  --docs-mock-muted: #666;
  --docs-mock-crumb: rgba(74, 62, 42, 0.65);
  --docs-mock-moss: #2a3d2a;
  --docs-mock-pdf: #a8452a;
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--docs-mock-bg);
  color: var(--docs-mock-text);
  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;
}

/* Top bar: the 56px moss bar (layout.css "App shell") */
.docs-changelist-mock__topbar {
  display: grid;
  flex: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.6cqi;
  height: 5.4cqi;
  padding: 0 1.8cqi;
  background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18)), var(--docs-mock-moss);
  color: #f0ead8;
}
.docs-changelist-mock__brand {
  display: flex;
  align-items: center;
  gap: 1cqi;
  min-width: 0;
}
.docs-changelist-mock__brand img {
  flex: none;
  width: 3.2cqi;
  height: 3.2cqi;
  border-radius: 0.6cqi;
}
.docs-changelist-mock__brand > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  white-space: nowrap;
}
.docs-changelist-mock__brand strong {
  overflow: hidden;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 1.9cqi;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
}
.docs-changelist-mock__brand small {
  color: rgba(240, 234, 216, 0.6);
  font-size: 0.95cqi;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.docs-changelist-mock__jump {
  display: flex;
  align-items: center;
  gap: 0.9cqi;
  width: 34cqi;
  height: 3.2cqi;
  padding: 0 0.7cqi 0 1cqi;
  border: 1px solid rgba(240, 234, 216, 0.22);
  border-radius: 0.7cqi;
  background: rgba(240, 234, 216, 0.08);
  color: #e4ddc8;
  font-size: 1.4cqi;
  white-space: nowrap;
}
.docs-changelist-mock__jump svg,
.docs-changelist-mock__actions svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.docs-changelist-mock__jump svg {
  width: 1.6cqi;
  height: 1.6cqi;
}
.docs-changelist-mock__jump kbd {
  margin-left: auto;
  padding: 0.15cqi 0.5cqi;
  border: 1px solid rgba(240, 234, 216, 0.3);
  border-radius: 0.4cqi;
  color: #e4ddc8;
  font-family: inherit;
  font-size: 1.05cqi;
}
.docs-changelist-mock__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.6cqi;
}
.docs-changelist-mock__actions svg {
  width: 1.8cqi;
  height: 1.8cqi;
}
.docs-changelist-mock__actions img {
  width: 3.2cqi;
  height: 3.2cqi;
  border-radius: 50%;
  object-fit: cover;
}

.docs-changelist-mock__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

/* Collapsed sidebar: the 64px icon rail (layout.css "App shell") */
.docs-changelist-mock__rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 0.35cqi;
  width: 6.4cqi;
  padding: 2cqi 0 1.6cqi;
  border-right: 1px solid #e6dccb;
  background: #fbf8f1;
}
.docs-changelist-mock__rail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.2cqi;
  height: 3.4cqi;
  border-radius: 0.8cqi;
  color: #3a342b;
}
.docs-changelist-mock__rail-icon svg {
  width: 2cqi;
  height: 2cqi;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.docs-changelist-mock__rail-icon.is-current {
  background: #e9e1cf;
  color: var(--docs-mock-moss);
}
.docs-changelist-mock__rail-icon.is-current svg { stroke-width: 2.2; }
.docs-changelist-mock__rail-sep {
  width: 3cqi;
  height: 1px;
  margin: 0.9cqi 0;
  background: #e6dccb;
}
.docs-changelist-mock__rail-expand {
  margin-top: auto;
  color: #6b6255;
}

.docs-changelist-mock__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 2.4cqi 2.6cqi 2cqi;
}

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

/* Title, count, Add document */
.docs-changelist-mock__header {
  display: flex;
  align-items: baseline;
  gap: 1.4cqi;
  margin-bottom: 1.8cqi;
}
.docs-changelist-mock__title {
  margin: 0;
  color: var(--docs-mock-text);
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 3.9cqi;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.docs-changelist-mock__count {
  color: var(--docs-mock-muted);
  font-size: 1.75cqi;
}
.docs-changelist-mock__add {
  align-self: center;
  margin-left: auto;
  padding: 1cqi 1.9cqi;
  border-radius: 0.9cqi;
  background: var(--docs-mock-moss);
  color: #fff;
  font-size: 1.75cqi;
  font-weight: 600;
  white-space: nowrap;
}
.docs-changelist-mock__add span { margin-right: 0.4cqi; }

/* Search, toggle and filter chips */
.docs-changelist-mock__toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1cqi;
  margin-bottom: 1.8cqi;
  white-space: nowrap;
}
.docs-changelist-mock__search {
  flex: 1 1 24cqi;
  min-width: 0;
  height: 4.4cqi;
  padding: 0 1.2cqi 0 4.2cqi;
  border: 1px solid var(--docs-mock-chip-border);
  border-radius: 0.9cqi;
  background-color: #fff;
  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.4cqi center;
  background-size: 2.1cqi;
  color: #9a9084;
  font-size: 1.7cqi;
  line-height: 4.2cqi;
  overflow: hidden;
  text-overflow: ellipsis;
}
.docs-changelist-mock__segmented {
  display: flex;
  flex: none;
  height: 4.4cqi;
  padding: 0.25cqi;
  border: 1px solid var(--docs-mock-chip-border);
  border-radius: 0.9cqi;
  background: var(--docs-mock-chip-bg);
}
.docs-changelist-mock__segmented span {
  display: flex;
  align-items: center;
  padding: 0 1.1cqi;
  border-radius: 0.7cqi;
  color: var(--docs-mock-muted);
  font-size: 1.65cqi;
  font-weight: 500;
}
.docs-changelist-mock__segmented span.is-selected {
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 28, 23, 0.12);
  color: var(--docs-mock-text);
  font-weight: 600;
}
.docs-changelist-mock__segmented em {
  margin-left: 0.5cqi;
  font-style: normal;
  font-weight: 400;
  opacity: 0.85;
}
.docs-changelist-mock__filter {
  position: relative;
  flex: none;
}
.docs-changelist-mock__chip {
  display: flex;
  align-items: center;
  gap: 0.8cqi;
  height: 4.4cqi;
  padding: 0 1.5cqi;
  border: 1px dashed #cbbfa9;
  border-radius: 999px;
  background: var(--docs-mock-chip-bg);
  color: #4a4336;
  font-size: 1.65cqi;
  font-weight: 500;
}
.docs-changelist-mock__filter.is-open .docs-changelist-mock__chip {
  border-color: var(--docs-mock-muted);
}
/* Chevron, pointing up while open */
.docs-changelist-mock__chip i {
  width: 0.9cqi;
  height: 0.9cqi;
  margin-top: -0.4cqi;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.docs-changelist-mock__filter.is-open .docs-changelist-mock__chip i {
  margin-top: 0.4cqi;
  transform: rotate(225deg);
}
.docs-changelist-mock__menu {
  position: absolute;
  top: calc(100% + 0.8cqi);
  left: 0;
  min-width: 22cqi;
  margin: 0;
  padding: 0.7cqi;
  border: 1px solid var(--docs-mock-line);
  border-radius: 1.2cqi;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0)), var(--docs-mock-card-bg);
  box-shadow: 0 1.2cqi 3cqi rgba(31, 28, 23, 0.16);
  list-style: none;
}
.docs-changelist-mock__menu li {
  margin: 0;
  padding: 0.85cqi 1.2cqi;
  border-radius: 0.7cqi;
  color: var(--docs-mock-text);
  font-size: 1.7cqi;
}
/* Minutes, as if under the pointer */
.docs-changelist-mock__menu li:nth-child(6) {
  background: #f1ebdf;
}
.docs-changelist-mock__menu li.is-selected {
  color: var(--docs-mock-moss);
  font-weight: 600;
}

/* List card */
.docs-changelist-mock__card {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--docs-mock-line);
  border-radius: 1.4cqi;
  background: var(--docs-mock-card-bg);
}
.docs-changelist-mock__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.docs-changelist-mock__table th,
.docs-changelist-mock__table td {
  padding: 0 1cqi;
  border-bottom: 1px solid var(--docs-mock-row-line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.docs-changelist-mock__table th {
  height: 4.4cqi;
  border-bottom-color: var(--docs-mock-line);
  background: var(--docs-mock-head-bg);
  color: var(--docs-mock-muted);
  font-size: 1.5cqi;
  font-weight: 600;
}
.docs-changelist-mock__table td {
  height: 6.4cqi;
  color: var(--docs-mock-text);
  font-size: 1.65cqi;
}
.docs-changelist-mock__th-check,
.docs-changelist-mock__td-check {
  width: 4.6cqi;
  padding-left: 1.6cqi !important;
  padding-right: 0 !important;
}
.docs-changelist-mock__table th:nth-child(3) { width: 17%; }
.docs-changelist-mock__table th:nth-child(4) { width: 19%; }
.docs-changelist-mock__th-menu,
.docs-changelist-mock__td-menu {
  width: 4.6cqi;
  color: var(--docs-mock-muted) !important;
  text-align: center !important;
}
.docs-changelist-mock__check {
  display: block;
  width: 1.9cqi;
  height: 1.9cqi;
  border: 1px solid #c4b8a8;
  border-radius: 0.35cqi;
  background: #fff;
}

/* Title cell: PDF tile, title and file name */
.docs-changelist-mock__doc {
  display: flex;
  align-items: center;
  gap: 1.2cqi;
  min-width: 0;
}
.docs-changelist-mock__tile {
  flex: none;
  width: 3.9cqi;
  height: 3.9cqi;
  border-radius: 0.8cqi;
  background-color: color-mix(in srgb, var(--docs-mock-pdf) 12%, var(--docs-mock-chip-bg));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23964d34' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 2.1cqi;
}
.docs-changelist-mock__doc-text,
.docs-changelist-mock__added {
  display: flex;
  flex-direction: column;
  gap: 0.25cqi;
  min-width: 0;
}
.docs-changelist-mock__doc-text strong {
  overflow: hidden;
  color: var(--docs-mock-text);
  font-size: 1.7cqi;
  font-weight: 600;
  text-overflow: ellipsis;
}
.docs-changelist-mock__doc-text small,
.docs-changelist-mock__added small {
  overflow: hidden;
  color: var(--docs-mock-muted);
  font-size: 1.4cqi;
  text-overflow: ellipsis;
}

.docs-changelist-mock__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 1.3cqi 1.6cqi;
  color: var(--docs-mock-muted);
  font-size: 1.5cqi;
}
.docs-changelist-mock__footer b {
  display: inline-block;
  margin-left: 0.8cqi;
  padding: 0.4cqi 1.2cqi;
  border: 1px solid var(--docs-mock-chip-border);
  border-radius: 0.7cqi;
  background: #fff;
  color: var(--docs-mock-text);
  font-weight: 500;
}
