/* Jetty Forge receipt printer. All selectors are scoped to prevent site conflicts. */
.jf-printer-preview{max-width:440px;margin:22px auto 0;color:#eaeaea;text-align:center;font:12px/1.5 "Courier New",monospace}
.jf-printer-preview .jf-slot{height:28px;margin:0 14px}
.jf-printer-preview p{opacity:.72;margin:12px 0}
.jf-print-launch{border:1px solid #d5dfdc;border-radius:10px;padding:14px 20px;background:#f7f7f2;color:#151717;font:700 13px/1.3 "Courier New",monospace;cursor:pointer}
.jf-print-launch:focus-visible,.jf-printer-dialog button:focus-visible,.jf-paper:focus-visible{outline:3px solid #7fe4c5;outline-offset:5px}

/* The native dialog supplies modal focus containment, Escape handling, and a backdrop. */
.jf-printer-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#151717;overflow:hidden}
.jf-printer-dialog::backdrop{background:rgba(4,9,12,.86);backdrop-filter:blur(12px)}
.jf-printer-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-items:start;justify-items:center;gap:12px;padding:max(16px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));box-sizing:border-box}
.jf-printer-dialog *{box-sizing:border-box}
.jf-printer-toolbar,.jf-printer-actions{width:min(100%,470px);display:flex;justify-content:space-between;align-items:center;gap:14px;color:#f3f4f3;font:11px/1.5 "Courier New",monospace}
.jf-printer-toolbar>span{letter-spacing:2px;text-transform:uppercase}
.jf-printer-close{display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffffff40;border-radius:50%;background:#ffffff0b;color:#fff;font-size:22px;cursor:pointer}
.jf-camera{align-self:center;width:min(100%,430px);max-height:100%;min-height:0;display:flex;flex-direction:column;transform:scale(.82);transform-origin:50% 35%;filter:drop-shadow(0 25px 40px #0007)}

/* A layered lip masks the paper's leading edge, giving the slot physical depth. */
.jf-slot{position:relative;z-index:3;flex:none;height:38px;border:1px solid #555b5d;border-radius:11px;background:linear-gradient(#454b4e,#161b1e 42%,#06090a 63%,#34393b);box-shadow:0 4px 8px #0009,inset 0 1px 0 #ffffff26}
.jf-slot::before{content:"";position:absolute;inset:13px 14px 10px;border-radius:7px;background:#020303;box-shadow:inset 0 3px 5px #000,0 1px 0 #ffffff25}
.jf-slot::after{content:"JETTY FORGE / 01";position:absolute;left:16px;top:3px;color:#afb4b5;font:6px/1 "Courier New",monospace;letter-spacing:1.6px}
.jf-slot-light{position:absolute;right:15px;top:5px;width:4px;height:4px;border-radius:50%;background:#dfe5e3;box-shadow:0 0 7px #ffffff80}

/* Overflow clips the hidden sheet until the print engine moves it below the slot. */
.jf-feed{min-height:0;overflow:hidden;margin:-8px 15px 0;padding:0 4px 15px;scrollbar-width:thin;scrollbar-color:#a8b2ac #eceee8;overscroll-behavior:contain}
.jf-printer-dialog[data-phase="ready"] .jf-feed{overflow-y:auto}
.jf-paper{position:relative;transform:translateY(calc(-100% - 24px));padding:33px 26px 35px;background:#f9f8f1;color:#151817;font:13px/1.55 "Courier New",Courier,monospace;font-variant-numeric:tabular-nums;isolation:isolate;outline-offset:-5px}
/* Faint fibers and feed lines are decorative; the text remains fully opaque. */
.jf-paper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(0deg,#00000003 0 1px,transparent 1px 4px),linear-gradient(90deg,#00000006,transparent 12%,transparent 87%,#00000006)}
.jf-paper{clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),98% 100%,96% calc(100% - 10px),94% 100%,92% calc(100% - 10px),90% 100%,88% calc(100% - 10px),86% 100%,84% calc(100% - 10px),82% 100%,80% calc(100% - 10px),78% 100%,76% calc(100% - 10px),74% 100%,72% calc(100% - 10px),70% 100%,68% calc(100% - 10px),66% 100%,64% calc(100% - 10px),62% 100%,60% calc(100% - 10px),58% 100%,56% calc(100% - 10px),54% 100%,52% calc(100% - 10px),50% 100%,48% calc(100% - 10px),46% 100%,44% calc(100% - 10px),42% 100%,40% calc(100% - 10px),38% 100%,36% calc(100% - 10px),34% 100%,32% calc(100% - 10px),30% 100%,28% calc(100% - 10px),26% 100%,24% calc(100% - 10px),22% 100%,20% calc(100% - 10px),18% 100%,16% calc(100% - 10px),14% 100%,12% calc(100% - 10px),10% 100%,8% calc(100% - 10px),6% 100%,4% calc(100% - 10px),2% 100%,0 calc(100% - 10px))}
.jf-receipt-brand{text-align:center;font-size:30px;font-weight:900;line-height:1;letter-spacing:-2px;margin:4px 0 8px}
.jf-receipt-subtitle,.jf-receipt-state,.jf-receipt-fine,.jf-barcode-label{text-align:center}
.jf-receipt-subtitle{font-size:10px;letter-spacing:2px;margin:0 0 16px}
.jf-receipt-state{font-weight:700;letter-spacing:1px;margin:0 0 19px}
.jf-receipt-rule{border:0;border-top:1px dashed #4b504e;margin:17px 0}
.jf-receipt-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:10px 0}
.jf-receipt-row>span:first-child{overflow-wrap:anywhere}
.jf-receipt-row>span:last-child{white-space:nowrap;text-align:right}
.jf-receipt-label{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#555c58;margin:14px 0 3px}
.jf-receipt-vehicle{font-weight:700;margin:0 0 16px;overflow-wrap:anywhere}
.jf-receipt-priorities{list-style:none;padding:0;margin:14px 0}
.jf-receipt-priorities li{display:flex;gap:9px;margin:7px 0;align-items:baseline}
.jf-receipt-priorities li::before{content:"[ ]";white-space:pre;font-weight:700}
.jf-receipt-priorities li[data-checked="true"]::before{content:"[x]"}
.jf-receipt-total{border-top:3px double #252b27;border-bottom:3px double #252b27;padding:14px 0;font-weight:900;font-size:18px;margin:18px 0}
.jf-receipt-total>span:first-child{font-size:14px;align-self:center}
.jf-receipt-fine{font-size:10px;line-height:1.65;margin:12px 0}
.jf-receipt-note{padding:10px;background:#eeeee7;font-size:11px;line-height:1.6}
/* Decorative barcode only: it does not encode payment or personal information. */
.jf-barcode{height:38px;width:84%;margin:20px auto 7px;background:repeating-linear-gradient(90deg,#131716 0 2px,transparent 2px 4px,#131716 4px 5px,transparent 5px 8px,#131716 8px 12px,transparent 12px 14px,#131716 14px 15px,transparent 15px 20px,#131716 20px 23px,transparent 23px 25px);opacity:.88}
.jf-barcode-label{font-size:8px;letter-spacing:1px;margin:0}
.jf-printer-actions{flex-wrap:wrap;justify-content:center;min-height:54px}
.jf-printer-actions button{padding:13px 18px;min-height:45px;border:1px solid #ffffff60;border-radius:9px;background:#f4f5ef;color:#151817;cursor:pointer;font:700 12px "Courier New",monospace}
.jf-printer-actions button:disabled{opacity:.4;cursor:wait}
.jf-printer-status{width:100%;text-align:center;margin:0;font-size:11px;color:#e2e9e5}
@media(max-width:480px){.jf-printer-dialog[open]{gap:7px;padding-left:9px;padding-right:9px}.jf-camera{width:min(100%,390px)}.jf-paper{padding:28px 19px 29px;font-size:12px}.jf-feed{margin-left:9px;margin-right:9px}.jf-receipt-brand{font-size:27px}.jf-printer-toolbar{padding:0 8px}.jf-printer-actions{gap:6px}.jf-printer-actions button{padding:12px 15px}}
@media(prefers-reduced-motion:reduce){.jf-camera{transform:none}}
