/* Base styles for the employee phone app. All values come from the design-system
   tokens in _content/PayRail.Ui/css/tokens/. No hex literals or invented styles here. */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, dl, dd, ul, ol {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--text-link);
    text-decoration: none;
}

a:hover {
    color: var(--text-link-hover);
}

button {
    font: inherit;
    color: inherit;
}

input, select, textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.mono {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

.num {
    font-variant-numeric: tabular-nums;
}

/* Vertical rhythm inside a screen. Every page is a single column of blocks. */
.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.stack--tight {
    gap: var(--space-3);
}

/* Blazor's own error strip, restyled to the palette. */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: var(--space-3) var(--space-4);
    background: var(--danger-100);
    color: var(--danger-700);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-md);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

.validation-message {
    display: block;
    margin-top: var(--space-1);
    color: var(--danger-700);
    font-size: var(--text-sm);
}
