/* event2 v5 fixes: clean logo/gauge, no screenshot backgrounds */
.event2-page,
.event2-page * {
    box-sizing: border-box;
}

body {
    background: #9ea5af;
    overflow-x: hidden;
}

#zoomFrame {
    background: #9ea5af;
}

.event2-page {
    --e2-bg: #fffced;
    --e2-bg-soft: #fff9df;
    --e2-card: rgba(255, 254, 246, 0.88);
    --e2-line: rgba(74, 70, 60, 0.14);
    --e2-text: #332f29;
    --e2-muted: #89867d;
    --e2-yellow: #f4c40d;
    --e2-dark: #252a21;
    --e2-gray: #80827b;
    --e2-blue: #0087fc;
    --e2-red: #e4503f;
    --e2-orange: #f39a14;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 8px;
    width: calc(100% - 42px);
    min-height: calc(100vh - 74px);
    margin: 28px auto 30px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(106deg, #fbfaef 0%, #fff8da 51%, #fff1a6 100%);
    color: var(--e2-text);
    font-family: "Roboto", Arial, sans-serif;
    box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 8px 28px rgba(0,0,0,.08);
}

.event2-page svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event2-page button,
.event2-page input,
.event2-page a {
    font: inherit;
}

.event2-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.event2-side-tabs {
    width: 100%;
    display: grid;
    gap: 8px;
}

.event2-side-tab {
    width: 100%;
    min-height: 66px;
    border: 1px solid rgba(0,0,0,.13);
    border-radius: 8px;
    background: rgba(255,255,255,.43);
    color: #8b8880;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.event2-side-tab:hover,
.event2-side-tab:focus-visible {
    color: #39352e;
    border-color: rgba(0,0,0,.23);
    outline: none;
}

.event2-side-tab.is-active {
    background: var(--e2-dark);
    border-color: var(--e2-dark);
    color: #fff;
}

.event2-side-tab-icon {
    width: 22px;
    height: 22px;
}

.event2-side-tab span:last-child {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: .01em;
    line-height: 1.15;
}

.event2-sidebar-separator {
    color: rgba(0,0,0,.38);
    font-size: 18px;
    line-height: 1;
    margin: 55px 0 34px;
}

.event2-cowboy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.event2-cowboy-picture {
    width: 142px;
    height: 142px;
    margin-bottom: 16px;
    border-radius: 7px;
    box-shadow: none;
    overflow: hidden;
}


.event2-cowboy-picture svg {
    display: block;
    width: 100%;
    height: 100%;
}

.event2-cowboy:hover .event2-cowboy-picture,
.event2-cowboy:focus-visible .event2-cowboy-picture {
    filter: none;
}


.event2-cowboy-img {
    display: block;
    width: 232px;
    max-width: 100%;
    height: auto;
    border: 0;
}


.event2-paper-label {
    width: 100%;
    min-height: 130px;
    border-radius: 13px;
    background: var(--e2-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.18;
    text-align: center;
}

.event2-paper-label svg {
    width: 22px;
    height: 22px;
}

.event2-exit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: #e65031;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    text-transform: lowercase;
}

.event2-exit svg {
    width: 46px;
    height: 40px;
    stroke-width: 1.4;
}

.event2-exit:hover,
.event2-exit:focus-visible {
    color: #bf3118;
    outline: none;
}

.event2-content {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.event2-hero,
.event2-card,
.event2-promo,
.event2-table-card {
    border-radius: 12px;
    background: var(--e2-card);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

.event2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    min-height: 344px;
    overflow: hidden;
    background: linear-gradient(92deg, rgba(255,254,246,.72) 0%, rgba(255,249,220,.75) 65%, rgba(255,239,145,.6) 100%);
}

.event2-hero-text {
    padding: 25px 22px 20px;
}

.event2-hero h1,
.event2-card h2,
.event2-table-card h2 {
    margin: 0;
    color: #36322c;
    font-weight: 300;
    letter-spacing: .015em;
}

.event2-hero h1 {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 15px;
}

.event2-subtitle {
    color: #76736b;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 16px;
}

.event2-description {
    width: min(100%, 900px);
    color: #77756d;
    font-size: 20px;
    line-height: 1.35;
    margin: 0;
}

.event2-stats {
    display: flex;
    align-items: flex-end;
    gap: 34px;
    margin-top: 33px;
}

.event2-stat {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: end;
}

.event2-stat-icon {
    grid-row: 1 / span 2;
    width: 27px;
    height: 27px;
    color: #d8d5c7;
    align-self: start;
    margin-top: 10px;
}

.event2-stat strong {
    display: block;
    color: #332f29;
    font-size: 46px;
    font-weight: 300;
    line-height: .9;
    letter-spacing: .02em;
}

.event2-stat span:last-child {
    color: #7b776f;
    font-size: 18px;
    line-height: 1.18;
    margin-top: 7px;
}

.event2-gauge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px 0 0;
}

.event2-gauge svg {
    width: 300px;
    max-width: 100%;
    overflow: visible;
}

.event2-gauge-track,
.event2-gauge-inner,
.event2-gauge-progress {
    fill: none;
    stroke-linecap: round;
}

.event2-gauge-track {
    stroke: #e2e7eb;
    stroke-width: 22px;
}

.event2-gauge-inner {
    stroke: #e2e7eb;
    stroke-width: 15px;
    opacity: .9;
}

.event2-gauge-progress {
    stroke: #f3c00c;
    stroke-width: 22px;
}

.event2-gauge-dot {
    fill: #fffbea;
    stroke: #f3c00c;
    stroke-width: 4px;
}

.gauge-small { fill:#5a554b; font-size:28px; font-weight:300; }
.gauge-big { fill:#25241e; font-size:39px; font-weight:300; }
.gauge-caption { fill:#817c72; font-size:15px; font-weight:300; }
.gauge-scale { fill:#6f6c64; font-size:14px; font-weight:300; }

.event2-dashboard {
    display: grid;
    grid-template-columns: 1.05fr .82fr 1.2fr;
    gap: 8px;
}

.event2-card {
    min-height: 335px;
    padding: 28px 22px 18px;
    overflow: hidden;
}

.event2-card h2 {
    font-size: 30px;
    line-height: 1.15;
}

.event2-report-numbers {
    display: flex;
    gap: 78px;
    margin-top: 48px;
}

.event2-report-numbers > div {
    display: grid;
    grid-template-columns: 72px auto;
    column-gap: 20px;
    align-items: center;
}

.event2-outline-icon {
    grid-row: 1 / span 2;
    width: 72px;
    height: 64px;
    border: 1.5px solid #6b675e;
    border-radius: 10px;
    color: #36332d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event2-outline-icon svg {
    width: 35px;
    height: 35px;
}

.event2-report-numbers strong {
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
}

.event2-report-numbers span:last-child {
    color: #858178;
    font-size: 15px;
    line-height: 1.16;
    width: 130px;
}

.event2-mini-chart {
    height: 151px;
    margin: 28px 6px 0;
}

.event2-mini-chart svg {
    stroke: none;
}

.event2-months {
    display: flex;
    justify-content: space-between;
    padding: 0 70px 0 26px;
    color: #74716a;
    font-size: 18px;
}

.event2-months .is-current {
    color: #d09c00;
    background: #fbefba;
    border-radius: 999px;
    padding: 5px 18px;
    margin-top: -5px;
}

.event2-bars-card {
    position: relative;
}

.event2-bars-note {
    position: absolute;
    right: 16px;
    top: 86px;
    color: #827f77;
    font-size: 16px;
    line-height: 1.15;
    text-align: right;
}

.event2-bars-note strong {
    color: #302e28;
    font-size: 29px;
    font-weight: 300;
}

.event2-bars {
    position: absolute;
    left: 10px;
    right: 8px;
    bottom: 8px;
    height: 255px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.event2-bars .bar {
    position: relative;
    flex: 1 1 0;
    border-radius: 9px 9px 8px 8px;
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 5px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.18;
}

.event2-bars .bar i {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(103,101,91,.77);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 16px;
}

.bar-yellow { height: 232px; background: #f7c818; }
.bar-dark { height: 176px; background: #252a21; }
.bar-gray { height: 136px; background: #7d7f77; }

.event2-line-card {
    position: relative;
    padding-right: 20px;
}

.event2-card-link {
    position: absolute;
    top: 27px;
    right: 27px;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #20241e;
    padding: 16px;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, transform .15s ease;
}

.event2-card-link:hover,
.event2-card-link:focus-visible {
    color: var(--e2-blue);
    outline: none;
    transform: translate(1px,-1px);
}

.event2-line-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 5px;
}

.event2-muted-icon {
    width: 28px;
    height: 28px;
    color: #c6c1b4;
}

.event2-line-head strong {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: .06em;
}

.event2-line-card p {
    color: #827f77;
    font-size: 19px;
    margin: 0;
}

.event2-line-chart {
    height: 235px;
    margin-top: 24px;
}

.event2-line-chart svg {
    stroke: none;
}

.event2-line-chart text {
    fill: #57544d;
    font-size: 18px;
    font-weight: 300;
}

.event2-promo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.event2-promo {
    min-height: 168px;
    padding: 13px 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event2-promo i {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #f1c51c;
}

.event2-promo p {
    min-height: 42px;
    margin: 3px 0 0;
    color: #78756e;
    font-size: 15px;
    line-height: 1.15;
}

.event2-promo strong {
    display: block;
    color: #302e28;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    margin: 0 0 11px;
}

.event2-view-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #706d65;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.event2-view-link span {
    border-bottom: 1px dotted transparent;
    font-size: 15px;
    line-height: 1.2;
}

.event2-view-link svg {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border-radius: 50%;
    background: #fff;
    color: #34352e;
    padding: 10px;
    transition: color .15s ease, background .15s ease;
}

.event2-view-link:hover,
.event2-view-link:focus-visible {
    color: #1e211d;
    outline: none;
}

.event2-view-link:hover span,
.event2-view-link:focus-visible span {
    border-bottom-color: currentColor;
}

.event2-view-link:hover svg,
.event2-view-link:focus-visible svg {
    color: #fff;
    background: #252a21;
}

.event2-table-card {
    min-height: 330px;
    padding: 31px 28px 29px;
    overflow: visible;
}

.event2-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.event2-table-card h2 {
    font-size: 27px;
    line-height: 1.2;
}

.event2-search-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.event2-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 270px;
    height: 48px;
    border: 1.3px solid rgba(71,69,62,.58);
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #929088;
}

.event2-search svg:first-child {
    width: 23px;
    height: 23px;
    margin-left: 18px;
    flex: 0 0 23px;
}

.event2-search input {
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #4b4840;
    font-size: 20px;
    font-weight: 300;
    padding: 0 48px 0 12px;
}

.event2-search input::placeholder {
    color: #a09c93;
}

.event2-clear-search {
    display: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #8b8981;
    color: #fff;
    padding: 9px;
    cursor: pointer;
}

.event2-search.has-value .event2-clear-search {
    display: block;
}

.event2-clear-search:hover {
    background: #6d6b64;
}

.event2-account-filter {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event2-filter-btn,
.event2-filter-reset {
    width: 51px;
    height: 51px;
    border-radius: 50%;
    border: 1.3px solid rgba(71,69,62,.58);
    background: rgba(255,255,255,.18);
    color: #6e6b64;
    padding: 13px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.event2-filter-btn:hover,
.event2-filter-btn.is-open,
.event2-filter-btn:focus-visible {
    color: var(--e2-blue);
    border-color: var(--e2-blue);
    outline: none;
}

.event2-filter-btn.has-active {
    color: var(--e2-red);
    border-color: #ffb7a9;
    background: #fff6ee;
}

.event2-filter-reset {
    display: none;
    background: #8b8981;
    border-color: #8b8981;
    color: #fff;
}

.event2-account-filter.has-active .event2-filter-reset {
    display: block;
}

.event2-filter-reset:hover {
    background: #6d6b64;
}

.event2-account-popup {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(650px, calc(100vw - 48px));
    z-index: 20;
    border: 2px solid var(--e2-blue);
    background: #fff;
    color: #86868a;
    box-shadow: 0 16px 24px rgba(0,0,0,.12);
}

.event2-popup-title {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 2px solid var(--e2-blue);
    color: #6f6f72;
    font-size: 21px;
    line-height: 1.12;
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event2-account-list-wrap {
    position: relative;
    padding-right: 32px;
}

.event2-account-list {
    max-height: 390px;
    overflow: auto;
    scrollbar-width: none;
}

.event2-account-list::-webkit-scrollbar {
    display: none;
}

.event2-account-row {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 16px;
    color: #86868a;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    user-select: none;
}

.event2-account-row:hover {
    background: #fbfafa;
    color: #4d4343;
}

.event2-account-row.is-checked {
    background: #eef6ff;
    color: var(--e2-blue);
}

.event2-account-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.event2-fake-check {
    width: 26px;
    height: 26px;
    border: 1px solid #b7b8bc;
    background: #fff;
    flex: 0 0 26px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event2-account-row.is-checked .event2-fake-check {
    background: var(--e2-blue);
    border-color: var(--e2-blue);
}

.event2-fake-check svg {
    width: 18px;
    height: 18px;
    stroke-width: 3;
}

.event2-scroll-btn {
    position: absolute;
    right: 0;
    width: 32px;
    height: 50%;
    border: 0;
    background: var(--e2-blue);
    color: #fff;
    padding: 9px;
    cursor: pointer;
}

.event2-scroll-btn:hover {
    background: #71baff;
}

.event2-scroll-btn:active {
    background: #0069c8;
}

.event2-scroll-btn:disabled {
    cursor: default;
    background: #9ecfff;
    color: rgba(255,255,255,.7);
}

.event2-scroll-up { top: 0; }
.event2-scroll-down { bottom: 0; }

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

.event2-data-table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
    color: #4c4942;
}

.event2-data-table thead th {
    height: 49px;
    background: rgba(222,220,207,.45);
    color: #5f5b53;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
    padding: 0 22px;
    white-space: nowrap;
}

.event2-data-table thead th:first-child { border-radius: 9px 0 0 9px; }
.event2-data-table thead th:last-child { border-radius: 0 9px 9px 0; }

.event2-data-table tbody td {
    height: 75px;
    padding: 0 22px;
    font-size: 19px;
    font-weight: 300;
    border-bottom: 1px solid rgba(0,0,0,.025);
    vertical-align: middle;
}

.event2-data-table tbody tr:hover td {
    background: rgba(255,255,255,.26);
}

.event2-no-results td {
    color: #928d84;
    text-align: center;
}

.event2-highlight {
    background: var(--e2-orange);
    color: #fff;
    border-radius: 2px;
    padding: 0 2px;
}

.event2-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: 320px;
    min-height: 30px;
    padding: 7px 11px;
    background: rgba(70, 68, 63, .83);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    pointer-events: none;
    text-align: center;
}

.event2-to-top {
    position: fixed;
    right: 28px;
    bottom: 90px;
    z-index: 30;
    width: 77px;
    height: 58px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 0;
    border-radius: 8px;
    background: rgba(80, 78, 72, .75);
    color: #fff;
    cursor: pointer;
    text-transform: lowercase;
    font-size: 16px;
    line-height: 1;
}

.event2-to-top.is-visible {
    display: flex;
}

.event2-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.event2-to-top:hover,
.event2-to-top:focus-visible {
    background: rgba(41, 43, 38, .86);
    outline: none;
}

@media (max-width: 1200px) {
    .event2-page {
        grid-template-columns: 190px minmax(0, 1fr);
        padding: 12px;
    }

    .event2-side-tab span:last-child { font-size: 17px; }
    .event2-hero { grid-template-columns: 1fr; }
    .event2-gauge { display: none; }
    .event2-dashboard { grid-template-columns: 1fr 1fr; }
    .event2-line-card { grid-column: 1 / -1; }
    .event2-promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 801px) {
    .event2-page {
        min-width: 800px;
    }
}

@media (max-width: 800px) {
    body {
        background: #e2e2e2;
    }

    #zoomFrame {
        background: #e2e2e2;
    }

    .event2-page {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 8px;
        border-radius: 0;
        display: block;
        background: #e5e5e5;
    }

    .event2-sidebar {
        width: 100%;
        display: block;
        margin-bottom: 8px;
    }

    .event2-side-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .event2-side-tab {
        min-height: 56px;
        border-radius: 4px;
    }

    .event2-side-tab span:last-child {
        font-size: 14px;
    }

    .event2-side-tab-icon {
        width: 18px;
        height: 18px;
    }

    .event2-sidebar-separator,
    .event2-cowboy,
    .event2-exit {
        display: none;
    }

    .event2-content {
        gap: 8px;
    }

    .event2-hero {
        display: block;
        min-height: auto;
        border-radius: 6px;
    }

    .event2-hero-text {
        padding: 18px 14px 16px;
    }

    .event2-hero h1 {
        font-size: 22px;
        margin-bottom: 9px;
    }

    .event2-subtitle {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .event2-description {
        font-size: 14px;
        line-height: 1.35;
    }

    .event2-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 16px;
    }

    .event2-stat {
        grid-template-columns: 22px auto;
        column-gap: 7px;
    }

    .event2-stat-icon {
        width: 18px;
        height: 18px;
        margin-top: 5px;
    }

    .event2-stat strong {
        font-size: 26px;
    }

    .event2-stat span:last-child {
        font-size: 11px;
    }

    .event2-dashboard {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .event2-card {
        min-height: auto;
        padding: 16px 12px;
        border-radius: 6px;
    }

    .event2-card h2,
    .event2-table-card h2 {
        font-size: 20px;
    }

    .event2-report-numbers {
        gap: 18px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .event2-report-numbers > div {
        grid-template-columns: 50px auto;
        column-gap: 10px;
    }

    .event2-outline-icon {
        width: 48px;
        height: 43px;
    }

    .event2-report-numbers strong {
        font-size: 22px;
    }

    .event2-report-numbers span:last-child {
        font-size: 11px;
    }

    .event2-mini-chart {
        height: 110px;
        margin-top: 12px;
    }

    .event2-months {
        font-size: 13px;
        padding: 0 20px;
    }

    .event2-bars-card {
        display: none;
    }

    .event2-line-head strong {
        font-size: 34px;
    }

    .event2-line-card p {
        font-size: 15px;
    }

    .event2-card-link {
        width: 44px;
        height: 44px;
        top: 15px;
        right: 15px;
        padding: 12px;
    }

    .event2-line-chart {
        height: 155px;
        margin-top: 15px;
    }

    .event2-promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .event2-promo-grid .event2-promo:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .event2-promo {
        min-height: 116px;
        border-radius: 6px;
        padding: 10px;
    }

    .event2-promo p,
    .event2-view-link span {
        font-size: 12px;
    }

    .event2-promo strong {
        font-size: 21px;
        margin-bottom: 7px;
    }

    .event2-view-link svg {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .event2-table-card {
        padding: 18px 10px 16px;
        border-radius: 6px;
    }

    .event2-table-head {
        display: block;
        margin-bottom: 15px;
    }

    .event2-search-tools {
        margin-top: 15px;
        width: 100%;
    }

    .event2-search {
        width: 100%;
        height: 42px;
    }

    .event2-search input {
        font-size: 15px;
    }

    .event2-filter-btn,
    .event2-filter-reset {
        width: 42px;
        height: 42px;
        padding: 11px;
    }

    .event2-account-popup {
        position: fixed;
        left: 8px;
        right: 8px;
        top: auto;
        bottom: 16px;
        width: auto;
    }

    .event2-popup-title {
        font-size: 16px;
        height: 42px;
    }

    .event2-account-list {
        max-height: 310px;
    }

    .event2-account-row {
        height: 44px;
        font-size: 15px;
    }

    .event2-data-table {
        min-width: 760px;
    }

    .event2-data-table thead th {
        height: 42px;
        padding: 0 13px;
        font-size: 12px;
    }

    .event2-data-table tbody td {
        height: 55px;
        padding: 0 13px;
        font-size: 13px;
    }

    .event2-to-top {
        right: 10px;
        bottom: 24px;
        width: 62px;
        height: 47px;
        font-size: 13px;
    }
}

@media (max-width: 489px) {
    .event2-side-tabs {
        grid-template-columns: 1fr;
    }

    .event2-promo-grid {
        grid-template-columns: 1fr;
    }

    .event2-stats {
        grid-template-columns: 1fr;
    }

    .event2-report-numbers {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.event2-table-url {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.event2-table-url:hover,
.event2-table-url:focus-visible {
    color: var(--e2-blue);
    text-decoration: underline;
}

.event2-promo {
    cursor: default;
}

.event2-promo .event2-view-link,
.event2-promo .event2-view-link * {
    pointer-events: auto;
}

.nav-link {
    cursor: pointer;
}

@media (max-width: 800px) {
    .event2-popup-title {
        white-space: normal;
        min-height: 52px;
        font-size: 18px;
    }
}

/* v5 clean inline gauge: no raster screenshot frame */
.event2-gauge {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 18px 0 0;
    overflow: visible;
}

.event2-gauge-svg {
    width: 360px;
    max-width: 100%;
    height: auto;
    overflow: visible;
}

.event2-gauge .event2-gauge-back,
.event2-gauge .event2-gauge-front {
    fill: none;
    stroke-linecap: round;
}

.event2-gauge .event2-gauge-back {
    stroke: #e4e9ec;
    stroke-width: 20px;
}

.event2-gauge .event2-gauge-front {
    stroke: #f2c20d;
    stroke-width: 20px;
    filter: url(#e2GaugeShadow);
}

.event2-gauge .event2-gauge-point {
    fill: #fffbed;
    stroke: #f2c20d;
    stroke-width: 5px;
    filter: url(#e2GaugeShadow);
}

.event2-gauge text {
    stroke: none;
    font-family: "Roboto", Arial, sans-serif;
}

.event2-gauge-scale {
    fill: #726f67;
    font-size: 17px;
    font-weight: 300;
}

.event2-gauge-vertical {
    fill: #8a857a;
    font-size: 13px;
    font-weight: 300;
    writing-mode: vertical-rl;
}

.event2-gauge-main {
    fill: #6d6a63;
    font-size: 32px;
    font-weight: 300;
}

.event2-gauge-percent {
    fill: #29251f;
    font-size: 43px;
    font-weight: 400;
}

.event2-gauge-caption {
    fill: #858076;
    font-size: 15px;
    font-weight: 300;
}

.rotate-left {
    transform: rotate(-64deg);
    transform-origin: center;
}

.rotate-right {
    transform: rotate(30deg);
    transform-origin: center;
}

.event2-paper-label {
    text-decoration: none;
}


/* v6: real supplied SVG assets for cowboy and gauge */
.event2-cowboy-picture {
    width: 142px;
    height: 140px;
    margin-bottom: 16px;
    border-radius: 7px;
    overflow: hidden;
    background: transparent;
}

.event2-cowboy-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.event2-cowboy-img {
    display: none;
}

@media (min-width: 1021px) {
    .event2-hero {
        grid-template-columns: minmax(0, 1fr) 435px;
    }
}

.event2-gauge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px 0 0;
    overflow: visible;
}

.event2-gauge-svg.event2-gauge-asset {
    display: block;
    width: 418px;
    max-width: 100%;
    height: auto;
    overflow: visible;
}

.event2-gauge-svg.event2-gauge-asset text {
    font-family: "Roboto", Arial, sans-serif;
    stroke: none;
}

@media (max-width: 1200px) and (min-width: 801px) {
    .event2-gauge-svg.event2-gauge-asset {
        width: 360px;
    }
}


/* v7: supplied corrected SVG assets */
.event2-cowboy-picture {
    width: 142px;
    height: 140px;
    background: transparent;
}
.event2-cowboy-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    shape-rendering: geometricPrecision;
}
.event2-gauge {
    padding: 0 4px 0 0;
}
.event2-gauge-svg.event2-gauge-asset {
    width: 438px;
    max-width: 100%;
    height: auto;
    overflow: visible;
}
@media (max-width: 1200px) and (min-width: 801px) {
    .event2-gauge-svg.event2-gauge-asset { width: 384px; }
}

.event2-cowboy-picture .event2-cowboy-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.event2-side-tab.is-disabled,
.event2-side-tab.is-disabled:hover,
.event2-side-tab.is-disabled:focus-visible {
    cursor: default;
    color: #9c9687;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(125, 114, 88, 0.18);
}
.event2-side-tab.is-disabled .event2-side-tab-icon {
    opacity: 0.65;
}
.nav-link[aria-disabled="true"] {
    cursor: default;
}

/* Final QA polish: keep event content inside the viewport without changing SVG artwork. */
.event2-content,
.event2-hero,
.event2-hero-text,
.event2-dashboard,
.event2-card,
.event2-promo-grid,
.event2-promo,
.event2-table-card,
.event2-table-head,
.event2-table-wrap {
    min-width: 0;
    max-width: 100%;
}

.event2-hero,
.event2-dashboard,
.event2-promo-grid,
.event2-table-card,
.event2-table-wrap {
    width: 100%;
}

.event2-description {
    max-width: 100%;
}

.event2-stats,
.event2-report-numbers {
    flex-wrap: wrap;
}

.event2-table-card {
    overflow: hidden;
}

.event2-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 801px) {
    .event2-page {
        width: min(calc(100% - 42px), 1858px);
    }

    .event2-content {
        overflow: hidden;
    }

    .event2-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 435px);
    }

    .event2-dashboard {
        grid-template-columns: minmax(0, 1.05fr) minmax(230px, .82fr) minmax(0, 1.2fr);
    }

    .event2-table-head {
        flex-wrap: wrap;
    }

    .event2-search-tools {
        flex: 0 1 auto;
    }
}

@media (max-width: 1200px) and (min-width: 801px) {
    .event2-hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 384px);
    }
}

@media (max-width: 800px) {
    .event2-page {
        overflow: hidden;
    }

    .event2-content,
    .event2-hero,
    .event2-dashboard,
    .event2-promo-grid,
    .event2-table-card {
        width: 100%;
    }

    .event2-gauge {
        display: none !important;
    }

    .event2-dashboard {
        grid-template-columns: 1fr;
    }

    .event2-search-tools {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .event2-account-filter {
        min-width: 0;
        justify-content: flex-end;
    }

    .event2-search {
        min-width: 0;
    }

    .event2-mini-chart,
    .event2-line-chart {
        overflow: hidden;
    }

    .event2-mini-chart svg,
    .event2-line-chart svg {
        width: 100%;
        height: 100%;
    }

    .event2-data-table {
        min-width: 760px;
    }
}

@media (max-width: 489px) {
    .event2-table-card h2 {
        overflow-wrap: anywhere;
    }
}


/* V10 final layout fix: desktop statistics and dashboard cards must keep the Figma row layout. */
@media (min-width: 801px) {
    .event2-stats {
        flex-wrap: nowrap !important;
        gap: clamp(18px, 2.15vw, 34px);
    }

    .event2-stat {
        flex: 0 1 auto;
    }

    .event2-report-numbers {
        flex-wrap: nowrap !important;
        gap: clamp(24px, 2vw, 34px);
        align-items: flex-start;
    }

    .event2-report-numbers > div {
        grid-template-columns: 64px auto;
        column-gap: 16px;
        min-width: 0;
        flex: 1 1 0;
    }

    .event2-outline-icon {
        width: 64px;
        height: 58px;
    }

    .event2-report-numbers span:last-child {
        width: min(118px, 100%);
    }
}

@media (max-width: 800px) {
    .event2-stats,
    .event2-report-numbers {
        flex-wrap: wrap;
    }
}


/* v11: компактное верхнее меню на мобильных/планшетах без горизонтальной прокрутки */
.event2-mobile-menu-toggle {
    display: none;
}

@media (max-width: 800px) {
    .topbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        height: 46px;
        min-height: 46px;
        padding: 0 10px;
        overflow: visible;
        justify-content: flex-start;
    }

    .event2-mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        height: 38px;
        border: 0;
        border-radius: 7px;
        background: rgba(255, 226, 80, 0.55);
        color: #ff0000;
        padding: 0 12px;
        font-family: "Roboto", Arial, sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 1;
        text-transform: uppercase;
        cursor: pointer;
        box-sizing: border-box;
    }

    .event2-mobile-menu-icon {
        width: 23px;
        height: 18px;
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 0 0 23px;
    }

    .event2-mobile-menu-icon i {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
    }

    .event2-mobile-menu-text {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar .main-nav {
        position: absolute;
        top: calc(100% + 4px);
        left: 8px;
        right: 8px;
        display: none;
        height: auto;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        margin: 0;
        padding: 6px;
        border: 1px solid rgba(98, 86, 14, 0.22);
        border-radius: 10px;
        background: #fff8d7;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        box-sizing: border-box;
    }

    .topbar.is-mobile-menu-open .main-nav {
        display: flex;
    }

    .topbar .main-nav .nav-link {
        width: 100%;
        height: 42px;
        min-height: 42px;
        padding: 0 12px;
        border-radius: 7px;
        box-sizing: border-box;
        color: rgba(98, 86, 14, 0.78);
        background: transparent;
        justify-content: flex-start;
        gap: 10px;
        font-size: 14px;
        line-height: 1.2;
        overflow: visible;
    }

    .topbar .main-nav .nav-link.active,
    .topbar .main-nav .nav-link:hover,
    .topbar .main-nav .nav-link:focus-visible {
        color: #ff0000;
        background: rgba(255, 223, 59, 0.55);
    }

    .topbar .main-nav .nav-link > svg {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px;
    }

    .topbar .main-nav .nav-link .nav-text {
        width: auto !important;
        height: auto;
        min-width: 0;
        flex: 1 1 auto;
        overflow: visible;
        white-space: normal;
        font-size: 14px;
        line-height: 1.2;
    }

    .topbar .main-nav .nav-link .nav-text .svg-label {
        width: auto !important;
        height: auto !important;
        display: inline-block;
    }

    .topbar .main-nav .nav-link .nav-text .svg-label svg,
    .topbar .main-nav .nav-link .nav-text .svg-label text {
        display: none !important;
    }
}


/* v12: текстовые подписи в раскрытом мобильном меню */
.event2-mobile-nav-label {
    display: none;
}

@media (max-width: 800px) {
    .topbar .main-nav .nav-link {
        min-height: 46px;
    }

    .topbar .main-nav .nav-link .event2-mobile-nav-label {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        color: currentColor;
        font-family: "Roboto", Arial, sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.2;
        letter-spacing: 0.01em;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left;
    }
}


/* v13: заказчик попросил не добавлять верхнюю шапку; фиксируем desktop как статический макет. */
@media (min-width: 801px) {
    body {
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    #zoomFrame {
        width: max-content !important;
        min-width: 100% !important;
        overflow: visible !important;
        background: #9ea5af !important;
    }

    .event2-page {
        width: calc(100vw - 42px) !important;
        min-width: 1600px !important;
        max-width: none !important;
        min-height: calc(100vh - 58px) !important;
        margin: 28px 21px 30px !important;
        display: grid !important;
        grid-template-columns: 250px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 18px !important;
        border-radius: 16px !important;
    }

    .event2-sidebar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: auto !important;
        margin-bottom: 0 !important;
    }

    .event2-side-tabs {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .event2-side-tab {
        min-height: 66px !important;
        border-radius: 8px !important;
    }

    .event2-side-tab span:last-child {
        font-size: 20px !important;
    }

    .event2-side-tab-icon {
        width: 22px !important;
        height: 22px !important;
    }

    .event2-sidebar-separator {
        display: block !important;
        margin: 55px 0 34px !important;
    }

    .event2-cowboy,
    .event2-exit {
        display: flex !important;
    }

    .event2-content {
        display: grid !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .event2-hero {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 435px !important;
        min-height: 344px !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }

    .event2-gauge {
        display: flex !important;
    }

    .event2-dashboard {
        display: grid !important;
        grid-template-columns: minmax(0, 1.05fr) minmax(230px, .82fr) minmax(0, 1.2fr) !important;
        gap: 8px !important;
    }

    .event2-line-card {
        grid-column: auto !important;
    }

    .event2-bars-card {
        display: block !important;
    }

    .event2-promo-grid {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .event2-table-head {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .event2-search-tools {
        display: flex !important;
        flex: 0 0 auto !important;
    }

    .event2-table-wrap {
        overflow-x: auto !important;
    }
}


/* v17: правки по замечаниям покупателя */
.event2-cowboy-img {
    display: block !important;
    width: 100%;
    height: 100%;
}
.event2-cowboy:hover .event2-cowboy-picture,
.event2-cowboy:focus-visible .event2-cowboy-picture {
    filter: none !important;
}
.event2-search {
    display: block;
}
.event2-search > svg:first-child {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 1;
    margin-left: 0 !important;
    transform: translateY(-50%);
    pointer-events: none;
}
.event2-search input {
    position: relative;
    z-index: 2;
    padding-left: 54px;
}
.event2-search:focus-within > svg:first-child {
    opacity: 0;
}
.event2-search:focus-within input {
    padding-left: 18px;
}
.event2-search:focus-within input::placeholder {
    color: transparent;
}
.event2-popup-bottom-spacer {
    width: 1px;
    height: 0;
    pointer-events: none;
}


/* v17: статический desktop без сужения при Ctrl +/- и Windows scale.
   Ширина рабочего полотна пересчитывается JS как physical viewport width,
   а CSS zoom компенсирует масштаб браузера/ОС. */
@media (min-width: 801px) {
    html,
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: #9ea5af !important;
    }
    #zoomFrame {
        width: var(--event2-static-layout-width, 100vw) !important;
        min-width: var(--event2-static-layout-width, 100vw) !important;
        max-width: none !important;
        transform: none !important;
        transform-origin: 0 0 !important;
        zoom: var(--event2-static-inverse-zoom, 1) !important;
        overflow: visible !important;
        background: #9ea5af !important;
    }
    .event2-page {
        width: calc(var(--event2-static-layout-width, 100vw) - 42px) !important;
        min-width: 1280px !important;
        max-width: none !important;
    }
}

/* v17: список счетов раскрывается полностью, без внутренней синей прокрутки. */
.event2-content,
.event2-table-card,
.event2-table-head,
.event2-search-tools,
.event2-account-filter {
    overflow: visible !important;
}
.event2-account-popup {
    overflow: visible !important;
    max-height: none !important;
}
.event2-account-list-wrap {
    padding-right: 0 !important;
    overflow: visible !important;
}
.event2-account-list {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}
.event2-scroll-btn {
    display: none !important;
}
.event2-popup-bottom-spacer {
    display: block;
    flex: 0 0 auto;
    width: 1px;
    height: 0;
    min-height: 0;
    pointer-events: none;
}
