/* PROJEX CR iPad — écran « Mes affaires » Synology et indicateur de synchronisation. */
#gdLauncher, .gd-modal-back, .gd-busy, .gd-pill, .gd-back {
  --gd-navy: #17385f; --gd-navy-2: #0f2744; --gd-red: #c1121f; --gd-bg: #f3f6fa; --gd-card: #ffffff;
  --gd-line: #dfe5ee; --gd-text: #13253b; --gd-muted: #5d6b7c; --gd-ok: #1d7a46; --gd-warn: #b86200; --gd-err: #b3261e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
#gdLauncher { position: fixed; inset: 0; z-index: 9000; background: var(--gd-bg); color: var(--gd-text); overflow-y: auto; -webkit-overflow-scrolling: touch; }
#gdLauncher.hidden, .gd-busy.hidden, .gd-pill.hidden, #gdConnect.hidden { display: none !important; }
.gd-shell { max-width: 980px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.gd-head { display: flex; align-items: center; gap: 18px; padding: 6px 0 18px; }
.gd-logo { height: 46px; width: auto; border-radius: 6px; background: #fff; }
.gd-head-txt { flex: 1; min-width: 0; }
.gd-over { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--gd-red); }
.gd-head h1 { margin: 2px 0 0; font-size: 30px; line-height: 1.1; color: var(--gd-navy); font-weight: 750; }
.gd-account { display: flex; align-items: center; gap: 10px; font-size: 15px; background: var(--gd-card); border: 1px solid var(--gd-line); border-radius: 999px; padding: 8px 14px; }
.gd-account small { display: block; color: var(--gd-muted); font-size: 12px; }
.gd-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #9aa6b4; }
.gd-dot.ok { background: var(--gd-ok); } .gd-dot.warn { background: var(--gd-warn); }
.gd-card { background: var(--gd-card); border: 1px solid var(--gd-line); border-radius: 16px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(16, 39, 68, .05); }
.gd-connect { display: flex; align-items: center; gap: 18px; }
.gd-connect h2 { margin: 0 0 4px; font-size: 19px; color: var(--gd-navy); }
.gd-connect p { margin: 0; color: var(--gd-muted); font-size: 15px; line-height: 1.45; }
.gd-connect > div:nth-child(2) { flex: 1; }
.gd-drive-ico { font-size: 34px; }
.gd-btn { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--gd-line); background: #fff; color: var(--gd-navy); font: 600 15px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.gd-btn:active { transform: scale(.98); }
.gd-btn.primary { background: var(--gd-navy); border-color: var(--gd-navy); color: #fff; }
.gd-btn.big { min-height: 52px; font-size: 16px; padding: 0 24px; }
.gd-btn:disabled { opacity: .45; pointer-events: none; }
.gd-link { appearance: none; border: 0; background: none; color: var(--gd-navy); font: 600 14px inherit; font-family: inherit; padding: 10px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gd-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gd-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--gd-line); border-radius: 11px; background: #f8fafc; color: var(--gd-muted); }
.gd-search input { flex: 1; border: 0; background: transparent; font-size: 16px; outline: none; color: var(--gd-text); min-width: 0; }
.gd-rootline { font-size: 13px; color: var(--gd-muted); margin: 12px 2px 4px; }
.gd-rootline a { color: var(--gd-navy); }
.gd-list { margin-top: 8px; }
.gd-row { display: flex; align-items: stretch; gap: 8px; border-top: 1px solid var(--gd-line); }
.gd-row:first-child { border-top: 0; }
.gd-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 6px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 10px; }
.gd-row-main:active { background: #eef3f9; }
.gd-row-ico { font-size: 24px; flex: none; }
.gd-row-txt { flex: 1; min-width: 0; }
.gd-row-txt b { display: block; font-size: 16.5px; color: var(--gd-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-row-txt small { display: block; color: var(--gd-muted); font-size: 13px; margin-top: 3px; }
.gd-row-go { color: var(--gd-navy); font-weight: 650; font-size: 14px; flex: none; }
.gd-row-more { flex: none; width: 48px; border: 0; background: none; font-size: 18px; cursor: pointer; border-radius: 10px; opacity: .65; }
.gd-badge { flex: none; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; }
.gd-badge.ok { color: var(--gd-ok); background: #e5f4ea; }
.gd-badge.warn { color: var(--gd-warn); background: #fff1df; }
.gd-empty { text-align: center; color: var(--gd-muted); padding: 34px 10px; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gd-empty strong { color: var(--gd-navy); font-size: 17px; }
.gd-empty p { margin: 0; max-width: 520px; line-height: 1.45; }
.gd-warn { color: var(--gd-err) !important; font-weight: 600; }
.gd-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--gd-muted); font-size: 13px; padding: 4px 2px; }
.gd-foot span { margin-left: auto; }
.gd-modal-back { position: fixed; inset: 0; z-index: 9600; background: rgba(12, 28, 48, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gd-modal { background: #fff; color: var(--gd-text); border-radius: 18px; padding: 22px; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.gd-modal.wide { width: min(680px, 100%); }
.gd-modal h2 { margin: 0 0 10px; color: var(--gd-navy); font-size: 21px; }
.gd-modal p { line-height: 1.5; font-size: 15px; }
.gd-modal code { background: #eef2f7; padding: 2px 6px; border-radius: 5px; font-size: 13px; word-break: break-all; }
.gd-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.gd-modal-actions.col { flex-direction: column; align-items: stretch; }
.gd-field { display: block; margin: 12px 0; }
.gd-field span { display: block; font-size: 13px; font-weight: 650; color: var(--gd-muted); margin-bottom: 6px; }
.gd-field input, .gd-field select { width: 100%; box-sizing: border-box; min-height: 46px; border: 1px solid var(--gd-line); border-radius: 10px; padding: 0 12px; font-size: 16px; background: #f8fafc; color: var(--gd-text); }
.gd-check { display: flex; gap: 10px; align-items: center; font-size: 15px; margin: 14px 0; }
.gd-check input { width: 22px; height: 22px; }
.gd-small { font-size: 13px !important; color: var(--gd-muted); }
.gd-conflict { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gd-conflict > div { border: 1px solid var(--gd-line); border-radius: 12px; padding: 12px 14px; background: #f8fafc; }
.gd-conflict h3 { margin: 0 0 6px; font-size: 16px; color: var(--gd-navy); }
.gd-conflict ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.gd-conflict small { color: var(--gd-muted); }
.gd-busy { position: fixed; inset: 0; z-index: 9800; background: rgba(243, 246, 250, .82); display: flex; align-items: center; justify-content: center; padding: 16px; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.gd-busy-card { background: #fff; border: 1px solid var(--gd-line); border-radius: 16px; padding: 22px 26px; display: flex; align-items: center; gap: 16px; max-width: 520px; box-shadow: 0 12px 40px rgba(16, 39, 68, .15); }
.gd-busy-card p { margin: 0; font-size: 15px; color: var(--gd-navy); font-weight: 600; word-break: break-word; }
.gd-spinner { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 3px solid #d6e0ec; border-top-color: var(--gd-navy); animation: gdspin .8s linear infinite; }
@keyframes gdspin { to { transform: rotate(360deg); } }
.gd-pill { appearance: none; border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; min-height: 34px; font: 650 13px inherit; font-family: inherit; cursor: pointer; margin-left: 8px; white-space: nowrap; }
.gd-pill.ok { background: #e5f4ea; color: var(--gd-ok); }
.gd-pill.sync { background: #e7eef8; color: var(--gd-navy); }
.gd-pill.warn { background: #fff1df; color: var(--gd-warn); }
.gd-pill.err { background: #fde8e7; color: var(--gd-err); }
.gd-pill.off { background: #eceff3; color: #5d6b7c; }
.gd-back { position: fixed; z-index: 8500; top: calc(10px + env(safe-area-inset-top)); right: 14px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: #17385f; color: #fff; font: 650 14px inherit; font-family: inherit; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); cursor: pointer; }
@media (max-width: 700px) {
  .gd-head { flex-wrap: wrap; } .gd-account { order: 3; width: 100%; border-radius: 12px; }
  .gd-connect { flex-direction: column; align-items: flex-start; } .gd-conflict { grid-template-columns: 1fr; }
  .gd-row-go { display: none; } .gd-head h1 { font-size: 25px; }
}
/* Modules PC (Gestion d'affaires, Appels d'offres) non disponibles sur iPad */
.px-suite-ecosystem { display: none !important; }
.gd-details { margin: 14px 0; border: 1px solid var(--gd-line, #dfe5ee); border-radius: 10px; padding: 10px 12px; }
.gd-details summary { cursor: pointer; font-weight: 650; color: #17385f; }
.gd-inline { display: flex; gap: 8px; margin-top: 8px; }
.gd-inline input { flex: 1; min-height: 44px; border: 1px solid #dfe5ee; border-radius: 10px; padding: 0 12px; font-size: 16px; }
.gd-hash { display: block; margin-top: 8px; word-break: break-all; user-select: all; -webkit-user-select: all; }
.gd-modal form .gd-warn { margin: 4px 0 0; }
/* Notifications et confirmations de l'application : toujours au-dessus de l'écran « Mes affaires » */
.v7-toast-host { z-index: 9950 !important; }
#v7ConfirmModal { z-index: 9700 !important; }
.gd-banner-err { margin: 6px 0 10px; padding: 12px 14px; border-radius: 10px; background: #fde8e7; color: #b3261e; font-weight: 600; font-size: 14.5px; line-height: 1.45; }
.gd-btn.danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.gd-modal-actions.col .gd-btn { flex-direction: column; min-height: 54px; padding: 8px 18px; }
.gd-btn-sub { display: block; font-size: 12px; font-weight: 500; opacity: .75; margin-top: 3px; }
/* Dictée vocale retirée de la version iPad */
#v75GlobalMicTop, #v75GlobalMicFloat, #v75MicStatus, #v7QuickMic { display: none !important; }
.gd-row-more { font-size: 22px !important; font-weight: 700; color: #17385f; }
.gd-noacc { color: #b86200; font-weight: 650; }
.gd-users { max-height: 50vh; overflow: auto; border: 1px solid #dfe5ee; border-radius: 10px; padding: 4px 12px; margin: 10px 0; }
.gd-users .gd-check { margin: 10px 0; }
.gd-users small { color: #5d6b7c; font-size: 12.5px; }
.gd-link.hidden { display: none; }
.gd-acc-list { border: 1px solid #dfe5ee; border-radius: 12px; margin: 12px 0; max-height: 52vh; overflow: auto; }
.gd-acc-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #dfe5ee; }
.gd-acc-row:first-child { border-top: 0; }
.gd-acc-txt { flex: 1; min-width: 0; }
.gd-acc-txt b { color: #17385f; }
.gd-acc-txt small { display: block; color: #5d6b7c; font-size: 12.5px; margin-top: 2px; word-break: break-all; }
.gd-btn.small { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.gd-btn.danger-o { color: #b3261e; border-color: #f0c4c0; }
.gd-badge:not(.ok):not(.warn) { background: #e7eef8; color: #17385f; }
.gd-cred { display: grid; gap: 8px; background: #f3f6fa; border-radius: 12px; padding: 12px 14px; }
.gd-cred small { display: block; color: #5d6b7c; font-size: 12px; }
.gd-cred b { font-size: 16px; color: #13253b; word-break: break-all; user-select: all; -webkit-user-select: all; }
.gd-field .gd-inline { margin-top: 0; }
.gd-field .gd-inline input { min-height: 46px; background: #f8fafc; }
/* Administration : « Changer d'affaire » (remplacé par ← Accueil) et « Pack PC / Tablette » (remplacé par le serveur) retirés */
#switchProjectBtn, #tabletPackageBtn { display: none !important; }
.gd-resp { color: #17385f; font-weight: 650; }
.gd-field select { appearance: auto; -webkit-appearance: menulist; }
.gd-row-txt small b.gd-resp { display: inline; font-size: inherit; white-space: normal; overflow: visible; }
/* Marché : colonne « Index IA » retirée, résultats plein texte */
#market table th:nth-child(5), #marketBody td:nth-child(5) { display: none; }
.ft-head { margin: 4px 0 10px; color: #17385f; }
.ft-result .semantic-result-head { align-items: flex-start; gap: 10px; }
.ft-result mark { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }
.ft-unread { margin-top: 10px; }
#marketSearchResults mark.ft-syn { background: #cfe3ff; }
#marketSearchResults mark { background: #ffe58a; color: inherit; }
.ft-expand { font-size: 12.5px; color: #5d6b7c; margin: -4px 0 6px; line-height: 1.8; }
.ft-expand span { display: inline-block; background: #eef3f9; color: #17385f; border-radius: 999px; padding: 0 8px; margin: 0 4px 0 0; }
.ft-legend { font-size: 12px; color: #5d6b7c; margin-bottom: 8px; }
.ft-legend mark { padding: 0 5px; border-radius: 3px; }
