/* ══════════════════════════════════════
   NRN Form Create / Edit Page Layout
   ══════════════════════════════════════ */

/* Page wrapper */
.nrn-fc-page {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: #f4f6f9;
    min-height: 100%;
}

/* ── Top Bar ─────────────────────────── */
.nrn-fc-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 24px 12px 24px;
    background: #f4f6f9;
}

.nrn-fc-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nrn-fc-breadcrumb {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

    .nrn-fc-breadcrumb:hover {
        text-decoration: underline;
        color: #1d4ed8;
    }

.nrn-fc-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.nrn-fc-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.nrn-fc-btn-cancel {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

    .nrn-fc-btn-cancel:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
    }

.nrn-fc-btn-submit {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

    .nrn-fc-btn-submit:hover {
        background: #1d4ed8;
    }

    .nrn-fc-btn-submit:disabled,
    .nrn-fc-btn-cancel:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ── Body (two-column layout) ─────────── */
.nrn-fc-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    padding: 0 24px 24px 24px;
    align-items: start;
}

/* ── Card ────────────────────────────── */
.nrn-fc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
}

.nrn-fc-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
}

/* ── Form Fields ─────────────────────── */
.nrn-fc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.nrn-fc-field-checkbox {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: start;
}

.nrn-fc-field:last-child {
    margin-bottom: 0;
}

.nrn-fc-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.nrn-fc-label-checkbox {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin: 0px;
    padding: 0px;
}

/* Force DevExpress inputs to look consistent */
.nrn-fc-field .dxbl-text-edit,
.nrn-fc-field .dxbl-combobox {
    width: 100% !important;
    border-radius: 6px !important;
}

/* ── Settings Card (right) ───────────── */
.nrn-fc-settings-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

    .nrn-fc-settings-item:last-child {
        margin-bottom: 0;
    }

    .nrn-fc-settings-item .dxbl-checkbox {
        margin-top: 2px;
        flex-shrink: 0;
    }

.nrn-fc-settings-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nrn-fc-settings-label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.nrn-fc-settings-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}
