.v2-earnings-page {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px 30px 48px;
}

.v2-earnings-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.v2-earnings-header h1 {
    margin: 0;
    color: #f3f6fb;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.v2-earnings-header p {
    margin: 7px 0 0;
    color: #8794a8;
    font-size: 13px;
}

.v2-earnings-freshness {
    color: #758297;
    font-size: 11px;
    white-space: nowrap;
}

.v2-earnings-state {
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid var(--v2-border-strong);
    background: var(--v2-bg-elevated);
    color: #aeb8c7;
    font-size: 12px;
}

.v2-earnings-calendar-panel,
.v2-earnings-results-panel {
    border: 1px solid var(--v2-border);
    background: var(--v2-bg-surface);
}

.v2-earnings-calendar-panel {
    margin-bottom: 18px;
}

.v2-earnings-calendar-toolbar {
    min-height: 54px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--v2-border);
}

.v2-earnings-period {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v2-earnings-period strong {
    min-width: 175px;
    color: #dce3ed;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.v2-earnings-nav-button,
.v2-earnings-today {
    border: 1px solid #303d51;
    background: var(--v2-bg-hover);
    color: #aeb9c9;
    cursor: pointer;
}

.v2-earnings-nav-button {
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 24px;
}

.v2-earnings-nav-button:hover,
.v2-earnings-today:hover {
    border-color: #46566d;
    color: #f1f4f8;
}

.v2-earnings-nav-button:disabled {
    opacity: .35;
    cursor: default;
}

.v2-earnings-today {
    height: 30px;
    padding: 0 12px;
    font-size: 11px;
}

.v2-earnings-date-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 116px;
}

.v2-earnings-date-card {
    position: relative;
    min-width: 0;
    padding: 15px 14px 13px;
    border: 0;
    border-right: 1px solid var(--v2-border);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.v2-earnings-date-card:last-child {
    border-right: 0;
}

.v2-earnings-date-card:hover {
    background: var(--v2-bg-hover);
}

.v2-earnings-date-card.is-active {
    background: var(--v2-bg-elevated);
}

.v2-earnings-date-card.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: #8b5cf6;
}

.v2-earnings-date-day {
    display: block;
    margin-bottom: 4px;
    color: #78869b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.v2-earnings-date-number {
    display: block;
    color: #e8edf5;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 650;
}

.v2-earnings-date-count {
    display: block;
    margin-top: 10px;
    color: #a8b3c3;
    font-size: 12px;
}

.v2-earnings-date-meta {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    color: #6f7d91;
    font-size: 11px;
}

.v2-earnings-results-head {
    min-height: 76px;
    padding: 15px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--v2-border);
}

.v2-earnings-date-kicker {
    margin-bottom: 3px;
    color: #7464a8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.v2-earnings-results-head h2 {
    margin: 0;
    color: #edf1f7;
    font-size: 18px;
    font-weight: 620;
}

.v2-earnings-results-head p {
    margin: 4px 0 0;
    color: #7e8b9e;
    font-size: 12px;
}

.v2-earnings-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #7d8a9d;
    font-size: 11px;
}

.v2-earnings-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-earnings-legend i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #66758a;
}

.v2-earnings-legend i.is-confirmed {
    background: #8b5cf6;
}

.v2-earnings-legend i.is-estimated {
    background: #64748b;
}

.v2-earnings-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.v2-earnings-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.v2-earnings-table th {
    height: 36px;
    padding: 0 13px;
    border-bottom: 1px solid var(--v2-border);
    color: #66758a;
    font-size: var(--v2-font-label);
    font-weight: 650;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .055em;
    white-space: nowrap;
}

.v2-earnings-table td {
    height: 58px;
    padding: 8px 13px;
    border-bottom: 1px solid var(--v2-border);
    color: #aeb8c7;
    font-size: 12px;
    vertical-align: middle;
}

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

.v2-earnings-table tbody tr:hover {
    background: var(--v2-bg-hover);
}

.v2-earnings-table th:nth-child(1) { width: 20%; }
.v2-earnings-table th:nth-child(2) { width: 10%; }
.v2-earnings-table th:nth-child(3) { width: 14%; }
.v2-earnings-table th:nth-child(4) { width: 15%; }
.v2-earnings-table th:nth-child(5) { width: 12%; }
.v2-earnings-table th:nth-child(6) { width: 12%; }
.v2-earnings-table th:nth-child(7) { width: 8%; }
.v2-earnings-table th:nth-child(8) { width: 9%; }

.v2-earnings-company {
    color: #d9e0ea;
    font-weight: 560;
}

.v2-earnings-symbol {
    color: #9c83e7;
    font-weight: 650;
    text-decoration: none;
}

.v2-earnings-symbol:hover {
    color: #b8a4f2;
}

.v2-earnings-metric strong {
    display: block;
    color: #dce3ec;
    font-size: 12px;
    font-weight: 600;
}

.v2-earnings-metric small {
    display: block;
    margin-top: 3px;
    color: #68768a;
    font-size: var(--v2-font-label);
}

.v2-earnings-positive {
    color: #22c55e !important;
}

.v2-earnings-negative {
    color: #ef4444 !important;
}

.v2-earnings-revisions {
    display: flex;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

.v2-earnings-revisions .up {
    color: #22c55e;
}

.v2-earnings-revisions .down {
    color: #ef4444;
}

.v2-earnings-history {
    display: flex;
    align-items: center;
    gap: 4px;
}

.v2-earnings-history-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #566477;
}

.v2-earnings-history-dot.is-beat {
    background: #22c55e;
}

.v2-earnings-history-dot.is-miss {
    background: #ef4444;
}

.v2-earnings-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #39475a;
    color: #8d9bad;
    font-size: var(--v2-font-label);
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.v2-earnings-status.is-confirmed {
    border-color: rgba(139, 92, 246, .48);
    color: #aa91ef;
}

.v2-earnings-loading,
.v2-earnings-empty {
    padding: 30px !important;
    color: #718096 !important;
    text-align: center !important;
}

@media (max-width: 1100px) {
    .v2-earnings-date-strip {
        grid-template-columns: repeat(7, minmax(118px, 1fr));
        overflow-x: auto;
    }

    .v2-earnings-table {
        min-width: 980px;
    }
}

.v2-earnings-header-actions {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.v2-earnings-search {
    position: relative;
    width: 290px;
}

.v2-earnings-search input {
    width: 100%;
    height: 34px;
    padding: 0 11px;
    border: 1px solid #303d51;
    background: var(--v2-bg-elevated);
    color: #dce3ed;
    outline: none;
    font-size: 11px;
}

.v2-earnings-search input::placeholder {
    color: #66758a;
}

.v2-earnings-search input:focus {
    border-color: #6d5aa8;
}

@media (max-width: 620px) {
    .v2-earnings-page {
        padding: 22px 16px 40px;
    }

    .v2-earnings-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .v2-earnings-header-actions {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .v2-earnings-search {
        width: 100%;
    }

    .v2-earnings-freshness {
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .v2-earnings-calendar-toolbar {
        min-height: 0;
        padding: 10px 12px;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .v2-earnings-period {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .v2-earnings-period strong {
        min-width: 0;
        flex: 1 1 auto;
    }

    .v2-earnings-today {
        width: 100%;
    }
}

.v2-earnings-search-results {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    border: 1px solid #303d51;
    background: var(--v2-bg-elevated);
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.v2-earnings-search-result {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid var(--v2-border);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.v2-earnings-search-result:last-child {
    border-bottom: 0;
}

.v2-earnings-search-result:hover {
    background: var(--v2-bg-hover);
}

.v2-earnings-search-result strong {
    flex: 0 0 52px;
    color: #a68aed;
    font-size: 11px;
}

.v2-earnings-search-result span {
    min-width: 0;
    overflow: hidden;
    color: #8b98aa;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-earnings-search-empty {
    padding: 11px;
    color: #718096;
    font-size: 10px;
}
