.typo3-dashboard-grid-item[data-identifier="hellobaseProductVisitors"] {
    grid-column: 1 / -1;
}

.dashboard-grid {
    grid-auto-rows: minmax(260px, auto);
}

.hellobase-dashboard-card {
    background: var(--typo3-dashboard-card-bg, var(--module-bg));
    color: var(--module-color);
    border-radius: var(--typo3-component-border-radius, 12px);
    border: 1px solid color-mix(in srgb, var(--module-border-color, var(--module-color)), transparent 70%);
    box-shadow: var(--typo3-component-box-shadow, 0 18px 30px rgba(15, 23, 42, .08));
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.hellobase-dashboard-card__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.hellobase-dashboard-card__header-text {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.hellobase-dashboard-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.hellobase-dashboard-card__subtitle {
    margin: 0;
    font-size: .9rem;
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 55%));
    max-width: 560px;
}

.hellobase-dashboard-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 55%));
    justify-content: flex-end;
}

.hellobase-dashboard-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
}

.hellobase-dashboard-card__meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--module-color) 40%, var(--module-bg) 60%);
}

.hellobase-dashboard-card__section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hellobase-dashboard-card__section-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.hellobase-table-wrapper {
    border-radius: var(--typo3-component-border-radius, 12px);
    border: 1px solid color-mix(in srgb, var(--module-border-color, var(--module-color)), transparent 75%);
    overflow: hidden;
}

.hellobase-table-wrapper--scroll {
    max-height: 540px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--module-color) 35%, var(--module-bg) 65%) var(--module-bg);
}

.hellobase-table-wrapper--scroll::-webkit-scrollbar {
    width: 8px;
}

.hellobase-table-wrapper--scroll::-webkit-scrollbar-track {
    background: var(--module-bg);
}

.hellobase-table-wrapper--scroll::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--module-color) 35%, var(--module-bg) 65%);
    border-radius: 999px;
}

.hellobase-table-wrapper--highlight {
    background: color-mix(in srgb, var(--module-bg), var(--module-color) 6%);
}

.hellobase-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.hellobase-table thead th {
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .72rem;
    font-weight: 600;
    padding: .65rem .9rem;
    background: color-mix(in srgb, var(--module-bg), var(--module-color) 10%);
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 65%));
    border-bottom: 1px solid color-mix(in srgb, var(--module-border-color, var(--module-color)), transparent 70%);
}

.hellobase-table tbody td {
    padding: .85rem .9rem;
    vertical-align: middle;
    border-bottom: 1px solid color-mix(in srgb, var(--module-border-color, var(--module-color)), transparent 78%);
}

.hellobase-table tbody tr:last-child td {
    border-bottom: none;
}

.hellobase-table tbody tr:hover td {
    background: color-mix(in srgb, var(--module-bg), var(--module-color) 6%);
}

.text-end {
    text-align: right;
}

.hellobase-pagination {
    display: flex;
    gap: .4rem;
    justify-content: flex-end;
}

.hellobase-period-switch {
    display: inline-flex;
    gap: .4rem;
    padding: .25rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--module-color) 6%, var(--module-bg) 94%);
    border: 1px solid color-mix(in srgb, var(--module-border-color, var(--module-color)), transparent 75%);
}

.hellobase-period-switch__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .3rem .9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: inherit;
    border: 1px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.hellobase-period-switch__link:hover,
.hellobase-period-switch__link:focus {
    background: color-mix(in srgb, var(--module-bg), var(--module-color) 12%);
}

.hellobase-period-switch__link.is-active {
    background: color-mix(in srgb, var(--module-color) 18%, var(--module-bg) 82%);
    color: var(--module-bg);
    border-color: transparent;
}

.hellobase-period-switch__link[aria-current="true"] {
    cursor: default;
}

.hellobase-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .65rem;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--module-border-color, var(--module-color)), transparent 65%);
    color: inherit;
    text-decoration: none;
    background: var(--module-bg);
    font-size: .85rem;
}

.hellobase-pagination__link:hover,
.hellobase-pagination__link:focus {
    background: color-mix(in srgb, var(--module-bg), var(--module-color) 8%);
}

.hellobase-pagination__link.is-active {
    background: color-mix(in srgb, var(--module-color) 16%, var(--module-bg) 84%);
    color: var(--module-bg);
    border-color: transparent;
}

.hellobase-empty-state {
    padding: 1.5rem;
    text-align: center;
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 60%));
}

.hellobase-empty-state__headline {
    font-weight: 600;
    margin-bottom: .35rem;
}

.hellobase-empty-state__hint {
    font-size: .85rem;
    margin: 0 auto;
    max-width: 320px;
}

.hellobase-dashboard-link {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    color: inherit;
    text-decoration: none;
}

.hellobase-dashboard-link:hover,
.hellobase-dashboard-link:focus {
    color: color-mix(in srgb, var(--module-color), var(--module-bg) 15%);
    text-decoration: underline;
}

.hellobase-dashboard-link--static {
    text-decoration: none;
}

.hellobase-dashboard-link__hint {
    font-size: .78rem;
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 60%));
}

.hellobase-visit-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .3rem .65rem;
    font-size: .76rem;
    background: color-mix(in srgb, var(--module-color) 18%, var(--module-bg) 82%);
    color: color-mix(in srgb, var(--module-bg) 10%, var(--module-color) 90%);
    font-weight: 600;
    letter-spacing: .02em;
}

.hellobase-visit-text,
.hellobase-visit-link {
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
    display: inline-block;
}

.hellobase-visit-link {
    color: inherit;
}

.hellobase-visit-link:hover,
.hellobase-visit-link:focus {
    color: color-mix(in srgb, var(--module-color), var(--module-bg) 20%);
    text-decoration: underline;
}

.hellobase-metric-card__label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 60%));
    font-weight: 600;
}

.hellobase-metric-card__value {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--module-color);
}

.hellobase-metric-card__suffix {
    font-size: 1rem;
    font-weight: 500;
    margin-left: .2rem;
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 50%));
}

.hellobase-dashboard-card__hint {
    font-size: .82rem;
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 60%));
    margin: 0;
}

.hellobase-dashboard-card--metric {
    min-height: 260px;
    gap: 1rem;
}

.hellobase-dashboard-card--metric .hellobase-dashboard-card__section {
    gap: .75rem;
}

.hellobase-dashboard-card--chart .hellobase-chart {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--module-bg), var(--module-color) 6%);
    overflow: hidden;
}

.hellobase-chart svg {
    width: 100%;
    height: 100%;
    stroke: color-mix(in srgb, var(--module-color), var(--module-bg) 10%);
    fill: none;
    stroke-width: 2.5;
}

.hellobase-chart__line {
    stroke: color-mix(in srgb, var(--module-color) 75%, var(--module-bg) 25%);
    fill: none;
}

.hellobase-chart__stats {
    display: flex;
    gap: 1.5rem;
    font-size: .85rem;
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 55%));
}

.hellobase-chart__stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--module-color);
}

.hellobase-chart__axis {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 65%));
}

.hellobase-dashboard-card--list .hellobase-referrer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.hellobase-referrer-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.hellobase-referrer-list__item--empty {
    color: var(--module-muted-color, color-mix(in srgb, var(--module-color), var(--module-bg) 60%));
    justify-content: center;
}

.hellobase-referrer-list__host {
    font-weight: 600;
    color: var(--module-color);
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hellobase-referrer-list__meta {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.hellobase-referrer-list__visits {
    font-weight: 600;
    font-size: 1.1rem;
}

.hellobase-referrer-list__link {
    font-size: .78rem;
    color: color-mix(in srgb, var(--module-color), var(--module-bg) 10%);
    text-decoration: none;
}

.hellobase-referrer-list__link:hover,
.hellobase-referrer-list__link:focus {
    text-decoration: underline;
}
