/* Board Portal e-signatures — ceremony + signatures panel (scoped: everything lives under .esign_*) */

/* Appended to <html> by esign.js (see comment there) so it escapes the .modalBlur stacking
   context on <body>; the z-index only has to beat sibling modals (.modal-fullscreen etc.). */
.esign_overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(13,33,55,0.55);z-index:2147483000;display:flex;align-items:center;justify-content:center;}
.esign_modal{background:#ffffff;color:#3A3D42;border-radius:10px;box-shadow:0 12px 40px rgba(13,33,55,0.35);width:92%;max-width:480px;max-height:86vh;overflow-y:auto;}
.esign_modal_head{display:flex;align-items:center;padding:18px 22px 0 22px;}
.esign_modal_title{font-size:1.05rem;font-weight:700;color:#0D2137;flex:1;}
.esign_modal_x{cursor:pointer;color:#6E727A;font-size:1.25rem;line-height:1;padding:2px 6px;}
.esign_modal_x:hover{color:#0D2137;}
.esign_modal_content{padding:14px 22px 22px 22px;}

.esign_hint{font-size:0.8rem;color:#6E727A;line-height:1.45;margin-bottom:12px;}
.esign_warn{background:#FFF7E6;border:1px solid #F0DFB8;border-radius:6px;padding:10px 12px;font-size:0.8rem;color:#7A5C12;line-height:1.45;margin-bottom:12px;}
.esign_error{color:#B3261E;font-size:0.85rem;margin:8px 0 0 0;min-height:1em;}

.esign_consent_text{max-height:220px;overflow-y:auto;background:#F4F5F6;border:1px solid #E8E9EB;border-radius:6px;padding:12px;font-size:0.85rem;line-height:1.5;margin-bottom:12px;}
.esign_consent_agree{display:flex;align-items:flex-start;gap:8px;font-size:0.85rem;line-height:1.4;margin-bottom:4px;cursor:pointer;}
.esign_consent_agree input{margin-top:2px;}

.esign_doc_summary{background:#DCE9F5;border-radius:6px;padding:10px 12px;margin-bottom:14px;}
.esign_doc_name{font-weight:700;color:#0D2137;word-break:break-word;font-size:0.9rem;}
.esign_doc_hash{font-family:monospace;font-size:0.72rem;color:#3A3D42;word-break:break-all;margin-top:4px;}

.esign_field{margin-bottom:12px;}
.esign_label{font-size:0.78rem;color:#6E727A;margin-bottom:4px;display:block;}
.esign_modal input[type=password], .esign_modal input[type=text], .esign_modal textarea{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid #B0B4BB;border-radius:6px;font-size:0.95rem;background:#ffffff;color:#3A3D42;}
.esign_modal textarea{min-height:70px;resize:vertical;font-family:inherit;}
.esign_pin_input{letter-spacing:0.35em;font-size:1.1rem !important;text-align:center;}

.esign_actions{margin-top:16px;text-align:right;}
.esign_btn{display:inline-block;cursor:pointer;border-radius:6px;padding:9px 16px;font-size:0.9rem;font-weight:600;user-select:none;}
.esign_btn_primary{background:#1A3A5C;color:#ffffff;}
.esign_btn_primary:hover{background:#2A6098;}
.esign_btn_secondary{background:#E8E9EB;color:#3A3D42;margin-right:8px;}
.esign_btn_secondary:hover{background:#B0B4BB;}
.esign_btn_disabled{opacity:0.5;pointer-events:none;}

.esign_success_box{text-align:center;padding:10px 0 4px 0;}
.esign_success_icon{width:52px;height:52px;border-radius:50%;background:#D4EFDF;color:#1E6B3C;font-size:1.6rem;font-weight:700;line-height:52px;margin:0 auto 12px auto;}
.esign_success_title{font-weight:700;color:#1E6B3C;margin-bottom:6px;}
.esign_success_meta{font-family:monospace;font-size:0.72rem;color:#6E727A;word-break:break-all;}

/* per-document signature status in meeting document / agenda lists (the Sign button itself is
   PHP-rendered next to view/download and inherits that button group's styling) */
.esign_list_badge{font-size:0.72rem;line-height:1.9;margin-right:10px;white-space:nowrap;}
.esign_row_count{cursor:pointer;}
.esign_row_count:hover{text-decoration:underline;}

/* signatures panel (file details sidebar) */
.esign_panel_empty{font-size:0.8rem;color:#6E727A;margin:4px 0 10px 0;}
.esign_panel_row{padding:7px 8px;border:1px solid #E8E9EB;border-radius:6px;margin-bottom:6px;cursor:pointer;font-size:0.8rem;line-height:1.4;}
.esign_panel_row:hover{background:#F4F5F6;}
.esign_panel_row_name{font-weight:600;color:#0D2137;}
.esign_panel_row_meta{color:#6E727A;font-size:0.72rem;}
.esign_badge_valid{color:#1E6B3C;font-weight:700;}
.esign_badge_invalid{color:#B3261E;font-weight:700;}
.esign_panel_sign_btn{margin-top:8px;}

/* verification checklist */
.esign_checklist{margin:8px 0 4px 0;}
.esign_check_row{display:flex;gap:8px;align-items:flex-start;font-size:0.82rem;padding:3px 0;}
.esign_check_row .ok{color:#1E6B3C;font-weight:700;}
.esign_check_row .fail{color:#B3261E;font-weight:700;}
.esign_verify_meta{font-size:0.75rem;color:#6E727A;margin-top:10px;line-height:1.5;}
.esign_verify_meta .mono{font-family:monospace;word-break:break-all;color:#3A3D42;}
