/* PDFtodo shared download result box (2026-11-06) - Views/Shared/_DownloadResult.cshtml */

.pdt-dl { margin: 10px 0 0; text-align: left; }

.pdt-dl-ready {
    display: flex; align-items: center; gap: 10px;
    background: #e7f7ee; color: #1e7b45;
    border-radius: 6px; padding: 12px 16px;
    font-size: 18px; font-weight: 600;
}
.pdt-dl-ready .fa { font-size: 24px; }

.pdt-dl-big,
.pdt-dl-big:focus {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; min-height: 64px; margin: 14px 0 6px; padding: 10px 16px;
    background: #27ae60; color: #fff !important;
    border-radius: 6px; border: none;
    font-size: 21px; font-weight: 600; text-decoration: none !important;
    box-shadow: 0 3px 0 #1e8a4c;
    transition: background-color .15s, transform .05s;
}
.pdt-dl-big:hover { background: #219150; color: #fff; }
.pdt-dl-big:active { transform: translateY(2px); box-shadow: 0 1px 0 #1e8a4c; }
.pdt-dl-big .fa { font-size: 26px; }

.pdt-dl-list { list-style: none; margin: 8px 0 0; padding: 0; }

.pdt-dl-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 4px; border-top: 1px solid #e7ecf1;
}
.pdt-dl-row:last-child { border-bottom: 1px solid #e7ecf1; }

.pdt-dl-icon { font-size: 30px; width: 32px; text-align: center; flex: 0 0 auto; }
.pdt-ic-pdf { color: #e2433b; }
.pdt-ic-word { color: #2b579a; }
.pdt-ic-excel { color: #217346; }
.pdt-ic-ppt { color: #d24726; }
.pdt-ic-img { color: #8e44ad; }
.pdt-ic-zip { color: #b7791f; }
.pdt-ic-code { color: #3598dc; }
.pdt-ic-txt { color: #7f8c8d; }
.pdt-ic-failed { color: #e7505a; }

.pdt-dl-name { flex: 1 1 auto; min-width: 0; }
.pdt-dl-name b {
    display: block; font-size: 15px; font-weight: 600; color: #34495e;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pdt-dl-name span { font-size: 13px; color: #7f8c8d; }
.pdt-dl-row-failed .pdt-dl-name span { color: #e7505a; }
.pdt-dl-saving { color: #1e7b45; font-weight: 600; }

.pdt-dl-small,
.pdt-dl-small:focus {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    height: 38px; padding: 0 16px;
    background: #3598dc; color: #fff !important;
    border-radius: 4px; font-size: 14px; font-weight: 600;
    text-decoration: none !important; white-space: nowrap;
}
.pdt-dl-small:hover { background: #217ebd; }

.pdt-busy { opacity: .75; cursor: progress; }
.pdt-busy .fa-download:before { content: "\f110"; }          /* fa-spinner */
.pdt-busy .fa-download { animation: pdt-spin 1s linear infinite; }
@keyframes pdt-spin { to { transform: rotate(360deg); } }

.pdt-dl-row .pdt-dl-check { display: none; color: #27ae60; font-size: 18px; flex: 0 0 auto; }
.pdt-dl-row.pdt-dl-done .pdt-dl-check { display: inline-block; }

.pdt-dl-total { padding: 8px 4px 0; font-size: 13px; color: #34495e; }

.pdt-dl-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
    margin: 14px 0 6px; font-size: 13px; color: #7f8c8d;
}
.pdt-dl-again {
    background: none; border: 1px solid #3598dc; color: #3598dc;
    border-radius: 4px; padding: 6px 14px; font-size: 14px;
}
.pdt-dl-again:hover { background: #3598dc; color: #fff; }

.pdt-dl-ad { text-align: center; padding-top: 10px; }

.pdt-dl-share {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px;
    margin-top: 16px; padding: 12px 0 2px; border-top: 1px solid #e7ecf1; font-size: 13px;
}
.pdt-dl-share-title { color: #7f8c8d; }
.pdt-dl-share a { text-decoration: none; }
.pdt-dl-share a:hover { text-decoration: underline; }

/* "Continue with" - hand the documents to the next tool (2026-11-06) */
.pdt-chain {
    margin: 14px 0 0; padding: 12px 14px;
    background: #f1f8fd; border: 1px solid #c5e1f5; border-radius: 6px;
}
.pdt-chain-title { font-size: 15px; font-weight: 600; color: #217ebd; margin-bottom: 10px; }
.pdt-chain-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pdt-chain-chip,
.pdt-chain-chip:focus {
    display: inline-flex; align-items: center; gap: 7px;
    height: 36px; padding: 0 13px;
    background: #fff; color: #34495e !important; border: 1px solid #c5d5e2; border-radius: 4px;
    font-size: 14px; text-decoration: none !important; white-space: nowrap;
}
.pdt-chain-chip .fa { color: #3598dc; font-size: 15px; }
a.pdt-chain-chip:hover { border-color: #3598dc; background: #3598dc; color: #fff !important; }
a.pdt-chain-chip:hover .fa { color: #fff; }
.pdt-chain-off, .pdt-chain-off:hover { color: #a0aab3 !important; border-style: dashed; cursor: not-allowed; }
.pdt-chain-off .fa { color: #a0aab3; }
.pdt-chain .pdt-chain-extra { display: none; }
.pdt-chain.pdt-chain-open .pdt-chain-extra { display: inline-flex; }
.pdt-chain-more { align-self: center; padding: 0 6px; font-size: 14px; color: #217ebd; }

.pdt-chain-banner {
    margin: 0 0 12px; padding: 10px 14px; border-radius: 6px; font-size: 14px; text-align: left;
}
.pdt-chain-busy { background: #f1f8fd; color: #217ebd; }
.pdt-chain-ok { background: #e7f7ee; color: #1e7b45; }
.pdt-chain-error { background: #fdecec; color: #c0392b; }

/* Picture of the first page (click = download) */
.pdt-dl-thumblink { flex: 0 0 auto; display: inline-flex; text-decoration: none !important; }
.pdt-thumb {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 56px; overflow: hidden; flex: 0 0 auto;
    background: #fff; border: 1px solid #dfe5ea; border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.pdt-thumb img { max-width: 100%; max-height: 100%; display: block; }
.pdt-thumb .pdt-dl-icon { display: none; }
.pdt-thumb.pdt-noprev { border: none; box-shadow: none; background: none; }
.pdt-thumb.pdt-noprev img { display: none; }
.pdt-thumb.pdt-noprev .pdt-dl-icon { display: inline-block; }
a.pdt-dl-thumblink:hover .pdt-thumb { border-color: #27ae60; box-shadow: 0 0 0 2px rgba(39,174,96,.25); }
.pdt-thumb-sm { width: 30px; height: 40px; }
.pdt-thumb-sm .pdt-dl-icon { font-size: 22px; width: 24px; }

/* Download all as ZIP */
.pdt-dl-zipline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 2px 0 6px; }
.pdt-dl-zip, .pdt-dl-zip:focus { font-size: 14px; font-weight: 600; color: #217ebd !important; text-decoration: none !important; }
.pdt-dl-zip:hover span { text-decoration: underline; }
.pdt-dl-zipmsg { font-size: 13px; color: #c0392b; }

/* History panel "Your documents" */
.pdt-hist { position: fixed; left: 16px; bottom: 16px; z-index: 9000; text-align: left; }   /* bottom set by JS above footer/cookie bar */
.pdt-hist-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px; border: none; border-radius: 20px;
    background: #2f353b; color: #fff; font-size: 14px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.pdt-hist-btn:hover { background: #3598dc; }
.pdt-hist-btn[hidden], .pdt-hist-panel[hidden] { display: none; }
.pdt-hist-panel {
    position: absolute; left: 0; bottom: 50px;
    width: 380px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto;
    background: #fff; border: 1px solid #dfe5ea; border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.2); padding: 12px 14px;
}
.pdt-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pdt-hist-head b { font-size: 15px; color: #34495e; }
.pdt-hist-close { border: none; background: none; font-size: 24px; line-height: 1; color: #7f8c8d; padding: 0 4px; }
.pdt-hist-close:hover { color: #34495e; }
.pdt-hist-list { list-style: none; margin: 0; padding: 0; }
.pdt-hist-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #eef1f5; }
.pdt-hist-row input { flex: 0 0 auto; margin: 0; width: 16px; height: 16px; }
.pdt-hist-file { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; font-weight: normal; cursor: pointer; }
.pdt-hist-name { min-width: 0; }
.pdt-hist-name b { display: block; font-size: 13px; font-weight: 600; color: #34495e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdt-hist-name span { font-size: 12px; color: #7f8c8d; }
.pdt-hist-dl, .pdt-hist-dl:focus {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 4px; background: #3598dc; color: #fff !important; text-decoration: none !important;
}
.pdt-hist-dl:hover { background: #217ebd; }
.pdt-hist-hint { margin-top: 8px; font-size: 13px; color: #7f8c8d; }
.pdt-hist .pdt-chain { margin-top: 10px; }
.pdt-hist .pdt-chain-chip { height: 32px; font-size: 13px; padding: 0 10px; }

@media (max-width: 767px) {
    .pdt-dl-big { font-size: 18px; min-height: 56px; }
    .pdt-dl-small span { display: none; }      /* icon-only on phones */
    .pdt-dl-small { padding: 0 12px; }
    .pdt-dl-ad { overflow: hidden; }
}
