
.rda-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.rda-head h1 {
    margin: 0 0 7px;
}

.rda-head p {
    max-width: 850px;
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.rda-head > button,
.rda-form-actions button,
.rda-actions button {
    min-height: 40px;
    margin: 0;
    padding: 9px 13px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.rda-toolbar {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
}

.rda-toolbar label {
    display: flex;
    min-width: 210px;
    flex-direction: column;
    gap: 6px;
}

.rda-toolbar span,
.rda-form-grid span {
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.rda-toolbar input,
.rda-form-grid input,
.rda-form-grid textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
}

.rda-toolbar-note {
    color: #64748b;
    line-height: 1.45;
}

.rda-message {
    min-height: 22px;
    margin: 6px 0;
    font-weight: 800;
}

.rda-message.success {
    color: #166534;
}

.rda-message.error {
    color: #b91c1c;
}

.rda-message.loading {
    color: #475569;
}

.rda-summary {
    display: grid;
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
    gap: 10px;
    margin-bottom: 13px;
}

.rda-summary article {
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
}

.rda-summary span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.rda-summary strong {
    display: block;
    margin-top: 6px;
    font-size: 21px;
}

.rda-form-card {
    margin-bottom: 13px;
    padding: 15px;
    border: 1px solid #93c5fd;
    border-radius: 15px;
    background: #eff6ff;
}

.rda-form-card[hidden] {
    display: none;
}

.rda-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.rda-form-head span {
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.rda-form-head h2 {
    margin: 3px 0 0;
}

.rda-form-head button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: #dbeafe;
    color: #1e40af;
    cursor: pointer;
}

.rda-form-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 10px;
}

.rda-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rda-form-grid .rda-notes {
    grid-column: 1 / -1;
}

.rda-form-grid textarea {
    min-height: 80px;
    resize: vertical;
}

.rda-live-rate {
    margin-top: 11px;
    padding: 10px;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
}

.rda-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 11px;
}

.rda-form-actions .secondary {
    background: #e2e8f0;
    color: #334155;
}

.rda-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 11px;
    background: #fffbeb;
    color: #92400e;
}

.rda-info strong,
.rda-info span {
    display: block;
}

.rda-info span {
    margin-top: 3px;
    line-height: 1.45;
}

.rda-table-card {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 15px;
    background: #ffffff;
}

.rda-table-wrap {
    overflow: auto;
}

.rda-table {
    width: 100%;
    border-collapse: collapse;
}

.rda-table th,
.rda-table td {
    padding: 11px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.rda-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
}

.rda-table td small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    white-space: normal;
}

.rda-missing {
    color: #b91c1c;
    font-weight: 800;
}

.rda-actions {
    display: flex;
    gap: 6px;
}

.rda-actions button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 11px;
}

.rda-actions .danger {
    background: #fee2e2;
    color: #991b1b;
}

.rda-empty {
    padding: 30px !important;
    color: #64748b;
    text-align: center !important;
}

@media (max-width: 1150px) {
    .rda-summary {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .rda-form-grid {
        grid-template-columns:
            1fr 1fr;
    }
}

@media (max-width: 760px) {
    .rda-head,
    .rda-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .rda-head > button {
        width: 100%;
    }

    .rda-summary,
    .rda-form-grid {
        grid-template-columns: 1fr;
    }

    .rda-form-grid .rda-notes {
        grid-column: auto;
    }
}
