body.performance-page {
    background: #eef3f8;
}

.performance-shell {
    display: grid;
    gap: 0.95rem;
}

.performance-tabs {
    display: inline-flex;
    width: fit-content;
    gap: 0.35rem;
    padding: 0.32rem;
    border: 1px solid #dce7f4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.performance-tabs button {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #475467;
    padding: 0 1rem;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.performance-tabs button.active {
    background: #0f766e;
    color: #fff;
}

.performance-hero,
.performance-panel {
    border: 1px solid #e5edf6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.performance-hero {
    position: relative;
    overflow: hidden;
    min-height: 0;
    display: block;
    padding: 1.25rem;
}

.performance-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(37, 99, 235, 0.13), transparent 30%),
        radial-gradient(circle at 88% 30%, rgba(16, 185, 129, 0.12), transparent 28%);
    pointer-events: none;
}

.performance-hero > * {
    position: relative;
}

.performance-hero h1 {
    margin: 0.22rem 0 0.45rem;
    color: #101828;
    font-size: 2rem;
}

.performance-hero p {
    max-width: 760px;
    margin: 0;
    color: #667085;
    line-height: 1.75;
}

.performance-panel {
    overflow: hidden;
}

.performance-tab-panel {
    display: none;
}

.performance-tab-panel.active {
    display: block;
}

.performance-panel-head {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #edf2f7;
}

.performance-panel-head h2 {
    margin: 0.2rem 0 0;
    color: #101828;
}

.performance-search {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 140px 140px 140px 112px auto 44px;
    gap: 0.6rem;
    align-items: center;
}

.commission-search {
    grid-template-columns: minmax(220px, 360px) 140px 140px 112px auto 44px;
}

.performance-search .search-box {
    width: 100%;
}

.performance-select,
.performance-date {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 42px;
    border: 1px solid #d6e2ef;
    border-radius: 12px;
    background: #f8fbff;
    color: #101828;
    padding: 0 0.8rem;
    font: inherit;
    font-weight: 700;
    outline: none;
}

.performance-select:focus,
.performance-date:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.performance-check {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border: 1px solid #d6e2ef;
    border-radius: 12px;
    background: #f8fbff;
    color: #344054;
    padding: 0 0.75rem;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.performance-check input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.performance-chart-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(37, 99, 235, 0.18);
    background: #eef4ff;
    color: #2563eb;
}

.performance-chart-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.performance-summary-line {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.72rem 1rem;
    border-bottom: 1px solid #edf2f7;
    background: #fbfcfe;
    color: #667085;
    font-size: 0.9rem;
    font-weight: 800;
}

.performance-summary-line strong {
    color: #101828;
    font-weight: 900;
}

.performance-table-wrap {
    overflow-x: auto;
}

.performance-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.order-performance-table {
    min-width: 820px;
}

.performance-table th,
.performance-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
    vertical-align: middle;
}

.performance-table th {
    background: #fbfcfe;
    color: #667085;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.performance-main-cell strong,
.performance-main-cell span {
    display: block;
}

.performance-main-cell strong {
    color: #101828;
}

.performance-main-cell span {
    margin-top: 0.18rem;
    color: #667085;
    font-size: 0.84rem;
}

.performance-policy-link {
    display: inline;
    border: 0;
    background: transparent;
    color: #0f766e;
    padding: 0;
    font: inherit;
    font-weight: 900;
    text-align: left;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(15, 118, 110, 0.38);
    text-underline-offset: 4px;
    cursor: pointer;
}

.performance-policy-link:hover {
    color: #115e59;
    text-decoration-color: #115e59;
}

.performance-amount {
    color: #0f766e;
    font-weight: 900;
    white-space: nowrap;
}

.performance-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 900;
}

.performance-status-1 {
    background: #ecfdf3;
    color: #087443;
}

.performance-status-2 {
    background: #eef4ff;
    color: #3157a5;
}

.performance-status-3 {
    background: #f2f4f7;
    color: #475467;
}

.performance-status-4 {
    background: #fff7ed;
    color: #c2410c;
}

.performance-mobile-list {
    display: none;
    padding: 1rem;
}

.performance-mobile-card {
    border: 1px solid #e5edf6;
    border-radius: 15px;
    background: #fff;
    padding: 0.9rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.performance-mobile-card + .performance-mobile-card {
    margin-top: 0.85rem;
}

.performance-mobile-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.performance-mobile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.performance-mobile-meta span {
    display: block;
    color: #667085;
    font-size: 0.76rem;
    font-weight: 800;
}

.performance-mobile-meta strong {
    display: block;
    margin-top: 0.15rem;
    color: #101828;
    font-size: 0.88rem;
    word-break: break-word;
}

.performance-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #667085;
    font-weight: 800;
}

.performance-empty-panel {
    min-height: 360px;
    display: grid;
    place-items: center;
    gap: 0.9rem;
    padding: 2rem;
    text-align: center;
}

.performance-empty-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 1.8rem;
}

.performance-empty-panel h2 {
    margin: 0;
    color: #101828;
}

.performance-empty-panel p {
    max-width: 560px;
    margin: 0.45rem auto 0;
    color: #667085;
    line-height: 1.7;
}

.performance-table tbody.is-loading,
.performance-mobile-list.is-loading,
.profile-pagination.is-loading {
    opacity: 0.65;
}

body.performance-detail-open {
    overflow: hidden;
}

.performance-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.performance-detail-modal.active {
    display: flex;
}

.performance-detail-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 14%, rgba(15, 118, 110, 0.28), transparent 28%),
        rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(8px);
}

.performance-detail-panel {
    position: relative;
    z-index: 1;
    width: min(860px, 96vw);
    max-height: min(780px, 92vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
}

.performance-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem 0.85rem;
    border-bottom: 1px solid rgba(229, 237, 246, 0.9);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08)),
        #fff;
}

.performance-detail-head span {
    display: block;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.performance-detail-head h2 {
    margin: 0.16rem 0 0;
    color: #101828;
    font-size: 1.2rem;
}

.performance-detail-head button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e2ef;
    border-radius: 12px;
    background: #fff;
    color: #344054;
    cursor: pointer;
}

.performance-detail-body {
    overflow: auto;
    padding: 1rem;
    background:
        radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.08), transparent 30%),
        transparent;
}

.performance-detail-loading {
    min-height: 180px;
    display: grid;
    place-items: center;
    gap: 0.7rem;
    color: #667085;
    font-weight: 900;
}

.performance-detail-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    border: 1px solid rgba(213, 225, 240, 0.92);
    border-radius: 20px;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08)),
        #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.performance-detail-hero::after {
    content: "";
    position: absolute;
    right: -48px;
    top: -58px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.11);
}

.performance-detail-hero.order::after {
    background: rgba(37, 99, 235, 0.12);
}

.performance-detail-hero > * {
    position: relative;
    z-index: 1;
}

.performance-detail-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #0f766e;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.24);
}

.performance-detail-hero.order .performance-detail-icon {
    background: #2563eb;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.performance-detail-title-block {
    min-width: 0;
}

.performance-detail-title-block span {
    display: block;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.performance-detail-title-block strong {
    display: block;
    margin-top: 0.1rem;
    color: #101828;
    font-size: 1.35rem;
    line-height: 1.15;
    word-break: break-word;
}

.performance-detail-title-block small {
    display: block;
    margin-top: 0.32rem;
    color: #667085;
    font-weight: 800;
    word-break: break-word;
}

.performance-detail-status {
    justify-self: end;
}

.performance-detail-status.muted-status {
    border: 1px solid #dbe7f5;
    border-radius: 999px;
    background: #f8fbff;
    color: #3157a5;
    padding: 0.38rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

.performance-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.performance-detail-metric {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 0.18rem;
    border: 1px solid #e5edf6;
    border-radius: 18px;
    background: #fff;
    padding: 0.85rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.performance-detail-metric i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef4ff;
    color: #2563eb;
    margin-bottom: 0.22rem;
}

.performance-detail-metric span {
    color: #667085;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.performance-detail-metric strong {
    color: #101828;
    font-size: 1rem;
    word-break: break-word;
}

.performance-detail-summary {
    display: grid;
    grid-template-columns: 1.2fr 0.85fr 0.85fr;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.performance-detail-summary > div,
.performance-detail-field,
.performance-detail-section {
    border: 1px solid #e5edf6;
    border-radius: 15px;
    background: #fbfcfe;
    padding: 0.8rem;
}

.performance-detail-summary span,
.performance-detail-field span,
.performance-detail-list-item span {
    display: block;
    color: #667085;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.performance-detail-summary strong,
.performance-detail-field strong,
.performance-detail-list-item strong {
    display: block;
    margin-top: 0.18rem;
    color: #101828;
    font-size: 0.94rem;
    word-break: break-word;
}

.performance-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.performance-detail-section {
    margin-top: 0.9rem;
}

.performance-detail-section.clean {
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.performance-detail-section.clean.subtle {
    background: #fbfcfe;
}

.performance-detail-section h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.7rem;
    color: #101828;
    font-size: 1rem;
}

.performance-detail-section h3::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f766e;
}

.performance-detail-list {
    display: grid;
    gap: 0.55rem;
}

.performance-detail-list-item {
    display: grid;
    grid-template-columns: 1fr 110px 150px;
    gap: 0.7rem;
    align-items: center;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fbfcfe);
    padding: 0.8rem;
}

.performance-detail-list-item > div:first-child {
    min-width: 0;
}

.performance-detail-list-item > div:first-child strong {
    font-size: 1rem;
}

@media (max-width: 1100px) {
    .performance-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .performance-search {
        grid-template-columns: minmax(0, 1fr) 140px 140px 140px 112px auto 44px;
    }

    .commission-search {
        grid-template-columns: minmax(0, 1fr) 140px 140px 112px auto 44px;
    }
}

@media (max-width: 820px) {
    .performance-search {
        grid-template-columns: minmax(0, 1fr) minmax(110px, 0.45fr);
    }

    .performance-search .search-box {
        grid-column: 1 / -1;
    }

    .performance-search .action-btn {
        width: 100%;
        justify-content: center;
    }

    .performance-search .performance-chart-btn {
        width: 100%;
        min-width: 0;
    }

    .performance-table-wrap {
        display: none;
    }

    .performance-mobile-list {
        display: block;
    }

    .performance-detail-summary,
    .performance-detail-grid,
    .performance-detail-metrics {
        grid-template-columns: 1fr;
    }

    .performance-detail-hero {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: flex-start;
    }

    .performance-detail-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .performance-detail-list-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .performance-hero,
    .performance-panel-head {
        padding: 0.85rem;
    }

    .performance-hero h1 {
        font-size: 1.65rem;
    }

    .performance-search {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.5rem;
    }

    .performance-date {
        min-width: 0;
        max-width: 100%;
        padding: 0 0.38rem;
        font-size: 0.92rem;
        overflow: hidden;
    }

    .performance-date::-webkit-date-and-time-value {
        min-width: 0;
        text-align: left;
    }

    .performance-check,
    .performance-search .action-btn,
    .performance-search .performance-chart-btn {
        min-width: 0;
    }

    .performance-select {
        grid-column: 1 / -1;
    }

    .performance-summary-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .performance-mobile-meta {
        grid-template-columns: 1fr;
    }

    .performance-detail-modal {
        padding: 0.5rem;
    }

    .performance-detail-panel {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px;
    }

    .performance-detail-head {
        padding: 0.85rem;
    }

    .performance-detail-body {
        padding: 0.75rem;
    }

    .performance-detail-hero {
        padding: 0.85rem;
        border-radius: 18px;
    }

    .performance-detail-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .performance-detail-title-block strong {
        font-size: 1.12rem;
    }
}
