/* =============================================================================
   admin-title-bar.css
   Reference badge + title. Height is the 3.65rem track.
   ============================================================================= */

.admin-title-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.65rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.admin-title-bar.align-form {
    justify-content: flex-start;
    padding-left: 1.3rem;
}

.admin-title-bar.align-form-shut {
    justify-content: flex-start;
    padding-left: 2.4rem;
}

.admin-title-centre {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.admin-title-ref {
    flex: 0 0 calc(300px - 1.3rem);
    width: calc(300px - 1.3rem);
    min-width: calc(300px - 1.3rem);
    max-width: calc(300px - 1.3rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.85rem;
    padding: 0 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7dd3fc;
    background: color-mix(in srgb, var(--bg) 55%, #0c4a6e);
    border: 1px solid #0ea5e9;
    border-radius: 0.4rem;
    box-sizing: border-box;
}

.admin-title-ref[hidden] {
    display: none;
}

.admin-title-bar h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-title-bar.is-monitor h1 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 16rem;
    pointer-events: none;
    user-select: none;
}

.admin-title-tools {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

