/*
 * Nyilvános (bejelentkezés nélküli) oldalak – kezdőlap, személyes átvétel.
 * A Metronic téma (style.bundle.css) kiegészítése.
 */

/* Nincs oldalsáv: a fejléc a teljes szélességet használja, a hosszú cím levágódik. */
.public-header .page-title {
    min-width: 0;
}

.public-header .page-heading {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Kamerás vonalkódolvasó (a pickup-scanner modul építi fel). */
.camera-wrap {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 1.25rem auto;
}

.camera-stage {
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    background: #000;
}

.camera-box {
    width: 100%;
}

.camera-hint {
    margin-top: .5rem;
}

.camera-torch {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 4;
}

/* Beolvasás eredménye a kimerevített kamerakép felett. */
.scan-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    color: #fff;
    cursor: pointer;
    animation: scan-overlay-in .15s ease-out;
}

.scan-overlay-success { background: rgba(23, 198, 83, .92); }
.scan-overlay-warning { background: rgba(246, 155, 0, .94); }
.scan-overlay-danger  { background: rgba(241, 65, 108, .94); }

.scan-overlay .scan-overlay-icon {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: .75rem;
}

.scan-overlay .scan-overlay-icon .path1 {
    opacity: .35;
}

.scan-overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.scan-overlay-code {
    margin-top: .35rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .05em;
    word-break: break-all;
}

.scan-overlay-message {
    margin-top: .5rem;
    font-size: 1rem;
    max-width: 26rem;
}

.scan-overlay .scan-overlay-button {
    background: #fff;
    color: #181c32;
    border: 0;
}

.scan-overlay-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 100%;
    background: rgba(255, 255, 255, .85);
    transform-origin: left center;
    animation-name: scan-overlay-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes scan-overlay-in {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes scan-overlay-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* Átvételi kód beviteli mező. */
.pickup-code-input {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: .3em;
}
