/* ===== TABLE FIX ZA NATJECATELJI STRANICU ===== */

/* Širok glavni okvir SAMO ovdje */
.page-natjecatelji .container {
    max-width: none !important;
    /* makni ograničenje iz style.css */
    width: 100% !important;
    overflow: visible !important;
}

/* Omot za tablicu – daje horizontalni scroll */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

/* Tablica se širi koliko treba */
.table-wrapper table {
    width: max-content;
    /* raste prema broju stupaca */
    min-width: 100%;
    /* barem širina prozora */
    border-collapse: collapse;
    table-layout: auto;
}

/* Ne lomimo tekst u svim ćelijama */
.table-wrapper th,
.table-wrapper td {
    white-space: nowrap;
}

/* Osnovni izgled ćelija */
.table-wrapper th,
.table-wrapper td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1e5f5;
    text-align: left;
}

.table-wrapper tr:last-child td {
    border-bottom: none;
}

/* Responsive prilagodba – samo font/padding smanjenje */
@media (max-width: 900px) {

    .table-wrapper th,
    .table-wrapper td {
        font-size: 0.9em;
        padding: 6px 8px;
    }
}

/* Prvi stupac (#) uži */
.table-wrapper table th:first-child,
.table-wrapper table td:first-child {
    width: 40px;
    /* ili koliko ti paše */
    min-width: 40px;
    text-align: center;
}

.search {
    width: 340px;
    padding: 10px 14px 10px 38px;
    /* lijevo više zbog ikone */
    border: 1px solid #e6d8e4;
    border-radius: 10px;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23a14d95" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27a6.471 6.471 0 001.48-5.34C15.14 5.59 12.28 3 8.9 3 5.51 3 2.65 5.59 2.09 9.09c-.54 3.5 1.4 6.64 4.65 7.58 1.87.55 3.91.23 5.54-.91l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6.6 0C6.01 14 4 11.99 4 9.5S6.01 5 8.5 5 13 7.01 13 9.5 10.99 14 8.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: 10px center;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.search::placeholder {
    color: #999;
}

.search:focus {
    border-color: #a14d95;
    box-shadow: 0 0 0 3px rgba(161, 77, 149, 0.15);
    outline: none;
}

.btn-edit {
    display: inline-block;
    background: #A14D95;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none
}

.btn-edit:hover {
    filter: brightness(.95)
}