/* =====================================================================
   ThrivoSign SSA - module overlay for the shared indigo / violet theme
   ---------------------------------------------------------------------
   Load order:  ... thrivosign-next.css  ->  thrivosign-purple.css (shared spec)  ->  THIS FILE.
   Everything is scoped under .tsp (class on <body>), so a page that does not opt in is untouched.
   Same look as the PQCTrust CA admin portal (ca-engine .../static/admin/admin.css): navy->indigo chrome, lavender canvas,
   white 14px cards, 10px inputs with a violet focus ring, every button a pill, primary = violet gradient.

   Supersedes the 2026-10-04 contract rule 8 ("main buttons are navy"): actions are violet now. Orange is still never a
   button; it survives only as the tick in the seal (--fs-seal).

   Approach: the SSA stylesheets are already written against --fs-* tokens, so section 1 re-points those tokens to the
   palette in thrivosign-purple.css and most of the product follows. The rest of the file maps SSA's own shell and
   components (rail, top bar, tiles, buttons, wizard, dialogs, focus screens) onto the same recipes.
   px / em only (Bootstrap 3 sets html font-size to 10px).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS: --fs-* (SSA) -> --tsp-* (shared)
   --------------------------------------------------------------------- */
.tsp {
  --ssa-link: #4a3dd0;                       /* same link violet as the sign-in page (6.4:1 on white) */
  --ssa-chrome-page: radial-gradient(900px 420px at 12% -10%, rgba(122, 63, 240, .45), transparent 70%),
    radial-gradient(700px 360px at 95% 100%, rgba(18, 179, 166, .22), transparent 70%),
    linear-gradient(135deg, var(--tsp-night) 0%, #1b2b86 55%, var(--tsp-accent-deep) 100%);  /* = --ts-chrome of thrivosign-login.css */
  --ssa-pill-shadow: 0 3px 10px rgba(91, 76, 230, .28);

  --fs-brand-action: var(--tsp-accent);          /* 5.8:1 on white */
  --fs-brand-action-hover: var(--tsp-accent-deep);
  --fs-brand-action-quiet: var(--tsp-accent-soft);
  --fs-brand-border: #d9d4fb;
  --fs-brand-display: var(--tsp-accent-2);
  --fs-brand-gradient: var(--tsp-chrome);
  --fs-on-navy-accent: #fff;

  --fs-canvas: var(--tsp-bg);
  --fs-canvas-sunk: #e9e7f6;
  --fs-text: var(--tsp-ink);
  --fs-text-2: #55537a;                          /* 7:1 on white */
  --fs-text-3: var(--tsp-muted);                 /* 5.4:1 on white, 4.9:1 on the canvas */
  --fs-line: var(--tsp-line);
  --fs-field-line: var(--tsp-line-2);
  --fs-icon-muted: #8b89ad;

  --fs-ink-900: var(--tsp-ink);
  --fs-ink-800: #26233f;
  --fs-ink-700: var(--tsp-ink-2);
  --fs-ink-600: var(--tsp-muted);
  --fs-ink-300: var(--tsp-line-2);
  --fs-ink-200: var(--tsp-line);
  --fs-ink-100: #f6f5fc;
  --fs-navy-700: #1f1a55;                        /* headings and other "navy" text: deep indigo, 14:1 on white */
  --fs-navy-gradient: var(--tsp-sidebar);
  --fs-navy-trust: var(--tsp-night);             /* trust surfaces stay brand navy */
  --fs-navy-raised: #1b2b86;
  --fs-navy-edge: #3b4aa8;

  --fs-focus-ring: #7a63ff;
  --fs-shadow-focus: 0 0 0 3px rgba(91, 76, 230, .3);
  --fs-shadow-sm: 0 1px 2px rgba(23, 20, 58, .06);
  --fs-shadow-md: 0 2px 8px rgba(35, 28, 95, .10), 0 1px 2px rgba(23, 20, 58, .06);
  --fs-shadow-lg: var(--tsp-shadow);
  --fs-radius-btn: 999px;
  --fs-radius-md: 10px;
  --fs-radius-lg: var(--tsp-radius);
  --fs-radius-focus: 22px;
  --fs-font: "Inter", Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-info-fg: var(--tsp-accent-deep);  --fs-info-bg: var(--tsp-accent-soft);
  --fs-neutral-fg: var(--tsp-ink-2);     --fs-neutral-bg: #efeefa;
  --bs-primary-rgb: 91, 76, 230;
  --bs-link-color-rgb: 74, 61, 208;
}

body.tsp { font-family: var(--fs-font); color: var(--tsp-ink); background: var(--tsp-bg); }
.tsp .fs-seal__disc { fill: var(--tsp-night); }          /* the seal is a brand mark: navy disc, orange tick */
.tsp :focus-visible { outline: 2px solid #7a63ff; outline-offset: 2px; }
.tsp a { color: var(--ssa-link); }
.tsp a:hover { color: var(--tsp-accent-deep); }

/* ---------------------------------------------------------------------
   2. BUTTONS: every button is a pill; primary = violet gradient
   --------------------------------------------------------------------- */
.tsp .btn, .tsp .fs-btn, .tsp .fs-btn-primary, .tsp .btnv2, .tsp input[type="submit"].btn,
.tsp [class*="button_default"], .tsp .button_bold, .tsp .button-sign, .tsp .button-sign-disable,
.tsp .footerStep .btn, .tsp .btn-come-back, .tsp .btn-decline, .tsp .modal-button, .tsp .confirm-btn,
.tsp .request-otp-btn, .tsp .signup-btn, .tsp .btn-resend, .tsp #btnSign,
.tsp.fs-docs .TopArea .btn, .tsp.fs-docs .fs-start .btn {
  border-radius: 999px;
}
/* primary */
.tsp .fs-btn-primary, .tsp .form_Area .btn, .tsp input[type="submit"].btn, .tsp .btnv2, .tsp .footerStep .btnNext,
.tsp .fs-btn--primary, .tsp .btn-primary, .tsp .button-sign,
.tsp [class*="button_default"]:not([class*="delete"]):not([class*="disable"]):not([class*="back"]),
.tsp.fs-docs .TopArea .btn, .tsp.fs-docs .fs-start .btn, .tsp.fs-docs .popup_content .btn:not(.gray):not(.red) {
  color: #fff;
  background-color: var(--tsp-accent);
  background-image: var(--tsp-gradient);
  border: 0;
  box-shadow: var(--ssa-pill-shadow);
}
.tsp .fs-btn-primary:hover, .tsp .form_Area .btn:hover, .tsp input[type="submit"].btn:hover, .tsp .btnv2:hover,
.tsp .footerStep .btnNext:hover, .tsp .fs-btn--primary:hover, .tsp .btn-primary:hover, .tsp .button-sign:hover,
.tsp [class*="button_default"]:not([class*="delete"]):not([class*="disable"]):not([class*="back"]):hover,
.tsp.fs-docs .TopArea .btn:hover, .tsp.fs-docs .fs-start .btn:hover {
  color: #fff;
  background-color: var(--tsp-accent);
  background-image: var(--tsp-gradient);
  filter: brightness(1.07);
  box-shadow: 0 5px 16px rgba(91, 76, 230, .35);
}
/* secondary: white, violet text, lavender border */
.tsp .fs-btn--secondary, .tsp .fs-btn-secondary, .tsp .btn-default, .tsp .footerStep .btnBack, .tsp .footerStep .btnDraf,
.tsp .btn-come-back, .tsp .fullset .btn.fs-btn-secondary, .tsp.fs-docs .popup_content .btn.gray {
  color: var(--tsp-accent-deep);
  background: #fff;
  background-image: none;
  border: 1px solid var(--tsp-line-2);
  box-shadow: none;
}
.tsp .fs-btn--secondary:hover, .tsp .fs-btn-secondary:hover, .tsp .btn-default:hover, .tsp .footerStep .btnBack:hover,
.tsp .footerStep .btnDraf:hover, .tsp .btn-come-back:hover, .tsp .fullset .btn.fs-btn-secondary:hover,
.tsp.fs-docs .popup_content .btn.gray:hover {
  color: var(--tsp-accent-deep);
  background: var(--tsp-accent-soft);
  border-color: #d9d4fb;
}
/* danger: red gradient (declare / delete) */
.tsp .btn-danger, .tsp .btn-decline, .tsp [class*="button_default_delete"], .tsp .button_delete_doc, .tsp.fs-docs .popup_content .btn.red {
  color: #fff;
  background-color: #c62a47;
  background-image: linear-gradient(135deg, #d1344f, #a81f3a);
  border: 0;
  box-shadow: 0 3px 10px rgba(198, 42, 71, .28);
}
.tsp .fs-btn--danger-ghost { border-radius: 999px; color: var(--tsp-bad); }
/* disabled keeps a legible label (>= 4.5:1) */
.tsp .footerStep .btnNext:disabled, .tsp .footerStep .btnNext[disabled], .tsp .form_Area .btn:disabled, .tsp .fs-btn-primary:disabled,
.tsp .btn[disabled], .tsp .button-sign-disable {
  color: var(--tsp-ink-2);
  background-color: #e6e4f3;
  background-image: none;
  box-shadow: none;
  filter: none;
}
.tsp .btn:focus-visible, .tsp .fs-btn:focus-visible, .tsp .footerStep .btn:focus-visible {
  outline: 2px solid #7a63ff;
  outline-offset: 2px;
  box-shadow: var(--fs-shadow-focus);
}
/* links styled as buttons keep their shape in bootstrap dropdown toggles etc. */
.tsp .btn-link { border-radius: 999px; }

/* the dashboard action buttons carry an icon as their first background layer: keep it, put the gradient under it */
.tsp.fs-docs .TopArea .btn, .tsp.fs-docs .fs-start .btn {
  background: url(../core/theme-mb/content/images/FilesManager/addnew.svg) 16px center / 20px no-repeat, var(--tsp-gradient);
}
.tsp.fs-docs .TopArea .btn.csign { background: url(../core/theme-mb/content/images/FilesManager/sign_now.svg) 24px center / 16px no-repeat, var(--tsp-gradient); }

/* the shared .btn padding must not double up inside the fixed-height legacy buttons */
.tsp .footerStep .btn { padding: 0 26px; }
.tsp .form_Area .btn, .tsp .fs-btn-primary, .tsp .fs-btn { padding: 0 24px; }

/* ---------------------------------------------------------------------
   3. FORM CONTROLS: 10px radius, lavender border, violet focus ring
   --------------------------------------------------------------------- */
.tsp input[type="text"], .tsp input[type="password"], .tsp input[type="email"], .tsp input[type="number"],
.tsp input[type="search"], .tsp input[type="tel"], .tsp input[type="url"], .tsp input[type="date"], .tsp select,
.tsp textarea, .tsp .form-control, .tsp .fs-input, .tsp .ggCalendar, .tsp .nlang > label {
  border-color: var(--tsp-line-2);
  border-radius: var(--tsp-radius-sm);
  color: var(--tsp-ink);
}
.tsp input:focus, .tsp select:focus, .tsp textarea:focus, .tsp .form-control:focus, .tsp .fs-input:focus {
  outline: none;
  border-color: var(--tsp-accent);
  box-shadow: 0 0 0 3px rgba(91, 76, 230, .18);
}
.tsp ::placeholder { color: #7d7ba0; opacity: 1; }
.tsp input[type="checkbox"], .tsp input[type="radio"] { accent-color: var(--tsp-accent); }
.tsp label { color: var(--tsp-ink-2); }

/* ---------------------------------------------------------------------
   4. APP SHELL: TOP NAVIGATION (same layout as the PQCTrust CA portal and WebManager)
   ---------------------------------------------------------------------
   Same markup, ids and JS as before (layout_left.jsp .menuline, layout_top.jsp .headline). Only the layout changes:
     > 1024px  the .headline becomes the indigo header band (brand left, language / bell / account right) and the
               .menuline becomes a floating white pill bar that straddles the band's lower edge; the two sections
               (Documents, Records) open as a white dropdown on hover or keyboard focus (not on the JS-toggled
               .block class: layout_left.jsp clicks the current section open on load, which would pop it open).
     <= 1024px layout.js adds .less at load. The band stays, the hamburger shows, and the .menuline is the existing
               drawer (hidden while .less, a navy sidebar with violet pills once the hamburger removes .less).
   --------------------------------------------------------------------- */
.tsp .menuline + .contline { background: var(--tsp-bg); }
.tsp .menuline .logo { background: url(brand/pqctrust-mark-reversed.svg) 20px center no-repeat; background-size: 32px auto; }

/* header band (both layouts) */
.tsp .headline {
  position: relative;
  z-index: 10;
  background: var(--tsp-chrome);
  border: 0;
  box-shadow: none;
}
/* no logo in the band (owner, 2026-11-01): menu, language, bell and account sit on one row */
.tsp .headline .headright { padding: 24px 32px 0 16px; }
.tsp .headline .account span { color: #fff; font-size: 13px; }
.tsp .headline .account span:after {
  background: none;
  width: 6px; height: 6px; top: 13px; right: 2px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.tsp .headline .account img { border: 2px solid rgba(255, 255, 255, .55); }
.tsp .headline .bell { background: none; }
.tsp .headline .bell::before {                 /* the dark bell icon, made white; the unread badge is not filtered */
  content: "";
  position: absolute; inset: 0;
  background: url(../v2/Content/images/Master/bell.svg) center / 20px no-repeat;
  filter: brightness(0) invert(1);
}
.tsp .headline .bell i { background: var(--tsp-teal); color: var(--tsp-night); font-weight: 700; }
.tsp .headline .account ul {
  background: #fff;
  border: 1px solid var(--tsp-line);
  border-radius: var(--tsp-radius-sm);
  box-shadow: 0 20px 50px rgba(21, 16, 61, .28);
}
.tsp .headline .account ul li { color: var(--tsp-ink-2); }
.tsp .headline .account ul li:hover { background: var(--tsp-accent-soft); color: var(--tsp-accent-deep); }
.tsp .headline .account ul li:hover a { color: var(--tsp-accent-deep); }
.tsp .headline .ssa-lang-label { color: #e4e6f8; }
.tsp .headline .ssa-lang-select { min-height: 36px; border-radius: 999px; border-color: rgba(255, 255, 255, .35); color: var(--tsp-ink); }
.tsp .headline .hambuger { border-radius: 8px; filter: brightness(0) invert(1); }

@media (min-width: 1025px) {
  .tsp .headline { height: 72px; }
  .tsp .headline .headright { padding-top: 16px; }
  .tsp .headline .headleft { display: none; }
  .tsp .menuline + .contline, .tsp .menuline.less + .contline { float: none; width: 100%; height: 100vh; }
  .tsp .menuline + .contline > .contentArea { height: calc(100vh - 72px); padding: 32px 32px 16px; }

  /* the pill bar: fixed, zero-height host so it takes no room in the flow */
  .tsp .menuline, .tsp .menuline.less {
    position: fixed; top: 0; left: 0; right: 0;
    width: auto; height: 0;
    float: none;
    background: none; border: 0; box-shadow: none;
    z-index: 40;
    overflow: visible;
  }
  .tsp .menuline .logo { display: none; }
  .tsp .menuline > ul {
    position: absolute; top: 12px; left: 32px;
    display: flex; align-items: center; gap: 2px;
    width: max-content; max-width: calc(100% - 64px);
    margin: 0; padding: 5px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--tsp-line);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(21, 16, 61, .18);
  }
  .tsp .menuline > ul > li, .tsp .menuline.less > ul > li {
    float: none; width: auto; margin: 0; padding: 0;
    position: relative;
    border-radius: 999px;
    background: none;
  }
  .tsp .menuline > ul > li > a, .tsp .menuline > ul > li .focus b,
  .tsp .menuline.less > ul > li > a, .tsp .menuline.less > ul > li .focus > b {
    display: inline-flex; align-items: center;
    float: none; width: auto; margin: 0;
    padding: 9px 18px;
    border: 0; border-radius: 999px;
    background: none;
    color: var(--tsp-ink-2);
    font-size: 14px; font-weight: 550; line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
  }
  .tsp .menuline.less > ul > li > a span, .tsp .menuline.less > ul > li .focus { display: inline; }
  .tsp .menuline > ul > li > .focus, .tsp .menuline.less > ul > li > .focus {
    position: static; display: block; min-width: 0; padding: 0; margin: 0;
    background: none; border: 0; box-shadow: none; border-radius: 999px;
  }
  /* icons: the legacy dark SVG before each label */
  .tsp .menuline > ul > li > a:before, .tsp .menuline > ul > li .focus b:before {
    float: none; flex: none; margin: 0 8px 0 0; padding: 0;
    width: 16px; height: 16px; filter: none; opacity: .85;
  }
  .tsp .menuline.less > ul > li:before, .tsp .menuline.less > ul > li:not(:first-child):before { display: none; }
  /* chevron on a section: drawn with borders so it follows the text colour */
  .tsp .menuline > ul > li:not(:first-child) b:after,
  .tsp .menuline > ul > li .focus.block b:after,
  .tsp .menuline.less > ul > li .focus.block b:after {
    content: ""; display: inline-block; position: static;
    width: 6px; height: 6px; margin: -3px 0 0 10px; padding: 0;
    background: none; filter: none; opacity: 1;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }
  .tsp .menuline > ul > li.active:after, .tsp .menuline.less > ul > li:after { display: none; }

  .tsp .menuline > ul > li:hover > a, .tsp .menuline > ul > li:hover > .focus b,
  .tsp .menuline > ul > li:focus-within > .focus b { color: var(--tsp-accent-deep); background: var(--tsp-accent-soft); }
  /* current page / section: violet gradient pill */
  .tsp .menuline > ul > li.active > a, .tsp .menuline > ul > li.active .focus b {
    color: #fff;
    background: var(--tsp-gradient) !important;
    box-shadow: 0 4px 12px rgba(91, 76, 230, .35);
    font-weight: 650;
  }
  .tsp .menuline > ul > li.active > a:before, .tsp .menuline > ul > li.active .focus b:before { filter: brightness(0) invert(1); opacity: 1; }
  /* the open state toggled by JS is not shown: the dropdown follows hover / focus */
  .tsp .menuline > ul > li .focus.block b { background: none; }
  .tsp .menuline > ul > li.active .focus.block b { background: var(--tsp-gradient) !important; }

  /* dropdown */
  .tsp .menuline > ul > li .focus > ul, .tsp .menuline > ul > li .focus.block > ul,
  .tsp .menuline.less > ul > li .focus.block > ul { display: none; }
  .tsp .menuline > ul > li:hover > .focus > ul, .tsp .menuline > ul > li:focus-within > .focus > ul {
    display: block;
    position: absolute; top: 100%; left: 0; z-index: 50;
    float: none; width: auto; min-width: 210px; margin: 0; padding: 8px; list-style: none;
    background: #fff; background-clip: padding-box;
    border: 8px solid transparent; border-width: 8px 0 0;       /* invisible bridge so the hover is not lost */
    border-radius: var(--tsp-radius-sm);
    box-shadow: 0 20px 50px rgba(21, 16, 61, .28);
  }
  .tsp .menuline > ul > li > .focus > ul > li, .tsp .menuline.less > ul > li > .focus > ul > li {
    margin: 0; padding: 0; color: var(--tsp-ink-2); font-size: 14px;
  }
  .tsp .menuline > ul > li > .focus > ul > li > a {
    display: block; padding: 9px 14px; border-radius: 10px;
    color: var(--tsp-ink-2); font-weight: 550; white-space: nowrap; min-height: 0;
  }
  .tsp .menuline > ul > li > .focus > ul > li:hover > a { color: var(--tsp-accent-deep); background: var(--tsp-accent-soft); }
  .tsp .menuline > ul > li > .focus > ul > li.active > a { color: #fff; background: var(--tsp-gradient) !important; box-shadow: none; }
  .tsp .menuline > ul > li > .focus > ul > li.active::marker { color: transparent; }
}

/* drawer (tablet and phone): hamburger shows, the .menuline is the slide-in sidebar */
@media (max-width: 1024px) {
  .tsp .headline { height: 64px; }
  .tsp .headline::before { width: 150px; height: 40px; margin: 12px 0 0 4px; }
  .tsp .headline .headleft { width: auto; padding: 22px 8px 0 16px; }
  .tsp .headline .headright { padding-top: 14px; }
  .tsp .menuline + .contline, .tsp .menuline.less + .contline { float: none; width: 100%; height: 100vh; }
  .tsp .menuline + .contline > .contentArea { height: calc(100vh - 64px); }
  .tsp .menuline.less { display: none; }
  .tsp .menuline:not(.less) {
    position: fixed; inset: 0 auto 0 0; z-index: 60;
    width: 280px; height: 100vh; float: none;
    background: var(--tsp-sidebar);
    box-shadow: 0 0 40px rgba(21, 16, 61, .45);
    overflow-y: auto;
  }
  .tsp .menuline:not(.less) > ul > li > a, .tsp .menuline:not(.less) > ul > li .focus b {
    width: calc(100% - 20px); margin: 3px 10px; padding: 12px 16px;
    border-left: 0; border-radius: 999px; color: #dfe3f6;
  }
  .tsp .menuline:not(.less) > ul > li:hover > a, .tsp .menuline:not(.less) > ul > li:hover > .focus b { color: #fff; background: rgba(255, 255, 255, .10); }
  .tsp .menuline:not(.less) > ul > li.active > a, .tsp .menuline:not(.less) > ul > li > .focus > ul > li.active > a {
    color: #fff; background: var(--tsp-gradient) !important; box-shadow: 0 4px 12px rgba(91, 76, 230, .45); font-weight: 650;
  }
  .tsp .menuline:not(.less) > ul > li.active .focus b, .tsp .menuline:not(.less) > ul > li .focus.block b { color: #fff; background: rgba(255, 255, 255, .12) !important; }
  .tsp .menuline:not(.less) > ul > li > .focus > ul > li > a { color: #dfe3f6; border-radius: 999px; padding: 8px 14px; }
  .tsp .menuline:not(.less) > ul > li > .focus > ul > li:hover > a { color: #fff; background: rgba(255, 255, 255, .10); }
  .tsp .menuline:not(.less) > ul > li > .focus > ul > li.active::marker { color: #fff; }
  .tsp .menuline:not(.less) > ul > li > a:before, .tsp .menuline:not(.less) > ul > li .focus b:before,
  .tsp .menuline:not(.less) > ul > li b:after { filter: brightness(0) invert(1); opacity: .85; }
  .tsp .menuline:not(.less) > ul > li:not(:first-child) b:after, .tsp .menuline:not(.less) > ul > li .focus.block b:after { right: 26px; top: 14px; }
}
@media (max-width: 600px) {
  /* phone: only the shield of the reversed logo (the first 34px of it), so no dark-on-indigo mark */
  .tsp .headline::before { width: 26px; height: 30px; margin: 17px 0 0 12px; background-size: auto 100%; background-position: left center; }
  .tsp .headline .headleft { padding: 22px 4px 0 12px; }
  .tsp .headline .headright { width: auto; min-width: 0; padding: 14px 10px 0 0; }
  .tsp .headline .bell { margin: 8px 8px; }
  .tsp .headline .ssa-lang-select { width: 76px; padding-right: 22px; }
}
.tsp .headline .account img { background: rgba(255, 255, 255, .9); }

/* top bar helpers shared by both layouts */
.tsp #bellUnreadCount { color: var(--tsp-night); }

/* ---------------------------------------------------------------------
   5. CARDS, TILES, LISTS, STATUS
   --------------------------------------------------------------------- */
.tsp .fs-card, .tsp .fs-start, .tsp .ToolArea, .tsp .grid, .tsp .boxfile, .tsp .CheckArea, .tsp .FileArea, .tsp .popup_content,
.tsp .fs-notif-ws-card, .tsp .box, .tsp .boxcheck {
  border-color: var(--tsp-line);
  border-radius: var(--tsp-radius);
}
.tsp .ToolArea, .tsp .grid { background: #fff; box-shadow: var(--tsp-shadow); }
.tsp .modal-content { border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(21, 16, 61, .45); overflow: hidden; }
.tsp .popup_content { box-shadow: 0 30px 80px rgba(21, 16, 61, .35); }
.tsp .popup_content .reason { border-radius: var(--tsp-radius-sm); }

/* dashboard status tiles (segmented control) and pills */
.tsp.fs-docs .count_area { background: #e9e7f6; border-radius: 999px; }
.tsp.fs-docs .count_area a { border-radius: 999px; }
.tsp.fs-docs .count_area a.active { color: var(--tsp-accent-deep); box-shadow: 0 2px 8px rgba(35, 28, 95, .14); }
.tsp.fs-docs .fs-tile__count { background: rgba(91, 76, 230, .10); }
.tsp .fs-seg { background: #e9e7f6; border-radius: 999px; }
.tsp .fs-seg > * { border-radius: 999px; }
.tsp .fs-seg__count { background: rgba(91, 76, 230, .10); }
.tsp .fs-pill, .tsp .fs-chip, .tsp .fs-status, .tsp.fs-docs .grid table tbody td[class^="sta_"] > span { border-radius: 999px; }
.tsp .fs-pill, .tsp .fs-status { font-weight: 650; }
.tsp .fs-pill::before, .tsp .fs-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.tsp .fs-status::before { margin-right: 0; }

/* table headers: small, uppercase, muted, on a lavender wash */
.tsp.fs-docs .grid table thead th, .tsp .grid table thead th, .tsp table.table > thead > tr > th {
  background: #f8f7fd;
  color: var(--tsp-muted);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 700;
}
.tsp .grid table tbody tr:hover { background: #faf9ff; }

/* ---------------------------------------------------------------------
   6. SIGNING WIZARD (upload / recipients / fields / review)
   --------------------------------------------------------------------- */
/* the stepper bar is the wizard's header band: same indigo chrome as the app, white steps on it */
.tsp .stepByLine { background: var(--tsp-chrome); border-bottom: 0; box-shadow: 0 6px 20px rgba(21, 16, 61, .12); }
.tsp .stepByLine .backpage, .tsp .stepByLine .backpage:hover { color: #fff; }
.tsp #signMultiPer li b, .tsp #signOnlyPer li b { color: #e4e6f8; background: transparent; }
.tsp #signMultiPer li i, .tsp #signOnlyPer li i { background: rgba(255, 255, 255, .22); color: #fff; }
.tsp #signMultiPer li:after, .tsp #signOnlyPer li:after { display: none; }   /* the connector ran behind a white label; numbered steps need no line */
.tsp #signMultiPer li.active i, .tsp #signOnlyPer li.active i { background: #fff; color: var(--tsp-accent-deep); box-shadow: 0 0 0 4px rgba(255, 255, 255, .28); }
.tsp #signMultiPer li.active b, .tsp #signOnlyPer li.active b { color: #fff; font-weight: 700; }
.tsp #signMultiPer li.active ~ li i, .tsp #signOnlyPer li.active ~ li i { background: rgba(255, 255, 255, .12); color: #e4e6f8; box-shadow: none; }
.tsp #signMultiPer li.active ~ li b, .tsp #signOnlyPer li.active ~ li b { color: #d3d7f3; font-weight: 500; }
.tsp .footerStep { border-top: 1px solid var(--tsp-line); box-shadow: 0 -4px 16px rgba(35, 28, 95, .06); }
.tsp .boxfile, .tsp .boxfile .nenupload { border-color: #cfcce6; }
.tsp .boxfile .nenupload { border-radius: var(--tsp-radius); }

/* tabs (templates, contacts, workspace members) */
.tsp .fs-tab.fs-tab-active, .tsp .ws-tab.ws-tab-active { color: var(--tsp-accent-deep); border-color: var(--tsp-accent); }

/* ---------------------------------------------------------------------
   7. SIGNING WORKSPACE (PDF editor / signer): colours and shapes only.
   Layout, field geometry, recipient colours and the seal are not touched here.
   --------------------------------------------------------------------- */
.tsp #btnSign.button-sign { background-image: var(--tsp-gradient); border-radius: 999px; }
.tsp #btnSign { border-radius: 999px; }
.tsp .btn-come-back, .tsp .btn-decline { border-radius: 999px; }

/* ---------------------------------------------------------------------
   8. FOCUS SCREENS (sign-in, OTP, TOTP, PIN, password, registration, activation, verify):
   the same look as thrivosign-login.css - chrome gradient page and brand panel, 22px card, 10px inputs,
   violet gradient pill, violet links. Markup, ids, illustrations and layout unchanged.
   --------------------------------------------------------------------- */
body.tsp:has(.fullset) { background: var(--ssa-chrome-page); }
body.tsp:has(.fullset)::before, body.tsp:has(.fullset)::after { display: none; }   /* the blurred product backdrop and its veil */
.tsp .fullset { border-radius: 22px; box-shadow: 0 30px 80px rgba(11, 20, 70, .45), 0 2px 6px rgba(24, 39, 75, .06); }
.tsp .fullset .setleft { background: var(--ssa-chrome-page); color: #fff; }
.tsp .fullset .setleft h1:not(.thrivosign-logo), .tsp .fullset .setleft p.fs-brand-statement { color: #fff; }
/* PQCTrust shield (no wordmark): top-left of the brand panel. The panel is hidden on phones, where
   thrivosign-next.css draws the violet mark above the form instead. */
.tsp .fullset .setleft { position: relative; }
.tsp .fullset .setleft > h1:first-child { position: absolute; top: 28px; left: 28px; margin: 0; width: auto; text-align: left; }
.tsp .fullset .setleft > h1:first-child img { display: block; width: 64px; max-width: 64px; height: 64px; margin: 0; object-fit: contain; }
.tsp .fullset .setleft p { color: #e4e6f8; }
.tsp .fullset .setright h2 { color: var(--tsp-ink); }
.tsp .fullset .form_Area .link, .tsp .fullset a.link, .tsp .fullset .color-red { color: var(--ssa-link); }
.tsp .fullset .form_Area .link:hover, .tsp .fullset a.link:hover { color: var(--tsp-accent-deep); }
.tsp .fullset input[type="text"], .tsp .fullset input[type="password"], .tsp .fullset input[type="email"],
.tsp .fullset input[type="number"], .tsp .fullset input[type="tel"], .tsp .fullset select, .tsp .fullset textarea {
  border: 1px solid var(--tsp-line-2);
  border-radius: 10px;
  background-color: #f6f5fc;
}
.tsp .fullset input:focus, .tsp .fullset select:focus, .tsp .fullset textarea:focus {
  background-color: #fff;
  border-color: var(--tsp-accent);
  box-shadow: 0 0 0 3px rgba(91, 76, 230, .25);
}
.tsp .fullset .form_Area .btn { min-height: 48px; border-radius: 999px; }
.tsp .fullset .form_Area .btn.fs-btn-secondary { box-shadow: none; }
.tsp .fs-focus__card, .tsp .fs-focus__card--single { border-radius: 22px; }
.tsp .fs-focus { background: var(--ssa-chrome-page); }

/* ---------------------------------------------------------------------
   8b. CATCH-ALLS for the classic and public pages (inline style="border-radius:4px" and one-off button classes).
   !important only on the corner radius: the owner's rule is that no button is square.
   --------------------------------------------------------------------- */
.tsp .btn, .tsp button.btn, .tsp a.btn, .tsp input[type="submit"], .tsp input[type="button"], .tsp input.btn,
.tsp [class*="button_default"], .tsp .button-sign, .tsp .button-sign-disable { border-radius: 999px !important; }
.tsp .fs-page-prev, .tsp .fs-page-next, .tsp .fs-notif-close, .tsp .ssa-lang-go, .tsp .fs-si-btn, .tsp .button-next-prev,
.tsp .waves-effect, .tsp .close-popup, .tsp button.button, .tsp .capitalize-text { border-radius: 999px; }
.tsp .fs-si-input, .tsp input.text, .tsp input.non-uppercase, .tsp select#timeZone { border-radius: 10px !important; }
.tsp .btn.secondary, .tsp .fs-si-btn.secondary { color: var(--tsp-accent-deep); background: #fff; border: 1px solid var(--tsp-line-2); }
.tsp .si-count { color: var(--tsp-accent-deep); }
.tsp .fs-si-btn:not(.fs-si-secondary) { color: #fff; background: var(--tsp-gradient); border: 0; box-shadow: var(--ssa-pill-shadow); }
.tsp .fs-si-btn.fs-si-secondary { color: var(--tsp-accent-deep); background: #fff; border: 1px solid var(--tsp-line-2); }
/* signing invitation (public page with its own inline palette) */
.tsp .fs-si-card { border: 1px solid var(--tsp-line); border-radius: 22px; box-shadow: var(--tsp-shadow); }
.tsp h1.fs-si-title { color: var(--tsp-ink); }
.tsp p.fs-si-intro, .tsp .fs-si-fact b { color: var(--tsp-ink-2); }
.tsp .fs-si-facts { background: var(--tsp-accent-soft); border-radius: var(--tsp-radius-sm); }
.tsp .fs-si-hint { color: var(--tsp-muted); }
.tsp .fs-si-terms a { color: var(--ssa-link); }
.tsp .fs-si-input, .tsp .fs-si-select { border-color: var(--tsp-line-2); }

/* ---------------------------------------------------------------------
   9. MOTION
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .tsp *, .tsp *::before, .tsp *::after { transition: none !important; animation: none !important; }
}
