/* SignDesk – Word editor screen (3.5.0): Home-tab toolbar, page that looks like the document, menus. */
.wd-wrap .sd-top { position: relative; top: 0; }
.wd-ribbon { display: flex; flex-direction: column; gap: 3px; padding: 4px 8px; background: #f7f9fa; border-bottom: 1px solid var(--line, #dfe4ea); }
.wd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; }
.wd-grp { display: flex; align-items: center; gap: 1px; flex-wrap: nowrap; padding-right: 4px; border-right: 1px solid #e3e8ec; }
.wd-grp:last-child { border-right: 0; }
.wd-zoom { margin-left: auto; gap: 4px; }
.wd-zoom .btn-sm { padding: 3px 8px; font-size: 12.5px; }
.wd-b { display: inline-flex; align-items: center; gap: 4px; height: 29px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: transparent;
  color: var(--ink, #1d2433); font: inherit; font-size: 12.5px; line-height: 1; cursor: pointer; white-space: nowrap; }
.wd-b:hover { background: #fff; border-color: #cfd8dc; }
.wd-b:focus-visible { outline: 2px solid var(--gold, #f2b705); outline-offset: 1px; }
.wd-b:disabled { opacity: .45; cursor: default; background: transparent; border-color: transparent; }
.wd-b[aria-pressed="true"] { background: var(--green-soft, #e7f2ef); border-color: var(--green, #0b5d4b); color: var(--green-dark, #094b3d); }
.wd-b[aria-expanded="true"] { background: #fff; border-color: #b8c4ca; }
.wd-i { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 14px; font-weight: 700; font-size: 13px; }
.wd-i svg { width: 15px; height: 15px; display: block; }
.wd-bold .wd-i { font-weight: 800; }
.wd-italic .wd-i { font-style: italic; font-family: Georgia, serif; }
.wd-under .wd-i { text-decoration: underline; }
.wd-strike .wd-i { text-decoration: line-through; }
.wd-ai { font-family: Georgia, serif; }
.wd-bar { position: absolute; left: -1px; right: -1px; bottom: -4px; height: 3px; border-radius: 1px; box-shadow: 0 0 0 .5px #0003; }
.wd-more { padding: 0 5px 0 4px; margin-left: -3px; border-left: 1px dotted #c9d3d8; border-radius: 0 6px 6px 0; }
.wd-more .wd-l { max-width: 86px; overflow: hidden; text-overflow: ellipsis; }
.wd-caret { font-size: 10px; opacity: .7; }
.wd-sel { height: 29px; border: 1px solid #cfd8dc; border-radius: 6px; background: #fff; font-size: 12.5px; padding: 0 4px; color: var(--ink, #1d2433); }
.wd-font { width: 128px; }
.wd-size { width: 58px; }

/* drop-down menus */
.wd-menu { position: fixed; z-index: 1000; background: #fff; border: 1px solid #cdd6db; border-radius: 10px; box-shadow: 0 10px 28px rgba(16,24,40,.18); padding: 8px; min-width: 190px; max-width: 360px; font-size: 13px; }
.wd-mh { font-size: 11px; font-weight: 700; color: var(--muted, #5f6b7a); text-transform: uppercase; letter-spacing: .4px; margin: 4px 4px 6px; }
.wd-mh:not(:first-child) { margin-top: 10px; border-top: 1px solid #edf0f2; padding-top: 8px; }
.wd-mi { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; font: inherit; cursor: pointer; color: var(--ink, #1d2433); }
.wd-mi:hover:not(:disabled) { background: var(--green-soft, #e7f2ef); }
.wd-mi:disabled { opacity: .45; cursor: default; }
.wd-sw { width: 16px; height: 16px; border-radius: 3px; border: 1px solid #0003; flex: none; }
.wd-sw-none { background: linear-gradient(135deg, #fff 45%, #d33 45%, #d33 55%, #fff 55%); }
.wd-tmenu { width: 330px; max-width: 330px; }
.wd-grid { display: grid; grid-template-columns: repeat(10, 22px); gap: 3px; margin: 2px 4px; }
.wd-gc { width: 22px; height: 18px; border: 1px solid #c3ccd2; background: #fff; border-radius: 2px; padding: 0; cursor: pointer; }
.wd-gc.on { background: #ffe9a8; border-color: #d29b00; }
.wd-gl { font-size: 12px; color: var(--muted, #5f6b7a); margin: 6px 4px; }
.wd-rc { display: flex; align-items: center; gap: 8px; margin: 4px; flex-wrap: wrap; }
.wd-rc label { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.wd-num { width: 58px !important; padding: 4px 6px !important; }
.wd-rc .wd-b { border-color: #cfd8dc; background: #fff; }
.wd-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

/* find and replace */
.wd-find { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; background: #fffbea; border-bottom: 1px solid #f0e3b6; }
.wd-find[hidden] { display: none; }
.wd-fi { width: 170px !important; padding: 5px 8px !important; }
.wd-flbl { font-size: 12.5px; font-weight: 600; color: #3b3214; }
.wd-find .wd-b { border-color: #d9cfa6; background: #fff; }
.wd-case { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.wd-fmsg { font-size: 12.5px; color: #5c4b12; min-width: 60px; }
.wd-fclose { margin-left: auto; }

/* the page */
.wd-scroll { padding: 22px 12px 60px; }
.wd-page.doc-ed { max-width: 100%; box-sizing: border-box; padding: 40px min(var(--mr, 96px), 7vw) 64px min(var(--ml, 96px), 7vw); margin: 0 auto; font: inherit; position: relative; color: #000; }
.wd-body { outline: none; min-height: 300px; caret-color: #000; tab-size: 48px; -moz-tab-size: 48px; }
.wd-body.wd-painting, .wd-body.wd-painting * { cursor: copy !important; }
.wd-body.wd-arming, .wd-body.wd-arming * { cursor: crosshair; }
.wd-page .doc-p { padding: 0; border-radius: 0; min-height: 0; white-space: pre-wrap; overflow-wrap: break-word; }
.wd-page .doc-p.doc-hasobj { position: relative; }
.wd-body.wd-long > .doc-p, .wd-body.wd-long > table { content-visibility: auto; contain-intrinsic-size: auto 22px; }
.wd-page .doc-p.doc-pbb { border-top: 1px dashed #b8c2c9; padding-top: 4px; }
.wd-page .doc-r { white-space: pre-wrap; }
.doc-num { display: inline-block; text-indent: 0; padding-right: 4px; user-select: none; -webkit-user-select: none; white-space: pre; }
.doc-atom { user-select: none; }
.doc-fld { background: #eef2f5; color: inherit; border-radius: 2px; box-shadow: inset 0 -1px 0 #c9d2d8; }
.doc-note { font-size: .7em; vertical-align: super; color: #556; }
.doc-pbr { display: block; text-align: center; font: 11px "Segoe UI", Roboto, Arial, sans-serif; color: #7a8792; border-top: 1px dashed #b8c2c9; margin: 6px 0; padding-top: 2px; }
.doc-img, .doc-shape { display: inline-block; max-width: 100%; height: auto; vertical-align: bottom; background: #eef1f3; position: relative; overflow: hidden; text-indent: 0; }
.doc-img canvas { display: block; width: 100%; height: 100%; }
.doc-img.loaded { background: transparent; }
.doc-img .ph, .doc-shape .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font: 12px "Segoe UI", Roboto, Arial, sans-serif; color: #7a8792; padding: 4px; white-space: normal; }
.doc-shape { background: #f6f8f9; outline: 1px dashed #c3ccd2; outline-offset: -1px; }
.doc-float.doc-fl { float: left; margin: 0 10px 6px 0; }
.doc-float.doc-fr { float: right; margin: 0 0 6px 10px; }
.doc-float.doc-block { display: block; margin: 4px auto; }
.doc-float.doc-abs { position: absolute; z-index: 2; pointer-events: none; background: transparent; }
.doc-float.doc-abs.doc-behind { z-index: 0; opacity: .9; }
.doc-float.doc-abs .ph { background: #eef1f3aa; }
.wd-page .doc-sdt { display: block; }

/* tables */
.wd-page table.doc-t { border-collapse: collapse; table-layout: fixed; margin: 0; max-width: none; width: auto; }
.wd-page table.doc-t td { border: 0; vertical-align: top; padding-top: 0; padding-bottom: 0; overflow-wrap: break-word; }
.wd-page table.doc-t.wd-gridlines > tr > td { outline: 1px dashed #c8d0d8; outline-offset: -1px; }
.wd-page table.doc-t td:focus-within { box-shadow: inset 0 0 0 1px #e9c46a; }

/* header and footer: shown, kept exactly as they are */
.wd-hf { color: #5b6670; font-size: 10pt; margin: -24px 0 18px; padding: 4px 0 8px; border-bottom: 1px dashed #c9d2d8; position: relative; user-select: none; -webkit-user-select: none; }
.wd-footer { margin: 28px 0 -40px; padding: 8px 0 4px; border-bottom: 0; border-top: 1px dashed #c9d2d8; }
.wd-hf-tag { position: absolute; right: 0; top: -2px; font: 600 10px "Segoe UI", Roboto, Arial, sans-serif; color: #8a96a0; text-transform: uppercase; letter-spacing: .5px; }
.wd-footer .wd-hf-tag { top: auto; bottom: -2px; }
.wd-hf .doc-p { opacity: .85; }

/* placed signatures: the selected one shows its own ink colours */
.doc-sig.on { outline: 2px solid var(--green, #0b5d4b); }
.doc-sig-ink { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid #cdd6db; border-radius: 10px; box-shadow: 0 8px 20px rgba(16,24,40,.16);
  padding: 8px; width: max-content; max-width: 420px; display: flex; flex-direction: column; gap: 6px; text-indent: 0; white-space: normal; font: 13px "Segoe UI", Roboto, Arial, sans-serif; }
.doc-sigs { text-indent: 0; }
.doc-sig .mini { white-space: nowrap; font: 11px "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink, #1d2433); }

.wd-tog { display: none; }
@media (max-width: 1199px) {
  .wd-tog { display: flex; }
  .wd-ribbon.wd-few .wd-rowB { display: none; }
}
@media (max-width: 760px) {
  .wd-grp { border-right: 0; padding-right: 2px; }
  .wd-b .wd-l { font-size: 12px; }
  .wd-font { width: 110px; }
}
