/* Portfolio Card Styling */

/* Override the default flex row layout so the card stacks vertically */
.wlsm-student-dashboard .wlsm-trio > .wlsm-stats-card:has(.wlsm-portfolio-label) {
    flex-direction: column;
    align-items: stretch;
}

/* Ensure stats-headerr and stats-content take full width */
.wlsm-student-dashboard .wlsm-stats-card .wlsm-stats-headerr,
.wlsm-student-dashboard .wlsm-stats-card .wlsm-stats-content {
    width: 100%;
}

/* Table full width */
.wlsm-student-dashboard .wlsm-stats-card .wlsm-stats-content .wlsm-table-compact {
    width: 100% !important;
    border-collapse: collapse;
    table-layout: fixed;
}

.wlsm-student-dashboard .wlsm-stats-card .wlsm-stats-content .wlsm-table-compact td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-light);
}

.wlsm-student-dashboard .wlsm-stats-card .wlsm-stats-content .wlsm-table-compact tr:last-child td {
    border-bottom: none;
}

.wlsm-portfolio-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-align: left;
}

.wlsm-portfolio-value {
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}

/* Marquee Ticker Styling */
.wlsm-portfolio-marquee-container {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 20px;
    position: relative;
    height: 45px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wlsm-portfolio-marquee-label {
    background: #f8f9fa;
    color: #dc3545; /* text-danger color */
    padding: 0 15px;
    font-weight: 700;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 10;
    border-right: 2px solid #eee;
    font-size: 0.95rem;
}

.wlsm-portfolio-marquee-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.wlsm-portfolio-marquee-content {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    animation: wlsm-marquee 20s linear infinite;
    padding-left: 100%;
    color: #444;
    font-weight: 500;
}

@keyframes wlsm-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.wlsm-portfolio-marquee-container:hover .wlsm-portfolio-marquee-content {
    animation-play-state: paused;
}

.wlsm-portfolio-marquee-container.wlsm-merit-point-display-container {
    margin-top: 0px;
}

.wlsm-portfolio-marquee-label.wlsm-merit-point-display-label {
    color: #007bff;
}

.wlsm-merit-point-display-value {
    padding-left: 25px;
    font-weight: 800;
    font-size: 1.3rem;
    color: #007bff;
}

.wlsm-merit-point-formula-text {
    font-size: 0.72rem;
    font-weight: normal;
    color: #888;
    margin-left: 6px;
    text-transform: none;
}
