/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

html{
    background-color:#000;
    height: 100vh;
}

body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    /* background-color:#000; */
    font-family: system-ui, -apple-system, -apple-system-font, 'Segoe UI', 'Roboto', sans-serif;
    font-size:12px;
    height:100%;
    margin:0px;
    padding:0px;
    /* Padding to avoid the "unsafe" areas behind notches in the screen */
    /* padding-top: constant(safe-area-inset-top);
    padding-top: env(safe-area-inset-top); */
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    width:100%;
}

#appliLogin{
    /* background-image: linear-gradient(to bottom, #1C6955 5%, #E4E4E4 115%); */
    height:100%;
}

/* Portrait layout (default) */
.app {
    background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
    position:absolute;             /* position in the center of the screen */
    left:50%;
    top:50%;
    height:50px;                   /* text area height */
    width:225px;                   /* text area width */
    text-align:center;
    padding:180px 0px 0px 0px;     /* image height is 200px (bottom 20px are overlapped with text) */
    margin:-115px 0px 0px -112px;  /* offset vertical: half of image height and text area height */
                                   /* offset horizontal: half of text area width */
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
    .app {
        background-position:left center;
        padding:75px 0px 75px 170px;  /* padding-top + padding-bottom + text area = image height */
        margin:-90px 0px 0px -198px;  /* offset vertical: half of image height */
                                      /* offset horizontal: half of image width and text area width */
    }
}

  
.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin input, .form-signin input:focus{
    background-color: #1c2432;
    color: #fff;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

  
h1 {
    font-size:24px;
    font-weight:normal;
    margin:0px;
    overflow:visible;
    padding:0px;
    text-align:center;
}

@keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}

.blink {
    animation:fade 3000ms infinite;
    -webkit-animation:fade 3000ms infinite;
}

.click{
    cursor: pointer;
}

.cadreLogin{
    border: solid 8px #e5e5e5;
    border-radius: 1rem!important;
}

.gps-color-green{
    background-color: #448472 !important;
}

/* #appVersion {
    position: fixed;
    bottom: 2rem;
    right: 0px;
} */

.modal-header{
    padding: 0.5rem 0.5rem;
}

.modal-footer{
    padding: 0.5rem;
}

.btn-group-xs>.btn, .btn-xs {
    padding: 0.025rem 0.25rem;
    font-size: .75rem;
    border-radius: 0.2rem;
}

.toast-info {
    background: initial;
    color: #0c5460 !important;
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
}
.toast-warning {
    background: initial;
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.toast-danger {
    background: initial;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.toast-success {
    background: initial;
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.toast-primary {
    background: initial;
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}
.toastify{
	border-radius: 5px;
}
.toast-text{
	float:left;
    max-width: 70vw;
}

/* Spinner d'attente */
#waiting-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	/* background-color: rgba(1, 1, 1, 0.4); */
	background-color: rgb(1 1 1 / 13%);
	z-index: 5;    
	top: 0px;
    left: 0px;
/* 	display: none; */
}

#waiting-loading {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1000;
	width: 100px;
	height: 100px;
	margin: -50px 0 0 -50px;
/* 	border-top: 16px solid #2892ff7a; */
/* 	border: 16px solid #e0dfdf; */
	border: 16px solid #5f666d;
	border-radius: 50%;
	border-top: 16px solid #dea80b;
	-webkit-animation: spin 2s linear infinite;
	animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
	0% { -webkit-transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
/* Fin spinner */