/* DEV 2026-10-29 — reminder actions belong to invoice rows, not 15/25 lines below. */
.debtor-invoice-section[data-gns-reminder-inline="ready"] > .debtor-invoice-reminders{
  display:none !important;
}
.debtor-invoice-section .mini-table .gns-reminder-head{
  width:154px;min-width:154px;text-align:center;
}
.debtor-invoice-section .mini-table .gns-reminder-action-cell{
  min-width:154px;text-align:center;vertical-align:middle;
  padding:3px 5px !important;
}
.debtor-invoice-section .gns-reminder-inline-button{
  appearance:none;cursor:pointer;
  border:1px solid #bad2e0;background:#eef7fc;color:#1b5e81;
  border-radius:5px;padding:5px 8px;min-height:28px;
  font-size:11px;line-height:1.2;font-weight:650;
  white-space:nowrap;
}
.debtor-invoice-section .gns-reminder-inline-button:hover{
  background:#dceff9;border-color:#77b4d1;
}
.debtor-invoice-section .gns-reminder-inline-button:focus-visible{
  outline:3px solid #4d9ed5;outline-offset:1px;
}
.debtor-invoice-section .gns-reminder-inline-button[aria-busy="true"]{
  opacity:.65;cursor:progress;
}
/* Preserve existing confirmation and sending, but guarantee the editor
   occupies the foreground at any invoice-list scroll depth. */
body .modal-backdrop.gns-reminder-topmost {
  position:fixed !important;inset:0 !important;
  z-index:2147483000 !important;
  display:flex !important;align-items:center !important;
  justify-content:center !important;
  padding:12px !important;overflow:auto !important;
  overscroll-behavior:contain;
}
body .modal-backdrop.gns-reminder-topmost .modal-card {
  width:min(900px,96vw);max-width:96vw;
  max-height:calc(100dvh - 24px);
  margin:auto;overflow:hidden;
}
body .modal-backdrop.gns-reminder-topmost .modal-header {
  flex:0 0 auto;
}
body .modal-backdrop.gns-reminder-topmost .modal-body {
  flex:1 1 auto;min-height:0;overflow-y:auto;
}
@media(max-width:680px){
 body .modal-backdrop.gns-reminder-topmost {padding:6px!important;}
 body .modal-backdrop.gns-reminder-topmost .modal-card {
  width:100%;max-width:100%;max-height:calc(100dvh - 12px);
 }
}

/* DEV 2.7.183: visible debtor send result and scoped HTML signature preview */
.gns-debtor-send-success {max-width:680px;margin:0 auto;padding:18px 12px 8px;text-align:center}
.gns-debtor-success-icon {width:64px;height:64px;line-height:64px;border-radius:50%;
 color:#147347;background:#e3f8eb;font-weight:800;font-size:40px;margin:4px auto 10px}
.gns-debtor-send-success h3 {font-size:22px;margin:6px 0;color:#176a43}
.gns-debtor-send-success p {margin:8px auto;line-height:1.5}
.gns-debtor-success-facts {max-width:580px;margin:16px auto;padding:12px;
 border:1px solid #d8e3ed;border-radius:9px;background:#f5f8fb;text-align:left}
.gns-debtor-success-facts > div {display:flex;justify-content:space-between;
 flex-wrap:wrap;gap:8px;padding:6px 0;border-bottom:1px solid #e2e9ef}
.gns-debtor-success-facts > div:last-child {border-bottom:0}
.gns-debtor-success-facts span {color:#546b7e}
.gns-debtor-safe-close {font-weight:700;color:#176a43}
.gns-debtor-send-success > button {min-height:40px;margin:10px auto 3px;padding:10px 22px}
.gns-debtor-signature-section {grid-column:1/-1;border:1px solid #d8e5ee;
 border-radius:8px;padding:8px 11px;background:#f8fbfd;min-width:0}
.gns-debtor-signature-head {display:flex;align-items:center;justify-content:space-between;
 flex-wrap:wrap;gap:8px;margin-bottom:7px;font-size:13px}
.gns-debtor-signature-head button {font-size:11px;padding:5px 8px}
.gns-debtor-signature-preview {display:block;width:min(100%,530px);height:200px;
 border:1px solid #dce5eb;background:white;border-radius:5px}
.gns-debtor-signature-section small {display:block;color:#5a6e7f;line-height:1.35;margin-top:7px}
.gns-debtor-signature-message {margin:5px 0;font-size:12px;color:#176a43}
.gns-debtor-signature-section input[type=file] {max-width:100%;font-size:12px}
