* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #f5f7f9;
    color: #252b33;
    font-family: Arial, Helvetica, sans-serif;
}

button,
select {
    font: inherit;
}

.page {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 18px 28px 40px;
}

.page-hint {
    margin: 0 0 12px;
    color: #7d8794;
    font-size: 13px;
}

.card {
    background: #ffffff;
    border: 1px solid #e8ecef;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(25, 35, 45, 0.05);
}

.page-error {
    margin-bottom: 14px;
    padding: 14px 18px;
    border-color: #ffd7a3;
    background: #fff8ef;
    color: #9a5c00;
    font-size: 13px;
    line-height: 1.5;
}



/* USER */

.user-card {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 14px;
    padding: 17px 18px;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 50%;
    background: #eef1f4;

    color: #7c8590;

    font-size: 19px;
    font-weight: 700;
}

.user-name {
    font-size: 18px;
    font-weight: 700;
}

.user-role {
    margin-top: 4px;

    color: #858e99;

    font-size: 13px;
}


/* SUMMARY */

.summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 108px;

    margin-bottom: 15px;
    padding: 20px 22px;
}

.efficiency {
    display: flex;
    align-items: center;
    gap: 20px;
}

.progress-ring {
    position: relative;

    width: 70px;
    height: 70px;

    flex: 0 0 70px;

    border-radius: 50%;

    background:
        conic-gradient(
            #f0a000 calc(var(--progress) * 1%),
            #e5e8eb 0
        );
}

.progress-ring-inner {
    position: absolute;

    inset: 7px;

    border-radius: 50%;
    background: #ffffff;
}

.efficiency-title {
    font-size: 14px;
    font-weight: 600;
}

.efficiency-value {
    margin-top: 2px;

    color: #df202b;

    font-size: 30px;
    line-height: 34px;
    font-weight: 700;
}

.overdue-banner {
    min-width: 330px;

    padding: 14px 25px;

    border: 0;
    border-radius: 11px;

    background: #fff0f0;

    color: #e97d80;

    cursor: pointer;

    font-size: 20px;
    font-weight: 700;
    text-align: center;

    transition: 0.15s ease;
}

.overdue-banner:hover {
    background: #ffe7e7;
}

.priority-message {
    margin: 11px 0 12px;

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


/* GROUPS */

.task-group {
    margin-bottom: 12px;

    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.035);
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(20, 30, 40, 0.04);
}

.task-group-red {
    background: #ffdddd;
}

.task-group-green {
    background: #def8e5;
}

.task-group-yellow {
    background: #fff0ba;
}

.task-group-blue {
    background: #dff2fc;
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 15px 17px;

    border: 0;

    background: transparent;

    color: inherit;

    cursor: pointer;

    text-align: left;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 7px;

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

.group-count {
    margin-top: 3px;

    color: #66717d;

    font-size: 12px;
}

.group-arrow {
    color: #68727c;

    font-size: 13px;

    transition: transform 0.2s ease;
}

.task-group.is-collapsed .group-arrow {
    transform: rotate(180deg);
}

.task-group.is-collapsed .group-content {
    display: none;
}

.group-dot {
    display: inline-block;

    width: 13px;
    height: 13px;

    border-radius: 50%;
}

.group-dot-red {
    background: #ee2534;
}

.group-dot-green {
    background: #23bd48;
}

.group-square {
    display: inline-block;

    width: 13px;
    height: 13px;

    border: 2px solid #9c9f95;
    border-radius: 2px;
}

.group-square-dark {
    border: 0;
    background: #6d7781;
}


/* CONTENT */

.group-content {
    padding: 0 16px 15px;
}

.filter-block {
    margin-bottom: 19px;
}

.filter-label {
    display: block;

    margin-bottom: 6px;

    color: #67717e;

    font-size: 13px;
}

.project-select {
    width: 100%;
    height: 38px;

    padding: 0 12px;

    border: 1px solid #dae0e5;
    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: #29313a;

    font-size: 14px;
}

.project-select:focus {
    border-color: #82b9ed;
}


/* TABLE */

.table-wrapper {
    overflow-x: auto;

    border: 1px solid #eaedf0;
    border-radius: 10px;

    background: #ffffff;
}

.tasks-table {
    width: 100%;
    min-width: 950px;

    border-collapse: collapse;
}

.tasks-table th {
    padding: 12px;

    border-bottom: 1px solid #e7ebee;

    color: #38414c;

    font-size: 12px;
    font-weight: 600;

    text-align: left;
    white-space: nowrap;
}

.tasks-table td {
    padding: 12px;

    border-bottom: 1px solid #edf0f2;

    font-size: 13px;

    vertical-align: middle;
    white-space: nowrap;
}

.tasks-table tbody tr:last-child td {
    border-bottom: 0;
}

.tasks-table tbody tr:hover {
    background: #fafbfd;
}


/* LINKS */

.task-link {
    color: #1388ed;

    font-weight: 600;
    text-decoration: none;
}

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

.task-id {
    margin-left: 3px;

    color: #7c858e;

    font-size: 12px;
}

.project-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 15px;

    background: #f1f3f5;

    color: #333b44;

    font-size: 12px;

    text-decoration: none;
}

.project-badge:hover {
    background: #e8ebee;
}


/* BADGES */

.badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 16px;

    font-size: 12px;
}

.badge-neutral {
    background: #f1f3f5;

    color: #313942;
}

.badge-danger {
    border: 1px solid #ffc7cb;

    background: #fff1f1;

    color: #e12631;
}

.badge-warning {
    border: 1px solid #ffe0a5;

    background: #fff6e5;

    color: #dc8c12;
}

.badge-overdue {
    margin-top: 5px;

    border: 1px solid #ffc9cc;

    background: #fff0f0;

    color: #e4212d;
}

.message-counter,
.mention-counter {
    display: inline-flex;
    align-items: center;

    margin-left: 6px;

    padding: 3px 7px;

    border-radius: 12px;

    font-size: 11px;
}

.message-counter {
    background: #eef1f4;
    color: #737d88;
}

.mention-counter {
    background: #e9f4ff;
    color: #1388ed;

    font-weight: 700;
}

.empty-state {
    padding: 20px;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.6);

    color: #7a848f;

    font-size: 13px;
    text-align: center;
}


/* MOBILE */

@media (max-width: 800px) {

    .page {
        padding: 14px;
    }

    .summary-card {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .overdue-banner {
        width: 100%;
        min-width: 0;

        font-size: 17px;
    }

}

.service-banner {
    margin: 0 0 18px;
    padding: 22px 24px;
    border: 1px solid #ffd7a3;
    border-radius: 18px;
    background: #fff7e8;
    color: #9a5c00;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 700;
}
