/* Задачи сборщика филе. */

.fillet_collector {
    width: 100%;
}

.fillet_collector_header {
    margin-bottom: 20px;
}

.fillet_collector_header h2 {
    margin: 0;
}

.fillet_collector_content {
    width: 100%;
}

.fillet_collector_table_wrapper {
    width: 100%;
    overflow-x: auto;

    background: var(--color-surface);

    border: 1px solid var(--color-border-subtle);
    border-radius: 12px;
}

.fillet_collector_table {
    width: 100%;

    border-collapse: collapse;
    border-spacing: 0;

    table-layout: fixed;
}

.fillet_collector_table thead {
    background: var(--fish-fillet-section-surface);
}

.fillet_collector_table th {
    padding: 14px 16px;

    text-align: left;
    vertical-align: middle;

    font-size: 13px;
    font-weight: 600;

    color: var(--color-text-soft);

    border-bottom: 1px solid var(--color-border-subtle);
}

.fillet_collector_table td {
    padding: 14px 16px;

    vertical-align: top;

    font-size: 14px;
    line-height: 1.4;

    color: var(--color-text-deep);

    border-bottom: 1px solid var(--color-border-soft);

    word-break: break-word;
}

.fillet_collector_table tbody tr:last-child td {
    border-bottom: none;
}

.fillet_collector_table tbody tr {
    transition: background-color 0.15s ease;
}

.fillet_collector_table tbody tr:hover {
    background: var(--fish-fillet-section-surface);
}

.fillet_collector_table th:nth-child(1),
.fillet_collector_table td:nth-child(1) {
    width: 90px;
}

.fillet_collector_table th:nth-child(2),
.fillet_collector_table td:nth-child(2) {
    width: 120px;
}

.fillet_collector_table th:nth-child(3),
.fillet_collector_table td:nth-child(3) {
    width: 220px;
}

.fillet_collector_table th:nth-child(4),
.fillet_collector_table td:nth-child(4) {
    width: auto;
}

.fillet_collector_empty {
    padding: 40px 20px;

    text-align: center;

    font-size: 14px;

    color: var(--color-text-soft);
}

/* Адаптация задач для телефона. */

@media (max-width: 768px) {

    .fillet_collector_header {
        margin-bottom: 12px;
    }

    .fillet_collector_header h2 {
        font-size: 20px;
    }

    .fillet_collector_table_wrapper {
        overflow: visible;

        background: transparent;

        border: none;
        border-radius: 0;
    }

    .fillet_collector_table {
        display: block;

        width: 100%;
        min-width: 0;
    }

    /* На телефоне заголовок таблицы скрыт, а строки представлены карточками. */
    .fillet_collector_table thead {
        display: none;
    }

    .fillet_collector_table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .fillet_collector_table tbody tr {
        display: grid;
        grid-template-columns: auto 1fr;

        padding: 14px 16px;

        background: var(--color-surface);

        border: 1px solid var(--color-border-subtle);
        border-radius: 12px;
    }

    .fillet_collector_table tbody tr:hover {
        background: var(--color-surface);
    }

    .fillet_collector_table td {
        display: block;

        width: auto !important;

        padding: 0;

        border: none;

        font-size: 15px;
        line-height: 1.4;
    }

    .fillet_collector_table td:nth-child(1) {
        grid-column: 1;

        margin-right: 10px;

        color: var(--color-text-soft);

        font-size: 14px;
        font-weight: 600;

        white-space: nowrap;
    }

    .fillet_collector_table td:nth-child(2) {
        grid-column: 2;

        color: var(--color-text-soft);

        font-size: 14px;
        font-weight: 600;
    }

    .fillet_collector_table td:nth-child(3) {
        grid-column: 1 / -1;

        margin-top: 10px;

        color: var(--color-text-strong);

        font-size: 17px;
        font-weight: 700;
    }

    .fillet_collector_table td:nth-child(4) {
        grid-column: 1 / -1;

        margin-top: 6px;

        color: var(--color-text-graphite);

        font-size: 16px;
        line-height: 1.45;
    }
}
