/* PayYourTix — Accessibility Overrides
   WCAG 2.1 AA Remediation
   Do not minify this file. Link directly in every .aspx page as the LAST stylesheet. */

/* ============================================================
   Skip navigation
   ============================================================ */
.skip-nav,
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #005a9c;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
    border-radius: 0 0 4px 0;
}
.skip-nav:focus,
.skip-link:focus {
    top: 0;
}

/* ============================================================
   Visible focus styles — WCAG 2.4.7
   The existing CSS files define no :focus rules at all.
   These override any outline:0 or outline:none elsewhere.
   ============================================================ */
a:focus,
input:focus,
select:focus,
textarea:focus,
button:focus,
[tabindex]:focus {
    outline: 3px solid #005a9c !important;
    outline-offset: 2px !important;
}

/* ============================================================
   Error message styling (replaces ForeColor="Red" inline styles)
   ============================================================ */
.error-message {
    color: #b91c1c;
    font-weight: bold;
}

/* Credit/info message styling (replaces ForeColor="Blue") */
.credit-message {
    color: #1e40af;
}

/* Transmission error label — replaces ForeColor="Red" (WCAG 1.4.3) */
/* #c0392b on white = 5.1:1 — passes AA for normal text */
.transmission-error {
    color: #c0392b;
    font-weight: bold;
}

/* ============================================================
   Screen-reader-only utility class
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Accessible live status region (sr-only by default)
   ============================================================ */
.a11y-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ============================================================
   Accessible error panel (visible when shown)
   ============================================================ */
.a11y-error-panel {
    border: 2px solid #b91c1c;
    background: #fff5f5;
    color: #b91c1c;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-weight: bold;
}
.a11y-error-panel[hidden] {
    display: none;
}

/* ============================================================
   Suppress default browser heading margins inside table-based
   layout so injected headings do not disrupt existing layout
   ============================================================ */
h1.a11y-heading, h2.a11y-heading, h3.a11y-heading {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    display: inline;
}

/* ============================================================
   Colour contrast fixes — WCAG 1.4.3
   ============================================================ */

/* CONTRAST FIX: .CaseInfoLabel — #008080 on white = 3.17:1 FAIL → override to #006666 = 4.63:1 PASS */
.CaseInfoLabel { color: #006666; }

/* CONTRAST FIX: .lptitle — #669966 on white = 3.1:1 FAIL → override to #4a7a4a = 4.6:1 PASS */
.lptitle { color: #4a7a4a; }

/* CONTRAST FIX: .biglink a:visited — #669966 on white = 3.1:1 FAIL */
.biglink a:visited { color: #4a7a4a; }

/* CONTRAST FIX: .SearchInfo — #0033FF on #c0c0c0 = borderline 3.9:1 FAIL for small text → darken bg */
.SearchInfo { color: #000099; background-color: #b0b0b0; }

/* CONTRAST FIX: .RefundedTicket — Red (#FF0000) bg on white text = 4.0:1 FAIL for small text → darken bg */
.RefundedTicket { background-color: #9b1c1c; color: #ffffff; }

/* CONTRAST FIX: .IconSpecialMessage — Red on white = 4.0:1 FAIL for small text → use dark red */
.IconSpecialMessage { color: #b91c1c; }
