/** * Neutralization Views Shared Styles * Based on TrusteeViews for consistency */ /* Section layout */ .configSection, .playgroundSection { max-width: 800px; } .sectionTitle { font-size: 1.25rem; font-weight: 600; color: var(--text-primary, #1a1a1a); margin-bottom: 0.5rem; } .sectionDescription { color: var(--text-secondary, #666); font-size: 0.9375rem; margin-bottom: 1.5rem; line-height: 1.5; } /* Form layout */ .configCard { padding: 1.5rem; background: var(--bg-primary, #ffffff); border: 1px solid var(--border-color, #e0e0e0); border-radius: 12px; display: flex; flex-direction: column; gap: 1.25rem; } .formRow { display: flex; flex-direction: column; gap: 0.5rem; } .formRow label { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary, #666); } /* Checkbox */ .checkboxRow { display: flex; align-items: center; gap: 0.5rem; } .checkboxRow input[type='checkbox'] { width: 1rem; height: 1rem; accent-color: var(--primary-color, #2563eb); cursor: pointer; } .checkboxRow label { font-size: 0.9375rem; cursor: pointer; margin: 0; } /* Input with browse button */ .inputWithButton { display: flex; gap: 0.5rem; align-items: stretch; } .inputWithButton input { flex: 1; padding: 0.625rem 0.875rem; border: 1px solid var(--border-color, #e0e0e0); border-radius: 6px; font-size: 0.9375rem; background: var(--bg-primary, #ffffff); color: var(--text-primary, #1a1a1a); } .inputWithButton input:focus { outline: none; border-color: var(--primary-color, #2563eb); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .inputWithButton button { padding: 0.5rem 1rem; border: 1px solid var(--border-color, #d0d0d0); border-radius: 6px; background: var(--bg-primary, #ffffff); color: var(--text-primary, #1a1a1a); font-size: 0.875rem; font-weight: 500; cursor: pointer; white-space: nowrap; } .inputWithButton button:hover { background: var(--surface-color, #f5f5f5); } /* Textarea */ .textareaField { width: 100%; min-height: 120px; padding: 0.625rem 0.875rem; border: 1px solid var(--border-color, #e0e0e0); border-radius: 6px; font-size: 0.9375rem; font-family: inherit; resize: vertical; background: var(--bg-primary, #ffffff); color: var(--text-primary, #1a1a1a); } .textareaField:focus { outline: none; border-color: var(--primary-color, #2563eb); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .textareaField::placeholder { color: var(--text-tertiary, #999); } /* Read-only output block */ .outputBlock { width: 100%; min-height: 120px; padding: 0.625rem 0.875rem; border: 1px solid var(--border-color, #e0e0e0); border-radius: 6px; font-size: 0.9375rem; font-family: inherit; background: var(--surface-color, #f8f9fa); color: var(--text-primary, #1a1a1a); white-space: pre-wrap; word-break: break-word; } /* Buttons */ .buttonRow { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; } .primaryButton { padding: 0.5rem 1rem; border: none; border-radius: 6px; background: var(--primary-color, #2563eb); color: white; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.2s; } .primaryButton:hover:not(:disabled) { background: var(--primary-hover, #1d4ed8); } .primaryButton:disabled { opacity: 0.6; cursor: not-allowed; } .secondaryButton { padding: 0.5rem 1rem; border: 1px solid var(--border-color, #d0d0d0); border-radius: 6px; background: var(--bg-primary, #ffffff); color: var(--text-primary, #1a1a1a); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; } .secondaryButton:hover:not(:disabled) { background: var(--surface-color, #f5f5f5); } .secondaryButton:disabled { opacity: 0.6; cursor: not-allowed; } /* Error message */ .errorMessage { padding: 0.75rem 1rem; background: var(--error-light, #fef2f2); border: 1px solid var(--error-color, #dc2626); border-radius: 6px; color: var(--error-color, #dc2626); font-size: 0.875rem; display: flex; align-items: flex-start; gap: 0.5rem; } .errorMessage button { margin-left: auto; padding: 0.25rem; border: none; background: transparent; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; } /* Clear link (destructive) */ .clearLink { color: var(--error-color, #dc2626); font-size: 0.875rem; cursor: pointer; text-decoration: none; background: none; border: none; padding: 0; margin-top: 0.5rem; } .clearLink:hover { text-decoration: underline; } /* Data table */ .dataTable { width: 100%; border-collapse: collapse; background: var(--bg-primary, #ffffff); border: 1px solid var(--border-color, #e0e0e0); border-radius: 8px; overflow: hidden; } .dataTable th, .dataTable td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-color, #e0e0e0); } .dataTable th { background: var(--surface-color, #f8f9fa); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; color: var(--text-secondary, #666); } .dataTable td { font-size: 0.875rem; color: var(--text-primary, #1a1a1a); } .dataTable tbody tr:last-child td { border-bottom: none; } .monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.8125rem; } /* SharePoint path picker modal */ .modalOverlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modalContent { background: var(--bg-primary, #ffffff); border: 1px solid var(--border-color, #e0e0e0); border-radius: 12px; padding: 1.5rem; max-width: 480px; width: 90%; max-height: 80vh; overflow-y: auto; } .modalTitle { font-size: 1.125rem; font-weight: 600; margin: 0 0 1rem 0; } .folderSelect { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--border-color, #e0e0e0); border-radius: 6px; font-size: 0.9375rem; background: var(--bg-primary, #ffffff); color: var(--text-primary, #1a1a1a); margin-bottom: 0.75rem; } .folderList { max-height: 200px; overflow-y: auto; border: 1px solid var(--border-color, #e0e0e0); border-radius: 6px; background: var(--bg-primary, #ffffff); margin-bottom: 0.75rem; } .folderItem { display: flex; align-items: center; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-color, #e0e0e0); cursor: pointer; } .folderItem:last-child { border-bottom: none; } .folderItem:hover { background: var(--surface-color, #f8f9fa); } .folderName { flex: 1; color: var(--text-primary, #1a1a1a); font-size: 0.875rem; } .selectButton { padding: 0.25rem 0.5rem; font-size: 0.8125rem; border: 1px solid var(--border-color, #d0d0d0); border-radius: 4px; background: var(--bg-primary, #ffffff); cursor: pointer; } .selectButton:hover { background: var(--surface-color, #f5f5f5); } /* Loading */ .loading { display: flex; align-items: center; justify-content: center; min-height: 200px; font-size: 0.9375rem; color: var(--text-secondary, #666); } /* Playground layout */ .playgroundCard { padding: 1.5rem; background: var(--bg-primary, #ffffff); border: 1px solid var(--border-color, #e0e0e0); border-radius: 12px; display: flex; flex-direction: column; gap: 1.25rem; } /* Dark theme */ :global(.dark-theme) .configCard, :global(.dark-theme) .playgroundCard { background: var(--surface-dark, #1a1a1a); border-color: var(--border-dark, #333); } :global(.dark-theme) .sectionTitle { color: var(--text-primary-dark, #ffffff); } :global(.dark-theme) .sectionDescription, :global(.dark-theme) .formRow label { color: var(--text-secondary-dark, #aaa); } :global(.dark-theme) .inputWithButton input, :global(.dark-theme) .textareaField, :global(.dark-theme) .outputBlock { background: var(--surface-dark, #2a2a2a); border-color: var(--border-dark, #444); color: var(--text-primary-dark, #ffffff); } :global(.dark-theme) .inputWithButton button, :global(.dark-theme) .secondaryButton { background: var(--surface-dark, #1a1a1a); border-color: var(--border-dark, #444); color: var(--text-primary-dark, #ffffff); } :global(.dark-theme) .secondaryButton:hover:not(:disabled) { background: var(--surface-dark, #2a2a2a); } :global(.dark-theme) .errorMessage { background: var(--error-dark, #450a0a); border-color: var(--error-color, #dc2626); color: var(--error-light, #fef2f2); } :global(.dark-theme) .dataTable { background: var(--surface-dark, #1a1a1a); border-color: var(--border-dark, #333); } :global(.dark-theme) .dataTable th { background: var(--surface-dark, #2a2a2a); color: var(--text-secondary-dark, #aaa); } :global(.dark-theme) .dataTable th, :global(.dark-theme) .dataTable td { border-bottom-color: var(--border-dark, #333); } :global(.dark-theme) .dataTable td { color: var(--text-primary-dark, #ffffff); }