html, body {
    font-family: "Lato", Helvetica, Arial, sans-serif;
    font-weight: 400; /* Sets Lato Bold as the default weight */
}

.rz-primary {
    color: #ffffff !important;
    background-color: #524F9E !important;
    border-color: #524F9E !important;
}

/* Sidebar nesting indent, same as the other apps. */
.rz-panel-menu {
    --rz-panel-menu-item-2nd-level-offset: 1rem;
}

/* Radzen's translateZ(0) here makes .rz-body the containing block for position: fixed, which
   broke the sticky action bars. !important is needed: its stylesheet loads after this one. */
.rz-layout .rz-body {
    transform: none !important;
}

/* Home page channel tiles. Global, not scoped to Home.razor: the class lands on a RadzenCard,
   and CSS isolation never stamps its attribute onto a child component's root. */
.listings-tile {
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    height: 100%;
}

.listings-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* A channel with no screens yet - same tile, but nothing to click through to. */
.listings-tile.no-destination {
    cursor: default;
}

.listings-tile.no-destination:hover {
    transform: none;
    box-shadow: none;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2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TE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.dropdown-label {
    color: #666666;
    font-size: smaller;
}

.default-button {
    min-width: 120px !important;
}

/* Export button - solid green, same weight as the primary "New listing" button */
.table-export-button.rz-button {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
    color: #ffffff !important;
}

.rz-data-row:hover {
    cursor: pointer!important;
}

.rz-sortable-column .rzi-sort {
    color: #000!important;
}
.table-export-button.rz-button:hover {
    background-color: #1b5e20 !important;
    border-color: #1b5e20 !important;
}

/* Toolbar strip that sits flush on top of a data grid so the action reads as part of the table */
.table-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

/* Right-aligned export action above a grid, without the boxed toolbar background */
.grid-export-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

/* Action bar above a reference-data grid: "Add New" on the left, search + Export on the right. */
.grid-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    margin-bottom: 8px;
}

/* Groups the search box and Export button together on the right-hand side. */
.grid-header-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search box with a magnifying-glass icon sitting inside the input. */
.grid-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 260px;
}

.grid-search-icon {
    position: absolute;
    left: 10px;
    color: var(--rz-text-secondary-color);
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

/* Target the actual <input> so the text clears the icon (Radzen sets its own padding). */
.grid-search .grid-search-box,
.grid-search input.rz-textbox {
    width: 100%;
    padding-left: 36px;
}