/* AutoDoc 360 R7-R2: navegacion centralizada y dashboards por familia de plan. */

.r7r2-dashboard {
    --r7r2-blue: #2563eb;
    --r7r2-ink: #0f172a;
    --r7r2-soft: #eff6ff;
}

.r7r2-hero {
    align-items: center;
    gap: 24px;
}

.r7r2-section-gap {
    height: 18px;
}

.r7r2-card-title {
    margin: 0;
    color: var(--r7r2-ink);
    font-size: 1.25rem;
    line-height: 1.25;
}

.r7r2-stat--danger {
    border-color: #fecaca !important;
    background: #fff7f7 !important;
}

.r7r2-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.r7r2-vehicle-card {
    display: grid;
    grid-template-columns: minmax(180px, 38%) minmax(0, 1fr);
    min-height: 260px;
    overflow: hidden;
}

.r7r2-vehicle-photo {
    min-height: 230px;
    background: linear-gradient(145deg, #dbeafe, #e2e8f0);
}

.r7r2-vehicle-photo img,
.r7r2-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.r7r2-vehicle-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 210px;
    color: #1d4ed8;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: .12em;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .9), transparent 35%),
        linear-gradient(145deg, #dbeafe, #e2e8f0);
}

.r7r2-vehicle-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.r7r2-vehicle-heading,
.r7r2-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.r7r2-vehicle-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.r7r2-vehicle-metrics span {
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    color: #475569;
    background: #f8fafc;
    font-size: .82rem;
}

.r7r2-vehicle-metrics strong {
    display: block;
    color: var(--r7r2-ink);
    font-size: 1.15rem;
}

.r7r2-actions-left {
    justify-content: flex-start !important;
}

.r7r2-document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #e2e8f0;
}

.r7r2-document-row:last-child {
    border-bottom: 0;
}

.r7r2-document-row small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.r7r2-plan-summary {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 16px;
    border-radius: 14px;
    background: var(--r7r2-soft);
}

.r7r2-empty-vehicle {
    display: grid;
    grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.r7r2-photo-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
    gap: 20px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #f8fafc;
}

.r7r2-photo-field small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    line-height: 1.45;
}

.r7r2-photo-preview {
    display: grid;
    place-items: center;
    width: 220px;
    height: 150px;
    overflow: hidden;
    border: 1px dashed #93c5fd;
    border-radius: 14px;
    color: #64748b;
    background: #eff6ff;
}

.r7r2-photo-remove {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-weight: 600;
}

.r7r2-photo-remove input {
    width: auto;
}

@media (max-width: 1280px) and (min-width: 761px) {
    .r7r2-vehicle-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .r7r2-vehicle-grid,
    .r7r2-vehicle-card,
    .r7r2-empty-vehicle,
    .r7r2-photo-field {
        grid-template-columns: 1fr;
    }

    .r7r2-photo-preview {
        width: 100%;
        max-width: 320px;
    }

    .r7r2-vehicle-metrics {
        grid-template-columns: 1fr;
    }
}
