/* Portalul angajatului (v1.2) — prefix .pt-. Ecranele comune cu chioșcul folosesc clasele .ky-* (din dash.css, mari, pentru tabletă);
   aici: cadrul portalului (telefon întâi, compact, fără derulare laterală la 390 px), variantele compacte ale claselor .ky-* sub .pt
   și clasele noi folosite de ecranele comune (.pt-chip, .pt-mbar, .pt-weeks…) atât la chioșc, cât și în portal. */

/* ---------- clase noi folosite de ecranele comune (chioșc + portal) ---------- */
.pt-mbar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-mbar b { flex: 1 1 auto; text-align: center; text-transform: capitalize; font-size: 24px; font-weight: 800; }
.pt-chip { display: inline-block; min-width: 30px; padding: 1px 6px; border-radius: 6px; background: var(--c, #696d71); color: #fff; font-weight: 800; font-size: 13px; line-height: 1.5; text-align: center; vertical-align: middle; }
.pt-chip.lv { background: var(--blue); }
.pt-free { font-size: 13px; color: var(--text-faint); font-weight: 600; }
.pt-small { font-size: 15px; }
.pt-h2 { margin: 6px 0 0; font-size: 22px; }
.pt-doc-t { margin: 0; font-size: 24px; }
.pt-stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.pt-tight { padding-top: 10px; padding-bottom: 10px; }
.pt-late { color: var(--red-text); }
.pt-resp { color: var(--text) !important; margin-top: 4px; }
.pt-num { min-width: 90px; }
.ky-btn.pt-mini { min-height: 40px; font-size: 15px; padding: 0 14px; margin-top: 8px; border-width: 1px; }
.pt-sheet { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.pt-sheet .sheet-scale { width: 210mm; transform-origin: 0 0; }
.pt-sign, .pt-sign > * { min-width: 0; }
.ky-cal button.ky-day { text-align: left; cursor: pointer; font: inherit; color: inherit; align-items: stretch; -webkit-tap-highlight-color: transparent; }
.ky-day.pt-sel { border-color: var(--focus); box-shadow: inset 0 0 0 2px var(--focus); }
.ky-day.pt-past { opacity: .7; }
.ky-day .c .pt-chip { font-size: 15px; }
.pt-daycard .kv { font-size: 16px; }
.pt-daycard h3 { text-transform: none; }
/* programul: calendar pe ecrane late, listă pe săptămâni pe telefon */
.pt-weeks { display: none; flex-direction: column; gap: 8px; }
.pt-week { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pt-wd { display: grid; grid-template-columns: 66px 46px minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 10px; border-top: 1px solid var(--border-soft); font-size: 14px; }
.pt-wd:first-child { border-top: 0; }
.pt-wd.we { background: #f8f9fa; }
.pt-wd.hol { background: #fff6f3; }
.pt-wd.today { box-shadow: inset 4px 0 0 var(--brand); }
.pt-wd.past { opacity: .6; }
.pt-wd-d { white-space: nowrap; color: var(--text-weak); }
.pt-wd-d b { color: var(--text); }
.pt-wd-t { min-width: 0; overflow-wrap: anywhere; }
.pt-wd-t em { display: block; font-style: normal; font-size: 12.5px; color: var(--brand-dark); }
.pt-wd-t em.amb { color: var(--amber-text); }
@media (max-width: 700px) { .pt-cal-wide { display: none; } .pt-weeks { display: flex; } }
/* chioșc: spațiul de jos = înălțimea reală a barei fixe (--ky-bar, măsurată în app/kiosk.js); pe telefon bara e compactă */
.ky .ky-body { padding-bottom: calc(var(--ky-bar, 106px) + 24px); }
@media (max-width: 560px) {
  .ky .ky-body { padding-bottom: calc(var(--ky-bar, 150px) + 20px); }
  .ky-bottom { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .ky-bottom > div { flex-wrap: wrap; gap: 8px; }
  .ky-bottom .ky-btn { flex: 1 1 0; min-height: 52px; padding: 0 12px; font-size: 17px; }
  .ky-bottom .ky-timer { flex: 1 1 100%; margin-left: 0; text-align: center; font-size: 13px; }
}
/* chioșc: „Telefonul meu” */
.pt-kphone { display: flex; flex-direction: column; gap: 14px; }
.pt-kqr { flex-direction: row; align-items: center; gap: 26px; flex-wrap: wrap; }
.pt-kqr .qr { flex: none; background: #fff; padding: 6px; border: 1px solid var(--border); border-radius: 10px; }
.pt-url { display: block; font-size: 22px; overflow-wrap: anywhere; }
.pt-code { font-size: 44px; font-weight: 800; letter-spacing: 4px; color: var(--brand-dark); line-height: 1.2; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.pt-steps { margin: 0; padding-left: 26px; font-size: 19px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }

/* ---------- cadrul portalului ---------- */
.pt { min-height: 100vh; background: #f3f4f6; color: var(--text); font-size: 15px; display: flex; flex-direction: column; overflow-x: hidden; }
.pt-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; padding-top: env(safe-area-inset-top); background: #fff; border-bottom: 3px solid var(--brand); }
.pt-logo img { height: 26px; display: block; }
.pt-title { font-weight: 750; color: var(--text-weak); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pt-bell { position: relative; margin-left: auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--text); border-radius: 50%; }
.pt-bell:hover { background: var(--bg-soft); text-decoration: none; }
.pt-dot { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pt-me { display: flex; }
.pt-wrap { flex: 1 1 auto; display: flex; gap: 18px; width: 100%; max-width: 1100px; margin: 0 auto; min-width: 0; }
.pt-body { flex: 1 1 auto; min-width: 0; max-width: 780px; width: 100%; margin: 0 auto; padding: 12px 16px calc(84px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.pt-side { display: none; }
.pt-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: rgba(255, 255, 255, .98); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.pt-nav a { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; color: var(--text-weak); font-size: 11.5px; font-weight: 650; text-decoration: none; }
.pt-nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pt-nav a.on { color: var(--brand-dark); }
.pt-nav a.on::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.pt-ndot { position: absolute; top: 6px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.pt-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; margin-left: auto; flex: none; }
@media (min-width: 900px) {
  .pt-nav { display: none; }
  .pt-side { display: flex; flex-direction: column; gap: 2px; flex: none; width: 230px; position: sticky; top: 64px; align-self: flex-start; padding: 12px 0 20px 12px; }
  .pt-side a, .pt-side button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; border: 0; background: none; cursor: pointer; text-align: left; }
  .pt-side a:hover, .pt-side button:hover { background: #fff; }
  .pt-side a.on { background: #fff; color: var(--brand-dark); box-shadow: inset 3px 0 0 var(--brand); }
  .pt-side svg { color: var(--text-weak); flex: none; }
  .pt-body { padding-bottom: 40px; margin: 0; }
}

/* ---------- variantele compacte ale ecranelor comune, în portal ---------- */
.pt { -webkit-user-select: auto; user-select: auto; }
.pt .ky-h { font-size: 21px; letter-spacing: -.2px; }
.pt .ky-sub { font-size: 14px; margin: 2px 0 0; }
.pt .ky-tiles, .pt .ky-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pt .ky-tile { min-height: 0; padding: 10px 12px; gap: 3px; border-width: 1px; border-radius: 12px; }
.pt .ky-tile.small { min-height: 0; }
.pt .ky-tile .ki { width: 36px; height: 36px; border-radius: 10px; }
.pt .ky-tile .ki svg { width: 20px; height: 20px; }
.pt .ky-tile b { font-size: 15px; }
.pt .ky-tile small { font-size: 12.5px; }
.pt .ky-tile.sel { box-shadow: inset 0 0 0 1px var(--brand); }
.pt .ky-btn { min-height: 42px; padding: 0 14px; gap: 6px; border-width: 1px; border-radius: 10px; font-size: 15px; text-decoration: none; }
.pt .ky-btn svg { width: 18px; height: 18px; }
.pt a.ky-btn:hover { text-decoration: none; }
.pt .ky-btn.pt-mini { min-height: 34px; font-size: 13.5px; padding: 0 10px; margin-top: 6px; }
.pt .ky-note { padding: 10px 12px; gap: 8px; border-radius: 10px; font-size: 14px; border-width: 1px; }
.pt .ky-note svg { width: 18px; height: 18px; margin-top: 1px; }
.pt .ky-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pt .ky-stat { padding: 8px 10px; border-width: 1px; border-radius: 10px; }
.pt .ky-stat b { font-size: 20px; }
.pt .ky-stat small { font-size: 12px; }
.pt .ky-list { gap: 6px; }
.pt .ky-row { padding: 9px 11px; gap: 10px; font-size: 14px; border-width: 1px; border-radius: 10px; }
.pt a.ky-row { text-decoration: none; }
.pt .ky-row b { font-size: 14.5px; }
.pt .ky-row small { font-size: 12.5px; }
.pt .ky-row > svg { width: 20px; height: 20px; flex: none; color: var(--text-weak); }
.pt .ky-pill { padding: 3px 9px; font-size: 12px; }
.pt .ky-cal { gap: 3px; }
.pt .ky-cal .wd { font-size: 11px; }
.pt .ky-day { min-height: 52px; padding: 3px 4px; border-width: 1px; border-radius: 8px; gap: 1px; }
.pt .ky-day .n { font-size: 11px; }
.pt .ky-day .c { font-size: 12.5px; }
.pt .ky-day .c .pt-chip { font-size: 11px; min-width: 0; padding: 0 3px; }
.pt .ky-day .h { font-size: 10.5px; }
.pt .ky-legend { font-size: 12.5px; gap: 4px 12px; }
.pt .ky-legend .pt-chip { font-size: 11px; }
.pt .ky-card { padding: 12px; border-width: 1px; border-radius: 12px; }
.pt .ky-card h3 { font-size: 16px; margin: 0 0 8px; }
.pt .ky-slip { padding: 12px; border-width: 1px; border-radius: 12px; }
.pt .ky-slip h3 { font-size: 17px; }
.pt .ky-slip dl { font-size: 14px; gap: 5px 12px; margin-top: 10px; }
.pt .ky-slip dt.tot, .pt .ky-slip dd.tot { font-size: 16px; }
.pt .ky-doc { padding: 12px; font-size: 14px; border-width: 1px; max-height: none; overflow-x: hidden; }
.pt .ky-doc table { max-width: 100%; }
.pt .ky-doc iframe { height: 70vh; }
.pt .ky-read { padding: 12px; font-size: 14.5px; border-width: 1px; max-height: 60vh; }
.pt .ky-form { gap: 8px; }
.pt .ky-form label.lbl { font-size: 12px; }
.pt .ky-inp { height: 44px; font-size: 16px; border-width: 1px; border-radius: 10px; padding: 0 12px; }
.pt textarea.ky-inp { height: 96px; padding: 10px 12px; font-size: 16px; }
.pt .ky-done { width: 72px; height: 72px; margin: 10px auto 4px; }
.pt .ky-done svg { width: 40px; height: 40px; }
.pt .sigpad canvas { height: 170px; }
.pt .pt-mbar b { font-size: 17px; }
.pt .pt-mbar .ky-btn { min-width: 44px; padding: 0 10px; }
.pt .pt-small { font-size: 13px; }
.pt .pt-h2 { font-size: 16px; margin: 4px 0 6px; }
.pt .pt-doc-t { font-size: 18px; }
.pt .pt-num { min-width: 56px; }
.pt .pt-daycard .kv { font-size: 14px; }
.pt .pt-chip { font-size: 12px; }
.pt .kv { grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); }
.pt .ky-tile.pt-rowtile { flex-direction: row; align-items: center; gap: 10px; }
.pt .ky-tile.pt-rowtile > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pt .ky-tile.pt-rowtile .ki { flex: none; }
@media (max-width: 600px) { .pt .ky-tiles.pt-rowtiles { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
@media (max-width: 380px) { .pt .ky-tiles { grid-template-columns: minmax(0, 1fr); } .pt .ky-stats.pt-stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .pt .ky-stat b { font-size: 17px; } }

/* ---------- intrarea și activarea ---------- */
.pt-auth { align-items: center; justify-content: center; padding: 20px 16px; gap: 14px; }
.pt-auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: 14px; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.pt-auth-logo { display: flex; align-items: center; gap: 10px; }
.pt-auth-logo img { height: 30px; }
.pt-auth-logo span { font-weight: 750; color: var(--text-weak); }
.pt-auth-h { font-size: 22px; margin: 0; }
.pt-auth-foot { max-width: 420px; text-align: center; font-size: 12px; color: var(--text-faint); }
.pt-auth-links { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.pt-form { display: flex; flex-direction: column; gap: 8px; }
.pt-lbl { font-size: 12.5px; font-weight: 700; color: var(--text-weak); text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }
.pt-inp { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 16px; background: #fff; min-width: 0; }
.pt-inp:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(27, 106, 201, .15); }
.pt-codein { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.pt-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; }
.pt-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.pt-link { background: none; border: 0; padding: 6px; color: var(--link); font-size: 14px; cursor: pointer; text-align: center; }
.pt-pchk { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--text-faint); }
.pt-pchk li { display: inline-flex; align-items: center; gap: 4px; }
.pt-pchk li.ok { color: var(--green-text); }
.pt-auth .ky-btn { min-height: 46px; }
.pt-auth .ky-btn.wide { width: 100%; }

/* ---------- Acasă ---------- */
.pt-hero { display: flex; flex-direction: column; gap: 6px; }
.pt-next { background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--c, var(--brand)); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pt-next small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--text-weak); }
.pt-next b { display: block; font-size: 19px; }
.pt-next b::first-letter { text-transform: uppercase; }
.pt-next span { font-size: 13.5px; color: var(--text-weak); }
.pt-todayline { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-weak); padding: 0 2px; }
.pt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pt-kpis a { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 8px; color: var(--text); text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.pt-kpis a.hot { border-color: var(--brand); background: var(--brand-soft); }
.pt-kpis b { font-size: 20px; line-height: 1.15; }
.pt-kpis b.pt-kpi-s { font-size: 13.5px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 4px; }
.pt-kpis small { font-size: 11.5px; color: var(--text-weak); line-height: 1.2; }
@media (max-width: 420px) { .pt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.pt-quick a { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--text); text-decoration: none; min-width: 0; }
.pt-quick a:active { background: var(--bg-soft); }
.pt-quick .ki { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.pt-quick b { font-size: 12.5px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.pt-quick .pt-badge { position: absolute; top: 6px; right: 6px; }
@media (min-width: 600px) { .pt-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pt-notif.new { border-color: #c4d8f2; }
.pt-notif.todo { border-color: #efcf88; background: #fffbf2; }
.pt-card .row { align-items: center; }
.pt-name { font-size: 17px; }
.pt-kv { margin-top: 10px; font-size: 13.5px; }
.pt-inline { margin-top: 10px; }
.pt-gap { gap: 8px; margin: 10px 0 6px; }
.pt-qrbox { display: flex; justify-content: center; padding: 6px 0; }
.pt-qrbox .qr { background: #fff; }

/* tipărirea fluturașului / documentului din portal: fără barele portalului */
@media print {
  .pt-top, .pt-nav, .pt-side, .ky-noprint { display: none !important; }
  .pt { background: #fff; } .pt-body { padding: 0; max-width: none; }
  .pt .ky-slip { border: 0; }
}

/* ---------- resurse umane: cardul din fișă, pagina conturilor, biletele de activare ---------- */
.pt-acard .kv { font-size: 13px; }
.pt-mini-list { font-size: 12.5px; color: var(--text-weak); display: flex; flex-direction: column; gap: 2px; }
.pt-mini-list svg { vertical-align: -2px; }
.pt-events { font-size: 12.5px; }
.pt-events summary { cursor: pointer; color: var(--link); }
.pt-events div { padding: 2px 0; overflow-wrap: anywhere; }
.pt-adm-tb { align-items: center; margin-bottom: 8px; }
.pt-adm-tb .inp { flex: 0 1 220px; height: 32px; }
.pt-adm-tb .seg { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 760px) { .pt-adm-tb .seg button { flex: 1 1 auto; padding: 0 8px; } .pt-adm-tb .seg button + button { border-left: 0; } .pt-adm-tb .seg { gap: 1px; background: var(--border); } .pt-adm-tb .seg button { background: #fff; } .pt-adm-tb .seg button.on { background: var(--brand-soft); } .pt-adm-tb .inp { flex: 1 1 100%; } }
.pt-adm-bulk { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 10px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: #fff; font-size: 13px; }
.pt-adm-bulk.on { border-style: solid; border-color: #f4b8a8; background: var(--brand-soft); }
.pt-adm-bulk .btn { margin-left: auto; }
.pt-slips-prev { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; margin: 10px 0; }
.pt-slip { border: 1px dashed #9aa2ab; border-radius: 6px; padding: 10px 12px; background: #fff; color: #11161c; font-family: var(--font); display: flex; flex-direction: column; gap: 6px; min-width: 0; break-inside: avoid; }
.pt-slip-h { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--brand); padding-bottom: 4px; }
.pt-slip-h b { color: var(--brand); font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.pt-slip-h span { font-size: 12px; font-weight: 700; color: #5b6571; text-transform: uppercase; letter-spacing: .4px; }
.pt-slip-b { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.pt-slip-qr { flex: none; width: 96px; height: 96px; }
.pt-slip-qr svg { width: 100%; height: 100%; display: block; }
.pt-slip-t { min-width: 0; font-size: 11.5px; line-height: 1.35; }
.pt-slip-n { font-size: 14px; font-weight: 800; }
.pt-slip-m { color: #5b6571; margin-bottom: 4px; }
.pt-slip-t ol { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 2px; }
.pt-slip-t small { color: #5b6571; overflow-wrap: anywhere; }
.pt-slip-c { font-size: 16px; letter-spacing: 1.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-slip-f { font-size: 10.5px; color: #5b6571; border-top: 1px solid #e0e4e9; padding-top: 4px; }
@media print {
  .pt-slips-print .pt-slip-page { width: 210mm; height: 296mm; padding: 9mm 8mm; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); gap: 0; break-after: page; page-break-after: always; box-sizing: border-box; }
  .pt-slips-print .pt-slip-page:last-child { break-after: auto; page-break-after: auto; }
  .pt-slips-print .pt-slip { border-radius: 0; padding: 4mm 5mm; gap: 2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pt-slips-print .pt-slip-qr { width: 31mm; height: 31mm; }
  .pt-slips-print .pt-slip-t { font-size: 8.6pt; }
  .pt-slips-print .pt-slip-n { font-size: 11pt; }
  .pt-slips-print .pt-slip-c { font-size: 12.5pt; }
  .pt-slips-print .pt-slip-f { font-size: 7.6pt; }
}
