* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-start: #667eea;
    --bg-end: #764ba2;
    --surface: #ffffff;
    --surface-muted: #f6f7fb;
    --border: #e2e6f0;
    --text: #1f2430;
    --text-muted: #667085;
    --accent: #667eea;
    --accent-strong: #764ba2;
    --success: #1e9e62;
    --danger: #d14c63;
    --shadow: 0 24px 60px rgba(31, 36, 48, 0.16);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text);
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow);
}

header.dashboard-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.header-brand {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.header-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow:
        0 12px 30px rgba(102, 126, 234, 0.35),
        0 0 0 6px rgba(102, 126, 234, 0.12);
    object-fit: cover;
}

.header-text h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header-tagline {
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 6px;
}

.header-credit {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.header-hashtag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: #fff;
}

.header-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--text);
    border: 1px solid transparent;
    background: #fff;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: none;
    min-height: 38px;
    opacity: 0.8;
}

.social-link:hover {
    background: #f7f8fb;
    border-color: currentColor;
    transform: none;
    box-shadow: none;
    opacity: 0.95;
}

.social-logo {
    flex-shrink: 0;
    display: block;
    width: auto;
    max-width: 100%;
    height: 18px;
    object-fit: contain;
}

.social-logo-linkedin {
    height: 20px;
}

.social-logo-github {
    height: 17px;
}

.social-logo-tableau {
    height: 21px;
}

.social-link-linkedin {
    color: #5f6575;
    border-color: rgba(31, 36, 48, 0.14);
    background: #f7f8fb;
}

.social-link-linkedin:hover {
    background: #f7f8fb;
    border-color: rgba(31, 36, 48, 0.14);
}

.social-link-github {
    color: #5f6575;
    border-color: rgba(31, 36, 48, 0.14);
    background: #f7f8fb;
}

.social-link-github:hover {
    background: #f7f8fb;
    border-color: rgba(31, 36, 48, 0.14);
}

.social-link-tableau {
    color: #5f6575;
    border-color: rgba(31, 36, 48, 0.14);
    background: #f7f8fb;
}

.social-link-tableau:hover {
    background: #f7f8fb;
    border-color: rgba(31, 36, 48, 0.14);
}

/* Visual variants for header emphasis.
   Toggle in index.html body class:
   - social-style-subtle
   - social-style-balanced
   - social-style-minimal
*/
body.social-style-subtle .header-socials {
    gap: 8px;
}

body.social-style-subtle .social-link {
    padding: 6px 10px;
    min-height: 38px;
    border-radius: 8px;
    opacity: 0.8;
    box-shadow: none;
}

body.social-style-subtle .social-link:hover {
    opacity: 0.95;
    transform: none;
    box-shadow: none;
}

body.social-style-subtle .social-logo {
    height: 18px;
}

body.social-style-subtle .social-logo-linkedin {
    height: 20px;
}

body.social-style-subtle .social-logo-github {
    height: 17px;
}

body.social-style-subtle .social-logo-tableau {
    height: 21px;
}

body.social-style-subtle .social-link-linkedin,
body.social-style-subtle .social-link-github,
body.social-style-subtle .social-link-tableau {
    color: #5f6575;
    border-color: rgba(31, 36, 48, 0.14);
    background: #f7f8fb;
}

body.social-style-balanced .header-socials {
    gap: 10px;
}

body.social-style-balanced .social-link {
    padding: 8px 13px;
    min-height: 44px;
    border-radius: 9px;
    opacity: 0.92;
    box-shadow: 0 3px 10px rgba(31, 36, 48, 0.08);
}

body.social-style-balanced .social-link:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(31, 36, 48, 0.12);
}

body.social-style-balanced .social-logo {
    height: 21px;
}

body.social-style-balanced .social-logo-linkedin {
    height: 23px;
}

body.social-style-balanced .social-logo-github {
    height: 20px;
}

body.social-style-balanced .social-logo-tableau {
    height: 24px;
}

body.social-style-balanced .social-link-linkedin {
    color: #365f94;
    border-color: rgba(10, 102, 194, 0.2);
    background: rgba(10, 102, 194, 0.08);
}

body.social-style-balanced .social-link-github {
    color: #3f4650;
    border-color: rgba(36, 41, 47, 0.2);
    background: rgba(36, 41, 47, 0.08);
}

body.social-style-balanced .social-link-tableau {
    color: #3f6d93;
    border-color: rgba(31, 115, 183, 0.2);
    background: linear-gradient(135deg, rgba(31, 115, 183, 0.1) 0%, rgba(233, 118, 39, 0.09) 100%);
}

/* Minimal variant: logo-only links with no chip/circle treatment. */
body.social-style-minimal .header-socials {
    gap: 4px;
    margin-top: -2px;
}

body.social-style-minimal .header-credit {
    margin-bottom: 6px;
}

body.social-style-minimal .social-link {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 2px 3px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    filter: none;
}

body.social-style-minimal .social-link:hover {
    transform: translateY(-1px);
    box-shadow: none;
    opacity: 1;
    background: rgba(102, 126, 234, 0.06);
}

body.social-style-minimal .social-link:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.35);
    outline-offset: 2px;
}

body.social-style-minimal .social-logo,
body.social-style-minimal .social-logo-linkedin,
body.social-style-minimal .social-logo-github,
body.social-style-minimal .social-logo-tableau {
    height: 18px;
}

/* Compensate for different built-in canvas whitespace per logo file. */
body.social-style-minimal .social-logo-linkedin {
    transform: scale(0.95);
}

body.social-style-minimal .social-logo-github {
    transform: scale(1.25);
}

body.social-style-minimal .social-logo-tableau {
    transform: scale(1.0);
}

body.social-style-minimal .social-link-linkedin,
body.social-style-minimal .social-link-github,
body.social-style-minimal .social-link-tableau {
    color: inherit;
    border-color: transparent;
    background: transparent;
}

#last-updated {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.controls {
    margin-bottom: 32px;
    background: linear-gradient(180deg, #fbfbfe 0%, #f4f6fb 100%);
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group.full-width {
    grid-column: 1 / -1;
}

.filter-group > label {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.multi-select-wrapper {
    position: relative;
}

.multi-select-button,
input[type="text"],
.date-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    font-size: 0.98rem;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.multi-select-button {
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.multi-select-button:hover,
input[type="text"]:hover,
.date-input:hover {
    border-color: rgba(102, 126, 234, 0.65);
}

.multi-select-button:focus,
input[type="text"]:focus,
.date-input:focus,
.amount-input-chip input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.multi-select-button .arrow {
    margin-left: auto;
}

.multi-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(31, 36, 48, 0.14);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
}

.multi-select-dropdown.hidden {
    display: none;
}

.dropdown-header {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: #f8f9fd;
}

.btn-small,
.btn-reset,
.btn-secondary {
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-small {
    padding: 6px 12px;
    border: 1px solid var(--accent);
    background: var(--surface);
    color: var(--accent);
    font-size: 0.86rem;
}

.btn-small:hover,
.btn-reset:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-small:hover {
    background: var(--accent);
    color: #fff;
}

.checkbox-list {
    padding: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    gap: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.checkbox-item:hover {
    background: #f7f8fd;
}

.checkbox-item-unavailable {
    opacity: 0.45;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-help {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.amount-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.amount-range-values {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.amount-input-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: 48%;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f5f6fc;
    border: 1px solid #e5e8f5;
}

.amount-input-chip span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.amount-input-chip input {
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    padding: 0;
}

.amount-input-chip input:disabled {
    color: var(--text-muted);
}

.range-slider {
    position: relative;
    height: 28px;
}

.range-slider-track,
.range-slider-fill {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.range-slider-track {
    background: #d7dcef;
}

.range-slider-fill {
    background: linear-gradient(90deg, var(--bg-start) 0%, var(--bg-end) 100%);
}

.range-input {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.range-input::-moz-range-track {
    height: 6px;
    background: transparent;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.35);
    cursor: pointer;
    pointer-events: auto;
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.35);
    cursor: pointer;
    pointer-events: auto;
}

.range-input-min {
    z-index: 3;
}

.range-input-max {
    z-index: 4;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions-group {
    align-items: flex-start;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-reset,
.btn-secondary {
    padding: 12px 18px;
    font-size: 0.98rem;
    font-weight: 700;
}

.btn-reset {
    border: none;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.24);
}

.btn-secondary {
    border: 1px solid rgba(102, 126, 234, 0.26);
    background: #eef1ff;
    color: #4355c7;
}

#stats-cards {
    margin-bottom: 36px;
}

.stats-shell {
    display: grid;
    gap: 16px;
}

.stats-overview-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 22px 24px;
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.2);
}

.stats-overview-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.stats-overview-header h2,
.period-section-header h3 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.2;
}

.stats-caption {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.84);
    max-width: 780px;
}

.section-kicker {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.86;
    margin-bottom: 6px;
}

.stats-overview-pills,
.stats-overview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.overview-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.overview-metric-tile {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 100px;
}

.metric-icon {
    font-size: 1.4rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.metric-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.highlight-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.highlight-card {
    background: linear-gradient(135deg, #00d2a8 0%, #00e6b8 50%, #2affc8 100%);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 90px;
    color: #1a3a2a;
    box-shadow: 0 8px 24px rgba(0, 210, 168, 0.2);
}

.highlight-icon {
    font-size: 1.4rem;
}

.highlight-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
}

.highlight-label {
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0.85;
}

.highlight-sub {
    font-size: 0.82rem;
    opacity: 0.7;
}

.period-section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
}

.period-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.period-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(31, 36, 48, 0.08);
    width: calc(25% - 18px);
    min-width: 240px;
}

.period-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.period-card h4 {
    font-size: 1.18rem;
}

.period-range {
    font-size: 0.84rem;
    color: var(--text-muted);
    text-align: right;
}

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

.period-stat {
    padding: 14px;
    border-radius: 14px;
    background: #f5f7fd;
    border: 1px solid #e7ebf7;
}

.period-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.period-stat strong {
    font-size: 1.05rem;
}

.period-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.period-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #f0f3ff;
    color: #4a57a9;
}

.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.btn-csv-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-csv-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.35);
}

#deals-container h2 {
    color: var(--text);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.deals-subtitle {
    color: var(--text-muted);
    margin-top: 6px;
}

#deal-count {
    color: var(--accent);
}

.table-scroll-wrapper {
    overflow: auto;
    max-height: 70vh;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(31, 36, 48, 0.08);
}

table {
    width: 100%;
    min-width: 1400px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
}

thead {
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

thead th {
    background: inherit;
}

th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.92rem;
    vertical-align: top;
    white-space: nowrap;
}

th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

th.sortable:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sort-icon {
    font-size: 0.8rem;
    margin-left: 6px;
    opacity: 0.78;
}

td {
    padding: 15px 14px;
    border-bottom: 1px solid #edf0f7;
    vertical-align: top;
    font-size: 0.92rem;
    line-height: 1.45;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: #f8f9ff;
}

.nation-cell {
    min-width: 140px;
    white-space: nowrap;
}

.nation-flag {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 6px;
}

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #4758c6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.view-link:hover {
    color: #3343aa;
    text-decoration: underline;
}

.description-cell {
    min-width: 320px;
    color: #4f5a6a;
}

.investors-cell {
    min-width: 240px;
    color: #4f5a6a;
}

.amount-cell strong {
    color: var(--accent-strong);
}

.startup-name {
    color: var(--accent);
}

.cell-muted {
    color: var(--text-muted);
}

.text-link {
    color: #4758c6;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.text-link:hover {
    color: #3343aa;
}

.link-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.status-positive {
    background: rgba(30, 158, 98, 0.12);
    color: var(--success);
}

.status-negative {
    background: rgba(209, 76, 99, 0.12);
    color: var(--danger);
}

.status-neutral,
.status-tier {
    background: #edf1ff;
    color: #5563b5;
}

.loading,
.error,
.no-results {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.error {
    color: var(--danger);
}

.loading-inline {
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #f6f8fc;
    font-size: 1rem;
}

#dashboard-content.is-loading {
    opacity: 0.88;
}

footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .stats-overview-header {
        flex-direction: column;
    }

    .highlight-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 20px;
        border-radius: 18px;
    }

    .header-brand {
        flex-direction: column;
        text-align: center;
    }

    .avatar-img {
        width: 110px;
        height: 110px;
    }

    .header-socials {
        justify-content: center;
    }

    .filters,
    .period-grid,
    .overview-metric-grid,
    .highlight-cards-grid {
        grid-template-columns: 1fr;
    }

    .amount-range-values,
    .filter-actions,
    .date-range,
    .period-card-header,
    .deals-header {
        flex-direction: column;
        align-items: stretch;
    }

    .amount-input-chip {
        width: 100%;
    }

    .period-stat-grid {
        grid-template-columns: 1fr;
    }

    .period-card {
        width: 100%;
        min-width: 0;
    }

    table {
        min-width: 1100px;
    }
}
