
      :root {
        --primary: #aac921;
        --primary-dark: #8da81a;
        --primary-light: #f4f9e1;
        --bg-color: #ffffff;
        --text-main: #2c3e50;
        --text-muted: #94a3b8;
        --border-color: #e2e8f0;
        --tab-inactive: #475569;
      }
      body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        margin: 0;
        padding: 0;
        background-color: var(--bg-color);
        height: 100vh;
        overflow: hidden;
      }
      .widget {
        width: 100%; height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden;
      }
      /* EN-TÊTE */
      .header { background-color: var(--primary); color: white; padding: 12px 16px; flex-shrink: 0; }
      .header-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
      .header-label { font-size: 10px; opacity: 0.9; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
      .header-value { font-size: 14px; font-weight: bold; }
      .badge-code { background: rgba(0, 0, 0, 0.15); padding: 3px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
      #btn-refresh { width: 14px; height: 14px; stroke: white; fill: none; stroke-width: 2; cursor: pointer; opacity: 0.8; transition: 0.3s; }
      #btn-refresh:hover { opacity: 1; transform: rotate(180deg); }
      .header-bottom { display: flex; justify-content: space-between; }
      /* ONGLETS */
      .tabs { display: flex; border-bottom: 1px solid var(--border-color); background: white; flex-shrink: 0; }
      .tab { flex: 1; text-align: center; padding: 10px 0; font-size: 13px; font-weight: 500; color: var(--tab-inactive); cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 6px; transition: 0.2s; }
      .tab svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
      .tab.active { color: var(--primary-dark); background: var(--primary-light); font-weight: 600; border-bottom: 2px solid var(--primary); }
      /* VUES */
      .content-scroll { flex: 1; overflow-y: auto; padding: 12px; }
      .view { display: none; }
      .view.active { display: block; }
      /* GRILLES ET BADGES */
      .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; background: #f8fafc; padding: 10px; border-radius: 6px; border: 1px solid var(--border-color); }
      .info-item { display: flex; flex-direction: column; gap: 2px; }
      .info-label { font-size: 10px; color: var(--text-muted); }
      .info-value { font-size: 12px; font-weight: 600; color: var(--text-main); }
      .badge-status { padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; background-color: #f1f5f9; color: #475569; width: fit-content; }
      .badge-status.actif { background-color: #e6f4ea; color: #1e8e3e; }
      .badge-status.clos { background-color: #fce8e6; color: #d93025; }
      /* CARTE DOSSIER (LISTE) */
      .dossier-card { padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: transform 0.1s, box-shadow 0.1s; background: white; }
      .dossier-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
      .dossier-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
      .dossier-card-client { font-size: 11px; color: var(--text-muted); }
      /* ACCORDÉONS */
      details { border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 12px; background: white; }
      summary { padding: 10px 12px; font-size: 13px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; border-radius: 6px; }
      summary::-webkit-details-marker { display: none; }
      summary::after { content: "▼"; font-size: 10px; color: var(--text-muted); }
      details[open] summary { border-bottom: 1px solid var(--border-color); border-radius: 6px 6px 0 0; }
      details[open] summary::after { content: "▲"; }
      /* ÉTAPES */
      .step-list { display: flex; flex-direction: column; }
      .step-item { padding: 6px 10px; border-bottom: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 2px; }
      .step-item:last-child { border-bottom: none; }
      .step-item.active { background-color: rgba(170, 201, 33, 0.08); border-left: 3px solid var(--primary); padding-left: 7px; }
      .step-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
      .step-title { font-size: 11px; font-weight: 600; flex: 1; color: var(--text-main); }
      .step-status { font-size: 9px; padding: 1px 4px; border: 1px solid #ccc; border-radius: 3px; color: var(--text-main); height: 18px; }
      .step-item.active .step-status { border-color: var(--primary); color: var(--primary-dark); font-weight: bold; }
      .step-dates { font-size: 9px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }
      .date-input { font-size: 9px; color: var(--text-muted); background: transparent; border: none; padding: 0; outline: none; width: 65px; }
      /* DROPZONE */
      .bottom-dock { padding: 12px; background: white; border-top: 1px solid var(--border-color); flex-shrink: 0; }
      .dropzone { border: 1.5px dashed var(--primary); border-radius: 6px; padding: 16px 10px; text-align: center; background-color: rgba(170, 201, 33, 0.05); cursor: pointer; transition: 0.2s; }
      .dropzone:hover { background-color: rgba(170, 201, 33, 0.15); }
      .dropzone svg { width: 20px; height: 20px; stroke: var(--primary); stroke-width: 2; fill: none; margin-bottom: 4px; }
      .dropzone-title { font-weight: bold; font-size: 12px; color: var(--primary-dark); }
      .dropzone-subtitle { font-size: 10px; color: var(--text-muted); }
