/* /funcionalidades/galeria/ — the organization's library. What
   pantallas-demo.css does not already draw: "Subir como" beside its picker,
   the bulk-selection bar with its danger button, and the tiles — the image or
   the document's type, the checkbox over the corner, the three lines under
   it and the four compact buttons. */

.pn-frame[data-screen="gallery"] .md-head-side { flex-wrap: nowrap; }

.pn-frame[data-screen="gallery"] .gl-upload-as {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ac-mut);
  font-size: 11px;
  white-space: nowrap;
}

.pn-frame[data-screen="gallery"] .gl-upload-as .md-select {
  justify-content: space-between;
  width: 141px;
}

.pn-frame[data-screen="gallery"] .md-tools .md-search { width: 179px; }

.pn-frame[data-screen="gallery"] .md-tools .md-select {
  justify-content: space-between;
  width: 128px;
}

.pn-frame[data-screen="gallery"] .md-btn.is-danger {
  border-color: var(--ac-bad);
  background: var(--ac-bad);
  color: #fff;
}

/* ---------- the checkbox, on the bar and on every tile ---------- */

.pn-frame[data-screen="gallery"] .gl-box {
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border: 1px solid #c9ccd3;
  border-radius: 3px;
  background: #fff;
}

.pn-frame[data-screen="gallery"] .gl-box.is-on {
  border-color: var(--ac-accent);
  background: var(--ac-accent);
  color: #fff;
}

.pn-frame[data-screen="gallery"] .gl-tick {
  width: 9px;
  height: 9px;
  stroke-width: 3;
}

/* ---------- the bulk bar ---------- */

.pn-frame[data-screen="gallery"] .gl-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 13px;
  border-bottom: 1px solid var(--ac-line);
  background: #fbfbfc;
}

.pn-frame[data-screen="gallery"] .gl-bulk-all,
.pn-frame[data-screen="gallery"] .gl-bulk-side {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pn-frame[data-screen="gallery"] .gl-bulk-all {
  color: var(--ac-mut);
  font-size: 9.5px;
  font-weight: 550;
}

.pn-frame[data-screen="gallery"] .gl-bulk-side > b {
  margin-right: 2px;
  font-size: 9.5px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

/* ---------- the tiles ---------- */

.pn-frame[data-screen="gallery"] .gl-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 13px;
}

.pn-frame[data-screen="gallery"] .gl-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ac-line);
  border-radius: 7px;
  background: #fff;
}

.pn-frame[data-screen="gallery"] .gl-tile.is-picked {
  border-color: var(--ac-accent);
  box-shadow: 0 0 0 2px rgb(70 117 87 / 20%);
}

.pn-frame[data-screen="gallery"] .gl-pick {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--ac-line);
  border-radius: 5px;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
}

.pn-frame[data-screen="gallery"] .gl-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 102px;
  background: #f8f8f9;
}

.pn-frame[data-screen="gallery"] .gl-media svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pn-frame[data-screen="gallery"] .gl-media.is-doc {
  flex-direction: column;
  gap: 5px;
}

.pn-frame[data-screen="gallery"] .gl-media.is-doc .gl-doc-icon {
  width: 29px;
  height: 29px;
  color: var(--ac-dim);
}

.pn-frame[data-screen="gallery"] .gl-tag {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--ac-faint);
  color: var(--ac-mut);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.pn-frame[data-screen="gallery"] .gl-foot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px 8px 5px;
  border-top: 1px solid var(--ac-line);
}

.pn-frame[data-screen="gallery"] .gl-name,
.pn-frame[data-screen="gallery"] .gl-use,
.pn-frame[data-screen="gallery"] .gl-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-frame[data-screen="gallery"] .gl-name {
  color: var(--ac-ink);
  font-size: 9.5px;
  font-weight: 550;
}

.pn-frame[data-screen="gallery"] .gl-use {
  margin-top: 3px;
  color: var(--ac-dim);
  font-size: 8.8px;
}

.pn-frame[data-screen="gallery"] .gl-use.is-used {
  color: var(--ac-warn);
  font-weight: 550;
}

.pn-frame[data-screen="gallery"] .gl-use-icon {
  width: 9.5px;
  height: 9.5px;
  margin-right: 3px;
  vertical-align: -1px;
}

.pn-frame[data-screen="gallery"] .gl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.pn-frame[data-screen="gallery"] .gl-meta {
  min-width: 0;
  color: var(--ac-dim);
  font-size: 8.8px;
}

.pn-frame[data-screen="gallery"] .gl-acts {
  display: flex;
  flex-shrink: 0;
}

.pn-frame[data-screen="gallery"] .gl-act {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--ac-mut);
}

.pn-frame[data-screen="gallery"] .gl-act.is-danger { color: var(--ac-bad); }

.pn-frame[data-screen="gallery"] .gl-act-icon {
  width: 13.5px;
  height: 13.5px;
}
