.te-mr-loading,
.te-mr-empty {
    padding: 24px;
    text-align: center;
    color: var(--te-color-muted);
    font-size: var(--te-font-size-base);
    background: var(--te-color-surface);
    border: 1px solid var(--te-color-border);
}

.te-mr-error {
    padding: 12px 16px;
    color: var(--te-color-danger);
    background: var(--te-color-surface);
    border: 1px solid var(--te-color-border);
    font-size: var(--te-font-size-base);
}

.te-mr-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.te-mr-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--te-color-card);
    border: 1px solid var(--te-color-border);
    font-size: var(--te-font-size-base);
}

.te-mr-table th,
.te-mr-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--te-color-border);
    color: var(--te-color-text);
}

.te-mr-table th {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--te-color-muted);
    font-weight: 700;
}

.te-mr-table tbody tr:last-child td {
    border-bottom: none;
}

.te-mr-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    white-space: nowrap;
}

.te-mr-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px 16px;
}

.te-mr-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: var(--te-font-size-base);
    color: var(--te-color-text);
}

.te-mr-field--full {
    grid-column: 1 / -1;
}

.te-mr-field span {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--te-color-muted);
    font-weight: 700;
}

.te-mr-field input,
.te-mr-field select,
.te-mr-field textarea {
    width: 100%;
    box-sizing: border-box;
    height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    background: var(--te-color-card);
    color: var(--te-color-text);
    font-size: var(--te-font-size-base);
    font-family: inherit;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.te-mr-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 4px;
}

.te-mr-field textarea {
    height: auto;
    min-height: 70px;
    padding: 8px 10px;
    resize: vertical;
}

.te-mr-field input:focus,
.te-mr-field select:focus,
.te-mr-field textarea:focus {
    outline: none;
    border-color: var(--te-color-accent);
    box-shadow: 0 0 0 3px rgba(42, 166, 160, 0.15);
}

.te-mr-form-msg {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(229, 62, 62, 0.08);
    border: 1px solid rgba(229, 62, 62, 0.2);
    border-radius: 6px;
    color: var(--te-color-danger);
    font-size: 13px;
}

@media (max-width: 640px) {
    .te-mr-form-grid {
        grid-template-columns: 1fr;
    }
}
