/* ELECTRIC · Resurse umane — modulul Prezență live, terminal de pontaj, poartă, mod hală */

/* ---------- Cine e acum în fabrică ---------- */
.att-upd { font-size: 12px; color: var(--text-faint); }
.att-upd .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: 1px; }
.att-upd.old .dot { background: var(--amber); }
.att-tools .inp { width: auto; }
.att-tools .att-date { width: 140px; }
.att-tools .att-site { width: 230px; max-width: 100%; }
.att-dnav { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.att-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .att-cols { grid-template-columns: minmax(0, 1fr); } }
.kpi.t-purple::before { background: #7a3fc2; }

/* graficul pe ore: coloane subțiri, capăt rotunjit, valoare doar pe ora aleasă și pe vârf */
.hc { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: 180px auto; column-gap: 6px; padding: 18px 2px 2px; }
.hc-y { position: relative; font-size: 10.5px; color: var(--text-faint); }
.hc-y span { position: absolute; right: 0; transform: translateY(50%); }
.hc-plot { position: relative; border-bottom: 1px solid var(--border); }
.hc-grid { position: absolute; inset: 0; pointer-events: none; }
.hc-grid i { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border-soft); }
.hc-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); }
.hc-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; padding: 0 1px; border: 0; background: none; cursor: pointer; }
.hc-col:hover, .hc-col:focus-visible { background: rgba(16, 24, 40, .04); outline: none; }
.hc-col i { display: block; width: 100%; max-width: 22px; min-height: 2px; height: var(--h); border-radius: 4px 4px 0 0; background: #f08a6c; }
.hc-col.zero i { background: var(--border); height: 2px; border-radius: 1px; }
.hc-col.fut { cursor: default; } .hc-col.fut i { background: none; }
.hc-col.on i { background: var(--brand); }
.hc-col.cur i { background: var(--brand); }
.hc-col .v { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--h) + 3px); font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; }
.hc-col .tip { display: none; position: absolute; z-index: 4; left: 50%; bottom: calc(var(--h) + 18px); transform: translateX(-50%); padding: 5px 8px; border-radius: 6px; background: #1f2329; color: #fff; font-size: 11.5px; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-pop); }
.hc-col .tip b { font-size: 13px; }
.hc-col:hover .tip, .hc-col:focus-visible .tip { display: block; }
.hc-col:hover .v { visibility: hidden; }
.hc-x { grid-column: 2; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); font-size: 10.5px; color: var(--text-faint); padding-top: 3px; }
.hc-x span { text-align: center; }
@media (max-width: 760px) { .hc-x span:nth-child(3n+2), .hc-x span:nth-child(3n+3) { visibility: hidden; } .hc-col .v { font-size: 10px; } }
.att-at { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--border-soft); font-size: 13px; }
.att-at .inp { width: 110px; height: 30px; }
.att-at b.n { font-size: 18px; }
.att-legend { font-size: 11.5px; color: var(--text-faint); }

/* tabelul pe secții rămâne tabel și pe telefon (doar numere, încape) */
@media (max-width: 760px) {
  .att-dep .tbl.cards { display: table; } .att-dep .tbl.cards thead { display: table-header-group; } .att-dep .tbl.cards tbody { display: table-row-group; }
  .att-dep .tbl.cards tfoot { display: table-footer-group; } .att-dep .tbl.cards tr { display: table-row; padding: 0; }
  .att-dep .tbl.cards td { display: table-cell; width: auto !important; padding: 5px 8px; border-bottom: 1px solid var(--border-soft); }
  .att-dep .tbl.cards td.num { text-align: right !important; } .att-dep .tbl.cards td[data-l]::before { content: none; }
}
.att-note { font-size: 11.5px; color: var(--text-weak); display: block; white-space: normal !important; }
.att-print { display: none; }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: var(--border-strong); }

/* lista pentru tipărire (evacuare) — tabel simplu, se vede doar la tipărire */
@media print {
  .att-page .page-head, .att-page .toolbar, .att-page .kpis, .att-page .att-cols, .att-page .tabs, .att-page .att-screen, .att-page .notice { display: none !important; }
  .att-print { display: block !important; }
  .att-print h2 { font-size: 15px; margin: 0 0 4px; }
  .att-print p { font-size: 11px; margin: 0 0 8px; }
  .att-print table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .att-print th, .att-print td { border: 1px solid #000; padding: 3px 5px; text-align: left; }
  .att-print td.chk { width: 22mm; }
}

/* ---------- Terminale (administrare) ---------- */
.term-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.term-steps code { padding: 1px 6px; border-radius: 5px; background: var(--bg); border: 1px solid var(--border); font-size: 12px; word-break: break-all; }
.term-help { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: start; }
@media (max-width: 760px) { .term-help { grid-template-columns: minmax(0, 1fr); } }
.term-help .qrbox { text-align: center; font-size: 11.5px; color: var(--text-weak); }
.term-help .qrbox .qr { margin: 0 auto 4px; }
.tbl tr.this td { background: #fffaf6; }

/* ---------- Poarta ---------- */
.acc-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; align-items: stretch; }
@media (max-width: 760px) { .acc-top { grid-template-columns: minmax(0, 1fr); } }
.acc-big { display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: inset 4px 0 var(--green), var(--shadow); }
.acc-big b { font-size: 44px; font-weight: 800; line-height: 1; }
.acc-big span { font-size: 13px; color: var(--text-weak); }
.acc-feed { display: flex; flex-direction: column; }
.acc-ev { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--border-soft); min-width: 0; }
.acc-ev:last-child { border-bottom: 0; }
.acc-ev.ign { opacity: .6; }
.acc-ev.bad { background: var(--red-bg); opacity: 1; }
.acc-ev.fresh { animation: accfresh 2.5s ease-out; }
@keyframes accfresh { from { background: #fff4d6; } to { background: transparent; } }
.acc-ev .who { flex: 1 1 auto; min-width: 0; }
.acc-ev .who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-ev .who small { display: block; font-size: 11.5px; color: var(--text-weak); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-ev .tm { flex: none; text-align: right; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.acc-ev .tm small { display: block; font-size: 11px; font-weight: 500; color: var(--text-faint); }
.acc-ev .fl { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; width: 116px; }
@media (max-width: 560px) { .acc-ev { flex-wrap: wrap; row-gap: 2px; } .acc-ev .fl { order: 3; width: auto; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding-left: 50px; } .acc-ev .tm { font-size: 15px; } }
.acc-find { display: flex; flex-direction: column; }
.acc-find > div { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--border-soft); }

/* ---------- Terminalul de pontaj (ecran întreg, tabletă) ---------- */
.term { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: #172131; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; font-variant-numeric: tabular-nums; }
.term-top { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.term-top img { height: 34px; width: auto; flex: none; }
.term-site { flex: 1 1 auto; min-width: 0; }
.term-site b { display: block; font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-site small { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-net { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; border: 0; color: inherit; }
.term-net i { width: 9px; height: 9px; border-radius: 50%; background: #3ccf7c; }
.term-net.off i { background: #f0a020; }
.term-net.bad { background: #6b1712; cursor: pointer; }
.term-ib { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.term-ib:hover { background: rgba(255, 255, 255, .12); }
.term-main { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; min-height: 0; }
.term-clock { font-size: clamp(64px, 13vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -2px; }
.term-clock small { font-size: .38em; font-weight: 600; color: rgba(255, 255, 255, .55); letter-spacing: 0; margin-left: 6px; }
.term-date { font-size: clamp(16px, 2.4vw, 24px); color: rgba(255, 255, 255, .7); }
.term-date::first-letter { text-transform: uppercase; }
.term-idle { display: flex; align-items: center; gap: 22px; margin-top: 18px; padding: 22px 30px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 2px dashed rgba(255, 255, 255, .2); }
.term-idle .ic { position: relative; flex: none; width: 92px; height: 92px; border-radius: 18px; background: #fff; color: #172131; display: flex; align-items: center; justify-content: center; }
.term-idle .ic::after { content: ""; position: absolute; left: 12px; right: 12px; height: 3px; border-radius: 2px; background: var(--brand); top: 14px; animation: termscan 2.2s ease-in-out infinite; }
@keyframes termscan { 0%, 100% { top: 14px; } 50% { top: 74px; } }
.term-idle b { display: block; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; }
.term-idle span { display: block; font-size: clamp(14px, 1.8vw, 18px); color: rgba(255, 255, 255, .7); margin-top: 4px; }
.term-force { display: inline-flex; margin-top: 8px; padding: 6px 14px; border-radius: 99px; font-size: 16px; font-weight: 800; letter-spacing: .5px; }
.term-force.in { background: #1f6b3a; } .term-force.out { background: #2f5b98; }
.term-res { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; width: min(860px, 100%); margin-top: 14px; padding: 24px 28px; border-radius: 22px; animation: termin .18s ease-out; }
@keyframes termin { from { transform: scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }
.term-res.in { background: #12391f; box-shadow: inset 0 0 0 3px #3ccf7c; }
.term-res.out { background: #142e52; box-shadow: inset 0 0 0 3px #5a9be6; }
.term-res.warn { background: #45330b; box-shadow: inset 0 0 0 3px #f0a020; }
.term-res.err { background: #5a1410; box-shadow: inset 0 0 0 3px #ff6b5e; }
.term-res.wait { background: rgba(255, 255, 255, .06); }
.term-ph { width: 150px; height: 180px; border-radius: 16px; object-fit: cover; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 800; color: rgba(255, 255, 255, .85); }
.term-ph.ic { width: 120px; height: 120px; border-radius: 50%; }
.term-res .k { font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.term-res.in .k { color: #7ee2a6; } .term-res.out .k { color: #a9cdf6; } .term-res.warn .k { color: #ffd27a; } .term-res.err .k { color: #ffb3ab; }
.term-res .n { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; line-height: 1.1; margin-top: 4px; text-transform: uppercase; overflow-wrap: anywhere; }
.term-res .t { font-size: clamp(20px, 2.8vw, 30px); font-weight: 700; margin-top: 6px; }
.term-res .s { font-size: clamp(15px, 1.9vw, 19px); color: rgba(255, 255, 255, .78); margin-top: 6px; }
.term-res .m { font-size: clamp(17px, 2.2vw, 23px); font-weight: 700; margin-top: 8px; line-height: 1.3; }
@media (max-width: 640px) { .term-res { grid-template-columns: minmax(0, 1fr); text-align: center; } .term-ph { margin: 0 auto; width: 110px; height: 130px; } .term-idle { flex-direction: column; text-align: center; } }
.term-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 20px 14px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: rgba(255, 255, 255, .55); }
.term-foot .grow { min-width: 160px; }
.term-seg { display: inline-flex; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); }
.term-seg button { height: 44px; padding: 0 16px; border: 0; background: transparent; color: rgba(255, 255, 255, .8); font-size: 15px; font-weight: 700; cursor: pointer; }
.term-seg button + button { border-left: 1px solid rgba(255, 255, 255, .2); }
.term-seg button.on { background: #fff; color: #172131; }
.term-inp { position: absolute; left: -2000px; top: 0; width: 10px; height: 10px; opacity: 0; }
.term-cam { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 20, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.term-cam video { width: min(560px, 92vw); max-height: 62vh; border-radius: 16px; background: #000; object-fit: cover; }
.term-cam p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 15px; text-align: center; }
.term-lost { max-width: 640px; margin: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.term-lost h1 { font-size: 26px; }
.term-lost ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: rgba(255, 255, 255, .85); }
.term-lost a { color: #9cc7ff; }
.term-modal { position: fixed; inset: 0; z-index: 70; background: rgba(10, 14, 20, .8); display: flex; align-items: center; justify-content: center; padding: 16px; }
.term-modal > div { width: min(560px, 100%); max-height: 86vh; overflow-y: auto; background: #222d3d; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.term-modal li { font-size: 14px; color: rgba(255, 255, 255, .85); }

/* ---------- Mod hală (completări la .hall / .h-* / .tile) ---------- */
.hl-hello { font-size: 15px; color: var(--text-weak); }
.hl-hello b { display: block; font-size: 22px; color: var(--text); }
.hl-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hl-sum > div { padding: 8px 6px; border-radius: 12px; background: var(--bg-soft); border: 2px solid var(--border-soft); text-align: center; }
.hl-sum b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.hl-sum span { font-size: 12.5px; color: var(--text-weak); }
.hl-sum .red { border-color: #f0b4af; background: var(--red-bg); } .hl-sum .red b { color: var(--red-text); }
.hl-sum .green b { color: var(--green-text); }
.hl-sum .amber b { color: var(--amber-text); }
.hl-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hl-chip { height: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--border-strong); background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; color: var(--text); }
.hl-chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.hl-m { gap: 8px; }
.hl-m.absent { border-color: #f0b4af; background: #fffafa; }
.hl-m .top .grow { min-width: 0; }
.hl-m .top b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-m .avatar, .hl-m .avatar-img { width: 46px; height: 46px; font-size: 16px; }
.hl-tag { flex: none; padding: 4px 10px; border-radius: 99px; font-size: 13.5px; font-weight: 800; background: var(--bg); color: var(--text-weak); white-space: nowrap; }
.hl-tag.prezent, .hl-tag.neplanificat { background: var(--green-bg); color: var(--green-text); }
.hl-tag.intarziat { background: var(--amber-bg); color: var(--amber-text); }
.hl-tag.absent { background: var(--red); color: #fff; }
.hl-tag.concediu { background: #efe6fb; color: #5b2d97; }
.hl-tag.suspendat { background: var(--red-bg); color: var(--red-text); }
.hl-tag.asteptat { background: var(--blue-bg); color: var(--blue-text); }
.hl-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hl-acts .h-btn { min-height: 52px; font-size: 16px; flex: 1 1 140px; }
.hl-evs { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; color: var(--text-weak); }
.hl-evs div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hl-evs .h-link { padding: 2px 0; font-size: 14.5px; }
.hl-reasons { display: flex; flex-direction: column; gap: 8px; }
.hl-reasons .tile { min-height: 58px; }
.hl-reasons .tile b { font-size: 17px; }
.hl-time { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hl-time .h-input { width: 210px; text-align: center; }
.hall .tile.menu-tile { justify-content: flex-start; text-align: left; }
.hl-person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-soft); border: 2px solid var(--border-soft); }
.hl-person b { font-size: 18px; display: block; }
.hl-person small { font-size: 14px; color: var(--text-weak); }
.hl-person .avatar, .hl-person .avatar-img { width: 50px; height: 50px; font-size: 17px; }
.hl-pick .tile { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 64px; }
.hl-pick .tile > div { display: flex; flex-direction: column; min-width: 0; }
.hl-pick .tile b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-pick .tile .avatar, .hl-pick .tile .avatar-img { width: 42px; height: 42px; flex: none; }
.hl-kinds .tile b { font-size: 19px; }
.hl-kinds .tile.pozitiv.on { border-color: var(--green); background: var(--green-bg); box-shadow: 0 0 0 2px var(--green) inset; }
.hl-kinds .tile.negativ.on { border-color: var(--red); background: var(--red-bg); box-shadow: 0 0 0 2px var(--red) inset; }
.hl-sig .sigpad canvas { height: 220px !important; }
.hl-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hl-dates .h-input { font-size: 19px; height: 56px; }
.hl-dates label { font-size: 14px; font-weight: 700; color: var(--text-weak); display: block; margin-bottom: 4px; }
.hall .h-menu { position: absolute; right: 10px; top: 58px; z-index: 30; min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 6px; }
.hall .h-menu a, .hall .h-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font-size: 17px; color: var(--text); text-align: left; cursor: pointer; text-decoration: none !important; }
.hall .h-menu a:hover, .hall .h-menu button:hover { background: var(--bg); }
.hall .h-menu .head { padding: 8px 12px; font-size: 14px; color: var(--text-weak); }
