/*
 * TaxAI 2266g7b
 * Shared professional workbench components.
 */

.taxai-g7b-workbench {
    display: grid;
    gap: 16px;
    margin: 0 0 22px;
}

.taxai-g7b-workbench__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(248, 250, 252, .98),
            rgba(255, 255, 255, .98)
        );
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .03),
        0 10px 28px rgba(15, 23, 42, .045);
}

.taxai-g7b-workbench__heading {
    min-width: 0;
}

.taxai-g7b-workbench__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.taxai-g7b-workbench__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.taxai-g7b-workbench__description {
    max-width: 820px;
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

.taxai-g7b-workbench__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.taxai-g7b-workbench__body {
    display: grid;
    gap: 16px;
}

.taxai-g7b-block {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .03),
        0 10px 28px rgba(15, 23, 42, .045);
}

.taxai-g7b-block__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 19px;
    border-bottom: 1px solid #e8edf3;
    background:
        linear-gradient(
            180deg,
            #fff 0%,
            #fbfcfe 100%
        );
}

.taxai-g7b-block__heading {
    min-width: 0;
}

.taxai-g7b-block__title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.012em;
    line-height: 1.4;
}

.taxai-g7b-block__description {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.taxai-g7b-block__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.taxai-g7b-block__body {
    min-width: 0;
    padding: 18px 19px;
}

.taxai-g7b-block__body--flush {
    padding: 0;
}

.taxai-g7b-table-shell {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
}

.taxai-g7b-block__body--flush > .taxai-g7b-table-shell {
    border: 0;
    border-radius: 0;
}

.taxai-g7b-table-shell__scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.taxai-g7b-table-shell table,
.taxai-g7b-table-shell .taxai-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.taxai-g7b-table-shell thead th {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #dce5ef;
    color: #64748b;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
}

.taxai-g7b-table-shell tbody td {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    color: #334155;
    background: #fff;
    font-size: 13px;
    line-height: 1.5;
    vertical-align: middle;
}

.taxai-g7b-table-shell tbody tr:last-child td {
    border-bottom: 0;
}

.taxai-g7b-table-shell tbody tr:hover td {
    background: #fbfdff;
}

.taxai-g7b-table-shell--compact thead th {
    padding-top: 9px;
    padding-bottom: 9px;
}

.taxai-g7b-table-shell--compact tbody td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.taxai-g7b-block :where(
    button,
    .btn,
    .taxai-btn,
    input[type="button"],
    input[type="submit"]
) {
    min-height: 38px;
    border-radius: 9px;
    font-weight: 700;
}

.taxai-g7b-block :where(
    input[type="text"],
    input[type="search"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    select,
    textarea
) {
    min-height: 40px;
    border-color: #cbd5e1;
    border-radius: 9px;
    background: #fff;
}

.taxai-g7b-block :where(
    input,
    select,
    textarea
):focus {
    border-color: #64748b;
    outline: 3px solid rgba(100, 116, 139, .14);
    outline-offset: 0;
}

.taxai-g7b-analysis-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.taxai-g7b-analysis-kpis > .taxai-card,
.taxai-g7b-analysis-kpis > .taxai-kpi-card {
    margin: 0;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    box-shadow: none;
}

.taxai-g7b-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 980px) {
    .taxai-g7b-analysis-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .taxai-g7b-workbench__header,
    .taxai-g7b-block__header {
        flex-direction: column;
    }

    .taxai-g7b-workbench__actions,
    .taxai-g7b-block__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .taxai-g7b-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .taxai-g7b-workbench__header {
        padding: 16px;
    }

    .taxai-g7b-block__body {
        padding: 15px;
    }

    .taxai-g7b-analysis-kpis {
        grid-template-columns: 1fr;
    }

    .taxai-g7b-table-shell {
        margin-right: -15px;
        margin-left: -15px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .taxai-g7b-block__body--flush .taxai-g7b-table-shell {
        margin-right: 0;
        margin-left: 0;
    }
}
