.wrapper {
    margin: 0;
    display: block;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: auto;
}

.search-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-controls input[type="text"] {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    flex: 1;
}

.checkbox-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: end;
    gap: 5px;
}

.list-selector {
    padding: 5px 7px;
    border: 1px solid #ccc;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.list {
    width: 100%;
}

.list-header,
.list-row:not(.special) {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 100px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.list-row.special {
    display: grid;
    grid-template-columns: 20% 20% 20% 20% 20%;
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    justify-items: center;
    align-items: baseline;
}

.list-header {
    font-weight: bold;
    background: #e9ecef;
    cursor: pointer;
}

.action-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.action-button:hover {
    background-color: #0056b3;
}

.no-results {
    text-align: center;
    color: #888;
    margin-top: 20px;
    display: none;
}

.validation-msg {
    color: #ef4444;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

mark {
    background-color: yellow;
    padding: 0 1px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.popover-container {
    padding: 25px;
    width: 320px;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #000;
}

.popover-container h2 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

input,
select {
	width: 100%;
    padding: 8px;
    font-size: 14px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

input[type=checkbox] {
	width: auto;
	accent-color: #007bff;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.submit-btn {
    background-color: #007aff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.cancel-btn {
    background-color: #fff;
    border: 1px solid #007aff;
    color: #007aff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.cancel-btn:hover {
    background-color: #ddd;
    border: 1px solid #0056b3;
    color: #0056b3;
}

@media (max-width: 600px) {
    .list-header,
    .list-row {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2px 0;
    }

    input[type=checkbox] {
        height: stretch;
    }

    .action-button {
        margin-top: 8px;
    }

    .search-controls {
        flex-direction: column;
    }

    .popover-container {
        padding: 20px;
        width: 270px;
    }
}