/* Oddzielam okno korekty od otwartego pod nim formularza zlecenia. */
.ai-correction-modal { z-index: 1100; color: #222; }
.ai-correction-modal .modal-dialog { width: 94%; max-width: 1100px; }
.ai-correction-modal .modal-content { background: #fff; color: #222; }
.ai-correction-modal .modal-body { max-height: 68vh; overflow: auto; background: #fff; color: #222; }
.ai-correction-modal .modal-header { background: #edf3f7; color: #222; }
/* Nadaję nagłówkom własny kolor, ponieważ ciemny Bootstrap ustawia im biel zamiast dziedziczenia. */
.ai-correction-modal h4, .ai-correction-modal .modal-title { color: #17212b; }
.ai-correction-modal .modal-footer { display: flex; gap: 8px; flex-wrap: wrap; background: #f5f7f9; }
.ai-correction-modal .alert-warning { background: #fff3cd; color: #654c00; border-color: #e7c96e; }
.ai-correction-modal .ai-comparison { display: flex; gap: 15px; margin-bottom: 18px; }
.ai-correction-modal .ai-comparison > div { flex: 1; min-width: 0; }
.ai-correction-modal pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: #f3f5f7; color: #222; }
.ai-correction-modal textarea { width: 100%; min-height: 130px; color: #222; background: white; }
.ai-correction-modal label { color: #222; }
/* Przesuwam pasek bez podawania fikcyjnego procentu ukończenia. */
.ai-correction-modal .ai-progress { width: 35%; animation: ai-progress-loop 1.6s linear infinite; }
@keyframes ai-progress-loop { from { transform: translateX(-100%); } to { transform: translateX(390%); } }
@media (max-width: 650px) { .ai-correction-modal .ai-comparison { display: block; } }
