/* /tablet/ kiosk page. Colours/fonts from the home page (spec section 6). */
:root {
    --tx-ink: #152028;
    --tx-blue: #2A6F97;
    --tx-sky: #6FC8EF;
    --tx-mist: #EEF7FC;
    --tx-danger: #b42318;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.theranex-tablet {
    background: linear-gradient(160deg, var(--tx-mist) 0%, #fff 60%);
    color: var(--tx-ink);
    font-family: "Space Grotesk", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.tx-shell {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.tx-header {
    text-align: center;
    margin-bottom: 16px;
}

.tx-brand {
    margin: 0;
    font-family: "Bitter", Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--tx-blue);
}

.tx-clinic {
    margin: 4px 0 0;
    font-weight: 600;
}

.tx-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 16px 40px rgba(21, 32, 40, 0.12);
    text-align: center;
}

.tx-card h1 {
    margin: 0 0 16px;
    font-family: "Bitter", Georgia, serif;
    font-size: 1.6rem;
}

.tx-code {
    margin: 24px 0 8px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--tx-blue);
}

.tx-muted {
    color: #5b6b76;
}

.tx-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 600;
    text-align: left;
}

.tx-input {
    width: 100%;
    min-height: 64px;
    margin-bottom: 20px;
    padding: 10px 16px;
    border: 2px solid #c9d6df;
    border-radius: 16px;
    font: inherit;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    user-select: text;
}

.tx-input:focus {
    outline: none;
    border-color: var(--tx-blue);
}

.tx-pin {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 0 0 20px;
}

.tx-pin-dot {
    width: 22px;
    height: 22px;
    border: 2px solid var(--tx-blue);
    border-radius: 50%;
}

.tx-pin-dot.is-filled {
    background: var(--tx-blue);
}

.tx-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tx-key {
    min-height: 76px;
    border: 0;
    border-radius: 18px;
    background: var(--tx-mist);
    color: var(--tx-ink);
    font: inherit;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.tx-key:active {
    background: var(--tx-sky);
}

.tx-key-muted {
    font-size: 1.1rem;
    background: #f4f7f9;
}

.tx-submit {
    width: 100%;
    min-height: 72px;
    margin-top: 20px;
    border: 0;
    border-radius: 999px;
    background: var(--tx-blue);
    color: #fff;
    font: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.tx-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tx-message {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fee4e2;
    color: var(--tx-danger);
    font-weight: 600;
}

.tx-message.is-info {
    background: var(--tx-mist);
    color: var(--tx-ink);
}

.tx-message[hidden] {
    display: none;
}

/* Small link for staff below the card (the kiosk page has no menu). */
.tx-staff-link {
    margin: 24px 0 0;
    text-align: center;
    font-size: 0.95rem;
}

.tx-staff-link a {
    display: inline-block;
    min-height: 44px;
    padding: 10px 16px;
    color: #52646f;
}

/* Language switcher on the keypad (small; the dot marks the clinic's language). */
.tx-lang {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.tx-lang-button {
    min-height: 36px;
    padding: 4px 14px;
    border: 1px solid #c9d6df;
    border-radius: 999px;
    background: #fff;
    color: #52646f;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.tx-lang-button.is-current {
    border-color: var(--tx-blue);
    background: var(--tx-blue);
    color: #fff;
    cursor: default;
}

.tx-lang-default {
    font-size: 0.6em;
    vertical-align: middle;
}
