/* Connexion employé : tout visible sans défiler (tablette 1920×1080 / kiosque). */
html.kiosk-fit,
html.kiosk-fit body {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

html.kiosk-fit body {
    display: flex;
    flex-direction: column;
}

html.kiosk-fit .page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 10px 16px 8px;
    gap: 8px;
    justify-content: center;
}

html.kiosk-fit .branding {
    gap: 4px;
}

html.kiosk-fit .branding img {
    height: 72px;
    max-width: 160px;
    animation: none;
    filter: none;
}

html.kiosk-fit .brand-name {
    font-size: 1.35rem;
    margin: 0;
}

html.kiosk-fit .portal-title {
    font-size: 1rem;
}

html.kiosk-fit .brand-address {
    display: none;
}

html.kiosk-fit .login-box {
    padding: 16px 22px 14px;
    max-height: 100%;
}

html.kiosk-fit .form-heading,
html.kiosk-fit .sub {
    margin-bottom: 8px;
}

html.kiosk-fit .sub {
    margin-top: 0;
}

html.kiosk-fit .field {
    margin-top: 10px;
}

html.kiosk-fit .remember-note,
html.kiosk-fit .pin-hint {
    display: none;
}

html.kiosk-fit .remember-row {
    margin-top: 8px;
}

html.kiosk-fit button[type=submit],
html.kiosk-fit button {
    margin-top: 12px;
    padding: 11px 14px;
}

html.kiosk-fit .help-links {
    margin-top: 8px;
}

html.kiosk-fit .footer-bar {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.8rem;
}

html.kiosk-fit .header-bar {
    flex: 0 0 auto;
    padding: 8px 18px;
    gap: 14px;
}

html.kiosk-fit .header-bar img {
    height: 56px;
    max-width: 140px;
}

html.kiosk-fit .header-bar .brand {
    font-size: 1.2rem;
}

html.kiosk-fit .wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 12px 16px;
}

html.kiosk-fit h1 {
    margin-bottom: 6px;
    font-size: 1.28rem;
}

html.kiosk-fit .store-offline-help {
    display: none;
}

html.kiosk-fit button.kiosk-close-screen,
button.kiosk-close-screen {
    position: fixed;
    top: 8px;
    right: 10px;
    left: auto;
    width: auto;
    max-width: none;
    z-index: 80;
    appearance: none;
    border: 0;
    border-radius: 999px;
    margin: 0;
    padding: 5px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
    cursor: pointer;
}

.kiosk-close-screen:active {
    transform: scale(0.98);
}

@media (min-width: 900px) and (max-height: 1100px) {
    html:not(.kiosk-fit),
    html:not(.kiosk-fit) body {
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    html:not(.kiosk-fit) body {
        display: flex;
        flex-direction: column;
    }

    html:not(.kiosk-fit) .page {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding: 12px 16px 10px;
        gap: 10px;
        justify-content: center;
    }

    html:not(.kiosk-fit) .branding img {
        height: 88px;
        max-width: 180px;
        animation: none;
    }

    html:not(.kiosk-fit) .brand-address,
    html:not(.kiosk-fit) .remember-note,
    html:not(.kiosk-fit) .pin-hint {
        display: none;
    }

    html:not(.kiosk-fit) .login-box {
        padding: 18px 22px 16px;
    }

    html:not(.kiosk-fit) .header-bar img {
        height: 72px;
        max-width: 160px;
    }

    html:not(.kiosk-fit) .wrap {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding: 16px;
    }

    html:not(.kiosk-fit) .footer-bar {
        padding: 8px 12px;
    }
}
