/* Virage status portal.
   The palette is the app's own dark theme (VirageApp/Components/Theme/VirageTheme.razor):
   pure black page, #1C1C1E surfaces, #FF6659 primary. Nothing is loaded from a CDN —
   the old portal pulled jQuery and Semantic UI from two of them, which is a page that
   breaks when someone else's server has a bad day. */

:root {
    --bg:        #000000;
    --surface:   #1C1C1E;
    --primary:   #FF6659;
    --text:      #F5F5F7;
    --muted:     #98989D;
    --divider:   #38383A;
    --good:      #66BB6A;
    --warn:      #FFA726;
    --bad:       #EF5350;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.wrap {
    max-width: 34rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.head { text-align: center; margin-bottom: 1.5rem; }
.logo { height: 3rem; width: auto; }
.head h1 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0.75rem 0 0;
}

.lead { color: var(--muted); margin: 0 0 1rem; }

.card {
    background: var(--surface);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.9rem 0 0.35rem;
}
label:first-of-type { margin-top: 0; }

input[type="text"], input[type="tel"] {
    width: 100%;
    padding: 0.8rem 0.9rem;
    font-size: 1.05rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--divider);
    border-radius: 10px;
}
input:focus {
    outline: none;
    border-color: var(--primary);
}
input.short { max-width: 7rem; }

/* The repair number is two numeric boxes with a fixed slash between them. A
   phone keyboard in numeric mode has no slash key, so a single "123/26" field
   could not be filled in on a phone at all. */
.split {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.split input { min-width: 0; }
.split input.year { flex: 0 0 5rem; text-align: center; }
.slash {
    font-size: 1.35rem;
    color: var(--muted);
    line-height: 1;
}

.ticket-no {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.other {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.9rem;
}
.other a { color: var(--muted); }

.hint {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

button {
    margin-top: 1.25rem;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1D1D1F;
    background: var(--primary);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}
button:hover { filter: brightness(1.08); }

button.ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--divider);
}

.msg {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.msg-bad  { background: #2A1616; color: #FFB4AE; border: 1px solid #5A2A26; }
.msg-info { background: #16202A; color: #A9CBE8; border: 1px solid #27455A; }

.phase {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 600;
}
.phase-done { color: var(--good); }
.phase-work { color: var(--warn); }

.field-label {
    margin: 1.1rem 0 0.3rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.card > .field-label:first-child { margin-top: 0; }

.text { margin: 0; overflow-wrap: anywhere; }

.chip {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}
.price-unknown {
    margin: 0;
    font-size: 1.15rem;
    color: var(--muted);
}
.paid { margin: 0.35rem 0 0; font-size: 0.95rem; }
.paid-yes { color: var(--good); }
.paid-no  { color: var(--muted); }

.inline label { margin-top: 0; }
.away { margin-top: 1.5rem; }
.away button { margin-top: 0; }

.foot {
    margin-top: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}
.foot p { margin: 0.25rem 0; }
.foot a { color: var(--muted); }
