/* =============================================================================================================================
   Floating TENDERCompass launcher + intro popup (owner request 2026-11-15, approved demo tendercompass-floating-demo.html).
   One component for every page: injected by assets/js/tg-compass-launcher.js (Web.Master and the stand-alone Default.aspx include it).
   The launcher sits directly ABOVE the shared back-to-top button (tg-scroll-top.css), on the same edge, same size, 12px gap, and
   follows the same offsets (promo widget on desktop; bottom bar, app banner and safe area on phones). All selectors are .tgcl-*.
   ============================================================================================================================= */
.tgcl-launcher{position:fixed;z-index:999;right:20px;left:auto;bottom:calc(24px + 48px + 12px);width:48px;height:48px;padding:2px;border:1px solid #dce9e9;border-radius:50%;
  background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.14);display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:box-shadow .2s ease,transform .2s ease}
[dir="rtl"] .tgcl-launcher{right:auto;left:20px}
@media (min-width:769px){body:has(#tgPromoWidget:not(.tgw-dismissed)) .tgcl-launcher{bottom:calc(72px + 48px + 12px)}}
.tgcl-launcher:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(0,0,0,.2)}
.tgcl-launcher:active{transform:scale(.96)}
.tgcl-launcher:focus-visible{outline:3px solid #F5833D;outline-offset:3px}
.tgcl-launcher > svg{display:block;width:100%;height:100%}
.tgcl-launcher .tgcl-face{fill:#368B94 !important}
.tgcl-launcher .tgcl-mark{fill:rgba(255,255,255,.92) !important}
.tgcl-launcher .tgcl-o{fill:#F5833D !important}
.tgcl-launcher .tgcl-w{fill:#fff !important}
.tgcl-needle{transform-box:view-box;transform-origin:100px 100px;animation:tgclNeedleSweep 5.5s cubic-bezier(.65,.05,.22,1) infinite}
@keyframes tgclNeedleSweep{0%,100%{transform:rotate(-14deg)}22%{transform:rotate(12deg)}44%{transform:rotate(3deg)}62%{transform:rotate(20deg)}82%{transform:rotate(-6deg)}}
.tgcl-tip{position:absolute;top:50%;inset-inline-end:calc(100% + 12px);white-space:nowrap;padding:5px 12px;border-radius:8px;background:#153E43;color:#fff;font-size:12px;
  line-height:1.6;pointer-events:none;opacity:0;transform:translateY(-50%) translateX(5px);transition:opacity .16s ease,transform .16s ease;box-shadow:0 4px 12px rgba(16,46,56,.1)}
[dir="rtl"] .tgcl-tip{transform:translateY(-50%) translateX(-5px)}
.tgcl-launcher:hover .tgcl-tip,.tgcl-launcher:focus-visible .tgcl-tip{opacity:1;transform:translateY(-50%) translateX(0)}
@media (max-width:768px){
  .tgcl-launcher{width:44px;height:44px;right:14px;left:auto;z-index:9990;
    bottom:calc(var(--tg-bottombar-height, 54px) + var(--tg-app-banner-height, 0px) + 14px + env(safe-area-inset-bottom, 0px) + 44px + 12px)}
  [dir="rtl"] .tgcl-launcher{left:14px;right:auto}
  .tgcl-launcher:hover{transform:none}
  .tgcl-tip{font-size:11px}
}
@media (hover:none){.tgcl-launcher:hover .tgcl-tip{opacity:0}}

/* ---- popup ---- */
.tgcl-dialog{border:1px solid rgba(255,255,255,.14);padding:0;width:min(1200px,calc(100vw - 64px));max-width:none;max-height:calc(100dvh - 64px);border-radius:23px;overflow:hidden;
  background:#123337;color:#fff;box-shadow:0 30px 100px rgba(4,29,49,.4);margin:auto;color-scheme:dark;font-family:inherit}
.tgcl-dialog::backdrop{background:rgba(12,31,35,.57);backdrop-filter:blur(5px)}
.tgcl-dialog *{box-sizing:border-box}
.tgcl-close{position:absolute;inset-inline-end:19px;top:19px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.17);color:#d2e8e9;z-index:3;cursor:pointer;padding:0}
.tgcl-close:hover{background:rgba(255,255,255,.12)}
.tgcl-close svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;fill:none}
.tgcl-dialog button:focus-visible,.tgcl-dialog a:focus-visible{outline:3px solid #F5833D;outline-offset:4px}
.tgcl-scroll{overflow-y:auto;overflow-x:hidden;max-height:calc(100dvh - 64px);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#54777b #163c40;
  background:radial-gradient(ellipse at 77% -10%,rgba(37,114,123,.4),transparent 58%)}
.tgcl-popup{padding:78px 54px 68px;position:relative;isolation:isolate;display:grid;grid-template-columns:1.04fr 1fr;gap:37px;align-items:center;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:66px 66px}
.tgcl-popup::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 80% 10%,rgba(43,137,147,.3),transparent 57%);z-index:-1;pointer-events:none}
.tgcl-eyebrow{display:flex;align-items:center;gap:12px;font-size:12px;color:#aad0d3;margin:0 0 21px}
.tgcl-eyebrow::before{content:"";width:26px;height:2px;background:#F5833D;flex:none}
.tgcl-copy .tgcl-title{font-weight:700;letter-spacing:-1px;font-size:58px;line-height:1.3;margin:0 0 22px;color:#fff}
.tgcl-copy .tgcl-title span{display:block;white-space:nowrap}
.tgcl-copy .tgcl-title .tgcl-accent{color:#8bd0d6;font-size:55px}
.tgcl-desc{color:#bed4d6;line-height:1.85;font-size:16px;margin:0 0 29px;max-width:480px}
.tgcl-login{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:52px;padding:12px 20px;border:0;border-radius:8px;background:#F5833D;
  color:#fff !important;font-weight:700;font-size:16px;text-decoration:none !important;box-shadow:0 4px 15px rgba(7,29,25,.06)}   /* white on orange (brand rule) */
.tgcl-login:hover{background:#ff974f}
.tgcl-login svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none;flex:none}
[dir="ltr"] .tgcl-login svg{transform:scaleX(-1)}
.tgcl-note{font-size:11px;color:#91b8bc;margin:13px 0 0;display:flex;gap:7px;align-items:center}
.tgcl-note svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.6;fill:none}
.tgcl-visual{position:relative;width:100%;margin:0;aspect-ratio:550/520;direction:ltr}
.tgcl-art{width:100%;height:100%;overflow:visible;display:block}
.tgcl-art text{font-family:inherit}
.tgcl-art-needle{transform-box:view-box;transform-origin:280px 260px;animation:tgclHeroSpin 2.8s cubic-bezier(.12,.82,.22,1) both,tgclHeroNeedle 12s ease-in-out 2.8s infinite}
/* On every open: the needle spins fast, slows down and settles (like the Compass landing), then keeps its slow swing. */
@keyframes tgclHeroSpin{0%{transform:rotate(-1080deg)}70%{transform:rotate(12deg)}85%{transform:rotate(-6deg)}100%{transform:rotate(-4deg)}}
@keyframes tgclHeroNeedle{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(5deg)}}
.tgcl-card{position:absolute;direction:rtl;border:1px solid rgba(215,242,241,.17);border-radius:12px;background:rgba(255,255,255,.075);backdrop-filter:blur(6px);
  padding:11px 15px;text-align:right;box-shadow:0 5px 15px rgba(9,43,45,.06)}
.tgcl-card[dir="ltr"]{direction:ltr;text-align:left}
.tgcl-card strong{display:block;color:#eff9f9;font-size:13px}
.tgcl-card small{display:block;font-size:11px;color:#a9c7ca;margin-top:3px}
.tgcl-match{left:0;top:5%;min-width:128px}
.tgcl-deadline{right:-1%;bottom:19%;min-width:83px}
.tgcl-ask{left:5%;bottom:0;min-width:158px}
.tgcl-opp{position:absolute;right:17%;top:17%;padding:4px 11px;background:#fff;color:#194b51;border-radius:20px;font-size:10px;box-shadow:0 4px 20px rgba(0,31,38,.13)}
.tgcl-visual figcaption{position:absolute;right:0;bottom:-16px;font-size:9px;color:#7a9da0}
@media (max-width:1100px){.tgcl-dialog{width:calc(100vw - 40px)}.tgcl-popup{padding:73px 35px 58px;gap:24px}.tgcl-copy .tgcl-title{font-size:48px}.tgcl-copy .tgcl-title .tgcl-accent{font-size:44px}
  .tgcl-desc{font-size:14px}.tgcl-card{padding:8px 10px}.tgcl-card strong{font-size:11px}.tgcl-card small{font-size:10px}.tgcl-match{min-width:110px}.tgcl-ask{min-width:135px}}
@media (max-width:768px){
  .tgcl-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:18px}
  .tgcl-scroll{max-height:calc(100dvh - 24px)}
  .tgcl-close{top:12px;inset-inline-end:12px;width:34px;height:34px}
  .tgcl-popup{grid-template-columns:1fr;padding:61px 26px 34px;gap:14px}
  .tgcl-copy .tgcl-title{font-size:43px;line-height:1.3;margin-bottom:16px}
  .tgcl-copy .tgcl-title .tgcl-accent{font-size:40px}
  .tgcl-eyebrow{font-size:11px;margin-bottom:18px;gap:9px}.tgcl-eyebrow::before{width:20px}
  .tgcl-desc{font-size:14px;margin-bottom:21px;max-width:none}
  .tgcl-login{width:100%;font-size:14px;min-height:49px;gap:12px;padding:11px 12px}
  .tgcl-note{font-size:10px;margin-top:11px}
  .tgcl-visual{max-width:420px;justify-self:center;margin-top:10px}
  .tgcl-match{top:2%}.tgcl-card strong{font-size:11px}.tgcl-card small{font-size:9px}
  .tgcl-ask{left:1%;bottom:2%;min-width:129px}.tgcl-deadline{right:0;bottom:20%;min-width:70px}.tgcl-opp{font-size:9px;right:12%;top:16%}
  .tgcl-visual figcaption{bottom:-11px}
}
@media (min-width:600px) and (max-width:768px){.tgcl-popup{padding:64px 40px 42px}.tgcl-copy .tgcl-title{font-size:52px}.tgcl-copy .tgcl-title .tgcl-accent{font-size:48px}.tgcl-visual{max-width:360px}}
@media (max-width:359px){.tgcl-popup{padding-left:19px;padding-right:19px}.tgcl-copy .tgcl-title{font-size:36px}.tgcl-copy .tgcl-title .tgcl-accent{font-size:32px}.tgcl-desc{font-size:12px}.tgcl-login{font-size:12px}}
@media (prefers-reduced-motion:reduce){.tgcl-needle,.tgcl-art-needle{animation:none !important}.tgcl-launcher,.tgcl-tip{transition:none !important}}
/* 2026-11-15 «كمّل من حيث توقفت»: the signed-in member's open bids (tg-compass-launcher.js renderResume) */
.tgcl-dialog [hidden]{display:none !important}
.tgcl-resume{min-width:0}
.tgcl-rhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 16px}
.tgcl-rtitle{font-weight:700;font-size:34px;line-height:1.25;color:#fff;letter-spacing:-.5px}
.tgcl-rall{color:#8bd0d6;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.tgcl-rall:hover{color:#fff;text-decoration:underline}
.tgcl-rlist{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:10px}
.tgcl-bid{display:flex;align-items:center;gap:14px;padding:13px 15px;border-radius:12px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.12)}
.tgcl-bid:hover{background:rgba(255,255,255,.085);border-color:rgba(139,208,214,.4)}
.tgcl-bid-main{flex:1;min-width:0;display:grid;gap:4px}
.tgcl-bid-title{font-size:14.5px;font-weight:700;line-height:1.45;color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tgcl-bid-pub{font-size:12px;color:#a9cbce;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgcl-bid-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px}
.tgcl-chip{font-size:11px;font-weight:600;padding:2px 9px;border-radius:999px;background:rgba(139,208,214,.16);color:#bfe6e9}
.tgcl-due{font-size:11.5px;color:#a9cbce}
.tgcl-due.is-urgent{color:#ffb27f;font-weight:700}
.tgcl-cont{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 14px;border-radius:8px;background:#F5833D;color:#fff !important;
  font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
.tgcl-cont:hover{background:#ff974f}
.tgcl-cont svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none;flex:none}
[dir="ltr"] .tgcl-cont svg{transform:scaleX(-1)}
.tgcl-rempty{color:#bed4d6;font-size:14px;line-height:1.8;margin:0 0 22px;padding:14px 16px;border-radius:12px;border:1px dashed rgba(255,255,255,.2)}
.tgcl-rfoot{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.tgcl-resume .tgcl-ropen{background:transparent;border:1px solid rgba(255,255,255,.35);min-height:44px;gap:14px}
.tgcl-resume .tgcl-ropen:hover{background:rgba(255,255,255,.1)}
.tgcl-link{background:none;border:0;padding:4px 0;color:#8bd0d6;font:inherit;font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.tgcl-link:hover{color:#fff}
.tgcl-to-resume{margin:0 0 14px;text-decoration:none;font-weight:600}
@media (max-width:768px){
  .tgcl-popup:has(.tgcl-resume:not([hidden])) .tgcl-visual{display:none}
  .tgcl-rtitle{font-size:26px}
  .tgcl-bid{flex-wrap:wrap;padding:12px}
  .tgcl-cont{width:100%;justify-content:center}
  .tgcl-resume .tgcl-ropen{width:auto}
}
