﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    background-color: #fff;
    width: 100%;
    height: 100%;
    justify-items: center;
}

.container-box-search {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 8px;
    transition: top 0.3s ease-in-out;
}

    .container-box-search:not(.top) {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .container-box-search.top {
        top: 20px;
    }

.title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.highlight {
    color: red;
    font-weight: bold;
}

.form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.field-error {
    color: red !important;
}

#grid {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 8px;
    overflow: auto;
    margin-top: 15px;
    max-height: 60vh;
}

.btn {
    width: 100%;
    padding: 10px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

    .btn:hover {
        background-color: #f91616;
        color: #fff;
    }

#cpfcnpj:focus {
    outline: none;
    box-shadow: none;
}

#placa:focus {
    outline: none;
    box-shadow: none;
}

.swal2-default-outline:focus {
    outline: none;
    box-shadow: none;
}

.hidden {
    display: none !important;
}

.info {
    margin-top: 10px;
    font-size: 12px;
    color: #777;
    text-align: center;
}

.link {
    color: #007bff;
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }


table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 25px;
}

th {
    background-color: #d32f2f;
    color: #fff;
    padding: 10px;
    text-align: left;
}

td {
    padding: 10px;
    text-align: left;
    cursor: pointer;
}

tr:nth-child(even) {
    background-color: #ffeaea;
}

tr:nth-child(odd) {
    background-color: #fff;
}

tr:hover {
    background-color: #ffcccc;
}

.labelinformation {
    font-size: 12px;
    font-weight: bold;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .container-box-search {
        width: 90%;
        padding: 15px;
    }

    #grid {
        width: 90%;
        padding: 15px;
    }

    .title {
        font-size: 16px;
    }

    .btn {
        font-size: 14px;
        padding: 8px;
    }

    table th, table td {
        font-size: 12px;
        padding: 8px;
        height: 50px;
    }
}

@media (min-width: 1200px) {
    .container-box-search {
        max-width: 800px;
        padding: 30px;
    }

    #grid {
        max-width: 800px;
        padding: 30px;
    }

    .title {
        font-size: 20px;
    }

    .btn {
        font-size: 18px;
        padding: 12px;
    }

    table th, table td {
        font-size: 16px;
        padding: 12px;
    }
}

.background-box-loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000000bd;
    z-index: 999999999;
}

    .background-box-loading .box-loading {
        position: fixed;
        width: 150px;
        height: 150px;
        background-color: #e33130;
        z-index: 999999;
        top: 50%;
        left: 50%;
        margin: -75px 0 0 -75px;
        border-radius: 100%;
        border: 5px solid #fff;
    }

.background-box-loading-gm, .background-box-loading-assistia {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000000bd;
    z-index: 999999999;
}

    .background-box-loading-gm .box-loading {
        position: fixed;
        width: 150px;
        height: 150px;
        background-color: #b6862d;
        z-index: 999999;
        top: 50%;
        left: 50%;
        margin: -75px 0 0 -75px;
        border-radius: 100%;
        border: 5px solid #fff;
    }

    .background-box-loading-assistia .box-loading {
        position: fixed;
        width: 150px;
        height: 150px;
        background-color: #664AC7;
        z-index: 999999;
        top: 50%;
        left: 50%;
        margin: -75px 0 0 -75px;
        border-radius: 100%;
        border: 5px solid #fff;
    }

.spinner {
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -20px 0 0 -25px;
}

    .spinner > div {
        background-color: #fff;
        height: 100%;
        width: 6px;
        display: inline-block;
        -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
        animation: sk-stretchdelay 1.2s infinite ease-in-out;
    }

    .spinner .rect2 {
        -webkit-animation-delay: -1.1s;
        animation-delay: -1.1s;
    }

    .spinner .rect3 {
        -webkit-animation-delay: -1s;
        animation-delay: -1s;
    }

    .spinner .rect4 {
        -webkit-animation-delay: -0.9s;
        animation-delay: -0.9s;
    }

    .spinner .rect5 {
        -webkit-animation-delay: -0.8s;
        animation-delay: -0.8s;
    }

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4);
    }

    20% {
        -webkit-transform: scaleY(1);
    }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1);
        -webkit-transform: scaleY(1);
    }
}