body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    padding: 15px;
}

.container {
    max-width: auto;
    width: 400px;
    margin: auto;
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
}

h1, h2, h3 {
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

th, td {
    border: 1px solid #cccccc;
    padding: 6px;
    vertical-align: middle;
}

th {
    background: #eeeeee;
}

/* Kolumna mapy szeroka na mini mapę */
th.mapCol, td.mapCol {
    width: 220px;  /* dostosuj szerokość do mini mapy */
}

#center {
    display: flex;
    justify-content: center;
    height: 260px;
}

#viewport {
    transform: scale(0.25);
    transform-origin: top;
    width: 1536px;
}

#carcontainer {
    width: 1536px;
    height: 1024px;
    position: relative;
}

.part {
    position: absolute;
    cursor: pointer;
}

/* mini mapa */
.miniCar {
    width: 220px; /* szerokość kolumny mapy */
    height: 150px; /* proporcjonalnie do auta */
    overflow: hidden;
}

.miniViewport {
    transform: scale(0.12);
    transform-origin: top left;
}

/* zdjęcia w tabeli */
.photos {
    display: flex;
    gap: 6px;
    align-items: center;
}

.photos img {
    height: 150px;
    width: auto;
    cursor: pointer;
    object-fit: contain;
}

/* okienko podglądu zdjęcia */
#imagePreview {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#imagePreview img {
    max-width: 95%;
    max-height: 95%;
}

h1, h2, h3 {
    text-align: center;
    margin: 12px 0;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 6px;
}

input, textarea, button {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin: 4px 0;
    font-size: 16px;
}

textarea {
    height: 80px;
}

button {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
}

button:active {
    opacity: 0.9;
}





/* TABELA MOBILNA */
.tableWrap {
    overflow-x: auto;
    direction: rtl;
}

.tableWrap table {
    direction: ltr;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    border: 1px solid #ccc;
    padding: 6px;
    vertical-align: top;
}

th {
    background: #eee;
}

/* MINIMAPA */
.miniCar {
    width: 140px;
    height: 100px;
    overflow: hidden;
}

.miniViewport {
    transform: scale(0.08);
    transform-origin: top left;
}

/* ZDJĘCIA */
.photos {
    display: flex;
    gap: 6px;
}

.photos img {
    height: 80px;
    object-fit: contain;
}

.part {
    position: absolute;
}

/* PODGLAD ZDJECIA */
#imagePreview {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#imagePreview img {
    max-width: 95%;
    max-height: 95%;
}

.sendBox {
    margin-top: 20px;
}

/* PRZYCISK DO WYSŁANIA*/
#sendDamage {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background-color: #1e73ff;
    color: #fff;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#sendDamage:hover {
    opacity: 0.9;
}

.input-disabled {
    background-color: #e0e0e0; /* jasny szary */
    color: #555; /* ciemniejszy tekst, żeby było czytelnie */
    border: 1px solid #ccc; /* opcjonalna ramka */
    cursor: not-allowed; /* pokazuje, że nie można edytować */
    text-align: center;
}

input.input-disabled {
    pointer-events: none; /* dodatkowo blokuje kliknięcia */
}