/* Style własne aplikacji – uzupełnienie Bootstrapa 5.3 */

:root {
    --oś-linia: var(--bs-border-color);
}

body {
    min-height: 100vh;
}

/* --- Karty pojazdów ----------------------------------------------------- */

.vehicle-card {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bs-box-shadow) !important;
}

.vehicle-card .vehicle-plate {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    border: 2px solid var(--bs-border-color);
    border-radius: 0.3rem;
    padding: 0.05rem 0.4rem;
    font-weight: 600;
}

/* --- Oś czasu napraw ---------------------------------------------------- */

.timeline {
    position: relative;
    margin-left: 0.75rem;
    padding-left: 1.75rem;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: var(--oś-linia);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.05rem;
    top: 0.45rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--bs-body-bg);
    border: 2px solid var(--dot-color, var(--bs-primary));
}

.timeline-date {
    font-variant-numeric: tabular-nums;
}

/* --- Wykresy SVG -------------------------------------------------------- */

.chart {
    width: 100%;
    height: auto;
    color: var(--bs-body-color);
}

.chart-scroll {
    overflow-x: auto;
}

/* --- Tabele ------------------------------------------------------------- */

.table-numeric {
    font-variant-numeric: tabular-nums;
}

.entry-items-table input[type="text"],
.entry-items-table input[type="number"] {
    min-width: 0;
}

/* --- Znacznik kategorii ------------------------------------------------- */

.category-dot {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    vertical-align: middle;
}

/* --- Wydruk ------------------------------------------------------------- */

@media print {
    a[href]::after {
        content: "";
    }

    .d-print-none {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .print-page {
        max-width: none;
        padding: 0;
    }

    .table {
        font-size: 11px;
    }

    .print-entry {
        break-inside: avoid;
    }
}
