﻿.dashboard-cards {
    padding-bottom: 10px;
}

    /* Barra de ferramentas */
    .dashboard-cards .os-board-toolbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        margin: 0 10px 10px 10px;
        background: #f1f3f6;
        border-radius: 6px;
    }

    .dashboard-cards .os-board-toolbar-filtros {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
        flex: 1 1 auto;
    }

    .dashboard-cards .os-board-filtro {
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .dashboard-cards .os-board-filtro > label {
            margin: 0;
            font-weight: 600;
            color: #555;
        }

    .dashboard-cards .os-board-filtro-placa {
        width: 110px;
        text-transform: uppercase;
    }

    .dashboard-cards .os-board-toolbar-acoes {
        display: flex;
        gap: 5px;
    }

    .dashboard-cards .os-board-busca {
        width: 340px;
        max-width: 100%;
    }

    .dashboard-cards .os-board-periodo {
        width: auto;
    }

    /* Quadro e colunas */
    .dashboard-cards .os-board {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 6px;
        margin: 0px 10px;
    }

    .dashboard-cards .os-board-column {
        flex: 1 0 260px;
        background: #f1f3f6;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 170px);
    }

    .dashboard-cards .os-board-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 9px 12px;
        border-top: 3px solid #777;
        border-radius: 6px 6px 0 0;
        background: #e7eaee;
    }

    .dashboard-cards .os-board-title {
        font-weight: 600;
        color: #333;
    }

    .dashboard-cards .os-board-count {
        min-width: 22px;
        padding: 1px 7px;
        border-radius: 10px;
        background: #fff;
        color: #555;
        font-size: 12px;
        text-align: center;
    }

    .dashboard-cards .os-board-body {
        padding: 10px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-cards .os-board-empty {
        color: #999;
        text-align: center;
        padding: 20px 0;
        font-size: 12px;
    }

    /* Card */
    .dashboard-cards .os-card {
        background: #fff;
        border: 1px solid #dfe3e8;
        border-radius: 6px;
        overflow: visible;
        cursor: pointer;
        transition: box-shadow .15s ease, transform .15s ease;
    }

        .dashboard-cards .os-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
            transform: translateY(-1px);
        }

    .dashboard-cards .os-card-foto {
        position: relative;
        height: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

        .dashboard-cards .os-card-foto > .fa {
            font-size: 64px;
            opacity: .85;
        }

        .dashboard-cards .os-card-foto > img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity .2s ease;
        }

        .dashboard-cards .os-card-foto.os-card-foto-carregada > img {
            opacity: 1;
        }

    .dashboard-cards .os-card-content {
        padding: 8px 10px 4px 10px;
    }

    .dashboard-cards .os-card-header {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        color: #888;
    }

    .dashboard-cards .os-card-veiculo {
        font-weight: 600;
        color: #222;
        margin: 2px 0 6px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-cards .os-card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 6px;
    }

    .dashboard-cards .os-card-tag {
        color: #fff;
        font-size: 11px;
        padding: 1px 7px;
        border-radius: 3px;
        height: 18px !important;
    }

    .dashboard-cards .os-card-placa {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1px;
        padding: 3px 6px 3px 6px;
        border: 1px solid #333;
        border-top: 3px solid #1f4fa0;
        border-radius: 3px;
        color: #222;
        background: #fff;
    }

    .dashboard-cards .os-card-linha {
        font-size: 12px;
        color: #555;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 3px;
    }

        .dashboard-cards .os-card-linha > .fa {
            width: 16px;
            text-align: center;
            color: #999;
        }

    .dashboard-cards .os-card-footer {
        display: flex;
        justify-content: space-between;
        padding: 6px 10px;
        border-top: 1px solid #eef0f3;
        font-size: 12px;
        color: #777;
        margin-top: 10px;
    }

    .dashboard-cards .os-card-total {
        font-weight: 600;
        color: #333;
    }

    .dashboard-cards .os-logo-placa {
        display: flex;
        justify-content: space-between;
        margin: 8px 8px 0px 8px;
    }

        .dashboard-cards .os-logo-placa img {
            height: 35px;
        }

        .dashboard-cards .os-logo-placa span {
            height: 25px;
        }

    /* Card fixo: Nova Ordem de Serviço */
    .dashboard-cards .os-board-fixo {
        padding: 10px 10px 0 10px;
        flex: 0 0 auto;
    }

    .dashboard-cards .nova-os-card {
        background: #fff;
        border: 1px dashed #9aa3ab;
        border-radius: 6px;
        margin-right: 10px;
    }

    .dashboard-cards .nova-os-card-titulo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px 0 10px;
        font-weight: 600;
        color: #333;
    }

        .dashboard-cards .nova-os-card-titulo .fa-plus-circle {
            color: #5cb85c;
        }

    .dashboard-cards .nova-os-card-limpar {
        color: #999;
    }

        .dashboard-cards .nova-os-card-limpar:hover {
            color: #333;
        }

    .dashboard-cards .nova-os-card .editor-field {
        margin-bottom: 6px;
    }

    .dashboard-cards .nova-os-card-placa .k-textbox {
        width: 110px;
    }

    .dashboard-cards .nova-os-card-placa input {
        text-transform: uppercase;
    }

    .dashboard-cards .nova-os-card-alerta {
        font-size: 12px;
        padding: 6px 8px;
        margin: 6px 0;
    }

    .dashboard-cards .nova-os-card-veiculo-encontrado,
    .dashboard-cards .nova-os-card-mensagem,
    .dashboard-cards .nova-os-card-os-aberta,
    .dashboard-cards .nova-os-card-cadastro-rapido,
    .dashboard-cards .nova-os-card-detalhe,
    .dashboard-cards .nova-os-card-seguradora,
    .dashboard-cards .nova-os-card-guincho {
        display: none;
    }

    .dashboard-cards .nova-os-card-chk-label {
        font-weight: normal;
        cursor: pointer;
        margin: 0;
    }

    .dashboard-cards .nova-os-card-dados-cliente,
    .dashboard-cards .nova-os-card-dados-veiculo {
        border-left: 2px solid #e7eaee;
        padding-left: 8px;
        margin-bottom: 6px;
    }

    .dashboard-cards .nova-os-card-link {
        text-align: right;
        font-size: 12px;
    }

    .dashboard-cards .nova-os-card-veiculo .dados-veiculo {
        margin: 6px 0;
        font-size: 12px;
    }

    .dashboard-cards .nova-os-card .os-card-footer {
        margin-top: 4px;
        justify-content: end;
    }

@media (max-width: 767px) {
    .dashboard-cards .os-board-column {
        flex-basis: 85%;
        max-height: none;
    }

    .dashboard-cards .os-board-busca {
        width: 100%;
    }
}
