/*
 * Portal-only overrides on top of the shared admin theme.
 *
 * The Portal deliberately looks like Management: same components, same behaviour, so nobody has
 * to learn two interfaces. These rules supply only the differences that say which application you
 * are in.
 */

/* A distinct header accent. The clearest at-a-glance signal that this is not the back office. */
.tanam-portal-shell .app-header {
    border-bottom: 3px solid #1565c0;
}

.tanam-portal-shell .tanam-brand-wordmark {
    color: #1565c0;
}

/* The partner name sits where Management shows "Platform scope", and must not be mistaken for a
   secondary label. It is the answer to "whose data am I looking at?". */
.tanam-portal-shell .tanam-user-scope {
    color: #1565c0;
    font-weight: 600;
}

.tanam-portal-shell .app-sidebar .menu-header {
    letter-spacing: 0.04em;
}

/* Keep the long navigation tree usable without letting its scrollbar dominate the sidebar. */
.tanam-portal-shell .app-sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(70, 88, 78, 0.28) transparent;
}

.tanam-portal-shell .app-sidebar-content::-webkit-scrollbar {
    width: 5px;
}

.tanam-portal-shell .app-sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.tanam-portal-shell .app-sidebar-content::-webkit-scrollbar-thumb {
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(70, 88, 78, 0.28);
    background-clip: padding-box;
}

.tanam-portal-shell .app-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 114, 81, 0.46);
    background-clip: padding-box;
}

.tanam-portal-shell .tanam-sidebar-help {
    margin: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(23, 63, 43, 0.12);
}

.tanam-portal-shell .tanam-manual-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 2.7rem;
    padding: 0.68rem 0.8rem;
    border: 1px solid #1565c0;
    border-radius: 0.7rem;
    color: #ffffff;
    background: #1565c0;
    box-shadow: 0 0.2rem 0.7rem rgba(13, 71, 161, 0.16);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.tanam-portal-shell .tanam-manual-link:hover,
.tanam-portal-shell .tanam-manual-link:focus-visible {
    border-color: #0d47a1;
    color: #ffffff;
    background: #0d47a1;
    box-shadow: 0 0.35rem 1rem rgba(13, 71, 161, 0.22);
    transform: translateY(-1px);
}

.tanam-portal-shell .tanam-manual-link:focus-visible {
    outline: 2px solid rgba(21, 101, 192, 0.36);
    outline-offset: 2px;
}

.tanam-portal-shell .tanam-manual-link .tanam-manual-external {
    margin-left: auto;
    font-size: 0.68rem;
    opacity: 0.68;
}

/* The sign-in, code and set-password pages share the Management auth shell; only the accent moves. */
.public-auth-portal-page .public-auth-brand-panel {
    background: linear-gradient(160deg, #0d47a1 0%, #1565c0 100%);
}

.public-auth-portal-page .public-auth-eyebrow.text-success {
    color: #1565c0 !important;
}

/* The code input: wide-tracked digits, so a six-digit code is read as six separate characters. */
.tanam-otp-input {
    font-size: 1.75rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
