/* SSM: instructaje (semnare pe tabletă), medicina muncii, echipamente individuale de protecție, autorizații, fișe tipărite */

/* capul instructajului (ca în macheta HR) */
.ssm-thead { padding: 12px 16px; }
.ssm-thead-main { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.ssm-thead h1 { font-size: 19px; font-weight: 750; margin: 2px 0 6px; overflow-wrap: anywhere; }
.ssm-kicker { font-size: 11.5px; color: var(--text-weak); font-weight: 650; text-transform: uppercase; letter-spacing: .3px; }
.ssm-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 13px; color: var(--text-weak); margin-top: 3px; }
.ssm-meta b { color: var(--text); font-weight: 600; }
.ssm-meta a { display: inline-flex; align-items: center; gap: 4px; }
.ssm-topic { margin-top: 8px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--bg-soft); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ssm-thead-act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; margin-left: auto; }
.btn.ssm-big { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
@media (max-width: 760px) { .ssm-thead-act { width: 100%; margin-left: 0; } .ssm-thead-act .row { justify-content: flex-start !important; } }

/* bara de progres a semnăturilor și semnătura în tabele */
.ssm-prog { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; margin: 2px 0 3px; }
.ssm-prog span { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.ssm-sig { display: block; height: 30px; max-width: 110px; object-fit: contain; object-position: left center; }
.ssm-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.ssm-chips .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* filtrele segmentate se rup pe rânduri pe ecrane înguste (fără derulare laterală) */
.ssm-segwrap { min-width: 0; max-width: 100%; }
.ssm-segwrap .seg { display: flex; flex-wrap: wrap; max-width: 100%; }
.ssm-segwrap .seg button { flex: 1 0 auto; }

/* adăugarea rapidă a participanților */
.ssm-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.ssm-quick .inp { flex: 1 1 150px; max-width: 230px; height: 30px; }

/* textul de confirmare semnat de salariat */
.ssm-statement { padding: 10px 12px; border-left: 4px solid var(--brand); border-radius: var(--radius-sm); background: var(--bg-soft); font-size: 14px; line-height: 1.5; }

/* liniile de predare / restituire EIP */
.ssm-lines { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.ssm-line { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-bottom: 1px solid var(--border-soft); min-width: 0; }
.ssm-line:last-child { border-bottom: 0; }
.ssm-line.off { opacity: .55; }
.ssm-line .check { min-width: 0; align-items: flex-start; }
.ssm-line .check > span { display: flex; flex-direction: column; min-width: 0; }
.ssm-line small { font-size: 11.5px; color: var(--text-weak); }
.ssm-size { flex: 0 0 92px; width: 92px; height: 30px; }
.ssm-qty { flex: 0 0 58px; width: 58px; height: 30px; text-align: right; }
.ssm-unit { flex: 0 0 auto; max-width: 90px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .ssm-line { flex-wrap: wrap; } .ssm-line .check { flex: 1 1 100%; } }
.ssm-mx-foot { border-top: 1px solid var(--border-soft); }

/* modul „Semnare pe tabletă”: pe tot ecranul, butoane mari */
.ssm-sign { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ssm-sign-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 3px solid var(--brand); }
.ssm-sign-head small { display: block; font-size: 12.5px; color: var(--text-weak); }
.ssm-sign-head b { font-size: 18px; font-weight: 750; }
.ssm-sign-cnt { display: flex; flex-direction: column; align-items: center; font-size: 22px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.ssm-sign-cnt small { font-size: 11.5px; font-weight: 600; color: var(--text-weak); }
.ssm-sign-list { width: 100%; max-width: 1200px; margin: 0 auto; padding: 12px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.ssm-sign-tools { gap: 10px; }
.ssm-big-inp { flex: 1 1 240px; height: 46px; font-size: 16px; }
.ssm-sign-tools .seg button { height: 44px; font-size: 14px; }
.ssm-tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ssm-tiles .tile { text-align: left; }
.ssm-tiles .tile b { font-size: 18px; }
.ssm-tiles .tile small { font-size: 13px; }
.ssm-signer { width: 100%; max-width: 940px; margin: 0 auto; padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.ssm-signer-who { display: flex; align-items: center; gap: 12px; }
.ssm-signer-who b { display: block; font-size: 22px; font-weight: 800; }
.ssm-signer-who small { font-size: 14px; color: var(--text-weak); }
.ssm-signer .ssm-statement { font-size: 16px; }
.ssm-signer-act { display: flex; gap: 10px; }
.ssm-signer-act .btn { height: 56px; font-size: 17px; }
.ssm-signer-more { justify-content: center; gap: 24px; }
.ssm-signer-more .link-btn { font-size: 14px; }
@media (max-width: 560px) { .ssm-sign-head { padding: 8px 10px; gap: 8px; } .ssm-sign-head b { font-size: 15px; } .ssm-signer-act { flex-direction: column-reverse; } }

/* fișele tipărite (Anexa 11 / 12, fișa EIP): se desenează în .print-root, ascuns pe ecran */
@media screen { body > .print-root { display: none; } }
.ssm-doc .doc-body h1 { font-size: 13.5pt; margin: 2px 0 4px; }
.ssm-doc-sub { text-align: center !important; font-size: 10pt; color: #333; margin: 0 0 10px !important; }
.ssm-doc table { margin: 0 0 10px; }
.ssm-doc-kv th { width: 34mm; text-align: left; font-weight: 600; background: #f3f3f3; font-size: 9.5pt !important; }
.ssm-doc-kv td { font-size: 10pt !important; }
.ssm-doc-tbl th { font-size: 9pt !important; background: #f3f3f3; text-align: left; }
.ssm-doc-tbl td { font-size: 9.5pt !important; vertical-align: top; }
.ssm-doc-tbl small { font-size: 8pt; color: #444; }
.ssm-doc .sigcell { text-align: center; }
.ssm-doc .sigcell img { height: 12mm; max-width: 38mm; object-fit: contain; display: inline-block; }
.ssm-doc-signs { display: flex; justify-content: space-between; gap: 20mm; margin: 14px 0 10px; font-size: 10.5pt; }
.ssm-doc-signs img { height: 14mm; max-width: 50mm; object-fit: contain; vertical-align: middle; }
.ssm-doc-legal { font-size: 8.5pt !important; color: #444; margin-top: 8px !important; }
@media print { .ssm-doc tr { break-inside: avoid; } }
