
body {
    font-family: "Segoe UI", Arial, sans-serif !important;
}

h1:focus {
    outline: none;
}

p {
    margin-bottom: 0 !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
    margin-left: 3rem;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuN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no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    display: none;
}

#canvas-container {
    width: 100%;
    height: 600px;
    overflow-y: scroll;
    border: 1px solid;
}

#the-canvas {
    direction: ltr;
    display: block;
    transform-origin: top left;
}

.btn-primary {
    color: #fff;
    background-color: #003567 !important;
    border-color: #003567 !important;
    box-shadow: none;
}

.btn-outline-primary {
    --bs-btn-color: #003567 !important;
    --bs-btn-border-color: #003567 !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #003567 !important;
    --bs-btn-hover-border-color: #003567 !important;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #003567 !important;
    --bs-btn-active-border-color: #003567 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #003567 !important;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #003567 !important;
    --bs-gradient: none;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-item i {
    vertical-align: middle;
    margin-right: 0.5rem;
}

.dropdown-item b {
    font-weight: normal;
}

/*Bleu CREA : #003567*/
/*Beige clair: #ECE7E5*/
/*Beige sombre: #D8D1CF*/

.bg-crea-beigeclair {
    background-color: #ECE7E5;
}

.bg-crea-beigesombre {
    background-color: #D8D1CF;
}

.text-crea-beigeclair {
    color: #ECE7E5;
}

.text-crea-beigesombre {
    color: #D8D1CF;
}

.text-crea-marron {
    color: #C68F67;
}

.text-crea-bleu {
    color: #323850;
}

/*404*/

.hit-the-floor {
    color: #fff;
    font-size: 12em;
    font-weight: bold;
    font-family: Helvetica;
    text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
}

.hit-the-floor {
    text-align: center;
}

/*BlazoredModal*/

.blazored-toast-container {
    z-index: 9999 !important;
}

.creablue {
    color: #003060;
}

/*SignalR connexion lost*/

.my-reconnect-modal > div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    background-color: #fff;
    opacity: 0.8;
    text-align: center;
    font-weight: bold;
}

.components-reconnect-hide > div {
    display: none;
}

.components-reconnect-show > div {
    display: none;
}

.components-reconnect-show > .show {
    display: block;
}

.components-reconnect-failed > div {
    display: none;
}

.components-reconnect-failed > .failed {
    display: block;
}

.components-reconnect-refused > div {
    display: none;
}

.components-reconnect-refused > .refused {
    display: block;
}

.containerPC {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 500px;
    margin: 0px;
}

.head {
    width: 100%;
    text-align: center;
    font-family: 'Lato', sans-serif;
    padding-bottom: 20px;
    font-weight: normal;
    color: #222;
    letter-spacing: 1px
}

.component {
    float: left;
    margin: 10px;
    position: relative;
}


.PC {
    height: 100px;
    width: 40%;
    border: 5px solid #333;
    border-radius: 5px;
    position: relative;
}

    .PC:before {
        content: '';
        width: 5px;
        height: 20px;
        border: 5px solid #333;
        position: relative;
        left: 50%;
        transform: translate(-50%);
        top: 100px;
        display: block;
        background: #333;
    }

    .PC:after {
        content: '';
        width: 40px;
        height: 0px;
        border: 4px solid #333;
        position: relative;
        left: 50%;
        transform: translate(-50%);
        top: 95px;
        display: block;
        border-radius: 3px;
    }

    .PC .flare {
        width: 50px;
        height: 1px;
        background: #AAA;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

        .PC .flare:after, .PC .flare:before {
            content: '';
            width: 30px;
            height: 1px;
            background: inherit;
            position: absolute;
            top: -5px;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .PC .flare:after {
            top: 6px;
        }


.signals {
    width: 30%;
    height: 100px;
}

    .signals .dot {
        width: 10px;
        height: 10px;
        background: #444;
        display: inline-block;
        border-radius: 50%;
        position: absolute;
        left: 30%;
        top: 50%;
        opacity: 0;
        transform: translate(-50%, -50%);
        animation: blink 0.3s ease-in infinite alternate;
    }

    .signals .first {
        margin-left: 0px;
    }

    .signals .second {
        margin-left: 30px;
        animation-delay: 0.1s;
    }

    .signals .third {
        margin-left: 60px;
        animation-delay: 0.2s;
    }

.server {
    width: 12%;
    height: 130px;
    border: 5px solid #333;
    border-radius: 5px;
    position: relative
}

    .server .slot {
        display: block;
        background: #444;
        width: 90%;
        height: 8%;
        margin: 10% 5%;
        position: relative;
        top: 55%;
        border-radius: 2px;
    }

    .server .button {
        width: 6px;
        height: 6px;
        background: #444;
        display: inline-block;
        border-radius: 50%;
        position: absolute;
        right: 20%;
        bottom: 5%;
    }

        .server .button:last-of-type {
            height: 8px;
            width: 8px;
            right: 5%;
        }

.error-data {
    height: calc(100vh - 98px);
    max-height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.error-card {
    width: max-content;
    padding: 25px !important;
    background: #f5f5f5;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.error-img {
    margin-top: 20px !important;
    width: 100px;
    align-self: center;
}

.error-title {
    width: 75%;
    margin: 20px;
    align-self: center;
    text-align: center;
}

.error-message {
    text-align: center;
}

    .error-message:nth-child(2) {
        margin-bottom: 20px !important;
    }

.error-code {
    background: #003567;
    width: max-content;
    color: white;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1.5rem;
    align-self: center;
    margin: 20px !important;
    border-radius: 5px;
}


@-webkit-keyframes blink {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@media (max-width:1024px) {
    .error-card {
        width: 85%;
    }
}

@media (max-width:724px) {

    .error-card {
        width: 90%;
    }

    .error-title {
        width: 100%;
        word-break: break-word;
        margin: 20px auto;
    }

    ..error-message {
        width: 100%;
        padding: 5px auto;
    }

    .error-code {
        width: max-content;
        padding: 10px;
        font-size: 1rem;
    }
}

@media only screen and (max-width: 500px) {
    .container {
        width: 100%;
        min-width: 100%
    }

    .component {
        display: block;
        float: left;
        clear: both;
        left: 50%;
        transform: translateX(-50%);
    }

    .signals {
        transform: translateX(-50%) rotate(90deg);
    }

    .server {
        width: 17%;
    }
}

.signature-pad {
    border: 1px solid #003060;
    border-radius: 10px;
    border-style: dashed;
    width: 500px !important;
    height: 150px;
}

.signature-pad-image {
    border: 1px solid #003060;
    border-radius: 10px;
    border-style: dashed;
}

.d-flex-dir {
    display: flex;
    flex-direction: column; /* Force les éléments à s'afficher en colonne */
    align-items: center;
    justify-content: center;
}

.main-footer {
    color: #535960 !important;
    flex: 1;
    min-height: 0;
}

.page-container {
    display: flex;
    flex-direction: column;
    /*    min-height: 100vh; Mauvais positionnement Eric */
    margin: 0;
}
