.act-scan { background:#fff; border:2px solid #0f766e; border-radius:14px; padding:22px; margin:0 0 18px; color:#1e293b; }
.act-heading { display:flex; gap:12px; align-items:flex-start; margin-bottom:18px; }
.act-heading h2 { font-size:1.2rem; margin:0 0 6px; line-height:1.4; color:#134e4a; }
.act-heading p { margin:0; font-size:.9rem; line-height:1.6; color:#475569; }
.act-step { flex:0 0 32px; height:32px; border-radius:50%; display:grid; place-items:center; background:#0f766e; color:white; font-weight:700; }
.act-drop { border:1px dashed #5eaaa1; background:#f0fdfa; padding:22px 14px; text-align:center; border-radius:10px; }
.act-drop-active { background:#ccfbf1; outline:2px solid #0f766e; }
.act-drop strong { font-size:1rem; }
.act-drop p { font-size:.86rem; margin:8px 0 16px; color:#475569; }
.act-drop small { display:block; margin-top:12px; color:#64748b; font-size:.76rem; }
.act-document-icon { font-size:2.3rem; color:#0f766e; line-height:1.1; margin-bottom:10px; }
.act-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.act-button { position:relative; display:inline-flex; align-items:center; justify-content:center; padding:10px 15px; min-height:44px; background:white; border:1px solid #94a3b8; border-radius:7px; color:#334155; font:inherit; font-size:.86rem; font-weight:600; cursor:pointer; line-height:1.4; text-decoration:none; margin:0; }
.act-button:hover { background:#f1f5f9; }
.act-primary { background:#0f766e; color:#fff; border-color:#0f766e; }
.act-primary:hover { background:#115e59; }
.act-button:has(input:disabled), .act-button:disabled { opacity:.5; cursor:wait; }
.act-button input[type=file] { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; margin:0; padding:0; }
.act-button:focus-within, .act-button:focus-visible { outline:3px solid #60a5fa; outline-offset:3px; }
.act-previews { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:18px; }
.act-previews figure { margin:0; padding:10px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:9px; min-width:0; }
.act-previews figcaption { font-size:.85rem; font-weight:600; margin-bottom:9px; }
.act-previews img { display:block; width:100%; max-height:300px; object-fit:contain; }
.act-previews small { display:block; font-size:.75rem; color:#64748b; margin-top:8px; }
.act-crop-empty { display:grid; place-items:center; min-height:140px; color:#64748b; text-align:center; font-size:.85rem; padding:10px; }
.act-tools { margin-top:15px; justify-content:flex-start; }
.act-status { font-size:.86rem; line-height:1.6; color:#475569; margin:14px 0 0; overflow-wrap:anywhere; }
.act-status-success { color:#166534; }
.act-status-warning { background:#fffbeb; color:#92400e; padding:10px; border-radius:7px; }
.act-status-error { background:#fef2f2; color:#991b1b; padding:10px; border-radius:7px; }
.act-result { margin-top:16px; border-top:1px solid #e2e8f0; padding-top:12px; }
.act-result h3 { font-size:1rem; margin:0 0 8px; }
.act-result table { border-collapse:collapse; width:100%; font-size:.85rem; }
.act-result th, .act-result td { text-align:left; border-bottom:1px solid #e2e8f0; padding:7px 8px; overflow-wrap:anywhere; }
.act-result th { width:34%; color:#475569; font-weight:600; }
.act-qr { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-top:18px; font-size:.87rem; }
.act-qr img { width:180px; max-width:100%; }
.act-qr>div { flex:1 1 220px; }
.act-manual { border:1px solid #cbd5e1; border-radius:9px; padding:12px 15px; margin:0 0 22px; background:#fff; }
.act-manual>summary { cursor:pointer; color:#475569; font-size:.9rem; font-weight:600; }
.act-manual[open]>summary { margin-bottom:15px; color:#0f766e; }
/* --- Partea actului de fotografiat -----------------------------------------
   Textele vin de la server (GET /api/parti-act); aici e doar aspectul.
   Verso-ul (CEI) e marcat diferit — e partea care se uită cel mai ușor. */
.act-side-hint { margin:10px 0 16px; padding:11px 13px; border-radius:9px; border:1px solid #0f766e; background:#ecfdf5; text-align:left; }
.act-side-title { font-weight:700; font-size:1rem; color:#134e4a; line-height:1.4; }
.act-side-detail { font-size:.9rem; color:#334155; margin-top:3px; line-height:1.55; }
.act-side-obs { font-size:.82rem; color:#475569; margin-top:6px; line-height:1.5; }
.act-side-hint.act-side-verso { border-color:#b45309; background:#fffbeb; }
.act-side-hint.act-side-verso .act-side-title { color:#92400e; }
.act-side-rule { padding:7px 0 0; margin-top:7px; border-top:1px dashed rgba(15,118,110,.4); }
.act-side-rule strong { display:block; font-size:.95rem; color:#134e4a; }
.act-side-rule span { display:block; font-size:.86rem; color:#475569; margin-top:2px; line-height:1.5; }
.act-side-rule.act-side-verso strong { color:#92400e; }
.act-side-alert { margin:0 0 15px; padding:11px 13px; border-radius:9px; border:1px solid #b91c1c; background:#fef2f2; text-align:left; }
.act-side-alert strong { display:block; font-size:.96rem; color:#991b1b; }
.act-side-alert span { display:block; font-size:.88rem; color:#7f1d1d; margin-top:4px; line-height:1.55; }
.act-side-alert-atentie { border-color:#b45309; background:#fffbeb; }
.act-side-alert-atentie strong { color:#92400e; }
.act-side-alert-atentie span { color:#78350f; }
.act-scan [hidden] { display:none!important; }
@media(max-width:600px) { .act-scan { padding:15px; } .act-previews { grid-template-columns:1fr; } .act-heading h2 { font-size:1.06rem; } .act-actions .act-button { flex:1 1 135px; } .act-previews img { max-height:230px; } .act-side-title { font-size:.95rem; } .act-side-detail { font-size:.88rem; } }
