/* assetManagement.css - Professional Financial SaaS Version */

/* ===== MAIN WRAPPER ===== */
.asset-management-wrapper {
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;

    max-width: 1200px; /* Maximum width for readability */
    margin: 0 auto; /* Center the content */}

/* ===== MODULE WARNING ===== */
.asset-management-wrapper .module-warning {
    background-color: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.asset-management-wrapper .module-warning ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
    margin-bottom: 0;
}

/* ===== METRICS GRID ===== */
.asset-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ===== METRIC CARDS ===== */
.metric-card-am {
    background-color: #FFFFFF;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.metric-card-am:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.metric-card-am.metric-placeholder-am {
    background-color: #f9fafb;
    text-align: center;
    justify-content: center;
    color: #9ca3af;
}

/* ===== METRIC CARD HEADER ===== */
.metric-card-am-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.metric-card-am-header h4 {
    margin: 0;
    font-size: 1.125rem;
    color: #1f2937;
    font-weight: 500;
}

/* ===== METRIC VALUE ===== */
.metric-value-am {
    font-size: 1.75rem;
    font-weight: 400;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    font-variant-numeric: tabular-nums;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.75rem;
}

/* ===== METRIC INTERPRETATION ===== */
.metric-interpretation-am {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    flex-grow: 1;
}

.metric-interpretation-am strong {
    color: #1f2937;
    font-weight: 500;
}

/* ===== UNDERLYING FIGURES ===== */
.underlying-figures-am {
    margin-top: 1.25rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.underlying-figures-am h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
    color: #1f2937;
    font-weight: 500;
}

/* ===== DATA TABLE ===== */
.data-table-am {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.data-table-am th,
.data-table-am td {
    padding: 0.625rem 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.data-table-am th {
    background-color: #f3f4f6;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.data-table-am td:last-child {
    text-align: right;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    color: #1f2937;
}

.data-table-am .subheader-am {
    font-weight: 500;
    background-color: #f9fafb;
    color: #3b82f6;
    text-align: center !important;
}

/* ===== PROMPT PILLS ===== */
.prompt-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.prompt-pill {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background-color: #FFFFFF;
    color: #1f2937;
    border-radius: 1.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.prompt-pill:hover {
    border-color: #3b82f6;
    background-color: #f9fafb;
}

.prompt-pill.selected {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .asset-management-wrapper {
        padding: 1rem;
    }

    .asset-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .metric-card-am {
        padding: 1rem;
    }

    .metric-value-am {
        font-size: 1.5rem;
    }

    .data-table-am {
        font-size: 0.8125rem;
    }

    .data-table-am th,
    .data-table-am td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .asset-management-wrapper {
        padding: 0.75rem;
    }

    .metric-card-am-header h4 {
        font-size: 1rem;
    }

    .metric-value-am {
        font-size: 1.375rem;
    }

    .prompt-pills-container {
        flex-direction: column;
    }

    .prompt-pill {
        text-align: center;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .asset-management-wrapper {
        border: 1px solid #d1d5db;
    }

    .metric-card-am {
        page-break-inside: avoid;
        border: 1px solid #d1d5db;
    }

    .prompt-pills-container {
        display: none;
    }
}
