* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    display: flex;
    min-height: 100vh;
}
/* ─── MAIN ─────────────────────────────────────────────── */
.main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; }

/* ─── TOP BAR ──────────────────────────────────────────── */
.top-bar {
    background: white;
    border-bottom: 1px solid #e2e5ea;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page-title { font-size: 20px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #0f172a; }
.page-subtitle { font-size: 11.5px; color: #6b7280; margin-top: 3px; }

/* ─── CONTENT ──────────────────────────────────────────── */
.content { padding: 22px 28px 40px; display: flex; flex-direction: column; gap: 16px; }

/* ─── PANEL ────────────────────────────────────────────── */
.panel { background: white; border-radius: 10px; border: 1px solid #e2e5ea; padding: 20px; }
.panel-title {
    font-size: 13px; font-weight: 700; color: #0f172a;
    display: flex; align-items: center; gap: 7px;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
}

/* Stage badges */
.stage-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.stage-documents    { background: #dbeafe; color: #1d4ed8; }
.stage-processing   { background: #fef9c3; color: #854d0e; }
.stage-underwriting { background: #ede9fe; color: #6d28d9; }
.stage-approved     { background: #dcfce7; color: #15803d; }
.stage-closing      { background: #ffedd5; color: #9a3412; }
.stage-funded       { background: #d1fae5; color: #065f46; }

/* ─── LOAN SELECTOR ────────────────────────────────────── */
.bp-loan-selector { position: relative; }

.bp-loan-current {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 14px;
    background: white; border: 1px solid #e2e5ea; border-radius: 8px;
    cursor: pointer; min-width: 310px;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.bp-loan-current:hover { border-color: var(--accent-color); }
.bp-loan-current.open { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(81,112,255,0.1); }

.bp-loan-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.bp-loan-meta { font-size: 11px; color: #6b7280; margin-top: 1px; }
.bp-loan-caret { margin-left: auto; font-size: 10px; color: #9ca3af; transition: transform 0.15s; }
.bp-loan-current.open .bp-loan-caret { transform: rotate(180deg); }

.bp-loan-dropdown {
    display: none; position: absolute;
    top: calc(100% + 6px); right: 0;
    background: white; border: 1px solid #e2e5ea;
    border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    z-index: 200; min-width: 360px; padding: 6px;
}
.bp-loan-dropdown.open { display: block; }
.bp-loan-search-wrap {
    padding: 6px;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 4px;
}
.bp-loan-search {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    font-size: 12px;
    color: #0f172a;
    background: #fbfcfe;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.bp-loan-search:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(81,112,255,0.1);
    background: white;
}
.bp-loan-empty {
    padding: 14px 10px;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
}

.bp-loan-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 10px; border-radius: 7px;
    cursor: pointer; transition: background 0.1s;
}
.bp-loan-option:hover { background: #f4f6fb; }
.bp-loan-option.selected { background: #eef1ff; }
.bp-loan-option-name { font-size: 12.5px; font-weight: 600; color: #0f172a; }
.bp-loan-option-meta { font-size: 11px; color: #6b7280; }

/* ─── PROGRESS TRACKER ─────────────────────────────────── */
.bp-tracker-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.bp-tracker-title    { font-size: 13px; font-weight: 700; color: #0f172a; }
.bp-tracker-subtitle { font-size: 11.5px; color: #6b7280; }

.bp-tracker { display: flex; align-items: flex-start; padding: 20px 0 4px; }

.bp-step {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; position: relative; cursor: pointer;
}
.bp-step:hover .bp-step-circle { border-color: var(--accent-color); }
.bp-step:hover .bp-step-label { color: #374151; }
.bp-step.is-saving { pointer-events: none; opacity: 0.65; }

/* Connector line extending right from center */
.bp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px; left: 50%; width: 100%; height: 2px;
    background: #e2e5ea; z-index: 0;
}
.bp-step.completed:not(:last-child)::after { background: var(--accent-color); }

.bp-step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid #e2e5ea; background: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #9ca3af;
    z-index: 1; position: relative; transition: all 0.2s;
}
.bp-step.completed .bp-step-circle { background: var(--accent-color); border-color: var(--accent-color); color: white; }
.bp-step.active    .bp-step-circle { background: var(--accent-color); border-color: var(--accent-color); color: white; box-shadow: 0 0 0 5px rgba(81,112,255,0.18); }

.bp-step-label {
    margin-top: 9px; font-size: 11px; font-weight: 500;
    color: #9ca3af; text-align: center; white-space: nowrap;
}
.bp-step.completed .bp-step-label { color: #374151; font-weight: 600; }
.bp-step.active    .bp-step-label { color: var(--accent-color); font-weight: 700; }

/* ─── TWO-COLUMN GRID ──────────────────────────────────── */
.bp-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.bp-right-col { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 1100px) {
    .bp-grid {
        grid-template-columns: 1fr;
    }
}


/* ─── DOCUMENT CHECKLIST ───────────────────────────────── */
.bp-docs-progress {
    margin-left: auto;
    font-size: 11.5px; font-weight: 600; color: var(--accent-color);
    background: #eef1ff; padding: 2px 10px; border-radius: 12px;
}

.bp-doc-category { margin-bottom: 6px; }

.bp-cat-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; background: #f8f9fb;
    border-radius: 8px; cursor: pointer;
    transition: background 0.1s; user-select: none;
}
.bp-cat-header:hover { background: #eef1ff; }

.bp-cat-chevron { font-size: 10px; color: #9ca3af; transition: transform 0.15s; width: 12px; text-align: center; }
.bp-cat-name  { font-size: 12.5px; font-weight: 700; color: #0f172a; flex: 1; }
.bp-cat-count { font-size: 11px; color: #6b7280; background: #e8eaed; padding: 1px 8px; border-radius: 10px; font-weight: 600; }

.bp-doc-category.collapsed .bp-cat-chevron { transform: rotate(-90deg); }
.bp-doc-category.collapsed .bp-cat-body { display: none; }

.bp-cat-body { padding: 2px 0 6px 0; }

.bp-doc-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-bottom: 1px solid #f5f6f8;
    transition: background 0.08s;
}
.bp-doc-item:last-child { border-bottom: none; }
.bp-doc-item:hover { background: #fafbfc; border-radius: 6px; }
.bp-doc-item.doc-target { background: #eef4ff; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #93c5fd; }

.bp-doc-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bp-doc-status-dot.pending  { background: #f59e0b; }
.bp-doc-status-dot.uploaded { background: #3b82f6; }
.bp-doc-status-dot.approved { background: #10b981; }
.bp-doc-status-dot.rejected { background: #ef4444; }

.bp-doc-name { font-size: 12.5px; color: #374151; flex: 1; }
.bp-doc-subnote { display: block; margin-top: 2px; font-size: 11px; color: #991b1b; line-height: 1.35; }
.bp-doc-subnote.target-date { color: #64748b; }

.bp-doc-badge { font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 12px; white-space: nowrap; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-uploaded { background: #dbeafe; color: #1d4ed8; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

.bp-upload-btn {
    padding: 4px 10px; border-radius: 6px;
    border: 1px solid #e2e5ea; background: #f8f9fb;
    font-size: 11px; font-weight: 600; color: #374151;
    cursor: pointer; white-space: nowrap;
    font-family: 'Inter', sans-serif; flex-shrink: 0;
    transition: all 0.12s;
}
.bp-upload-btn:hover { background: #eef1ff; border-color: var(--accent-color); color: var(--accent-color); }
.bp-upload-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.doc-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.btn-view     { padding: 4px 9px; border-radius: 5px; border: 1px solid #e2e5ea; background: #f8f9fb; color: #374151; font-size: 11px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.1s; }
.btn-view:hover { background: #eef1ff; border-color: var(--accent-color); color: var(--accent-color); }
.btn-accept   { padding: 4px 9px; border-radius: 5px; border: 1px solid #6ee7b7; background: #ecfdf5; color: #065f46; font-size: 11px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.1s; }
.btn-accept:hover { background: #d1fae5; }
.btn-reject   { padding: 4px 9px; border-radius: 5px; border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b; font-size: 11px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.1s; }
.btn-reject:hover { background: #fee2e2; }

/* ─── LOAN SUMMARY ─────────────────────────────────────── */
.bp-sum-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; border-bottom: 1px solid #f1f3f5; font-size: 12.5px;
}
.bp-sum-row:last-child { border-bottom: none; }
.bp-sum-key { color: #6b7280; font-weight: 500; }
.bp-sum-val { color: #0f172a; font-weight: 600; text-align: right; font-size: 12px; max-width: 170px; }

/* ─── TASK LIST ────────────────────────────────────────── */
.bp-task-list { list-style: none; display: flex; flex-direction: column; gap: 1px; }

.bp-task-item {
    border-left: 3px solid transparent; border-radius: 0 7px 7px 0; transition: background 0.1s;
    display:flex; align-items:flex-start; justify-content:space-between;
}
.bp-task-item:hover { background: #f8f9fb; }
.bp-task-item.priority-urgent { border-left-color: #dc2626; }
.bp-task-item.priority-normal { border-left-color: #f59e0b; }
.bp-task-item.priority-low    { border-left-color: #d1d5db; }
.bp-task-toolbar { display:flex; gap:8px; margin-top:10px; }
.bp-task-input-wrap { position: relative; flex: 1; min-width: 0; }
.bp-task-input {
    flex:1; min-width:0; border:1.5px solid #dbe3ef; border-radius:8px;
    padding:9px 11px; font:inherit; font-size:12.5px; color:#1f2937; background:#fff;
    width: 100%;
}
.bp-task-input:focus { outline:none; border-color:var(--accent-color); box-shadow:0 0 0 3px rgba(81,112,255,0.12); }
.bp-task-add-btn {
    border:none; border-radius:8px; background:#0f172a; color:#fff; padding:0 14px;
    font:inherit; font-size:12px; font-weight:700; cursor:pointer; white-space:nowrap;
}
.bp-task-add-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.bp-task-mention-menu {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
    border: 1px solid #dbe3ef; border-radius: 10px; background: #fff;
    box-shadow: 0 18px 38px rgba(15,23,42,0.14); overflow: hidden;
}
.bp-task-mention-item {
    width: 100%; border: none; background: transparent; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px; cursor: pointer; font: inherit;
}
.bp-task-mention-item:hover,
.bp-task-mention-item.active { background: #eef4ff; }
.bp-task-mention-name { font-size: 12.5px; font-weight: 600; color: #0f172a; }
.bp-task-mention-role { font-size: 11px; color: #64748b; }
.bp-task-mention-empty {
    padding: 10px 12px; font-size: 12px; color: #6b7280; background: #fff;
}
.bp-task-draft-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    margin-top: 8px; min-height: 20px;
}
.bp-task-draft-label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: #94a3b8;
}
.bp-task-mention-chip {
    display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
    background: #eef4ff; color: #1d4ed8; font-size: 11px; font-weight: 600;
}

.bp-task-label { display: flex; align-items: flex-start; gap: 9px; padding: 8px 8px 8px 10px; cursor: pointer; flex:1; min-width:0; }

.bp-task-check { margin-top: 3px; width: 14px; height: 14px; accent-color: var(--accent-color); cursor: pointer; flex-shrink: 0; }

.bp-task-body  { flex: 1; }
.bp-task-text  { font-size: 12.5px; color: #374151; display: block; line-height: 1.4; }
.bp-task-text.done { text-decoration: line-through; color: #9ca3af; }

.bp-task-due { display: inline-block; font-size: 10px; font-weight: 600; margin-top: 3px; color: #9ca3af; }
.bp-task-due.urgent { color: #dc2626; }
.bp-task-due.normal { color: #d97706; }
.bp-task-delete {
    border:none; background:transparent; color:#9ca3af; cursor:pointer; flex-shrink:0;
    padding:9px 10px; font-size:16px; line-height:1; transition:color 0.15s ease;
}
.bp-task-delete:hover { color:#dc2626; }
.bp-task-empty {
    color:#6b7280; font-size:12.5px; padding:10px 0 2px;
}

/* ─── GENERATE LINK BUTTON ────────────────────────────── */
.bp-gen-link-btn {
    padding: 3px 10px; border-radius: 6px;
    border: 1px solid #e2e5ea; background: white;
    font-size: 11px; font-weight: 600; color: #374151;
    cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all 0.12s; white-space: nowrap;
}
.bp-gen-link-btn:hover { background: #eef1ff; border-color: var(--accent-color); color: var(--accent-color); }
.bp-gen-link-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── DOC PACKAGE SELECTOR ────────────────────────────── */
.pkg-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 16px 12px;
    border-bottom: 1px solid #f1f3f5;
}
.pkg-label { font-size: 11.5px; font-weight: 600; color: #6b7280; white-space: nowrap; }
.pkg-edit-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 6px; border: 1px solid #e2e5ea;
    background: white; color: #9ca3af; cursor: pointer; transition: all 0.12s;
    flex-shrink: 0;
}
.pkg-edit-btn:hover { border-color: var(--accent-color); color: var(--accent-color); background: #eef1ff; }
.pkg-edit-btn svg { width: 11px; height: 11px; }
.pkg-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pkg-pill {
    padding: 4px 13px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
    border: 1px solid #e2e5ea; background: white; color: #6b7280;
    cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.12s;
    user-select: none;
}
.pkg-pill:hover { border-color: var(--accent-color); color: var(--accent-color); }
.pkg-pill.active { background: var(--accent-color); color: white; border-color: var(--accent-color); }
.pkg-pill.manual-pill { border-style: dashed; }
.pkg-pill.manual-pill.active { background: #0f172a; border-color: #0f172a; border-style: solid; }
.pkg-lender-filter {
    padding: 3px 8px; border-radius: 7px; border: 1px solid #e2e5ea;
    background: white; font-size: 11px; font-weight: 600; color: #6b7280;
    cursor: pointer; font-family: 'Inter', sans-serif; outline: none;
    transition: border-color 0.12s;
}
.pkg-lender-filter:focus, .pkg-lender-filter:hover { border-color: var(--accent-color); color: var(--accent-color); }
.pkg-lender-filter.active { border-color: var(--accent-color); color: var(--accent-color); background: #eef1ff; }

/* ─── MANAGE PACKAGES MODAL ────────────────────────────── */
.pkg-mgr-overlay {
    display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.45);
    z-index: 9000; align-items: center; justify-content: center;
}
.pkg-mgr-overlay.open { display: flex; }
.pkg-mgr-modal {
    background: white; border-radius: 14px; width: 520px; max-width: calc(100vw - 32px);
    max-height: 85vh; display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.pkg-mgr-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px; border-bottom: 1px solid #f1f3f5;
}
.pkg-mgr-header h3 { font-size: 14px; font-weight: 700; color: #1e293b; margin: 0; }
.pkg-mgr-close {
    width: 28px; height: 28px; border-radius: 7px; border: none;
    background: #f8f9fa; color: #6b7280; cursor: pointer; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.pkg-mgr-close:hover { background: #fee2e2; color: #ef4444; }
.pkg-mgr-body { overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 20px; }
.pkg-mgr-section-title {
    font-size: 10.5px; font-weight: 700; color: #9ca3af; letter-spacing: 0.06em;
    text-transform: uppercase; margin-bottom: 8px;
}
.pkg-mgr-list { display: flex; flex-direction: column; gap: 6px; }
.pkg-mgr-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 12px; border-radius: 8px; border: 1px solid #f1f3f5; background: #fafbfc;
}
.pkg-mgr-row-name { font-size: 12.5px; font-weight: 600; color: #374151; }
.pkg-mgr-row-count { font-size: 11px; color: #9ca3af; margin-left: 6px; }
.pkg-mgr-del-btn {
    width: 24px; height: 24px; border-radius: 6px; border: 1px solid #fecaca;
    background: #fff5f5; color: #ef4444; cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center; transition: all 0.12s;
}
.pkg-mgr-del-btn:hover { background: #fee2e2; border-color: #ef4444; }
.pkg-mgr-lender-tag {
    font-size: 10.5px; font-weight: 600; color: var(--accent-color);
    background: #eef1ff; border-radius: 4px; padding: 2px 7px; margin-left: 6px;
}
.pkg-mgr-divider { border: none; border-top: 1px solid #f1f3f5; margin: 0; }
.pkg-new-name {
    width: 100%; box-sizing: border-box; padding: 7px 11px; border-radius: 8px;
    border: 1px solid #e2e5ea; font-size: 12.5px; font-family: 'Inter', sans-serif;
    color: #1e293b; outline: none; margin-bottom: 12px;
}
.pkg-new-name:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(81,112,255,0.1); }
.pkg-new-name::placeholder { color: #b0b7c3; }
.pkg-new-select {
    width: 100%; box-sizing: border-box; padding: 7px 11px; border-radius: 8px;
    border: 1px solid #e2e5ea; font-size: 12.5px; font-family: 'Inter', sans-serif;
    color: #1e293b; outline: none; background: white; cursor: pointer; margin-bottom: 12px;
}
.pkg-new-select:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(81,112,255,0.1); }
.pkg-doc-grid {
    display: flex; flex-direction: column; gap: 12px;
}
.pkg-doc-cat-label {
    font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: 0.06em;
    text-transform: uppercase; margin-bottom: 5px;
}
.pkg-doc-checkboxes { display: flex; flex-direction: column; gap: 4px; }
.pkg-doc-check-row {
    display: flex; align-items: center; gap: 8px; padding: 4px 0;
    cursor: pointer; user-select: none;
}
.pkg-doc-check-row input[type=checkbox] { accent-color: var(--accent-color); width: 13px; height: 13px; cursor: pointer; }
.pkg-doc-check-row span { font-size: 12px; color: #374151; }
.pkg-mgr-footer {
    padding: 12px 20px; border-top: 1px solid #f1f3f5;
    display: flex; gap: 8px; justify-content: space-between; align-items: center;
}
.pkg-mgr-cancel-btn {
    padding: 7px 16px; border-radius: 8px; border: 1px solid #e2e5ea;
    background: white; color: #6b7280; font-size: 12.5px; font-weight: 600;
    cursor: pointer; font-family: 'Inter', sans-serif;
}
.pkg-mgr-cancel-btn:hover { border-color: #94a3b8; color: #374151; }
.pkg-mgr-save-btn {
    padding: 7px 16px; border-radius: 8px; border: none;
    background: var(--accent-color); color: white; font-size: 12.5px; font-weight: 600;
    cursor: pointer; font-family: 'Inter', sans-serif;
}
.pkg-mgr-save-btn:hover { background: #3d5ce6; }
.pkg-mgr-save-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pkg-mgr-footer-right { display: flex; gap: 8px; }
.pkg-mgr-docs-btn {
    padding: 7px 14px; border-radius: 8px; border: 1px solid #e2e5ea;
    background: white; color: #374151; font-size: 12.5px; font-weight: 600;
    cursor: pointer; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; gap: 6px;
}
.pkg-mgr-docs-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }

/* ─── DOCUMENT MANAGER MODAL ─────────────────────────────── */
.doc-mgr-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 9100;
    align-items: center; justify-content: center;
}
.doc-mgr-overlay.open { display: flex; }
.doc-mgr-modal {
    background: white; border-radius: 14px;
    width: min(560px, 95vw); max-height: 85vh;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.doc-mgr-body {
    flex: 1; overflow-y: auto; padding: 16px 20px;
    display: flex; flex-direction: column; gap: 0;
}
.doc-mgr-footer {
    padding: 12px 20px; border-top: 1px solid #f1f3f5;
    display: flex; flex-direction: column; gap: 10px;
}
.doc-mgr-footer-close { display: flex; justify-content: flex-end; }
.doc-mgr-list { display: flex; flex-direction: column; gap: 14px; }
.doc-mgr-cat-block { display: flex; flex-direction: column; gap: 2px; }
.doc-mgr-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 8px; border-radius: 6px; transition: background 0.12s;
}
.doc-mgr-row:hover { background: #f8f9fb; }
.doc-mgr-row-name { font-size: 12.5px; color: #374151; flex: 1; }
.doc-mgr-row-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.doc-mgr-edit-btn {
    padding: 3px 8px; border-radius: 6px; border: 1px solid #e2e5ea;
    background: white; color: #6b7280; cursor: pointer;
    display: flex; align-items: center; transition: all 0.12s;
}
.doc-mgr-edit-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.doc-mgr-del-btn {
    padding: 3px 8px; border-radius: 6px; border: 1px solid #fecaca;
    background: #fef2f2; color: #ef4444; font-size: 11px; cursor: pointer;
    transition: all 0.12s; font-family: 'Inter', sans-serif;
}
.doc-mgr-del-btn:hover { background: #ef4444; color: white; border-color: #ef4444; }
.doc-mgr-add-form { margin-top: 16px; }
.doc-mgr-add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ─── PKG DOC PANEL ────────────────────────────────────── */
.manual-panel {
    display: none;
    border-bottom: 1px solid #f1f3f5;
    background: #fafbfc;
}
.manual-panel.open { display: block; }

.pkg-panel-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px 8px;
    border-bottom: 1px solid #f1f3f5;
}
.pkg-panel-count {
    font-size: 11.5px; font-weight: 700; color: var(--accent-color);
    background: #eef1ff; padding: 2px 10px; border-radius: 12px;
}
.pkg-show-only-btn {
    margin-left: auto; padding: 4px 12px; border-radius: 6px;
    border: 1px solid #e2e5ea; background: white;
    font-size: 11.5px; font-weight: 600; color: #6b7280;
    cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.12s;
}
.pkg-show-only-btn.active { background: #0f172a; border-color: #0f172a; color: white; }
.pkg-show-only-btn:hover:not(.active) { border-color: var(--accent-color); color: var(--accent-color); }

.manual-doc-list { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; padding: 8px 16px 12px; gap: 0; }

.pkg-cat-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #9ca3af;
    padding: 10px 0 5px; margin-top: 2px;
}
.pkg-cat-label:first-child { padding-top: 2px; }

.pkg-doc-row {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; border-radius: 6px;
    transition: background 0.08s; cursor: pointer;
}
.pkg-doc-row:hover { background: #f1f3f5; }
.pkg-doc-row.hidden { display: none; }
.pkg-doc-row input[type=checkbox] {
    width: 15px; height: 15px; accent-color: var(--accent-color);
    cursor: pointer; flex-shrink: 0;
}
.pkg-doc-row.locked input[type=checkbox] { cursor: not-allowed; opacity: 0.5; }
.pkg-doc-check-name { font-size: 12.5px; color: #374151; flex: 1; line-height: 1.35; }
.pkg-doc-lock-badge {
    font-size: 10px; font-weight: 600; padding: 1px 7px;
    border-radius: 10px; white-space: nowrap; flex-shrink: 0;
}

/* ─── LEGEND ───────────────────────────────────────────── */
.bp-legend {
    display: flex; gap: 16px; margin-top: 2px; padding-top: 14px;
    border-top: 1px solid #f1f3f5;
}
.bp-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6b7280; }
.bp-legend-dot  { width: 8px; height: 8px; border-radius: 50%; }

/* ─── DOC CHECKLIST HEADER ─────────────────────────────── */
.doc-panel-header {
    display: flex; flex-direction: column; gap: 9px;
    margin-bottom: 0; padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
}
.doc-header-top {
    display: flex; align-items: center; gap: 10px;
}
.doc-header-title {
    font-size: 13px; font-weight: 700; color: #0f172a;
}
.doc-last-activity {
    font-size: 11.5px; color: #9ca3af; font-weight: 400;
}
.doc-header-actions {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.doc-action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 7px;
    border: 1.5px solid #e2e5ea; background: #f8f9fb;
    font-size: 12px; font-weight: 600; color: #374151;
    cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all 0.15s; white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.doc-action-btn:hover {
    background: #eef1ff; border-color: #a5b4fc;
    color: var(--accent-color); box-shadow: 0 2px 8px rgba(81,112,255,0.12);
    transform: translateY(-1px);
}
.doc-action-btn svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.75; }
.doc-action-btn:hover svg { opacity: 1; }
.doc-action-btn-fullfile {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 7px;
    border: 1.5px solid #e2e5ea; background: #f8f9fb;
    font-size: 12px; font-weight: 600; color: #374151;
    cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all 0.15s; white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.doc-action-btn-fullfile:hover {
    background: #eef1ff; border-color: #a5b4fc;
    color: var(--accent-color); box-shadow: 0 2px 8px rgba(81,112,255,0.12);
    transform: translateY(-1px);
}
.doc-action-btn-fullfile svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.75; }
.doc-action-btn-fullfile:hover svg { opacity: 1; }
.doc-progress-pill {
    margin-left: auto;
    font-size: 11.5px; font-weight: 600; color: var(--accent-color);
    background: #eef1ff; padding: 2px 10px; border-radius: 12px;
}

/* Document viewer modal */
.doc-viewer-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.58); z-index: 650;
    align-items: center; justify-content: center; padding: 18px;
}
.doc-viewer-overlay.open { display: flex; }
.doc-viewer-modal {
    width: min(1120px, 100%); height: min(88vh, 900px);
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    display: flex; flex-direction: column;
}
.doc-viewer-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 16px 20px; border-bottom: 1px solid #e2e5ea;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.doc-viewer-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.doc-viewer-subtitle { font-size: 11.5px; color: #6b7280; margin-top: 3px; }
.doc-viewer-actions { display: flex; align-items: center; gap: 8px; }
.doc-viewer-link {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 12px; border-radius: 8px; border: 1px solid #dbe1ea;
    background: #f8fafc; color: #334155; text-decoration: none;
    font-size: 12px; font-weight: 600; transition: all 0.12s;
}
.doc-viewer-link:hover { background: #eef2ff; border-color: #a5b4fc; color: #4338ca; }
.doc-viewer-close {
    width: 34px; height: 34px; border-radius: 8px;
    border: 1px solid #e2e5ea; background: #fff; cursor: pointer;
    font-size: 16px; color: #64748b; transition: all 0.12s;
}
.doc-viewer-close:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.doc-viewer-body {
    position: relative; flex: 1; background: #e5e7eb;
    min-height: 360px;
}
.doc-viewer-frame {
    width: 100%; height: 100%; border: 0; display: block; background: #f8fafc;
}
.doc-viewer-state {
    position: absolute; inset: 0; display: none;
    align-items: center; justify-content: center; flex-direction: column;
    gap: 10px; padding: 24px; text-align: center;
    background: linear-gradient(180deg, rgba(248,250,252,0.96) 0%, rgba(255,255,255,0.98) 100%);
}
.doc-viewer-state.open { display: flex; }
.doc-viewer-spinner {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid #dbeafe; border-top-color: #2563eb;
    animation: docViewerSpin 0.8s linear infinite;
}
.doc-viewer-state-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.doc-viewer-state-copy { font-size: 12px; color: #6b7280; max-width: 420px; line-height: 1.5; }
@keyframes docViewerSpin {
    to { transform: rotate(360deg); }
}

/* ─── FULL FILE MODAL ──────────────────────────────────── */
.ff-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 600;
    align-items: center; justify-content: center; padding: 20px;
}
.ff-overlay.open { display: flex; }
.ff-modal {
    background: white; border-radius: 12px; width: 100%;
    max-width: 1000px; max-height: 92vh;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22); overflow: hidden;
}
.ff-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px; border-bottom: 1px solid #e2e5ea;
    flex-shrink: 0; background: #fff;
}
.ff-header-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.ff-header-sub   { font-size: 11.5px; color: #6b7280; margin-top: 2px; }
.ff-header-right { display: flex; align-items: center; gap: 8px; }
.ff-modal-close {
    width: 30px; height: 30px; border-radius: 6px;
    border: 1px solid #e2e5ea; background: #f8f9fb;
    cursor: pointer; font-size: 15px; color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.12s;
}
.ff-modal-close:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.ff-body { display: flex; flex: 1; overflow: hidden; }
.ff-sidebar {
    width: 210px; flex-shrink: 0; border-right: 1px solid #f1f3f5;
    padding: 18px 16px; overflow-y: auto; background: #fafbfc;
}
.ff-sidebar-label {
    font-size: 9.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: #9ca3af; margin-bottom: 10px;
}
.ff-stat { margin-bottom: 12px; }
.ff-stat-key { font-size: 10.5px; color: #6b7280; font-weight: 500; margin-bottom: 2px; }
.ff-stat-val { font-size: 13px; font-weight: 700; color: #0f172a; }
.ff-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.ff-tabs {
    display: flex; border-bottom: 1px solid #e2e5ea;
    flex-shrink: 0; padding: 0 20px; background: #fff;
}
.ff-tab {
    padding: 11px 16px; font-size: 12.5px; font-weight: 600;
    color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: color 0.12s; white-space: nowrap;
}
.ff-tab:hover { color: #0f172a; }
.ff-tab.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }
.ff-panel { display: none; flex: 1; overflow-y: auto; padding: 20px; }
.ff-panel.active { display: block; }
.ff-section-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #6b7280;
    margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #f1f3f5;
}
.doc-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border: 1px solid #e2e5ea; border-radius: 8px;
    margin-bottom: 7px; background: #fafbfc;
}
.doc-row-name   { font-size: 12.5px; font-weight: 600; color: #0f172a; }
.doc-row-status { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.doc-upload-btn {
    padding: 4px 11px; border-radius: 5px; border: 1.5px solid #e2e5ea;
    background: white; font-size: 11px; font-weight: 600; color: #374151;
    cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.12s;
}
.doc-upload-btn:hover { border-color: var(--accent-color); color: var(--accent-color); background: #eef1ff; }
.doc-upload-btn.uploaded { border-color: #10b981; color: #059669; background: #ecfdf5; }
.doc-delete-btn {
    width: 22px; height: 22px; border-radius: 5px; border: 1px solid #fecaca;
    background: #fff5f5; color: #ef4444; cursor: pointer; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-left: 6px; flex-shrink: 0; transition: all 0.12s;
}
.doc-delete-btn:hover { background: #fee2e2; border-color: #ef4444; }
.ff-add-file-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 8px;
    border: 1.5px dashed #d1d5db; background: white;
    color: #6b7280; font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: 'Inter', sans-serif;
    width: 100%; margin-top: 8px; transition: all 0.12s;
}
.ff-add-file-btn:hover { border-color: var(--accent-color); color: var(--accent-color); background: #eef1ff; }
.ff-add-file-btn svg { width: 13px; height: 13px; }
.ff-add-inline {
    display: flex; gap: 6px; align-items: center;
    margin-top: 8px; padding: 9px 12px;
    border: 1.5px solid var(--accent-color); border-radius: 8px; background: #fafbff;
}
.ff-add-inline input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 12.5px; font-family: 'Inter', sans-serif; color: #0f172a;
}
.ff-add-inline input::placeholder { color: #b0b7c3; }
.ff-inline-save {
    padding: 4px 11px; border-radius: 6px; border: none;
    background: var(--accent-color); color: white; font-size: 11.5px; font-weight: 600;
    cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap;
}
.ff-inline-cancel {
    padding: 4px 8px; border-radius: 6px; border: 1px solid #e2e5ea;
    background: white; color: #6b7280; font-size: 11.5px; font-weight: 600;
    cursor: pointer; font-family: 'Inter', sans-serif;
}
.ff-field { margin-bottom: 14px; }
.ff-field label { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.ff-field input {
    width: 100%; padding: 7px 10px; border: 1.5px solid #e2e5ea;
    border-radius: 6px; font-size: 12.5px; font-family: 'Inter', sans-serif;
    color: #0f172a; outline: none; transition: border-color 0.12s;
}
.ff-field input:focus { border-color: var(--accent-color); }
.ff-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.trf-wrap { display: flex; flex-direction: column; gap: 16px; }
.trf-selector {
    background: #fafbff; border: 1.5px solid #e2e5ea; border-radius: 10px;
    padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.trf-selector-icon {
    width: 34px; height: 34px; border-radius: 8px; background: #eff2ff;
    color: var(--accent-color); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.trf-selector-icon svg { width: 17px; height: 17px; }
.trf-selector-label { font-size: 12px; font-weight: 700; color: #374151; white-space: nowrap; }
.trf-selector-sub { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.trf-select, .trf-input {
    width: 100%; padding: 8px 11px; border: 1.5px solid #e2e5ea; border-radius: 7px;
    font-family: 'Inter', sans-serif; font-size: 12.5px; color: #0f172a;
    background: white; outline: none; transition: border-color 0.12s;
    height: 38px; box-sizing: border-box;
}
.trf-select:focus, .trf-input:focus { border-color: var(--accent-color); }
.trf-input.autofilled, .trf-select.autofilled { background: #f5f7ff; border-color: #c7d0ff; }
.trf-input.trf-missing-autofill::placeholder { color: #dc2626; opacity: 1; }
.trf-input.trf-missing-autofill,
.trf-select.trf-missing-autofill {
    border-color: #fecaca;
    background: #fffafa;
    color: #dc2626;
}
.trf-card { border: 1px solid #e2e5ea; border-radius: 10px; overflow: hidden; background: white; }
.trf-card-title {
    padding: 13px 16px; border-bottom: 1px solid #f1f3f5;
    font-size: 13px; font-weight: 700; color: #0f172a;
}
.trf-card-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.trf-row { display: grid; gap: 14px; }
.trf-row.cols-2 { grid-template-columns: 1fr 1fr; }
.trf-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.trf-field { display: flex; flex-direction: column; gap: 5px; }
.trf-field label { min-height: 16px; display: flex; align-items: center; }
.trf-field label {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #6b7280;
}
.trf-title-company-box {
    border: 1.5px solid #dbe3f0;
    border-radius: 10px;
    background: #f8fbff;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.trf-title-company-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.trf-title-company-title { font-size: 12.5px; font-weight: 800; color: #0f172a; }
.trf-title-company-sub { font-size: 11px; color: #64748b; margin-top: 2px; }
.trf-secondary-btn {
    border: 1px solid #c7d0ff;
    background: #eef1ff;
    color: var(--accent-color);
    border-radius: 7px;
    padding: 7px 11px;
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.trf-secondary-btn:hover { background: #e2e7ff; }
.trf-secondary-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.trf-save-status { min-height: 15px; font-size: 11px; color: #64748b; }
.trf-save-status.success { color: #047857; }
.trf-save-status.error { color: #dc2626; }
.trf-required { color: #ef4444; margin-left: 2px; }
.trf-footer { display: flex; justify-content: flex-end; }
.trf-submit {
    padding: 9px 24px; background: var(--accent-color); border: none; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 700;
    color: white; cursor: pointer; transition: background 0.15s;
    display: flex; align-items: center; gap: 7px;
}
.trf-submit:hover { background: #3d5ce6; }
.trf-submit svg { width: 14px; height: 14px; }
.trf-success {
    display: none; background: #ecfdf5; border: 1.5px solid #6ee7b7;
    border-radius: 10px; padding: 15px 17px; align-items: center; gap: 12px;
}
.trf-success.show { display: flex; }
.trf-success svg { width: 21px; height: 21px; color: #059669; flex-shrink: 0; }
.trf-success-title { font-size: 13.5px; font-weight: 700; color: #065f46; }
.trf-success-sub { font-size: 12px; color: #047857; margin-top: 2px; }
.trf-error { border-color: #ef4444 !important; }

/* ─── REMINDER MODAL ───────────────────────────────────── */
.rm-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 1000;
    align-items: center; justify-content: center; padding: 24px;
}
.rm-overlay.open { display: flex; }
.rm-modal {
    background: white; border-radius: 12px; width: 100%; max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden;
    display: flex; flex-direction: column; max-height: 90vh;
}
.rm-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px 0; flex-shrink: 0;
}
.rm-header-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.rm-header-sub   { font-size: 11.5px; color: #6b7280; margin-top: 2px; }
.rm-close {
    width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid #e2e5ea; background: #f8f9fb;
    cursor: pointer; font-size: 15px; color: #6b7280;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; line-height: 1;
}
.rm-close:hover { background: #eee; }
.rm-tabs {
    display: flex; gap: 0; padding: 14px 22px 0; border-bottom: 1px solid #e2e5ea;
    flex-shrink: 0;
}
.rm-tab {
    padding: 8px 16px; font-size: 12.5px; font-weight: 600;
    color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: color 0.12s, border-color 0.12s;
    user-select: none;
}
.rm-tab.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }
.rm-body { padding: 20px 22px 22px; overflow-y: auto; flex: 1; }
.rm-tab-panel { display: none; }
.rm-tab-panel.active { display: block; }

/* Send Now tab */
.rm-method-toggle {
    display: flex; background: #f1f3f5; border-radius: 8px;
    padding: 3px; gap: 3px; margin-bottom: 16px;
}
.rm-method-btn {
    flex: 1; padding: 7px; border-radius: 6px; border: none;
    background: transparent; font-size: 12.5px; font-weight: 600;
    color: #6b7280; cursor: pointer; font-family: 'Inter', sans-serif;
    transition: background 0.12s, color 0.12s;
}
.rm-method-btn.active { background: white; color: #0f172a; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.rm-error {
    display: none; background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 8px; color: #991b1b; font-size: 12.5px;
    font-weight: 600; line-height: 1.4; padding: 10px 12px;
    margin-bottom: 14px;
}
.rm-error.show { display: block; }
.rm-field-label {
    font-size: 11px; font-weight: 700; color: #6b7280;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
.rm-input {
    width: 100%; padding: 9px 12px; border: 1.5px solid #e2e5ea;
    border-radius: 7px; font-size: 12.5px; font-family: 'Inter', sans-serif;
    color: #0f172a; outline: none; transition: border-color 0.12s;
    margin-bottom: 12px;
}
.rm-input:focus { border-color: var(--accent-color); }
.rm-textarea {
    width: 100%; padding: 10px 12px; border: 1.5px solid #e2e5ea;
    border-radius: 7px; font-size: 12.5px; font-family: 'Inter', sans-serif;
    color: #0f172a; outline: none; resize: vertical; min-height: 140px;
    line-height: 1.6; transition: border-color 0.12s; margin-bottom: 14px;
}
.rm-textarea:focus { border-color: var(--accent-color); }
.rm-send-btn {
    width: 100%; padding: 11px; background: var(--primary-color); color: white;
    border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.15s;
}
.rm-send-btn:hover { background: #003570; }

/* Set Reminder tab */
.rm-freq-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.rm-freq-label { font-size: 13px; color: #374151; font-weight: 500; white-space: nowrap; }
.rm-freq-input {
    width: 70px; padding: 8px 10px; border: 1.5px solid #e2e5ea;
    border-radius: 7px; font-size: 13px; font-family: 'Inter', sans-serif;
    color: #0f172a; outline: none; text-align: center;
    transition: border-color 0.12s;
}
.rm-freq-input:focus { border-color: var(--accent-color); }
.rm-select {
    padding: 8px 12px; border: 1.5px solid #e2e5ea; border-radius: 7px;
    font-size: 12.5px; font-family: 'Inter', sans-serif; color: #0f172a;
    outline: none; background: white; cursor: pointer;
    transition: border-color 0.12s;
}
.rm-select:focus { border-color: var(--accent-color); }
.rm-active-reminder {
    display: none; background: #f0fdf4; border: 1px solid #a7f3d0;
    border-radius: 8px; padding: 12px 14px; margin-bottom: 14px;
    font-size: 12.5px; color: #065f46;
}
.rm-active-reminder.show { display: flex; align-items: center; gap: 10px; }
.rm-cancel-reminder {
    margin-left: auto; font-size: 11.5px; font-weight: 600;
    color: #dc2626; cursor: pointer; white-space: nowrap;
    background: none; border: none; font-family: 'Inter', sans-serif;
}
.rm-cancel-reminder:hover { text-decoration: underline; }
.rm-save-btn {
    width: 100%; padding: 11px; background: var(--primary-color); color: white;
    border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.15s;
}
.rm-save-btn:hover { background: #003570; }

/* Portal-level reminder indicator */
.bp-reminder-badge {
    display: none; align-items: center; gap: 8px;
    background: #f0fdf4; border: 1px solid #a7f3d0; border-radius: 8px;
    padding: 8px 14px; font-size: 12px; color: #065f46; margin-top: 10px;
}
.bp-reminder-badge.show { display: inline-flex; }
.bp-reminder-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
/* ── FF Readiness Bar ──────────────────────────────── */
.ff-readiness-bar {
    background: #f8f9fb;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ff-readiness-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}
.ff-readiness-stat {
    font-size: 12px;
    color: #475569;
}
.ff-readiness-stat strong {
    color: #0f172a;
}
.ff-readiness-verdict {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}
.ff-readiness-verdict.ready {
    background: #dcfce7;
    color: #166534;
}
.ff-readiness-verdict.not-ready {
    background: #fee2e2;
    color: #b91c1c;
}

/* FF Blocker Sections */
.ff-blockers-section,
.ff-accepted-section {
    margin-bottom: 16px;
}
.ff-blocker-group {
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.ff-blocker-group-header {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ff-blocker-group-header.rejected { background: #fef2f2; color: #b91c1c; }
.ff-blocker-group-header.pending-review { background: #f5f3ff; color: #6d28d9; }
.ff-blocker-group-header.missing { background: #f1f5f9; color: #475569; }
.ff-blocker-group-body { padding: 0; }

/* FF Doc Row (submission view) */
.ff-submission-doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
}
.ff-submission-doc-row:last-child {
    border-bottom: none;
}
.ff-submission-doc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.ff-submission-doc-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ff-submission-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 11px;
    color: #6b7280;
}
.ff-submission-doc-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}
.ff-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s;
    text-decoration: none;
}
.ff-download-btn:hover {
    background: #f1f5f9;
    border-color: #9ca3af;
}
.ff-submission-note {
    font-size: 11.5px;
    color: #6b7280;
    padding: 10px 12px;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    margin-top: 8px;
    line-height: 1.5;
}
.worklist-inline-note {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
}

/* Worklist Chips (status pills) */
.worklist-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}
.worklist-chip.pending { background: #e0f2fe; color: #0369a1; }
.worklist-chip.uploaded { background: #ede9fe; color: #6d28d9; }
.worklist-chip.approved { background: #dcfce7; color: #166534; }
.worklist-chip.rejected { background: #fee2e2; color: #b91c1c; }
.worklist-chip.neutral { background: #e2e8f0; color: #475569; }

/* ─── PROCESSOR/ADMIN ACTION BAR ──────────────────────── */
.bp-admin-bar { border-top: 2px solid #fbbf24; }
.bp-admin-bar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bp-admin-bar-title {
    font-size: 11px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
}
.bp-admin-bar-split {
    width: 1px;
    height: 18px;
    background: #e2e8f0;
    margin-right: 4px;
}
.bp-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 13px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.12s;
    white-space: nowrap;
}
.bp-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.bp-action-btn-primary { background: var(--accent-color); color: #ffffff; border-color: var(--accent-color); }
.bp-action-btn-primary:hover:not(:disabled) { filter: brightness(0.95); }
.bp-action-btn-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.bp-action-btn-success:hover:not(:disabled) { background: #dcfce7; border-color: #86efac; }
.bp-action-btn-warn { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.bp-action-btn-warn:hover:not(:disabled) { background: #ffedd5; border-color: #fdba74; }
.bp-action-btn-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.bp-action-btn-danger:hover:not(:disabled) { background: #fee2e2; border-color: #fca5a5; }
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
}
.modal-overlay.open { display: flex; }
.modal-card {
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e5ea;
    background: #ffffff;
}
.modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}
.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #e2e5ea;
    background: #f8f9fb;
    color: #6b7280;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
}
.modal-close:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.modal-body {
    padding: 16px 20px 18px;
    overflow-y: auto;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e2e5ea;
    background: #f8fafc;
}
.btn-cancel {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; border-radius: 6px;
    border: 1px solid #d1d5db; background: #f8f9fb;
    font-size: 12px; font-weight: 600; color: #374151;
    cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all 0.12s; white-space: nowrap;
}
.btn-cancel:hover { border-color: #9ca3af; background: #f1f3f5; color: #0f172a; }
.btn-cancel:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-delete {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; border-radius: 6px;
    border: 1px solid #fecaca; background: #fef2f2;
    font-size: 12px; font-weight: 600; color: #dc2626;
    cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all 0.12s; white-space: nowrap;
}
.btn-delete:hover { background: #fee2e2; border-color: #fca5a5; }
.btn-delete:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── ACTIVITY LOG ────────────────────────────────────── */
.bp-activity-card { padding: 0; overflow: hidden; }
.bp-activity-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    padding: 14px 16px;
}
.bp-activity-toggle:hover { background: #f8fafc; }
.bp-activity-title-wrap { display: flex; flex-direction: column; gap: 3px; }
.bp-activity-title { font-size: 13px; font-weight: 700; color: #0f172a; }
.bp-activity-subtitle { font-size: 11.5px; color: #64748b; }
.bp-activity-caret { font-size: 11px; color: #94a3b8; transition: transform 0.15s; }
.bp-activity-toggle[aria-expanded="true"] .bp-activity-caret { transform: rotate(180deg); }
.bp-activity-body {
    border-top: 1px solid #f1f5f9;
    padding: 10px 16px 12px;
}
.bp-activity-content {
    font-size: 12px;
    color: #374151;
    max-height: 280px;
    overflow: auto;
}
.bp-activity-list { display: flex; flex-direction: column; gap: 1px; }
.bp-activity-item {
    padding: 8px 0; border-bottom: 1px solid #f1f5f9;
    display: flex; flex-direction: column; gap: 2px;
}
.bp-activity-item:last-child { border-bottom: none; }
.bp-activity-message { font-size: 12.5px; color: #374151; line-height: 1.4; }
.bp-activity-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #94a3b8; }
.bp-activity-actor { font-weight: 600; color: #64748b; }
.bp-activity-state { color: #6b7280; font-size: 12px; }
.bp-activity-state-error { color: #b91c1c; }

/* ─── EMAIL COMPOSER ──────────────────────────────────── */
.email-composer {
    display: none;
    position: fixed;
    bottom: 12px;
    right: 12px;
    width: 420px;
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    background: white;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 5000;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.email-composer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e5ea;
    cursor: default;
    flex-shrink: 0;
}

.email-composer-title-area {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.email-composer-title-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.email-composer-subtitle {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-composer-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 10px;
}

.email-composer-btn-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.12s;
    font-family: 'Inter', sans-serif;
}

.email-composer-btn-icon:hover {
    background: #eef1ff;
    color: var(--accent-color);
    border-color: #e2e5ea;
}

.email-composer-body {
    padding: 12px 14px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-composer-field label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.email-composer-required {
    color: #ef4444;
}

.email-composer-field input,
.email-composer-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #e2e5ea;
    border-radius: 7px;
    font-size: 12.5px;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    outline: none;
    transition: border-color 0.12s;
    box-sizing: border-box;
}

.email-composer-field input:focus,
.email-composer-field textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(81,112,255,0.1);
}

.email-composer-field textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.email-composer-field-warning {
    font-size: 11px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 5px 8px;
    margin-top: 4px;
}

.email-composer-attachments-area {
    border-top: 1px solid #f1f3f5;
    padding-top: 8px;
}

.email-composer-attachments-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.email-composer-attachment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    margin-bottom: 4px;
    gap: 8px;
}

.email-composer-attach-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.email-composer-attach-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-composer-attach-size {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

.email-composer-attach-remove {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: all 0.12s;
}

.email-composer-attach-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.email-composer-field-error {
    font-size: 12px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 7px 10px;
    line-height: 1.4;
}

.email-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid #e2e5ea;
    background: #f8fafc;
    flex-shrink: 0;
}

.email-composer-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 7px;
    border: 1px solid #e2e5ea;
    background: white;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.12s;
    white-space: nowrap;
}

.email-composer-attach-btn:hover {
    background: #eef1ff;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.email-composer-attach-btn svg {
    flex-shrink: 0;
}

.email-composer-send-btn {
    padding: 8px 20px;
    border-radius: 7px;
    border: none;
    background: var(--accent-color);
    color: white;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
    white-space: nowrap;
}

.email-composer-send-btn:hover {
    filter: brightness(0.95);
}

.email-composer-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.email-composer-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

/* Minimized state — header only */
.email-composer-minimized .email-composer-body,
.email-composer-minimized .email-composer-footer {
    display: none;
}

/* Email action button in admin bar */
.bp-action-btn-email {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.bp-action-btn-email:hover:not(:disabled) {
    background: #dbeafe;
    border-color: #93c5fd;
}
.bp-action-btn-reminder {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #c4b5fd;
}
.bp-action-btn-reminder:hover:not(:disabled) {
    background: #ede9fe;
    border-color: #a78bfa;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .email-composer {
        width: auto;
        left: 12px;
        bottom: 12px;
        right: 12px;
        max-width: none;
    }
}

/* ─── LOAN SUMMARY OVERVIEW (mirrored from lo-workspace.css) ── */
.overview-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}
.overview-card {
    background: #f8fbff;
    border: 1px solid #e1e8f5;
    border-radius: 12px;
    padding: 14px 16px;
}
.overview-card-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.overview-list {
    display: grid;
    gap: 8px;
}
.overview-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.overview-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.overview-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.overview-value {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    max-width: 62%;
    line-height: 1.45;
}
.overview-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.overview-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid #d7e3ff;
    color: #3657da;
    font-size: 11.5px;
    font-weight: 700;
}
.overview-pill strong {
    color: #0f172a;
    font-weight: 800;
}

/* Active tab state */
.doc-action-btn.active {
    background: #eef1ff;
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

/* Inline Full File panel view */
.bp-inline-ff-view {
    margin-top: 4px;
    border-top: 1px solid #eef1f5;
    padding-top: 16px;
}
.bp-inline-ff-view .ff-panel {
    display: block !important;
    border: none;
    padding: 0;
    background: transparent;
}
.bp-inline-ff-view .ff-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}
.bp-inline-ff-view .ff-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.bp-inline-ff-view .ff-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 3px;
}
.bp-inline-ff-view .ff-field input,
.bp-inline-ff-view .ff-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #e2e5ea;
    border-radius: 7px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background: #f8f9fb;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.bp-inline-ff-view .ff-field input:focus,
.bp-inline-ff-view .ff-field select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(81,112,255,0.1);
    background: white;
}
.bp-inline-ff-view .ff-add-file-btn {
    margin-top: 12px;
}

/* Insurance Contact Agent button row */
.ff-insurance-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.bp-contact-agent-btn {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.bp-contact-agent-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* Hide Add File UI and custom containers for Insurance, Broker, Property Manager inline panels */
.bp-inline-ff-view #ff-insurance .ff-add-file-btn,
.bp-inline-ff-view #ff-broker .ff-add-file-btn,
.bp-inline-ff-view #ff-propman .ff-add-file-btn,
.bp-inline-ff-view #ff-insurance .ff-add-inline,
.bp-inline-ff-view #ff-broker .ff-add-inline,
.bp-inline-ff-view #ff-propman .ff-add-inline,
.bp-inline-ff-view #ff-insurance #ff-custom-insurance,
.bp-inline-ff-view #ff-broker #ff-custom-broker,
.bp-inline-ff-view #ff-propman #ff-custom-propman {
    display: none !important;
}
.bp-inline-ff-view .trf-wrap {
    max-width: 100%;
}
.bp-inline-ff-view .trf-select {
    padding: 6px 10px;
    border: 1.5px solid #e2e5ea;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    background: white;
    max-width: 260px;
}

/* Loan Summary edit mode */
.ls-edit-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(81,112,255,0.1);
}

@media (max-width: 900px) {
    .overview-shell {
        grid-template-columns: 1fr;
    }
}

/* ─── BP SCENARIO OVERVIEW (Loan Summary tab) ───────────── */
.bp-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.bp-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid #d7e3ff;
    color: #3657da;
    font-size: 11.5px;
    font-weight: 700;
}
.bp-summary-pill strong {
    color: #0f172a;
    font-weight: 800;
}
.bp-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}
.bp-overview-card {
    background: #f8fbff;
    border: 1px solid #e1e8f5;
    border-radius: 12px;
    padding: 14px 16px;
}
.bp-overview-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.bp-overview-list {
    display: grid;
    gap: 8px;
}
.bp-overview-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.bp-overview-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.bp-overview-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bp-overview-value {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    max-width: 62%;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

@media (max-width: 900px) {
    .bp-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Title form responsive stacking */
@media (max-width: 600px) {
    .trf-row.cols-2,
    .trf-row.cols-3 {
        grid-template-columns: 1fr;
    }
    .trf-title-company-header {
        flex-direction: column;
    }
}
.bp-staff-doc-controls { margin-top: 12px; border: 1px solid #dbe3f0; border-radius: 10px; background: #ffffff; padding: 12px; }
.bp-staff-doc-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.bp-staff-doc-title { font-size: 12px; font-weight: 700; color: #0f172a; }
.bp-staff-doc-subtitle { font-size: 12px; color: #64748b; margin-top: 2px; }
.bp-staff-upload-zone { border: 1px dashed #94a3b8; border-radius: 10px; background: #f8fafc; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.bp-staff-upload-zone.drag-over { border-color: var(--accent-color); background: #eef2ff; }
.bp-staff-upload-copy { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #475569; }
.bp-staff-upload-copy strong { color: #0f172a; }
.bp-staff-upload-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bp-staff-upload-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 7px 9px; border-radius: 8px; background: #f8fafc; color: #475569; }
.bp-staff-upload-row.success { background: #ecfdf5; color: #065f46; }
.bp-staff-upload-row.error { background: #fef2f2; color: #991b1b; }
.bp-staff-upload-row.uploading { background: #eff6ff; color: #1d4ed8; }
.bp-field-label { display: block; font-size: 12px; font-weight: 700; color: #334155; margin: 10px 0 4px; }
.bp-input { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 10px; font-size: 13px; color: #0f172a; }
