/* DeviceRow */

.DeviceRow {
    display: block;
    /* border-bottom: 1px solid #9a9595; */
}

.box-info {
    width: 100%;
    height: 130px;
    padding: 2px;
    overflow: hidden;
    border-radius: 5px;
    /* background-color: rgb(28, 37, 54); */
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    margin-top: 0px;
}

.box-info .info-icon {
    position: relative;
    float: left;
    width: 80px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #3183ff; */
}

.box-info .conteiner {
    position: relative;
    float: left;
    width: calc(100% - 80px);
}

.box-info .title {
    position: relative;
    float: left;
    width: calc(100% - 80px);
    height: 50px;
    /* background: #3183ff; */

    display: flex;
    align-items: center;
}

.box-info .info2 {
    position: relative;
    float: left;
    width: 100%;
    /* background: #3183ff; */

    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgb(198, 197, 197);
    padding: 5px 2px;
    margin: 2px 0px;
    
}

.box-info .info2 div {
    padding: 0px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background-color: aqua; */
}

.subericons {
    position: relative;
    float: left;
    width: 100%;
    padding: 5px 1px;

    border-top: 1px solid rgb(198, 197, 197);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

#footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
    /* altura do rodapé */
}
/* LISTA DE VEÍCULOS - VISUAL MODERNO AVANÇADO */
/* Mantém a mesma estrutura do projeto e altera somente aparência */

.DeviceRow {
    display: block;
    padding: 6px 10px !important;
    box-sizing: border-box;
}

.DeviceRow-list {
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: visible !important;
}

.DeviceRow-list:hover .box-info {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 38, 0.16);
    border-color: rgba(37, 99, 235, 0.20);
}

.box-info {
    width: 100%;
    height: 128px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
    border: 1px solid rgba(15, 23, 38, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 38, 0.08);
    margin-top: 0 !important;
    transition: all 0.22s ease;
    position: relative;
}

.box-info::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #16a34a 100%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.DeviceRow-list:hover .box-info::before {
    opacity: 1;
}

.box-info .info-icon {
    position: relative;
    float: left;
    width: 82px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-info .info-icon .MuiAvatar-root {
    width: 48px !important;
    height: 48px !important;
    background: linear-gradient(135deg, #e5e7eb 0%, #cbd5e1 100%) !important;
    border: 1px solid rgba(15, 23, 38, 0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.box-info .info-icon img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
}

.box-info .conteiner {
    position: relative;
    float: left;
    width: calc(100% - 82px);
    height: 66px;
    display: flex;
    align-items: center;
}

.box-info .title {
    position: relative;
    float: none;
    width: calc(100% - 8px);
    height: auto;
    display: flex;
    align-items: center;
}

.box-info .title .MuiListItemText-primary {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    line-height: 1.2 !important;
}

.box-info .title .MuiListItemText-secondary {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: 3px !important;
}

.box-info .info2 {
    position: relative;
    float: left;
    width: 100%;
    height: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(15, 23, 38, 0.10) !important;
    padding: 0 10px !important;
    margin: 0 !important;
    background: rgba(248, 250, 252, 0.72);
    box-sizing: border-box;
}

.box-info .info2 div {
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
}

.box-info .info2 svg {
    font-size: 19px !important;
    color: #111827;
}

.subericons {
    position: relative;
    float: left;
    width: 100%;
    height: 30px;
    padding: 0 9px !important;
    border-top: 1px solid rgba(15, 23, 38, 0.10) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    box-sizing: border-box;
}

.subericons > div:first-child {
    min-width: 0;
    max-width: 58%;
    overflow: hidden;
}

.subericons > div:first-child > div {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subericons > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.subericons svg {
    font-size: 19px !important;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 38, 0.08));
}

.subericons .text-success,
.subericons .success {
    color: #16a34a !important;
}

.subericons .text-danger,
.subericons .error {
    color: #ef4444 !important;
}

.subericons .text-muted,
.subericons .neutral {
    color: #64748b !important;
}

/* Scroll lateral mais moderno */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Ajuste para celular e telas menores */
@media screen and (max-width: 700px) {
    .DeviceRow {
        padding: 5px 8px !important;
    }

    .box-info {
        height: 126px;
        border-radius: 15px !important;
    }

    .box-info .info-icon {
        width: 74px;
    }

    .box-info .conteiner {
        width: calc(100% - 74px);
    }

    .box-info .title .MuiListItemText-primary {
        font-size: 15px !important;
    }

    .box-info .info2 div,
    .subericons > div:first-child > div {
        font-size: 12px !important;
    }
}
