/* P1: wyłącznie czytelność. Nie zmienia formularzy ani obsługi danych. */
.taxeo-task-notes .panel-body { height: auto !important; max-height: none !important; overflow: visible !important; padding: 18px; }
.taxeo-task-notes .chat { margin: 0; padding: 0; list-style: none; }
.taxeo-task-notes .chat > li { list-style: none; margin: 0 0 12px; padding: 12px 15px; background: #f7f9fc; border: 1px solid #dde5ec; border-left: 4px solid #4a90bc; border-radius: 5px; }
.taxeo-task-notes .chat > li .chat-body { margin: 0; width: 100%; }
.taxeo-task-notes .chat > li .chat-body .header { min-height: 24px; padding-bottom: 6px; border-bottom: 1px solid #e6edf3; }
.taxeo-task-notes .chat > li .chat-body .header .primary-font { font-size: 14px; color: #23435b; }
.taxeo-task-notes .chat > li .chat-body p { line-height: 1.6; font-size: 14px; overflow-wrap: anywhere; }
.taxeo-task-notes .panel-footer { padding: 16px; }
.taxeo-task-notes .input-komentarz { min-height: 175px !important; font-size: 14px; line-height: 1.5; resize: vertical; }
.taxeo-activity-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 14px; }
.taxeo-activity-scroll .taxeo-activity-table { margin-bottom: 0; min-width: 720px; }
.taxeo-activity-table td:nth-child(2), .taxeo-activity-table td:nth-child(3) { white-space: nowrap; }
.taxeo-activity-table td { vertical-align: top !important; overflow-wrap: anywhere; }
@media (max-width: 767px) { .taxeo-task-notes .chat > li .chat-body .header .pull-right { float: none !important; display: block; margin-top: 4px; } }

/* Zachowaj formularz po liście adnotacji — bez nakładania na wpisy. */
.taxeo-task-notes .panel-footer { clear: both; position: static; }
.taxeo-task-notes .panel-footer .input-group { width: 100%; display: flex; align-items: flex-start; }
.taxeo-task-notes .panel-footer .input-group > textarea { flex: 1 1 auto; min-width: 0; width: 1%; }
.taxeo-task-notes .panel-footer .input-group-btn { display: block; flex: 0 0 auto; width: auto; }

/* P1b: wyłącznie historia adnotacji i wyraźniejsze wpisy automatu. */
.taxeo-task-notes .taxeo-note-history-actions { margin: 0 0 14px; text-align: left; }
.taxeo-task-notes .taxeo-note-toggle { font-size: 14px; font-weight: 600; padding: 9px 15px; white-space: normal; text-align: left; }
.taxeo-task-notes .taxeo-note-toggle:focus { outline-offset: 2px; }
.taxeo-task-notes .chat > li.taxeo-note-older { display: none; }
.taxeo-task-notes.taxeo-notes-expanded .chat > li.taxeo-note-older { display: list-item; }
.taxeo-task-notes .chat > li.taxeo-note-automatic { background: #f8f9fa; border-color: #e4e8ed; border-left: 3px solid #bbc3cc; padding: 9px 12px; }
.taxeo-task-notes .chat > li.taxeo-note-automatic .chat-body p { color: #66717e; font-size: 12px; line-height: 1.45; }
.taxeo-task-notes .chat > li.taxeo-note-automatic .chat-body .header .primary-font { color: #74808d; font-size: 12px; }
.taxeo-task-notes .taxeo-note-automatic-label { color: #657383; font-size: 11px; padding-left: 6px; font-weight: normal; }

/* P1: widok rozliczenia zapisuje treść adnotacji w div zamiast p. */
.taxeo-task-notes .chat > li .chat-body .taxeo-adnotacja-tresc { line-height: 1.6; font-size: 14px; overflow-wrap: anywhere; }
.taxeo-task-notes .chat > li.taxeo-note-automatic .chat-body .taxeo-adnotacja-tresc { color: #66717e; font-size: 12px; line-height: 1.45; }

/* Historia aktywności: nie łam nazwisk w pierwszej kolumnie na pojedyncze litery. */
.taxeo-activity-table td:first-child,
.taxeo-activity-table th:first-child {
    min-width: 145px;
    width: 145px;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}
