/* ================= ОБЩ СТИЛ ================= */

body {
    font-family: Arial;
    margin: 20px;
}

h1 {
    margin-bottom: 10px;
}


/* ================= ТАБЛИЦИ ================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;
    font-family: "Times New Roman";
}

th, td {
    border: 1px solid black;
    padding: 6px;
    vertical-align: top;
    overflow-wrap: break-word;
}

th {
    background: #eee;
}

/* ================= Posledna kolona center ================= */
td:last-child,
th:last-child {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}


/* ================= MODAL ================= */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);

    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 320px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    animation: fadeIn 0.2s ease;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-content input[type="file"] {
    width: 100%;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
}

.modal-actions button {
    padding: 6px 12px;
    border: none;
    cursor: pointer;
}

.modal-actions .btn-primary {
    background: #4CAF50;
    color: white;
}

.modal-actions .btn-cancel {
    background: #ccc;
}

@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ================= LINKS ================= */

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #1a73e8;
}
@media print {

    nav,
    footer,
    .btn,
    form {
        display: none !important;
    }

    body {
        margin: 0;
        padding: 0;
    }

    .card {
        border: 1px solid #000 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    th,
    td {
        border: 1px solid #000 !important;
        text-align: center !important;
    }

    #directionChart {
        display: none !important;
    }

    #chartImage {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.table td,
.table th {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}
/* ================= legend color================= */
.legend-box{

    display:inline-block;
    width:16px;
    height:16px;

    border:1px solid #666;

    margin-right:6px;

    vertical-align:middle;

}
