/* My PDFs (01Shared/PdfSettings.aspx): the look tiles with their live thumbnails, the color swatches and the save bar.
   Colors come from Calculator.css / Settings2.css, so the light and dark looks both work. */
.pdfs .looks-head { align-items: center; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; margin-bottom: 6px; }
.pdfs .looks-head h2 { margin: 0; }
.pv-detail { align-items: center; display: flex; flex-wrap: wrap; font-size: .88rem; gap: 4px 14px; }
.pv-detail > span { color: var(--muted); font-weight: 600; }
.pv-detail label { align-items: center; cursor: pointer; display: inline-flex; gap: 5px; white-space: nowrap; }

.look-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); margin: 10px 0 4px; }
.look-tile { background: var(--field); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 10px; position: relative; }
.look-tile:hover { border-color: var(--field-line); }
.look-tile > input { opacity: 0; pointer-events: none; position: absolute; }
.look-tile:has(> input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.look-tile:has(> input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.look-thumb { aspect-ratio: 8.5 / 11; background: #fff; border: 1px solid var(--line); border-radius: 4px; display: block; overflow: hidden; position: relative; }
.look-thumb canvas { display: block; height: auto; width: 100%; }
.look-wait { bottom: 6px; color: #5b6b82; font-size: .75rem; left: 0; position: absolute; right: 0; text-align: center; }
.look-tile:not(.busy) .look-wait { background: rgba(255, 255, 255, .85); bottom: 0; padding: 2px 0; }
.look-wait:empty { display: none; }
.look-tile.busy canvas { opacity: .45; }
.look-name { align-items: center; display: flex; font-weight: 700; gap: 8px; justify-content: space-between; margin-top: 4px; }
.look-chosen { background: var(--brand); border-radius: 999px; color: #fff; display: none; font-size: .7rem; font-weight: 600; padding: 1px 8px; }
.look-tile:has(> input:checked) .look-chosen { display: inline-block; }
.look-desc { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.look-open { font-size: .82rem; margin-top: auto; padding-top: 4px; }
.pdfs .look-note { margin: 8px 0 0; }

.pdfs .acct-grid { margin-top: 16px; }
.pdfs .row select { flex: 0 1 260px; min-width: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.swatch { align-items: center; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; display: inline-flex; font-size: .85rem; gap: 6px; padding: 4px 10px 4px 6px; position: relative; }
.swatch > input[type=radio] { opacity: 0; pointer-events: none; position: absolute; }
.swatch:has(> input[type=radio]:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.swatch:has(> input[type=radio]:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.swatch i { border-radius: 50%; display: inline-block; height: 18px; width: 18px; }
.swatch input[type=color] { background: none; border: 0; cursor: pointer; height: 24px; padding: 0; width: 28px; }
#colorNote.warn { color: var(--alert); font-weight: 600; }
.pdfs .checks { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.pdfs .blurb { background: var(--field); border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; margin: 6px 0 8px; max-height: 9em; overflow: auto; padding: 8px 10px; }
.pdfs .save-bar { align-items: center; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; position: sticky; z-index: 5; }
.pdfs .save-bar .acct-msg { margin-top: 0; }
