/* Statistics module stylesheet (plan 08: per-module CSS).
 * Holds the calculator-specific rules extracted from inline <style> blocks in
 * the Statistics module views. Loaded only on the pages that need it via the
 * layout's @stack('module-css') + each view's @push('module-css').
 *
 * Two views' rules were left INLINE instead of extracted here, same judgment
 * call as Construction's square-meter-calculator / Finance's
 * commission-calculator (generic selectors that would leak to/regress other
 * pages if made module-global):
 *   - accuracy-calculator: `input:disabled { ... }` is a generic element+
 *     pseudo-class selector that would grey out every disabled input on any
 *     Statistics page, not just its own.
 *   - degrees-of-freedom-calculator: `.n1,.n2,.v1,.v2,.c,.r,.k,.d1,.d2,.h,
 *     .three,.x { display:none }` uses single/double-letter class names that
 *     are reused as JS show/hide hooks by OTHER Statistics calculators
 *     (e.g. effect-size-calculator's `.h`, probability-density-function-
 *     calculator's `.three`) — merging this rule here would hide unrelated
 *     elements on those pages. */

/* p-value-calculator — result card */
.result-card {
    background: #ffffff;
    border-left: 5px solid #1670a7;
    border-radius: 10px;
    padding: 12px 15px;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#res_cont {
    padding: 14px 0px;
    width: 100%;
    margin: 0 auto;
}

#p_grater .error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #742a2a;
    padding: 25px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

#p_grater .success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    padding: 25px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* empirical-rule-calculator — Flotr2 chart legend stacking */
.flotr-legend {
    z-index: 1 !important;
}

/* covariance-calculator */
.no-wrap {
    white-space: nowrap;
}
.divide {
    display: inline-grid;
    vertical-align: middle;
    text-align: center;
    line-height: 1.5;
}
.divide span {
    font-size: 18px;
}
.divide span.upper {
    border-bottom: 1px solid #000;
    text-align: center;
}
.ansMethod {
    background: #ddd;
    border: none;
    border-radius: 5px;
    padding: 7px 15px;
    font-size: 16px;
    cursor: pointer;
}
.ansMethod.active {
    background: #1670A7;
    color: var(--white)
}
.dataTable table {
    border-collapse: collapse;
}
.dataTable table tr:first-child {
    background: #ddd;
}
.dataTable table th, .dataTable table td {
    width: fit-content;
    border: 1px solid #ddd;
    font-size: 16px
}
.dataTable table tr {
    line-height: 30px
}
.response-inline {
    border: 1px solid #000;
    padding: 5px;
    font-weight: bold
}

/* standard-error-calculator */
.final-answer {
    font-size: 1.3em;
    font-weight: bold;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-left: 6px solid #28a745;
    margin-top: 10px
}

/* gematria-calculator */
.hov_line:hover {
    color: gray !important;
    filter: grayscale(80%);
}

/* invnorm-calculator — normal-distribution canvas */
#normal {
    object-fit: scale-down
}

/* critical-value-calculator */
@media (min-width: 992px) {
    .font-lg-14 {
        font-size: 14px;
    }
}
@media (max-width: 620px) {
    .velocitytab {
        min-width: 400px;
    }
}
.velocitytab .v_active {
    border-bottom: 3px solid var(--light-blue);
}
.velocitytab .v_active strong {
    color: var(--light-blue);
}
.velocitytab p {
    position: relative;
    top: 2px
}

/* poisson-distribution-calculator */
@media (max-width: 480px) {
    .calculator-box {
        padding-right: 0rem;
        padding-left: 0rem;
    }
    .font-s-14 {
        font-size: 12px;
    }
}
@media (max-width: 320px) {
    .margin-top {
        margin-top: 0.5rem;
    }
}

/* expected-value-calculator — probability table */
.table_input {
    border-collapse: collapse
}
.table_input tr td {
    width: 40px !important;
    height: 30px;
    border: 1px solid #ccc;
    padding: 0px;
    text-align: center;
}
.table_input input {
    border: none !important;
    outline: none;
    width: 100%;
    height: 100%;
    text-align: center
}
