/* ==========================
   Scope everything to this page
   ========================== */

/* was .dropdown – renamed so it doesn't hit Bootstrap's .dropdown */
#exceedance-root .exceedance-dropdown {
    margin: 20px 0;
    text-align: center;
}

/* Tabs container (no inline style on HTML) */
#exceedance-root .exceedance-tabs {
    border-bottom: none;
}

/* icon inside tabs */
#exceedance-root .nav-link-icon {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Day cell styles */
#exceedance-root .day-cell {
    height: 15px;
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-content: center;
    align-items: center;
}

/* Only affect the exceedance table */
#exceedance-root table.exceedance-table {
    width: 100%;
    table-layout: fixed;      /* Ensures fixed column layout */
    border-collapse: collapse;
}

/* Hover effect only on our day cells */
#exceedance-root .day-cell:hover {
    background-color: #e0e0e0;
}

/* Table cell alignment – scoped */
#exceedance-root table.exceedance-table th,
#exceedance-root table.exceedance-table td {
    text-align: center;        /* Center text horizontally */
    vertical-align: middle;    /* Center text vertically */
}

/* Column sizing – scoped */
#exceedance-root .day-column {
    width: 30px; /* Smaller width for the Day column */
}

#exceedance-root .month-column {
    width: calc((100% - 30px) / 12);
}

/* Badge showing exceedance count */
#exceedance-root .exceedance-badge {
    background-color: #b71c1c; /* darker red */;
    color: white;
    border-radius: 12px;
    padding: 2px 2px;
    font-size: 12px;
    min-width: 15px;
    text-align: center;
    font-weight:600;
}

/* 0 exceedance count */
#exceedance-root .zero-count {
    font-size: 12px;
    color: #555;
}

/* Chart container */
#exceedance-root #exceedanceChart {
    width: 100%;
    height: 70vh;
}

#exceedance-root .chart-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: auto;
}

/* Year dropdown + total text – optional, just for looks */
#exceedance-root .year-summary-row {
    gap: 20px;
}

#exceedance-root .year-select-label {
    font-weight: bold;
}

#exceedance-root .year-select {
    display: inline-block;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #f1f1f1;
    border: 2px solid #007bff;
}

#exceedance-root .total-exceedances-text {
    font-size: 1.1rem;
    font-weight: bold;
}

#exceedance-root .total-exceedances-number {
    color: #B00020;
}

