/* The Printavo pages this bench plays, on top of the integration bench's
   chrome (integrator.css). Plain on purpose, like that one: this is the host,
   not the tool, and it must not borrow the tool's `--mc-*` palette. */

.pv-page {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 20px;
  min-height: 60vh;
}

.pv-muted {
  color: #6b7280;
  font-size: 12px;
}

.pv-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.pv-crumb {
  color: #6b7280;
}

.pv-title {
  margin: 0;
  font-size: 20px;
}

.pv-cta {
  margin-left: auto;
  padding: 7px 14px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.pv-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.pv-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.pv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pv-table th,
.pv-table td {
  text-align: left;
  padding: 6px 8px;
  border-top: 1px solid #f3f4f6;
  vertical-align: top;
}

.pv-table th {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}

.pv-art {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.pv-imprint {
  display: grid;
  grid-template-columns: 90px 70px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid #f3f4f6;
}

.pv-thumb {
  position: relative;
  margin: 0;
  width: 96px;
}

.pv-thumb img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.pv-thumb figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
  font-size: 10px;
  color: #4b5563;
  word-break: break-all;
}

.pv-del {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 0 6px;
  line-height: 18px;
  font-size: 14px;
}

.pv-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 1px dashed #9ca3af;
  border-radius: 6px;
  color: #4b5563;
  font-size: 12px;
  cursor: pointer;
}

.pv-add input {
  display: none;
}

.pv-flashes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.pv-flash {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.pv-flash.error {
  background: #fee2e2;
  color: #991b1b;
}

.pv-flash.notice {
  background: #e0f2fe;
  color: #075985;
}

/* edit.vue's box: h-[calc(100vh-190px)] min-h-[520px], scrolling inside. */
.pv-tool-host {
  height: calc(100vh - 190px);
  min-height: 520px;
  overflow-x: hidden;
  overflow-y: auto;
}

.pv-scenario {
  text-align: left;
}

.pv-log.bad .ev-name {
  color: #b91c1c;
}

.pv-kind {
  display: inline-block;
  min-width: 62px;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: #f3f4f6;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #374151;
}

.pv-kind.rails {
  background: #ede9fe;
}

.pv-kind.filestack {
  background: #fef9c3;
}

.pv-kind.tool {
  background: #dbeafe;
}

.pv-kind.flash {
  background: #fee2e2;
}

.pv-log summary {
  font-size: 11px;
  color: #6b7280;
  cursor: pointer;
}

@media (max-width: 640px) {
  .pv-page {
    padding: 12px;
  }

  .pv-imprint {
    grid-template-columns: 1fr;
  }

  .pv-table {
    display: block;
    overflow-x: auto;
  }
}

/* Mak's invoice: the mockups as cards, Edit on each, and one for a new one. */
.pv-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pv-section-head h3 {
  margin: 0;
}

.pv-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pv-mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.pv-mockup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.pv-mockup-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #f3f4f6;
}

.pv-mockup-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
}

.pv-mockup-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
}

.pv-edit {
  padding: 8px 14px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  color: #4338ca;
  font-weight: 600;
  text-decoration: none;
}

.pv-new-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 200px;
  border: 2px dashed #c7d2fe;
  border-radius: 12px;
  background: #f9fafb;
  color: #4338ca;
  text-decoration: none;
}

.pv-strong {
  font-weight: 600;
}

.pv-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pv-size {
  display: inline-flex;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 11px;
}
