body {
    font-family: system-ui, sans-serif;
    margin: 0;
    /* App background */
    background: var(--color-secondary);
    overflow-x: hidden;
}

.card {
    max-width: 520px;
    margin: 0 auto;
    padding: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    /* Card surface */
    background: var(--color-white);
    box-shadow: var(--rk-shadow-card);
}

button {
    margin-top: 1rem;
    padding: .6rem 1rem;
}

/* subtle press animation for all buttons */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a[role="button"],
.btn-primary,
.btn-secondary,
.btn--ghost,
.btn-primary--ghost,
.btn-secondary--ghost,
.popup-btn-primary,
.popup-btn-secondary,
.icon-btn,
.ov-row__iconBtn,
.admin-button,
.companyPick__card,
.income-fab {
    transition: transform 120ms ease, box-shadow 120ms ease !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
a[role="button"]:active,
.btn-primary:active,
.btn-secondary:active,
.btn--ghost:active,
.btn-primary--ghost:active,
.btn-secondary--ghost:active,
.popup-btn-primary:active,
.popup-btn-secondary:active,
.icon-btn:active,
.ov-row__iconBtn:active,
.admin-button:active,
.companyPick__card:active,
.income-fab:active {
    transform: translateY(1px) scale(0.98) !important;
}

button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.popup-btn-primary:disabled,
.popup-btn-secondary:disabled {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    button,
    .btn-primary,
    .btn-secondary,
    .btn--ghost,
    .popup-btn-primary,
    .popup-btn-secondary,
    .icon-btn,
    .ov-row__iconBtn,
    .admin-button,
    .companyPick__card,
    .income-fab {
        transition: none;
    }
}

/* file input button matches primary style */
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    background: var(--btn-primary);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 10px;
    padding: .45rem .75rem;
    cursor: pointer;
    margin-right: .75rem;
    font-weight: 600;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--btn-primary-hover);
}

input[type="file"]::file-selector-button:active,
input[type="file"]::-webkit-file-upload-button:active {
    background: var(--btn-primary-active);
    transform: translateY(1px) scale(0.98);
}

pre {
    background: #f6f6f6;
    padding: .75rem;
    border-radius: 8px;
    overflow: auto;
}


html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

#toast-container {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    min-width: 260px;
    max-width: 360px;
    background: #1f2933;
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(10px);
    transition: all .25s ease;
    font-size: 0.9rem;
}

.toast--show {
    opacity: 1;
    transform: translateY(0);
}

.toast__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast__message {
    white-space: pre-line; /* show \n as line breaks without HTML */
}

.toast--success {
    background: #166534;
}

.toast--info {
    background: #1e40af;
}

.toast--warning {
    background: #92400e;
}

.toast--error {
    background: #7f1d1d;
}

.is-hidden {
    display: none !important;
}

.rk-scroll-locked {
    overflow: hidden;
}

.text-left {
    text-align: left;
}

.inline-block {
    display: inline-block;
}

.mt-6 {
    margin-top: 6px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-14 {
    margin-top: 14px;
}

.mb-14 {
    margin-bottom: 14px;
}

.p-muted {
    margin: 0 0 14px;
    opacity: .75;
}

