/* Stockline · Καρτέλα εργαζομένου (σχέδιο όπως στη Smile) */
.hc {
  --hc-bg: linear-gradient(135deg, #fbf7ec 0%, #fbf3dc 100%);
  --hc-card: #fffdf8; --hc-line: rgba(60, 50, 20, .08); --hc-ink: #1d1a16; --hc-ink2: #7c766b;
  --hc-dark: #2a2622; --hc-dark2: #3a3530; --hc-y: #F5B91E; --hc-y2: #fbe7a6; --hc-y3: #fdf3d2;
  --hc-green: #15803d; --hc-red: #dc2626;
  background: var(--hc-bg); border-radius: 22px; padding: 22px; color: var(--hc-ink);
  font-variant-numeric: tabular-nums;
}
.dark .hc {
  --hc-bg: linear-gradient(135deg, #17150f 0%, #1c1810 100%);
  --hc-card: #221f1a; --hc-line: rgba(255, 240, 200, .08); --hc-ink: #f4efe4; --hc-ink2: #a59d8e;
  --hc-dark: #0f0d0b; --hc-dark2: #2a2621; --hc-y2: #5a4714; --hc-y3: #3a2f12;
}
.hc b { font-weight: 700; }
.hc-muted { color: var(--hc-ink2); font-size: 13px; }

/* Κεφαλίδα */
.hc-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hc-crumb { font-size: 13px; color: var(--hc-ink2); }
.hc-crumb b { color: var(--hc-ink); }
.hc-pick { min-width: 240px; flex: 0 1 300px; }
.hc-nav { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.hc-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--hc-card); color: var(--hc-ink); box-shadow: 0 0 0 1px var(--hc-line); transition: transform .12s; white-space: nowrap; }
.hc-pill:active { transform: scale(.96); }
.hc-pill.dark { background: var(--hc-dark); color: #fff; box-shadow: none; }
.hc-pill.accent { background: #ef5a1f; color: #fff; box-shadow: none; }

.hc-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px; margin-bottom: 20px; }
.hc-name { font-size: 38px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.hc-name b { font-weight: 800; }
.hc-chips { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.hc-chips > div { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--hc-ink2); }
.hc-chips > div.grow { flex: 1; min-width: 200px; }
.hc-chips .chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--hc-ink); position: relative; overflow: hidden; }
.hc-chips .chip.dark { background: var(--hc-dark); color: #fff; }
.hc-chips .chip.accent { background: var(--hc-y); color: #1d1a16; }
.hc-chips .chip.goal { background: repeating-linear-gradient(-45deg, var(--hc-y3), var(--hc-y3) 6px, var(--hc-card) 6px, var(--hc-card) 12px); box-shadow: 0 0 0 1px var(--hc-line); }
.hc-chips .chip.goal i { position: absolute; inset: 0 auto 0 0; background: var(--hc-y2); border-radius: 999px; }
.hc-chips .chip.goal em { position: relative; font-style: normal; }
.hc-big { display: flex; gap: 28px; }
.hc-big div { display: flex; flex-direction: column; align-items: center; }
.hc-big b { font-size: 40px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.hc-big span { font-size: 12px; color: var(--hc-ink2); margin-top: 4px; }

/* Πλέγμα καρτών */
.hc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; grid-auto-flow: row dense; }
.hc-card { background: var(--hc-card); border-radius: 20px; padding: 20px; box-shadow: 0 0 0 1px var(--hc-line); min-width: 0; }
.hc-wide { grid-column: span 2; }
.hc-eval { grid-row: span 2; }
.hc-card-h { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.hc-card-h small { font-size: 12px; font-weight: 400; color: var(--hc-ink2); }
.hc-h { font-size: 16px; font-weight: 700; }
.hc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 20px; text-align: center; color: var(--hc-ink2); }
.hc-empty .hc-h { color: var(--hc-ink); }

/* Προφίλ */
.hc-me { background: radial-gradient(120% 90% at 50% 20%, #4a3f33 0%, var(--hc-dark) 60%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 270px; }
.hc-avatar { width: 124px; height: 124px; border-radius: 999px; margin: 6px auto 0; display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800; color: #1d1a16; background: radial-gradient(circle at 35% 30%, #ffd36b, #f5a623 55%, #e5731a); box-shadow: 0 10px 30px rgba(245,166,35,.35); }
.hc-me-foot { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.hc-me-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.hc-me-sub { font-size: 12px; color: #c9c1b4; margin-top: 4px; }
.hc-star { flex-shrink: 0; text-align: center; font-size: 12px; line-height: 1.2; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.12); }

/* KPI + μπάρες */
.hc-kpi { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hc-kpi b { font-size: 34px; font-weight: 300; letter-spacing: -0.03em; }
.hc-kpi span { font-size: 12px; color: var(--hc-ink2); line-height: 1.3; }
.hc-kpi em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.hc-kpi em.up, .hc-hist em.up { background: #dcfce7; color: var(--hc-green); }
.hc-kpi em.down, .hc-hist em.down { background: #fee2e2; color: var(--hc-red); }
.dark .hc-kpi em.up, .dark .hc-hist em.up { background: rgba(34,197,94,.15); }
.dark .hc-kpi em.down, .dark .hc-hist em.down { background: rgba(239,68,68,.15); }
.hc-bars { display: flex; justify-content: space-between; align-items: end; gap: 8px; height: 120px; margin-top: 16px; }
.hc-bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 6px; }
.hc-bar i { width: 9px; border-radius: 999px; background: var(--hc-dark); display: block; }
.dark .hc-bar i { background: #e7dfcf; }
.hc-bar.now i { background: var(--hc-y); width: 11px; }
.hc-bar span { font-size: 11px; color: var(--hc-ink2); }
.hc-bar small { font-size: 11px; font-weight: 700; background: var(--hc-y); color: #1d1a16; padding: 1px 6px; border-radius: 6px; }

/* Δαχτυλίδι ωρών */
.hc-ring { --p: 0deg; width: 140px; height: 140px; margin: 10px auto 14px; border-radius: 999px;
  background: conic-gradient(var(--hc-y) var(--p), var(--hc-y3) var(--p)); display: flex; align-items: center; justify-content: center; }
.hc-ring > div { width: 104px; height: 104px; border-radius: 999px; background: var(--hc-card); display: flex; flex-direction: column; align-items: center; justify-content: center;
  outline: 2px dotted var(--hc-line); outline-offset: -8px; text-align: center; }
.hc-ring b { font-size: 28px; font-weight: 300; letter-spacing: -0.03em; }
.hc-ring span { font-size: 10.5px; color: var(--hc-ink2); line-height: 1.2; padding: 0 10px; }
.hc-foot { text-align: center; font-size: 12.5px; color: var(--hc-ink2); }
.hc-foot b { color: var(--hc-ink); }

/* Σκούρα κάρτα αξιολόγησης */
.hc-dark { background: var(--hc-dark); color: #f5f1ea; box-shadow: none; }
.hc-dim { font-size: 12px; color: #a39b8e; margin-top: 4px; }
.hc-eval-h { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.hc-eval-score { font-size: 30px; font-weight: 300; letter-spacing: -0.03em; }
.hc-eval-score small { font-size: 13px; color: #a39b8e; }
.hc-crit { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.hc-crit > div { display: grid; grid-template-columns: 1fr 96px 14px; gap: 10px; align-items: center; font-size: 13px; }
.hc-crit i { height: 6px; border-radius: 999px; background: var(--hc-dark2); display: block; overflow: hidden; }
.hc-crit u { display: block; height: 100%; background: var(--hc-y); border-radius: 999px; }
.hc-crit b { text-align: right; }
.hc-notes { margin-top: 18px; font-size: 13px; line-height: 1.5; color: #e7e1d6; }
.hc-notes p { margin: 0 0 4px; }
.hc-notes b { color: #fff; }
.hc-tags { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.hc-tags span { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--hc-dark2); color: #eee6d8; }
.hc-tags span.y { background: var(--hc-y); color: #1d1a16; }

/* Πίνακας βαρδιών */
.hc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hc-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--hc-ink2); padding: 0 6px 8px; border-bottom: 1px solid var(--hc-line); }
.hc-table td { padding: 10px 6px; border-bottom: 1px solid var(--hc-line); }
.hc-table tr:last-child td { border-bottom: none; }
.hc-table .n { text-align: right; }
.hc-table .b { font-weight: 700; }

/* Συνέπεια */
.hc-lines { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--hc-ink2); }
.hc-lines b { color: var(--hc-ink); }
.hc-lines b.red { color: var(--hc-red); }
.hc-mini { display: flex; gap: 6px; align-items: end; margin-top: 16px; height: 26px; }
.hc-mini i { flex: 1; border-radius: 6px; background: var(--hc-y3); display: block; }
.hc-mini i.now { background: #ef5a1f; }

/* Ημερολόγιο */
.hc-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.hc-cal .w { text-align: center; font-size: 11px; color: var(--hc-ink2); padding-bottom: 4px; }
.hc-cal .c, .hc-legend .c { height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--hc-ink2); background: var(--hc-y3); opacity: .55; }
.hc-cal .c.low, .hc-legend .c.low { background: var(--hc-y2); color: #5b4708; opacity: 1; }
.hc-cal .c.mid, .hc-legend .c.mid { background: var(--hc-y); color: #1d1a16; opacity: 1; }
.hc-cal .c.full, .hc-legend .c.full { background: var(--hc-dark); color: #fff; opacity: 1; }
.dark .hc-cal .c.full, .dark .hc-legend .c.full { background: #f4efe4; color: #1d1a16; }
.hc-cal .c.absent, .hc-legend .c.absent { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hc-red); color: var(--hc-red); opacity: 1; }
.hc-cal .c.leave, .hc-legend .c.leave { background: repeating-linear-gradient(-45deg, var(--hc-y3), var(--hc-y3) 4px, transparent 4px, transparent 8px); opacity: 1; }
.hc-cal .c.noshow { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hc-red); color: var(--hc-red); opacity: .8; }
.hc-cal .c.planned, .hc-legend .c.planned { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hc-y); opacity: 1; }
.hc-legend { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.hc-legend .c { height: 22px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }

/* Ιστορικό */
.hc-hist { display: flex; flex-direction: column; gap: 10px; }
.hc-hist .row { display: grid; grid-template-columns: 44px 48px 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; box-shadow: 0 0 0 1px var(--hc-line); }
.hc-hist .m { font-size: 12px; color: var(--hc-ink2); }
.hc-hist .s { font-size: 22px; font-weight: 600; }
.hc-hist .t { font-size: 13px; min-width: 0; }
.hc-hist .t small { display: block; color: var(--hc-ink2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-hist em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.hc-note { margin-top: 14px; font-size: 11.5px; color: var(--hc-ink2); }

/* Μικρότερες οθόνες */
@media (max-width: 1280px) {
  .hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-eval { grid-row: auto; }
  .hc-head { grid-template-columns: 1fr; align-items: start; gap: 14px; }
}
@media (max-width: 700px) {
  .hc { padding: 14px; border-radius: 18px; }
  .hc-grid { grid-template-columns: 1fr; }
  .hc-wide { grid-column: auto; }
  .hc-name { font-size: 30px; }
  .hc-big b { font-size: 30px; }
  .hc-nav { margin-left: 0; }
  .hc-pick { flex: 1 1 100%; }
  .hc-table th:nth-child(3), .hc-table td:nth-child(3) { display: none; }
}

/* Γραμμή τίτλου μόνο στην εκτύπωση */
.hc-print { display: none; }

/* Εκτύπωση / PDF: μόνο η καρτέλα, με τα χρώματά της, σε μία-δύο σελίδες A4 */
@page { size: A4 portrait; margin: 10mm; }
@media print {
  html, body { background: #fff !important; }
  body * { visibility: hidden !important; }
  .hc, .hc * { visibility: visible !important; }
  .hc { position: absolute !important; left: 0; top: 0; width: 100% !important; margin: 0 !important; padding: 0 !important;
    background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; zoom: .72; }
  .hc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hc-nav, .hc-pick, .hc-crumb { display: none !important; }
  .hc-print { display: block; font-size: 12px; color: #7c766b; margin-bottom: 8px; }
  .hc-top { margin-bottom: 6px; }
  .hc-head { grid-template-columns: auto 1fr auto !important; }
  .hc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px !important; }
  .hc-wide { grid-column: span 2 !important; }
  .hc-eval { grid-row: span 2 !important; }
  .hc-card { break-inside: avoid; box-shadow: 0 0 0 1px #e8e1cf !important; }
  .fi-topbar, .fi-sidebar, .fi-sidebar-close-overlay, .fi-no { display: none !important; }
}
.dark .hc-cal .c.low, .dark .hc-legend .c.low { color: #fbe7a6; }
