/* The PDF a calculator just made, over the page (JS/PdfViewer.js). */
html.qq-pdfv-open { overflow: hidden; }
.qq-pdfv { align-items: stretch; background: rgba(10, 20, 36, .62); box-sizing: border-box; display: flex; left: 0; top: 0; height: 100%; width: 100%; justify-content: center; padding: 24px; position: fixed; z-index: 2000; }
.qq-pdfv[hidden] { display: none; }
.qq-pdfv-panel { background: #f1f4f9; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; max-width: 1120px; overflow: hidden; width: 100%; }
.qq-pdfv-head { align-items: center; background: #fff; border-bottom: 1px solid #d9e1ec; display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; padding: 12px 16px; }
.qq-pdfv-title { min-width: 0; }
.qq-pdfv-name { color: #13233a; display: block; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qq-pdfv-pages { color: #5b6b80; font-size: .85rem; }
.qq-pdfv-tools { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.qq-pdfv-btn { background: #fff; border: 1px solid #c3cfdf; border-radius: 8px; color: #13233a; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 600; padding: 7px 14px; text-decoration: none; white-space: nowrap; }
.qq-pdfv-btn:hover { border-color: #0a5bd6; color: #0a4fb8; }
.qq-pdfv-primary { background: #0a5bd6; border-color: #0a5bd6; color: #fff; }
.qq-pdfv-primary:hover { background: #0849ad; border-color: #0849ad; color: #fff; }
.qq-pdfv-close { background: none; border: 0; border-radius: 8px; color: #5b6b80; cursor: pointer; font-size: 1.7rem; line-height: 1; margin-left: 4px; padding: 2px 10px 6px; }
.qq-pdfv-close:hover { background: #eef2f7; color: #13233a; }
.qq-pdfv-body { align-items: center; display: flex; flex: 1; flex-direction: column; gap: 16px; overflow: auto; padding: 16px; }
.qq-pdfv-page { background: #fff; box-shadow: 0 2px 10px rgba(19, 35, 58, .18); height: auto; max-width: 100%; }
.qq-pdfv-wait { color: #5b6b80; margin: 40px 0; }
html.dark .qq-pdfv-panel { background: #0e1828; }
html.dark .qq-pdfv-head { background: #16223a; border-color: #2b3d5a; }
html.dark .qq-pdfv-name { color: #eef3fb; }
html.dark .qq-pdfv-pages, html.dark .qq-pdfv-wait { color: #9fb0c8; }
html.dark .qq-pdfv-btn:not(.qq-pdfv-primary) { background: transparent; border-color: #3a4f70; color: #eef3fb; }
html.dark .qq-pdfv-close { color: #c3cfe0; }
html.dark .qq-pdfv-close:hover { background: #22324f; color: #fff; }
@media (max-width: 640px) {
    .qq-pdfv { padding: 0; }
    .qq-pdfv-panel { border-radius: 0; }
    .qq-pdfv-head { padding: 10px 12px; position: relative; }
    .qq-pdfv-title { padding-right: 44px; width: 100%; }
    .qq-pdfv-close { position: absolute; right: 6px; top: 6px; }
    .qq-pdfv-tools { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .qq-pdfv-tools.four, .qq-pdfv-tools.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qq-pdfv-tools.one { grid-template-columns: minmax(0, 1fr); }
    .qq-pdfv-tools .qq-pdfv-btn { font-size: .85rem; padding: 8px 4px; text-align: center; white-space: normal; }
    .qq-pdfv-body { padding: 10px; }
}

/* The card's choices under the header: the PDF type, Look, Font, Color, Language, Co-brand, then the PDF title (last, so a
   computer's bar wraps it onto a full-width row of its own, not a list). A tinted bar with firm
   labels and borders, so it stands apart from the white header and the page (light and dark). On a computer it's always
   shown; on a phone behind "Change look". */
.qq-pdfv-style { background: #e8f0fb; border-bottom: 1px solid #b9cbe4; padding: 10px 16px 12px; }
.qq-pdfv-style[hidden] { display: none; }
.qq-pdfv-styletoggle { display: none; }
.qq-pdfv-choices { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.qq-pdfv-field { color: #1f3350; display: flex; flex-direction: column; flex: 1 1 0; min-width: 100px; font-size: .8rem; font-weight: 700; gap: 3px; }
.qq-pdfv-field select, .qq-pdfv-field input { background: #fff; border: 1px solid #7f95b5; border-radius: 7px; box-shadow: 0 1px 2px rgba(19, 35, 58, .08); color: #13233a; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600; width: 100%; min-height: 34px; padding: 4px 8px; }
.qq-pdfv-field select:hover, .qq-pdfv-field input:hover { border-color: #0a5bd6; }
.qq-pdfv-field select:focus-visible, .qq-pdfv-field input:focus-visible { outline: 3px solid rgba(10, 91, 214, .35); outline-offset: 1px; }
.qq-pdfv-typefield { flex: 0 0 auto; }
.qq-pdfv-cobrand { min-width: 150px; }
.qq-pdfv-titlefield { flex: 2 1 0; min-width: 220px; }
.qq-pdfv-field input { box-sizing: border-box; cursor: text; }
.qq-pdfv-field input::placeholder { color: #6b7d96; font-weight: 400; }
html.dark .qq-pdfv-field input::placeholder { color: #8ea3c2; }
.qq-pdfv-tabs { background: #fff; border: 1px solid #7f95b5; border-radius: 8px; box-shadow: 0 1px 2px rgba(19, 35, 58, .08); display: inline-flex; overflow: hidden; }
.qq-pdfv-tab { background: transparent; border: 0; border-left: 1px solid #c9d6e8; color: #1f3350; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600; min-height: 32px; padding: 5px 12px; white-space: nowrap; }
.qq-pdfv-tab:first-child { border-left: 0; }
.qq-pdfv-tab:hover { background: #eef4fd; color: #0a4fb8; }
.qq-pdfv-tab.on { background: #0a5bd6; color: #fff; }
.qq-pdfv-tab:focus-visible { outline: 3px solid rgba(10, 91, 214, .35); outline-offset: -3px; }
.qq-pdfv.busy .qq-pdfv-choices { opacity: .6; pointer-events: none; }
.qq-pdfv-body { position: relative; }
.qq-pdfv.busy .qq-pdfv-page { opacity: .35; transition: opacity .15s; }
.qq-pdfv-updating { background: #13233a; border-radius: 999px; color: #fff; font-weight: 600; left: 50%; margin-bottom: -40px; padding: 8px 18px; position: sticky; top: 40%; transform: translateX(-50%); width: max-content; z-index: 1; }
.qq-pdfv-problem { background: #fdecec; border: 1px solid #f3c0c0; border-radius: 8px; color: #a91f1f; margin: 0; padding: 8px 12px; }
html.dark .qq-pdfv-style { background: #1b2b47; border-color: #34507c; }
html.dark .qq-pdfv-field { color: #d6e2f3; }
html.dark .qq-pdfv-field select, html.dark .qq-pdfv-field input { background: #0e1828; border-color: #5574a3; color: #eef3fb; }
html.dark .qq-pdfv-field select:hover, html.dark .qq-pdfv-field input:hover { border-color: #8fb6ff; }
html.dark .qq-pdfv-tabs { background: #0e1828; border-color: #5574a3; }
html.dark .qq-pdfv-tab { border-color: #2f4568; color: #d6e2f3; }
html.dark .qq-pdfv-tab:hover { background: #1b2b47; color: #fff; }
html.dark .qq-pdfv-tab.on { background: #3d7fe6; color: #fff; }
@media (max-width: 640px) {
    .qq-pdfv-style { padding: 6px 12px 8px; }
    .qq-pdfv-styletoggle { background: none; border: 0; color: #0a4fb8; cursor: pointer; display: block; font: inherit; font-size: .92rem; font-weight: 700; padding: 4px 0; }
    .qq-pdfv-styletoggle::after { content: " \25BE"; }
    .qq-pdfv-style.open .qq-pdfv-styletoggle::after { content: " \25B4"; }
    .qq-pdfv-choices { display: none; margin-top: 6px; }
    .qq-pdfv-style.open .qq-pdfv-choices { display: flex; }
    .qq-pdfv-tabs { display: flex; width: 100%; }
    .qq-pdfv-tab { flex: 1 1 0; padding: 6px 4px; white-space: normal; }
    .qq-pdfv-field { flex: 1 1 140px; }
    .qq-pdfv-field select { max-width: none; width: 100%; }
    .qq-pdfv-typefield { flex: 1 1 100%; }
    .qq-pdfv-titlefield { flex: 1 1 100%; min-width: 0; }
    html.dark .qq-pdfv-styletoggle { color: #8fb6ff; }
}
