/* Styles for the {CoDicts} Investor Summary shortcode, matching the Daily Spending summary style */
.investor-view-as-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #eef2fb;
    border: 1px solid #c9d6f2;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    font-family: sans-serif;
    flex-wrap: wrap;
}

.investor-view-as-bar label {
    font-size: 14px;
    font-weight: bold;
    color: #1b459d;
    text-transform: uppercase;
    white-space: nowrap;
}

.investor-view-as-bar select {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #c9d6f2;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333;
}

.investor-summary-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    font-family: sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.investor-summary-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
    color: #333;
}

.investor-summary-container .summary-items-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.investor-summary-container .summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    min-width: 180px;
}

.investor-summary-container .summary-label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
}

.investor-summary-container .summary-amount {
    font-size: 24px;
    font-weight: bold;
    word-break: break-word;
}

.investor-summary-container .grand-total-amount {
    font-size: 28px;
}

.investor-summary-container .positive-amount {
    color: #4caf50;
}

.investor-summary-container .negative-amount {
    color: #d32f2f;
}

.investor-summary-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.investor-summary-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}

.investor-summary-table th,
.investor-summary-table td {
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    text-align: left;
    white-space: nowrap;
}

.investor-summary-table th {
    background-color: #1b459d;
    color: #ffffff;
    font-weight: bold;
}

.investor-summary-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.investor-summary-table a {
    color: #1b459d;
    font-weight: bold;
    text-decoration: none;
}

.investor-summary-table a:hover {
    text-decoration: underline;
}

/* Mobile: stack the stat tiles, shrink type, let the table scroll horizontally */
@media (max-width: 600px) {
    .investor-view-as-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
    }

    .investor-view-as-bar select {
        width: 100%;
    }

    .investor-summary-container {
        padding: 16px;
        margin: 12px 0;
        border-radius: 6px;
    }

    .investor-summary-container h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .investor-summary-container .summary-items-wrapper {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 18px;
    }

    .investor-summary-container .summary-item {
        width: 100%;
        padding: 10px;
    }

    .investor-summary-container .summary-amount {
        font-size: 20px;
    }

    .investor-summary-container .grand-total-amount {
        font-size: 22px;
    }

    .investor-summary-table th,
    .investor-summary-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
}