/* TABLETTE HD : géométrie retirée de ce fichier en DEV 1.2.155H17.
   Autorité unique : CSS_Haut_Droite_Tablette.html.
   Les styles métier/couleurs hors géométrie restent ici. */
/* DEV 1.2.1 — CSS historique ventilé par responsabilité. */
.workspaceScreen { position:fixed; inset:0; z-index:194; display:none; overflow:auto; padding:10px; background:var(--paper); }
body.module-administration .administrationScreen { display:block; }
body.module-gestion .gestionScreen { display:block; }
.workspaceFrame {
      width:min(1400px,99vw); min-height:calc(100dvh - 20px); margin:0 auto;
      display:grid; grid-template-columns:245px minmax(0,1fr) 130px;
      grid-template-rows:56px minmax(0,1fr); gap:8px;
    }
.workspaceBrandBlock { grid-column:1; grid-row:1; align-self:center; padding:0 8px; }
.workspaceBrandBlock .brand { font-size:20px; font-weight:1000; }
.workspaceBrandSub { margin-top:2px; font-size:11px; font-weight:1000; letter-spacing:.08em; color:var(--muted); }
.workspaceUser { font-size:11px !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.workspaceControlRow { display:grid; grid-template-columns:minmax(150px,1fr) 110px; gap:7px; align-items:center; }
.workspaceControlBtn,.workspaceSyncBadge { height:28px; border-radius:8px; border:1px solid var(--line); font-size:10px; font-weight:1000; display:flex; align-items:center; justify-content:center; }
.workspaceControlBtn { background:#eef1f3; color:var(--ink); }
.workspaceSyncBadge { background:#e9f7ef; color:#176534; border-color:#a8d5c1; }
.workspaceSyncBadge.pending { background:#fff3cf; color:#725000; border-color:#dfbd5a; }
.workspaceSyncBadge.error { background:#fdeaea; color:#9f2525; border-color:#e8a3a3; }
.workspaceStatus { grid-column:3; grid-row:1; height:52px; border:1px solid #8ed1a4; border-radius:12px; background:#dff5e7; color:#176534; font-size:11px; font-weight:1000; display:flex; align-items:center; justify-content:center; gap:7px; }
.workspaceStatus.loading { background:#fff0b8; color:#694f00; border-color:#d5aa1d; }
.workspaceStatus.error { background:#fdeaea; color:#9f2525; border-color:#e8a3a3; }
.workspaceStatusDot { width:9px; height:9px; border-radius:50%; background:#23944d; }
.workspaceStatus.loading .workspaceStatusDot { background:#d7a018; }
.workspaceStatus.error .workspaceStatusDot { background:#c73b3b; }
.workspaceSidebarCard { grid-column:1; grid-row:2; padding:10px; overflow:auto; }
.workspaceSidebar { display:flex; flex-direction:column; gap:8px; }
.workspaceNavBtn { min-height:54px; border:2px solid #d1d8dc; border-radius:12px; background:#f4f6f7; color:var(--ink); font-size:12px; font-weight:1000; padding:8px; }
.workspaceNavBtn.active { background:#dff5f3; border-color:var(--turq); color:#075f5a; box-shadow:0 0 0 2px rgba(31,190,178,.18); }
.workspaceNavBtn.danger { color:#8d2018; border-color:#e8b1ac; background:#fff7f6; }
.workspaceNavBtn.danger.active { background:#fee9e6; border-color:#e88980; color:#8d2018; }
.workspaceMainCard { grid-column:2 / 4; grid-row:2; min-width:0; overflow:hidden; display:flex; flex-direction:column; padding:10px; }
.workspaceMainContent { min-height:0; flex:1 1 auto; overflow:auto; padding-top:7px; }
body[data-theme="dark"] .workspaceControlBtn,
    body[data-theme="dark"] .workspaceNavBtn { background:#1d262b; border-color:#445057; color:#eef5f4; }
body[data-theme="dark"] .workspaceNavBtn.active { background:#123f3d; border-color:#46d7cc; color:#dffffb; }
body[data-theme="dark"] .workspaceNavBtn.danger { background:#351b1c; border-color:#71383a; color:#ffaaaa; }
body[data-theme="dark"] .workspaceSyncBadge { background:#123023; color:#78dfa5; border-color:#326c50; }
body[data-theme="dark"] .workspaceSyncBadge.pending { background:#352b0f; color:#ffd96b; border-color:#80651b; }
body[data-theme="dark"] .workspaceSyncBadge.error { background:#3a1b1d; color:#ff9b9b; border-color:#7d373b; }
body[data-theme="dark"] .workspaceStatus { background:#123023; color:#78dfa5; border-color:#326c50; }
body[data-theme="dark"] .workspaceStatus.loading { background:#352b0f; color:#ffd96b; border-color:#80651b; }
body[data-theme="dark"] .workspaceStatus.error { background:#3a1b1d; color:#ff9b9b; border-color:#7d373b; }
.recordToolbar { display:grid; grid-template-columns:minmax(220px,1fr) repeat(4,max-content); gap:7px; margin-bottom:9px; align-items:center; }
.recordToolbar select,.editorField input,.editorField select,.editorField textarea,.variableRow input {
      width:100%; min-width:0; border:1px solid #c7d0d5; border-radius:9px; background:white; color:var(--ink); font-size:12px; font-weight:800; padding:8px;
    }
.recordToolbar select { height:40px; }
.editorGrid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.workspaceNotice { border:1px solid var(--line); border-radius:12px; padding:14px; background:#f7f9fa; font-size:12px; line-height:1.45; }
.workspaceDangerNotice { border-color:#e8b1ac; background:#fff7f6; color:#7a2020; }
.workspaceNotice h3 { margin:0 0 8px; font-size:15px; }
.offerSubTabs { display:flex; gap:7px; margin-bottom:9px; }
.offerSubTabs button { min-height:36px; border-radius:9px; padding:6px 12px; font-size:10px; font-weight:1000; }
.offerSubTabs button.active { background:#dff5f3; border:2px solid var(--turq); color:#075f5a; }
body[data-theme="dark"] .recordToolbar select,
    body[data-theme="dark"] .editorField input,
    body[data-theme="dark"] .editorField select,
    body[data-theme="dark"] .editorField textarea,
    body[data-theme="dark"] .variableRow input { background:#182126; border-color:#445057; color:#eef5f4; }
body[data-theme="dark"] .workspaceNotice { background:#182126; border-color:#445057; }
body[data-theme="dark"] .workspaceDangerNotice { background:#351b1c; border-color:#71383a; color:#ffaaaa; }
@media (max-width:700px) {
.workspaceScreen { padding:6px; }
.workspaceFrame { min-height:auto; display:flex; flex-direction:column; width:100%; }
.workspaceBrandBlock { order:1; padding:4px 6px; }
.workspaceStatus { order:3; width:100%; height:38px; min-height:38px; }
.workspaceSidebarCard { order:4; overflow:visible; }
.workspaceSidebar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.workspaceNavBtn { min-height:48px; font-size:10px; }
.workspaceMainCard { order:5; overflow:visible; }
.workspaceMainContent { overflow:visible; }
.recordToolbar { grid-template-columns:1fr 1fr; }
.recordToolbar select { grid-column:1 / -1; }
.editorGrid { grid-template-columns:1fr; }
}
@media (orientation:landscape) and (min-width:900px) {
body.device-tablet.module-administration .workspaceScreen,
      body.device-tablet.module-gestion .workspaceScreen {
        box-sizing:border-box !important;
        overflow:hidden !important;
        padding:7px !important;
      }
body.device-tablet.module-administration .workspaceFrame,
      body.device-tablet.module-gestion .workspaceFrame {
        box-sizing:border-box !important;
        width:min(1240px,calc(100vw - 14px)) !important;
        height:calc(100dvh - 14px) !important;
        min-height:0 !important;
        max-height:calc(100dvh - 14px) !important;
        margin:0 auto !important;
        padding:7px !important;
        border:2px solid var(--line) !important;
        border-radius:18px !important;
        background:#f7f9fa !important;
        box-shadow:0 12px 42px rgba(0,0,0,.12) !important;
        display:grid !important;
        grid-template-columns:215px minmax(0,1fr) 116px !important;
        grid-template-rows:48px minmax(0,1fr) !important;
        gap:7px !important;
        overflow:hidden !important;
      }
body.device-tablet.module-administration .workspaceBrandBlock,
      body.device-tablet.module-gestion .workspaceBrandBlock {
        min-width:0 !important;
        padding:0 6px !important;
        align-self:center !important;
      }
body.device-tablet.module-administration .workspaceBrandBlock .brand,
      body.device-tablet.module-gestion .workspaceBrandBlock .brand {
        font-size:18px !important;
        line-height:1 !important;
        white-space:nowrap !important;
      }
body.device-tablet.module-administration .workspaceBrandSub,
      body.device-tablet.module-gestion .workspaceBrandSub {
        margin-top:2px !important;
        font-size:9px !important;
      }


body.device-tablet.module-administration .workspaceStatus,
      body.device-tablet.module-gestion .workspaceStatus {
        box-sizing:border-box !important;
        height:46px !important;
        min-height:46px !important;
        border-radius:10px !important;
        font-size:10px !important;
      }
body.device-tablet.module-administration .workspaceSidebarCard,
      body.device-tablet.module-gestion .workspaceSidebarCard {
        box-sizing:border-box !important;
        min-height:0 !important;
        height:100% !important;
        padding:7px !important;
        overflow:hidden !important;
      }
body.device-tablet.module-administration .workspaceSidebar,
      body.device-tablet.module-gestion .workspaceSidebar {
        min-height:0 !important;
        height:calc(100% - 22px) !important;
        gap:6px !important;
        justify-content:flex-start !important;
      }
body.device-tablet.module-administration .workspaceNavBtn,
      body.device-tablet.module-gestion .workspaceNavBtn {
        box-sizing:border-box !important;
        min-height:42px !important;
        height:auto !important;
        border-radius:9px !important;
        padding:5px 6px !important;
        font-size:10px !important;
        line-height:1.05 !important;
      }
body.device-tablet.module-administration .workspaceMainCard,
      body.device-tablet.module-gestion .workspaceMainCard {
        box-sizing:border-box !important;
        min-height:0 !important;
        height:100% !important;
        padding:7px !important;
        overflow:hidden !important;
      }
body.device-tablet.module-administration .workspaceMainContent,
      body.device-tablet.module-gestion .workspaceMainContent {
        box-sizing:border-box !important;
        min-height:0 !important;
        height:100% !important;
        overflow:auto !important;
        padding-top:5px !important;
      }
body.device-tablet.module-administration .recordToolbar,
      body.device-tablet.module-gestion .recordToolbar {
        gap:5px !important;
        margin-bottom:6px !important;
      }
body.device-tablet.module-administration .recordToolbar select,
      body.device-tablet.module-gestion .recordToolbar select,
      body.device-tablet.module-administration .recordActionBtn,
      body.device-tablet.module-gestion .recordActionBtn {
        height:34px !important;
        min-height:34px !important;
        font-size:9px !important;
        padding:5px 7px !important;
      }
body.device-tablet.module-administration .editorGrid,
      body.device-tablet.module-gestion .editorGrid {
        gap:6px !important;
      }
body.device-tablet.module-administration .editorField input,
      body.device-tablet.module-administration .editorField select,
      body.device-tablet.module-administration .editorField textarea,
      body.device-tablet.module-gestion .editorField input,
      body.device-tablet.module-gestion .editorField select,
      body.device-tablet.module-gestion .editorField textarea {
        font-size:10px !important;
        padding:5px 7px !important;
        min-height:32px !important;
      }
body.device-tablet.module-administration .editorField textarea,
      body.device-tablet.module-gestion .editorField textarea {
        min-height:54px !important;
      }
body.device-tablet.module-administration .editorFooter,
      body.device-tablet.module-gestion .editorFooter {
        margin-top:6px !important;
      }
body[data-theme="dark"].device-tablet.module-administration .workspaceFrame,
      body[data-theme="dark"].device-tablet.module-gestion .workspaceFrame {
        background:#10171b !important;
        border-color:#445057 !important;
      }
}
.recordToolbar {
      grid-template-columns:minmax(220px,1fr) repeat(5,max-content) !important;
    }
@media (orientation:landscape) and (min-width:900px) {



}
@media (orientation:landscape) and (min-width:900px) {



}
@media (orientation:landscape) and (min-width:900px) {
body.device-tablet.module-administration .workspaceFrame,
      body.device-tablet.module-gestion .workspaceFrame {
        grid-template-columns:var(--tt-brand-col) minmax(0,1fr) var(--tt-status-col) !important;
        grid-template-rows:var(--tt-topbar-h) minmax(0,1fr) !important;
        column-gap:var(--tt-top-gap) !important;
      }
}


/* DEV 1.2.25 — ADMINISTRATION > MANIFESTE */
.manifestAdminNotice h3{margin:0 0 6px;font-size:16px}
.manifestToolbar{grid-template-columns:max-content max-content minmax(180px,1fr)!important;align-items:center!important}
.manifestMeta{font-size:11px;opacity:.78;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
.adminManifestText{margin:10px 0 0;padding:14px;border:1px solid #667786;border-radius:8px;background:#0d151d;color:#eaf4ff;font:11px/1.4 Consolas,Monaco,monospace;white-space:pre-wrap;word-break:break-word;overflow:auto;max-height:calc(100% - 105px);box-sizing:border-box}
body[data-theme="light"] .adminManifestText{background:#f3f6f8;color:#16202a;border-color:#9aa8b4}
body.device-tablet.module-administration .adminManifestText{font-size:9.5px;line-height:1.35;max-height:calc(100% - 94px)}
body.device-tablet.module-administration .manifestToolbar{grid-template-columns:max-content max-content minmax(120px,1fr)!important}

/* DEV 1.2.67 — interrupteur global de tous les repères de développement */
.variableRow input.adminGuideToggle{
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  accent-color:currentColor;
  cursor:pointer;
}


/* DEV 1.2.67 — ZONE HD HAUTE :
   CSS_13_Admin_Gestion.html ne doit plus être l'autorité pour largeur/hauteur/typo/rayon/alignement
   des boutons ttTopMenuBtn. Ces propriétés sont exclusivement pilotées par
   CSS_25_Zone0_Menu_Common. Les couleurs/états métier restent ici. */


/* DEV 1.2.67 — nettoyage tablette zone HD : ancien nom utilisateur neutralisé. */



/* DEV 1.2.141B — Administration / Effacer opérations */
.operationDeleteGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 10px}
.operationDeleteGrid .editorField{margin:0}
.operationDeleteGrid select,.operationDeleteGrid input{width:100%;min-height:48px;border-radius:12px;border:1px solid var(--line,#394655);background:var(--panel2,#17212b);color:inherit;padding:0 12px;font-weight:700}
.operationDatesTitle{margin:18px 0 8px;font-size:.82rem;font-weight:900;letter-spacing:.04em;opacity:.8}
.operationDateChips{display:flex;gap:8px;flex-wrap:wrap;max-height:190px;overflow:auto;padding:2px 0 8px}
.operationDateChip{border:1px solid var(--line,#394655);background:var(--panel2,#17212b);color:inherit;border-radius:12px;padding:9px 12px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:130px;cursor:pointer}
.operationDateChip strong{font-size:.9rem}.operationDateChip span{font-size:.72rem;opacity:.75}
.operationDateChip:active{transform:translateY(1px)}
.operationDatesLoading{font-size:.86rem;opacity:.7;padding:8px 0}
.operationPreview{margin-top:10px}
@media(max-width:700px){.operationDeleteGrid{grid-template-columns:1fr}.operationDateChip{min-width:calc(50% - 4px)}}

/* DEV 1.2.156B — ADMINISTRATION > COMMISSIONS */
.commissionPaymentForm{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;align-items:end;margin:14px 0 18px}
.commissionPaymentField{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800}
.commissionPaymentField input,.commissionPaymentField select{min-height:42px;border-radius:10px;border:1px solid rgba(255,255,255,.16);padding:0 10px;background:rgba(255,255,255,.05);color:inherit;box-sizing:border-box}
.commissionPaymentAction{display:flex;align-items:end}
.commissionPaymentAction button{width:100%}
.commissionPaymentHistoryTitle{font-size:16px;font-weight:900;margin:8px 0}
.commissionPaymentTable{display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.12);border-radius:12px;overflow:hidden}
.commissionPaymentRow{display:grid;grid-template-columns:150px 110px 100px 110px 120px minmax(180px,1fr);gap:10px;padding:9px 10px;align-items:center;border-bottom:1px solid rgba(255,255,255,.08);font-size:12px}
.commissionPaymentRow:last-child{border-bottom:0}
.commissionPaymentHead{font-weight:900;opacity:.72;background:rgba(255,255,255,.04)}
.commissionPaymentAmount{text-align:right;font-variant-numeric:tabular-nums;font-weight:800}
body.device-phone .commissionPaymentForm{grid-template-columns:1fr}
body.device-phone .commissionPaymentTable{overflow-x:auto}
body.device-phone .commissionPaymentRow{min-width:760px}

/* DEV 1.2.156B — solde visible avant saisie du paiement de commission */
.commissionBalanceCard{margin:0 0 18px;padding:14px 16px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.035)}
.commissionBalanceTitle{font-size:15px;font-weight:1000;margin-bottom:10px}
.commissionBalanceMetrics{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:10px}
.commissionBalanceMetrics>div{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.035);font-size:12px}
.commissionBalanceMetrics span{opacity:.72;font-weight:800}.commissionBalanceMetrics strong{font-size:16px;font-variant-numeric:tabular-nums}
.commissionBalanceRemaining strong{font-size:20px}
body.device-phone .commissionBalanceMetrics{grid-template-columns:1fr}
