/* Most styling comes from MudBlazor; only app-specific touches here. */

html, body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    /* Tablets: no grey flash on tap, no accidental text selection while tapping buttons. */
    -webkit-tap-highlight-color: transparent;
}

.boot-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #7B2D5B;
    font-size: 1.25rem;
}

/* Product photos in tables and grids */
.thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #f1ecef;
}

/* Colour table of a product */
.variant-grid td, .variant-grid th {
    text-align: center;
    min-width: 96px;
}

/* Drop zone for photo upload */
.drop-zone {
    border: 2px dashed var(--mud-palette-lines-inputs);
    border-radius: 12px;
    min-height: 140px;
    transition: border-color .15s, background-color .15s;
}

.drop-zone.dragging {
    border-color: var(--mud-palette-primary);
    background-color: var(--mud-palette-primary-hover);
}

/* New sale: the cart stays visible while scrolling the search results on a tablet */
@media (min-width: 960px) {
    .sticky-panel {
        position: sticky;
        top: 80px;
    }
}

/* Stock document lines: plain number inputs, so an inventory of a thousand lines still renders quickly */
.doc-input {
    width: 100%;
    min-width: 72px;
    max-width: 120px;
    padding: 8px 10px;
    font: inherit;
    font-size: 1rem;
    color: var(--mud-palette-text-primary);
    background: transparent;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: 4px;
}

.doc-input:focus {
    outline: none;
    border-color: var(--mud-palette-primary);
}

.doc-line-touched td {
    background-color: var(--mud-palette-primary-hover);
}

.doc-line-error td {
    background-color: var(--mud-palette-error-hover);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
