.ewtpc-root {
    padding-bottom: 24px;
}

.ewtpc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

.ewtpc-head h1 {
    margin: 0 0 7px;
}

.ewtpc-head p {
    max-width: 860px;
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.ewtpc-head > button,
.ewtpc-filters > button {
    min-height: 43px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.ewtpc-filters {
    display: grid;
    grid-template-columns: minmax(170px, .7fr) minmax(210px, .8fr) minmax(270px, 1.5fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 13px;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 15px;
    background: #ffffff;
}

.ewtpc-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ewtpc-filters label > span {
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ewtpc-filters input,
.ewtpc-filters select {
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
}

.ewtpc-message {
    min-height: 22px;
    margin: 7px 0;
    font-weight: 800;
}

.ewtpc-message.loading {
    color: #475569;
}

.ewtpc-message.success {
    color: #166534;
}

.ewtpc-message.error {
    color: #b91c1c;
}

.ewtpc-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 13px;
}

.ewtpc-summary article {
    padding: 13px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
}

.ewtpc-summary article.unassigned {
    background: #fff7ed;
}

.ewtpc-summary article.warning.has-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.ewtpc-summary span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.ewtpc-summary strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
}

.ewtpc-summary small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.ewtpc-warning-box {
    margin-bottom: 13px;
    border: 1px solid #f59e0b;
    border-radius: 13px;
    background: #fffbeb;
}

.ewtpc-warning-box summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    color: #92400e;
    font-weight: 900;
    cursor: pointer;
}

.ewtpc-warning-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 0 12px 12px;
}

.ewtpc-warning-list article {
    padding: 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .75);
}

.ewtpc-warning-list strong,
.ewtpc-warning-list span {
    display: block;
}

.ewtpc-warning-list span {
    margin-top: 3px;
    color: #92400e;
}

.ewtpc-table-card {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .05);
}

.ewtpc-table-wrap {
    overflow: auto;
}

.ewtpc-table {
    width: 100%;
    border-collapse: collapse;
}

.ewtpc-table th,
.ewtpc-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.ewtpc-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
}

.ewtpc-table td small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.ewtpc-table td.attention {
    background: #fff7ed;
    color: #9a3412;
}

.ewtpc-table td.negative,
.ewtpc-table small.error {
    color: #b91c1c;
}

.ewtpc-expand {
    width: 32px;
    height: 32px;
    margin: 0 8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #e2e8f0;
    color: #334155;
    cursor: pointer;
}

.ewtpc-task-detail-row > td {
    padding: 0 12px 12px;
    background: #f8fafc;
}

.ewtpc-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 11px;
}

.ewtpc-task-list > article {
    padding: 11px;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    background: #ffffff;
}

.ewtpc-task-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ewtpc-task-head strong,
.ewtpc-task-head span {
    display: block;
}

.ewtpc-task-head span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.ewtpc-task-head > div:last-child {
    text-align: right;
}

.ewtpc-task-employees {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.ewtpc-task-employees > span {
    padding: 7px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 11px;
}

.ewtpc-status {
    display: inline-flex;
    padding: 7px 9px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
}

.ewtpc-status.review {
    background: #fef3c7;
    color: #92400e;
}

.ewtpc-status.approved {
    background: #dbeafe;
    color: #1e40af;
}

.ewtpc-status.closed {
    background: #dcfce7;
    color: #166534;
}

.ewtpc-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 11px;
    background: #eff6ff;
    color: #1e40af;
}

.ewtpc-info-box strong,
.ewtpc-info-box span {
    display: block;
}

.ewtpc-info-box span {
    margin-top: 4px;
    line-height: 1.45;
}

.ewtpc-empty,
.ewtpc-inline-empty {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.ewtpc-inline-empty {
    min-height: 60px;
}

.ewtpc-empty i {
    color: #94a3b8;
    font-size: 26px;
}

.ewtpc-empty strong {
    color: #334155;
}

@media (max-width: 1350px) {
    .ewtpc-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .ewtpc-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .ewtpc-head {
        flex-direction: column;
    }

    .ewtpc-head > button {
        width: 100%;
    }

    .ewtpc-filters,
    .ewtpc-summary {
        grid-template-columns: 1fr;
    }

    .ewtpc-task-head {
        flex-direction: column;
    }

    .ewtpc-task-head > div:last-child {
        text-align: left;
    }
}
