.grid {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.grid-header {
    display: table-header-group;
}

.grid-body {
    display: table-row-group;
}

.grid-row {
    display: table-row;
}

.grid-row:nth-child(even) {
    background-color: rgba(120, 120, 120, 0.02);
}

.grid-row:hover {
    background-color: rgba(120, 120, 120, 0.05);
}

.grid-cell {
    display: table-cell;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--outline-color);
    vertical-align: top;
}

.grid-header .grid-cell {
    font-weight: 500;
    background-color: rgba(120, 120, 120, 0.05);
    border-bottom: 2px solid var(--outline-color);
}

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

/* Grid column widths */
.grid-col-auto { width: auto; }
.grid-col-1 { width: 8.33%; }
.grid-col-2 { width: 16.66%; }
.grid-col-3 { width: 25%; }
.grid-col-4 { width: 33.33%; }
.grid-col-5 { width: 41.66%; }
.grid-col-6 { width: 50%; }
.grid-col-7 { width: 58.33%; }
.grid-col-8 { width: 66.66%; }
.grid-col-9 { width: 75%; }
.grid-col-10 { width: 83.33%; }
.grid-col-11 { width: 91.66%; }
.grid-col-12 { width: 100%; }

/* Search container for grids */
.grid-search-container {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.grid-search-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--outline-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    background-color: var(--content-bg);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.grid-search-input:focus {
    border-color: var(--text-primary);
}

.grid-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Optional: Search icon styling if you want to add one */
.grid-search-icon {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Hidden rows for filtered results */
.grid-row.hidden {
    display: none;
}

/* No results message */
.grid-no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
    font-style: italic;
    border-bottom: 1px solid var(--outline-color);
}

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