@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette de couleurs dark moderne */
  --bg-primary: #080604;
  --bg-transparent: rgba(8, 6, 4, 0.8);
  --bg-White: #ffffff;
  --bg-image: url('/static/logos/bg.jpg');
  --bg-secondary: #111827;
  --bg-main: #0e0702cd;
  --bg-tertiary: rgba(20, 17, 9, 0.205);
  --bg-input: rgba(255, 255, 255, 0.04);
  
  /* Couleurs d'accent */
  --accent-primary: #d49f2d;      /* teal-400 */
  --accent-secondary: #94620d;    /* teal-600 */
  --accent-glow: rgba(148, 121, 13, 0.35);
  
  --prod-info-bg: #3b2c0b;
  --prod-text-price: #fcf2e1;
  --prod-text-name: #fffaf1;

  /* Couleurs texte */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Bordures et ombres */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: #d4972d;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 32px rgba(148, 134, 13, 0.35);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Bordures arrondies */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --indic-clear: #ffe6ba;
  --indic-color: #f59e0b;
  --indic-background: rgba(245, 158, 11, 0.15);
  --indic-border: 1px solid rgba(245, 159, 11, 0.63);

  --indic-background-strong: rgb(46, 31, 6);

  --indic-red: #f43f5e;
  --indic-background-red: rgba(244, 63, 94, 0.15);
  --indic-border-red: 1px solid rgba(244, 63, 94, 0.3);

  --indic-green: #10b9a2;
  --indic-background-green: rgba(16, 185, 185, 0.15);
  --indic-border-green: 1px solid rgba(16, 185, 171, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Style pour desktop */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg-primary);
  }

  ::-webkit-scrollbar-thumb {
    background-color: var(--accent-secondary);
    border-radius: 3px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-primary);
  }
}

/* Cache complètement sur mobile */
@media (hover: none) and (pointer: coarse) {
  ::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background: transparent;
  }
  
  /* Firefox */
  * {
    scrollbar-width: none;
  }
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-primary);
  /*background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 0, 0, 0.839) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(1, 0, 0, 0.912) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(15, 14, 5, 0.911) 0%, transparent 60%),
    var(--bg-image);*/
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply, multiply, multiply, normal;
  /* ou */
  /*background-blend-mode: overlay, overlay, overlay, normal;*/
}


/* Style modern des inputs */
input, textarea, select {
  width: 98%;
  height: 50px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: all var(--transition-normal);
  
  /* Effet glassmorphisme */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Typographie */
  letter-spacing: 0.3px;
  margin: 10px 0;
  /* Modern native select */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="none" stroke="%232dd4bf" stroke-width=".75" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}

/* Effet focus moderne */
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  background: rgba(17, 24, 39, 0.95);
  transform: translateY(-1px);
}

/* Effet hover */
input:hover, textarea:hover, select:hover {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(17, 24, 39, 0.85);
}

/* Input avec label flottant modern */
.input-group {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
  text-align: left;
  justify-content: left;
  align-items: left;
}

.input-group input {
  width: 98%;
  height: 56px;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  transition: all var(--transition-normal);
  background: transparent;
  padding: 0 4px;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
  top: 0;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--accent-primary);
  background: var(--bg-secondary);
}

/* Input avec icône */
.input-icon {
  position: relative;
  width: 100%;
}

.input-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.input-icon input {
  padding-left: 44px;
}

.input-icon input:focus + i {
  color: var(--accent-primary);
}

i {
  vertical-align: middle;
}

#formArea{
  margin-bottom: 10px;
}

.FormInput {
  width: 98%;
  height: 45px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-normal);
}

.FormInput:focus {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  background: rgba(17, 24, 39, 0.95);
}

/* Style pour les OPTIONS */
option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 12px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Option au survol */
option:hover {
  background: var(--accent-dim);
  color: var(--accent-primary);
}

/* Option sélectionnée/checked */
option:checked {
  background: linear-gradient(135deg, var(--accent-secondary), #0891b2);
  color: #ffffff;
  font-weight: 600;
}

/* Option au focus */
option:focus {
  background: var(--accent-dim);
  outline: none;
}

/* Option désactivée */
option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Premier option (placeholder) */
option:first-child {
  color: var(--text-muted);
  font-style: italic;
}

/* Option avec valeur vide */
option[value=""] {
  color: var(--text-muted);
}

/* Groupe d'options */
optgroup {
  background: var(--bg-primary);
  color: var(--accent-primary);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  letter-spacing: 0.5px;
}

optgroup option {
  padding-left: 20px;
}

/* Pour les navigateurs Webkit */
option::-webkit-select {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Pour Firefox */
@-moz-document url-prefix() {
  option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
  }
  
  option:checked {
    background-color: var(--accent-secondary);
    color: #ffffff;
  }
}
.bgGreen{
  background: #0a110b;
}

.bgRed{
  background: #150d10;
}

span,div,i {
  cursor: pointer;
}


 /* Loader plein écran */
    #loader {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      background: linear-gradient(135deg, #020203, #1a1103);
      backdrop-filter: blur(5px);
      color: white;
      z-index: 111112;
      opacity: 1;
      visibility: visible;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    #loader.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    #loader {
      padding: 20px;
      background: radial-gradient(circle at 50% 15%, rgba(31, 47, 72, .72), transparent 50%), rgba(5, 10, 18, .82);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .loading-card {
      width: min(100%, 470px);
      padding: clamp(24px, 5vw, 36px);
      border: 1px solid rgba(255, 255, 255, .72);
      border-radius: 22px;
      background: linear-gradient(155deg, #fff 0%, #f7f8fb 100%);
      box-shadow: 0 28px 90px rgba(0, 0, 0, .32), 0 2px 10px rgba(7, 16, 32, .08);
      color: #172033;
      text-align: left;
      animation: loadingCardIn .35s ease-out both;
    }

    @keyframes loadingCardIn {
      from { opacity: 0; transform: translateY(8px) scale(.99); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .loading-brand {
      display: flex;
      align-items: center;
      gap: 11px;
      margin-bottom: 24px;
      color: #243148;
      font-size: 14px;
      font-weight: 750;
      letter-spacing: .02em;
    }

    .loading-brand img {
      width: 38px;
      height: 38px;
      padding: 5px;
      border-radius: 12px;
      background: #f0f2f6;
      object-fit: contain;
    }

    .loading-card h1 {
      margin: 0 0 8px;
      color: #172033;
      font-size: clamp(20px, 4vw, 24px);
      font-weight: 750;
      letter-spacing: -.025em;
      line-height: 1.25;
    }

    .loading-card .loading-text {
      min-height: 20px;
      margin: 0 0 26px;
      color: #677286;
      font-size: 14px;
      font-weight: 450;
      letter-spacing: 0;
      line-height: 1.5;
      animation: none;
    }

    .loading-progress-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 9px;
      color: #4c586d;
      font-size: 12px;
      font-weight: 650;
    }

    .loading-progress-meta strong {
      color: #9a6b04;
      font-size: 13px;
      font-variant-numeric: tabular-nums;
    }

    .loading-progress-track {
      height: 8px;
      overflow: hidden;
      border-radius: 99px;
      background: #e7eaf0;
    }

    .loading-progress-track > span {
      display: block;
      width: 0;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #c58c17, #edbf4d);
      box-shadow: 0 0 14px rgba(213, 164, 50, .28);
      transition: width .45s cubic-bezier(.2, .75, .25, 1), background-color .2s ease;
    }

    #loader[data-loading-state="error"] .loading-progress-track > span { background: #d9534f; }
    #loader[data-loading-state="queued"] .loading-progress-track > span { background: #d29a25; }

    .loading-steps {
      display: grid;
      gap: 0;
      margin: 21px 0 0;
      padding: 0;
      list-style: none;
    }

    .loading-step {
      position: relative;
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-height: 36px;
      color: #96a0b0;
      font-size: 12px;
      line-height: 1.35;
    }

    .loading-step:not(:last-child)::after {
      position: absolute;
      top: 26px;
      bottom: -10px;
      left: 10px;
      width: 1px;
      background: #e4e8ef;
      content: "";
    }

    .loading-step-indicator {
      z-index: 1;
      display: grid;
      width: 21px;
      height: 21px;
      place-items: center;
      border: 1px solid #d8dee8;
      border-radius: 50%;
      background: #fff;
      color: transparent;
      font-size: 11px;
      font-weight: 800;
    }

    .loading-step[data-state="active"] { color: #29364d; font-weight: 700; }
    .loading-step[data-state="active"] .loading-step-indicator {
      border-color: #d29a25;
      background: #fff8e8;
      box-shadow: 0 0 0 3px rgba(210, 154, 37, .11);
      animation: loadingStepPulse 1.5s ease-in-out infinite;
    }
    .loading-step[data-state="done"] { color: #667286; }
    .loading-step[data-state="done"] .loading-step-indicator {
      border-color: #27856f;
      background: #27856f;
      color: #fff;
    }
    .loading-step[data-state="error"] { color: #a43d3a; font-weight: 700; }
    .loading-step[data-state="error"] .loading-step-indicator { border-color: #d9534f; background: #d9534f; color: #fff; }
    .loading-step time { color: #9aa3b2; font-size: 10px; font-variant-numeric: tabular-nums; }

    @keyframes loadingStepPulse {
      50% { box-shadow: 0 0 0 6px rgba(210, 154, 37, .04); }
    }

    .loading-note {
      margin: 19px 0 0;
      padding-top: 14px;
      border-top: 1px solid #e8ebf0;
      color: #8993a3;
      font-size: 11px;
      line-height: 1.45;
    }

    @media (max-width: 480px) {
      #loader { padding: 14px; }
      .loading-card { border-radius: 18px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .loading-card, .loading-step[data-state="active"] .loading-step-indicator { animation: none; }
      .loading-progress-track > span { transition-duration: .01ms; }
    }


    .spinner {
      width: 50px;
      height: 50px;
      border: 6px solid rgba(136, 249, 255, 0.427);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-bottom: 15px;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .loading-text {
      font-size: 18px;
      font-weight: 500;
      letter-spacing: 1px;
      animation: pulse 1.4s ease-in-out infinite;
      color: #f2f9c7;
    }

    .loading-textLite {
      font-size: 13px;
      font-weight: 300;
      
      animation: pulseLite 1.4s ease-in-out infinite;
      color: #f2f9c7;
    }

    @keyframes pulse {
      0%, 100% { opacity: 0.65; }
      50% { opacity: 1; }
    }

    @keyframes pulseLite {
      0%, 100% { opacity: 0.85; }
      50% { opacity: 1; }
    }

    .fileWrapper{
      width: 32%;
      border-radius: 10px;
      margin: 10px;
      background-color: #000000;
      padding: 10px;
    }

    .fileWrapperIMG{
      width: 100%;
      border-radius: 5px;
      margin: 2px;
      background-color: #ffffff;
      
    }

    #filesContainer{
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      width: 100%;
    }

    .filesContainer{
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      width: 100%;

    }

    

    .img_attached{
      max-height: 150px;
      width: auto;
      border-radius: 5px;
    }

    .inputCB{
      
      width: 20%;
      display: inline-block;
      margin-right: 5px;
      
    }

    .inputTrie{
      
      width: 75%;
      display: inline-block;
      
    }

    .iframe_attached{
      max-height: 300px;
      width: auto;
      border-radius: 5px;
      border: none;
    }

.box_prod {
  width: 19%;
  background: var(--bg-White);
  border-radius: var(--radius-md);
  cursor: pointer;
  margin: 3px;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(5px);
  color: var(--text-primary);
  border: 1px solid var(--prod-info-bg);
  letter-spacing: -0.01em;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}

.headDescription {
  width: 100%;
  
  background: var(--bg-White);
  border-radius: var(--radius-md);
  cursor: pointer;
  margin: 3px;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(5px);
  color: var(--text-primary);
  border: 1px solid var(--prod-info-bg);
  letter-spacing: -0.01em;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Zoom fluide au survol */
.box_prod:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(8px);
  border-color: var(--indic-border);
}

.prodInfos{
      padding:3x;
      background: var(--prod-info-bg);
      position: relative;
      width:65%;
      height:80px !important;
    
    }

    .image_prod{
      width:45%;
      overflow: hidden;
      background: var(--bg-White);
      color: var(--bg-tertiary);
    }

    .image_profile{
      height: 35px;
      width: 35px;
      border-radius: 100%;
      overflow: hidden;
      background: var(--bg-White);
      color: var(--bg-tertiary);
      box-shadow: var(--shadow-sm);
    }

    .image_ticket{
      height: 20px;
      width: 20px;
      border-radius: 100%;
      overflow: hidden;
      background: var(--bg-White);
      color: var(--bg-tertiary);
      box-shadow: var(--shadow-sm);
    }

    .image_bipper{
      width: 45%;
      overflow: hidden;
      background: var(--bg-White);
    }

    .eval_fiche{
      width: 100%;
    }

    .prod_name{
    color: var(--prod-text-name);
    font-size: 12px;
    font-weight: 500;
    line-height: 1; /* ou une valeur plus petite comme 1.1 ou 1 */
  }

    .prod_price{
      color: var(--prod-text-price);
      font-size: 14px;
      font-weight: 500;
      padding: 3px;
    }

    .portprice{
      color: var(--prod-text-price);
      font-size: 14px;
      font-weight: 500;
      position: absolute;
      bottom: -5px;
      padding-bottom: 5px;
      left: 0px;
      background: var(--indic-background-strong);
      padding: 3px;
      width: 100%;
      z-index: 100;
    }

    .imageSelf{
      width:auto;
      height: 60px;
      border-radius: 5px;
    }

    /* Contenu principal */
    #app {
      opacity: 0;
      transition: opacity 0.6s ease-in-out;
      
    }

    #app.visible {
      opacity: 1;
    }


    #printingBox {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      background: white;
      color: rgb(0, 0, 0);
      z-index: 111115;
      opacity: 1;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    #printingBox.hidden {
      opacity: 0;
      visibility: hidden;
    }


    #criticalAlerter {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      background: linear-gradient(135deg, #020203fa, #1e1402ea);
      color: white;
      z-index: 111113;
      opacity: 1;
      visibility: visible;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    #criticalAlerter.hidden {
      opacity: 0;
      visibility: hidden;
    }




.icard-management-panel { box-sizing:border-box; margin:14px 0; padding:14px; border:1px solid var(--border-light,rgba(255,255,255,.1)); border-radius:14px; background:linear-gradient(145deg,var(--bg-secondary,#111827),rgba(8,6,4,.94)); color:var(--text-primary,#f2f4f7); box-shadow:0 10px 28px rgba(0,0,0,.2); }
.icard-management-panel h3 { display:flex; align-items:center; gap:9px; margin:0 0 7px; color:var(--indic-clear,#ffe6ba); font-size:1rem; }
.icard-management-panel h3 > i { color:var(--accent-primary,#d49f2d); }
.icard-card-current-state { margin:0 0 11px; color:var(--text-secondary,#94a3b8); font-size:.88rem; }
.icard-management-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:8px; min-width:0; margin:8px 0; }
.icard-card-action { box-sizing:border-box; display:inline-flex; flex:1 1 0; align-items:center; justify-content:center; gap:7px; min-width:0; min-height:40px; margin:0 !important; padding:8px 10px; border:1px solid var(--indic-border,rgba(245,159,11,.55)); border-radius:10px; background:var(--indic-background,rgba(245,158,11,.12)); color:var(--indic-clear,#ffe6ba); font:inherit; font-size:.84rem; font-weight:700; line-height:1.2; cursor:pointer; transition:background .16s ease,border-color .16s ease,transform .16s ease,opacity .16s ease; }
.icard-card-action > i { flex:0 0 auto; color:var(--accent-primary,#d49f2d); font-size:1rem; }
.icard-card-action:hover:not(:disabled),.icard-card-action:focus-visible { border-color:var(--accent-primary,#d49f2d); background:var(--indic-background-strong,rgba(212,159,45,.22)); transform:translateY(-1px); }
.icard-card-action:disabled { opacity:.58; cursor:wait; }
.icard-card-action.is-loading > i { animation:icardActionSpin .8s linear infinite; }
@keyframes icardActionSpin { to { transform:rotate(360deg); } }
.icard-history-dates { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:8px; align-items:end; margin:10px 0; }
.icard-history-dates .icard-history-date-field { position:static; display:grid; gap:5px; min-width:0; color:var(--text-secondary,#94a3b8); font-size:.78rem; }
.icard-history-dates input { box-sizing:border-box; display:block; width:100%; min-width:0; min-height:40px; padding:6px 9px; border:1px solid var(--border-light,rgba(255,255,255,.12)); border-radius:9px; background:var(--bg-primary,#080604); color:var(--text-primary,#f2f4f7); color-scheme:dark; }
.icard-history-results { max-width:100%; overflow:auto; border-radius:9px; }
.icard-history-table th,.icard-history-table td { padding:8px; border-bottom:1px solid var(--border-light,rgba(148,163,184,.16)); text-align:left; white-space:nowrap; }
.icard-history-table th { background:var(--bg-primary,#080604); color:var(--indic-clear,#ffe6ba); }
.icard-management-status { min-height:1.2em; margin:8px 0 0; color:var(--text-secondary,#94a3b8); font-size:.84rem; }
.icard-management-status[data-state="success"] { color:var(--indic-green,#10b9a2); }
.icard-management-status[data-state="error"] { color:var(--indic-red,#ef6b73); }
.icard-management-status[data-state="loading"] { color:var(--accent-primary,#d49f2d); }
@media (max-width:600px) {
  .icard-management-panel { padding:11px; }
  .icard-management-actions { gap:6px; }
  .icard-card-action { min-height:38px; padding:7px 6px; gap:5px; font-size:.78rem; }
  .icard-history-dates { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end !important; }
  .icard-history-dates .icard-history-date-field { width:auto; }
  .icard-history-table { min-width:580px; }
}
@media (max-width:380px) {
  .icard-card-action > span { display:none; }
  .icard-card-action > i { font-size:1.08rem; }
  .icard-history-dates .icard-history-button { flex:0 0 40px; width:40px; padding:0; }
}
    #Alerter {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      background: linear-gradient(135deg, #020203fa, #1e1402ea);
      color: white;
      z-index: 111113;
      opacity: 1;
      visibility: visible;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    #Alerter.hidden {
      opacity: 0;
      visibility: hidden;
    }


    #formBox{
      position: fixed;
      width: 100%;
      inset: 0;
      top: 14vh;
      height: 84vh;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      background: linear-gradient(135deg, #020203fa, #1e1402ea);
      color: white;
      z-index: 10009;
      opacity: 1;
      visibility: visible;
      transition: opacity 0.5s ease, visibility 0.5s ease;
      overflow-x: hidden;
      overflow-y: auto;
      padding-top: 12px;
      padding-bottom: 12px;
      padding-left: 10px;
      padding-right: 10px;
    }

    #formBox.hidden {
      opacity: 0;
      visibility: hidden;
    }


    #BigShowBox{
      position: fixed;
      width: 100%;
      inset: 0;
      top: 14vh;
      height: 84vh;
      display: flex;
      
      justify-content: center;
      
      background: linear-gradient(135deg, #020203fa, #1e1402ea);
      color: white;
      z-index: 10009;
      opacity: 1;
      visibility: visible;
      transition: opacity 0.5s ease, visibility 0.5s ease;
      overflow-x: hidden;
      overflow-y: auto;
      padding-top: 13px;
      padding-bottom: 13px;
      padding-left: 10px;
      padding-right: 10px;
      
    }

    #BigShowBox.hidden {
      opacity: 0;
      visibility: hidden;
    }

    .closeFlotRbt{
      background: #000000;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 2px;
      border-radius: 100%;
      width: 30px;
      height: 30px;
      float: right;
      position: fixed;
      top: 7vh;
      right: 10px;
      z-index: 111111;
      font-size: 20px;
    }

    .head_shop{
      text-align: center; 
      background-image: url('/static/logos/ban1.webp'); 
      background-size: cover; 
      background-position: center;
      width: 100%;
      height: 20vh;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow-x: hidden;
      overflow-y: auto;

    }
    #head_market{
      position: relative;
      top: 7vh;
      padding-bottom: 60px;
      width: 100%;

    }
    .coverOverlay{
      width: 100%;
      height: 100%;
      background: #130a019c;
      display: flex;
      justify-content: center;
      align-items: center;

    }

    .modalDiv {
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999; /* Valeur très élevée */
    max-width: 100%;
    width: 400px;
    color: var(--text-primary);
    
    /* Style optionnel */
    background: var(--bg-transparent);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    pointer-events: auto; /* Conserve l'interactivité */
    isolation: isolate; /* Crée son propre contexte d'empilement */
}

.modalMasterBT {
    position: fixed;
    display: none;
    bottom: 2px;
    left: 0px;
    
    z-index: 999999; /* Valeur très élevée */
    max-width: 100%;
    width: 100%;
    color: var(--text-primary);
    
    /* Style optionnel */
    background: transparent;
    
    border-radius: 10px;
    
    pointer-events: auto; /* Conserve l'interactivité */
    isolation: isolate; /* Crée son propre contexte d'empilement */
}

.categories-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #000000;
}

.scroll-btn {
    flex: 0 0 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 1;
}

.scroll-btn:hover {
    background: rgba(0,0,0,0.8);
}

.scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.categories_box::-webkit-scrollbar {
    height: 1px;
}

.categories_box::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.categories_box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.categories_box::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.categories_box {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 15px 20px;
    background: #000000;
    border-radius: 8px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: thin;
}

.categories_box .category-item {
    flex: 0 0 auto;
    padding: 8px 20px;
    background: var(--indic-background);
    color: var(--indic-color);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 14px;
}

.categories_box .category-item:hover {
    background: var(--indic-background);
    color: var(--indic-color);
    border-color: var(--indic-border);
    transform: scale(1.05);
}

.categories_box .category-item.active {
    background: var(--indic-background-green);
    color: var(--indic-green);
    border-color: var(--indic-border-green);
}


.blurIt{
  filter: "blur(5px) brightness(0.8) saturate(0.5)"
}

    #tradingBox{
      position: fixed;
      width: 100%;
      inset: 0;
      top: 7vh;
      height: 93vh;
      display: flex;
      justify-content: center;
      align-items: center;
      
      background: var(--bg-primary);
      color: white;
      z-index: 10009;
      opacity: 1;
      visibility: visible;
      transition: all 0.5s ease;
      overflow-x: hidden;
      overflow-y: hidden;
      
    }


    #tradingBox.hidden {
      
      visibility: hidden;
    }

   

    .divTotal {
      position: relative;
      display: flex;
      justify-content: right;
      align-items: end;
      width: 100%;
      right: 5px;
      padding: 10px;
      font-size: 20px;
      text-align: left;
      background: rgba(20, 29, 26, 0.7);
    color: #f5fcf4;
    }

    

  

#product_area {
  position: relative;
  width: 69%;
  inset: 0;
  top: 0;
  height: 100%;
  display: inline-block;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: hidden;
  background: transparent;

}

#body_product_area {
  position: relative;
  padding-top: 15px;
  padding-bottom: 120px;
  width: 100%;
  inset: 0;
  top: 0;
  height: 100%;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;

}

/* Scrollbar moderne */
#body_product_area::-webkit-scrollbar {
  width: 6px;
}

#body_product_area::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 10px;
}

#body_product_area::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
}

#head_product_area {
  position: relative;
  width: 100%;
  inset: 0;
  top: 0;
  height: 7vh;
  display: block;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0 20px;
  background: var(--bg-primary);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid var(--border-light);
}

#side_area {
  position: relative;
  padding-bottom: 120px;
  overflow-x: hidden;
  overflow-y: auto;
  width: 30%;
  inset: 0;
  top: 0;
  height: 100%;
  display: inline-block;
  background: var(--bg-primary);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4), inset 1px 0 0 var(--border-light);
}

#ticket_area {
  position: relative;
  width: 100%;
  inset: 0;
  top: 0;
  height: 69%;
  padding: 15px;
}

#head_ticket_area {
  position: relative;
  width: 100%;
  inset: 0;
  top: 0;
  height: 20%;
  padding: 15px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(6, 182, 212, 0.08));
  border-radius: 15px 15px 0 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

#body_ticket_area {
  position: relative;
  width: 100%;
  inset: 0;
  top: 0;
  height: 45%;
  padding: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 5px;
  border: 1px solid var(--border-light);
}

#body_ticket_area::-webkit-scrollbar {
  width: 6px;
}

#body_ticket_area::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 10px;
}

#body_ticket_area::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
}

#bottom_ticket_area {
  position: relative;
  width: 100%;
  inset: 0;
  top: 0;
  height: 65%;
  padding: 15px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.95);
  border-radius: 0 0 15px 15px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.line_ticket {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  margin: 5px 0;
  padding: 3px 0;
  border-bottom: 1px dashed var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

#keyboard_area {
  position: relative;
  width: 100%;
  inset: 0;
  top: 0;
  height: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  margin-top: 3px;
  border: 1px solid var(--border-light);
}

#keyboard {
  position: relative;
  width: 100%;
  inset: 0;
  top: 0;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 5px;
}

#set_for_keyboard {
  position: relative;
  width: 14%;
  inset: 0;
  top: 0;
  height: 100%;
  margin: 5px;
  background: rgba(13, 148, 136, 0.08);
  border-radius: 15px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

#set_for_keyboard:hover {
  background: rgba(13, 148, 136, 0.18);
  box-shadow: 0 4px 15px var(--accent-glow);
  transform: translateY(-2px);
}

.bt_keyboard {
  position: relative;
  width: 28%;
  height: 22%;
  cursor: pointer;
  background: var(--bg-tertiary);
  margin: 2px;
  padding: 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bt_keyboard:hover {
  background: linear-gradient(135deg, var(--accent-secondary), #0891b2);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-primary);
}

.bt_keyboard:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

#boxpaiement {
  display: block;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 15px;
  padding: 3px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-top: 5px;
}

/* Effets de glow modernes */
.glow-effect {
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* Animation pour les éléments */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-item, .ticket-item {
  animation: fadeIn 0.3s ease backwards;
}

/* Responsive */
@media screen and (max-width: 992px) {
 
  
  
  .bt_keyboard {
    width: 30%;
    font-size: 0.9rem;
  }
  
  #set_for_keyboard {
    width: 12%;
  }
}

@media screen and (max-width: 768px) {
  #tradingBox {
    display: block;
  }
  #product_area {
    width: 100%;
  }
  #side_area {
    width: 100%;
    display: none;
  }
  .bt_keyboard {
    width: 29%;
    font-size: 0.85rem;
    padding: 8px;
  }
  
  #set_for_keyboard {
    width: 15%;
  }
  
  #head_product_area {
    height: 10vh;
    width: 100%;
  }
  
  #body_product_area {
    height: 85vh;
  }
}

@media screen and (max-width: 480px) {
  #product_area {
    width: 100%;
  }
  #side_area {
    width: 100%;
    margin-top: 15px;
  }
  .bt_keyboard {
    width: 45%;
    font-size: 0.8rem;
  }
  
  #set_for_keyboard {
    width: 20%;
  }
  
  #boxpaiement {
    flex-direction: column;
  }
  
}

@media screen and (max-width: 600px) {

  .box_prod{
      position: relative;
      width: 45%;
      cursor: pointer;
      display: inline-flex;
}
}

    .imgCB{
      
      width: 70px;
      height: auto;
      border-radius: 5px;
      margin: 5px;
      
    }

    .imgQR{
      
      width: 50px;
      height: 50px;
      border-radius: 5px;
      margin: 5px;
      
    }
    #preview_sample{
      display: flex;
      justify-content: center;
      align-items: center;
      
    }
    .div_prev{
      margin: 5px;
    }

    .card{
      margin-bottom: -7px;
      margin-right: 4.3px;
      margin-left: 4.3px;
      
      width: 9cm;
      height: 6cm;
      position: relative;
      background-attachment: fixed;
      background-size: 100% 100% !important;

    }

    .etikette{
      margin: 0px;
      padding: 20px;
      width: 6.9cm;
      height: 3.5cm;
      position: relative;
      background-attachment: fixed;
      background-size: 100% 100% !important;
      border: #c5c5c5 solid 0.5px;

    }

    .cardVerso{
      margin-bottom: -7px;
      margin-left: 10px;
      
      width: 9cm;
      height: 6cm;
      position: relative;
      background-attachment: fixed;
      background-size: 100% 100% !important;

    }
    


    .td_indicator0{
      background: #271b1bff;
    }

    .td_indicator1{
      background: #21291eff;
    }
    .tr_head{
      background: rgb(122, 135, 77);
    }

    .detail_text{
      color: rgb(92, 90, 61);
      font-size: 9px;
    }

    .td_selected{
      background: rgb(0, 0, 0);
    }

    .minibox{
      display: flex;
      justify-content: center;
      align-items: center;
      
    }

    .zArea{
      width: 50%;
      
    }

    .zinput{
      width: 60%;
      
    }
    .zradio{
      width: 40%;
      
    }

    
 /* Le pied de page pour l'affichage normal (non-imprimé) */
 #footerPrinted {
  display: none;
}
#topPrinted {
  display: none;
}

/* ÉCRAN */
.print-header,
.print-footer {
  display: block;
}

/* IMPRESSION */
@media print {
  @page {
    margin: 100px 50px;
  }

  body {
    margin: 0;
  }

  .print-header {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    height: 60px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #ccc;
  }

  .print-footer {
    position: fixed;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 40px;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid #ccc;
  }

  .content {
    width: 100%;
  }

  .page {
    page-break-after: always;
  }

  .page:last-child {
    page-break-after: auto;
  }

  /* Numérotation automatique */
  .pageNumber::after {
    content: counter(page);
  }
}


.spanBox {
  width: 15%;
  height: 100px;
  padding: 5px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 2px;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(5px);
}

.selected_option{
  color:var(--indic-color);
  background: var(--indic-background);
  border: 1px solid var(--indic-border);
  border-radius: var(--radius-sm);
}
.infosM{
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
}



.spanBoxTD {
  width: 100%;
  border-radius: var(--radius-sm);
  min-height: 45px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 2px;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(5px);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
}

/* Effet de brillance au survol */
.spanBox::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 70%
  );
  transform: rotate(25deg);
  transition: all 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.spanBox:hover::before {
  opacity: 1;
  transform: rotate(25deg) translateX(50%);
}

/* Effet ripple au clic */
.spanBox::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  pointer-events: none;
}

.spanBox:active::after {
  width: 300px;
  height: 300px;
}

.spanBox:hover {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
  color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-primary);
}

.spanBox:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-sm);
}

.spanBox:hover i {
  font-size: 28px;
  transition: all 0.3s ease;
}

/* ========== SPANBOX TRANSP ========== */
.spanBoxTransp {
  width: 15%;
  height: 100px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 2px;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

/* Effet de brillance pour transp */
.spanBoxTransp::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 70%
  );
  transform: rotate(25deg);
  transition: all 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.spanBoxTransp:hover::before {
  opacity: 1;
  transform: rotate(25deg) translateX(50%);
}

/* Effet ripple pour transp */
.spanBoxTransp::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  pointer-events: none;
}

.spanBoxTransp:active::after {
  width: 300px;
  height: 300px;
}

.spanBoxTransp:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-primary);
  backdrop-filter: blur(12px);
}

.spanBoxTransp:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-sm);
}

.spanBoxTransp:hover i {
  font-size: 28px;
  transition: all 0.3s ease;
}

/* Variante avec glow externe */
.spanBox-glow {
  animation: spanGlow 2.5s ease-in-out infinite;
}

@keyframes spanGlow {
  0%, 100% {
    box-shadow: var(--shadow-sm);
  }
  50% {
    box-shadow: var(--shadow-glow);
  }
}

/* Contenu interne amélioré */
.spanBox i,
.spanBoxTransp i {
  font-size: 24px;
  margin-bottom: 5px;
  display: block;
  transition: all 0.3s ease;
}

.spanBox span,
.spanBoxTransp span {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  opacity: 0.9;
}

/* Responsive - sans casser les tailles */
@media screen and (max-width: 1200px) {
  .spanBox, .spanBoxTransp {
    width: 18%;
  }
}

@media screen and (max-width: 992px) {
  .spanBox, .spanBoxTransp {
    width: 22%;
  }
}

@media screen and (max-width: 768px) {
  .spanBox, .spanBoxTransp {
    width: 30%;
    height: 90px;
  }
  
  .spanBox i,
  .spanBoxTransp i {
    font-size: 20px;
  }
  
  .spanBox:hover i,
  .spanBoxTransp:hover i {
    font-size: 24px;
  }
}

@media screen and (max-width: 480px) {
  .spanBox, .spanBoxTransp {
    width: 30%;
    height: 85px;
  }
}

/* Support pour ordinateur de bureau haute résolution */
@media screen and (min-width: 1600px) {
  .spanBox, .spanBoxTransp {
    height: 110px;
  }
  
  .spanBox i,
  .spanBoxTransp i {
    font-size: 28px;
  }
}

.sidebarX {
  width: 25%;
  height: 100vh;
  padding: 10px;
  text-align: left;
  font-size: small;
  position: fixed;
  z-index: 999999; /* Valeur très élevée */
  background: var(--bg-tertiary);
  border-right: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  pointer-events: auto; /* Conserve l'interactivité */
  isolation: isolate; /* Crée son propre contexte d'empilement */
}

.sugestionBox {
  width: 100%;
  height:auto;
  padding: 5px;
  text-align: left;
  background: #0c0701d0;
  position: absolute;
  z-index: 99999;
  transform: translateY(-10px);
  font-size: 15px;
  
}

.sugestionElem {
  margin-bottom: 3px;
  padding: 5px;
  background-color: #00000093;
  border-bottom: #3b3a3a solid 0.5px;
  color: #f3faf2;
  text-align: left;
  transition: all 0.5s;
  width: 100%;
  cursor: pointer;
}

.sugestionElem:hover {
  background-color: #02302383;
  color: #d0fbcb;
}

#search_tab_{
  display: none;
}

/* Media query pour les écrans plus petits */
@media only screen and (max-width: 900px) {
  .spanBox {
  width: 22%;
  height: 80px;
  }
  .spanBoxTransp {
  width: 22%;
  height: 80px;
  }
  .sidebarX {
  width: 40%;
  }



#product_area{
      position: relative;
      width: 100%;
      height: 100%;
      
}

#side_area{
      
      width: 100%;
      height: 100%;
      border-left: #707070 solid 0px;
      border-bottom: #707070 solid 1px;
      position: relative;
      z-index: 111111111;
      
    }
#ticket_area{
      position: relative;
      width: 100%;
      height: 100%;
}
#body_ticket_area{
      position: relative;
      width: 100%;
      height: 50%;
    }

#bottom_ticket_area{
      position: relative;
      width: 100%;
      height: 50%;
      background: #090a06;
    }





    

}

@media only screen and (max-width: 600px) {
  .spanBox {
  width: 30%;
  height: 80px;
  }
  .spanBoxTransp {
  width: 22%;
  height: 80px;
  }
  .sidebarX {
  width: 60%;
  }

  

    
}

.spanBoxL {
  width: 100%;
  height: 45px;
  padding: 5px;
  background-color: #000000;
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.5s ease;
  margin: 2px;
  overflow: auto;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  text-align: center;
  
}

.spanBoxL:hover {
  background-color: #272727;
}

.bigShowX {
  width: 98%;
  height: 100vh;
  padding-right: 50px;
  padding-left: 10px;
  text-align: left;
  font-size: small;
  position: fixed;
  z-index: 10011;
  background: var(--bg-secondary);  
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-light);
  color: var(--text-primary);
  overflow-y: auto;
  display: flex;
}

.bodyRap {
  padding: 20px;
  width: 100%;
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
}

#rapCommentBox {
  display: block;
  justify-content: left;
  text-align: left;
}

#rapCommentBoxList {
  display: block;
  justify-content: left;
  text-align: left;
}

#closeBig {
  position: relative;
  right: 20px;
}

.bodyResRap {
  padding: 5px;
  padding-left: 30px;
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
  max-height: 50vh;
  overflow-y: auto;
}

#rapReply {
  padding: 5px;
  box-shadow: none;
  height: 80px;
  max-height: 50vh;
  overflow-y: auto;
}

.sidebar {
  width: 20%;
  height: 100vh;
  padding: 2px;
  text-align: left;
  font-size: small;
  position: relative;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-light);
}

.sidebarHead {
  width: 100%;
  height: auto;
  padding: 12px;
  text-align: center;
  font-size: small;
  position: relative;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  margin: 5px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(6, 182, 212, 0.08));
  border-radius: var(--radius-sm);
}

.sidebarContent {
  width: 100%;
  height: 89vh;
  padding: 15px;
  padding-top: 25px;
  text-align: left;
  font-size: small;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}

.iconBg {
  font-size: 25px;
}

.sidebarMediumTop {
  width: 100%;
  height: 45vh;
  padding: 15px;
  padding-bottom: 25px;
  text-align: left;
  font-size: small;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.sidebarMediumBottom {
  width: 100%;
  height: 54vh;
  padding: 15px;
  padding-top: 25px;
  text-align: left;
  font-size: small;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.mainSection {
  width: 99%;
  height: auto;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(5px);
  padding: 15px;
  margin-top: 5px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: small;
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: auto;
}

.mainSectionX {
  width: 100%;
  left: 0px;
  height: 90vh;
  background: var(--bg-main);
  color: var(--text-primary);
  margin-top: 10px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: small;
  position: fixed;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  justify-content: center;
  align-items: center;
  
  padding: 3px;
  padding-bottom: 25px;
  
}

#mainSectionH {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 25px;
  gap: 6px;
}
#mainSectionB {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 25px;
  gap: 6px;
}

.mainSectionLarge {
  width: 980%;
  height: auto;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin: 5px;
  border-radius: var(--radius-lg);
  padding: 15px;
  padding-top: 20px;
  padding-bottom: 25px;
  text-align: center;
  font-size: small;
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  overflow-y: auto;
}

.mainSectionBottom {
  background: var(--bg-main);
  width: 100%;
  height: 100%;
  left: 0px;
  color: var(--text-primary);
  margin-top: 5px;
  padding: 5px;
  text-align: left;
  font-size: small;
  position: fixed;
  overflow-x: hidden;
  overflow-y: hidden;
}

#tabArea {
  width: 100%;
  height: auto;
  text-align: left;
  font-size: small;
  position: relative;
  overflow: auto;
  padding-bottom: 50px;
}
#static_area {
  width: 100%;
  max-height: 20%;
  overflow: auto;
}
#trieArea {
  width: 100%;
  max-height: 170px;
  overflow-x: auto;
  overflow-y: hidden;
}

.specialInput{
  position: relative;
  transform: translateY(-35px);
}

.specialInput:hover{
  position: relative;
  transform: translateY(-35px);
}

#staticTabHead {
  width: 100%;
  max-height: 150px;
  overflow-x: auto;
  overflow-y: hidden;
}

.mainSectionHead {
  width: 100%;
  height: 7vh;
  position: fixed;
  position: -webkit-sticky;
  top: 0;
  color: var(--accent-primary);
  padding: 5px;
  text-align: center;
  font-size: small;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: var(--bg-main);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.headBig {
  width: 100%;
  height: auto;
  position: sticky;
  position: -webkit-sticky;
  top: 0;

  color: rgb(253, 236, 174);
  
  padding: 5px;

  text-align: center;
  font-size: small;
  cursor: pointer;
  transition: background-color 0.3s ease;
  
  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 10005;
  background: #0000003b;
}

.flexBox{
  padding: 10px;
  border-radius: 5px;
}



.BigShow {
  width: 100%;
  max-width: 21cm;
}

.mainSectionFooter {
  width: 100%;
  height:3vh;
  color:rgb(49, 50, 32);
  margin-top: 2px;
  padding: 5px;
  border-radius: 2px;
  text-align: center;
  font-size: small;
  position: fixed;
  bottom: 5px;
  left: 0%;
  
}


.sidebarR {
  width: 20%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.99), rgba(57, 23, 0, 100), rgba(1, 3, 3, 0.99));
  padding: 10px;
  padding: 10px;
  padding-top:20px;
  background: url("/static/res/bg-02.png") 0px 0px;
  background-size: 100% 100%;
  
}

.sidebarRBIG {
  width: 30%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.99), rgba(57, 23, 0, 100), rgba(1, 3, 3, 0.99));
  padding: 10px;
  padding: 10px;
  padding-top:20px;
  background: url("/static/res/bg-02.png") 0px 0px;
  background-size: 100% 100%;
}

.content {
  flex-grow: 1;
  margin-left: 0px;
  width: 60%;
  
}

.tableNoborder{
  border:none;
}

textarea {
  resize: none; /* Disable resizing */
  border: none; /* Remove border */
  outline: none; /* Remove outline */
  /* Additional styling as needed */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  border-radius: 5px;
  width: 98%;
  max-height: 300px;
  padding: 5px;
  margin: 2px;
  
  /*box-shadow: 2px 2px 20px rgba(206, 206, 206, 0.6);*/

  border-bottom: 1.5px solid #5c593b;
  background-color: #231f1a;
  color: #fdf5df;
}

.Text_input_standar {
  resize: none; /* Disable resizing */
  border: none; /* Remove border */
  outline: none; /* Remove outline */
  /* Additional styling as needed */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  border-radius: 5px;
  width: 98%;
  max-height: 300px;
  height: 180px;
  padding: 5px;
  margin: 2px;
  
  /*box-shadow: 2px 2px 20px rgba(206, 206, 206, 0.6);*/

  border-bottom: 1.5px solid #505c3b;
  background-color: #231f1a;
  color: #fdf5df;
}





/* Container de la table avec effet glassmorphisme */
.table-container {
  position: relative;
  background: var(--bg-tertiary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 5px;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  border: 1px solid var(--border-light);
}

/* Table principale */
table {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 13px;
  border-radius: var(--radius-sm);
  width: 100%;
  border: none;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 3px;
  border-collapse: collapse;
  overflow: hidden;
  background: transparent;
}

/* Lignes normales avec alternance */
tr {
  font-size: 13px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

/* Alternance maintenue sur mobile */
tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

tr:nth-child(odd) {
  background: transparent;
  color: var(--text-primary);
}

/* Style spécifique pour trImportant - écrase l'alternance */
tr.trImportant {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.15), rgba(13, 148, 136, 0.05)) !important;
  position: relative;
}

tr.trImportant td {
  font-weight: 500;
}

tr.trImportant::after {
  content: '★';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  font-size: 10px;
  opacity: 0.8;
  z-index: 1;
}

tr.trImportant td:first-child {
  padding-left: 28px;
}

/* Effet de ligne animée au survol - CORRIGÉ */
tr::before {
  content: none !important; /* Désactive complètement */
  display: none !important;
}

/* Effet hover via background directement */
tr:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--accent-primary);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

/* En-têtes professionnels */
th {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 14px 12px;
  color:var(--indic-color);
  background-color: var(--indic-background);
  border: 1px solid var(--indic-border);
  position: relative;
  border-bottom: 2px solid var(--border-light);
}

/* Effet de glow sur les en-têtes - CORRIGÉ */
th::after {
  content: none !important; /* Désactive complètement */
  display: none !important;
}

/* Nouvel effet hover pour th sans pseudo-élément */
th:hover {
  border-bottom-color: var(--accent-primary);
  transition: border-bottom-color 0.3s ease;
}

/* Cellules avec polices pro */
td {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 12px 12px;
  border: none;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
  line-height: 1.5;
}

/* Animation d'entrée des lignes */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

tr {
  animation: slideInFromLeft 0.25s ease backwards;
}

/* Délais d'animation progressifs */
tr:nth-child(1) { animation-delay: 0.02s; }
tr:nth-child(2) { animation-delay: 0.04s; }
tr:nth-child(3) { animation-delay: 0.06s; }
tr:nth-child(4) { animation-delay: 0.08s; }
tr:nth-child(5) { animation-delay: 0.10s; }
tr:nth-child(6) { animation-delay: 0.12s; }
tr:nth-child(7) { animation-delay: 0.14s; }
tr:nth-child(8) { animation-delay: 0.16s; }
tr:nth-child(9) { animation-delay: 0.18s; }
tr:nth-child(10) { animation-delay: 0.20s; }

/* Padding cohérent pour cellules */
td:first-child,
th:first-child {
  padding-left: 16px;
}

td:last-child,
th:last-child {
  padding-right: 16px;
}

/* Effet de survol sur les cellules */
td:hover {
  color: var(--indic-color);
  text-shadow: 0 0 4px rgba(212, 187, 45, 0.2);
}

/* Scrollbar moderne */
.table-container::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

/* Badges professionnels */
.table-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent-primary);
  border: 1px solid rgba(45, 212, 191, 0.3);
  background: rgba(13, 148, 136, 0.1);
  transition: all 0.2s ease;
}

.table-badge:hover {
  background: rgba(13, 148, 136, 0.2);
  transform: scale(1.02);
}

/* Animation de pulsation pour les lignes importantes */
@keyframes gentlePulse {
  0%, 100% {
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.15), rgba(13, 148, 136, 0.05));
  }
  50% {
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.22), rgba(13, 148, 136, 0.12));
  }
}

tr.trImportant {
  animation: gentlePulse 3s ease-in-out infinite !important;
}

/* Responsive */
@media screen and (max-width: 768px) {
  table {
    font-size: 11px;
  }
  
  th, td {
    padding: 8px 8px;
  }
  
  th {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  
  td {
    font-size: 11px;
  }
  
  .table-badge {
    padding: 2px 6px;
    font-size: 9px;
  }
  
  /* Alternance maintenue sur mobile */
  tr:nth-child(even) {
    background: rgba(18, 12, 7, 0.574);
    color: var(--indic-clear);
  }
  
  tr:nth-child(odd) {
    background: transparent;
    color: var(--text-primary);
  }
}

/* Version compacte */
.table-compact td,
.table-compact th {
  padding: 8px 10px;
}

.table-compact td {
  font-size: 12px;
}

/* Lignes sélectionnées */
tr.selected {
  color:var(--indic-color);
  background-color: var(--indic-background);
  border: 1px solid var(--indic-border);
  
}
tr.hover {
  color:var(--indic-color);
  background-color: var(--indic-background);
  border: 1px solid var(--indic-border);
  
}

tr.selected td:first-child {
  padding-left: 13px;
}

/* Texte professionnel pour les nombres */
td.number-cell {
  font-family: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', monospace;
  font-weight: 500;
  text-align: right;
}

/* Correction supplémentaire pour éviter tout pseudo-élément indésirable */
table th::before,
table th::after,
table td::before,
table td::after,
table tr::before,
table tr::after {
  content: none !important;
  display: none !important;
}

.clearColor{
  color: #ffe173;
}

.importantColor{
  color: #82796d;

}

.important{
  font-size: 22px;
  font-weight: bold;
}

.max_important{
  font-size: 22px;
  font-weight: 500;
}

.Designelem{
  border-radius: 10px;
  padding: 10px;
  margin: 5px;
  border: none;
  background: rgba(0, 0, 0, 0.292);
  color: #989587;
}

.cardDesign{
  height: 170px;
  border-radius: 20px;
  padding: 10px;
  margin: 5px;
  border: none;
  background: rgba(0, 0, 0, 0.249);
  color: #989587;
  
}
.cardDesignVerso{
  height: 170px;
  border-radius: 20px;
  padding: 10px;
  margin: 5px;
  border: none;
  background: rgba(0, 0, 0, 0.274);
  color: #d4d4d4;
  
}

.body {
  font-family: Arial, sans-serif;
  background-color: #18191a;
  margin: auto;
  height: 100vh; /* Make sure the body fills the entire viewport height */
  display: flex; /* Use flexbox for easy centering */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  overflow-x: hidden;
  overflow-y: hidden;
  text-align: center;
  color: #ffefc8;
}

.container {
  width: 500px;
  max-width: 100%;
  margin: 5px;
  padding: 10px;
  background-color: #1d1d1d5f;
  border-radius: 5px;
  
}

.box_select_time {
  width: 300px;
  margin: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.select_time {
  width: 31%;
  margin: 5px;
 
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  
}

.input-group {
  position: relative;
  margin-bottom: 8px;
}



.box_Count {
  position: absolute;
  font-size: 16px;
  padding: 1px;
  width: 20px;
  height: 20px;
  background-color: #fe5f43;
  border-radius: 100%;
  font-size: 11px;
  font-weight: bold;
  z-index: 1111;
  box-shadow: 0 1px 3px rgba(43, 19, 19, 0.8);
  top: 5px;
  left:5px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse 2s infinite;
  
}

/* Définition de l'animation du cœur */
@keyframes heartbeat {
  /* Premier battement */
  0%, 10% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.2);
  }
  18%, 24% {
    transform: scale(1);
  }
  28% {
    transform: scale(1.2);
  }
  32%, 40% {
    transform: scale(1);
  }
  
  /* Pause de 3 secondes (de 40% à 100%) */
  100% {
    transform: scale(1);
  }
}

/* Définition de l'animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}



label {
  position: absolute;
  top: 60%;
  left: 10px;
  transform: translateY(-60%);
  color: #74b7ab;
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: 10px;
}

input:focus + label,
input:valid + label {
  top: 0;
  font-size: 10px;
  color: #f9fecc;
  background-color: #171611;
  padding: 2px;
  border-radius: 5px;
}

.idicator0 {
  top: 0;
  font-size: 13px;
  color:var(--indic-red);
  background-color: var(--indic-background-red);
  border: 1px solid var(--indic-border-red);
  padding: 4px 8px;
  border-radius: 20px;
  transform: translateY(0%);
  margin-left: 1px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  font-weight: 600;
}

.idicator1 {
  top: 0;
  font-size: 13px;
  color:var(--indic-green);
  background-color: var(--indic-background-green);
  border: 1px solid var(--indic-border-green);
  padding: 4px 8px;
  border-radius: 20px;
  transform: translateY(0%);
  margin-left: 1px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  font-weight: 600;
}

.idicator {
  top: 0;
  font-size: 13px;
  color:var(--indic-color);
  background-color: var(--indic-background);
  border: 1px solid var(--indic-border);
  padding: 4px 8px;
  border-radius: 20px;
  transform: translateY(0%);
  margin-left: 1px;
  margin-right: 3px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  font-weight: 600;
}

/* Container principal pour les radios */
.mainRadioBox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 98%;
  gap: 15px;
 
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.radioBox {
  margin: 5px;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px;
  border-radius: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  min-width: 100px;
}

.radioBox:hover {
  background: rgba(255, 200, 50, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 200, 50, 0.3);
}

/* Style pour les labels - EN BAS */
.radioBox span,
.radioBox .radioLabel {
  cursor: pointer;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.2s ease;
  text-align: center;
  margin-top: 5px;
}

.radioBox:hover span,
.radioBox:hover .radioLabel {
  color: #ffd966;
}

/* Style pour les inputs radio - EN HAUT - FORME RONDE */
.radioBox input[type="radio"],
.radioInput {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50% !important;
  margin: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  display: block;
  flex-shrink: 0;
}

.radioBox input[type="radio"]:checked,
.radioInput:checked {
  border-color: #ffd966;
  background: #795c06;
  box-shadow: 0 0 8px rgba(255, 217, 102, 0.5);
}

input[type="radio"]{
  border-color: #2c2c2c;
  background: #1a1a1a;
  box-shadow: 0 0 8px rgba(82, 82, 82, 0.5);
  width: 30px;
  height: 30px;
}

input[type="radio"]:checked{
  border-color: #ffd966;
  background: #795c06;
  box-shadow: 0 0 8px rgba(255, 217, 102, 0.5);
}

.radioBox input[type="radio"]:checked::before,
.radioInput:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 50%;
}

/* Style pour le label radio */
.radioLabel {
  font-size: 13px;
  margin-right: 2px;
  position: relative;
  vertical-align: middle;
  color: #ffffff;
}

/* Version compacte */
.radioBox-compact {
  padding: 12px;
  min-width: 80px;
}

.radioBox-compact .radioLabel,
.radioBox-compact span {
  font-size: 11px;
}

/* Version large */
.radioBox-large {
  padding: 18px;
  min-width: 120px;
}

.radioBox-large .radioLabel,
.radioBox-large span {
  font-size: 14px;
}

.radioBox-large input[type="radio"],
.radioBox-large .radioInput {
  width: 22px;
  height: 22px;
}

/* ========== CHECKBOX AVEC LABEL EN BAS - FORMES CARRÉES ========== */
.mainCheckBox {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  align-items: stretch;
  align-content: start;
  justify-content: stretch;
  box-sizing: border-box;
  width: 98%;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mainCheckBox.input-group {
  position: relative;
  text-align: left;
  justify-content: stretch;
  align-items: stretch;
}

.checkBox {
  margin: 5px;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  min-width: 100px;
}

/* Keep choices in the grid; generic floating-label and input-group styles
   must not position each option over its neighbors or enlarge its checkbox. */
.mainCheckBox .checkBox {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 10px;
  gap: 9px;
  pointer-events: auto;
}

.checkBox:hover {
  background: rgba(255, 200, 50, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 200, 50, 0.3);
}

/* Checkbox personnalisé - TOUJOURS CARRÉ */
.checkInput {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px !important;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mainCheckBox .checkInput {
  box-sizing: border-box;
  display: block;
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  transform: none;
}

.checkInput:checked {
  background: #ffd966;
  border-color: #806104;
  box-shadow: 0 0 8px rgba(255, 217, 102, 0.5);
}

.filebank-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 1180px);
  margin: 0 auto 18px;
}

.filebank-search {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  color: #f3f5fa;
  background: #121722;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  outline: none;
}

.filebank-search:focus {
  border-color: #d8a62f;
  box-shadow: 0 0 0 3px rgba(216,166,47,.16);
}

.filebank-count, .filebank-card-footer {
  color: #9ba8ba;
  font-size: 13px;
}

.filebank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 16px;
  width: min(100%, 1180px);
  margin: 0 auto 28px;
  align-items: stretch;
}

.filebank-card {
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  min-width: 0;
  min-height:280px;
  height:100%;
  padding: 16px;
  color: #edf1f7;
  background: linear-gradient(145deg, #171d29, #111722);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.filebank-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216,166,47,.42);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

.filebank-card-heading { display:flex; align-items:center; gap:12px; min-width:0; }
.filebank-folder-icon { display:grid; place-items:center; width:42px; height:42px; flex:none; color:#e4b746; background:rgba(216,166,47,.13); border-radius:12px; font-size:20px; }
.filebank-card-title { min-width:0; }
.filebank-card-title h3 { margin:0 0 4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:16px; }
.filebank-card-title span, .filebank-description, .filebank-loading, .filebank-empty-files { color:#9ba8ba; font-size:12px; }
.filebank-description { min-height:1.3em; margin:12px 0; overflow-wrap:anywhere; }
.filebank-files { margin-top:14px; }
.filebank-files > .filesContainer { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),1fr)); align-items:start; gap:12px; width:100%; }
.filebank-files .file-preview-card { min-width:0; overflow:hidden; color:#e9edf4; background:linear-gradient(160deg,#101722,#0b1018); border:1px solid rgba(255,255,255,.09); border-radius:13px; transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.filebank-files .file-preview-card:hover { transform:translateY(-2px); border-color:rgba(225,180,68,.45); box-shadow:0 8px 20px rgba(0,0,0,.24); }
.filebank-files .file-preview-name { padding:9px 9px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:600; }
.filebank-files .file-preview-visual { display:block; color:inherit; text-decoration:none; }
.filebank-files .file-preview-media { display:block; width:100%; height:112px; margin-top:8px; object-fit:cover; background:#080b10; }
.filebank-files .file-preview-audio { display:block; width:calc(100% - 16px); margin:12px 8px; }
.filebank-files .file-preview-pdf { display:block; width:100%; height:112px; margin-top:8px; border:0; background:#fff; }
.filebank-files .file-preview-text { max-height:112px; margin:8px; overflow:hidden; color:#cad3df; white-space:pre-wrap; overflow-wrap:anywhere; font-size:10px; }
.filebank-files .file-preview-icon { display:grid; place-items:center; height:112px; margin-top:8px; color:#d8a62f; background:linear-gradient(145deg,#171e2a,#0b0f16); font-size:34px; }
.filebank-files .file-preview-meta { padding:7px 9px 2px; color:#94a1b3; font-size:10px; }
.filebank-files .file-preview-actions { display:flex; justify-content:space-between; gap:8px; padding:6px 9px 9px; }
.filebank-files .file-preview-open, .filebank-files .file-preview-download { display:inline-flex; align-items:center; min-width:0; color:#e5b849; text-decoration:none; font-size:11px; }
.filebank-files .file-preview-download { color:#b9c5d4; }
.fileWrapperIMG > .file-preview-media { max-width:100%; max-height:220px; }
.filebank-preview-retry { width:100%; padding:12px; color:#f3d27d; background:#121722; border:1px solid rgba(216,166,47,.3); border-radius:10px; cursor:pointer; }
.file-preview-open:hover { color:#ffe08a; }
.filebank-card-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; margin-top:auto; padding-top:14px; border-top:1px solid rgba(255,255,255,.08); }
.filebank-card-details { display:flex; flex-wrap:wrap; align-items:center; gap:5px 12px; min-width:0; color:#9ba8ba; font-size:11px; }
.filebank-card-details span { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.filebank-card-footer .filebank-manage { display:inline-flex; align-items:center; justify-content:center; gap:6px; box-sizing:border-box; flex:none; width:auto; min-width:88px; max-width:100%; height:36px; min-height:36px; margin:0; padding:0 12px; overflow:hidden; color:#f4d47d; background:rgba(216,166,47,.12); border:1px solid rgba(216,166,47,.25); border-radius:10px; box-shadow:none; backdrop-filter:none; font:600 12px/1 'Inter','Segoe UI',sans-serif; letter-spacing:.2px; text-transform:none; white-space:nowrap; }
.filebank-card-footer .filebank-manage::after { content:none; }
.filebank-card-footer .filebank-manage:hover { color:#fff0bd; background:rgba(216,166,47,.22); border-color:rgba(216,166,47,.42); box-shadow:0 5px 14px rgba(0,0,0,.2); transform:translateY(-1px); }
.filebank-empty, .filebank-preview-error { grid-column:1/-1; padding:24px; color:#9ba8ba; background:#121722; border-radius:12px; text-align:center; }
.filebank-empty-files { padding:18px 8px; text-align:center; background:#0d1118; border-radius:12px; }
.filebank-loading { padding:18px 8px; text-align:center; }

@media (max-width: 600px) {
  .filebank-toolbar { align-items:stretch; flex-direction:column; }
  .filebank-count { padding:0 4px; }
  .filebank-card { padding:13px; }
  .filebank-card-footer { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .filebank-card-footer .filebank-manage { min-width:76px; padding:0 9px; }
}

.checkInput:checked::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: bold;
}

/* Label EN BAS pour checkbox */
.checkLabel {
  position: relative;
  vertical-align: middle;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: center;
  margin-top: 5px;
}

.mainCheckBox .checkLabel {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  display: block;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  pointer-events: auto;
  text-align: left;
}

.checkBox:hover .checkLabel {
  color: #ffd966;
}

/* Groupe de checkboxes version horizontale */
.checkGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 16px;
}

.checkGroup .checkBox {
  width: 30%;
  justify-content: flex-start;
  flex-direction: row;
  gap: 15px;
}

.checkGroup .checkLabel {
  margin-top: 0;
}

/* ========== RESPONSIVE - RANGÉES DE 3 SUR MOBILE ========== */
@media screen and (max-width: 900px) {
  .mainRadioBox,
  .mainCheckBox {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .radioBox,
  .checkBox {
    margin: 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 8px;
  }
  .radioBox span,
  .radioBox .radioLabel,
  .checkLabel {
    font-size: 11px;
  }
  .radioBox input[type="radio"],
  .radioInput,
  .checkInput {
    width: 18px;
    height: 18px;
  }
}

@media screen and (max-width: 600px) {
  .mainCheckBox {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 6px;
    padding: 8px;
  }
}

@media screen and (max-width: 480px) {
  .mainRadioBox,
  .mainCheckBox {
    gap: 8px;
    padding: 10px;
  }
  
  .radioBox,
  .checkBox {
    padding: 10px 6px;
  }
  
  .radioBox span,
  .radioBox .radioLabel,
  .checkLabel {
    font-size: 10px;
  }
  
  .radioBox input[type="radio"],
  .radioInput,
  .checkInput {
    width: 16px;
    height: 16px;
  }
}

/* Pour les écrans très petits - garder 3 colonnes */
@media screen and (max-width: 380px) {
  .mainRadioBox,
  .mainCheckBox {
    gap: 6px;
  }
  
  .radioBox span,
  .radioBox .radioLabel,
  .checkLabel {
    font-size: 9px;
  }
  
  .radioBox,
  .checkBox {
    padding: 8px 4px;
  }
}

/* Version verticale pour usage spécifique */
.mainRadioBox-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.mainRadioBox-vertical .radioBox {
  width: 100%;
  justify-content: flex-start;
  flex-direction: row;
}

.mainRadioBox-vertical .radioBox span,
.mainRadioBox-vertical .radioBox .radioLabel {
  margin-top: 0;
  margin-left: 10px;
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.radioBox, .checkBox {
  animation: fadeInUp 0.2s ease backwards;
}

.radioBox:nth-child(1), .checkBox:nth-child(1) { animation-delay: 0.03s; }
.radioBox:nth-child(2), .checkBox:nth-child(2) { animation-delay: 0.06s; }
.radioBox:nth-child(3), .checkBox:nth-child(3) { animation-delay: 0.09s; }
.radioBox:nth-child(4), .checkBox:nth-child(4) { animation-delay: 0.12s; }
.radioBox:nth-child(5), .checkBox:nth-child(5) { animation-delay: 0.15s; }
.radioBox:nth-child(6), .checkBox:nth-child(6) { animation-delay: 0.18s; }

/* Classes supplémentaires pour compatibilité */
.radioInput {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50% !important;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.radioInput:checked {
  border-color: #ffd966;
  background: #6b5207;
  box-shadow: 0 0 8px rgba(255, 217, 102, 0.5);
}

.radioInput:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 50%;
}

.radioLabel {
  font-size: 13px;
  margin-right: 2px;
  position: relative;
  vertical-align: middle;
  color: #ffffff;
}

/* Force les radios à être rondes */
input[type="radio"],
.radioInput {
  border-radius: 50% !important;
}

/* Force les checkboxes à être carrées */
input[type="checkbox"],
.checkInput {
  border-radius: 5px !important;
}

.total_down{
  margin:5px;
  width: 100%;
  max-width: 16cm;
  background:rgba(8, 7, 5, 0.68);
  padding:3px;
  border-radius:10px;
  position: relative;
  float: right;
  margin-bottom: 40px;
  
}

.infos_line_up{
  margin-top:80px;
  width: 100%;
  background:rgba(9, 11, 10, 0.629);
  padding:3px;
  border-radius:10px;
  text-align: left;
  align-items:start; 
  justify-items:left;
  
}

.amount_total_down_title{
  font-size: 16px;
  font-weight: 500;
  color: #82796d;
  text-align: left;

  align-items:start; 
  justify-items:left;
  
}
.amount_total_down{
  font-size: 25px;
  font-weight: 500;
  color: #ffe173;
  text-align: right;
  
  align-items:end; 
  justify-items:right;
  
}


.rangeMiddle{
  display:inline-block;
  position: relative;
  vertical-align:middle;
  cursor: pointer;
}

.rangeTop{
  display:inline-block;
  position: relative;
  vertical-align:top;
  cursor: pointer;
}

.greyMini{
  color: #888;
  font-size: 10px;
  cursor: pointer;
}

.greyName{
  color: #fbecbb;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.imgName{
  color: #fbecbb;
  font-size: 30px;
  font-weight: 500;
  cursor: pointer;
}

.labelEtiquette {
  position: absolute;
  top: 60%;
  left: 10px;
  transform: translateY(-60%);
  color: #ccf3ec;
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: 13px;
}

span{
  cursor: pointer;
  padding: 3px;
  margin: 2px;
  transition: all 0.5s;
}

span:hover{
  color: #f7ffab;
}

/* Style de base pour tous les boutons */
button,
.spanbutton,
.btShort {
  position: relative;
  font-family: 'Inter', 'Segoe UI', 'Roboto', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Effet de brillance au survol */
button::after,
.spanbutton::after,
.btShort::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(25deg);
  transition: all 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

button:hover::after,
.spanbutton:hover::after,
.btShort:hover::after {
  opacity: 1;
  transform: rotate(25deg) translateX(50%);
}

/* ========== SPAN BUTTON ULTRA MODERNE ========== */
.spanbutton {
  width: 98%;
  height: 52px;
  padding: 0 24px;
  background: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
  color: #fff1c6;
  border-radius: 16px;
  margin: 8px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 217, 102, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: none;
}

.spanbutton:hover {
  background: linear-gradient(135deg, #142b2b 0%, #060e0f 100%);
  color: #c2fcfa;
  transform: translateY(-3px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 217, 102, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.spanbutton:active {
  transform: translateY(2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 217, 102, 0.2);
}

/* ========== BUTTON STANDARD AVEC OMBRE PROFONDE ========== */

button {
  width: 98%;
  height: 50px;
  background: linear-gradient(135deg, #0c1a1a 0%, #060e0f 100%);
  color: #e3fbfa;
  border-radius: 14px;
  margin: 10px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(234, 255, 166, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
  background: linear-gradient(135deg, #142b2b 0%, #060e0f 100%);
  color: #c2fcfa;
  transform: translateY(-3px);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(166, 251, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(166, 255, 249, 0.2);
}

/* ========== SHORT BUTTON MODERNE ========== */
.btShort {
  width: auto;
  min-width: 130px;
  height: 46px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0c1a1a 0%, #060e0f 100%);
  color: #e3fbfa;
  border-radius: 12px;
  margin: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(234, 255, 166, 0.15);
  white-space: nowrap;
}

.btShort:hover {
  background: linear-gradient(135deg, #142b2b 0%, #060e0f 100%);
  color: #c2fcfa;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(234, 255, 166, 0.3);
}

.btShort:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* ========== EFFET GLOW MODERNE ========== */
.glow-button {
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 217, 102, 0.2), 0 0 0 0 rgba(255, 217, 102, 0);
  }
  50% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 217, 102, 0.4), 0 0 20px 5px rgba(255, 217, 102, 0.3);
  }
}

/* ========== VARIANTES MODERNES ========== */

/* Bouton primaire (action principale) avec glow jaune */
.btn-primary {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: #1a1a1a;
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3), 0 0 0 1px rgba(255, 193, 7, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd54f 0%, #ffc107 100%);
  color: #000000;
  box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4), 0 0 0 1px rgba(255, 193, 7, 0.6);
  transform: translateY(-3px);
}

/* Bouton secondaire */
.btn-secondary {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Bouton danger */
.btn-danger {
  background: linear-gradient(135deg, #8b0000 0%, #5c0000 100%);
  box-shadow: 0 8px 18px rgba(139, 0, 0, 0.3), 0 0 0 1px rgba(255, 0, 0, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #a00000 0%, #8b0000 100%);
  box-shadow: 0 12px 24px rgba(139, 0, 0, 0.4), 0 0 0 1px rgba(255, 0, 0, 0.3);
}

/* Bouton success */
.btn-success {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  box-shadow: 0 8px 18px rgba(46, 125, 50, 0.3), 0 0 0 1px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
  box-shadow: 0 12px 24px rgba(46, 125, 50, 0.4), 0 0 0 1px rgba(76, 175, 80, 0.4);
}

/* Bouton outline moderne */
.btn-outline {
  background: transparent;
  box-shadow: 0 0 0 1.5px #ffd966, 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #ffd966;
}

.btn-outline:hover {
  background: rgba(255, 217, 102, 0.1);
  box-shadow: 0 0 0 2px #ffea9e, 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Bouton avec icône */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-icon:hover svg {
  transform: scale(1.1);
}

/* Bouton 3D */
.btn-3d {
  box-shadow: 0 8px 0 #0a0a0a, 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.btn-3d:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #0a0a0a, 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Bouton avec effet de verre */
.btn-glass {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Bouton avec ombre interne */
.btn-inset {
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-inset:active {
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Groupe de boutons moderne */
.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px;
}

.button-group .btShort,
.button-group button {
  flex: 1;
  min-width: 120px;
}

/* État désactivé */
button:disabled,
.spanbutton:disabled,
.btShort:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.2);
}

/* Focus visible moderne */
button:focus-visible,
.spanbutton:focus-visible,
.btShort:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 217, 102, 0.5), 0 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Animation de chargement */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  top: 50%;
  left: 50%;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid #ffd966;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 5px rgba(255, 217, 102, 0.5);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  button,
  .spanbutton {
    height: 46px;
    font-size: 13px;
  }
  
  .btShort {
    min-width: 100px;
    height: 42px;
    font-size: 12px;
    padding: 0 20px;
  }
  
  .button-group {
    gap: 10px;
  }
}

@media screen and (max-width: 480px) {
  .button-group {
    flex-direction: column;
    width: 100%;
  }
  
  .button-group .btShort,
  .button-group button {
    width: 100%;
  }
  
  .btShort {
    width: calc(100% - 12px);
    white-space: normal;
  }
}

/* Version large écran */
@media screen and (min-width: 1200px) {
  button,
  .spanbutton {
    height: 54px;
    font-size: 15px;
  }
  
  .btShort {
    height: 48px;
    font-size: 14px;
    padding: 0 32px;
  }
}



/*chat*/


.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: sticky;
  z-index: 1000;
}

.header h1 {
  font-size: 24px;
  color: #333;
}

.menu {
  position: relative;
}

#menu-options {
  position: absolute;
  top: 30px;
  right: -50px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  display: none;
}

#menu-options li {
  list-style: none;
  padding: 5px 0;
  cursor: pointer;
}

.chat-container {
  width: 100%;
  max-width: 750px;
  margin: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  height: 97vh; /* Utilisation de 80% de la hauteur de la fenêtre */
}

.chat-box {
  height: 90%; /* Utilisation de 70% de la hauteur du chat-container */
  overflow-y: auto;
  border-bottom: 1px solid #ccc;
}

.message {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  border: 0px solid #ffffff;
  color:#d63c3c;
}
#result {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  border: 0px solid #ffffff;
  color:#d63c3c;
}
#message-container{
  width: 100%;
  max-width: 750px;
  position: sticky;
  bottom: 5px;
  z-index: 1000;
  
  border-radius: 30px;
  background-color: #fbfbfc;
  /*border: 1px solid #ccc;*/
  box-shadow: #cfcfcf 1px 1px 5px;
}
#message-input {
  width: calc(100% - 90px);
  padding: 15px;
  border: 0px solid #ccc;
  
  vertical-align:middle;
  max-height: 100px;
  border-radius: 30px;
  background-color: #fbfbfc;
  /*border: 1px solid #ccc;
  box-shadow: #cfcfcf 1px 1px 5px;*/
  
}

.buttonChat {
  
  padding: 5px;
 
  cursor: pointer;
  vertical-align: middle;
  
  display: inline-block;
  
}


.imgLogoMini{
  vertical-align: middle;
  width: 15px;
  margin: 2px;
}
.imgLogoMiniName{
  vertical-align: middle;
  margin: 2px;
  font-size: small;
}
.imgLogo{
  vertical-align: middle;
  width: 30px;
  margin: 5px;
}

.imgLogoLarge{
  vertical-align: middle;
  width: 70px;
  margin: 5px;
}

.imgLogoVLarge{
  vertical-align: middle;
  width: 100px;
  margin: 5px;
}



#imagePreviewContainer {
  display: flex;
  flex-wrap: wrap;
}

.previewImage {
  width: 100px;
  height: 100px;
  margin: 5px;
}

.command_card_box {
    position: fixed; 
    top: 0px; 
    right: 40px;
    display: flex; 
    gap: 10px; 
    z-index: 1;
    color: #030303;
    background-color:var(--prod-info-bg);
      
    border-radius: 5px;
    padding: 5px;
}

.addFile {
  width: 45%;
  height: 90px;
  padding: 10px;
  background: #000000;
  background-size: 150px 90px;
  background-repeat: no-repeat;

  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-block; /* Use flexbox for easy centering */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  vertical-align: middle;
}

.addFile:hover {
  background-color: #3f3f3f;
}

.addFilePort {
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex; /* Use flexbox for easy centering */
  justify-content:space-between; /* Center content horizontally */
  align-items: center; /* Center content vertically */
}

.crBT{
  width: 100%;
  cursor: pointer;
  display: flex; /* Use flexbox for easy centering */
  justify-content: space-between; /* Center content horizontally */
  align-items: center; /* Center content vertically */

}

.chat-containerL {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  height: 97vh; /* Utilisation de 80% de la hauteur de la fenêtre */
}

#message-containerL{
  width: 100%;
  max-width: 1000px;
  position: sticky;
  bottom: 5px;
  z-index: 1000;
  
  border-radius: 30px;
  background-color: #fbfbfc;
  /*border: 1px solid #ccc;*/
  box-shadow: #cfcfcf 1px 1px 5px;
}
#message-inputL {
  width: calc(100% - 90px);
  padding: 15px;
  border: 0px solid #ccc;
  
  vertical-align:middle;
  max-height: 100px;
  border-radius: 30px;
  background-color: #fbfbfc;
  /*border: 1px solid #ccc;
  box-shadow: #cfcfcf 1px 1px 5px;*/
  
}

.buttonChatL {
  
  padding: 5px;
 
  cursor: pointer;
  vertical-align: middle;
  
  display: inline-block;
  
}
.eLEMENTPort {
  width: 98%;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex; /* Use flexbox for easy centering */
  justify-content:space-between; /* Center content horizontally */
  align-items: center; /* Center content vertically */
}

.eLEMENT {
  width: 45%;
  height: 90px;
  margin: 10px;
  padding: 10px;
  background: #f1f1f1;
  background-size: 150px 90px;
  background-repeat: no-repeat;

  color: #292929;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-block; /* Use flexbox for easy centering */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  vertical-align: middle;
  border-radius: 5px;
  box-shadow: #cfcfcf 1px 1px 5px;
}

.addFile:hover {
  background-color: #3f3f3f;
}


.paiementMean {
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex; /* Use flexbox for easy centering */
  justify-content:space-between; /* Center content horizontally */
  align-items: center; /* Center content vertically */
}
.HeLEMENTPort {
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex; /* Use flexbox for easy centering */
  justify-content:space-between; /* Center content horizontally */
  align-items: center; /* Center content vertically */
}
.HeLEMENT {
  width: 35%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(107, 73, 30, 0.9), rgba(1, 9, 15, 0.9));
  
  color: #eeecec;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-block; /* Use flexbox for easy centering */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  vertical-align: middle;
  border-radius: 0px;
  text-align: center;
  margin-bottom: 15px;
  border-radius:10px;
  /*box-shadow: #cfcfcf 1px 1px 5px;*/
}

.HeLEMENT:hover {
  background-color: #000000;
  color: #fff;
  box-shadow: 0 0 25px 3px rgba(155, 195, 255, 0.8);
  border-radius: 5px;
  border-bottom: 1px solid #93e2e7;
  border-left: 1px solid #93e2e7;
}
.HeLEMENT_active {
  background-color: #000000;
  color: #fff;
  box-shadow: 0 0 8px 3px rgba(164, 226, 255, 0.8);
  border-bottom: 1px solid #93e2e7;
  border-left: 1px solid #93e2e7;
  border-radius:5px;
}



#horaireBlock{
  text-align: center;
  color: #fff;
  padding: 10px;
}

#addWorkingState{
  font-size: x-large;
  background-color: #272727;
}

#welcomBox{
  text-align:center;
}


.myChat{
  width: fit-content;
  max-width:95%; 
  position:relative;
  margin-left:auto;
  margin-right:0;
  margin-top:10px;
  font-weight: 400;
  font-size: 15px;
}

.botChat{
  width: fit-content;
  max-width:95%; 
  position:relative;
  padding:1px;
  left:10px;
  margin-top:10px;
  font-size: 15px;
  /*font-weight: 400;*/
 
}
.messageElementTextBoxL{
  text-align: left;
  padding-left: 15px;

  box-shadow:3px 3px 6px #f1f1f1;
  width: fit-content;
  /*max-width:95%;*/
  
  position:relative;
  border-radius:20px 0px 20px 20px;
  background:#f5f1f7;
  color:#111111;
  padding:5px;
  margin-left:auto;
  margin-right:0;
  margin-top:0px;
  font-weight: 300;
}

.messageElementTextBoxR{
  text-align: left;
  padding-left: 15px;

  box-shadow:3px 3px 6px #f1f1f1;
  width: fit-content;
  max-width:95%; 
  position:relative;
  border-radius:0px 20px 20px 20px;
  background:#f5f5f5;
  color:#111111;
  padding:5px;
  left:10px;
  margin-top:0px;
  font-weight: 300;
}


/*body, html {
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
}*/

/*.chat-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}*/

.chat-bubble {
  width: 50px;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 25px;
  position: relative;
}

.typing-animation {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.dot1 {
  width: 6px;
  height: 6px;
  background-color: #3e9b00;
  border-radius: 100%;
  display: inline-block;
  margin-right: 2px;
  transition: all 0.4;
  animation: dot-animation1 1s infinite;

}

.dot2 {
  width: 7px;
  height: 7px;
  background-color: #b40000;
  border-radius: 100%;
  display: inline-block;
  margin-right: 2px;
  transition: all 0.4;
  animation: dot-animation2 1s infinite;
}

.dot3 {
  width: 8px;
  height: 8px;
  background-color: #ffe600;
  border-radius: 100%;
  display: inline-block;
  margin-right: 2px;
  transition: all 0.4;
  animation: dot-animation3 1s infinite;
}

@keyframes dot-animation1 {
  0%, 10% {
    transform: translateY(0);
    opacity: 1;
    width: 5px;
    height: 5px;
  }
  70%, 100% {
    transform: translateY(-10px);
    opacity: 0;
    width: 7px;
    height: 7px;
  }
}

@keyframes dot-animation2 {
  10%, 40% {
    transform: translateY(0);
    opacity: 1;
    width: 8px;
    height: 8px;
  }
  80%, 100% {
    transform: translateY(-10px);
    opacity: 0;
    width: 7px;
    height: 7px;
  }
}

@keyframes dot-animation3 {
  20%, 60% {
    transform: translateY(0);
    opacity: 1;
    width: 10px;
    height: 10px;
  }
  90%, 100% {
    transform: translateY(-10px);
    opacity: 0;
    width: 8px;
    height: 8px;
  }
}




.miniLogo{
  width:30px;
  height: auto;
  vertical-align:middle;
  display: inline-block;
  margin:10px;
}

.photoUserMini{
  width:40px;
  height: 40px;
  vertical-align:middle;
  display: inline-block;
  margin:5px;
  border-radius:100%;
}

/* ============================================================
   iMan Assistant — Chat overlay plein écran (ultra moderne)
   Placé AU-DESSUS de tout (z-index maximal)
   ============================================================ */

/* ---- Bouton flottant ---- */
.iman-chat-fab{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 24px var(--accent-glow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  z-index: 999999999;
}

.iman-chat-fab:hover{
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 34px rgba(0,0,0,0.6), 0 0 34px var(--accent-glow);
}

.iman-chat-fab:active{
  transform: translateY(0) scale(0.96);
}

.iman-chat-fab-pulse{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 70%);
  animation: imanChatPulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes imanChatPulse{
  0%{ transform: scale(0.8); opacity: 0.9; }
  100%{ transform: scale(1.8); opacity: 0; }
}

/* ---- Overlay plein écran (au-dessus de tout) ---- */
.iman-chat-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 3, 2, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.iman-chat-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* ---- Fenêtre principale ---- */
.iman-chat-window{
  width: min(900px, calc(100vw - 32px));
  height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(212, 159, 45, 0.14), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(16, 185, 162, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(18, 16, 12, 0.97), rgba(10, 9, 7, 0.98));
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.8), 0 0 60px rgba(148, 121, 13, 0.12);
  overflow: hidden;
  animation: imanChatIn 0.32s cubic-bezier(0.2, 0.9, 0.25, 1);
}

@keyframes imanChatIn{
  from{ opacity: 0; transform: translateY(26px) scale(0.96); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Barre de titre ---- */
.iman-chat-titlebar{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,0.03);
}

.iman-chat-avatar{
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--indic-clear);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 18px var(--accent-glow), inset 0 0 12px rgba(255,255,255,0.12);
}

.iman-chat-avatar-ring{
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1.5px solid rgba(212, 159, 45, 0.35);
  animation: imanChatRing 3s ease-in-out infinite;
  pointer-events: none;
}

.iman-chat-logo{
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.iman-chat-avatar .iman-chat-logo{
  width: 36px;
  height: 36px;
}

@keyframes imanChatRing{
  0%,100%{ opacity: 0.25; transform: scale(1); }
  50%{ opacity: 0.9; transform: scale(1.12); }
}

.iman-chat-identity{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.iman-chat-identity b{
  color: var(--text-primary);
  font-size: 17px;
  letter-spacing: 0.2px;
}

.iman-chat-status{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.iman-chat-status-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indic-green);
  box-shadow: 0 0 8px var(--indic-green);
  animation: imanChatBlink 1.8s ease-in-out infinite;
}

@keyframes imanChatBlink{
  0%,100%{ opacity: 1; }
  50%{ opacity: 0.45; }
}

.iman-chat-tools{
  display: flex;
  align-items: center;
  gap: 8px;
}

.iman-chat-tool{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

/* ---- Zone des messages ---- */
.iman-chat-messages{
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

.iman-chat-welcome{
  text-align: center;
  color: var(--text-secondary);
  margin: auto;
  padding: 20px;
}

.iman-chat-welcome-ic{
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-primary);
  background: var(--indic-background);
  border: 1px solid var(--indic-border);
  box-shadow: 0 0 26px var(--accent-glow);
}

.iman-chat-welcome b{
  color: var(--text-primary);
  font-size: 17px;
}

.iman-chat-welcome p{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.iman-chat-hints{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.iman-chat-hints span{
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  color: var(--indic-clear);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.iman-chat-hints span:hover{
  background: var(--indic-background);
  border-color: var(--border-active);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Bulles de messages ---- */
.iman-chat-row{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: imanChatMsgIn 0.25s ease;
}

@keyframes imanChatMsgIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.row-user{
  flex-direction: row-reverse;
}

.iman-chat-bubble-avatar{
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.row-user .iman-chat-bubble-avatar{
  background: linear-gradient(135deg, #1d9a8c, #125b62);
}

.iman-chat-bubble-wrap{
  max-width: min(72%, 640px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.iman-chat-bubble{
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
}

.bubble-assistant{
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  border: 1px solid var(--border-light);
  border-top-left-radius: 6px;
  backdrop-filter: blur(6px);
}

.bubble-user{
  color: #fff;
  background: linear-gradient(135deg, rgba(212, 159, 45, 0.95), rgba(148, 98, 13, 0.95));
  border-top-right-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.iman-chat-bubble-meta{
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-user .iman-chat-bubble-meta{
  justify-content: flex-end;
}

.iman-chat-bubble-speak{
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.iman-chat-bubble-speak:hover{
  color: var(--accent-primary);
}

/* ---- Indicateur de frappe ---- */
.iman-chat-typing{
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
}

.iman-chat-typing span{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: imanChatDot 1.1s ease-in-out infinite;
}

.iman-chat-typing span:nth-child(2){ animation-delay: 0.15s; }
.iman-chat-typing span:nth-child(3){ animation-delay: 0.3s; }

@keyframes imanChatDot{
  0%, 60%, 100%{ transform: translateY(0); opacity: 0.4; }
  30%{ transform: translateY(-5px); opacity: 1; }
}

.iman-chat-tool:hover{
  color: var(--text-primary);
  background: var(--indic-background);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.iman-chat-tool.active{
  color: var(--indic-green);
  border-color: var(--indic-border-green);
  background: var(--indic-background-green);
  box-shadow: 0 0 14px rgba(16, 185, 162, 0.25);
}

.iman-chat-close:hover{
  color: #fff;
  background: var(--indic-background-red);
  border-color: var(--indic-border-red);
}

.UsersMiniPhoto{
  width:40px;
  height: 40px;
  vertical-align:middle;
  display: inline-block;
  margin:5px;
  border-radius:100%;
}

.bigLogo{
  width:30px;
  height: auto;
  vertical-align:middle;
  display: inline-block;
  margin:3px;
}





.blockStructure{
  padding: 0px;
  height: calc(60%);
  width: 100%;
  overflow-y: auto;
  text-align: center;
  font-size: small;
  position: relative;
}

#detailCMD{
  font-size: 20px;
  font-weight:bold;
}
.tabTotal{
  position: absolute; 
  bottom: 0%;
  width:98%;
}
.tabTotalPrint{
  position: relative; 
  bottom: auto;
  width:98%;
}


.saisieDoc{
  background-size:100% 100%;
  background-position:0px 0px;
}
.saisieDocPrint{
  position:fixed; 
  top: 0;
  left: 0;
  width:100%;
  z-index: 10005;
  height:100%;
  padding:10px;
  padding-top:4.5cm;
  background-size:100% 100%;
  background-position:0px 0px;
}

.printedArea{
  position:relative; 
  top: 0;
  left: 0;
  width:100%;
  z-index: 10005;
  height:100%;
  padding:10px;
  background-size:100% auto;
  background-position:0px 0px;
  display:none;
}

.saisieArea{
  position:absolute; 
  width:60%;
  height:100%;
  z-index: 10005;
  padding:10px;
  background:linear-gradient(135deg, rgba(0, 0, 0, 0.99), rgba(57, 23, 0, 100), rgba(1, 3, 3, 0.99));
  display:none;
}

.margeEntete{
  display:none;
  height:4.5cm;
  position: relative;
}
.margeEntetePrint{
  display: block;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  height: 40vh;
  overflow-y: auto;

}

.containerCaisse {
  max-width: 100vw;
  padding: 0px;
  display: flex;
  position: sticky;
  height: 97%;
  overflow: hidden;
  text-align: center;
  font-size: small;
  color:rgb(255, 232, 209);
  /*box-shadow: #cfcfcf 1px 1px 5px;*/
  
}



.contentSMALL {
  flex-grow: 1;
  margin-left: 0px;
  width: 69%;
}

.sidebar h2 {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 5px;
}

.sidebar li a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
}

.sidebar li a:hover {
  background-color: #ddd;
}

.MenuElement {
  width: 100%;
  padding: 10px;
  background: #f1f1f1;
  background-size: 150px 90px;
  background-repeat: no-repeat;

  color: #292929;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  display: block; /* Use flexbox for easy centering */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  border-radius: 0px;
  text-align: left;
  /*box-shadow: #cfcfcf 1px 1px 5px;*/
}


/* The Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 20% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  max-width: 400px;
  text-align: center;
}

/* Modal Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.totalP{
  font-size: x-large;
  font-weight: 700;
}

.contentIcard {
  flex-grow: 1;
  margin-left: 20px;
  max-width: 100%;
  width: 900px;
  text-align:center;
  padding: 10px;
}

.enteteMenu{
  background-color: #333;
  color: #f7f4f4;
  padding: 5px;
  text-align: center;
  justify-content: space-between; 
  justify-items: center;
}

.enteteMenu span{
  display: inline-block;
}

.menuBox{
  display:flex;
  justify-content: space-between; 
  justify-items: center;
}
.product-box {
  display:inline-table;
  background-color: #1d1d1d;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  width: 15%;
  transition: transform 0.3s, box-shadow 0.3s;
  justify-content: space-between;
  cursor: pointer;
  margin: 5px;
}

.product-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-image {
  width: 100%;
  height: auto;
}

.product-name {
  font-size: 1.0em;
  margin: 10px 0;
  color: #dfdede;
}

.product-price {
  font-size: 1.6em;
  margin: 10px 0;
  color: #1ee99b;
}
.showDesign{
  width: 45%;
  height: auto;
  border-radius: 10px;
  box-shadow: #d6d6d6 2px 2px 10px;
}
/* Media query pour les écrans plus petits */
@media only screen and (max-width: 1100px) {
  .container {
    max-width: 90%;
    margin: 50px auto;
  }
  .product-box {
    display:inline-table;
    background-color: #1d1d1d;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    width: 20%;
    transition: transform 0.3s, box-shadow 0.3s;
    justify-content: space-between;
    cursor: pointer;
    margin: 5px;
  }
  .product-name {
    font-size: 1.0em;
    margin: 10px 0;
    color: #dfdede;
  }
  
  .product-price {
    font-size: 1.3em;
    margin: 10px 0;
    color: #1ee99b;
  }

  .showDesign{
    width: 65%;
    height: auto;
    border-radius: 10px;
    box-shadow: #d6d6d6 2px 2px 10px;
  }
}


/* Base styles for the select input */
.custom-select {
  display: block;
  width: 100%;
  /*max-width: 300px;*/
  padding: 10px 15px;
  font-size: 25px;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="none" stroke="currentColor" stroke-width=".75" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

/* Focus state */
.custom-select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Option styles */
.custom-select option {
  color: #495057;
  background-color: #fff;
}

/* Optional: style the container if needed */
.select-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

#ReadMoreScreen{
  background:linear-gradient(135deg, rgba(0, 0, 0, 0.99), rgba(57, 23, 0, 100), rgba(1, 3, 3, 0.99));
  
  width: 60%;
  height: 90vh;
  z-index: 10000;
  display: none;
  transition: all 0.5s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: #d6d6d6 2px 2px 10px;
  border-radius: 10px;
  overflow-y: auto;
  justify-content: center;
  padding: 10px;
  color:white;


}

#HistoryPrintDocScreen{
  background-color:rgba(255, 255, 255,0.95);
  
  width: 100%;
  height: 100vh;
  z-index: 10006;
  display: none;
  transition: all 0.5s;
  position: absolute;
  top: 0%;
  left: 0%;
  box-shadow: #d6d6d6 2px 2px 10px;
  border-radius: 10px;
  overflow-y: auto;
  justify-content: center;
  padding: 10px;
  background:#fff;

  
}

#total_docBox{
 display: flex;
 position: fixed;
 justify-content: center;
 align-items: center;
 z-index: 100;
 background: #000000 ;
 width: 100%;
 bottom: 0px;
 font-size: large;
}



#univ_resultBox{
 display: none;
 position: fixed;
 justify-content: center;
 align-items: center;
 z-index: 19999;
 background: #000000;
 width: 100%;
 bottom: 50px;
 font-size: small;
 border-radius: 10px;
 padding: 5px;
}

.TotalVal{
  font-size: larger;
  font-weight: 700;
  color:#fff0c4;
}


/* Version simple avec HTML/CSS uniquement */
.a4-modal {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    z-index: 999999;
    
}

.a4-modal:target {
    display: flex;
    justify-content: center;
    align-items: center;
}

.a4-modal .a4-content {
    background: white;
    width: 100%;
    
    height: 100%;
    overflow: auto;
    position: fixed;

    padding-left: auto;
    padding-right: auto;
    border: #000000 0px solid;
    
    /* Activer flexbox pour centrer les enfants */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alignement vertical en haut */
    align-items: center; /* Centrage horizontal TOUS les enfants */
}



/* Pour centrer un div enfant spécifiquement */
.a4-modal .a4-content #contentA4 {
    margin-left: auto;
    margin-right: auto;
}

.a4-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    text-decoration: none;
    color: #333;
    z-index: 1;
}

#command_print {
    position: fixed; top: 10px; 
    right: 20px;
    display: flex; 
    gap: 10px; 
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 5px;
}





.command_print {
    position: fixed;
    top: 125px; 
    right: 30px;
    display: flex; 
    gap: 10px; 
    z-index: 999999; /* Very high value to ensure it's on top */
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 5px;
    color: white;
    pointer-events: auto; /* Ensure clicks work if needed */
    isolation: isolate; /* Creates its own stacking context */
}

.btoption{
  text-decoration: none; 
  font-size: 12px; 
  transition: color 0.2s;
  float: right;
  color: white;
  margin: 1px;
}

.addBt{
  font-size: 16px; 
  padding: 5px;
  animation: heartbeat 4s infinite;
}

.addreplyBT{
  
  padding: 15px;
  animation: heartbeat 4s infinite;
}

.moduleName{
  font-size: 20px; 
  padding: 2px;
}

@media screen and (max-width: 230mm) {
    .a4-modal .a4-content {
        width: 95vw;
        min-height: calc(95vw * 1.414);
    }
}

@media print {
    .a4-modal {
        display: block !important;
        background: white !important;
        position: absolute !important;
    }
    
    .a4-modal #command_print {
        display: none !important;
    }
}

/* ============================================================
   iMan Assistant — Barre de saisie, micro, responsive
   ============================================================ */

/* ---- Barre de saisie ---- */
.iman-chat-inputbar{
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-light);
  background: rgba(255,255,255,0.03);
}

.iman-chat-mic{
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.iman-chat-mic:hover{
  color: var(--text-primary);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.iman-chat-mic.active{
  color: #fff;
  background: var(--indic-background-red);
  border-color: var(--indic-border-red);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.4);
  animation: imanChatMicPulse 1s ease-in-out infinite;
}

@keyframes imanChatMicPulse{
  0%,100%{ box-shadow: 0 0 6px rgba(244, 63, 94, 0.3); }
  50%{ box-shadow: 0 0 22px rgba(244, 63, 94, 0.7); }
}

.iman-chat-input{
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 130px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.iman-chat-input::placeholder{
  color: var(--text-muted);
}

.iman-chat-input:focus{
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(212, 159, 45, 0.18), 0 0 18px var(--accent-glow);
}

.iman-chat-send{
  flex-shrink: 0;
  width: 48px;
  height: 42px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 14px var(--accent-glow);
  transition: all var(--transition-fast);
}

.iman-chat-send:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 22px var(--accent-glow);
}

.iman-chat-send:active{
  transform: scale(0.94);
}

.iman-chat-send.has-text{
  animation: imanChatSendGlow 1.6s ease-in-out infinite;
}

@keyframes imanChatSendGlow{
  0%,100%{ box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 14px var(--accent-glow); }
  50%{ box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 26px var(--accent-glow); }
}

/* ---- Responsive ---- */
@media screen and (max-width: 720px) {
  .iman-chat-window{
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
  }

  .iman-chat-overlay{
    background: rgba(3, 3, 2, 0.9);
  }

  .iman-chat-bubble-wrap{
    max-width: 80%;
  }

  .iman-chat-fab{
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
    font-size: 21px;
  }

  .iman-chat-titlebar{
    padding: 10px 12px;
  }

  .iman-chat-messages{
    padding: 16px 12px;
  }
}

/* ============================================================
   iMan Assistant — Scène vocale immersive (par-dessus la fenêtre,
   sous la barre de titre : ne change rien d'autre)
   ============================================================ */
.iman-chat-window{ position: relative; }
.iman-chat-voice{
  position: absolute;
  inset: 0;
  top: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: radial-gradient(ellipse at 50% 40%, rgba(212,159,45,0.10), transparent 60%),
              rgba(5,4,3,0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 5;
}
.iman-chat-voice.show{
  opacity: 1;
  pointer-events: auto;
}
.iman-chat-voice-card{
  position: relative;
  width: min(420px, 92%);
  text-align: center;
  padding: 34px 22px 24px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, rgba(24,20,14,0.95), rgba(10,9,7,0.96));
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 44px rgba(212,159,45,0.14);
  overflow: hidden;
}
.iman-chat-voice-ring{
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(212,159,45,0.25), transparent 100%);
  animation: imanVoiceSpin 3.2s linear infinite;
  pointer-events: none;
}
@keyframes imanVoiceSpin{ to{ transform: rotate(360deg); } }
.iman-chat-voice-core{
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 0 8px rgba(212,159,45,0.12), 0 0 34px var(--accent-glow);
  animation: imanVoiceBreathe 1.6s ease-in-out infinite;
  z-index: 1;
}
@keyframes imanVoiceBreathe{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.07); }
}
.iman-chat-voice-waves{
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 64px;
  margin: 20px 0 6px;
  z-index: 1;
}
.iman-chat-voice-waves i{
  width: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 12px var(--accent-glow);
  height: 12px;
  opacity: 0.75;
  transform-origin: bottom;
}
.iman-chat-voice.live .iman-chat-voice-waves i{
  animation: imanVoiceWave 0.9s ease-in-out infinite;
}
.iman-chat-voice-waves i:nth-child(3n){ animation-delay: 0.12s; }
.iman-chat-voice-waves i:nth-child(3n+1){ animation-delay: 0.28s; }
.iman-chat-voice-waves i:nth-child(4n){ animation-delay: 0.42s; }
.iman-chat-voice-waves i:nth-child(5n){ animation-delay: 0.06s; }
@keyframes imanVoiceWave{
  0%,100%{ transform: scaleY(0.35); opacity: 0.5; }
  50%{ transform: scaleY(1.6); opacity: 1; }
}
.iman-chat-voice.thinking .iman-chat-voice-core{
  animation: imanVoiceThink 1s ease-in-out infinite;
}
@keyframes imanVoiceThink{
  0%,100%{ transform: scale(1) rotate(0deg); filter: brightness(1); }
  50%{ transform: scale(1.1) rotate(4deg); filter: brightness(1.25); }
}
.iman-chat-voice.speaking .iman-chat-voice-core{
  background: linear-gradient(135deg, #1d9a8c, #125b62);
  animation: imanVoiceBreathe 1.1s ease-in-out infinite;
}
.iman-chat-voice-status{
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}
.iman-chat-voice-text{
  position: relative;
  z-index: 1;
  margin: 8px auto 0;
  max-width: 92%;
  min-height: 40px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  word-wrap: break-word;
}
.iman-chat-voice-cancel{
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.iman-chat-voice-cancel:hover{
  color: #fff;
  border-color: var(--indic-border-red);
  background: var(--indic-background-red);
}

/* Règles d'affichage du panier et de sa synchronisation locale. */
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #ticket_area {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_ticket_area {
  box-sizing: border-box;
  flex: 1 1 45%;
  min-height: 130px;
  height: auto;
  padding: 8px;
  border-radius: 12px;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-empty-cart {
  padding: 24px 10px;
  text-align: center;
  color: var(--text-secondary);
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-delete-line {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--indic-border-red);
  border-radius: 8px;
  background: var(--indic-background-red);
  color: var(--indic-red);
  cursor: pointer;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bottom_ticket_area {
  box-sizing: border-box;
  flex: 1 1 55%;
  min-height: 230px;
  height: auto;
  max-height: 62%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-secondary);
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #counter_outbox_status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--text-primary);
  font-size: 0.9rem;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #counter_outbox_badge {
  display: inline-block;
  margin: 4px 8px;
  padding: 5px 9px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #counter_outbox_badge.has-error {
  border-color: rgba(244, 63, 94, 0.45);
  background: var(--indic-background-red);
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #counter_outbox_status.has-error {
  border-color: rgba(244, 63, 94, 0.45);
  background: var(--indic-background-red);
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #counter_outbox_status button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #contentA4 .counter-provisional-receipt {
  margin: 10px 0;
  padding: 8px 4px;
  border: 1px dashed #9b6500;
  color: #744b00;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #minibox {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-primary);
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #total_ {
  color: var(--indic-green);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement {
  padding: 10px;
  border-radius: 12px;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 6px 0;
  padding: 9px 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bt_setqty,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bt_proceed {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 11px;
  background: var(--indic-green);
  color: #102015;
  font-weight: 750;
  cursor: pointer;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bt_proceed:disabled {
  opacity: 0.65;
  cursor: wait;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .command_card_box {
  top: calc(7vh + 8px);
  right: 20px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-md);
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .btoption {
  min-width: 38px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 9px;
  color: var(--text-primary);
  cursor: pointer;
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .btoption:hover,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .btoption:focus-visible {
  outline: 2px solid var(--indic-green);
  background: var(--bg-secondary);
}

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-sale-pending {
  pointer-events: none;
  opacity: 0.7;
}

@media (max-width: 768px) {
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox {
    top: 7vh;
    height: 93vh;
    display: block;
  }

  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #product_area {
    width: 100%;
    height: 100%;
  }

  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #side_area {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 100%;
    display: none;
    margin: 0;
    padding: 8px;
    border-radius: 14px;
  }

  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #ticket_area {
    height: 100%;
  }

  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bottom_ticket_area {
    max-height: 70%;
  }

  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .command_card_box {
    top: calc(7vh + 6px);
    right: 12px;
  }
}

@media (max-width: 420px) {
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_ticket_area {
    min-height: 105px;
  }
}


/* FileBank : cartes plus compactes et grille stable sur mobile. */
.filebank-grid {
  display:block;
  column-width:250px;
  column-gap:12px;
  width:min(100%,1180px);
  margin:0 auto 28px;
}
.filebank-card { display:inline-flex; width:100%; min-height:0; height:auto; margin:0 0 12px; padding:14px; vertical-align:top; break-inside:avoid; }
.filebank-card-heading { gap:10px; }
.filebank-folder-icon { width:36px; height:36px; border-radius:10px; font-size:17px; }
.filebank-card-title h3 { font-size:14px; }
.filebank-description { margin:8px 0 0; }
.filebank-files { margin-top:10px; }
.filebank-files > .filesContainer { grid-template-columns:repeat(auto-fill,minmax(min(100%,125px),1fr)); gap:8px; }
.filebank-files .file-preview-media { height:96px; }
.filebank-files .file-preview-pdf { height:96px; }
.filebank-files .file-preview-icon { height:58px; margin-top:8px; font-size:25px; }
.filebank-card-footer { gap:8px; padding-top:10px; }
.filebank-files .file-preview-actions button{box-sizing:border-box;width:auto;height:auto;min-height:0;margin:0;padding:0;color:inherit;background:transparent;border:0;border-radius:0;box-shadow:none;font:inherit;letter-spacing:normal;text-transform:none;cursor:pointer}
.filebank-viewer{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:clamp(10px,3vw,28px);background:rgba(0,0,0,.84);backdrop-filter:blur(5px)}
.filebank-viewer-panel{display:flex;flex-direction:column;box-sizing:border-box;width:min(1100px,100%);height:min(90vh,900px);overflow:hidden;color:var(--text-primary,#f1f5f9);background:var(--bg-secondary,#111827);border:1px solid var(--border-light,rgba(255,255,255,.14));border-radius:14px;box-shadow:0 20px 70px rgba(0,0,0,.55)}
.filebank-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:6px 14px;border-bottom:1px solid var(--border-light,rgba(255,255,255,.1))}
.filebank-viewer-header h2{min-width:0;margin:0;overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.filebank-viewer-close{width:36px;min-width:36px;height:36px;padding:0;color:var(--text-primary,#f1f5f9);background:var(--bg-tertiary,rgba(255,255,255,.08));border:0;border-radius:9px;font-size:25px;cursor:pointer}
.filebank-viewer-body{display:grid;flex:1;min-height:0;place-items:center;overflow:auto;padding:12px}
.filebank-viewer-body>img,.filebank-viewer-body>video{display:block;max-width:100%;max-height:100%;object-fit:contain}

/* Card management controls inside the legacy edit modal. Keep these after
   shared button and label rules so the modal cannot overlap the controls. */
#formBox #former_Box {
  box-sizing:border-box;
  display:block;
  width:100%;
  max-height:calc(100dvh - 112px);
  overflow:auto;
  padding:8px 12px 14px;
  animation:none;
  text-align:left;
}

#formBox #former_Box .icard-management-panel {
  display:block;
  width:100%;
  margin:8px 0;
  padding:12px;
}

#formBox #former_Box .icard-management-actions {
  display:flex;
  flex-flow:row nowrap;
  align-items:stretch;
  gap:8px;
  width:100%;
  margin:8px 0;
}

#formBox #former_Box .icard-card-action {
  box-sizing:border-box;
  display:inline-flex;
  flex:1 1 0;
  align-items:center;
  justify-content:center;
  width:auto !important;
  min-width:0 !important;
  height:auto !important;
  min-height:40px;
  margin:0 !important;
  padding:7px 10px !important;
  overflow:hidden;
  border:1px solid var(--indic-border,rgba(245,159,11,.55));
  border-radius:10px;
  font-size:13px;
  letter-spacing:0;
  line-height:1.2;
  white-space:nowrap;
}

#formBox #former_Box .icard-history-dates {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  align-items:end;
  width:100%;
  margin:8px 0;
}

#formBox #former_Box .icard-history-date-field {
  position:static !important;
  display:grid !important;
  gap:4px;
  min-width:0;
  color:var(--text-secondary,#94a3b8);
  font-size:12px;
  transform:none !important;
  pointer-events:auto !important;
}

#formBox #former_Box .icard-history-date-field input {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:40px;
  margin:0;
  padding:6px 9px;
  pointer-events:auto;
}

#formBox #former_Box .icard-management-status:empty { display:none; }
#formBox #former_Box .icard-management-status { margin:6px 0; }
#formBox #former_Box .icard-history-results:empty { display:none; }

@media (max-width:420px) {
  #formBox #former_Box { padding:6px 8px 12px; }
  #formBox #former_Box .icard-management-actions { gap:5px; }
  #formBox #former_Box .icard-card-action { min-height:38px; padding:6px 4px !important; font-size:12px; }
  #formBox #former_Box .icard-card-action > span { display:none; }
  #formBox #former_Box .icard-card-action > i { font-size:17px; }
}
.filebank-viewer-body>audio{width:min(600px,100%)}
.filebank-viewer-body>iframe{width:100%;height:100%;border:0;background:#fff}
.filebank-viewer-body>pre{box-sizing:border-box;width:100%;height:100%;margin:0;padding:16px;overflow:auto;color:#e2e8f0;background:#0b1018;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}

@media (max-width:600px) {

  .filebank-grid { column-count:2; column-width:auto; column-gap:9px; }
  .filebank-card { display:inline-flex; padding:10px; border-radius:13px; }
  .filebank-card-footer { grid-template-columns:minmax(0,1fr); align-items:start; }
  .filebank-card-footer .filebank-manage { justify-self:end; }
}

@media (max-width:400px) {
  .filebank-grid { column-count:2; column-width:auto; column-gap:7px; }
  .filebank-card { padding:8px; }
  .filebank-card-heading { align-items:flex-start; gap:7px; }
  .filebank-folder-icon { width:28px; height:28px; border-radius:8px; font-size:14px; }
  .filebank-card-title h3 { font-size:12px; }
  .filebank-card-title span,
  .filebank-description,
  .filebank-loading,
  .filebank-empty-files { font-size:10px; }
  .filebank-files > .filesContainer { grid-template-columns:minmax(0,1fr); gap:7px; }
  .filebank-files .file-preview-media,
  .filebank-files .file-preview-pdf { height:82px; }
  .filebank-files .file-preview-icon { height:48px; font-size:21px; }
  .filebank-card-details { gap:4px; font-size:10px; }
  .filebank-card-footer .filebank-manage { min-width:0; height:30px; min-height:30px; padding:0 8px; font-size:10px; }
}







body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox {
  box-sizing:border-box;
  top:64px;
  height:calc(100dvh - 64px);
  padding:12px;
  gap:12px;
  overflow:hidden;
  border-top:1px solid var(--border-light);
  background:rgba(9,11,14,.98);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #product_area {
  box-sizing:border-box;
  width:calc(100% - 412px);
  min-width:0;
  height:100%;
  margin:0;
  padding:0;
  overflow:hidden;
  border:1px solid var(--border-light);
  border-radius:18px;
  background:var(--bg-primary);
  vertical-align:top;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area {
  box-sizing:border-box;
  height:auto;
  min-height:58px;
  padding:10px 14px;
  border:0;
  border-bottom:1px solid var(--border-light);
  border-radius:0;
  background:var(--bg-secondary);
  box-shadow:none;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #head_product_area > div { box-sizing:border-box; width:100%; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #head_product_area .inputTrie {
  box-sizing:border-box;
  width:100% !important;
  min-height:43px;
  margin:0;
  padding:10px 14px;
  border:1px solid var(--border-light);
  border-radius:12px;
  background:#0b0d11;
  color:var(--text-primary);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #top_categories { margin:0; border-radius:0; background:var(--bg-secondary); }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #top_categories .categories_box { padding:8px 12px; border-radius:0; background:transparent; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #categories_infos { padding:0 16px; color:var(--text-primary); }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #categories_infos h2 { margin:10px 0; color:var(--indic-clear); font-size:1rem; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(190px, 1fr));
  align-content:start;
  align-items:stretch;
  gap:14px;
  width:100%;
  height:calc(100% - 60px);
  min-height:0;
  padding:16px;
  overflow:auto;
}


body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod {
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  width:auto;
  min-width:0;
  min-height:250px;
  margin:0;
  border:1px solid var(--border-light);
  border-radius:16px;
  background:var(--bg-secondary);
  color:var(--text-primary);
  box-shadow:0 8px 22px rgba(0,0,0,.2);
  text-align:left;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod:hover { transform:translateY(-2px); border-color:rgba(212,159,45,.48); box-shadow:0 12px 28px rgba(0,0,0,.3); }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod > .image_prod {
  box-sizing:border-box;
  display:grid;
  flex:0 0 142px;
  width:100%;
  height:142px;
  place-items:center;
  padding:10px;
  overflow:hidden;
  border-radius:15px 15px 0 0;
  background:#f4f2ec;
  color:#7b828d;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .image_prod img { width:100%; height:100%; object-fit:contain; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .image_prod > div,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .image_prod > a { display:grid; width:100%; height:100%; place-items:center; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prodInfos {
  box-sizing:border-box;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:space-between;
  gap:8px;
  width:100%;
  min-height:105px;
  height:auto !important;
  padding:11px 12px 10px;
  background:transparent;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prod_name {
  display:-webkit-box;
  min-height:2.45em;
  overflow:hidden;
  color:var(--text-primary);
  font-size:.82rem;
  font-weight:650;
  line-height:1.25;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .portprice {
  position:static;
  display:flex;
  min-height:24px;
  flex-direction:column;
  justify-content:flex-end;
  width:100%;
  padding:0;
  background:transparent;
  color:var(--indic-green);
  text-align:left;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prod_price { padding:0; color:var(--indic-green); font-size:.97rem; font-weight:800; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod > div[style*="position: absolute"] { padding:4px 8px !important; border-radius:0 0 9px 0 !important; font-size:.68rem !important; }

body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #side_area {
  box-sizing:border-box;
  display:inline-flex;
  flex-direction:column;
  width:400px;
  min-width:340px;
  height:100%;
  margin:0;
  padding:10px;
  overflow:hidden;
  border:1px solid var(--border-light);
  border-radius:18px;
  background:var(--bg-secondary);
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  vertical-align:top;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_ticket_area { flex:0 1 37%; min-height:125px; height:auto; padding:8px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bottom_ticket_area {
  box-sizing:border-box;
  flex:1 1 63%;
  min-height:0;
  max-height:none;
  height:auto !important;
  margin-top:10px;
  padding:13px;
  overflow:auto;
  border:1px solid var(--border-light);
  border-radius:14px;
  background:var(--bg-primary);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #minibox { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; padding:14px; border-color:rgba(212,159,45,.24); background:linear-gradient(135deg,rgba(212,159,45,.1),rgba(16,185,162,.07)); }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #minibox .zArea { display:flex; width:auto; flex-direction:column; gap:5px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #topay { color:#aeb6c2; font-size:.7rem; font-weight:800; letter-spacing:.1em; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #total_ { color:var(--indic-green); font-size:1.45rem; font-weight:800; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #amount_toReturn { text-align:right; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bottom_ticket_area #Qty_ { box-sizing:border-box; width:100%; min-height:46px; margin:0 0 10px; padding:10px 13px; border:1px solid var(--border-light); border-radius:11px; background:var(--bg-secondary); color:var(--text-primary); }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement { box-sizing:border-box; width:100%; margin:0; padding:13px; border:1px solid var(--border-light); border-radius:14px; background:var(--bg-secondary); }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .mainRadioBox { display:grid; grid-template-columns:repeat(auto-fit,minmax(115px,1fr)); justify-content:stretch; gap:8px; width:100%; padding:8px; background:transparent; box-shadow:none; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox { box-sizing:border-box; display:flex; min-width:0; min-height:48px; flex-direction:row; justify-content:flex-start; gap:9px; margin:0; padding:9px; border-radius:10px; background:var(--bg-primary); box-shadow:none; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox input[type="radio"] { width:20px; height:20px; flex:0 0 20px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox span { margin:0; font-size:.74rem; text-align:left; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement textarea,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement input:not([type="radio"]):not([type="file"]) { box-sizing:border-box; width:100%; min-height:44px; margin:6px 0; padding:10px 12px; border:1px solid var(--border-light); border-radius:10px; background:var(--bg-secondary); color:var(--text-primary); }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement textarea { min-height:76px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement input[type="file"] { display:block; box-sizing:border-box; width:100%; margin:8px 0; color:var(--text-secondary); }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement #bt_Validated { width:100%; min-height:48px; margin-top:10px; border:0; border-radius:12px; background:var(--indic-green); color:#06231e; font-weight:800; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #result_cmd { margin:9px 0; padding:12px; border-radius:10px; background:var(--bg-secondary); overflow-wrap:anywhere; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .closeFlotRbt { position:absolute; top:10px; right:10px; z-index:6; width:38px; height:38px; border:1px solid var(--border-light); background:#0c0f14; color:#f1c55c; box-shadow:0 4px 16px rgba(0,0,0,.35); }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .command_card_box { top:10px; right:424px; z-index:8; border:1px solid var(--border-light); border-radius:12px; background:var(--bg-secondary); }

@media (max-width: 900px) {
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox { top:64px; height:calc(100dvh - 64px); padding:8px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #product_area { width:100%; height:100%; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:12px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #side_area { width:100%; min-width:0; height:100%; padding:12px; border-radius:14px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .command_card_box { right:12px; }
}

@media (max-width: 600px) {
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox { top:64px; height:calc(100dvh - 64px); padding:7px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding:10px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod { min-height:218px; border-radius:13px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod > .image_prod { flex-basis:118px; height:118px; border-radius:12px 12px 0 0; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prodInfos { min-height:94px; gap:6px; padding:9px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prod_name { font-size:.73rem; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prod_price { font-size:.86rem; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #side_area { padding:10px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_ticket_area { flex:0 1 31%; min-height:110px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bottom_ticket_area { flex:1 1 69%; margin-top:8px; padding:10px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #minibox { padding:11px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement { padding:10px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .mainRadioBox { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox { min-height:44px; padding:8px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .command_card_box { top:8px; right:10px; }
}

@media (max-width: 360px) {
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area { gap:7px; padding:8px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod { min-height:202px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod > .image_prod { flex-basis:104px; height:104px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prodInfos { min-height:90px; padding:8px; }
}

/* Counter POS: keep product lookup, ticket and payment actions easy to reach. */
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox {
  padding:12px;
  gap:12px;
  background:rgba(8,10,13,.98);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #product_area,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #side_area {
  border-color:rgba(212,159,45,.2);
  box-shadow:0 14px 34px rgba(0,0,0,.28);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #product_area { background:#0e1218; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area {
  display:flex;
  align-items:center;
  min-height:72px;
  padding:12px;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area > div {
  display:grid;
  grid-template-columns:minmax(150px, .8fr) minmax(200px, 1.5fr) minmax(145px, .7fr);
  align-items:center;
  gap:9px;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area .inputCB,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area .inputTrie,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area .counter-product-sort {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  height:44px;
  margin:0;
  padding:9px 12px;
  border:1px solid var(--border-light);
  border-radius:11px;
  background:#090c10;
  color:var(--text-primary);
  font:inherit;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area .inputCB:focus,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area .inputTrie:focus,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area .counter-product-sort:focus {
  outline:2px solid rgba(16,185,162,.5);
  outline-offset:1px;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-barcode-control { display:flex; min-width:0; gap:6px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-barcode-control .inputCB { flex:1 1 auto; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-scan-btn {
  flex:0 0 44px;
  width:44px;
  height:44px;
  border:1px solid rgba(16,185,162,.3);
  border-radius:11px;
  background:rgba(16,185,162,.12);
  color:var(--indic-green);
  font-size:1.1rem;
  cursor:pointer;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #side_area { background:#121720; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #ticket_area { min-height:0; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #tab_ticket {
  width:100%;
  border-collapse:separate;
  border-spacing:0 5px;
  color:var(--text-primary);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #tab_ticket thead td {
  padding:8px 7px;
  color:#d9b456;
  font-size:.72rem;
  font-weight:800;
  text-transform:uppercase;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #tab_ticket tbody tr.line_ticket { background:#1a2029; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #tab_ticket tbody tr.line_ticket td {
  padding:7px 6px;
  border-top:1px solid rgba(255,255,255,.045);
  border-bottom:1px solid rgba(255,255,255,.045);
  font-size:.76rem;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #tab_ticket tbody tr.line_ticket td:first-child { border-radius:9px 0 0 9px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #tab_ticket tbody tr.line_ticket td:last-child { border-radius:0 9px 9px 0; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-delete-line {
  width:32px;
  height:32px;
  border:1px solid rgba(239,68,68,.25);
  border-radius:9px;
  background:rgba(239,68,68,.1);
  color:#ff8585;
  cursor:pointer;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bt_setqty,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bt_proceed {
  width:100%;
  min-height:48px;
  border:0;
  border-radius:12px;
  background:var(--indic-green);
  color:#05251f;
  font-size:.96rem;
  font-weight:850;
  cursor:pointer;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bt_proceed:disabled { opacity:.65; cursor:wait; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #keyboard_area { flex:0 0 165px; height:auto; margin-top:8px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #keyboard { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .bt_keyboard {
  box-sizing:border-box;
  width:100%;
  min-height:42px;
  margin:0;
  border:1px solid var(--border-light);
  border-radius:10px;
  background:#1a2029;
  color:var(--text-primary);
  font-size:.85rem;
  font-weight:700;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #paiement_resul { display:block; overflow-wrap:anywhere; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #paiement_resul.counter-payment-feedback {
  box-sizing:border-box;
  width:100%;
  padding:10px;
  margin:8px 0;
  border-radius:10px;
  line-height:1.45;
  white-space:normal;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-payment-feedback__actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:9px;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-payment-feedback__button {
  min-height:38px;
  padding:7px 12px;
  border:1px solid var(--border-light);
  border-radius:8px;
  background:var(--bg-primary);
  color:var(--text-primary);
  font-weight:700;
  cursor:pointer;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-draft-toolbar {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  width:100%;
  margin:0 0 10px;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-draft-toolbar__button,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-draft-action {
  min-width:0;
  min-height:38px;
  padding:7px 10px;
  border:1px solid var(--border-light);
  border-radius:9px;
  background:var(--bg-secondary);
  color:var(--text-primary);
  font-weight:700;
  cursor:pointer;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-draft-toolbar__button:disabled,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .counter-draft-action:disabled {
  opacity:.5;
  cursor:not-allowed;
}
.counter-draft-modal {
  position:fixed;
  inset:0;
  z-index:10050;
  display:grid;
  place-items:center;
  padding:16px;
  background:rgba(0,0,0,.72);
}
.counter-draft-modal__panel {
  display:flex;
  flex-direction:column;
  width:min(620px,100%);
  max-height:min(82dvh,760px);
  overflow:hidden;
  border:1px solid var(--border-light);
  border-radius:16px;
  background:var(--bg-primary);
  color:var(--text-primary);
  box-shadow:0 22px 70px rgba(0,0,0,.42);
}
.counter-draft-modal__header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--border-light);
}
.counter-draft-modal__header h2 { margin:0; font-size:1.1rem; }
.counter-draft-modal__close {
  flex:0 0 auto;
  width:38px;
  height:38px;
  border:1px solid var(--border-light);
  border-radius:50%;
  background:var(--bg-secondary);
  color:var(--text-primary);
  font-size:1.5rem;
  cursor:pointer;
}
.counter-draft-modal__notice,
.counter-draft-modal__empty { margin:12px 16px 0; color:var(--text-muted); }
.counter-draft-modal__list { overflow:auto; padding:12px 16px 16px; }
.counter-draft-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid var(--border-light);
  border-radius:12px;
  background:var(--bg-secondary);
}
.counter-draft-card + .counter-draft-card { margin-top:9px; }
.counter-draft-card__details { display:grid; gap:4px; min-width:0; }
.counter-draft-card__details span,
.counter-draft-card__details small { overflow-wrap:anywhere; color:var(--text-muted); }
.counter-draft-card__actions { display:flex; flex-wrap:wrap; gap:7px; }
.counter-draft-action--resume { border-color:rgba(20,184,166,.55)!important; }
.counter-draft-action--cancel { color:#fb7185!important; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #counter_outbox_status { margin:0 0 9px; }

@media (max-width:900px) {
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox { top:56px; height:calc(100dvh - 56px); padding:8px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area .counter-product-sort { grid-column:1 / -1; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #side_area { padding:10px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #ticket_area { flex:1 1 auto; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_ticket_area { flex:1 1 42%; min-height:100px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #bottom_ticket_area { flex:1 1 58%; min-height:0; max-height:none; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #keyboard_area { display:none; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox .command_card_box { top:8px; right:10px; }
}
@media (max-width:480px) {
  .counter-draft-modal { padding:10px; }
  .counter-draft-card { grid-template-columns:minmax(0,1fr); }
  .counter-draft-card__actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area { min-height:0; padding:9px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area > div { grid-template-columns:minmax(0,1fr); gap:7px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #head_product_area .counter-product-sort { grid-column:auto; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area { gap:8px; padding:9px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod { min-height:195px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod > .image_prod { flex-basis:104px; height:104px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prodInfos { min-height:84px; padding:8px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prod_name { font-size:.7rem; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prod_price { font-size:.82rem; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #tab_ticket tbody tr.line_ticket td { padding:5px 4px; font-size:.69rem; }
}
/* Shared feedback for sign-in screens. */
#loginBox #result.login-feedback-error,
#loginBox #result.login-feedback-pending,
#loginBox #result.login-feedback-success {
  box-sizing: border-box;
  min-height: 0;
  margin: 12px 0 4px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#loginBox #result.login-feedback-error { border-color: rgba(248,113,113,.28); background: rgba(127,29,29,.18); color: #ffb4b4; }
#loginBox #result.login-feedback-pending { border-color: rgba(212,159,45,.24); background: rgba(212,159,45,.08); color: #f0d28d; }
#loginBox #result.login-feedback-success { border-color: rgba(16,185,162,.25); background: rgba(16,185,162,.08); color: #86e6d5; }
#loginBox .login-pending-button,
#loginBox button:disabled.login-pending-button { opacity: .78; cursor: wait; pointer-events: none; }
#loginBox .login-pending-button i { margin-right: 7px; }

/* Restore product cards to the original horizontal layout from the reference stylesheet. */
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area {
  display: block !important;
  align-content: initial;
  align-items: initial;
  justify-content: center;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod {
  box-sizing: content-box;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 19%;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 3px;
  overflow: hidden;
  border: 1px solid var(--prod-info-bg);
  border-radius: var(--radius-md);
  background: var(--bg-White);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod > .image_prod {
  display: block;
  flex: 0 1 45%;
  width: 45%;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: var(--bg-White);
  color: var(--bg-tertiary);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prodInfos {
  display: block;
  flex: 0 1 65%;
  width: 65%;
  min-height: 0;
  height: 80px !important;
  padding: 3px;
  background: var(--prod-info-bg);
  text-align: center;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prod_name {
  display: block;
  min-height: 0;
  overflow: hidden;
  color: var(--prod-text-name);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  -webkit-line-clamp: unset;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .portprice {
  position: absolute;
  bottom: -5px;
  left: 0;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 3px;
  background: var(--indic-background-strong);
  color: var(--prod-text-price);
  text-align: center;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .prod_price {
  padding: 3px;
  color: var(--prod-text-price);
  font-size: 14px;
  font-weight: 500;
}
@media screen and (max-width: 600px) {
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #body_product_area .box_prod { width: 45%; }
}

/* Shared customer order workspace for the business console and iCard. */
.customer-orders-header-root,.customer-orders-workspace { box-sizing:border-box; min-width:0; }
.customer-orders-toolbar { position:relative; z-index:4; display:flex; justify-content:flex-end; margin:0 0 14px; }
.customer-orders-search { display:flex; align-items:center; gap:10px; width:min(100%,560px); min-height:46px; box-sizing:border-box; padding:0 13px; border:1px solid rgba(148,163,184,.2); border-radius:14px; background:rgba(15,23,42,.74); color:#94a3b8; }
.customer-orders-search > i { color:#d7aa42; }
.customer-orders-search input { flex:1; min-width:0; min-height:42px; border:0; outline:0; background:transparent; color:#f8fafc; font:inherit; }
.customer-orders-search input::placeholder { color:#8792a3; }
.customer-orders-search-clear { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; color:#cbd5e1; cursor:pointer; font-size:21px; line-height:1; }
.customer-orders-search-clear:hover { background:rgba(255,255,255,.08); }
.customer-orders-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin:4px 0 16px; color:#f8fafc; }
.customer-orders-heading h2 { margin:3px 0 5px; font-size:clamp(22px,3vw,30px); line-height:1.15; letter-spacing:-.025em; }
.customer-orders-eyebrow { margin:0; color:#d7aa42; font-size:10px; font-weight:800; letter-spacing:.16em; }
.customer-orders-intro { margin:0; color:#94a3b8; font-size:13px; line-height:1.5; }
.customer-orders-live { display:inline-flex; align-items:center; gap:7px; flex:none; margin-top:4px; padding:7px 10px; border:1px solid rgba(16,185,129,.2); border-radius:999px; background:rgba(16,185,129,.08); color:#a7f3d0; font-size:11px; }
.customer-orders-live i { color:#e6bb53; font-size:11px; }
.customer-orders-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0 0 17px; }
.customer-orders-metric { display:flex; align-items:center; gap:11px; min-width:0; padding:12px; border:1px solid rgba(148,163,184,.14); border-radius:14px; background:linear-gradient(145deg,rgba(30,41,59,.82),rgba(15,23,42,.8)); }
.customer-orders-metric-icon { display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:11px; background:rgba(215,170,66,.11); color:#e6bb53; font-size:15px; }
.customer-orders-metric-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.customer-orders-metric-copy small { overflow:hidden; color:#94a3b8; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.customer-orders-metric-copy strong { color:#f8fafc; font-size:19px; font-variant-numeric:tabular-nums; line-height:1.1; }
.customer-order-status-tabs { display:flex; gap:8px; overflow-x:auto; padding:2px 1px 10px; scrollbar-width:thin; }
.customer-order-status-tab { display:flex; align-items:center; justify-content:space-between; gap:14px; flex:none; min-width:126px; padding:10px 12px; border:1px solid rgba(148,163,184,.16); border-bottom:2px solid var(--order-state-color,#64748b); border-radius:12px; background:rgba(15,23,42,.76); color:#cbd5e1; cursor:pointer; text-align:left; transition:background .16s ease,border-color .16s ease,transform .16s ease; }
.customer-order-status-tab:hover { transform:translateY(-1px); background:rgba(30,41,59,.95); }
.customer-order-status-tab.is-active { border-color:color-mix(in srgb,var(--order-state-color,#64748b) 55%,transparent); background:color-mix(in srgb,var(--order-state-color,#64748b) 18%,#111827); color:#fff; }
.customer-order-status-name { font-size:12px; font-weight:700; }
.customer-order-status-count { display:grid; place-items:center; min-width:25px; height:25px; padding:0 5px; border-radius:8px; background:rgba(255,255,255,.08); color:#fff; font-size:11px; font-variant-numeric:tabular-nums; }
.customer-order-group-total { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 16px; padding:14px 16px; border:1px solid rgba(215,170,66,.2); border-radius:15px; background:linear-gradient(110deg,rgba(45,34,18,.72),rgba(17,25,37,.95) 55%); color:#f8fafc; }
.customer-order-group-total-primary,.customer-order-group-total-comparison { display:flex; flex-direction:column; gap:4px; min-width:0; }
.customer-order-group-total-caption { color:#e6bb53; font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.customer-order-group-total-amount { color:#fff; font-size:clamp(20px,3vw,27px); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.customer-order-group-total-period,.customer-order-group-total-compare-label,.customer-order-group-total-previous { color:#9aa7b8; font-size:11px; }
.customer-order-group-total-state { color:#dbe4ef; font-size:12px; font-weight:700; }
.customer-order-group-total-change { width:max-content; padding:4px 8px; border-radius:999px; font-size:12px; font-variant-numeric:tabular-nums; }
.customer-order-group-total-change.is-up { background:rgba(16,185,129,.12); color:#6ee7b7; }
.customer-order-group-total-change.is-down { background:rgba(248,113,113,.12); color:#fca5a5; }
.customer-order-group-total-change.is-neutral { background:rgba(148,163,184,.12); color:#cbd5e1; }
.customer-order-group-total-change.is-new { background:rgba(215,170,66,.14); color:#f3cc6c; }
.customer-order-state-panel { width:100%; }
.customer-order-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.customer-order-card { min-width:0; padding:15px; border:1px solid rgba(148,163,184,.15); border-left:3px solid var(--order-state-color,#64748b); border-radius:16px; background:linear-gradient(150deg,rgba(24,34,49,.96),rgba(14,21,32,.98)); color:#f1f5f9; cursor:pointer; box-shadow:0 8px 24px rgba(0,0,0,.15); transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.customer-order-card[hidden] { display:none !important; }
.customer-order-card:hover,.customer-order-card:focus-visible { transform:translateY(-2px); border-color:color-mix(in srgb,var(--order-state-color,#64748b) 50%,rgba(148,163,184,.2)); box-shadow:0 12px 28px rgba(0,0,0,.24); outline:none; }
.customer-order-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:13px; }
.customer-order-identity { display:flex; flex-direction:column; gap:5px; min-width:0; }
.customer-order-ref { overflow-wrap:anywhere; color:#f8fafc; font-size:13px; font-weight:750; }
.customer-order-date { color:#94a3b8; font-size:11px; }
.customer-order-date i { margin-right:4px; color:#d7aa42; }
.customer-order-state-pill { flex:none; max-width:46%; padding:6px 9px; overflow:hidden; border:1px solid color-mix(in srgb,var(--order-state-color,#64748b) 45%,transparent); border-radius:999px; background:color-mix(in srgb,var(--order-state-color,#64748b) 18%,transparent); color:#f8fafc; font-size:10px; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.customer-order-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px 14px; }
.customer-order-fact { display:flex; flex-direction:column; gap:4px; min-width:0; }
.customer-order-fact-label { color:#94a3b8; font-size:10px; font-weight:650; }
.customer-order-fact-label i { margin-right:4px; color:#d7aa42; }
.customer-order-fact strong { display:-webkit-box; overflow:hidden; color:#e2e8f0; font-size:11px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.customer-order-card-footer { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:14px; padding-top:12px; border-top:1px solid rgba(148,163,184,.12); }
.customer-order-amount { display:flex; flex-direction:column; gap:3px; min-width:0; }
.customer-order-amount small { color:#94a3b8; font-size:10px; }
.customer-order-amount strong { overflow-wrap:anywhere; color:#f3cc6c; font-size:15px; font-variant-numeric:tabular-nums; }
.customer-order-card-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; }
.customer-order-state-select { max-width:154px; min-height:36px; padding:6px 24px 6px 9px; border:1px solid color-mix(in srgb,var(--order-state-color,#64748b) 50%,transparent); border-radius:10px; background:#101827; color:#f8fafc; font-size:11px; }
.customer-order-open { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:7px 10px; border:1px solid rgba(215,170,66,.28); border-radius:10px; background:rgba(215,170,66,.1); color:#f3cc6c; cursor:pointer; font-size:11px; font-weight:700; white-space:nowrap; }
.customer-order-open:hover { background:rgba(215,170,66,.18); }
.customer-order-empty { display:flex; flex-direction:column; align-items:center; gap:7px; padding:32px 14px; border:1px dashed rgba(148,163,184,.2); border-radius:15px; color:#94a3b8; text-align:center; }
.customer-order-empty > i { color:#d7aa42; font-size:22px; }
.customer-order-empty strong { color:#e2e8f0; font-size:13px; }
.customer-order-empty span { font-size:11px; }
.customer-orders-no-results { margin-top:12px; padding:14px; border:1px solid rgba(148,163,184,.16); border-radius:12px; color:#94a3b8; text-align:center; }
.customer-orders-no-results[hidden] { display:none !important; }

/* In-app notifications and browser push controls */
#iman-notification-shell { position:fixed; inset:0; z-index:111120; pointer-events:none; font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif; }
.iman-notification-stack { position:absolute; top:max(16px,env(safe-area-inset-top)); right:max(16px,env(safe-area-inset-right)); display:flex; flex-direction:column; gap:10px; width:min(420px,calc(100vw - 28px)); max-height:calc(100vh - 100px); overflow:hidden; pointer-events:none; }
.iman-notification-card { --iman-notification-accent:#d6a642; position:relative; display:grid; grid-template-columns:38px minmax(0,1fr) 28px; gap:11px; align-items:start; box-sizing:border-box; width:100%; min-height:88px; padding:15px 13px 19px; overflow:hidden; border:1px solid rgba(226,190,108,.26); border-radius:16px; background:linear-gradient(145deg,rgba(19,27,38,.98),rgba(10,15,23,.98)); color:#f4f6fa; box-shadow:0 18px 48px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.045); opacity:0; transform:translate3d(24px,-5px,0) scale(.985); animation:imanNotificationEnter .24s cubic-bezier(.2,.75,.2,1) forwards; pointer-events:auto; backdrop-filter:blur(18px); }
.iman-notification-card.is-alert { --iman-notification-accent:#fb7185; border-color:rgba(251,113,133,.35); }
.iman-notification-card.is-clickable { cursor:pointer; }
.iman-notification-card.is-clickable:hover { border-color:color-mix(in srgb,var(--iman-notification-accent) 65%,transparent); transform:translateY(-2px); }
.iman-notification-card:hover .iman-notification-timer { animation-play-state:paused; }
.iman-notification-card.is-leaving { animation:imanNotificationLeave .2s ease forwards; }
.iman-notification-mark { display:grid; place-items:center; width:36px; height:36px; border:1px solid color-mix(in srgb,var(--iman-notification-accent) 34%,transparent); border-radius:12px; background:color-mix(in srgb,var(--iman-notification-accent) 13%,transparent); color:var(--iman-notification-accent); }
.iman-notification-mark svg,.iman-push-toggle-icon svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.iman-notification-copy { display:flex; flex-direction:column; gap:5px; min-width:0; padding-top:1px; }
.iman-notification-copy strong { overflow:hidden; color:#fbfcfe; font-size:13px; font-weight:750; line-height:1.35; text-overflow:ellipsis; }
.iman-notification-copy > span { display:-webkit-box; overflow:hidden; color:#bcc5d1; font-size:12px; line-height:1.5; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.iman-notification-copy small { color:#8190a3; font-size:10px; font-variant-numeric:tabular-nums; }
.iman-notification-close { display:grid; place-items:center; width:28px; height:28px; margin:-5px -3px 0 0; border:0; border-radius:9px; background:transparent; color:#91a0b3; cursor:pointer; font:400 23px/1 Inter,system-ui,sans-serif; }
.iman-notification-close:hover,.iman-notification-close:focus-visible { background:rgba(255,255,255,.08); color:#fff; outline:none; }
.iman-notification-timer { position:absolute; right:0; bottom:0; left:0; height:2px; transform-origin:left; background:var(--iman-notification-accent); animation:imanNotificationTimer 7s linear forwards; opacity:.8; }
.iman-notification-card.is-alert .iman-notification-timer { animation-duration:10s; }
.iman-push-toggle { position:absolute; bottom:max(18px,env(safe-area-inset-bottom)); left:max(18px,env(safe-area-inset-left)); display:inline-flex; align-items:center; gap:10px; min-height:46px; padding:7px 14px 7px 8px; border:1px solid rgba(226,190,108,.3); border-radius:999px; background:rgba(14,21,31,.94); color:#e8edf4; box-shadow:0 10px 28px rgba(0,0,0,.26); cursor:pointer; font:650 11px/1 Inter,system-ui,-apple-system,"Segoe UI",sans-serif; pointer-events:auto; backdrop-filter:blur(14px); transition:transform .16s ease,border-color .16s ease,background .16s ease; }
.iman-push-toggle:hover:not(:disabled) { transform:translateY(-2px); border-color:rgba(226,190,108,.65); background:#172130; }
.iman-push-toggle:focus-visible { outline:2px solid #e7bd62; outline-offset:3px; }
.iman-push-toggle:disabled { cursor:default; opacity:.72; }
.iman-push-toggle[hidden] { display:none !important; }
.iman-push-toggle-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:rgba(214,166,66,.14); color:#e5bd65; }
.iman-push-toggle[data-status="enabled"] .iman-push-toggle-icon { background:rgba(16,185,129,.14); color:#6ee7b7; }
.iman-push-toggle[data-status="blocked"],.iman-push-toggle[data-status="error"] { border-color:rgba(251,113,133,.3); }
.iman-push-toggle[data-status="blocked"] .iman-push-toggle-icon,.iman-push-toggle[data-status="error"] .iman-push-toggle-icon { background:rgba(251,113,133,.13); color:#fda4af; }
.iman-push-toggle-state { width:7px; height:7px; margin-left:2px; border-radius:50%; background:#778396; }
.iman-push-toggle[data-status="enabled"] .iman-push-toggle-state { background:#34d399; box-shadow:0 0 0 4px rgba(52,211,153,.12); }
@keyframes imanNotificationEnter { to { opacity:1; transform:translate3d(0,0,0) scale(1); } }
@keyframes imanNotificationLeave { to { opacity:0; transform:translate3d(16px,-4px,0) scale(.98); } }
@keyframes imanNotificationTimer { to { transform:scaleX(0); } }

/* Keep urgent acknowledgements visible without covering the full workspace. */
#criticalAlerter { position:fixed; inset:16px 16px auto auto; display:flex; align-items:flex-start; justify-content:flex-start; flex-direction:row; gap:13px; box-sizing:border-box; width:min(440px,calc(100vw - 28px)); min-height:96px; padding:18px 16px 16px; border:1px solid rgba(251,113,133,.34); border-radius:17px; background:linear-gradient(145deg,rgba(47,24,33,.98),rgba(19,20,31,.99)); color:#fff; z-index:111121; opacity:1; box-shadow:0 20px 55px rgba(0,0,0,.42); backdrop-filter:blur(18px); transition:opacity .2s ease,transform .2s ease,visibility .2s ease; }
#criticalAlerter.hidden { opacity:0; visibility:hidden; transform:translateY(-8px); }
#criticalAlerter > .spinnerX { display:grid; flex:none; place-items:center; width:38px; height:38px; margin:0; border:1px solid rgba(251,113,133,.24); border-radius:12px; background:rgba(251,113,133,.12); }
#criticalAlerter > .spinnerX .bigLogo { width:25px; height:25px; object-fit:contain; }
#criticalAlerter #Alert_text { display:flex; flex:1; flex-direction:column; gap:6px; min-width:0; margin:0; text-align:left; }
#criticalAlerter #Alert_Title { margin:0; color:#fecdd3; font-size:14px; font-weight:750; line-height:1.3; }
#criticalAlerter #Alert_Body { color:#e6dce0; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
#criticalAlerter .actionArea { flex:none; margin:0; padding:0; }
#criticalAlerter #closeAlert { min-height:34px; padding:7px 11px; border:1px solid rgba(251,113,133,.35); border-radius:10px; background:rgba(251,113,133,.12); color:#ffe4e8; cursor:pointer; font:700 11px Inter,system-ui,sans-serif; }
#criticalAlerter #closeAlert:hover { background:rgba(251,113,133,.22); }
@media (max-width:520px) {
  .iman-notification-stack { top:max(10px,env(safe-area-inset-top)); right:max(10px,env(safe-area-inset-right)); width:calc(100vw - 20px); }
  .iman-notification-card { grid-template-columns:34px minmax(0,1fr) 26px; gap:9px; min-height:78px; padding:12px 10px 16px; border-radius:14px; }
  .iman-notification-mark { width:32px; height:32px; border-radius:10px; }
  .iman-notification-copy strong { font-size:12px; }
  .iman-notification-copy > span { font-size:11px; }
  .iman-push-toggle { bottom:max(12px,env(safe-area-inset-bottom)); left:max(12px,env(safe-area-inset-left)); min-height:42px; padding-right:11px; font-size:10px; }
  #criticalAlerter { inset:max(10px,env(safe-area-inset-top)) 10px auto; width:auto; min-height:82px; gap:9px; padding:12px 10px; border-radius:14px; }
  #criticalAlerter > .spinnerX { width:32px; height:32px; }
  #criticalAlerter #closeAlert { padding:6px 8px; font-size:10px; }
}

.customer-order-detail { color:#eef2f7; }
.customer-order-detail-heading { display:block; margin:0 0 12px; padding:5px 0 12px; border-bottom:1px solid rgba(148,163,184,.16); }
.customer-order-detail-heading h2 { margin:0; color:#f3cc6c; font-size:clamp(20px,3vw,27px); }
.customer-order-detail-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:13px 0 16px; }
.customer-order-detail-field { min-width:0; padding:11px 12px; border:1px solid rgba(148,163,184,.15); border-radius:12px; background:rgba(17,25,37,.9); }
.customer-order-detail-field small { display:block; margin-bottom:5px; color:#94a3b8; font-size:10px; }
.customer-order-detail-field small i { margin-right:4px; color:#d7aa42; }
.customer-order-detail-field strong { display:block; color:#f1f5f9; font-size:12px; overflow-wrap:anywhere; }
.customer-order-detail-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:14px 0; }
.customer-order-detail-actions select { flex:1 1 220px; min-height:42px; border:1px solid rgba(148,163,184,.22); border-radius:11px; background:#111827; color:#fff; }
.customer-order-detail-actions .addreplyBT { min-height:42px; margin:0; border:1px solid rgba(215,170,66,.28); border-radius:11px; background:rgba(215,170,66,.12); color:#f3cc6c; }
.customer-order-detail .divTotal { margin:14px 0; padding:14px; border:1px solid rgba(148,163,184,.16); border-radius:14px; background:rgba(17,25,37,.84); }
.customer-order-detail #rapCommentBox { margin-top:12px; padding:14px; border:1px solid rgba(148,163,184,.14); border-radius:14px; background:rgba(13,19,28,.82); }
.customer-order-toast { position:fixed; z-index:12000; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); max-width:min(460px,calc(100vw - 32px)); padding:12px 16px; border:1px solid rgba(16,185,129,.3); border-radius:13px; background:rgba(13,35,31,.97); color:#d1fae5; box-shadow:0 12px 38px rgba(0,0,0,.35); opacity:0; pointer-events:none; transform:translateY(10px); transition:opacity .2s ease,transform .2s ease; }
.customer-order-toast.is-visible { opacity:1; transform:translateY(0); }
.customer-order-toast.is-error { border-color:rgba(248,113,113,.35); background:rgba(48,22,27,.98); color:#ffe4e6; }
@media (max-width:760px) {
  .customer-orders-toolbar { justify-content:stretch; }
  .customer-orders-search { width:100%; }
  .customer-orders-heading { align-items:center; }
  .customer-orders-live { padding:6px 8px; font-size:10px; }
  .customer-order-status-tabs { position:sticky; top:0; z-index:6; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; overflow:visible; padding:8px 0 10px; background:linear-gradient(180deg,#080b10 82%,rgba(8,11,16,0)); }
  .customer-order-status-tab { width:100%; min-width:0; min-height:36px; gap:5px; padding:6px 7px; }
  .customer-order-status-name { overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
  .customer-order-status-count { min-width:21px; height:21px; padding:0 3px; font-size:10px; }
  .customer-order-group-total { align-items:flex-start; gap:10px; margin-bottom:12px; padding:12px; }
  .customer-order-group-total-comparison { align-items:flex-end; text-align:right; }
  .customer-order-group-total-compare-label,.customer-order-group-total-previous { font-size:9px; }
  .customer-orders-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .customer-orders-metric { padding:10px; }
  .customer-order-grid { grid-template-columns:1fr; }
}
@media (max-width:420px) {
  .customer-orders-heading { align-items:flex-start; }
  .customer-orders-intro { font-size:12px; }
  .customer-orders-live { font-size:0; }
  .customer-orders-live i { font-size:8px; }
  .customer-order-card { padding:12px; }
  .customer-order-card-footer { align-items:stretch; flex-direction:column; }
  .customer-order-card-actions { justify-content:space-between; }
  .customer-order-state-select { flex:1; max-width:none; }
  .customer-order-open { justify-content:center; }
}

/* iMan workspace finish: compact forms, polished tables and a subtle desktop-style wallpaper. */
body#mainScreen:not(.marketplace-screen):not(.icard-page) { position:relative; isolation:isolate; background:#080c12; }
body#mainScreen:not(.marketplace-screen):not(.icard-page)::before,
body#mainScreen:not(.marketplace-screen):not(.icard-page)::after { position:fixed; inset:0; pointer-events:none; content:""; }
body#mainScreen:not(.marketplace-screen):not(.icard-page)::before {
  z-index:0; opacity:.78; background-size:cover; background-position:center;
  background-image:radial-gradient(ellipse at 12% 16%,rgba(16,185,162,.2),transparent 38%),radial-gradient(ellipse at 85% 26%,rgba(212,159,45,.17),transparent 35%),radial-gradient(ellipse at 70% 95%,rgba(30,91,123,.2),transparent 42%),linear-gradient(135deg,#101823,#080b11 60%,#11100b);
  animation:imanDesktopWallpaper 12s steps(1,end) infinite;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page)::after { z-index:0; background:linear-gradient(135deg,rgba(5,9,15,.36),rgba(5,8,13,.72)); }
body#mainScreen:not(.marketplace-screen):not(.icard-page) > center,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #app { position:relative; z-index:1; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) .mainSectionBottom { background:rgba(8,12,18,.78); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
@keyframes imanDesktopWallpaper {
  0%,24% { background-image:radial-gradient(ellipse at 12% 16%,rgba(16,185,162,.2),transparent 38%),radial-gradient(ellipse at 85% 26%,rgba(212,159,45,.17),transparent 35%),radial-gradient(ellipse at 70% 95%,rgba(30,91,123,.2),transparent 42%),linear-gradient(135deg,#101823,#080b11 60%,#11100b); }
  25%,49% { background-image:radial-gradient(ellipse at 82% 12%,rgba(16,185,162,.19),transparent 36%),radial-gradient(ellipse at 18% 72%,rgba(212,159,45,.17),transparent 40%),radial-gradient(ellipse at 70% 95%,rgba(30,91,123,.2),transparent 42%),linear-gradient(135deg,#101823,#080b11 60%,#11100b); }
  50%,74% { background-image:radial-gradient(ellipse at 46% 5%,rgba(16,185,162,.2),transparent 38%),radial-gradient(ellipse at 90% 72%,rgba(212,159,45,.17),transparent 40%),radial-gradient(ellipse at 10% 92%,rgba(30,91,123,.2),transparent 42%),linear-gradient(135deg,#101823,#080b11 60%,#11100b); }
  75%,100% { background-image:radial-gradient(ellipse at 18% 35%,rgba(16,185,162,.19),transparent 38%),radial-gradient(ellipse at 73% 18%,rgba(212,159,45,.16),transparent 39%),radial-gradient(ellipse at 86% 90%,rgba(30,91,123,.2),transparent 42%),linear-gradient(135deg,#101823,#080b11 60%,#11100b); }
}

/* Compact controls keep forms and filters readable without wasting vertical space. */
body#mainScreen:not(.marketplace-screen) #formArea input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body#mainScreen:not(.marketplace-screen) #formArea select,
body#mainScreen:not(.marketplace-screen) #formArea textarea,
body#mainScreen:not(.marketplace-screen) #trieArea input,
body#mainScreen:not(.marketplace-screen) #trieArea select {
  box-sizing:border-box; min-height:38px; height:40px; margin:4px 0; padding:8px 11px; border-radius:10px; font-size:13px;
}
body#mainScreen:not(.marketplace-screen) #formArea textarea { height:auto; min-height:78px; }
body#mainScreen:not(.marketplace-screen) #formArea .input-group { margin-bottom:13px; }
body#mainScreen:not(.marketplace-screen) #formArea .input-group input { width:100%; }
body#mainScreen:not(.marketplace-screen) #formArea .input-group label { left:12px; font-size:12px; }
body#mainScreen:not(.marketplace-screen) #trieArea { max-height:130px; padding:1px 0 4px; }
body#mainScreen:not(.marketplace-screen) #trieArea table { border-spacing:4px 0; }
body#mainScreen:not(.marketplace-screen) #trieArea td { padding:0 3px 3px; }
body#mainScreen:not(.marketplace-screen) #trieArea button { min-height:36px; padding:7px 12px; border-radius:10px; }
body#mainScreen:not(.marketplace-screen) .box_select_time select { height:36px; min-height:36px; margin:3px; padding:6px 9px; }

/* Shared business tables and print views retain their existing data and actions. */
body#mainScreen:not(.marketplace-screen) #tabArea > table:not(.total_down),
body#mainScreen:not(.marketplace-screen) #BigShowBox table:not(.total_down),
body#mainScreen:not(.marketplace-screen) #contentA4 table,
body#mainScreen:not(.marketplace-screen) #tabToprint {
  width:100%; border:1px solid rgba(148,163,184,.16); border-radius:13px; border-collapse:separate; border-spacing:0;
  overflow:hidden; background:rgba(11,17,26,.78); box-shadow:0 12px 30px rgba(0,0,0,.14);
}
body#mainScreen:not(.marketplace-screen) #tabArea > table:not(.total_down) th,
body#mainScreen:not(.marketplace-screen) #BigShowBox table:not(.total_down) th,
body#mainScreen:not(.marketplace-screen) #contentA4 table th,
body#mainScreen:not(.marketplace-screen) #tabToprint th {
  position:sticky; top:0; padding:10px 11px; border:0; border-bottom:1px solid rgba(212,159,45,.32);
  background:linear-gradient(110deg,rgba(29,42,55,.98),rgba(25,29,35,.98)); color:#f0c75f; font-size:10px; letter-spacing:.055em;
}
body#mainScreen:not(.marketplace-screen) #tabArea > table:not(.total_down) td,
body#mainScreen:not(.marketplace-screen) #BigShowBox table:not(.total_down) td,
body#mainScreen:not(.marketplace-screen) #contentA4 table td,
body#mainScreen:not(.marketplace-screen) #tabToprint td { padding:9px 11px; border:0; border-bottom:1px solid rgba(148,163,184,.1); color:#dce4ed; font-size:11px; line-height:1.4; }
body#mainScreen:not(.marketplace-screen) #tabArea > table:not(.total_down) tbody tr:nth-child(even),
body#mainScreen:not(.marketplace-screen) #BigShowBox table:not(.total_down) tbody tr:nth-child(even) { background:rgba(255,255,255,.025); }
body#mainScreen:not(.marketplace-screen) #tabArea > table:not(.total_down) tbody tr:hover,
body#mainScreen:not(.marketplace-screen) #BigShowBox table:not(.total_down) tbody tr:hover { background:linear-gradient(90deg,rgba(16,185,162,.1),rgba(212,159,45,.07)) !important; transform:none; }
body#mainScreen:not(.marketplace-screen) .visit-checkout-button { display:inline-flex; align-items:center; min-height:34px; margin:6px 5px; padding:7px 10px; border:1px solid rgba(16,185,162,.32); border-radius:9px; background:rgba(16,185,162,.11); color:#9ceade; cursor:pointer; font-size:11px; font-weight:700; }
body#mainScreen:not(.marketplace-screen) .visit-checkout-button:hover { border-color:rgba(16,185,162,.62); background:rgba(16,185,162,.18); }
@media print {
  body#mainScreen:not(.marketplace-screen)::before, body#mainScreen:not(.marketplace-screen)::after { display:none !important; }
  body#mainScreen:not(.marketplace-screen) #tabToprint,
  body#mainScreen:not(.marketplace-screen) #contentA4 table,
  body#mainScreen:not(.marketplace-screen) #BigShowBox table { width:100% !important; border-collapse:collapse !important; border-radius:0 !important; background:#fff !important; color:#111 !important; box-shadow:none !important; }
  body#mainScreen:not(.marketplace-screen) #tabToprint th,
  body#mainScreen:not(.marketplace-screen) #contentA4 table th,
  body#mainScreen:not(.marketplace-screen) #BigShowBox table th { position:static !important; background:#eaf2f1 !important; color:#102a2a !important; border:1px solid #bcc8c8 !important; }
  body#mainScreen:not(.marketplace-screen) #tabToprint td,
  body#mainScreen:not(.marketplace-screen) #contentA4 table td,
  body#mainScreen:not(.marketplace-screen) #BigShowBox table td { color:#111 !important; border:1px solid #cbd2d4 !important; }
  body#mainScreen:not(.marketplace-screen) #tabToprint tr,
  body#mainScreen:not(.marketplace-screen) #contentA4 table tr,
  body#mainScreen:not(.marketplace-screen) #BigShowBox table tr { break-inside:avoid; page-break-inside:avoid; }
}

/* Push switch: one fixed-size bell glyph, with its crossed version for disabled states. */
#loader { background:radial-gradient(ellipse at 14% 16%,rgba(16,185,162,.2),transparent 42%),radial-gradient(ellipse at 86% 12%,rgba(212,159,45,.18),transparent 38%),rgba(4,8,14,.82); }
#loader .loading-card {
  border-color:rgba(115,215,201,.24); background:linear-gradient(145deg,rgba(18,29,39,.97),rgba(9,15,23,.98));
  color:#eef5f6; box-shadow:0 30px 90px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.05); backdrop-filter:blur(20px);
}
#loader .loading-brand { color:#e9f3f2; }
#loader .loading-brand img { background:linear-gradient(145deg,rgba(16,185,162,.17),rgba(212,159,45,.15)); }
#loader .loading-card h1 { color:#f2f6f8; }
#loader .loading-card .loading-text { color:#aab7c5; }
#loader .loading-progress-meta { color:#bdc9d4; }
#loader .loading-progress-meta strong { color:#50d1bb; }
#loader .loading-progress-track { background:rgba(255,255,255,.09); }
#loader .loading-progress-track > span { background:linear-gradient(90deg,#10b9a2 0%,#54d6c4 58%,#e1b64e 100%); box-shadow:0 0 18px rgba(16,185,162,.32); }
#loader .loading-step { color:#8796a8; }
#loader .loading-step:not(:last-child)::after { background:rgba(148,163,184,.22); }
#loader .loading-step-indicator { border-color:rgba(148,163,184,.32); background:#111b25; }
#loader .loading-step[data-state="active"] { color:#e8f2f3; }
#loader .loading-step[data-state="active"] .loading-step-indicator { border-color:#10b9a2; background:rgba(16,185,162,.13); box-shadow:0 0 0 3px rgba(16,185,162,.11); }
#loader .loading-step[data-state="done"] { color:#a6b8be; }
#loader .loading-step[data-state="done"] .loading-step-indicator { border-color:#10b9a2; background:#0f8278; }
#loader .loading-step time { color:#78899b; }
#loader .loading-note { border-color:rgba(148,163,184,.16); color:#8594a6; }
#iman-notification-shell .iman-push-toggle {
  display:grid; place-items:center; box-sizing:border-box; width:48px !important; min-width:48px !important; max-width:48px !important;
  height:48px !important; min-height:48px !important; padding:0 !important; border-radius:50%;
}
#iman-notification-shell .iman-push-toggle-icon { display:grid; place-items:center; width:34px; height:34px; margin:0; }
#iman-notification-shell .iman-push-toggle-icon svg { width:19px; height:19px; }
#iman-notification-shell .iman-push-toggle .iman-bell-disabled { display:block; }
#iman-notification-shell .iman-push-toggle .iman-bell-enabled { display:none; }
#iman-notification-shell .iman-push-toggle[data-status="enabled"] .iman-bell-disabled { display:none; }
#iman-notification-shell .iman-push-toggle[data-status="enabled"] .iman-bell-enabled { display:block; }
#iman-notification-shell .iman-push-toggle-state,
#iman-notification-shell .iman-push-toggle-label { display:none !important; }
#iman-notification-shell .iman-push-toggle[data-status="enabled"] .iman-push-toggle-icon { background:rgba(16,185,129,.14); color:#6ee7b7; }
#iman-notification-shell .iman-push-toggle[data-status="blocked"],
#iman-notification-shell .iman-push-toggle[data-status="error"] { border-color:rgba(251,113,133,.3); }
#iman-notification-shell .iman-push-toggle[data-status="blocked"] .iman-push-toggle-icon,
#iman-notification-shell .iman-push-toggle[data-status="error"] .iman-push-toggle-icon { background:rgba(251,113,133,.13); color:#fda4af; }
@media (min-width:761px) {
  .customer-order-status-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); overflow:visible; }
  .customer-order-status-tab { min-width:0; width:100%; gap:8px; }
  .customer-order-status-name { overflow:visible; text-overflow:clip; white-space:normal; line-height:1.2; }
}
@media (max-width:520px) {
  #iman-notification-shell .iman-push-toggle { width:44px !important; min-width:44px !important; max-width:44px !important; height:44px !important; min-height:44px !important; }
}
#iman-notification-shell .iman-push-toggle[hidden] { display:none !important; }
.appointment-edit-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.appointment-edit-actions button { min-height:38px; padding:8px 13px; border-radius:10px; }
.appointment-confirm-button,.appointment-start-button { border:1px solid rgba(212,159,45,.3); background:linear-gradient(135deg,rgba(212,159,45,.15),rgba(16,185,162,.1)); color:#f4d887; }
.appointment-complete-button { border:1px solid rgba(16,185,129,.34); background:linear-gradient(135deg,rgba(16,185,129,.19),rgba(15,118,110,.14)); color:#a7f3d0; }
.appointment-cancel-button { border:1px solid rgba(248,113,113,.3); background:rgba(127,29,29,.2); color:#fecaca; }
.appointment-state-badge { display:inline-flex; align-items:center; width:max-content; max-width:100%; padding:5px 9px; border:1px solid rgba(148,163,184,.2); border-radius:999px; background:rgba(148,163,184,.1); color:#cbd5e1; font-size:11px; font-weight:700; white-space:nowrap; }
.appointment-state-badge[data-state="scheduled"],.appointment-state-badge[data-state="confirmed"] { border-color:rgba(16,185,129,.25); background:rgba(16,185,129,.1); color:#a7f3d0; }
.appointment-state-badge[data-state="completed"] { border-color:rgba(56,189,248,.25); background:rgba(14,116,144,.16); color:#bae6fd; }
.appointment-state-badge[data-state="cancelled"],.appointment-state-badge[data-state="canceled"] { border-color:rgba(248,113,113,.25); background:rgba(127,29,29,.2); color:#fecaca; }

/* Guichet carte: compact transaction entry, clear daily totals, and a readable ledger. */
#tabArea.guichet-card-tab-area {
  box-sizing:border-box; width:100%; height:100%; max-height:none; overflow:auto;
  padding:clamp(12px,2vw,24px); scrollbar-gutter:stable;
}
.mainSectionBottom.guichet-card-main { overflow:hidden; padding:0; background:rgba(7,12,19,.72); }
.guichet-card-view {
  display:grid; gap:14px; width:min(100%,1440px); margin:0 auto; color:#e8edf3;
}
.guichet-card-header {
  display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:58px;
  padding:12px 17px; border:1px solid rgba(16,185,162,.2); border-radius:16px;
  background:linear-gradient(115deg,rgba(13,34,39,.92),rgba(17,24,34,.92) 62%,rgba(45,34,16,.84));
  box-shadow:0 12px 32px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.04);
}
.guichet-card-header::before { content:"OPÉRATIONS CARTE"; color:#6ed8c9; font-size:10px; font-weight:800; letter-spacing:.14em; }
.guichet-card-header h2 { margin:0; color:#f3d37b; font-size:clamp(15px,2vw,20px); font-weight:750; text-align:right; }
.guichet-card-entry {
  display:grid; grid-template-columns:minmax(220px,1.15fr) minmax(260px,1.2fr) minmax(180px,.8fr) minmax(220px,1fr); align-items:stretch; gap:12px;
  padding:16px; border:1px solid rgba(212,159,45,.22); border-radius:16px;
  background:linear-gradient(145deg,rgba(18,26,36,.94),rgba(11,17,25,.92));
  box-shadow:0 14px 34px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.035);
}
.guichet-card-entry > h3 { grid-column:1/-1; margin:0 0 2px; color:#f3d37b; font-size:15px; font-weight:750; }
.guichet-card-entry > .input-group,
.guichet-card-entry > .zinput,
.guichet-card-entry > [id^="box_"] { box-sizing:border-box; width:100%; min-width:0; margin:0; padding:10px 11px 7px; border:1px solid rgba(148,163,184,.14); border-radius:12px; background:rgba(6,12,19,.56); }
.guichet-card-entry #box_cardnumber_guichets { grid-column:1; }
.guichet-card-entry #box_operation__guichets { grid-column:2; margin:0 !important; padding:10px 11px 11px; border:1px solid rgba(148,163,184,.14) !important; border-radius:12px; background:rgba(6,12,19,.56); }
.guichet-card-entry #box_amount_guichets { grid-column:3; }
.guichet-card-entry #card_daily_validation_digit_guichets_field,
.guichet-card-entry #card_daily_digit_guichets_field { grid-column:4; }
.guichet-card-entry > .input-group > span,
.guichet-card-entry > .zinput > label { display:block; position:static; transform:none; margin:0 0 5px; color:#aeb9c5; font-size:10px; font-weight:650; }
.guichet-card-entry input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.guichet-card-entry select { box-sizing:border-box; width:100% !important; max-width:100%; min-width:0; min-height:38px; height:40px; margin:0; padding:8px 10px; border:1px solid rgba(148,163,184,.22); border-radius:9px; background:#111b26; color:#eff5f7; font-size:13px; }
.guichet-card-entry input:focus,
.guichet-card-entry select:focus { outline:2px solid rgba(16,185,162,.28); border-color:#10b9a2; }
.guichet-card-entry #box_operation__guichets > span { display:block; margin:0 0 7px; color:#aeb9c5; font-size:10px; font-weight:650; }
.guichet-card-entry #box_operation__guichets > br { display:none; }
.guichet-card-entry #box_operation__guichets .mainRadioBox { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; justify-content:stretch; width:100%; gap:8px; padding:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; }
.guichet-card-entry #box_operation__guichets .radioBox { box-sizing:border-box; display:flex; flex-direction:row; justify-content:flex-start; min-width:0; min-height:40px; gap:8px; margin:0; padding:8px 10px; border:1px solid rgba(148,163,184,.17); border-radius:9px; background:rgba(255,255,255,.035); box-shadow:none; backdrop-filter:none; }
.guichet-card-entry #box_operation__guichets .radioBox input[type="radio"] { box-sizing:border-box; display:block; flex:0 0 18px; width:18px !important; height:18px !important; margin:0; }
.guichet-card-entry #box_operation__guichets .radioBox span { margin:0; font-size:11px; text-align:left; }
.guichet-card-entry #card_daily_digit_guichets_field { border-color:rgba(212,159,45,.27); }
.guichet-card-entry #card_daily_digit_guichets { text-align:center; font-size:17px; font-weight:800; letter-spacing:.08em; }
.guichet-card-entry #scannerBT { min-height:40px; border-radius:10px; }
.guichet-card-entry #validationBT { grid-column:1/-1; justify-self:end; min-width:min(240px,100%); min-height:42px; margin:2px 0 0; padding:10px 18px; border:1px solid rgba(16,185,162,.45); border-radius:11px; background:linear-gradient(110deg,#0f9186,#11b99f 70%,#d6a742); color:#071616; font-size:12px; font-weight:800; box-shadow:0 8px 20px rgba(16,185,162,.16); }
.guichet-card-entry #validationBT:hover:not(:disabled) { filter:brightness(1.08); transform:translateY(-1px); }
.guichet-card-entry #validationBT:disabled { opacity:.55; cursor:wait; }
.guichet-card-entry #result_guichets,
.guichet-card-entry #filesContainer { grid-column:1/-1; }
.guichet-card-totals { width:100%; border-collapse:separate; border-spacing:10px 0; table-layout:fixed; }
.guichet-card-totals td { width:50%; padding:15px 18px; border:1px solid rgba(148,163,184,.14); border-radius:14px; text-align:left; color:#aeb9c5; font-size:10px; font-weight:750; letter-spacing:.07em; }
.guichet-card-totals td.td_indicator1 { background:linear-gradient(120deg,rgba(16,185,162,.14),rgba(12,22,29,.9)); }
.guichet-card-totals td.td_indicator0 { background:linear-gradient(120deg,rgba(212,159,45,.14),rgba(23,21,17,.9)); }
.guichet-card-totals td h2 { display:inline-block; margin:0 8px 0 0; color:#55d4c1; font-size:clamp(19px,3vw,26px); font-weight:850; letter-spacing:0; vertical-align:middle; }
.guichet-card-totals td.td_indicator0 h2 { color:#f0c568; }
.guichet-card-history { width:100%; border:1px solid rgba(148,163,184,.16); border-radius:14px; border-collapse:separate; border-spacing:0; overflow:hidden; background:rgba(9,15,23,.88); box-shadow:0 12px 28px rgba(0,0,0,.18); }
.guichet-card-history th { position:sticky; top:0; z-index:1; padding:11px 12px; border:0; border-bottom:1px solid rgba(212,159,45,.32); background:linear-gradient(110deg,#1d2a37,#191d23); color:#f0c75f; font-size:10px; letter-spacing:.045em; text-align:center; }
.guichet-card-history td { padding:10px 12px; border:0; border-bottom:1px solid rgba(148,163,184,.1); color:#dce4ed; font-size:11px; line-height:1.4; }
.guichet-card-history tbody tr.td_indicator1 { background:rgba(16,185,129,.055); }
.guichet-card-history tbody tr.td_indicator0 { background:rgba(248,113,113,.045); }
.guichet-card-history tbody tr:hover { background:linear-gradient(90deg,rgba(16,185,162,.1),rgba(212,159,45,.07)); }
.guichet-card-history tbody tr:last-child td { border-bottom:0; }

@media (max-width:1100px) {
  .guichet-card-entry { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .guichet-card-entry #box_cardnumber_guichets { grid-column:1; }
  .guichet-card-entry #box_operation__guichets { grid-column:2; }
  .guichet-card-entry #box_amount_guichets { grid-column:1; }
  .guichet-card-entry #card_daily_validation_digit_guichets_field,
  .guichet-card-entry #card_daily_digit_guichets_field { grid-column:2; }
}

/* Report and request details share a window frame while preserving their print IDs/actions. */
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox {
  box-sizing:border-box; left:50%; right:auto; top:clamp(64px,10vh,104px);
  width:min(calc(100vw - 32px),1120px) !important; height:calc(100dvh - clamp(78px,12vh,124px)); max-height:calc(100dvh - 24px);
  padding:clamp(10px,1.8vw,20px); transform:translateX(-50%); align-items:stretch; justify-content:center;
  border:1px solid rgba(148,163,184,.18); border-radius:20px;
  background:radial-gradient(ellipse at 12% 0,rgba(16,185,162,.12),transparent 38%),radial-gradient(ellipse at 100% 5%,rgba(212,159,45,.12),transparent 33%),rgba(9,14,21,.97);
  box-shadow:0 28px 90px rgba(0,0,0,.54),inset 0 1px rgba(255,255,255,.045); backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox.hidden { pointer-events:none; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox > .BigShow {
  box-sizing:border-box; position:relative; width:min(100%,920px); max-width:920px; margin:0 auto; padding:8px clamp(4px,1vw,12px) 22px; color:#e8edf3;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .command_print {
  position:sticky; top:0; z-index:5; justify-content:flex-end; width:max-content; max-width:100%; margin:0 0 4px auto;
  padding:4px; gap:7px; border:1px solid rgba(148,163,184,.15); border-radius:999px;
  background:rgba(8,13,20,.84); box-shadow:0 8px 22px rgba(0,0,0,.2); backdrop-filter:blur(12px);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .btoption {
  display:grid; place-items:center; float:none; width:36px; height:36px; margin:0; border:1px solid rgba(148,163,184,.16); border-radius:50%;
  background:rgba(255,255,255,.045); color:#dbe5ec; cursor:pointer; font-size:14px;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .btoption:hover { border-color:rgba(16,185,162,.4); background:rgba(16,185,162,.12); color:#8ce5d7; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #mainHeadBig {
  margin:0 0 16px; padding:10px 4px 15px; border-bottom:1px solid rgba(148,163,184,.16); text-align:left;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #title {
  margin:0 0 13px; color:#f3d37b; font-size:clamp(21px,3vw,30px); font-weight:800; line-height:1.2; letter-spacing:-.025em;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .headBig {
  position:static; z-index:auto; display:flex; flex-wrap:wrap; justify-content:flex-start; gap:7px; width:100%; height:auto; padding:0; border:0; background:none; text-align:left;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .headBig > span {
  display:inline-flex; align-items:center; min-height:28px; padding:5px 10px; border:1px solid rgba(148,163,184,.14); border-radius:999px;
  background:rgba(148,163,184,.07); color:#bac7d3; font-size:10px; line-height:1.35; overflow-wrap:anywhere;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #bodyRap {
  box-sizing:border-box; min-height:110px; margin:0 0 14px; padding:clamp(15px,2vw,22px); border:1px solid rgba(148,163,184,.13); border-radius:15px;
  background:linear-gradient(145deg,rgba(18,27,38,.84),rgba(12,18,27,.82)); color:#e1e8ef; font-size:13px; line-height:1.75;
  overflow-wrap:anywhere; box-shadow:inset 0 1px rgba(255,255,255,.025);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #bodyRap img { max-width:100%; height:auto; border-radius:10px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #filesContainer { margin:6px 0 12px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #attachedBT,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .addreplyBT,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #validationRapRepBT {
  min-height:40px; padding:9px 14px; border:1px solid rgba(16,185,162,.28); border-radius:11px;
  background:linear-gradient(120deg,rgba(16,185,162,.14),rgba(212,159,45,.1)); color:#c3f4eb; font-size:12px; font-weight:750; cursor:pointer;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #rapCommentBox,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #rapCommentBoxList {
  box-sizing:border-box; margin:14px 0 0; padding:15px; border:1px solid rgba(148,163,184,.14); border-radius:15px;
  background:rgba(14,21,31,.82); color:#e1e8ef;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #rapCommentBox > .input-group { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 12px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #rapCommentBox input[type="radio"] { width:18px !important; height:18px !important; accent-color:#10b9a2; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #rapReply,
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .bodyResRap {
  box-sizing:border-box; display:block; width:100%; min-height:100px; max-height:36vh; margin:9px 0; padding:12px 13px;
  border:1px solid rgba(148,163,184,.2); border-radius:11px; background:#0b131d; color:#e5edf3; font-size:12px; line-height:1.55; resize:vertical;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .bodyResRap { min-height:58px; padding-left:13px; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .nameCommenter { display:flex; align-items:center; gap:9px; margin-top:14px; color:#cbd5df; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .greyName { color:#f3d37b; }
body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .greyMini { color:#95a4b4; font-size:10px; }

@media (max-width:680px) {
  #tabArea.guichet-card-tab-area { padding:10px; }
  .guichet-card-view { gap:10px; }
  .guichet-card-header { align-items:flex-start; flex-direction:column; gap:4px; padding:12px 14px; }
  .guichet-card-header h2 { text-align:left; }
  .guichet-card-entry { grid-template-columns:minmax(0,1fr); gap:9px; padding:12px; }
  .guichet-card-entry #box_cardnumber_guichets,
  .guichet-card-entry #box_operation__guichets,
  .guichet-card-entry #box_amount_guichets,
  .guichet-card-entry #card_daily_validation_digit_guichets_field,
  .guichet-card-entry #card_daily_digit_guichets_field { grid-column:1; }
  .guichet-card-entry > h3,.guichet-card-entry #validationBT,.guichet-card-entry #result_guichets,.guichet-card-entry #filesContainer { grid-column:1; }
  .guichet-card-entry #validationBT { justify-self:stretch; }
  .guichet-card-totals { border-spacing:5px 0; }
  .guichet-card-totals td { padding:11px 9px; font-size:8px; letter-spacing:.02em; }
  .guichet-card-totals td h2 { display:block; margin:0 0 3px; font-size:21px; }
  .guichet-card-history { min-width:650px; }
  #tabArea.guichet-card-tab-area { overflow-x:auto; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox {
    left:8px; right:8px; top:max(10px,env(safe-area-inset-top)); width:auto !important; height:calc(100dvh - max(20px,env(safe-area-inset-top)) - max(10px,env(safe-area-inset-bottom))); max-height:none;
    padding:10px; transform:none; border-radius:16px;
  }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox > .BigShow { padding:2px 1px 18px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #mainHeadBig { padding-top:6px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #headBig { gap:5px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox .headBig > span { min-height:25px; padding:4px 8px; font-size:9px; }
  body#mainScreen:not(.marketplace-screen):not(.icard-page) #BigShowBox #bodyRap { font-size:12px; }
}

/* Counter payment choices: keep radio dots circular and make the active method obvious. */
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox {
  position:relative !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
  pointer-events:auto !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:22px auto;
  justify-items:center;
  align-content:center;
  gap:7px;
  width:100%;
  min-width:0;
  min-height:76px;
  padding:10px 7px;
  border:1px solid rgba(148,163,184,.24);
  background:#0d131c;
  color:#e9eef5;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .mainRadioBox {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  align-items:stretch;
  gap:9px;
  width:100%;
  padding:8px 0;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox:hover {
  border-color:rgba(212,159,45,.72);
  background:#151923;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox.is-selected {
  border:2px solid #10b9a2;
  background:linear-gradient(135deg,rgba(16,185,162,.2),rgba(212,159,45,.1));
  box-shadow:inset 0 0 0 1px rgba(16,185,162,.12),0 0 0 2px rgba(16,185,162,.15);
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox.is-selected span {
  color:#fff;
  font-weight:800;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox span {
  grid-column:1;
  grid-row:2;
  width:100%;
  margin:0;
  color:inherit;
  font-size:.7rem;
  font-weight:700;
  line-height:1.25;
  text-align:center;
  overflow-wrap:anywhere;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox:focus-within {
  outline:2px solid #f2c75c;
  outline-offset:2px;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox input[type="radio"] {
  box-sizing:border-box;
  appearance:none;
  -webkit-appearance:none;
  display:block;
  flex:0 0 22px !important;
  width:22px !important;
  height:22px !important;
  min-width:22px;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:2px solid #a6b1bd !important;
  border-radius:50% !important;
  background:#080c12 !important;
  box-shadow:none !important;
  position:relative;
  grid-column:1;
  grid-row:1;
  justify-self:center;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox input[type="radio"]:checked {
  border-color:#10b9a2 !important;
  background:#10b9a2 !important;
  box-shadow:0 0 0 3px rgba(16,185,162,.2) !important;
}
body#mainScreen:not(.marketplace-screen):not(.icard-page) #tradingBox #boxpaiement .radioBox input[type="radio"]:checked::before {
  width:8px;
  height:8px;
  background:#071018;
}
