

.tasks-box {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 3px 20px rgba(0,0,0,.07);
    overflow: hidden;
}

/* =========================
   ШАПКА
========================= */

.tasks-head {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 100px 100px 100px 100px;
    align-items: center;

    min-height: 68px;
    padding: 0 28px;

    border-bottom: 1px solid #edf0f5;

    color: #657189;
    font-size: 15px;
}

/* =========================
   СТРОКА
========================= */

.task-row {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 100px 100px 100px 100px;
    align-items: center;

    min-height: 86px;
    padding: 0 28px;

    border-bottom: 1px solid #edf0f5;

    transition: background .15s ease;
}

.task-row:hover {
    background: #fafcff;
}

/* =========================
   ИНФОРМАЦИЯ
========================= */

.task-info {
    display: flex;
    align-items: center;
    min-width: 0;
}

.task-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    margin-right: 16px;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 21px;
    font-weight: bold;
}

.telegram {
    background: #20aee8;
}

.write {
    background: #7465f0;
}

.comment {
    background: #42d47a;
}

.vk {
    background: #5b8eea;
    font-size: 16px;
}

.referral {
    background: #f26d8b;
}

.review {
    background: #ffd82d;
}

.app {
    background: #ff6b72;
}

.task-main {
    min-width: 0;
}

.task-title {
    display: block;

    margin-bottom: 8px;

    color: #0875e1;
    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    /* white-space: nowrap; */
	word-break: break-word; 
    overflow: hidden;
    /* text-overflow: ellipsis; */
}

.task-title:hover {
    text-decoration: underline;
}

/* =========================
   ТЕГИ
========================= */

.task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.task-tags span {
    display: inline-flex;
    align-items: center;

    padding: 4px 9px;

    border-radius: 6px;

    background: #f1f5fa;
    border: 1px solid #e4eaf2;

    color: #6c7a91;

    font-size: 13px;
}

/* =========================
   ID
========================= */

.task-id a {
    color: #0875e1;
    font-size: 15px;
    text-decoration: none;
}

.task-id a:hover {
    text-decoration: underline;
}

/* =========================
   ЦЕНА
========================= */

.task-price {
    color: #647087;
    font-size: 15px;
}

/* =========================
   ЗАКАЗЧИК
========================= */

.task-user a {
    color: #0875e1;
    font-size: 15px;
    text-decoration: none;
}

.task-user a:hover {
    text-decoration: underline;
}

/* =========================
   ДЕЙСТВИЯ
========================= */

.task-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.action-btn {
    width: 44px;
    height: 44px;

    border: 1px solid #edf0f5;
    border-radius: 11px;

    background: #fff;

    color: #68758a;

    cursor: pointer;

    font-size: 16px;

    box-shadow: 0 2px 6px rgba(0,0,0,.03);

    transition: .15s;
}

.action-btn:hover {
    background: #f5f8fc;
    border-color: #dce4ef;
}

/* =========================
   FOOTER
========================= */

.tasks-footer {
    min-height: 90px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.tasks-count {
    color: #7a8799;
    font-size: 14px;
}

.tasks-count b {
    color: #647087;
}

/* =========================
   ПАГИНАЦИЯ
========================= */

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page,
.page-arrow {
    width: 40px;
    height: 40px;

    border: 0;
    background: transparent;

    border-radius: 9px;

    color: #637087;

    font-size: 15px;

    cursor: pointer;
}

.page:hover,
.page-arrow:hover {
    background: #f2f6fb;
}

.page.active {
    background: #1677ed;
    color: #fff;
}

.dots {
    padding: 0 3px;
    color: #8290a4;
}

/* =========================
   SELECT
========================= */

.per-page {
    height: 44px;

    padding: 0 14px;

    border: 1px solid #edf0f5;
    border-radius: 11px;

    background: #fff;

    color: #68758a;

    font-size: 14px;

    cursor: pointer;
}


/* ==================================================
   ПЛАНШЕТ
================================================== */

@media (max-width: 1050px) {

    .tasks-head {
        grid-template-columns:
            minmax(250px, 1fr)
            100px
            110px
            120px
            100px;

        padding: 0 18px;
    }

    .task-row {
        grid-template-columns:
            minmax(250px, 1fr)
            100px
            110px
            120px
            100px;

        padding: 0 18px;
    }

    .task-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;

        margin-right: 12px;
    }

    .task-title {
        font-size: 15px;
    }

    .task-tags span {
        font-size: 12px;
    }

    .task-actions {
        gap: 5px;
    }

    .action-btn {
        width: 38px;
        height: 38px;
    }

    .tasks-footer {
        flex-wrap: wrap;
        padding: 15px 18px;
    }
}


/* ==================================================
   МОБИЛЬНЫЙ
================================================== */

@media (max-width: 700px) {

    .tasks-box {
        border-radius: 12px;
    }

    /* Скрываем заголовок таблицы */

    .tasks-head {
        display: none;
    }

    /* Карточка задания */

    .task-row {

        display: grid;

        grid-template-columns: 1fr auto;

        grid-template-areas:
            "info actions"
            "id price"
            "user user";

        gap: 10px 12px;

        padding: 15px;

        min-height: auto;
    }

    /* Название */

    .task-info {
        grid-area: info;
        min-width: 0;
    }

    .task-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        margin-right: 10px;

        border-radius: 11px;

        font-size: 18px;
    }

    .task-title {
        margin-top: 1px;
        margin-bottom: 6px;

        font-size: 15px;

        white-space: normal;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        overflow: hidden;
    }

    /* Теги */

    .task-tags {
        gap: 4px;
    }

    .task-tags span {
        padding: 3px 7px;
        font-size: 11px;
    }

    /* Кнопки */

    .task-actions {
        grid-area: actions;

        align-self: start;

        gap: 5px;
    }

    .action-btn {
        width: 36px;
        height: 36px;

        border-radius: 9px;
    }

    /* ID */

    .task-id {
        grid-area: id;
    }

    .task-id a {
        font-size: 13px;
    }

    /* Цена */

    .task-price {
        grid-area: price;

        text-align: right;

        font-size: 15px;
        font-weight: 600;
    }

    /* Заказчик */

    .task-user {
        grid-area: user;

        padding-top: 8px;

        border-top: 1px solid #f0f2f6;
    }

    .task-user a {
        font-size: 13px;
    }

    /* FOOTER */

    .tasks-footer {

        display: grid;

        grid-template-columns: 1fr auto;

        gap: 14px;

        padding: 15px;
    }

    .tasks-count {

        grid-column: 1 / -1;

        font-size: 13px;
    }

    /* Пагинация */

    .pagination {
        justify-content: flex-start;

        gap: 2px;
    }

    .page,
    .page-arrow {
        width: 34px;
        height: 34px;

        font-size: 14px;
    }

    /* Select */

    .per-page {

        width: 100%;

        height: 38px;

        font-size: 12px;
    }
}


/* ==================================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
================================================== */

@media (max-width: 380px) {

    .task-row {
        padding: 12px;
    }

    .task-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;

        margin-right: 8px;
    }

    .task-title {
        font-size: 14px;
    }

    .task-tags span {
        font-size: 10px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
    }

    .page,
    .page-arrow {
        width: 30px;
        height: 30px;
    }
}
