/* Text editor plugin (Id 138): the toolbar and editing area of wwwroot-src/js/text-editor.js */
.te-wrap { border: 1px solid #cfd6de; border-radius: 8px; background: #fff; margin: 4px 0; max-width: 100%; box-sizing: border-box; }
.te-wrap:focus-within { border-color: #2b6cb0; box-shadow: 0 0 0 3px rgba(43, 108, 176, .15); }
.te-wrap.te-invalid { border-color: #c53030; }
.te-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid #e3e8ee; background: #f7f9fb; border-radius: 8px 8px 0 0; }
.te-btn { min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #2d3748; font: 600 14px/1 system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.te-btn:hover { background: #e9eef4; }
.te-btn:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 1px; }
.te-btn[aria-pressed="true"] { background: #dbe7f5; border-color: #b6cbe6; color: #1a4f8b; }
.te-area { padding: 10px 12px; font-size: 16px; line-height: 1.5; color: #1a202c; overflow-wrap: anywhere; overflow-y: auto; max-height: 60vh; outline: none; }
.te-area.te-empty:before { content: attr(data-ph); color: #8a94a3; pointer-events: none; }
.te-area p, .te-area ul, .te-area ol, .te-area blockquote, .te-area table { margin: 0 0 .6em; }
.te-area ul, .te-area ol { padding-left: 1.4em; }
.te-area ul { list-style: disc; } .te-area ol { list-style: decimal; }
.te-area h2 { font-size: 1.3em; margin: .4em 0; } .te-area h3 { font-size: 1.12em; margin: .4em 0; }
.te-area blockquote { border-left: 3px solid #cbd5e0; padding-left: 10px; color: #4a5568; }
.te-area a { color: #2b6cb0; text-decoration: underline; }
.te-area img { max-width: 100%; height: auto; }
.te-area table { border-collapse: collapse; width: 100%; }
.te-area th, .te-area td { border: 1px solid #cbd5e0; padding: 4px 6px; text-align: left; vertical-align: top; }
.te-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0; }
.te-need { color: #c53030; font-size: 14px; padding: 0 12px 8px; }
.te-note { display: block; color: #6b7280; margin-top: 4px; }
/* texts saved by the editor, where they are shown */
.te-text p, .te-text ul, .te-text ol { margin: 0 0 .6em; }
.te-text ul { list-style: disc; padding-left: 1.4em; } .te-text ol { list-style: decimal; padding-left: 1.4em; }
.te-text a { text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 480px) { .te-btn { min-width: 40px; height: 40px; } }
/* T175: align and colour are classes (txt-*), also where a text is shown */
.te-area .txt-left, .te-text .txt-left { text-align: left; } .te-area .txt-center, .te-text .txt-center { text-align: center; } .te-area .txt-right, .te-text .txt-right { text-align: right; }
.txt-c-red { color: #c53030; } .txt-c-orange { color: #c05621; } .txt-c-green { color: #2f855a; } .txt-c-blue { color: #2b6cb0; } .txt-c-purple { color: #6b46c1; } .txt-c-grey { color: #718096; }
.te-text img { max-width: 100%; height: auto; }
.te-a { text-decoration: underline; text-decoration-color: #c53030; text-decoration-thickness: 3px; }
.te-pop { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid #e3e8ee; background: #fff; }
.te-sw, .te-emo { min-width: 36px; height: 36px; border: 1px solid #e3e8ee; border-radius: 6px; background: #fff; cursor: pointer; font: 700 16px/1 system-ui, sans-serif; }
.te-emo { font-size: 20px; font-weight: 400; }
.te-sw:hover, .te-emo:hover { background: #f1f5f9; }
.te-sw:focus-visible, .te-emo:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 1px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .te-pop, :root:not([data-theme="light"]) .te-sw, :root:not([data-theme="light"]) .te-emo { background: #1f2937; border-color: #374151; } }
:root[data-theme="dark"] .te-pop, :root[data-theme="dark"] .te-sw, :root[data-theme="dark"] .te-emo { background: #1f2937; border-color: #374151; }
