/* 8.ro */
/* The PDF tools' shared pieces (tools/_shared, named in each tool.json):
   the grid of pages, the password, the list of documents. */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; margin: 0; padding: 16px 18px 20px; list-style: none; }
.pg-cell { position: relative; display: grid; gap: 6px; justify-items: center; align-content: start; }
.pg-box { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.pg-c { position: absolute; inset: 0; display: block; max-width: 84%; max-height: 84%; width: auto; height: auto; margin: auto; background: #fff; box-shadow: 0 6px 16px -8px rgb(0 0 0 / .45); transform: rotate(var(--turn, 0deg)); transition: transform .2s var(--ease); }
.pg-c:not(.is-drawn) { width: 59%; height: 84%; }
.pg-foot { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; }
.pg-n { font: .8125rem/1 var(--mono); color: var(--muted); }
.pg-pick { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.pg-cell.is-picked .pg-box { box-shadow: inset 0 0 0 3px var(--accent); background: var(--accent-soft); }
.pg-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; }
.pg-ic:hover { border-color: var(--accent-line); color: var(--accent-ink); }
.pg-ic:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg-ic .i { width: 18px; height: 18px; }
.pg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.pg-bar .im-hint { margin-right: auto; }
.pw-box { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); }
.pw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.pw-row .field { flex: 1 1 12rem; }
.pd-handle { display: inline-grid; place-items: center; width: 30px; height: 44px; color: var(--faint); cursor: grab; touch-action: none; }
.pd-handle:active { cursor: grabbing; }
.pd-row.is-moving { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .pg-c { transition: none; } }
.pd-row { grid-template-columns: 30px 52px minmax(0, 1fr); }
.pd-row .im-acts { grid-column: 3; }
@media (min-width: 720px) { .pd-row { grid-template-columns: 30px 52px minmax(0, 1fr) auto; } .pd-row .im-acts { grid-column: auto; } }
.pd-thumb { background: var(--surface-2); }
.pd-range { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: .8125rem; }
.pd-range .field-in { flex: 1 1 auto; max-width: 16rem; padding-block: 6px; font: .875rem var(--mono); }
.pd-range .field-in.is-err { border-color: var(--err); }
.pg-grid:not(.is-picking) .pg-pick { display: none; }
.pg-grid.is-picking .pg-box { cursor: pointer; }
.pg-tag { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 600 .6875rem/1.5 var(--mono); }
