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

.ewta-head h1 {
    margin: 6px 0 8px;
}

.ewta-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.ewta-kicker {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ewta-head button {
    min-height: 44px;
    margin: 0;
    padding: 11px 16px;
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.ewta-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ewta-summary-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 96px;
    padding: 16px;
    border: 1px solid #dbe3ef;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .05);
    cursor: pointer;
}

.ewta-summary-card > i {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: #e2e8f0;
    color: #334155;
    font-size: 19px;
}

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

.ewta-summary-card strong {
    display: block;
    margin-top: 5px;
    font-size: 28px;
}

.ewta-summary-card.working {
    background: #f0fdf4;
}

.ewta-summary-card.working > i {
    background: #dcfce7;
    color: #166534;
}

.ewta-summary-card.break {
    background: #fffbeb;
}

.ewta-summary-card.break > i {
    background: #fef3c7;
    color: #92400e;
}

.ewta-summary-card.finished {
    background: #eff6ff;
}

.ewta-summary-card.finished > i {
    background: #dbeafe;
    color: #1e40af;
}

.ewta-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(190px, 250px) auto auto;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid #dbe3ef;
    border-radius: 15px;
    background: #ffffff;
}

.ewta-search {
    position: relative;
}

.ewta-search i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: #94a3b8;
    transform: translateY(-50%);
}

.ewta-search input,
.ewta-toolbar select {
    width: 100%;
    height: 45px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #ffffff;
    font: inherit;
}

.ewta-search input {
    padding: 10px 12px 10px 39px;
}

.ewta-toolbar select {
    padding: 10px 12px;
}

.ewta-date,
.ewta-updated {
    display: flex;
    min-width: 125px;
    flex-direction: column;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 11px;
    background: #f8fafc;
}

.ewta-date span,
.ewta-updated span {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.ewta-date strong,
.ewta-updated strong {
    margin-top: 4px;
    white-space: nowrap;
}

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

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

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

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

.ewta-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.ewta-group {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .05);
}

.ewta-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ewta-group-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ewta-group-head h2 {
    margin: 0;
    font-size: 17px;
}

.ewta-group-head > strong {
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: #e2e8f0;
}

.ewta-group.working .ewta-group-head {
    background: #f0fdf4;
    color: #166534;
}

.ewta-group.break .ewta-group-head {
    background: #fffbeb;
    color: #92400e;
}

.ewta-group.finished .ewta-group-head {
    background: #eff6ff;
    color: #1e40af;
}

.ewta-list {
    display: flex;
    max-height: 680px;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    padding: 12px;
}

.ewta-employee {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #94a3b8;
    border-radius: 14px;
    background: #ffffff;
}

.ewta-employee.working {
    border-left-color: #16a34a;
}

.ewta-employee.break {
    border-left-color: #f59e0b;
}

.ewta-employee.finished {
    border-left-color: #2563eb;
}

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

.ewta-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.ewta-avatar {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 900;
}

.ewta-person h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.ewta-person p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.ewta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.ewta-badge.working {
    background: #dcfce7;
    color: #166534;
}

.ewta-badge.break {
    background: #fef3c7;
    color: #92400e;
}

.ewta-badge.finished {
    background: #dbeafe;
    color: #1e40af;
}

.ewta-times {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
}

.ewta-times > div {
    padding: 9px;
    border-radius: 10px;
    background: #f8fafc;
}

.ewta-times span,
.ewta-task span {
    display: block;
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.ewta-times strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.ewta-task {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #eff6ff;
}

.ewta-task strong {
    display: block;
    margin-top: 4px;
    color: #1e3a8a;
    font-size: 13px;
}

.ewta-task small {
    display: block;
    margin-top: 4px;
    color: #475569;
}

.ewta-task.empty {
    background: #f8fafc;
}

.ewta-task.empty strong {
    color: #64748b;
}

.ewta-warning {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.ewta-empty,
.ewta-loading,
.ewta-error {
    display: flex;
    min-height: 140px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.ewta-empty i,
.ewta-loading i,
.ewta-error i {
    font-size: 25px;
    color: #94a3b8;
}

.ewta-empty strong,
.ewta-error strong {
    color: #334155;
}

.ewta-error {
    grid-column: 1 / -1;
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.ewta-error i,
.ewta-error strong {
    color: #991b1b;
}

@media (max-width: 1150px) {
    .ewta-toolbar {
        grid-template-columns: minmax(240px, 1fr) minmax(180px, 230px);
    }

    .ewta-date,
    .ewta-updated {
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .ewta-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ewta-groups {
        grid-template-columns: 1fr;
    }

    .ewta-list {
        max-height: none;
    }
}

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

    .ewta-head button {
        width: 100%;
    }

    .ewta-toolbar {
        grid-template-columns: 1fr;
    }

    .ewta-times {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .ewta-summary {
        grid-template-columns: 1fr;
    }

    .ewta-employee-head {
        flex-direction: column;
    }

    .ewta-times {
        grid-template-columns: 1fr;
    }
}
