/* =============================================================================
   TalentVelo - UI components (update 17). Loaded on EVERY page by fragments/layout (after talentvelo.css and talentvelo-extra.css).
   1 helpers  2 pager  3 profile  4 career form  5 openings  6 user report  7 password meter  8 sign-in landing cards  9 skeleton / empty / tooltip / hover
   Uses the theme variables of talentvelo.css (dark and light theme).
   ============================================================================= */

/* ---------- 1. helpers ---------- */
[hidden] { display: none !important; }
.tv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tv-pill-ok, .tv-pill-warn, .tv-pill-bad, .tv-pill-muted, .tv-pill-info { display: inline-block; padding: 2px 10px; font-size: 11.5px; font-weight: 800; white-space: nowrap; border-radius: 999px; border: 1px solid; }
.tv-pill-ok   { color: #22C55E; background: rgba(34,197,94,.14);  border-color: rgba(34,197,94,.45); }
.tv-pill-warn { color: #F59E0B; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.5); }
.tv-pill-bad  { color: #F87171; background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.45); }
.tv-pill-info { color: #60A5FA; background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.45); }
.tv-pill-muted{ color: #94A3B8; background: rgba(148,163,184,.14); border-color: rgba(148,163,184,.45); }
[data-theme="light"] .tv-pill-ok { color: #15803D; } [data-theme="light"] .tv-pill-warn { color: #B45309; } [data-theme="light"] .tv-pill-bad { color: #B91C1C; }
[data-theme="light"] .tv-pill-info { color: #1D4ED8; } [data-theme="light"] .tv-pill-muted { color: #475569; }
.tv-field-error { margin-top: 2px; font-size: 12px; font-weight: 600; color: #F87171; } [data-theme="light"] .tv-field-error { color: #B91C1C; }
.tv-input-error { border-color: #EF4444 !important; }
.tv-main-lg { max-width: 1240px; }
#tvLoadingBar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 3000; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .15s; }
#tvLoadingBar.on { opacity: 1; }
#tvLoadingBar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--tv-gradient); animation: tv-load 1.1s ease-in-out infinite; }
@keyframes tv-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- 2. pager (printed by fragments/pagination, at the end of every list page) ---------- */
.tv-pagebar { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px 28px; }
.tv-pagebar .tv-pager { margin-top: 0; padding: 14px 18px; background: var(--tv-surface); border: 1px solid var(--tv-border); border-radius: 14px; }
.tv-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--tv-border); font-size: 13px; }
.tv-pager-info { margin: 0; color: var(--tv-muted); } .tv-pager-info b { color: var(--tv-text); }
.tv-pager-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tv-pg { min-width: 36px; padding: 7px 12px; text-align: center; font-weight: 700; text-decoration: none; color: var(--tv-text); background: var(--tv-surface-2); border: 1px solid var(--tv-border); border-radius: 9px; transition: border-color .15s, background .15s, transform .15s; }
a.tv-pg:hover { border-color: var(--tv-primary); background: rgba(59,130,246,.12); transform: translateY(-1px); }
.tv-pg.on { color: #fff; background: var(--tv-gradient); border-color: transparent; } .tv-pg.off { opacity: .45; cursor: default; }
.tv-pg.gap { min-width: 0; padding: 7px 4px; border: 0; background: none; color: var(--tv-muted); }
.tv-pager-size { display: inline-flex; align-items: center; gap: 8px; color: var(--tv-muted); font-weight: 600; }
.tv-pager-size select { padding: 6px 10px; font-size: 13px; color: var(--tv-text); background: var(--tv-input-bg); border: 1px solid var(--tv-border); border-radius: 8px; }
@media (max-width: 720px) { .tv-pagebar { padding: 0 14px 22px; } .tv-pager { justify-content: center; text-align: center; } .tv-pg { padding: 7px 10px; min-width: 32px; } .tv-pg-wide { display: none; } }

/* ---------- 3. profile page + dashboard profile card ---------- */
.tv-pf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 26px; padding: 22px 26px; }
.tv-pf-avatar { flex: none; width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; color: #fff; font-size: 38px; font-weight: 800; background: var(--tv-gradient); border: 4px solid #3B82F6; }
.tv-pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tv-pf-id { flex: 1 1 320px; min-width: 0; } .tv-pf-id h1 { margin: 0 0 2px; font-size: 26px; font-weight: 800; overflow-wrap: anywhere; }
.tv-pf-role { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--tv-muted); }
.tv-pf-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; font-size: 13.5px; color: var(--tv-muted); }
.tv-pf-bar { max-width: 420px; } .tv-pf-bar b { display: block; margin-bottom: 4px; font-size: 13px; } .tv-pf-bar .tv-progress { margin-bottom: 0; }
.tv-pf-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin-left: auto; } .tv-pf-actions .tv-row { justify-content: flex-end; }
.tv-social-btns { display: flex; gap: 8px; }
.tv-social-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--tv-accent-text); background: var(--tv-surface-2); border: 1px solid var(--tv-border); border-radius: 10px; transition: transform .15s, border-color .15s; }
.tv-social-btn:hover { transform: translateY(-2px); border-color: var(--tv-primary); } .tv-social-btn svg { width: 19px; height: 19px; fill: currentColor; }
.tv-pf-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.tv-pf-side, .tv-pf-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tv-pf-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.tv-pf-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; } .tv-pf-title h2 { margin: 0; font-size: 17px; font-weight: 800; }
.tv-kv { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tv-border); } .tv-kv:last-child { border-bottom: 0; padding-bottom: 0; } .tv-kv:first-child { padding-top: 0; }
.tv-kv-icon { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: rgba(59,130,246,.12); border-radius: 9px; }
.tv-kv-body { flex: 1; min-width: 0; } .tv-kv-body small { display: block; font-size: 12px; color: var(--tv-muted); } .tv-kv-body strong { display: block; font-size: 14.5px; font-weight: 800; overflow-wrap: anywhere; }
.tv-kv-body .tv-pill-ok, .tv-kv-body .tv-pill-warn, .tv-kv-body .tv-pill-muted, .tv-kv-body .tv-pill-bad { margin-top: 3px; } .tv-kv-act { flex: none; align-self: center; }
.tv-exp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; background: var(--tv-surface-2); border: 1px solid var(--tv-border); border-radius: 14px; }
.tv-exp > div { padding: 14px 8px; border-right: 1px solid var(--tv-border); } .tv-exp > div:last-child { border-right: 0; }
.tv-exp strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.15; white-space: nowrap; } .tv-exp span { display: block; margin-top: 2px; font-size: 12px; color: var(--tv-muted); }
.tv-exp .tv-empty-val { font-size: 15px; font-weight: 700; color: var(--tv-muted); }
.tv-resume-file { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 12px; background: var(--tv-surface-2); border: 1px solid var(--tv-border); border-radius: 12px; }
.tv-resume-icon { flex: none; width: 40px; height: 46px; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; font-size: 10px; font-weight: 900; color: #fff; background: #DC2626; border-radius: 6px; }
.tv-resume-file b { display: block; font-size: 14px; overflow-wrap: anywhere; } .tv-resume-file small { color: var(--tv-muted); font-size: 12px; }
.tv-resume-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.tv-timeline { position: relative; margin: 0; padding: 0 0 0 22px; list-style: none; } .tv-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--tv-border); }
.tv-timeline li { position: relative; padding: 0 0 14px; } .tv-timeline li:last-child { padding-bottom: 0; }
.tv-timeline li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--tv-border); border: 2px solid var(--tv-surface); } .tv-timeline li:first-child::before { background: var(--tv-primary); }
.tv-timeline b { font-size: 14.5px; } .tv-timeline span { margin-left: 8px; font-size: 13px; color: var(--tv-muted); }
.tv-todo { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tv-todo a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--tv-text); text-decoration: none; background: var(--tv-surface-2); border: 1px solid var(--tv-border); border-radius: 10px; transition: border-color .15s, transform .15s; }
.tv-todo a:hover { border-color: var(--tv-primary); transform: translateX(2px); } .tv-todo em { font-style: normal; font-weight: 800; color: var(--tv-accent-text); }
.tv-updated-line { font-size: 12.5px; color: var(--tv-muted); text-align: right; }
@media (max-width: 1000px) { .tv-pf-grid, .tv-pf-two { grid-template-columns: minmax(0, 1fr); } .tv-pf-actions { align-items: flex-start; margin-left: 0; } .tv-pf-actions .tv-row { justify-content: flex-start; } }
@media (max-width: 560px) { .tv-pf-head { padding: 18px; justify-content: center; text-align: center; } .tv-pf-id { flex-basis: 100%; } .tv-pf-line { justify-content: center; } .tv-pf-bar { margin: 0 auto; } .tv-pf-avatar { width: 96px; height: 96px; } .tv-pf-actions { align-items: center; width: 100%; } .tv-pf-actions .tv-row { justify-content: center; } }
/* the mobile-style card (dashboard, all screen sizes) */
.tv-pc { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 20px 20px; border-top: 3px solid var(--tv-primary); }
.tv-pc .tv-pc-edit { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px; color: var(--tv-text); background: var(--tv-surface-2); border: 1px solid var(--tv-border); border-radius: 50%; transition: transform .15s; }
.tv-pc .tv-pc-edit:hover { transform: rotate(-12deg) scale(1.06); }
.tv-pc .tv-pf-avatar { width: 96px; height: 96px; font-size: 32px; margin-bottom: 12px; } .tv-pc h2 { margin: 0; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.tv-pc-role { margin: 2px 0 10px; font-size: 13.5px; color: var(--tv-muted); } .tv-pc-open { margin-bottom: 14px; }
.tv-pc .tv-exp { width: 100%; margin-bottom: 12px; } .tv-pc .tv-exp strong { font-size: 15px; white-space: normal; } .tv-pc .tv-exp span { font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
.tv-pc-rows { width: 100%; text-align: left; font-size: 13.5px; } .tv-pc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; }
.tv-pc-row > span:first-child { color: var(--tv-muted); white-space: nowrap; }
.tv-pc-row > span:last-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.tv-pc-skills { width: 100%; margin: 8px 0 12px; text-align: left; font-size: 13.5px; } .tv-pc-skills > b { display: block; margin-bottom: 6px; }
.tv-pc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; } .tv-pc-actions .tv-btn { width: 100%; padding: 10px 8px; font-size: 13px; } .tv-pc-actions form { margin: 0; } .tv-pc-actions .tv-pc-wide { grid-column: 1 / -1; }
.tv-pc-foot { margin-top: 12px; font-size: 12.5px; color: var(--tv-muted); }

/* dashboard: both columns end at the same height (no empty space under the shorter one) */
@media (min-width: 1101px) { .tv-grid-2.tv-stretch { align-items: stretch; } .tv-stretch > .tv-col > .tv-fill { flex: 1 1 auto; } .tv-stretch .tv-fill > .tv-card { height: 100%; } .tv-stretch > .tv-col:first-child > .tv-card { flex: 1 1 auto; } }
.tv-duo.tv-duo-one { grid-template-columns: minmax(0, 1fr) !important; }
.tv-details-col { flex-direction: column !important; gap: 10px !important; }

/* ---------- 4. career form ---------- */
.tv-cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; } .tv-cf-grid .tv-span-2 { grid-column: 1 / -1; }
.tv-cf-section { margin-bottom: 20px; } .tv-cf-section > h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; } .tv-cf-section > p { margin: 0 0 14px; font-size: 13px; color: var(--tv-muted); }
.tv-switch { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; cursor: pointer; font-weight: 700; } .tv-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tv-switch i { position: relative; flex: none; width: 46px; height: 26px; background: var(--tv-border); border-radius: 999px; transition: background .2s; }
.tv-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; }
.tv-switch input:checked + i { background: #22C55E; } .tv-switch input:checked + i::after { transform: translateX(20px); } .tv-switch input:focus-visible + i { outline: 2px solid var(--tv-primary); outline-offset: 2px; }
.tv-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tv-quick button { padding: 4px 12px; font-size: 12px; font-weight: 700; color: var(--tv-accent-text); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); border-radius: 999px; cursor: pointer; } .tv-quick button:hover { background: rgba(59,130,246,.22); }
@media (max-width: 720px) { .tv-cf-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 5. openings: filters and cards ---------- */
.tv-op-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
.tv-op-filters { position: sticky; top: 84px; padding: 0; overflow: hidden; }
.tv-op-filters > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 17px; font-weight: 800; cursor: pointer; list-style: none; } .tv-op-filters > summary::-webkit-details-marker { display: none; }
.tv-op-fbody { padding: 0 18px 16px; max-height: calc(100vh - 170px); overflow-y: auto; }
.tv-fgroup { padding: 12px 0; border-top: 1px solid var(--tv-border); }
.tv-fgroup > summary { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; font-weight: 800; cursor: pointer; list-style: none; } .tv-fgroup > summary::-webkit-details-marker { display: none; }
.tv-fgroup > summary::after { content: "\2303"; font-size: 12px; color: var(--tv-muted); transition: transform .2s; } .tv-fgroup:not([open]) > summary::after { transform: rotate(180deg); } .tv-fgroup[open] > summary { margin-bottom: 8px; }
.tv-fopt { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; cursor: pointer; } .tv-fopt input { width: 17px; height: 17px; accent-color: var(--tv-primary); cursor: pointer; }
.tv-fskills { max-height: 190px; overflow-y: auto; padding-right: 4px; }
.tv-fselect { width: 100%; padding: 9px 12px; font-size: 14px; color: var(--tv-text); background: var(--tv-input-bg); border: 1px solid var(--tv-border); border-radius: 9px; }
.tv-range { position: relative; height: 26px; margin: 4px 2px 0; }
.tv-range input[type="range"] { position: absolute; left: 0; width: 100%; top: 4px; margin: 0; height: 18px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.tv-range input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--tv-border); border-radius: 4px; } .tv-range input[type="range"]::-moz-range-track { height: 4px; background: var(--tv-border); border-radius: 4px; }
.tv-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: -7px; background: var(--tv-surface); border: 2px solid var(--tv-primary); border-radius: 50%; cursor: pointer; }
.tv-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; background: var(--tv-surface); border: 2px solid var(--tv-primary); border-radius: 50%; cursor: pointer; }
.tv-range-out { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12.5px; color: var(--tv-muted); } .tv-range-out b { color: var(--tv-text); }
.tv-op-fbtns { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--tv-border); } .tv-op-fbtns .tv-btn { flex: 1; }
.tv-op-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 12px; }
.tv-op-bar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1 1 320px; min-width: 0; }
.tv-op-search { flex: 1 1 220px; min-width: 0; padding: 10px 14px; font-size: 14px; color: var(--tv-text); background: var(--tv-input-bg); border: 1px solid var(--tv-border); border-radius: 10px; }
.tv-op-count { margin: 0; font-size: 14px; font-weight: 700; } .tv-op-bar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tv-op-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--tv-muted); }
.tv-op-sort select { padding: 8px 10px; font-size: 13.5px; font-weight: 700; color: var(--tv-text); background: var(--tv-input-bg); border: 1px solid var(--tv-border); border-radius: 9px; }
.tv-chips-active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tv-chips-active a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--tv-accent-text); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); border-radius: 999px; }
.tv-chips-active a::after { content: "\00D7"; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; border-radius: 50%; background: rgba(59,130,246,.2); } .tv-chips-active a:hover { border-color: var(--tv-primary); }
.tv-op-list { display: flex; flex-direction: column; gap: 16px; }
.tv-opening { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 20px; background: var(--tv-surface); border: 1px solid var(--tv-border); border-radius: 16px; box-shadow: var(--tv-shadow); transition: border-color .2s, transform .2s, box-shadow .2s; }
.tv-opening:hover { border-color: var(--tv-primary); transform: translateY(-2px); }
.tv-op-logo { grid-row: 1 / span 2; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #fff; background: var(--tv-gradient); border-radius: 14px; }
.tv-op-main { min-width: 0; } .tv-op-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; } .tv-op-title h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--tv-text); overflow-wrap: anywhere; }
.tv-op-company { margin: 2px 0 6px; font-size: 14px; font-weight: 700; } .tv-op-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 8px; font-size: 13.5px; color: var(--tv-muted); }
.tv-op-desc { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--tv-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-op-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tv-op-skill { padding: 4px 12px; font-size: 13px; font-weight: 700; color: var(--tv-accent-text); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25); border-radius: 8px; }
.tv-op-skill.hit { color: #22C55E; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); } /* Matched suffix removed for clean chip layout */ [data-theme="light"] .tv-op-skill.hit { color: #15803D; }
.tv-op-more { margin: 0; } .tv-op-more > summary { display: inline-block; margin: 4px 0; font-size: 14px; font-weight: 800; color: var(--tv-accent-text); cursor: pointer; list-style: none; } .tv-op-more > summary::-webkit-details-marker { display: none; }
.tv-op-more[open] > summary { margin-bottom: 8px; } .tv-op-more p { margin: 0; font-size: 14px; line-height: 1.65; white-space: pre-line; color: var(--tv-muted); }
.tv-op-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tv-score { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; font-weight: 800; white-space: nowrap; border-radius: 10px; border: 1px solid; } .tv-score::before { content: "\2605"; }
.tv-score.good { color: #D97706; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.45); } .tv-score.mid { color: #60A5FA; background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.4); }
.tv-score.low { color: var(--tv-muted); background: var(--tv-surface-2); border-color: var(--tv-border); } [data-theme="light"] .tv-score.good { color: #B45309; } [data-theme="light"] .tv-score.mid { color: #1D4ED8; }
.tv-op-foot { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; } .tv-op-foot form { margin: 0; }
@media (max-width: 1100px) { .tv-op-layout { grid-template-columns: minmax(0, 1fr); } .tv-op-filters { position: static; } .tv-op-fbody { max-height: none; } }
@media (max-width: 640px) { .tv-opening { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; } .tv-op-logo { width: 44px; height: 44px; font-size: 19px; border-radius: 11px; } .tv-op-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .tv-op-foot { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- 6. user report ---------- */
.tv-ur-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tv-ur-tile { display: block; padding: 12px 14px; color: inherit; text-decoration: none; background: var(--tv-surface); border: 1px solid var(--tv-border); border-radius: 14px; transition: border-color .15s, transform .15s; }
.tv-ur-tile:hover, .tv-ur-tile.on { border-color: var(--tv-primary); } .tv-ur-tile:hover { transform: translateY(-2px); }
.tv-ur-tile strong { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; } .tv-ur-tile span { font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--tv-muted); }
.tv-ur-filter { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(5, minmax(120px, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 14px; } .tv-ur-filter .tv-field { margin-bottom: 0; }
.tv-ur-filter select, .tv-ur-filter input[type="search"] { width: 100%; padding: 10px 12px; font-size: 14px; color: var(--tv-text); background: var(--tv-input-bg); border: 1px solid var(--tv-border); border-radius: 10px; }
.tv-ur-btns { display: flex; gap: 8px; } .tv-ur-table th a { color: inherit; text-decoration: none; white-space: nowrap; } .tv-ur-table th a:hover { color: var(--tv-text); }
.tv-ur-table th a.on::after { content: " \25BE"; } .tv-ur-table th a.on.asc::after { content: " \25B4"; } .tv-ur-table td[data-label="Name"] { min-width: 190px; }
.tv-ur-user { display: flex; align-items: center; gap: 10px; min-width: 0; } .tv-ur-user .tv-avatar { flex: none; } .tv-ur-user b { display: block; font-size: 14px; overflow-wrap: anywhere; } .tv-ur-user small { display: block; font-size: 12px; color: var(--tv-muted); overflow-wrap: anywhere; }
.tv-ur-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .tv-ur-acts form { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.tv-ur-acts select { padding: 5px 8px; font-size: 12.5px; color: var(--tv-text); background: var(--tv-input-bg); border: 1px solid var(--tv-border); border-radius: 8px; }
@media (max-width: 1200px) { .tv-ur-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tv-ur-filter .tv-ur-search { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .tv-ur-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tv-ur-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tv-ur-filter { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 7. password meter ---------- */
.tv-pwmeter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; } .tv-pwmeter i { height: 5px; background: var(--tv-border); border-radius: 4px; transition: background .2s; }
.tv-pwmeter.s1 i:nth-child(-n+1) { background: #EF4444; } .tv-pwmeter.s2 i:nth-child(-n+2) { background: #F59E0B; } .tv-pwmeter.s3 i:nth-child(-n+3) { background: #84CC16; } .tv-pwmeter.s4 i { background: #22C55E; }
.tv-pwlabel { min-height: 18px; margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: var(--tv-muted); }
.tv-pwlabel.s1 { color: #EF4444; } .tv-pwlabel.s2 { color: #F59E0B; } .tv-pwlabel.s3 { color: #84CC16; } .tv-pwlabel.s4 { color: #22C55E; }
.tv-pw-match { min-height: 18px; margin: 4px 0 0; font-size: 12.5px; font-weight: 700; } .tv-pw-match.ok { color: #22C55E; } .tv-pw-match.bad { color: #EF4444; }
[data-theme="light"] .tv-pw-match.ok, [data-theme="light"] .tv-pwlabel.s4 { color: #15803D; } [data-theme="light"] .tv-pw-match.bad, [data-theme="light"] .tv-pwlabel.s1 { color: #B91C1C; }

/* ---------- 8. sign-in landing cards (left and right panel) ---------- */
.tv-side .tv-side-card { transition: border-color .2s, transform .2s; } .tv-side .tv-side-card:hover { border-color: var(--tv-primary); transform: translateY(-1px); }
.tv-side-card.grow { flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.tv-hello { color: #fff; background: var(--tv-hero, var(--tv-gradient)); border-color: transparent; } .tv-hello-date { font-size: 12px; font-weight: 600; opacity: .85; }
.tv-hello-title { margin: 4px 0 2px; font-size: 17px; font-weight: 800; } .tv-hello-clock { font-size: 26px; font-weight: 800; letter-spacing: 1px; line-height: 1.2; font-variant-numeric: tabular-nums; } .tv-hello-sub { margin-top: 6px; font-size: 12.5px; opacity: .9; }
.tv-feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: space-around; }
.tv-feat li { display: flex; align-items: flex-start; gap: 10px; } .tv-feat li > i { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 16px; background: rgba(59,130,246,.14); border-radius: 9px; }
.tv-feat b { display: block; font-size: 13.5px; font-weight: 800; } .tv-feat span { display: block; font-size: 12px; line-height: 1.4; color: var(--tv-muted); }
.tv-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; justify-content: space-around; }
.tv-tips li { font-size: 12.5px; line-height: 1.45; color: var(--tv-muted); } .tv-tips li b { color: var(--tv-text); font-size: 13px; } .tv-tagrow { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; } .tv-tagrow span { padding: 2px 9px; font-size: 11px; font-weight: 700; color: var(--tv-accent-text); background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.28); border-radius: 999px; }
.tv-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; } .tv-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.4; }
.tv-steps b { flex: none; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; color: #fff; background: var(--tv-gradient); }
.tv-open-list { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow: hidden; }
.tv-open-item { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; background: var(--tv-surface-2); border: 1px solid var(--tv-border); border-radius: 12px; min-width: 0; }
.tv-open-item strong { font-size: 13.5px; font-weight: 800; color: var(--tv-accent-text); overflow-wrap: anywhere; } .tv-open-item .co { font-size: 12.5px; font-weight: 700; } .tv-open-item span { font-size: 12px; color: var(--tv-muted); overflow-wrap: anywhere; } .tv-open-item em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #22C55E; }
[data-theme="light"] .tv-open-item em { color: #15803D; }
.tv-open-list { justify-content: flex-start; } .tv-open-item { flex: 1 1 auto; max-height: 150px; justify-content: center; }
@media (min-width: 1291px) and (max-height: 880px) { .tv-open-item:nth-child(n+5) { display: none; } }
@media (min-width: 1291px) and (max-height: 800px) { .tv-open-item:nth-child(n+4) { display: none; } .tv-feat li span { display: none; } }
@media (min-width: 1291px) and (max-height: 720px) { .tv-open-item:nth-child(n+3) { display: none; } .tv-tips li:nth-child(n+3) { display: none; } .tv-hello-sub { display: none; } }
@media (min-width: 1291px) and (max-height: 640px) { .tv-side-card.tips-card { display: none; } .tv-open-item:nth-child(n+2) { display: none; } }

/* ---------- 9. skeleton loaders, empty states, tooltips, hover ---------- */
.tv-skel { position: relative; overflow: hidden; background: var(--tv-surface-2); border: 1px solid var(--tv-border); border-radius: 14px; }
.tv-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(148,163,184,.18), transparent); transform: translateX(-100%); animation: tv-shimmer 1.2s infinite; }
@keyframes tv-shimmer { to { transform: translateX(100%); } }
.tv-skel-card { display: flex; gap: 14px; padding: 18px; height: 124px; } .tv-skel-card > i { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--tv-border); } .tv-skel-card > div { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.tv-skel-card b { display: block; height: 12px; border-radius: 6px; background: var(--tv-border); } .tv-skel-card b:nth-child(1) { width: 55%; } .tv-skel-card b:nth-child(2) { width: 80%; } .tv-skel-card b:nth-child(3) { width: 40%; }
.tv-skel-list { display: flex; flex-direction: column; gap: 14px; }
.tv-empty-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; text-align: center; color: var(--tv-muted); border: 1.5px dashed var(--tv-border); border-radius: 16px; background: var(--tv-surface-2); }
.tv-empty-card .ico { font-size: 38px; line-height: 1; } .tv-empty-card h4 { margin: 0; font-size: 16px; font-weight: 800; color: var(--tv-text); } .tv-empty-card p { margin: 0; font-size: 13.5px; max-width: 420px; }
[data-tip] { position: relative; }
/* the tooltip does not exist (display: none) until hover, so it never makes the page scroll sideways */
[data-tip]::before { content: attr(data-tip); display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 220px; padding: 6px 10px; font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center; color: #fff; background: #0F172A; border: 1px solid #334155; border-radius: 8px; pointer-events: none; z-index: 50; }
[data-tip]:hover::before, [data-tip]:focus-visible::before { display: block; animation: tv-tip .15s ease-out; }
@keyframes tv-tip { from { opacity: 0; margin-bottom: -4px; } to { opacity: 1; margin-bottom: 0; } }
.tv-op-bar-right [data-tip]::before, .tv-card-head .tv-row [data-tip]::before { left: auto; right: 0; transform: none; }
.tv-card { transition: border-color .2s, box-shadow .2s; } .tv-card:hover { border-color: rgba(59,130,246,.45); }
.tv-btn { transition: transform .15s, box-shadow .2s, background .2s; } .tv-btn:hover:not(:disabled) { transform: translateY(-1px); } .tv-stat, .tv-kpi, .tv-job-row, .tv-candidate { transition: border-color .2s, transform .2s; } .tv-stat:hover, .tv-job-row:hover { transform: translateY(-1px); border-color: var(--tv-primary); }
@media (prefers-reduced-motion: reduce) { #tvLoadingBar::after, .tv-skel::after { animation: none; } .tv-switch i, .tv-switch i::after, .tv-pwmeter i, .tv-opening, .tv-card, .tv-btn { transition: none; } }
