/* RetireNet Support - customer pages (/support/, /support/new/, /support/ticket/<id>/). Bootstrap 5.3.3 + these. */
:root { --sp-blue: #3b729f; --sp-blue-dark: #2f5d83; --sp-tint: #eaf1f9; --sp-tint-border: #bcd2ea; --sp-text: #263238; --sp-muted: #607d8b; --sp-desc: #78909c; --sp-soft: #90a4ae; --sp-border: #e2e8ec; --sp-line: #eef2f4; --sp-head: #f6f8f9; --sp-focus: rgba(117, 166, 225, .4); }
html, body.sp { background: #f7f7f7; }
body.sp { margin: 0; color: var(--sp-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.sp a { color: var(--sp-blue); }
body.sp .form-control, body.sp .form-select { min-height: 44px; border-color: #cfd8dc; font-size: 15px; }
body.sp textarea.form-control { line-height: 1.55; }
body.sp .form-control:focus, body.sp .form-select:focus, body.sp .form-check-input:focus { border-color: #75a6e1; box-shadow: 0 0 0 .2rem var(--sp-focus); }
body.sp .form-label, body.sp legend.form-label { margin-bottom: 6px; color: var(--sp-muted); font-size: 13.5px; font-weight: 600; }
.sp-wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* top and bottom */
.sp-top { background: var(--sp-blue); }
.sp-topin { display: flex; align-items: center; gap: 16px; height: 60px; }
.sp-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; }
.sp-word { color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.sp-word span { font-weight: 400; opacity: .8; }
.sp-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 11px; color: #fff; font-size: 12px; font-weight: 600; }
.sp-nav { display: flex; gap: 4px; margin-left: auto; }
.sp-nav a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 6px; color: #fff !important; font-size: 14px; font-weight: 500; text-decoration: none; opacity: .9; }
.sp-nav a:hover, .sp-nav a.on { background: rgba(255, 255, 255, .15); opacity: 1; }
.sp-foot { padding: 22px 0 30px; color: var(--sp-desc); font-size: 13.5px; text-align: center; }

/* page */
.sp-main { padding-top: 28px; padding-bottom: 20px; }
.sp-hero { margin-bottom: 20px; }
.sp-hero h1 { margin: 0 0 6px; color: var(--sp-text); font-size: 28px; font-weight: 700; line-height: 36px; }
.sp-hero p { margin: 0; max-width: 640px; color: var(--sp-muted); font-size: 15.5px; }
.sp-hero-row { display: flex; align-items: center; gap: 16px; }
.sp-hero-row .sp-btn { margin-left: auto; }
.sp-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; font-size: 14px; text-decoration: none; }
.sp-card { margin-bottom: 18px; padding: 22px 24px; border: 1px solid var(--sp-border); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(38, 50, 56, .06); }
.sp-card h2, .sp-form h2 { margin: 0 0 14px; color: var(--sp-text); font-size: 17px; font-weight: 600; line-height: 24px; }
.sp-form h2 + .row, .sp-form h2 + .mb-3 { margin-top: 0; }
.sp-form h2:not(:first-of-type) { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--sp-line); }
.sp-opt { margin-left: 4px; color: var(--sp-soft); font-size: 12.5px; font-weight: 400; }
.sp-help { color: var(--sp-desc); font-size: 13.5px; }
.sp-err { margin-top: 6px; color: #b3261e; font-size: 13.5px; font-weight: 500; }
.sp-note { display: flex; gap: 10px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid var(--sp-tint-border); border-radius: 8px; background: var(--sp-tint); color: #2c4a63; font-size: 14.5px; line-height: 1.5; }
.sp-note i { margin-top: 3px; color: var(--sp-blue); }
.sp-note.ok { border-color: #cfe7d4; background: #eef8f0; color: #1d4d21; }
.sp-note.ok i { color: #2e7d32; }
.sp-note.bad { border-color: #f2c9c9; background: #fdf0f0; color: #8c1d18; }
.sp-note.bad i { color: #b3261e; }
.sp-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* buttons, chips */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 1px solid var(--sp-blue); border-radius: 8px; background: var(--sp-blue); color: #fff !important; font-size: 15.5px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; }
.sp-btn:hover { border-color: var(--sp-blue-dark); background: var(--sp-blue-dark); }
.sp-btn:disabled { opacity: .6; cursor: default; }
.sp-btn-soft { border-color: var(--sp-tint-border); background: var(--sp-tint); color: var(--sp-blue) !important; }
.sp-btn-soft:hover { background: #fff; color: var(--sp-blue-dark) !important; }
.sp-send { display: flex; justify-content: flex-end; margin-top: 18px; }
.sp-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--sp-border); border-radius: 12px; background: #fff; color: #546e7a; font-size: 12.5px; font-weight: 500; line-height: 1; white-space: nowrap; }
.sp-chip.ok { border-color: #cfe7d4; background: #eef8f0; color: #2e7d32; }
.sp-chip.warn { border-color: #f3dfb3; background: #fdf6e6; color: #8a5a00; }
.sp-chip.info { border-color: var(--sp-tint-border); background: var(--sp-tint); color: var(--sp-blue); }
.sp-chip.muted { background: var(--sp-head); color: var(--sp-desc); }

/* new ticket: impact choices */
.sp-impacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sp-impact { position: relative; display: block; margin: 0; cursor: pointer; }
.sp-impact input { position: absolute; opacity: 0; }
.sp-ib { display: flex; flex-direction: column; gap: 3px; height: 100%; min-height: 76px; padding: 12px 14px; border: 1px solid #cfd8dc; border-radius: 8px; background: #fff; }
.sp-ib strong { color: var(--sp-text); font-size: 14.5px; line-height: 20px; }
.sp-ib span { color: var(--sp-desc); font-size: 13px; line-height: 18px; }
.sp-impact:hover .sp-ib { border-color: var(--sp-tint-border); }
.sp-impact.on .sp-ib, .sp-impact input:checked + .sp-ib { border-color: var(--sp-blue); background: var(--sp-tint); box-shadow: inset 0 0 0 1px var(--sp-blue); }
.sp-impact input:focus-visible + .sp-ib { box-shadow: 0 0 0 .2rem var(--sp-focus); }
.sp-captcha { min-height: 78px; }

/* ticket */
.sp-thead { padding: 18px 24px; }
.sp-thead h1 { margin: 4px 0 8px; color: var(--sp-text); font-size: 23px; font-weight: 700; line-height: 30px; overflow-wrap: anywhere; }
.sp-tnum { color: var(--sp-desc); font-size: 13.5px; font-weight: 500; }
.sp-tmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--sp-desc); font-size: 13.5px; }
.sp-thread { margin-bottom: 18px; }
.sp-msg { margin-bottom: 12px; padding: 16px 20px; border: 1px solid var(--sp-border); border-radius: 10px; background: #fff; }
.sp-staff { border-color: var(--sp-tint-border); background: #f5f9fd; }
.sp-mh { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sp-mh strong { font-size: 15px; }
.sp-av { display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sp-head); color: #546e7a; font-size: 14px; font-weight: 600; }
.sp-staff .sp-av { background: var(--sp-blue); color: #fff; }
.sp-mt { margin-left: auto; color: var(--sp-soft); font-size: 13px; white-space: nowrap; }
.sp-text { margin-top: 10px; padding-left: 44px; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.sp-files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding-left: 44px; }
.sp-img { display: flex; flex-direction: column; width: 170px; overflow: hidden; border: 1px solid var(--sp-border); border-radius: 8px; background: #fff; text-decoration: none; }
.sp-img img { display: block; width: 170px; height: 120px; object-fit: cover; background: var(--sp-head); }
.sp-img span { padding: 6px 9px; overflow: hidden; color: #546e7a; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.sp-file { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid var(--sp-border); border-radius: 8px; background: #fff; font-size: 14px; text-decoration: none; }
.sp-file span { color: var(--sp-soft); font-size: 12.5px; }
.sp-rbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-rb { position: relative; margin: 0; cursor: pointer; }
.sp-rb input { position: absolute; opacity: 0; }
.sp-rb span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid #cfd8dc; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 500; }
.sp-rb input:checked + span { border-color: var(--sp-blue); background: var(--sp-tint); color: var(--sp-blue); box-shadow: inset 0 0 0 1px var(--sp-blue); }
.sp-rb input:focus-visible + span { box-shadow: 0 0 0 .2rem var(--sp-focus); }

/* your tickets */
.sp-list { padding: 0; overflow: hidden; }
.sp-li { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 20px; border-top: 1px solid var(--sp-line); color: var(--sp-text) !important; text-decoration: none; }
.sp-li:first-child { border-top: 0; }
.sp-li:hover { background: #fbfdff; }
.sp-lmain { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.sp-lmain strong { overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.sp-lsub { color: var(--sp-desc); font-size: 13px; }
.sp-lgo { color: var(--sp-soft); font-size: 12px; }
.sp-empty { padding: 40px 24px; text-align: center; }
.sp-empty i { color: var(--sp-tint-border); font-size: 40px; }
.sp-empty p { margin: 12px auto 18px; max-width: 420px; color: var(--sp-muted); }

@media (max-width: 767.98px) {
    .sp-impacts { grid-template-columns: 1fr; }
    .sp-ib { min-height: 0; }
}
@media (max-width: 575.98px) {
    .sp-wrap { padding: 0 12px; }
    .sp-topin { height: 54px; gap: 8px; }
    .sp-word { font-size: 18px; }
    .sp-badge { display: none; }
    .sp-nav a { padding: 0 10px; }
    .sp-nav a span { display: none; }
    .sp-nav a i { font-size: 16px; }
    .sp-main { padding-top: 18px; }
    .sp-hero h1 { font-size: 23px; line-height: 30px; }
    .sp-hero-row { flex-direction: column; align-items: stretch; }
    .sp-hero-row .sp-btn { margin-left: 0; }
    .sp-card { padding: 16px; }
    .sp-msg { padding: 14px; }
    .sp-text, .sp-files { padding-left: 0; }
    .sp-mt { margin-left: 0; width: 100%; }
    .sp-img { width: calc(50% - 5px); }
    .sp-img img { width: 100%; height: 130px; }
    .sp-send .sp-btn { width: 100%; }
    .sp-li { padding: 12px 14px; gap: 10px; }
    .sp-lgo { display: none; }
}
