/* Rounded button background and shadow */
.qh-typ-qhmibutton .background,
.qh-typ-qhmibutton .shadow {
    rx: 12px;
    ry: 12px;
}

/* Main button colour */
.qh-typ-qhmibutton .background {
    fill: #1769aa;
}

/* Button text */
.qh-typ-qhmibutton text {
    fill: #ffffff;
    font-weight: 600;
}

/* ============================================================
   SULPHUR DOSING CHARTS
   Shared styling for Today / Yesterday / Week / Month / Year
   ============================================================ */


/* ------------------------------------------------------------
   Main chart card
   ------------------------------------------------------------ */

.sd-combo-card {
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e5e9ef;
    border-radius: 16px;

    padding: 20px 22px 16px 22px;

    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Arial,
        sans-serif;

    overflow: hidden;

    position: relative;
}


/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.sd-combo-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 6px;
}


.sd-combo-title {
    color: #1f2937;

    font-size: 22px;
    font-weight: 600;

    line-height: 1.2;
}


.sd-combo-subtitle {
    color: #7b8794;

    font-size: 13px;

    margin-top: 4px;
}


/* ------------------------------------------------------------
   Legend
   ------------------------------------------------------------ */

.sd-combo-legend {
    display: flex;

    align-items: center;

    gap: 18px;

    padding-top: 3px;

    color: #647181;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}


.sd-legend-item {
    display: flex;

    align-items: center;

    gap: 7px;
}


.sd-legend-bar {
    width: 12px;
    height: 12px;

    background: #4f86b5;

    border-radius: 3px;
}


.sd-legend-line {
    width: 20px;
    height: 3px;

    background: #d97706;

    border-radius: 2px;
}


/* ------------------------------------------------------------
   Chart container
   ------------------------------------------------------------ */

.sd-combo-container {
    width: 100%;

    height: calc(100% - 55px);

    min-height: 280px;

    position: relative;
}


.sd-combo-container svg {
    display: block;

    width: 100%;
    height: 100%;
}


/* ------------------------------------------------------------
   SVG grid and axes
   ------------------------------------------------------------ */

.sd-chart-grid {
    stroke: #e9edf2;
    stroke-width: 1;
}


.sd-chart-axis {
    stroke: #ccd5df;
    stroke-width: 1;
}


.sd-chart-axis-text {
    fill: #7b8794;

    font-size: 12px;
}


.sd-chart-axis-title {
    fill: #7b8794;

    font-size: 12px;
    font-weight: 500;
}


.sd-chart-time-text {
    fill: #687585;

    font-size: 11px;
    font-weight: 500;
}


/* ------------------------------------------------------------
   Batch bars
   ------------------------------------------------------------ */

.sd-chart-bar {
    fill: #4f86b5;

    opacity: 0.92;

    transition: opacity 0.15s ease;
}


.sd-chart-bar:hover {
    opacity: 1;
}


/* ------------------------------------------------------------
   Cumulative sulphur line
   ------------------------------------------------------------ */

.sd-chart-line {
    fill: none;

    stroke: #d97706;

    stroke-width: 3;

    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}


.sd-chart-point {
    fill: #d97706;

    stroke: #ffffff;
    stroke-width: 2;

    pointer-events: none;
}


.sd-chart-line-value {
    fill: #8a5206;

    font-size: 11px;
    font-weight: 600;

    pointer-events: none;
}


/* ------------------------------------------------------------
   Shared tooltip
   ------------------------------------------------------------ */

.sd-chart-tooltip {
    display: none;

    position: absolute;

    pointer-events: none;

    z-index: 50;

    background: #26323f;
    color: #ffffff;

    padding: 9px 11px;

    border-radius: 8px;

    font-size: 12px;
    line-height: 1.5;

    box-shadow:
        0 5px 16px
        rgba(0, 0, 0, 0.18);

    white-space: nowrap;
}


.sd-tooltip-time {
    font-weight: 700;

    margin-bottom: 3px;
}


.sd-tooltip-muted {
    color: #c9d2dc;
}