/* Phone to signed document to job folder, with cards in normal flow. */
.ppc-panel[data-ppc-slug="documents"]:focus { outline: none; }
.ps-layout.ps-layout--documents { width: calc(100% - 80px); max-width: 1400px; grid-template-columns: minmax(0, .82fr) minmax(0, 1.58fr); gap: clamp(28px, 3vw, 48px); }
.ps-layout--documents .ppc-panel__headline { max-width: none; }
.docs-showcase { --docs-ink: #19364b; --docs-muted: #697c88; --docs-line: #e4eaed; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); align-items: center; gap: 20px; width: 100%; max-width: 880px; margin-inline: auto; color: var(--docs-ink); font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.docs-showcase :is(figure, p, h4) { margin: 0; }
.docs-art { min-width: 0; isolation: isolate; background: var(--background-bright, #fcf9f2); }
.docs-art > img { display: block; width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.docs-cards { display: grid; gap: 18px; min-width: 0; }
.docs-signed, .docs-drive { border: 1px solid #dbe4e9; background: #fff; border-radius: 13px; box-shadow: 0 16px 32px -24px rgb(26 45 58 / 32%), 0 2px 4px rgb(26 45 58 / 3%); }
.docs-signed { padding: 18px; }
.docs-signed__heading { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; }
.docs-file-icon { display: grid; place-items: center; width: 31px; height: 37px; flex: 0 0 31px; color: #b35a43; background: #fbf1ed; border-radius: 6px; font-size: 17px; }
.docs-signed__heading > div { min-width: 0; display: grid; gap: 3px; }
.docs-showcase .docs-signed__heading h4 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.docs-signed__heading > div > span { font-size: 12px; color: var(--docs-muted); }
.docs-status { display: flex; align-items: center; gap: 4px; margin-left: auto; color: #257451; font-size: 12px; white-space: nowrap; }
.docs-paper { padding: 17px 16px 12px; border: 1px solid var(--docs-line); border-radius: 5px; }
.docs-paper__company { color: #617785; font-size: 12px; font-weight: 600; }
.docs-paper__scope { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 15px; }
.docs-paper__scope strong { font-size: 14px; font-weight: 600; }
.docs-paper__scope > strong:last-child { white-space: nowrap; }
.docs-showcase .docs-paper__description { margin-top: 5px; color: var(--docs-muted); font-size: 13px; line-height: 1.5; }
.docs-signature { position: relative; margin-top: 23px; padding: 14px 12px 8px; border: 1px dashed #e3b263; border-radius: 5px; background: #fdf9f1; }
.docs-signature__tab { position: absolute; top: -10px; left: 11px; padding: 2px 8px; border-radius: 4px; background: #f2b247; color: #26394a; font-size: 12px; font-weight: 600; line-height: 1.4; }
.docs-signature__ink { display: block; width: 100%; height: 39px; }
.docs-signature__ink path { stroke: #19364b; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ppc-panel.is-active .docs-signature__ink path { animation: docs-write-signature 1600ms cubic-bezier(.4, 0, .3, 1) 350ms backwards; }
.ppc-panel.is-active .docs-status { animation: docs-signature-complete 200ms ease-out 1950ms backwards; }
@keyframes docs-write-signature { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes docs-signature-complete { from { opacity: 0; } to { opacity: 1; } }
.docs-paper__footer { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 10px; font-size: 11px; color: var(--docs-muted); }
.docs-drive { padding: 17px 18px 13px; }
.docs-drive__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.docs-drive__heading > span:first-child { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.docs-drive__heading > span:first-child > i { color: #426985; font-size: 14px; }
.docs-drive__search { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 15px; background: #f5f6f6; color: var(--docs-muted); font-size: 11px; white-space: nowrap; }
.docs-showcase .docs-drive__path { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 0 10px; font-size: 12px; }
.docs-drive__path > span:last-child { color: var(--docs-muted); white-space: nowrap; }
.docs-drive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.docs-drive__tile { display: flex; flex-direction: column; min-width: 0; padding: 8px; border: 1px solid #e0e6e9; border-radius: 6px; }
.docs-drive__tile--signed { border-color: #e6bc7d; background: #fffbf3; }
.docs-drive__thumbnail { position: relative; display: grid; place-items: center; height: 39px; border-radius: 4px; background: #f5f5f3; margin-bottom: 7px; font-size: 23px; }
.docs-drive__thumbnail--folder { color: #b58226; }
.docs-drive__thumbnail--image { color: #387f64; }
.docs-drive__thumbnail--pdf { background: #fff; border: 1px solid #eeece6; }
.docs-drive__sheet { display: grid; gap: 4px; width: 64%; }
.docs-drive__sheet > span { height: 3px; border-radius: 2px; background: #edf0f0; }
.docs-drive__sheet > span:last-child { width: 60%; }
.docs-drive__pdf-badge { position: absolute; right: 4px; bottom: 4px; padding: 1px 3px; border-radius: 3px; background: #b9533c; color: #fff; font: 600 10px/1.2 Arial, sans-serif; }
.docs-drive__tile > strong { font-size: 13px; line-height: 1.4; font-weight: 600; }
.docs-drive__tile-meta { margin-top: auto; padding-top: 3px; font-size: 12px; line-height: 1.4; color: var(--docs-muted); }
.docs-drive__tile--signed .docs-drive__tile-meta { color: #24704d; }
.docs-drive__tile-meta > i { font-size: 10px; }
.docs-drive__storage { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--docs-line); color: var(--docs-muted); font-size: 11px; }
.docs-drive__storage > span:last-child { white-space: nowrap; }
.docs-drive__meter { flex: 1; height: 5px; border-radius: 3px; background: #edf0f1; overflow: hidden; }
.docs-drive__meter > span { display: block; width: 18.4%; height: 100%; border-radius: inherit; background: #315a79; }

@media (min-width: 1025px) and (max-height: 800px) {
    .ps-layout.ps-layout--documents { padding-block: 12px; }
    .docs-signed { padding: 14px; }
    .docs-signed__heading { padding-bottom: 11px; }
    .docs-paper { padding: 12px; }
    .docs-paper__scope { padding-top: 10px; }
    .docs-signature { margin-top: 18px; padding-block: 10px 5px; }
    .docs-drive { padding: 14px; }
    .docs-cards { gap: 14px; }
    .docs-paper__company { display: none; }
    .docs-paper__scope { padding-top: 0; }
}
/* Keep the signed preview and Drive together inside one mobile slide. */
@media (max-width: 1024px) {
    .docs-showcase { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); gap: 16px; font-size: 14px; }
    .docs-cards { gap: 12px; }
    .docs-signed, .docs-drive { padding: 14px; }
    .docs-signed__heading { padding-bottom: 12px; gap: 9px; }
    .docs-showcase .docs-signed__heading h4 { font-size: 17px; }
    .docs-signed__heading > div > span, .docs-status { font-size: 12px; }
    .docs-paper { padding: 12px; }
    .docs-paper__company { font-size: 12px; }
    .docs-paper__scope { padding-top: 10px; }
    .docs-paper__scope strong { font-size: 15px; }
    .docs-showcase .docs-paper__description { font-size: 13px; line-height: 1.4; }
    .docs-signature { margin-top: 20px; padding: 12px 10px 7px; }
    .docs-signature__tab { font-size: 12px; }
    .docs-signature__ink { height: 36px; }
    .docs-paper__footer { padding-top: 8px; font-size: 12px; flex-wrap: wrap; }
    .docs-drive__heading { gap: 8px; flex-wrap: wrap; }
    .docs-drive__heading > span:first-child { font-size: 16px; }
    .docs-drive__search { font-size: 12px; padding: 4px 7px; }
    .docs-showcase .docs-drive__path { padding-block: 9px 8px; font-size: 12px; flex-wrap: wrap; }
    .docs-drive__grid { gap: 8px; }
    .docs-drive__tile { padding: 7px; }
    .docs-drive__thumbnail { height: 34px; font-size: 24px; margin-bottom: 6px; }
    .docs-drive__pdf-badge { font-size: 10px; }
    .docs-drive__tile > strong { font-size: 13px; line-height: 1.35; }
    .docs-drive__tile-meta { font-size: 12px; padding-top: 4px; }
    .docs-drive__tile-meta > i { font-size: 11px; }
    .docs-drive__storage { font-size: 12px; margin-top: 10px; padding-top: 8px; }
}
@media (max-width: 760px) {
    .docs-showcase { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
    .docs-art { width: 100%; }
    .docs-art > img { width: 100%; height: clamp(185px, 22vh, 230px); max-height: none; object-fit: contain; }
    .docs-cards { width: 100%; }
    .docs-signed, .docs-drive { border-radius: 12px; }
    .docs-paper__company { display: none; }
    .docs-paper__scope { padding-top: 0; }
    .ppc-mobile--compact .docs-showcase { gap: 9px; }
    .ppc-mobile--compact .docs-art > img { height: 180px; }
    .ppc-mobile--compact .docs-cards { gap: 9px; }
    .ppc-mobile--compact .docs-signed, .ppc-mobile--compact .docs-drive { padding: 11px 12px; }
    .ppc-mobile--compact .docs-signed__heading { padding-bottom: 8px; }
    .ppc-mobile--compact .docs-paper { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 13px; padding: 0; border: 0; }
    .ppc-mobile--compact .docs-paper__scope { grid-column: 1 / -1; }
    .ppc-mobile--compact .docs-signature { margin-top: 18px; padding: 9px 10px 5px; }
    .ppc-mobile--compact .docs-showcase .docs-paper__description { display: none; }
    .ppc-mobile--compact .docs-signature__ink { height: 32px; }
    .ppc-mobile--compact .docs-paper__footer { display: grid; align-self: end; gap: 4px; padding-bottom: 4px; }
    .ppc-mobile--compact .docs-showcase .docs-drive__path { display: none; }
    .ppc-mobile--compact .docs-drive__grid { margin-top: 8px; }
    .ppc-mobile--compact .docs-drive__tile { padding: 6px; }
    .ppc-mobile--compact .docs-drive__thumbnail { height: 22px; margin-bottom: 4px; font-size: 21px; }
    .ppc-mobile--compact .docs-drive__storage { display: flex; margin-top: 7px; padding-top: 6px; }
    .ppc-mobile--short .docs-art > img { height: 160px; }
    .ppc-mobile--short .docs-showcase { gap: 7px; }
    .ppc-mobile--short .docs-cards { gap: 8px; }
    .ppc-mobile--short .docs-signed, .ppc-mobile--short .docs-drive { padding: 9px 11px; }
    .ppc-mobile--short .docs-signed__heading { padding-bottom: 8px; }
    .ppc-mobile--short .docs-showcase .docs-paper__description { display: none; }
    .ppc-mobile--short .docs-signature { margin-top: 16px; padding-block: 8px 4px; }
    .ppc-mobile--short .docs-signature__ink { height: 30px; }
    .ppc-mobile--short .docs-showcase .docs-drive__path { display: none; }
    .ppc-mobile--short .docs-drive__grid { margin-top: 8px; }
    .ppc-mobile--short .docs-drive__tile { padding: 5px 6px; }
    .ppc-mobile--short .docs-drive__thumbnail { height: 24px; margin-bottom: 4px; font-size: 20px; }
    .ppc-mobile--short .docs-drive__search { display: none; }
    .ppc-mobile--short .docs-drive__storage { margin-top: 6px; padding-top: 5px; }
}
/* The shortest phones prioritize signing and stored files over duplicate metadata. */
@media (max-width: 760px) and (max-height: 700px) {
    .ppc-mobile--short .docs-art > img { height: 140px; }
    .ppc-mobile--short .docs-showcase { gap: 6px; }
    .ppc-mobile--short .docs-cards { gap: 6px; }
    .ppc-mobile--short .docs-signed, .ppc-mobile--short .docs-drive { padding: 8px 10px; }
    .ppc-mobile--short .docs-signed__heading { padding-bottom: 0; }
    .ppc-mobile--short .docs-signed__heading > div > span,
    .ppc-mobile--short .docs-paper__scope { display: none; }
    .ppc-mobile--short .docs-file-icon { height: 27px; width: 24px; flex-basis: 24px; font-size: 14px; }
    .ppc-mobile--short .docs-signature { margin-top: 15px; padding-top: 8px; }
    .ppc-mobile--short .docs-signature__ink { height: 28px; }
    .ppc-mobile--short .docs-drive__tile-meta { display: none; }
    .ppc-mobile--short .docs-drive__thumbnail { height: 20px; margin-bottom: 3px; font-size: 18px; }
    .ppc-mobile--short .docs-drive__grid { margin-top: 7px; }
    .ppc-mobile--short .docs-drive__storage { margin-top: 5px; padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .ppc-panel.is-active .docs-signature__ink path,
    .ppc-panel.is-active .docs-status { animation: none; }
}
