﻿.ticket-container { position: relative; width: 78mm; max-width: 78mm; overflow: hidden; }
        @page { size: 80mm auto; margin: 4mm; }
        @media print {
            @page {
                size: 80mm 220mm;
                margin: 0;
            }

            html,
            body {
                width: 80mm !important;
                min-width: 80mm !important;
                margin: 0 !important;
                background: #fff !important;
                overflow: visible !important;
            }

            body > *:not(#thermal-receipt) {
                display: none !important;
            }

            #thermal-receipt,
            #thermal-receipt * {
                visibility: visible !important;
            }

            #thermal-receipt.ticket-container {
                position: relative !important;
                left: auto !important;
                top: auto !important;
                display: block !important;
                width: 78mm !important;
                max-width: 78mm !important;
                height: auto !important;
                max-height: none !important;
                min-height: 0 !important;
                margin: 0 !important;
                padding: 4mm 2mm !important;
                overflow: visible !important;
                border: none !important;
                box-shadow: none !important;
                background: #ffffff !important;
                color: #111827 !important;
                font-family: Arial, Helvetica, sans-serif !important;
                page-break-inside: avoid !important;
                break-inside: avoid !important;
                page-break-after: avoid !important;
                break-after: avoid !important;
            }

            #thermal-receipt .receipt-content,
            #thermal-receipt .receipt-number-block,
            #thermal-receipt .receipt-details,
            #thermal-receipt .receipt-footer {
                position: relative;
                z-index: 1;
                break-inside: avoid !important;
                page-break-inside: avoid !important;
            }

            #thermal-receipt .receipt-content { padding: 4px 12px; }
            #thermal-receipt .receipt-header { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 4px; margin-bottom: 8px; text-align: center; }
            #thermal-receipt .receipt-header img { width: 48px; height: 48px; object-fit: contain; border: none; background: transparent; }
            #thermal-receipt .receipt-header h2 { margin: 0; font-size: 13px; line-height: 1.2; font-weight: 800; letter-spacing: 0.6px; color: #111827; }
            #thermal-receipt .receipt-header p { margin: 2px 0 0; font-size: 9px; color: #374151; }
            #thermal-receipt .receipt-rule { border-top: 1px dashed #111827; margin: 8px 0 6px; }
            #thermal-receipt .receipt-date { margin: 0; font-size: 12px; color: #111827; text-align: center; font-weight: 700; }
            #thermal-receipt .receipt-number-block { text-align: center; padding-top: 8px; padding-bottom: 10px; }
            #thermal-receipt .receipt-number-block p { margin: 0; font-size: 10px; font-weight: 700; color: #111827; letter-spacing: 0.6px; }
            #thermal-receipt .receipt-number-block h1 { margin: 8px 0; font-size: 56px; line-height: 1; font-weight: 900; color: #111827; letter-spacing: 1px; }
            #thermal-receipt .receipt-number-block #print-loket { font-size: 14px; font-weight: 800; color: #111827; letter-spacing: 1.2px; }
            #thermal-receipt .receipt-details { font-size: 10px; line-height: 1.6; color: #111827; padding-top: 6px; }
            #thermal-receipt .receipt-details p { margin: 3px 0; }
            #thermal-receipt .receipt-details::before, #thermal-receipt .receipt-footer::before { display: block; border-top: 1px dashed #111827; content: ''; }
            #thermal-receipt .receipt-details::before { margin: 0 0 6px; }
            #thermal-receipt .receipt-footer::before { margin: 0 0 8px; }
            #thermal-receipt .receipt-footer { margin-top: 12px; text-align: center; font-size: 11px; color: #111827; font-weight: 600; }
            #thermal-receipt .receipt-footer p { margin: 4px 0; }
        }
    \n
        #help-modal .help-modal-panel button[onclick="sendHelpCenterSOS()"] { display: none !important; }
        @keyframes helpBannerIn {
            from { opacity: 0; transform: translateY(-14px) translateX(12px); }
            to { opacity: 1; transform: translateY(0) translateX(0); }
        }
        @keyframes modalFadeScale {
            0% { opacity: 0; transform: translateY(10px) scale(0.96); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes pulseDot {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.2); }
        }
        .help-modal-shell { animation: modalFadeScale 0.22s ease-out; }
        .status-dot { animation: pulseDot 1.8s ease-in-out infinite; }

        @keyframes videoFadeIn {
            from { opacity: 0; transform: scale(1.02); }
            to { opacity: 1; transform: scale(1); }
        }

        @keyframes scannerRingSpin {
            to { transform: rotate(360deg); }
        }

        @keyframes scannerLineSweep {
            0%, 100% { transform: translateY(-70px); opacity: 0.2; }
            50% { transform: translateY(70px); opacity: 1; }
        }

        .kiosk-dashboard-card {
            position: relative;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(51, 65, 85, 0.8);
            box-shadow: 0 28px 90px rgba(2, 6, 23, 0.72), inset 0 1px 0 rgba(148, 163, 184, 0.09);
        }

        .kiosk-dashboard-header {
            background: linear-gradient(115deg, rgba(8, 47, 73, 0.98), rgba(15, 23, 42, 0.96) 58%, rgba(17, 62, 78, 0.92));
            box-shadow: inset 0 -1px 0 rgba(103, 232, 249, 0.1);
        }

        .kiosk-dashboard-card::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(135deg, rgba(34, 211, 238, 0.38), rgba(99, 102, 241, 0.25), rgba(148, 163, 184, 0.08));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        .dashboard-scanner-frame {
            position: relative;
            overflow: hidden;
            aspect-ratio: 4 / 3;
            min-height: 180px;
            max-height: 300px;
            border-radius: 1rem;
            background: rgba(2, 6, 23, 0.9);
        }

        #cam-placeholder {
            position: absolute;
            inset: 0;
            z-index: 10;
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .dashboard-kiosk-camera.scanner-active #cam-placeholder {
            display: none !important;
        }

        #cam-placeholder .dashboard-scanner-ring {
            position: relative;
            width: 190px;
            height: 190px;
            border: 1px solid rgba(103, 232, 249, 0.65);
            border-radius: 9999px;
            box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.04), 0 0 28px rgba(34, 211, 238, 0.18);
            pointer-events: none;
        }

        #cam-placeholder .dashboard-scanner-ring::before,
        #cam-placeholder .dashboard-scanner-ring::after {
            position: absolute;
            inset: 17px;
            border: 1px dashed rgba(52, 211, 153, 0.65);
            border-radius: 9999px;
            content: '';
            animation: scannerRingSpin 8s linear infinite;
        }

        #cam-placeholder .dashboard-scanner-ring::after {
            inset: 38px;
            border-style: solid;
            border-color: rgba(34, 211, 238, 0.3) transparent;
            animation-direction: reverse;
            animation-duration: 5s;
        }

        #cam-placeholder .dashboard-scanner-line {
            position: absolute;
            z-index: 12;
            left: 50%;
            top: 50%;
            width: auto;
            right: 18%;
            left: 18%;
            height: 2px;
            transform: translateY(-70px);
            background: #34d399;
            box-shadow: 0 0 14px #34d399;
            animation: scannerLineSweep 2.4s ease-in-out infinite !important;
        }

        #cam-placeholder .scan-placeholder-avatar {
            display: none !important;
        }

        #cam-placeholder .scan-placeholder-text {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, 52px);
            width: max-content;
            max-width: calc(100% - 32px);
            font-size: clamp(10px, 2.4vw, 12px);
            line-height: 1.35;
            text-align: center;
            color: rgba(148, 163, 184, 0.95);
            font-weight: 500;
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        #cam-placeholder .scan-placeholder-text::before {
            content: "";
            display: block;
            margin: 0 auto 6px;
            width: 42px;
            height: 1px;
            background: rgba(103, 232, 249, 0.7);
        }

        @media (min-width: 640px) {
            #cam-placeholder .dashboard-scanner-ring {
                transform: scale(1);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            #cam-placeholder .dashboard-scanner-ring,
            #cam-placeholder .dashboard-scanner-ring::before,
            #cam-placeholder .dashboard-scanner-ring::after,
            #cam-placeholder .dashboard-scanner-line {
                animation: none;
            }
        }

        .kiosk-dashboard-desk-grid,
        .kiosk-dashboard-purpose-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.6rem;
        }

        @media (min-width: 1024px) {
            .kiosk-dashboard-desk-grid,
            .kiosk-dashboard-purpose-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        .kiosk-dashboard-desk,
        .kiosk-dashboard-purpose {
            display: grid;
            align-items: center;
            gap: 0.65rem;
            min-height: 64px;
            padding: 0.65rem 0.75rem;
            border-radius: 0.85rem;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: linear-gradient(145deg, rgba(30, 41, 59, 0.54), rgba(15, 23, 42, 0.48));
            color: #dbeafe;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 18px rgba(2, 6, 23, 0.12);
            transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
            text-align: left;
        }

        .kiosk-dashboard-desk:focus-visible,
        .kiosk-dashboard-purpose:focus-visible {
            outline: 2px solid rgba(103, 232, 249, 0.9);
            outline-offset: 2px;
        }

        .kiosk-dashboard-desk {
            grid-template-columns: auto minmax(0, 1fr);
        }

        .kiosk-dashboard-purpose {
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }

        .kiosk-dashboard-desk:hover,
        .kiosk-dashboard-purpose:hover {
            border-color: rgba(34, 211, 238, 0.5);
            background: linear-gradient(145deg, rgba(30, 64, 82, 0.62), rgba(15, 23, 42, 0.56));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(6, 182, 212, 0.12);
            transform: translateY(-1px);
        }

        .kiosk-dashboard-desk.is-selected,
        .kiosk-dashboard-purpose.is-selected {
            background: linear-gradient(135deg, rgba(14, 55, 76, 0.98), rgba(13, 45, 64, 0.98));
            border-color: rgba(57, 78, 99, 0.8);
            box-shadow: inset 2px 0 0 #22d3ee, inset 0 1px 0 rgba(165, 243, 252, 0.12), 0 12px 26px rgba(6, 182, 212, 0.14);
            color: #ecfeff;
        }

        .kiosk-dashboard-desk.is-selected > span:first-child > i,
        .kiosk-dashboard-purpose.is-selected > span:first-child > i {
            background: rgba(8, 63, 88, 0.95);
            border-color: rgba(34, 211, 238, 0.1);
        }

        .kiosk-dashboard-desk > span:first-child,
        .kiosk-dashboard-purpose > span:first-child {
            display: flex;
            align-items: center;
            min-width: 0;
            gap: 0.65rem;
        }

        .kiosk-dashboard-desk > span:first-child {
            display: contents;
        }

        .kiosk-dashboard-desk > span:first-child > i,
        .kiosk-dashboard-purpose > span:first-child > i {
            display: inline-grid;
            place-items: center;
            width: 2rem;
            height: 2rem;
            border: 1px solid rgba(34, 211, 238, 0.12);
            border-radius: 0.65rem;
            background: rgba(8, 145, 178, 0.2);
            color: #67e8f9;
            font-size: 0.78rem;
            flex-shrink: 0;
        }

        .kiosk-dashboard-desk > span:first-child > i {
            grid-column: 1;
            grid-row: 1 / span 2;
        }

        .kiosk-dashboard-desk > span:first-child > span,
        .kiosk-dashboard-purpose > span:first-child > span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 0.72rem;
            line-height: 1.25;
            font-weight: 650;
        }

        .kiosk-dashboard-desk > span:first-child > span {
            grid-column: 2;
            grid-row: 1;
            align-self: end;
        }

        .kiosk-dashboard-desk i,
        .kiosk-dashboard-purpose i {
            text-align: center;
            flex-shrink: 0;
        }

        .kiosk-dashboard-desk small,
        .kiosk-dashboard-purpose small {
            display: block;
            justify-self: start;
            align-self: start;
            grid-column: 2;
            grid-row: 2;
            font-size: 0.57rem;
            letter-spacing: 0.04em;
            color: rgba(148, 163, 184, 0.86);
            text-transform: uppercase;
            white-space: nowrap;
        }

        .kiosk-dashboard-desk.is-selected small {
            color: #a5f3fc;
        }

        .kiosk-dashboard-desk {
            grid-template-columns: 2.25rem minmax(0, 1fr);
            align-items: center;
            justify-content: start !important;
            column-gap: 0.65rem;
        }

        .kiosk-dashboard-desk > .kiosk-card-icon {
            display: grid !important;
            place-items: center;
            width: 2rem;
            height: 2rem;
            grid-column: 1;
            grid-row: 1;
            border: 1px solid rgba(34, 211, 238, 0.12);
            border-radius: 0.65rem;
            background: rgba(8, 145, 178, 0.2);
            color: #67e8f9;
        }

        .kiosk-dashboard-desk > .kiosk-card-icon > i {
            display: block;
            width: auto;
            font-size: 0.78rem;
        }

        .kiosk-dashboard-desk > .kiosk-card-copy {
            display: flex;
            min-width: 0;
            grid-column: 2;
            grid-row: 1;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 0.45rem !important;
            text-align: left;
            justify-self: start;
            align-self: center;
        }

        .kiosk-dashboard-desk > .kiosk-card-copy > span {
            overflow: hidden;
            max-width: 100%;
            font-size: 0.72rem;
            line-height: 1.35 !important;
            font-weight: 650;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .kiosk-dashboard-desk > .kiosk-card-copy > small {
            display: block;
            margin: 0;
            font-size: 0.57rem;
            line-height: 1.35 !important;
            letter-spacing: 0.08em;
            color: rgba(148, 163, 184, 0.86);
        }

        .kiosk-dashboard-purpose {
            display: grid !important;
            grid-template-columns: 2.25rem minmax(0, 1fr);
            align-items: center;
            justify-content: start !important;
            column-gap: 0.65rem;
        }

        .kiosk-dashboard-purpose > span:first-child {
            display: contents;
        }

        .kiosk-dashboard-purpose > .kiosk-card-icon {
            display: grid !important;
            place-items: center;
            width: 2rem;
            height: 2rem;
            grid-column: 1;
            grid-row: 1;
            border: 1px solid rgba(34, 211, 238, 0.12);
            border-radius: 0.65rem;
            background: rgba(8, 145, 178, 0.2);
            color: #67e8f9;
        }

        .kiosk-dashboard-purpose > .kiosk-card-icon > i {
            display: block;
            width: auto;
            font-size: 0.78rem;
        }

        .kiosk-dashboard-purpose > .kiosk-card-copy {
            display: flex;
            min-width: 0;
            grid-column: 2;
            grid-row: 1;
            align-items: flex-start;
            justify-content: center;
            justify-self: start;
            align-self: center;
            text-align: left !important;
        }

        .kiosk-dashboard-purpose > .kiosk-card-copy > span {
            overflow: hidden;
            max-width: 100%;
            font-size: 0.72rem;
            line-height: 1.2;
            font-weight: 650;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        button.kiosk-dashboard-desk,
        button.kiosk-dashboard-purpose {
            display: grid !important;
            grid-template-columns: 2rem minmax(0, 1fr);
            align-items: center;
            justify-content: start !important;
            gap: 0.65rem;
            text-align: left !important;
        }

        button.kiosk-dashboard-desk > .kiosk-card-icon,
        button.kiosk-dashboard-purpose > .kiosk-card-icon {
            grid-column: 1;
            grid-row: 1;
            align-self: center;
            justify-self: start;
        }

        button.kiosk-dashboard-desk > .kiosk-card-copy,
        button.kiosk-dashboard-purpose > .kiosk-card-copy {
            grid-column: 2;
            grid-row: 1;
            align-self: center;
            justify-self: start;
            width: 100%;
            min-width: 0;
            text-align: left !important;
        }

        button.kiosk-dashboard-desk > .kiosk-card-copy {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 0.15rem;
        }

        button.kiosk-dashboard-desk > .kiosk-card-copy > span,
        button.kiosk-dashboard-purpose > .kiosk-card-copy > span {
            display: block;
            width: 100%;
            margin: 0;
            overflow: hidden;
            text-align: left !important;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        button.kiosk-dashboard-desk > .kiosk-card-copy > small {
            align-self: flex-start;
            margin: 0;
        }

        .dashboard-kiosk-camera {
            min-height: 0;
            height: 100%;
            display: flex;
            flex-direction: column;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(20px);
            padding: 0.9rem 0.9rem 0.8rem;
        }

        .dashboard-kiosk-camera > div:first-child {
            min-height: 32px;
        }

        #camera-badge {
            min-width: 82px;
            justify-content: center;
            line-height: 1;
        }

        #cam-controls button,
        .kiosk-dashboard-cta {
            min-height: 46px;
            line-height: 1.2;
        }

        #cam-controls button {
            padding: 0.7rem 0.85rem;
        }

        .kiosk-dashboard-input {
            height: 42px;
            padding-top: 0.65rem !important;
            padding-bottom: 0.65rem !important;
        }

        #form-checkin .relative > i {
            top: 50%;
            transform: translateY(-50%);
        }

        #form-checkin > div:last-child {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
            align-items: center;
            gap: 1rem;
        }

        #form-checkin > div:last-child > p {
            max-width: 44rem;
            line-height: 1.45;
            text-align: left;
            align-self: center;
        }

        .kiosk-dashboard-cta {
            min-width: min(100%, 240px);
            justify-content: center;
        }

        @media (min-width: 640px) {
            #form-checkin > div:last-child {
                align-items: center;
            }
        }

        @media (max-width: 639px) {
            #form-checkin > div:last-child {
                grid-template-columns: 1fr;
            }

            .kiosk-dashboard-cta {
                width: 100%;
                grid-column: 1;
                justify-self: stretch;
            }
        }

        .dashboard-scanner-frame {
            flex: 1;
            min-height: 200px;
            height: 100%;
            max-height: 280px;
        }

        #dashboard-kiosk-camera .dashboard-scanner-frame {
            flex: none !important;
            aspect-ratio: 1 / 1 !important;
            height: auto !important;
            min-height: 0 !important;
            max-height: none !important;
        }

        #dashboard-kiosk-camera .dashboard-scanner-frame::after {
            position: absolute;
            left: 18%;
            right: 18%;
            top: 50%;
            z-index: 11;
            height: 2px;
            border-radius: 9999px;
            background: #34d399;
            box-shadow: 0 0 14px #34d399;
            content: '';
            transform: translateY(-70px);
            animation: dashboardCameraScanLine 2.4s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes dashboardCameraScanLine {
            0%, 100% { transform: translateY(-70px); opacity: 0.2; }
            50% { transform: translateY(70px); opacity: 1; }
        }

        #dashboard-kiosk-camera.scanner-active .dashboard-scanner-frame::after {
            display: none;
        }

        #form-checkin > div:last-child,
        #form-checkin > div:last-child > #btn-submit-kios {
            width: 100% !important;
        }

        #form-checkin > div:last-child > #btn-submit-kios {
            display: flex !important;
            min-width: 0 !important;
        }

        @media (min-width: 1024px) {
            .dashboard-scanner-frame {
                min-height: 200px;
            }
        }

        @media (max-width: 639px) {
            .kiosk-dashboard-desk-grid,
            .kiosk-dashboard-purpose-grid {
                grid-template-columns: 1fr;
            }

            .kiosk-dashboard-desk,
            .kiosk-dashboard-purpose {
                min-height: 58px;
            }

            .kiosk-dashboard-desk > span:first-child > i,
            .kiosk-dashboard-purpose > span:first-child > i {
                width: 1.85rem;
                height: 1.85rem;
            }
        }

        #webcam {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: scaleX(-1);
            animation: videoFadeIn 0.35s ease;
        }

        .scanner-active #webcam {
            opacity: 1;
        }
    \n
        body.auth-pending #page-login {
            visibility: hidden;
        }
