.card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 12px;
    min-width: 0;
}

.card-wrapper.scrollable {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
}

.card {
    display: flex;
    flex-direction: column;

    background-color: var(--sectionBackground);
    border-radius: 24px;
    corner-shape: squircle;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -10px 10px rgba(255, 255, 255, 0.05),
        0 6px 30px rgba(0, 0, 0, 0.05);
}

.card.warning {
    display: flex;
    flex-direction: column;

     background-color:
        color-mix(in srgb, var(--primaryWarning) 10%, transparent);
    border-radius: 24px;
    corner-shape: squircle;

    border: 1px solid var(--primaryWarning);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -10px 10px rgba(255, 255, 255, -0.95),
        0 6px 30px rgba(0, 0, 0, 0.0)
}

#onboarding.card {
    margin-bottom: 12px;
    background-color: var(--onboardingCardBackground);
    color: var(--primaryTextAlt);
}

#onboarding.card .card-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    padding: 24px 0px;
    margin: 0px 24px;

    border-top: 1px dashed var(--secondaryBorder);
}

#onboarding.card .card-row svg {
    width: 18px;
    height: 18px;
}

#onboarding.card .card-row .icon {
    display: none;
}

#onboarding.card .card-row .icon.is-visible {
    display: flex;
}

#onboardingIncompleteApps.action-wrapper, #onboardingIncompleteSubscription.action-wrapper, #onboardingIncompleteLocation.action-wrapper {
    display: none;
}

#onboardingIncompleteApps.action-wrapper.is-visible, #onboardingIncompleteSubscription.action-wrapper.is-visible, #onboardingIncompleteLocation.action-wrapper.is-visible {
    display: flex;
}

#cardMetricsSummary.card {
    padding: 12px 0px 0px 0px;
}

#cardSalesByPlatform.card {
    grid-column: 1 / -1;
}

#homeView-reportsOverview .card-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(308px, calc((100% - 12px) / 2))), 1fr));
}

.card .label {
    font-weight: 700;
    font-size: 14px;
    color: var(--secondaryText);
    padding: 24px 24px 6px 24px;
    text-transform: uppercase
}

#cardMetricsSummary.card .label {
    font-size: 12px;
    padding: 6px 24px 4px 24px;
}

.card .title-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 0px 24px 12px 24px;
    min-width: 0;
}

#onboarding.card .title-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

    padding: 0px;
    margin: 24px
}

#cardMetricsSummary.card .title-wrapper {
    margin: 0px 24px 0px 24px;
    padding: 0px 0px 6px 0px;
    border-bottom: 1px dashed var(--primaryBorder);
}

.card .title-wrapper .title {
    font-size: 32px;
    font-weight: 900;
    min-width: 0;
    overflow-wrap: anywhere;
}

#onboarding.card .title-wrapper .title {
    font-size: 24px;
    font-weight: 900;
}

#onboarding.card .title-wrapper svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;

    color: var(--primaryWarning);
}

#cardMetricsSummary.card .title-wrapper .title {
    font-size: 24px;
    font-weight: 700;
}

.card .title-wrapper .pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;

    padding: 7px 15px;
    border-radius: 99px;

    font-size: 12px;

    background-color: var(--bodyBackground);
    color: var(--secondaryText);
}

.card .title-wrapper .pill.positive {
    background-color: var(--primaryConfirm);
    color: var(--tintConfirm);
}

.card .title-wrapper .pill.negative {
    background-color: var(--primaryWarning);
    color: var(--tintWarning);
}

.card .title-wrapper .pill svg {
    width: 8px;
    height: 8px;
}

.card .title-wrapper .pill .positive {
    display: none;
    color: currentColor;
}

.card .title-wrapper .pill .negative {
    display: none;
    color: currentColor;
}

.card .title-wrapper .pill .positive.is-visible {
    display: flex;
}

.card .title-wrapper .pill .negative.is-visible {
    display: flex;
}

.chart-wrapper {
    height: 100%;
    margin: 0px 24px 0px 24px;
    padding: 12px;
    background-color: var(--bodyBackground);
}

.legend-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    flex-wrap: wrap;

    column-gap: 24px;
    row-gap: 12px;
    padding: 12px 24px 24px 24px;
}

.legend-wrapper .legend {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 12px;
    font-size: 14px;
}

.legend-wrapper .icon {
    width: 6px;
    height: 6px;
    border-radius: 99px;

    background-color: var(--primaryAccent);
}

.metrics-row {
    padding: 6px 0px 0px 0px;
}
