.taxai-account-master-page {
    --am-border: #e4e9f2;
    --am-border-strong: #d7deea;
    --am-text: #111c31;
    --am-muted: #68758a;
    --am-soft: #f7f9fc;
    --am-blue: #2868f0;
    --am-blue-soft: #edf4ff;
    display: grid;
    gap: 18px;
    width: 100%;
}

.taxai-account-master-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--taxai-space-6);
    padding: 22px 24px;
    border: 1px solid var(--am-border);
    border-radius: var(--taxai-radius-xl);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(40, 104, 240, 0.09),
            transparent 38%
        ),
        #fff;
    box-shadow: 0 10px 28px rgba(26, 42, 73, 0.05);
}

.taxai-account-master-summary__eyebrow,
.taxai-account-master-panel__eyebrow {
    margin-bottom: 7px;
    color: var(--am-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.taxai-account-master-summary h2,
.taxai-account-master-panel h2 {
    margin: 0;
    color: var(--am-text);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.taxai-account-master-summary p,
.taxai-account-master-panel__header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--am-muted);
    font-size: 13px;
    line-height: 1.7;
}

.taxai-account-master-status {
    display: inline-flex;
    align-items: center;
    gap: var(--taxai-space-2);
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #d7e8dd;
    border-radius: 999px;
    background: #f3fbf6;
    color: #277245;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.taxai-account-master-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #29a45b;
    box-shadow: 0 0 0 4px rgba(41, 164, 91, 0.12);
}

.taxai-account-master-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.taxai-account-master-kpis--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.taxai-account-master-kpi {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 122px;
    padding: 19px 20px;
    border: 1px solid var(--am-border);
    border-radius: var(--taxai-radius-lg);
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 42, 73, 0.045);
}

.taxai-account-master-kpi__icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--am-blue-soft);
    color: var(--am-blue);
    font-size: 14px;
    font-weight: 800;
}

.taxai-account-master-kpi__label {
    color: var(--am-muted);
    font-size: 12px;
    font-weight: 700;
}

.taxai-account-master-kpi__value {
    margin-top: 3px;
    color: var(--am-text);
    font-size: 26px;
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.taxai-account-master-kpi__value span {
    margin-left: 3px;
    color: var(--am-muted);
    font-size: 12px;
    font-weight: 700;
}

.taxai-account-master-kpi__note {
    margin-top: 5px;
    color: #8994a6;
    font-size: 11px;
}

.taxai-account-master-panel {
    overflow: hidden;
    border: 1px solid var(--am-border);
    border-radius: var(--taxai-radius-xl);
    background: #fff;
    box-shadow: 0 12px 32px rgba(26, 42, 73, 0.055);
}

.taxai-account-master-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--taxai-space-5);
    padding: 22px 24px 18px;
}

.taxai-account-master-panel__count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--am-muted);
    font-size: 12px;
    white-space: nowrap;
}

.taxai-account-master-panel__count strong {
    color: var(--am-text);
    font-size: 21px;
    font-weight: 850;
}

.taxai-account-master-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px 18px;
}

.taxai-account-master-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 520px);
}

.taxai-account-master-search input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 42px;
    border: 1px solid var(--am-border-strong);
    border-radius: var(--taxai-radius-md);
    outline: none;
    background: var(--am-soft);
    color: var(--am-text);
    font: inherit;
    font-size: 13px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.taxai-account-master-search input:focus {
    border-color: rgba(40, 104, 240, 0.7);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(40, 104, 240, 0.1);
}

.taxai-account-master-search__icon {
    position: absolute;
    left: 15px;
    z-index: 1;
    color: #7b8799;
    font-size: 20px;
    pointer-events: none;
}

.taxai-account-master-search__shortcut {
    position: absolute;
    right: 11px;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid var(--am-border-strong);
    border-radius: var(--taxai-radius-xs);
    background: #fff;
    color: #7b8799;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}

.taxai-account-master-clear {
    height: 38px;
    padding: 0 13px;
    border: 1px solid var(--am-border-strong);
    border-radius: var(--taxai-radius-md);
    background: #fff;
    color: #536177;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.taxai-account-master-table-wrap {
    position: relative;
    overflow-x: auto;
    border-top: 1px solid var(--am-border);
}

.taxai-account-master-table {
    width: 100%;
    min-width: 850px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--am-text);
}

.taxai-account-master-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 46px;
    padding: 0 15px;
    border-bottom: 1px solid var(--am-border-strong);
    background: #f5f7fb;
    color: #536177;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: left;
    white-space: nowrap;
}

.taxai-account-master-table td {
    height: 64px;
    padding: 11px 15px;
    border-bottom: 1px solid #edf0f5;
    background: #fff;
    font-size: 13px;
    vertical-align: middle;
    transition: background 0.15s ease;
}

.taxai-account-master-table tr:last-child td {
    border-bottom: 0;
}

.taxai-account-master-table tbody tr:hover td {
    background: #f9fbff;
}

.taxai-account-master-col-id {
    width: 62px;
}

.taxai-account-master-col-code {
    width: 110px;
}

.taxai-account-master-col-type {
    width: 125px;
}

.taxai-account-master-col-tax {
    width: 145px;
}

.taxai-account-master-col-active {
    width: 100px;
}

.taxai-account-master-col-date {
    width: 175px;
}

.taxai-account-master-id {
    color: #8994a6;
    font-size: 12px !important;
    font-weight: 700;
}

.taxai-account-master-code {
    display: inline-flex;
    min-width: 58px;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border: 1px solid #dae2ef;
    border-radius: var(--taxai-radius-sm);
    background: #f7f9fc;
    color: #31405a;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;
    font-size: 12px;
    font-weight: 750;
}

.taxai-account-master-name {
    color: #111c31;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.taxai-account-master-chip {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #d7e3f7;
    border-radius: 999px;
    background: #f1f6ff;
    color: #315f9f;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.taxai-account-master-chip--tax {
    border-color: #dfe0f8;
    background: #f6f4ff;
    color: #6358a9;
}

.taxai-account-master-empty {
    color: #a0a9b7;
    font-size: 11px;
    font-weight: 650;
}

.taxai-account-master-active {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid #d6e9dc;
    border-radius: 999px;
    background: #f2faf5;
    color: #287347;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.taxai-account-master-active > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ca75d;
    box-shadow: 0 0 0 3px rgba(44, 167, 93, 0.12);
}

.taxai-account-master-inactive {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #e1e4e9;
    border-radius: 999px;
    background: #f7f8fa;
    color: #778294;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.taxai-account-master-date {
    color: #68758a;
    font-size: 12px !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}


.taxai-account-master-no-results[hidden] {
    display: none !important;
}

.taxai-account-master-no-results,
.taxai-account-master-empty-state {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 30px;
    color: var(--am-muted);
    text-align: center;
}

.taxai-account-master-no-results strong,
.taxai-account-master-empty-state strong {
    color: var(--am-text);
    font-size: 15px;
}

.taxai-account-master-no-results span,
.taxai-account-master-empty-state span {
    font-size: 12px;
}

.taxai-account-master-table tr[hidden] {
    display: none;
}

@media (max-width: 1100px) {
    .taxai-account-master-kpis--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .taxai-account-master-kpis,
    .taxai-account-master-kpis--four {
        grid-template-columns: 1fr;
    }

    .taxai-account-master-kpi {
        min-height: 98px;
    }
}

@media (max-width: 640px) {
    .taxai-account-master-page {
        gap: 14px;
    }

    .taxai-account-master-summary,
    .taxai-account-master-panel__header {
        flex-direction: column;
    }

    .taxai-account-master-summary {
        padding: 19px;
    }

    .taxai-account-master-summary__status {
        width: 100%;
    }

    .taxai-account-master-status {
        width: 100%;
        justify-content: center;
    }

    .taxai-account-master-panel__header {
        padding: 19px 18px 15px;
    }

    .taxai-account-master-toolbar {
        padding: 0 18px 16px;
    }

    .taxai-account-master-search {
        width: 100%;
    }

    .taxai-account-master-search__shortcut {
        display: none;
    }

    .taxai-account-master-search input {
        padding-right: 15px;
    }

    .taxai-account-master-table-wrap {
        overflow: visible;
        padding: 0 14px 14px;
        border-top: 1px solid var(--am-border);
    }

    .taxai-account-master-table {
        min-width: 0;
    }

    .taxai-account-master-table thead {
        display: none;
    }

    .taxai-account-master-table,
    .taxai-account-master-table tbody,
    .taxai-account-master-table tr,
    .taxai-account-master-table td {
        display: block;
        width: 100%;
    }

    .taxai-account-master-table tr {
        margin-top: 14px;
        overflow: hidden;
        border: 1px solid var(--am-border);
        border-radius: 13px;
        background: #fff;
    }

    .taxai-account-master-table td {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        min-height: 44px;
        height: auto;
        align-items: center;
        gap: 10px;
        padding: 10px 13px;
        border-bottom: 1px solid #edf0f5;
    }

    .taxai-account-master-table td::before {
    }

    .taxai-account-master-table td:last-child {
        border-bottom: 0;
    }

    .taxai-account-master-table tbody tr:hover td {
        background: #fff;
    }
}

/* 2266g5h1 account/client unified geometry */
.taxai-account-master-page {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-items: stretch;
    gap: 18px;
}

.taxai-account-master-summary,
.taxai-account-master-kpis,
.taxai-account-master-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    box-sizing: border-box;
}

.taxai-account-master-summary {
    min-height: 118px;
    padding: 22px 24px;
}

.taxai-account-master-kpis {
    align-items: stretch;
}

.taxai-account-master-kpi {
    width: auto;
    min-width: 0;
    min-height: 122px;
    padding: 19px 20px;
    box-sizing: border-box;
}

.taxai-account-master-panel__header {
    width: 100%;
    padding: 22px 24px 18px;
    box-sizing: border-box;
}

.taxai-account-master-toolbar {
    width: 100%;
    box-sizing: border-box;
}

.taxai-account-master-table-wrap {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.taxai-account-master-table {
    width: 100%;
}

[data-account-master-page="v2266g5f2"] {
    width: 100%;
    min-width: 0;
    max-width: none;
}

@media (max-width: 640px) {
    .taxai-account-master-summary {
        min-height: 0;
        padding: 19px;
    }

    .taxai-account-master-kpi {
        min-height: 98px;
    }

    .taxai-account-master-panel__header {
        padding: 19px 18px 15px;
    }
}
/* /2266g5h1 account/client unified geometry */
