/* Paper: the tax invoice, the packing slip and the monthly statement.
   Shown as a sheet on screen and printed as one. Loaded by Studio and by the shop. */
.st-paperwrap { position: fixed; inset: 0; z-index: 130; background: rgba(18, 12, 9, .78); backdrop-filter: blur(4px); display: flex; flex-direction: column; }
.st-paperwrap[hidden] { display: none; }
.st-paperbar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--soil, #1B1411); color: var(--ivory, #F6F0E4); }
.st-paperbar > div { margin-right: auto; min-width: 0; } .st-paperbar b { display: block; font-size: 16px; } .st-paperbar span { font-size: 13px; opacity: .7; }
.pp-btn { height: 46px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 14.500px; font-weight: 600; cursor: pointer; background: transparent; color: var(--ivory, #F6F0E4); border: 1.500px solid rgba(246, 240, 228, .35); }
.pp-btn:hover { border-color: #fff; } .pp-btn.go { background: #157F45; border-color: #157F45; color: #fff; } .pp-btn.go:hover { background: #0F6A38; }
.st-paperscroll { flex: 1; overflow: auto; padding: 28px 16px 60px; }
.paper { position: relative; width: min(794px, 100%); min-height: 1060px; margin: 0 auto; background: #fff; color: #1B1411; padding: 56px 56px 44px; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); font-size: 13.500px; line-height: 1.5; display: flex; flex-direction: column; overflow: hidden; }
.pp-head { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 26px; border-bottom: 2px solid #1B1411; }
.pp-co { display: flex; gap: 16px; align-items: flex-start; } .pp-co img { width: 66px; height: auto; }
.pp-co b { display: block; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 30px; line-height: 1; margin-bottom: 6px; } .pp-co span { display: block; font-size: 12px; color: #5C5046; }
.pp-title { text-align: right; flex: none; } .pp-title h1 { font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 40px; line-height: 1; margin-bottom: 12px; }
.pp-title dl div { display: flex; justify-content: flex-end; gap: 12px; font-size: 12.500px; } .pp-title dt { color: #7A6E62; } .pp-title dd { font-weight: 600; min-width: 108px; }
.pp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 24px 0; }
.pp-two h2, .pp-note b { font-size: 10.500px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #7A6E62; margin-bottom: 6px; display: block; }
.pp-two p b { display: block; font-size: 16px; }
.pp-table { width: 100%; border-collapse: collapse; } .pp-table th { text-align: left; font-size: 10.500px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #7A6E62; padding: 9px 8px; border-bottom: 1px solid #1B1411; border-top: 1px solid #1B1411; }
.pp-table td { padding: 11px 8px; border-bottom: 1px solid #E6DFD3; vertical-align: top; } .pp-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-table td b { font-weight: 600; } .pp-table td span { display: block; font-size: 12px; color: #6E6254; margin-top: 2px; }
.pp-table.slip td { padding-block: 14px; font-size: 15px; } .pp-table .big { font-size: 22px; font-weight: 700; } .pp-table .bx { width: 40px; } .pp-table .bx i { display: block; width: 22px; height: 22px; border: 1.500px solid #1B1411; border-radius: 4px; }
.pp-end { display: flex; justify-content: space-between; gap: 30px; margin-top: 24px; align-items: flex-start; }
.pp-pay { max-width: 330px; font-size: 13px; } .pp-pay p + p { margin-top: 6px; color: #5C5046; }
.pp-sum { min-width: 260px; } .pp-sum div { display: flex; justify-content: space-between; padding: 5px 0; font-variant-numeric: tabular-nums; }
.pp-sum .t { border-top: 2px solid #1B1411; margin-top: 8px; padding-top: 10px; font-size: 20px; font-weight: 700; } .pp-sum .g { font-size: 12px; color: #6E6254; }
.pp-end.slip { align-items: flex-end; } .pp-sign { display: flex; gap: 26px; } .pp-sign span { display: block; width: 170px; border-top: 1px solid #1B1411; padding-top: 6px; font-size: 11.500px; color: #7A6E62; margin-top: 44px; }
.pp-note { margin-bottom: 18px; padding: 14px 16px; border: 1.500px solid #1B1411; border-radius: 8px; font-size: 16px; }
.pp-stamp { position: absolute; right: 70px; top: 300px; transform: rotate(-12deg); font-family: var(--serif, Georgia, serif); font-size: 54px; line-height: 1; padding: 10px 26px 12px; border: 4px double #157F45; color: #157F45; border-radius: 12px; opacity: .2; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.pp-stamp.x { border-color: #A8361E; color: #A8361E; }
.pp-foot { margin-top: auto; padding-top: 34px; display: flex; justify-content: space-between; font-size: 12px; color: #7A6E62; } .pp-foot span:first-child { font-family: var(--serif, Georgia, serif); font-style: italic; font-size: 17px; color: #1B1411; }
@media (max-width: 700px) { .paper { padding: 28px 22px; font-size: 12px; min-height: 0; } .pp-head, .pp-end { flex-direction: column; } .pp-title { text-align: left; } .pp-title dl div { justify-content: flex-start; } .pp-two { grid-template-columns: 1fr; gap: 16px; } .pp-title h1 { font-size: 30px; } .st-paperbar span { display: none; } .pp-stamp { right: 20px; top: 240px; font-size: 38px; } }
@media print {
  @page { size: A4; margin: 12mm; }
  body.paper-open > *:not(#stPaper) { display: none !important; }
  body.paper-open { background: #fff !important; }
  .st-paperwrap { position: static; background: none; backdrop-filter: none; display: block; }
  .st-paperbar { display: none; } .st-paperscroll { padding: 0; overflow: visible; }
  .paper { box-shadow: none; width: auto; min-height: 0; padding: 0; height: auto; } .pp-stamp { opacity: .16; }
}
@media (max-width: 700px) { .pp-table th, .pp-table td { padding: 8px 4px; } .pp-table th { letter-spacing: .04em; font-size: 9.500px; } .pp-table:not(.slip) th:first-child, .pp-table:not(.slip) td:first-child { display: none; } .pp-sum { min-width: 0; width: 100%; } }

/* the statement */
.pp-table .tot td { border-top: 2px solid #1B1411; border-bottom: 0; font-weight: 700; font-size: 15px; } .pp-table .mute td { color: #6E6254; }
.pp-table .neg { color: #157F45; } .pp-late { display: inline-block; font-size: 10.500px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A8361E; border: 1px solid #A8361E; border-radius: 4px; padding: 1px 5px; margin-left: 6px; }
.pp-h { font-size: 10.500px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #7A6E62; margin: 26px 0 6px; }
.pp-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid #1B1411; margin: 4px 0 22px; }
.pp-boxes div { padding: 12px 14px; border-left: 1px solid #1B1411; } .pp-boxes div:first-child { border-left: 0; } .pp-boxes dt { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7A6E62; } .pp-boxes dd { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pp-boxes .due { background: #1B1411; color: #fff; } .pp-boxes .due dt { color: rgba(255, 255, 255, .7); }
@media (max-width: 700px) { .pp-boxes { grid-template-columns: 1fr 1fr; } .pp-boxes div:nth-child(3) { border-left: 0; } .pp-boxes div:nth-child(n+3) { border-top: 1px solid #1B1411; } }
