/* ungvien.css  -  tansinh tuyendung v1.2 (3 Dec 2026)  -  tuyendung.tansinh.info/ungvien.html "Ứng viên"
   The staff page's look: gv.tansinh.info's desk (a grey desk, white boxes, the round logo in the bar) in this site's colours.
   The candidate's test and answers are drawn by dangkylamviec's own scripts with dangkylamviec's own three styles, loaded from
   dangkylamviec.tansinh.info (ungvien.js, loadDraw). Those styles read the names in the block "what dangkylamviec's styles
   read" below: on their own pages dklv.css gives them; here they get this page's colours and font.
   Never use the class names .row .note .content .ico .tag here for something else: dangkylamviec's drawing uses them. */

@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/BeVietnamPro-Regular.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/BeVietnamPro-Italic.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/BeVietnamPro-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/BeVietnamPro-Bold.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/BeVietnamPro-ExtraBold.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #10243E;
  --body: #2B3B52;
  --muted: #56657A;
  --line: #CDD6E1;
  --tint: #F1F5FA;
  --desk: #E7ECF2;
  --blue: #0171CE;
  --blue-d: #015BA7;
  --navy: #0B3566;
  --red: #E11D23;
  --red-d: #C1151B;
  --yellow: #FCB61A;
  --yellow-soft: #FFF3D1;
  --good: #15803D;
  --good-soft: #E7F4EC;
  --font: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  /* what dangkylamviec's styles read (dklv-parts.css, dklv-quiz.css, dklv-review.css) */
  --paper: #fff;
  --paper-2: #fff;
  --ink-2: #56657A;
  --accent: #0171CE;
  --accent-ink: #fff;
  --accent-wash: rgba(1, 113, 206, .10);
  --red-ink: #C1151B;
  --danger: #C1151B;
  --rule: rgba(16, 36, 62, .15);
  --rule-strong: rgba(16, 36, 62, .32);
  --lift: 0 14px 30px -18px rgba(16, 36, 62, .5);
  --serif: var(--font);
  --sans: var(--font);
  --page-pad: 22px;
  --fold: rgba(16, 36, 62, .10);
  --fold-deep: rgba(16, 36, 62, .18);
  --handin-bg: #F6F8FC;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 16px/1.55 var(--font); }
[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gap { flex: 1 1 8px; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; }
.msg { color: var(--red-d); font-size: 14px; min-height: 0; }
.opt { color: var(--muted); font-size: 13px; font-weight: 400; }

/* ---- sign in ---- */
.boot { padding: 80px 20px; text-align: center; color: var(--muted); }
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.gate-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px 28px; }
.gate-logo { display: block; width: 150px; height: 100px; margin: 0 auto 6px; }
.gate-card h1 { font-size: 24px; line-height: 1.25; text-align: center; }
.gate-sub { margin: 6px 0 18px; text-align: center; color: var(--muted); font-size: 15px; }
.lab { display: block; margin: 12px 0 5px; font-size: 14px; font-weight: 600; }
input[type="email"], input[type="password"], input[type="search"], textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15.5px; }
textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 113, 206, .18); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--blue-d); border-color: var(--blue-d); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover:not(:disabled) { background: var(--red-d); border-color: var(--red-d); }
.btn.call { background: var(--good); border-color: var(--good); color: #fff; }
.btn.call:hover:not(:disabled) { background: #116A33; border-color: #116A33; }
.btn.zalo { border-color: var(--blue); color: var(--blue-d); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.wide { width: 100%; min-height: 46px; margin-top: 18px; font-size: 16px; }
.link { padding: 6px 0; border: 0; background: none; color: var(--blue-d); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- the bar ---- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.bar-logo { display: block; border-radius: 50%; }
.bar-title { font-size: 18px; font-weight: 800; }
.bar-link { color: var(--blue-d); font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { font-size: 14px; color: var(--muted); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag { padding: 3px 9px; background: var(--yellow); font-size: 12.5px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--body); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #94A3B8; }
.pill.is-up .dot, .rdock.is-up .dot { background: #22C55E; }
.pill.is-call { border-color: var(--good); color: var(--good); }

/* ---- a call in progress ---- */
.callbar { position: sticky; top: 56px; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; background: var(--navy); color: #fff; }
.callbar-t { flex: 1 1 240px; font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.callbar.is-done { background: #33475F; }
.callbar .btn.ghost { color: #fff; }

/* ---- the list ---- */
.page { max-width: 1240px; margin: 0 auto; padding: 18px 16px 120px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tools input[type="search"] { width: 220px; min-height: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--body); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
#listNote { margin: 12px 2px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }

/* the note: on top of the card */
.card-note { padding: 12px 16px 11px; background: var(--yellow-soft); border-bottom: 1px solid #F0DDA8; }
.card-note.is-none { background: var(--tint); border-bottom: 1px dashed var(--line); }
.card-note-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; font-size: 15px; line-height: 1.5; color: var(--ink); }
.card-note.is-none .card-note-t { color: var(--muted); font-size: 14px; }
.card-note-by { margin-top: 4px; font-size: 12.5px; color: var(--muted); }

.card-main { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.card-id, .one-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.av { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 16px; font-weight: 800; }
.card-name { font-size: 18px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.card-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; color: var(--muted); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #E3F0FD; color: var(--blue-d); font-size: 12px; font-weight: 700; }
.card-facts { font-size: 14px; color: var(--body); }
.meter { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--good); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.card-quick { display: grid; gap: 8px; padding-top: 4px; }

/* ---- one candidate ---- */
.one-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; margin: 10px 0 16px; align-items: start; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.box h3 { font-size: 17px; font-weight: 800; }
.box h3 + .hint { margin: 4px 0 10px; }
.one-head { display: grid; gap: 12px; }
.one-id h2 { font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.state { padding: 9px 12px; border-left: 4px solid var(--good); background: var(--good-soft); font-size: 14.5px; }
.one-notes .btns { margin-top: 8px; align-items: center; }
.notes { margin-top: 12px; }
.notes > li { padding: 11px 0; border-top: 1px solid var(--line); }
.notes-t { white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; }
.notes-by { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.notes-by .link { padding: 0; font-size: 12.5px; }
.notes-none { color: var(--muted); font-size: 14px; }
#firstBox { margin-top: 18px; }
.notes--first > li { border-top-style: dashed; }

/* the test and the answers: dangkylamviec's drawing sits in here */
.work { margin-top: 6px; }
.work .rv-row { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.work .rv-row:first-child { border-top: 0; }
.work .rv-row > .note { margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .3px; color: var(--muted); text-transform: uppercase; }
.work .note-sub { margin-left: 8px; font-weight: 600; text-transform: none; color: var(--red-d); }
.work .spread { box-shadow: none; }
.work video { max-width: 100%; }
.work img { max-width: 100%; height: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--tint); font-size: 12.5px; font-weight: 600; }
.tag-warn { background: var(--yellow-soft); color: #7A4E00; }
/* the plain drawing, used only when dangkylamviec's scripts did not load */
.fb { padding: 16px 0; border-top: 1px solid var(--line); }
.fb:first-child { border-top: 0; }
.fb h4 { margin: 0 0 6px; font-size: 17px; }
.fb-l { margin: 12px 0 4px; font-size: 13px; font-weight: 800; color: var(--muted); }
.fb p { white-space: pre-line; overflow-wrap: anywhere; }
.fb video { display: block; width: 100%; max-width: 640px; margin-top: 6px; background: #000; border-radius: 10px; }

/* ---- dialogs ---- */
dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 80px rgba(16, 36, 62, .4); }
dialog::backdrop { background: rgba(16, 36, 62, .5); }
.dlg { padding: 24px; display: grid; gap: 12px; }
.dlg h2 { font-size: 20px; line-height: 1.3; }
.dlg-who { font-size: 17px; font-weight: 800; color: var(--navy); }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 30px; font-size: 15.5px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.dlg-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ---- ring.tansinh.info's calling frame. It never moves in the page (a frame that moves reloads): folded = 0 tall ---- */
.rdock { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 380px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(16, 36, 62, .3); overflow: hidden; }
.rd-strip { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--ink); color: #fff; font-size: 14px; }
.rd-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #CBD5E1; font-size: 13px; }
.rd-toggle { min-width: 34px; min-height: 30px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px; cursor: pointer; }
.rd-foot { padding: 8px 12px; background: var(--yellow-soft); font-size: 13.5px; line-height: 1.45; }
.rd-body { height: 0; overflow: hidden; }
.rdock.is-open .rd-body { height: 520px; max-height: calc(100vh - 150px); }
.rd-body iframe { display: block; width: 100%; height: 520px; border: 0; }

/* ---- small messages ---- */
.toasts { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translateX(-50%); display: grid; gap: 8px; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 10px 30px rgba(16, 36, 62, .35); }
.toast.bad { background: var(--red-d); }
.toast.good { background: var(--good); }

@media (max-width: 860px) {
  .one-top { grid-template-columns: minmax(0, 1fr); }
  .bar-link, .who { display: none; }
  .tools input[type="search"] { flex: 1 1 160px; width: auto; }
  .callbar { top: 56px; }
}
@media (max-width: 520px) {
  .page { padding: 14px 12px 120px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .box { padding: 14px; }
  .rdock { right: 8px; bottom: 8px; max-width: calc(100vw - 16px); }
}
@media print { .bar, .tools, .rdock, .callbar, .btns { display: none !important; } body { background: #fff; } }
