/* Employee pages, the sign-in page and the entrance tablet: additions on top of Tabler and theme.css. */
.app-main {
    max-width: 960px;
}

.app-navbar {
    background: var(--tblr-bg-surface);
    border-bottom: 1px solid var(--tblr-border-color);
}

/* Phone tab bar for employees, fixed to the bottom like an app's. */
.app-tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--tblr-bg-surface);
    border-top: 1px solid var(--tblr-border-color);
    box-shadow: 0 -0.25rem 1rem rgba(15, 23, 42, 0.06);
}

.app-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.5rem 0.25rem 0.375rem;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--tblr-secondary);
    text-decoration: none;
}

.app-tab .bi {
    font-size: 1.35rem;
    line-height: 1;
}

.app-tab.active {
    color: var(--tblr-primary);
    font-weight: 600;
}

.app-tab:hover {
    color: var(--tblr-primary);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .has-tabbar .page-body {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
}

/* The amount an employee takes home, at the top of the pay page. */
.pay-hero {
    background: var(--brand-gradient);
    color: #fff;
    border: 0;
}

.pay-hero .pay-hero-amount {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.camera {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    background: #000;
}

/* Mirrored so moving left on camera reads as moving left on screen. */
.camera video,
.camera canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* Shared tablet at the entrance: camera beside the controls, or above them when upright. */
.kiosk {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.5rem;
    align-items: center;
    min-height: 100dvh;
    padding: 1.5rem;
}

.kiosk-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.kiosk-clock {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.kiosk-status {
    font-size: 1.25rem;
    font-weight: 600;
    min-height: 6rem;
}

.kiosk-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.kiosk-actions .btn {
    padding-block: 1.25rem;
    font-size: 1.35rem;
    font-weight: 600;
}

@media (orientation: portrait) {
    .kiosk {
        grid-template-columns: minmax(0, 1fr);
        align-content: center;
    }
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* The AI's greeting is shown on its own line under the scan result. */
#status {
  white-space: pre-line;
}

/* Sign-in page: the form beside a panel that says what the system does. */
.auth-form {
    max-width: 26rem;
}

.auth-cover {
    position: relative;
    overflow: hidden;
    align-items: center;
    background: var(--brand-gradient);
    color: #fff;
}

.auth-cover::before,
.auth-cover::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.auth-cover::before {
    width: 32rem;
    height: 32rem;
    top: -10rem;
    right: -8rem;
}

.auth-cover::after {
    width: 22rem;
    height: 22rem;
    bottom: -8rem;
    left: -6rem;
}

.auth-cover-inner {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    padding: 3rem;
}

.auth-cover-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    margin-inline-start: 0;
}

.auth-cover-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 2rem;
}

.auth-features li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.auth-features strong {
    color: #fff;
}

.auth-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.25rem;
}
