/* Modal and dialog styles */ /* ── Overlay ── */ .modal-backdrop { position: fixed; inset: 0; background: rgba(19, 0, 50, 0.5); z-index: 200; animation: backdropIn 0.15s ease; } @keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } } /* ── Modal box ── */ .modal-box { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--card-bg); border-radius: var(--radius-md); width: min(520px, 94vw); max-height: 90vh; display: flex; flex-direction: column; z-index: 201; box-shadow: var(--shadow-md); animation: modalIn 0.18s ease; } @keyframes modalIn { from { opacity: 0; transform: translate(-50%, -52%); } to { opacity: 1; transform: translate(-50%, -50%); } } .modal-box.modal-lg { width: min(720px, 94vw); } .modal-box.modal-box-wide { width: min(900px, 96vw); } .modal-box.modal-sm { width: min(380px, 94vw); } /* ── Modal sections ── */ .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .modal-title { font-size: var(--font-size-md); font-weight: 700; color: var(--text); } .modal-body { padding: 20px; overflow-y: auto; flex: 1; } .modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: var(--space-sm); flex-shrink: 0; background: var(--ecru); border-radius: 0 0 var(--radius-md) var(--radius-md); } /* ── Close button ── */ .modal-close { background: transparent; border: none; cursor: pointer; color: var(--text-muted); font-size: 18px; padding: 2px 6px; border-radius: var(--radius-sm); line-height: 1; transition: background 0.1s; } .modal-close:hover { background: var(--ecru); color: var(--text); } /* ── Options panel inside modal ── */ .options-panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; margin-bottom: var(--space-md); } .options-title { font-weight: 700; font-size: var(--font-size-md); margin-bottom: 14px; } .option-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); } .option-row:last-child { border-bottom: none; } .option-label { font-weight: 600; font-size: var(--font-size-base); } .option-desc { font-size: var(--font-size-sm); color: var(--text-muted); margin-top: 2px; } .option-body { flex: 1; } /* ── Progress inside modal ── */ .migration-progress { padding: 8px 0; } .progress-template-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; margin-top: 12px; } .progress-template-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 12px; background: var(--ecru); border-radius: var(--radius-sm); font-size: var(--font-size-base); } .progress-template-name { flex: 1; font-weight: 500; } .progress-template-status { font-size: 16px; flex-shrink: 0; } .progress-template-error { flex-basis: 100%; font-size: 11px; color: var(--error, #c0392b); margin-top: -4px; padding-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ── Project switcher modal ── */ .project-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; max-height: 280px; overflow-y: auto; } .project-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: background 0.1s; } .project-row:hover { background: var(--ecru); } .project-row.active { border-color: var(--cobalt); background: var(--cobalt-light); } .project-row-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--cobalt); color: #fff; font-size: var(--font-size-sm); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .project-row-name { font-weight: 600; font-size: var(--font-size-base); flex: 1; } .project-row-sub { font-size: var(--font-size-xs); color: var(--text-muted); } .project-row-active-badge { font-size: var(--font-size-xs); color: var(--cobalt); font-weight: 700; } /* ── New project form inside modal ── */ .new-project-form { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; } .new-project-form h4 { font-size: var(--font-size-base); font-weight: 700; margin-bottom: 10px; } /* ── DocuSign account picker ── */ .docusign-account-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; } .docusign-account-item { width: 100%; border: 1px solid var(--border); background: var(--card-bg); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; cursor: pointer; } .docusign-account-item:hover { background: var(--ecru); } .docusign-account-item.selected { border-color: var(--cobalt); background: var(--cobalt-light); } .docusign-account-name { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .docusign-account-meta { font-size: var(--font-size-sm); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @media (max-width: 768px) { .docusign-account-item { grid-template-columns: 1fr; } }