﻿/* CRJD.Razor/wwwroot/css/global.css */


.fui-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.fui-page-header-left {
    display: flex;
    align-items: center;
}

.fui-page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.fui-page-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fui-page-header-highlight {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background-color: var(--neutral-fill-subtle-rest);
}

.btn-text {
    margin-left: 0.25rem;
}

/* Mobile stacking */
@media (max-width: 640px) {
    .fui-page-header-right {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .add-btn-text {
        display: none;
    }
}


/* Default: show full label, hide short label */
.fui-add-full {
    display: inline;
}

.fui-add-short {
    display: none;
}

/* Make long "New {ItemType}" behave nicely */
.fui-add-full {
    max-width: 260px; /* tune per your header layout */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Phone: show short label, hide full label */
@media (max-width: 640px) {
    .fui-add-full {
        display: none;
    }

    .fui-add-short {
        display: inline;
    }
}


.fui-itemsperpage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fui-page-header-right {
    display: flex;
    align-items: flex-end; /* ✅ bottom-align all controls */
    gap: 0.75rem;
}

.header-control-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.header-control-input {
    min-width: 72px;
    width: 72px;
    text-align: center; /* Optional, but nice for numbers */
}
