.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.toprow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .toprow h1 {
        margin: 0;
        font-size: 28px;
    }

.actions {
    margin-left: auto;
}

/* Grid Layout - No Table Tags */
.grid-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.grid-body {
    display: flex;
    flex-direction: column;
}

.grid-row {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    cursor: pointer;
}

    .grid-row:hover {
        background: #f1f3f5;
        transform: translateX(2px);
    }

    .grid-row:last-child {
        border-bottom: none;
    }

    .grid-row.row-submitted {
        opacity: 0.7;
    }

        .grid-row.row-submitted:hover {
            opacity: 0.85;
        }

.grid-col {
    padding-right: 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .grid-col strong {
        font-weight: 600;
        color: #212529;
    }

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

    .status.ok {
        background: #d4edda;
        color: #155724;
    }

    .status.bad {
        background: #fff3cd;
        color: #856404;
    }

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #6c757d;
}

    .empty-state p {
        font-size: 16px;
        margin-bottom: 20px;
    }

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background 0.2s;
}

    .btn-secondary:hover {
        background: #5a6268;
    }

.btn{
    border-radius:6px;
}
/* Responsive */
@media (max-width: 768px) {
    .grid-header {
        display: none;
    }

    .grid-row {
        flex-direction: column;
        gap: 8px;
        padding: 16px 20px;
    }

    .grid-col {
        width: 100% !important;
        padding-right: 0;
        white-space: normal;
    }

        .grid-col:before {
            content: attr(data-label);
            font-weight: 600;
            margin-right: 10px;
            color: #6c757d;
            display: inline-block;
            min-width: 120px;
        }
}
