
.eet-workbook,
.eet-workbook *,
.eet-workbook table,
.eet-workbook th,
.eet-workbook td,
.eet-workbook button {
    font: inherit;
    color: inherit;
    line-height: inherit;
    box-sizing: border-box;
}

.eet-workbook {
    width: min(100%, 100rem);
    max-width: 100%;
    margin: 1.5rem auto;
    font-size: 0.94rem;
    line-height: 1.35;
}

.eet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 .9rem;
}

.eet-tab,
.eet-btn {
    border: 1px solid currentColor;
    background: transparent;
    padding: .42em .75em;
    border-radius: .5rem;
    cursor: pointer;
    font-size: .96em;
    line-height: 1.2;
}

.eet-tab.is-active {
    font-weight: 600;
}

.eet-sheet {
    display: none;
}

.eet-sheet.is-active {
    display: block;
}

.eet-toolbar {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 .75rem;
}

.eet-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: .75rem;
    background: rgba(255,255,255,.55);
}

.eet-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: auto;
}

.eet-table th,
.eet-table td {
    padding: .42rem .55rem;
    border-bottom: 1px solid rgba(0,0,0,.09);
    vertical-align: top;
    text-align: left;
}

.eet-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255,255,255,.96);
    font-weight: 600;
    white-space: nowrap;
}

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

.eet-table td {
    min-width: 7rem;
    word-break: break-word;
}

.eet-table td[contenteditable="true"] {
    cursor: text;
}

.eet-table td[contenteditable="true"]:focus {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.eet-cell-locked {
    opacity: .82;
    cursor: default;
    background: rgba(0,0,0,.025);
}

.eet-row-actions,
.eet-col-actions {
    width: 1%;
    min-width: 6.5rem;
    white-space: nowrap;
}

.eet-btn-delete {
    padding-inline: .65em;
}

.eet-table td.is-saving { background: rgba(255, 243, 205, .7); }
.eet-table td.is-saved { background: rgba(212, 237, 218, .7); }
.eet-table td.is-error { background: rgba(248, 215, 218, .7); }

@media (max-width: 1024px) {
    .eet-workbook {
        font-size: 0.9rem;
    }

    .eet-table {
        min-width: 860px;
    }
}

@media (max-width: 782px) {
    .eet-workbook {
        margin: 1rem 0;
        font-size: 0.84rem;
    }

    .eet-tabs,
    .eet-toolbar {
        gap: .4rem;
    }

    .eet-tab,
    .eet-btn {
        padding: .48em .7em;
        font-size: .95em;
    }

    .eet-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .eet-table,
    .eet-table thead,
    .eet-table tbody,
    .eet-table tr,
    .eet-table th,
    .eet-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .eet-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .eet-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .eet-table tbody {
        display: grid;
        gap: .8rem;
    }

    .eet-table tr {
        padding: .7rem;
        border: 1px solid rgba(0,0,0,.1);
        border-radius: .75rem;
        background: rgba(255,255,255,.72);
    }

    .eet-table td {
        border: 0;
        padding: .28rem 0 .28rem 6.8rem;
        position: relative;
        min-height: 1.7rem;
    }

    .eet-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: .28rem;
        width: 6.3rem;
        max-width: 6.3rem;
        font-weight: 600;
        opacity: .9;
        white-space: normal;
        line-height: 1.25;
    }

    .eet-row-actions,
    .eet-col-actions {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .eet-row-actions {
        padding-left: 0;
        margin-top: .35rem;
    }

    .eet-row-actions::before {
        content: none;
    }
}
