Files
PowderCoatingLogix/src/PowderCoating.Web/wwwroot/css/kiosk.css
T
spouliot e1256503be Fix notification bell, SMS consent kiosk flow, and button alignment
Notification bell:
- Bell now polls /InAppNotifications/Recent every 60s as a SignalR fallback
- Bell dropdown refresh on open so count is always current when staff looks at it

SMS consent → kiosk flow:
- Staff clicks "Get SMS Consent" on Customer Details → AJAX POST to
  /Kiosk/PushSmsConsent stores customer in IMemoryCache (10 min TTL)
- Kiosk PollSession returns smsConsentPending + customerId so tablet navigates
  to /Kiosk/SmsConsent/{customerId} automatically
- Customer reads TCPA consent on tablet, taps I Agree or No Thanks
- On agree: NotifyBySms/SmsConsentedAt/SmsConsentMethod set; in-app notification
  fires; cache cleared; tablet returns to Welcome
- Removed Customers/SmsConsent (staff-browser version); moved view to Kiosk/

Button alignment:
- kiosk.css: added display:flex + align-items:center + justify-content:center to
  all kiosk body buttons so content is centred vertically in tall button outlines

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 23:13:57 -04:00

207 lines
4.1 KiB
CSS

/* ── Kiosk touch-optimised styles ─────────────────────────────────────────── */
:root {
--kiosk-accent: #2563eb;
--kiosk-radius: 12px;
--kiosk-input-h: 56px;
--kiosk-btn-h: 64px;
}
body.kiosk-body {
font-size: 1.125rem;
background: #f8fafc;
min-height: 100dvh;
display: flex;
flex-direction: column;
}
/* ── Inputs ── */
.kiosk-input,
.kiosk-body .form-control,
.kiosk-body .form-select {
min-height: var(--kiosk-input-h);
border-radius: var(--kiosk-radius);
font-size: 1.125rem;
padding: 0.75rem 1rem;
border: 2px solid #cbd5e1;
transition: border-color 0.15s;
}
.kiosk-body .form-control:focus,
.kiosk-body .form-select:focus {
border-color: var(--kiosk-accent);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.kiosk-body textarea.form-control {
min-height: 140px;
resize: none;
}
.kiosk-body .form-check-input {
width: 1.5rem;
height: 1.5rem;
margin-top: 0.15rem;
}
.kiosk-body .form-check-label {
font-size: 1rem;
padding-left: 0.5rem;
}
/* ── Buttons ── */
.kiosk-btn,
.kiosk-body .btn-primary,
.kiosk-body .btn-success {
min-height: var(--kiosk-btn-h);
border-radius: var(--kiosk-radius);
font-size: 1.2rem;
font-weight: 600;
width: 100%;
}
/* Vertically centre content in any tall kiosk button (covers <a> and <button>) */
.kiosk-body .btn,
.kiosk-btn {
display: inline-flex;
align-items: center;
justify-content: center;
}
/* Suppress all hover effects on touch screens */
@media (hover: none) {
.kiosk-body .btn:hover { filter: none; opacity: 1; }
}
/* ── Step progress dots ── */
.kiosk-steps {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
margin: 1.25rem 0;
}
.kiosk-step-dot {
width: 14px;
height: 14px;
border-radius: 50%;
background: #cbd5e1;
transition: background 0.2s;
}
.kiosk-step-dot.active {
background: var(--kiosk-accent);
transform: scale(1.2);
}
.kiosk-step-dot.done {
background: #16a34a;
}
/* ── Card ── */
.kiosk-card {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 1rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
padding: 2rem;
width: 100%;
max-width: 680px;
margin: 0 auto;
}
/* ── Signature canvas ── */
#signatureCanvas {
border: 2px solid #cbd5e1;
border-radius: var(--kiosk-radius);
background: #fff;
width: 100%;
height: 200px;
cursor: crosshair;
touch-action: none;
}
#signatureCanvas.signed {
border-color: #16a34a;
}
/* ── Welcome screen ── */
.kiosk-welcome-screen {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100dvh;
text-align: center;
padding: 2rem;
}
.kiosk-welcome-logo {
max-height: 200px;
max-width: 420px;
object-fit: contain;
margin-bottom: 2rem;
}
.kiosk-welcome-title {
font-size: 2.5rem;
font-weight: 700;
color: #1e293b;
margin-bottom: 0.75rem;
}
.kiosk-welcome-subtitle {
font-size: 1.25rem;
color: #64748b;
}
.kiosk-idle-indicator {
margin-top: 3rem;
font-size: 0.9rem;
color: #94a3b8;
}
/* ── Confirmation screen ── */
.kiosk-confirmation {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 60vh;
text-align: center;
}
.kiosk-confirmation-icon {
font-size: 5rem;
color: #16a34a;
margin-bottom: 1.5rem;
}
.kiosk-countdown {
font-size: 0.9rem;
color: #94a3b8;
margin-top: 2rem;
}
/* ── Terms scroll box ── */
.kiosk-terms-scroll {
max-height: 260px;
overflow-y: auto;
border: 1px solid #e2e8f0;
border-radius: var(--kiosk-radius);
padding: 1.25rem;
background: #f8fafc;
font-size: 0.9rem;
color: #475569;
line-height: 1.6;
margin-bottom: 1.5rem;
}
/* ── Labels ── */
.kiosk-body .form-label {
font-weight: 600;
margin-bottom: 0.5rem;
color: #1e293b;
}