/*
 * Общие стили Pulsar.
 * Bootstrap — основная UI-система проекта.
 * Собственные глобальные изменения интерфейса добавляем только сюда.
 */

body {
    min-height: 100vh;
}

.navbar-brand {
    letter-spacing: 0.02em;
}

.card {
    border-color: var(--bs-border-color-translucent);
}

.content-text {
    overflow-wrap: anywhere;
}

.task-meta dt {
    color: var(--bs-secondary-color);
    font-weight: 500;
}

.task-meta dd:last-child,
.task-meta dt:last-of-type {
    margin-bottom: 0;
}

.result-block-matrix th,
.result-block-matrix td {
    min-width: 170px;
}

.result-block-matrix th:first-child,
.result-block-matrix td:first-child {
    min-width: 150px;
}

/* Приватные вложения задач */
.file-dropzone {
    border: 2px dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 1.25rem;
    text-align: center;
    background: var(--bs-tertiary-bg);
    cursor: pointer;
    transition: border-color .15s ease-in-out, background-color .15s ease-in-out;
}

.file-dropzone:hover,
.file-dropzone:focus,
.file-dropzone.is-dragging {
    border-color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
    outline: none;
}

.attachment-preview-link {
    background: var(--bs-tertiary-bg);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.attachment-preview {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.attachment-item {
    background: var(--bs-body-bg);
}

.min-w-0 {
    min-width: 0;
}

/* Комментарии к задачам */
.comment-body {
    white-space: normal;
}

.comment-attachment-preview {
    display: block;
    max-width: 220px;
    max-height: 140px;
    object-fit: contain;
    background: var(--bs-tertiary-bg);
}

textarea.form-control.exchange-prompt {
    height: 65vh;
    min-height: 32rem;
    resize: vertical;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Preview импорта PCX */
.exchange-change-table th,
.exchange-change-table td {
    min-width: 180px;
    vertical-align: top;
}

.exchange-change-table .exchange-select-column {
    min-width: 90px;
    width: 90px;
}

.exchange-diff-value {
    max-height: 18rem;
    overflow: auto;
    white-space: normal;
}
