/* ============================================================================
   admin-brand-header.css — Unified SMS360X platform header for /admin/**
   Loads LAST (after variables/admin/admin-setup/brand) and restyles the
   legacy dark-green "AviaSAFE Admin" topbar to the sms360x.com landing-page
   identity: light surface, Manrope wordmark, forest-green accents
   (palette per public/css/brand.css).
   ============================================================================ */

.admin-shell .topbar,
.admin-topbar {
    background: #fbfcfa;
    color: #192f35;
    border-bottom: 1px solid #d7e4dc;
    box-shadow: 0 1px 3px rgba(25, 47, 53, .05);
    padding: 10px 26px;
}

/* Brand block: official logo + Manrope wordmark + platform context pill */
.tb-brand,
.admin-topbar .brand {
    color: #192f35;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.tb-brand .tb-wordmark,
.admin-topbar .tb-wordmark,
.admin-topbar .brand .tb-wordmark {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 800;
}
.tb-brand i,
.admin-topbar .brand i { color: #1d5949; }
.tb-logo {
    height: 26px;
    width: auto;
    display: block;
    border-radius: 4px;
}

/* Current page context as a subtle pill */
.page-title {
    background: #e9f0e9;
    color: #174e48;
    font-weight: 600;
    font-size: .8rem;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Right-side nav pills */
.tb-actions a.nav-link,
.admin-topbar .user-info a.nav-link {
    color: #65766e;
    text-decoration: none;
    font-size: .82rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background .15s, color .15s;
    background: transparent;
    border: none;
}
.tb-actions a.nav-link:hover:not(.active),
.admin-topbar .user-info a.nav-link:hover:not(.active) {
    background: #edf2ed;
    color: #192f35;
}
.tb-actions a.nav-link.active,
.admin-topbar .user-info a.nav-link.active {
    background: #1d5949;
    color: #fff;
    font-weight: 600;
}
.tb-actions a.nav-link.active i,
.admin-topbar .user-info a.nav-link.active i { color: #fff !important; }
.tb-actions a.nav-link i { color: #1d5949; }

/* "Back to Setup" chip on sub-steps */
.back-link {
    background: #edf2ed;
    color: #174e48;
    text-decoration: none;
    font-size: .82rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background .15s, color .15s;
    white-space: nowrap;
    font-weight: 600;
}
.back-link:hover { background: #e9f0e9; color: #174e48; }

/* SUPER_ADMIN role badge + signed-in email */
.user-badge {
    background: #edf2ed;
    color: #192f35;
    border: 1px solid #d7e4dc;
    padding: .3rem 1rem;
    border-radius: 999px;
    font-size: .82rem;
}
.user-badge .role-chip,
.role-chip {
    background: #1d5949;
    color: #fff;
    padding: .05rem .55rem;
    border-radius: 999px;
    margin-right: .4rem;
    font-weight: 700;
    font-size: .74rem;
}

/* tenant-credentials legacy topbar cleanup */
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 20;
}
.admin-topbar .brand { font-weight: 800; }
.admin-topbar .user-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-topbar .user-info a.btn-outline {
    color: #174e48 !important;
    border-color: #d7e4dc !important;
    background: #edf2ed;
}
.admin-topbar .user-info input[type="password"] {
    border: 1px solid #d7e4dc !important;
    background: #fff;
    color: #192f35;
}
