/* Teamak Admin - only what the staff console adds on top of the portal's design system (teamak.css + portal.css). */
.admin-body { padding: 24px; max-width: 1280px; }
.admin-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--sunken); }
.admin-auth .auth-card h1 { font-size: 22px; margin: 0; }
.admin-auth .auth-form { display: grid; gap: 12px; margin-top: 14px; }
.admin-auth .auth-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.admin .side .grp { margin-top: 10px; }
/* The staff console's sidebar is dark (ink) so staff always know they are not in a client's portal. */
.side.admin .muted { color: #9AA0B8; }
.side.admin .btn.ghost { color: #C9CDDA; border-color: var(--ink-3); background: transparent; }
.side.admin .btn.ghost:hover { color: #fff; background: var(--ink-2); }

/* ===== Menu in sections, phone drawer and navigation feedback (fix-console, 29 Oct 2026) ===== */
.admin-top, .side-bg { display: none; }
.side.admin .nav-find { padding: 2px 2px 8px; }
.side.admin .nav-find .input { width: 100%; background: var(--ink-2); border: 1px solid var(--ink-3); color: #fff; padding: 7px 10px; font-size: 13px; border-radius: 8px; }
.side.admin .nav-find .input::placeholder { color: #8F96B0; }
.side.admin .nav-find .input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,184,169,.25); outline: none; }
.nav-sec { display: block; }
.side.admin .nav-sec-h { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; padding: 8px 10px; border-radius: 8px; cursor: pointer;
    font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: #A9AFC6; }
.side.admin .nav-sec-h:hover { background: var(--ink-2); color: #fff; }
.side.admin .nav-sec-h:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.side.admin .nav-sec-h > span:first-child { flex: 1; }
.nav-sec-h .chev { flex: none; transition: transform .15s; transform: rotate(-90deg); }
[dir="rtl"] .nav-sec-h .chev { transform: rotate(90deg); }
.nav-sec.open > .nav-sec-h .chev { transform: rotate(0); }
.nav-sec.open > .nav-sec-h { color: #fff; }
.nav-sec-b[hidden] { display: none; }
.nav-sec-b { display: grid; gap: 1px; padding-inline-start: 8px; margin-inline-start: 10px; border-inline-start: 1px solid var(--ink-3); margin-bottom: 4px; }
.nav-sec-b a { font-size: 13.5px; }
.side.admin .nav-badge { margin-inline-start: auto; background: var(--amber-s, #F5B84B); color: var(--ink); border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 700; line-height: 18px; }
.side.admin .nav-none { padding: 8px 10px; }
.side.admin .foot .lang-link { color: #C9CDDA; font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.side.admin .foot .lang-link:hover { background: var(--ink-2); color: #fff; }

/* the progress bar under the top edge and the pressed link: shown the moment a link is clicked, gone when the page has arrived */
#tka-progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .12s;
    background: linear-gradient(90deg, transparent, var(--teal) 30%, var(--royal) 70%, transparent); background-size: 50% 100%; background-repeat: no-repeat; }
html.tka-busy #tka-progress { opacity: 1; animation: tka-slide 1s linear infinite; }
@keyframes tka-slide { from { background-position: -50% 0; } to { background-position: 150% 0; } }
html.tka-busy, html.tka-busy a { cursor: progress; }
html.tka-busy main.main { opacity: .55; transition: opacity .15s .1s; }
a.tka-pending { background: var(--ink-3) !important; color: #fff !important; }
@media (prefers-reduced-motion: reduce) { html.tka-busy #tka-progress { animation: none; background: var(--teal); } }

/* the phone: the menu is a drawer behind a hamburger (portal.css hides .side below 1020px and has no bar for the console) */
@media (max-width: 1020px) {
    .app.admin { display: block; }
    .admin-top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 60; height: 52px; padding: 0 12px; background: var(--ink); color: #fff; }
    .admin-top .hamb { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; color: #fff; }
    .admin-top .hamb:hover { background: var(--ink-2); }
    .admin-top .hamb:focus-visible { outline: 2px solid var(--teal); }
    .admin-top .top-brand { display: flex; align-items: center; gap: 8px; color: #fff; flex: 1; min-width: 0; }
    .admin-top .top-brand img { height: 26px; width: auto; }
    .admin-top .top-brand b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .admin-top .top-lang { color: #C9CDDA; font-size: 13px; padding: 8px 10px; border-radius: 8px; }
    .app.admin > .side.admin { display: flex; position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 90; width: min(86vw, 320px); height: 100dvh; flex-direction: column; flex-wrap: nowrap;
        overflow-x: hidden; overflow-y: auto; padding: 12px 10px 24px; transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
    [dir="rtl"] .app.admin > .side.admin { transform: translateX(105%); }
    .app.admin.nav-open > .side.admin { transform: none; visibility: visible; transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.45); }
    .app.admin > .side.admin .side-logo { display: flex; }
    .app.admin > .side.admin .grp { display: flex; }
    .app.admin > .side.admin .co { display: flex; }
    .app.admin > .side.admin a { white-space: normal; min-height: 40px; }
    .app.admin > .side-bg { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(16,19,34,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
    .app.admin.nav-open > .side-bg { opacity: 1; pointer-events: auto; }
    .admin-body { padding: 16px; }
    .main { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { .app.admin > .side.admin, .app.admin > .side-bg { transition: none; } }

/* sign-in: the three steps, the language switch (fix-console, 29 Oct 2026) */
.admin-auth .auth-card { width: min(100%, 460px); }
.admin-auth .auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.admin-auth .auth-lang a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--slate-2); background: var(--surface); }
.admin-auth .auth-lang a:hover { border-color: var(--royal-200); color: var(--royal); text-decoration: none; }
.admin-auth .auth-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 12px 0 14px; }
.admin-auth .auth-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--sunken); color: var(--slate); font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.admin-auth .auth-steps .n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.admin-auth .auth-steps li.now { background: var(--royal-50); color: var(--royal-700); outline: 1px solid var(--royal-200); }
.admin-auth .auth-steps li.now .n { background: var(--royal); border-color: var(--royal); color: #fff; }
.admin-auth .auth-steps li.done { color: var(--ink); }
.admin-auth .auth-steps li.done .n { background: var(--teal); border-color: var(--teal); color: #fff; }
.admin-auth .auth-hint { margin: 10px 0 0; }
.admin-auth .notice { margin: 8px 0; }
.admin-auth .note { margin-top: 12px; }
@media (max-width: 480px) { .admin-auth .auth-steps { flex-direction: column; } }
