/* Continuous-flow NDA editor — v202608162131 */

#ndaEditorRoot.nda-editor-shell {
    background: #d8dde3;
    min-height: calc(100vh - 80px);
    padding: 2rem 0 3rem;
}

#ndaEditorRoot .nda-editor-stage {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 1rem;
}

#ndaEditorRoot .nda-document-wrap {
    width: 210mm;
    max-width: calc(100vw - 2rem);
    margin: 0 auto;
}

#ndaEditorRoot .nda-document {
    width: 100%;
    background: #fff;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.08);
    padding: 22mm 20mm 24mm;
    font-family: 'Times New Roman', Times, serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #1a1a1a;
    box-sizing: border-box;
}

#ndaEditorRoot .nda-doc-title {
    text-align: center;
    font-size: 14pt;
    font-weight: bold;
    letter-spacing: 0.06em;
    margin: 1.5rem 0 0.75rem;
    text-transform: uppercase;
}

#ndaEditorRoot .nda-doc-subtitle {
    text-align: center;
    font-size: 10pt;
    color: #333;
    margin-bottom: 1rem;
}

#ndaEditorRoot .nda-letterhead {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #bbb;
}

#ndaEditorRoot .nda-logo-wrap {
    flex: 0 0 88px;
    text-align: center;
}

#ndaEditorRoot .nda-logo-preview {
    width: 88px;
    height: 88px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border: none;
    background: transparent;
}

#ndaEditorRoot .nda-logo-placeholder {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    background: #f4f4f4;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8pt;
    color: #888;
    text-align: center;
    line-height: 1.2;
}

#ndaEditorRoot .nda-logo-link {
    display: block;
    margin-top: 0.35rem;
    font-size: 8pt;
    color: #0d6efd;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Times New Roman', Times, serif;
}

#ndaEditorRoot .nda-letterhead-body {
    flex: 1;
    min-width: 0;
}

#ndaEditorRoot .nda-field-row {
    margin-bottom: 0.35rem;
}

#ndaEditorRoot .nda-field-label {
    font-size: 9pt;
    color: #555;
    margin-right: 0.25rem;
}

#ndaEditorRoot .nda-clause-heading {
    font-weight: bold;
    margin: 1.25rem 0 0.4rem;
}

#ndaEditorRoot .nda-clause,
#ndaEditorRoot .nda-clause p,
#ndaEditorRoot .nda-clause li {
    margin-bottom: 0.55rem;
    text-align: justify;
}

#ndaEditorRoot input.nda-inline-input,
#ndaEditorRoot select.nda-inline-select,
#ndaEditorRoot textarea.nda-inline-textarea,
#ndaEditorRoot .nda-inline-input,
#ndaEditorRoot .nda-inline-select,
#ndaEditorRoot .nda-inline-textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 2px !important;
    margin: 0 1px;
    vertical-align: baseline;
    min-height: auto;
    height: auto;
    -webkit-appearance: none;
    appearance: none;
}

#ndaEditorRoot select.nda-inline-select {
    padding-right: 1.45rem !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23444' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.12rem center !important;
    background-size: 0.85rem !important;
}

#ndaEditorRoot .nda-field-row > select.nda-inline-select {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    min-width: 10rem;
    box-sizing: border-box;
}

#ndaEditorRoot select.nda-inline-select--title {
    font-size: 14pt;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align-last: center;
    min-width: 16rem;
    width: auto;
    max-width: 100%;
    padding-right: 2rem !important;
    border-bottom: 1px solid #bbb !important;
    margin: 0 auto;
    display: inline-block;
}

#ndaEditorRoot .nda-doc-title--editable {
    margin-top: 1.25rem;
}

#ndaEditorRoot input.nda-inline-input:focus,
#ndaEditorRoot select.nda-inline-select:focus,
#ndaEditorRoot textarea.nda-inline-textarea:focus {
    border-bottom-color: #6c9bd1 !important;
    background: rgba(13, 110, 253, 0.06) !important;
}

#ndaEditorRoot .nda-inline-input--wide {
    min-width: 12em;
    width: 85%;
    max-width: 100%;
    display: inline-block;
}

#ndaEditorRoot .nda-inline-input--medium {
    min-width: 6em;
    width: auto;
    max-width: 45%;
}

#ndaEditorRoot .nda-inline-input--narrow {
    min-width: 3em;
    width: 4.5em;
}

#ndaEditorRoot .nda-inline-textarea {
    display: block;
    width: 100%;
    min-height: 3.2em;
    resize: vertical;
    border-bottom: 1px solid #ddd !important;
    padding: 0.25rem 0 !important;
    margin: 0.35rem 0;
}

#ndaEditorRoot .nda-signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

#ndaEditorRoot .nda-signature-line {
    border-bottom: 1px solid #333;
    height: 2.2em;
    margin: 0.65rem 0;
}

#ndaEditorRoot .nda-signature-input {
    display: block;
    width: 100%;
    border-bottom: 1px solid #333 !important;
    margin: 0.15rem 0 0.75rem;
    padding: 0.1rem 0 0.2rem !important;
}

#ndaEditorRoot .nda-clause-mutual-only,
#ndaEditorRoot .nda-clause-unilateral-only {
    display: none;
}

#ndaEditorRoot.nda-doc-mode-mutual .nda-clause-mutual-only {
    display: inline;
}

#ndaEditorRoot.nda-doc-mode-mutual .nda-clause-mutual-only.block {
    display: block;
}

#ndaEditorRoot.nda-doc-mode-unilateral .nda-clause-unilateral-only {
    display: inline;
}

#ndaEditorRoot.nda-doc-mode-unilateral .nda-clause-unilateral-only.block {
    display: block;
}

#ndaEditorRoot .nda-optional-section {
    display: none;
}

#ndaEditorRoot .nda-optional-section.is-visible {
    display: block;
}

.nda-editor-toolbar {
    position: sticky;
    top: 72px;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nda-save-status { font-size: 0.8rem; color: #6c757d; }
.nda-save-status.is-saving { color: #ffc107; }
.nda-save-status.is-saved { color: #198754; }
.nda-save-status.is-error { color: #dc3545; }

.nda-download-dropdown {
    position: relative;
}

/* Landing theme opens dropdowns on hover — click-only here */
.nda-download-dropdown.dropdown:hover > .dropdown-menu:not(.show) {
    display: none !important;
}

.nda-download-dropdown .dropdown-menu.show {
    display: block !important;
    animation: none !important;
    transform: none !important;
}

.nda-download-dropdown .dropdown-toggle,
.nda-download-dropdown .dropdown-toggle:hover,
.nda-download-dropdown .dropdown-toggle:focus,
.nda-download-dropdown .dropdown-toggle.show {
    transform: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    padding: 0.25rem 0.75rem !important;
}

.nda-download-dropdown .dropdown-menu {
    min-width: 11.5rem;
    padding: 0.35rem 0;
    margin-top: 0.35rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nda-download-dropdown .dropdown-menu:hover .dropdown-item {
    opacity: 1 !important;
}

.nda-download-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.55rem 1rem !important;
    padding-right: 1rem !important;
    opacity: 1 !important;
    font-weight: 400 !important;
    color: #1a1a1a;
    border: none;
    background: transparent;
    text-align: left;
    transform: none !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.nda-download-dropdown .dropdown-item::after {
    display: none !important;
    content: none !important;
}

.nda-download-dropdown .dropdown-item:hover,
.nda-download-dropdown .dropdown-item:focus {
    transform: none !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}

.nda-download-dropdown .dropdown-item i {
    font-size: 1rem;
    width: 1.25rem;
}

.nda-download-wrap.is-blocked {
    cursor: not-allowed;
}

.nda-download-wrap.is-blocked .dropdown-toggle.is-incomplete {
    opacity: 0.65;
    cursor: not-allowed;
}

.nda-required-asterisk {
    color: #dc3545;
    font-weight: 700;
}

#ndaEditorRoot .nda-lead-required.nda-inline-input,
#ndaEditorRoot .nda-lead-required.nda-inline-select,
#ndaEditorRoot .nda-lead-required.nda-inline-textarea {
    border-bottom: 1px solid rgba(220, 53, 69, 0.55) !important;
}

#ndaEditorRoot .nda-lead-required.nda-lead-required--empty {
    border-bottom: 2px solid #dc3545 !important;
    box-shadow: none !important;
}

#ndaEditorRoot .nda-lead-required.nda-inline-input:focus,
#ndaEditorRoot .nda-lead-required.nda-inline-select:focus,
#ndaEditorRoot .nda-lead-required.nda-inline-textarea:focus {
    border-bottom-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.06) !important;
}

.nda-lead-capture-hint {
    max-width: 14rem;
    line-height: 1.3;
}

#ndaEditorRoot .nda-lead-field-row .nda-field-label .nda-required-asterisk,
#ndaEditorRoot .nda-lead-field-label .nda-required-asterisk {
    color: #dc3545;
    font-weight: 700;
}

@media (max-width: 768px) {
    #ndaEditorRoot .nda-document-wrap { width: 100%; }
    #ndaEditorRoot .nda-document {
        padding: 1.25rem 1rem 2rem;
        font-size: 10pt;
    }
    #ndaEditorRoot .nda-signature-grid { grid-template-columns: 1fr; }
}

@media print {
    #ndaEditorRoot.nda-editor-shell { background: #fff; padding: 0; }
    #ndaEditorRoot .nda-document { box-shadow: none; padding: 0; }
    .nda-editor-toolbar { display: none; }
}
