.tp-container { padding: 0.5rem 0; }
.tp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
.tp-header-left { display: flex; align-items: center; gap: 1rem; }
.tp-header-actions { display: flex; gap: 0.5rem; }
.tp-title { margin: 0; color: #372562; font-size: 1.1rem; }
.tp-term-select { padding: 0.4rem 0.75rem; border: 1px solid #ccc; border-radius: 6px; font-size: 0.85rem; background: white; }

.tp-btn { padding: 0.45rem 1rem; border: none; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.tp-btn-primary { background: #ec5f59; color: white; }
.tp-btn-primary:hover { background: #d4605a; }
.tp-btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.tp-btn-secondary { background: #e8e8e8; color: #372562; }
.tp-btn-secondary:hover { background: #ddd; }
.tp-btn-add { background: #f0f7f5; color: #372562; border: 1px dashed #97c1bc; margin-top: 0.75rem; width: 100%; padding: 0.6rem; }
.tp-btn-add:hover { background: #e0f0ec; }

.tp-success { background: #d4edda; color: #155724; padding: 0.5rem 0.75rem; border-radius: 6px; margin-bottom: 0.75rem; font-size: 0.85rem; }
.tp-error { background: #f8d7da; color: #721c24; padding: 0.5rem 0.75rem; border-radius: 6px; margin-bottom: 0.75rem; font-size: 0.85rem; }

.tp-table-wrapper { overflow-x: auto; }
.tp-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.tp-table th { background: #97c1bc; color: #372562; padding: 0.6rem 0.5rem; text-align: left; font-size: 0.75rem; font-weight: 600; border: 1px solid #7aab9f; }
.tp-table td { padding: 0.4rem; border: 1px solid #e8e8e8; vertical-align: top; }
.tp-table tbody tr { transition: background-color 0.2s; }

/* RAG row highlighting - pastel shades */
.tp-row-green td { background-color: #e8f5e9 !important; }
.tp-row-amber td { background-color: #fff8e1 !important; }
.tp-row-red td { background-color: #fce4ec !important; }

.tp-cell-input { width: 100%; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0.35rem; font-size: 0.8rem; resize: vertical; font-family: inherit; box-sizing: border-box; }
.tp-cell-input:focus { outline: none; border-color: #97c1bc; }
.tp-cell-select { width: 100%; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0.35rem; font-size: 0.8rem; background: white; }
.tp-cell-date { width: 100%; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0.35rem; font-size: 0.8rem; }
.tp-cell-rag { width: 100%; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0.35rem; font-size: 0.8rem; background: white; }

/* RAG select colours */
.tp-rag-green { background-color: #e8f5e9 !important; color: #2e7d32; font-weight: 600; }
.tp-rag-amber { background-color: #fff8e1 !important; color: #f57f17; font-weight: 600; }
.tp-rag-red { background-color: #fce4ec !important; color: #c62828; font-weight: 600; }

.tp-remove-btn { background: none; border: none; color: #c62828; cursor: pointer; font-size: 1.2rem; padding: 0.2rem; opacity: 0.5; }
.tp-remove-btn:hover { opacity: 1; }

.tp-meta { margin-top: 1rem; font-size: 0.75rem; color: #999; text-align: right; }
