/* Container Fixes */
.sbt-reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Controls Styling */
.sbt-report-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* Dropdown & Input Styling */
.sbt-report-dropdown,
.sbt-date-input, 
select.sbt-date-input,
#sbt-report-month {
    background-color: #ffffff !important;
    border: 2px solid #ff8658 !important; /* Brand Orange */
    color: #333333 !important;
    border-radius: 4px !important;
    padding: 10px 12px !important;
    height: auto !important;
    min-height: 45px !important;
    line-height: 1.5 !important;
    font-size: 16px !important;
    
    /* CRITICAL: Forces Calendar Picker */
    appearance: auto !important;
    -webkit-appearance: listbox !important;
    cursor: pointer;
}

/* Button Styling */
.sbt-generate-btn {
    background-color: #8bccbf; /* Brand Mint */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.sbt-generate-btn:hover {
    background-color: #7ab8a8;
}

/* Chart Container - CRITICAL FIX FOR CRASH */
.sbt-chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    
    /* Force fixed height */
    height: 400px !important;
    min-height: 400px !important;
    
    width: 100% !important;
    max-width: 600px;
    margin: 0 auto 30px;
}

canvas#sbt-expense-chart, 
canvas#sbt-income-chart {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
}

/* Tables */
.sbt-report-table { width: 100%; border-collapse: collapse; }
.sbt-report-table td { padding: 8px 0; border-bottom: 1px solid #eee; }
.sbt-negative { color: #dc3545; font-weight: bold; }