/* ============================================================
   SMART IMPORT — Drop zone
   ============================================================ */


.smart-import-dropzone {
    width: 100%;
    height: 138px;
    border: 2px dashed #b0bec5;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    margin: 8px 0 4px 0;
}

.smart-import-dropzone.x-drop-panel-file-over,
.smart-import-dropzone:hover {
    border-color: #1976d2;
    background: #e3f2fd;
}

.smart-dz-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 4px;
    pointer-events: none;
    user-select: none;
}

.smart-dz-icon {
    font-size: 28px;
    color: #90a4ae;
    line-height: 1;
}

.smart-dz-title {
    font-size: 13px;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
}

.smart-dz-hint {
    font-size: 11px;
    color: #90a4ae;
}

/* ============================================================
   SMART IMPORT — Card zone (empty state)
   ============================================================ */

.smart-empty-state {
    width: 100%;
    padding: 32px 0 16px;
    text-align: center;
    color: #b0bec5;
}

.smart-empty-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.smart-empty-state p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

/* ============================================================
   FILE STATUS CARD — Carte par fichier
   ============================================================ */

.smart-file-card {
    display: inline-block;
    width: 156px;
    height: 128px;
    background: #ffffff;
    border: 1.5px solid #e0e7ef;
    border-radius: 10px;
    padding: 10px 10px 8px;
    margin: 4px;
    box-sizing: border-box;
    vertical-align: top;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
}

/* ---- File type icons ---- */

.sfc-icon {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.sfc-icon-pdf  { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.sfc-icon-docx { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.sfc-icon-doc  { background: #e8eaf6; color: #283593; border: 1px solid #9fa8da; }
.sfc-icon-generic { background: #f5f5f5; color: #616161; border: 1px solid #e0e0e0; }

/* ---- Nom & taille ---- */

.sfc-name {
    font-size: 11px;
    font-weight: 600;
    color: #263238;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 136px;
    margin-bottom: 1px;
}

.sfc-size {
    font-size: 10px;
    color: #90a4ae;
    margin-bottom: 4px;
}

/* ---- Progress bar ---- */

.sfc-progress-track {
    width: 100%;
    height: 4px;
    background: #eceff1;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 3px;
}

.sfc-progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.sfc-pct {
    font-size: 10px;
    color: #1976d2;
    font-weight: 600;
    text-align: right;
}

/* ---- Texte de statut ---- */

.sfc-status {
    font-size: 10.5px;
    font-weight: 500;
    margin-top: 2px;
}

.sfc-queued   { color: #90a4ae; }
.sfc-uploading { color: #1976d2; }
.sfc-analyzing { color: #7b1fa2; }
.sfc-done     { color: #2e7d32; }
.sfc-error    { color: #c62828; }

/* ---- Spinner (AI Analysis state) ---- */

.sfc-spinner {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    background: #f3e5f5;
    border: 1px solid #ce93d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #7b1fa2;
    animation: sfc-spin 1.1s linear infinite;
    margin-bottom: 5px;
}

@keyframes sfc-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Final state icons ---- */

.sfc-icon-done {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f5e9;
    border: 1.5px solid #a5d6a7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2e7d32;
    margin-bottom: 5px;
    animation: sfc-pop 0.25s ease;
}

@keyframes sfc-pop {
    0%   { transform: scale(0.7); opacity: 0.4; }
    70%  { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}

.sfc-icon-error {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffebee;
    border: 1.5px solid #ef9a9a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #c62828;
    margin-bottom: 5px;
}

/* ---- Card background by state ---- */

.smart-file-card.sfc-state-queued   { border-color: #e0e7ef; }
.smart-file-card.sfc-state-uploading { border-color: #90caf9; background: #fafcff; }
.smart-file-card.sfc-state-analyzing { border-color: #ce93d8; background: #fdf6ff; }
.smart-file-card.sfc-state-done     { border-color: #a5d6a7; background: #f9fff9; }
.smart-file-card.sfc-state-error    { border-color: #ef9a9a; background: #fff8f8; }

/* ============================================================
   SMART IMPORT — Barre de progression globale (style "image 2")
   ============================================================ */

.sip-global-bar {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 8px 14px 6px;
    margin: 6px 8px 2px;
    box-sizing: border-box;
}

.sip-global-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.sip-global-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #2e7d32;
}

.sip-global-counts {
    font-size: 11px;
    color: #388e3c;
    font-weight: 500;
}

.sip-global-track {
    width: 100%;
    height: 6px;
    background: #c8e6c9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}

.sip-global-fill {
    height: 100%;
    background: #43a047;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.sip-global-pct {
    text-align: right;
    font-size: 10px;
    color: #388e3c;
    font-weight: 700;
    margin-top: 1px;
}

/* ============================================================
   SMART IMPORT — Drop zone
   ============================================================ */

.smart-import-dropzone {
    width: 100%;
    height: 128px;
    border: 2px dashed #b0bec5;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    margin: 4px 0;
}

.smart-import-dropzone.x-drop-panel-file-over,
.smart-import-dropzone:hover {
    border-color: #1976d2;
    background: #e3f2fd;
}

.smart-dz-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 4px;
    pointer-events: none;
    user-select: none;
}

.smart-dz-icon {
    font-size: 26px;
    color: #90a4ae;
    line-height: 1;
}

.smart-dz-title {
    font-size: 13px;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
}

.smart-dz-hint {
    font-size: 11px;
    color: #90a4ae;
}

/* ============================================================
   SMART IMPORT — Empty zone
   ============================================================ */

.smart-empty-state {
    width: 100%;
    padding: 28px 0 12px;
    text-align: center;
    color: #b0bec5;
}

.smart-empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.smart-empty-state p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

/* ============================================================
   FILE STATUS CARD — Per-file card (Smart Import window)
   ============================================================ */

.smart-file-card {
    display: inline-block;
    width: 150px;
    height: 126px;
    background: #ffffff;
    border: 1.5px solid #e0e7ef;
    border-radius: 10px;
    padding: 9px 9px 7px;
    margin: 4px;
    box-sizing: border-box;
    vertical-align: top;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.sfc-icon {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.sfc-icon-pdf    { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.sfc-icon-docx   { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.sfc-icon-doc    { background: #e8eaf6; color: #283593; border: 1px solid #9fa8da; }
.sfc-icon-generic{ background: #f5f5f5; color: #616161; border: 1px solid #e0e0e0; }

.sfc-name {
    font-size: 10.5px;
    font-weight: 600;
    color: #263238;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 132px;
    margin-bottom: 1px;
}

.sfc-size {
    font-size: 9.5px;
    color: #90a4ae;
    margin-bottom: 3px;
}

.sfc-progress-track {
    width: 100%;
    height: 4px;
    background: #eceff1;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2px;
}

.sfc-progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.sfc-pct {
    font-size: 9.5px;
    color: #1976d2;
    font-weight: 600;
    text-align: right;
}

.sfc-status {
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
}

.sfc-queued    { color: #90a4ae; }
.sfc-uploading { color: #1976d2; }
.sfc-analyzing { color: #7b1fa2; }
.sfc-done      { color: #2e7d32; }
.sfc-error     { color: #c62828; }

.sfc-spinner {
    width: 38px; height: 38px;
    border-radius: 7px;
    background: #f3e5f5; border: 1px solid #ce93d8;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #7b1fa2;
    animation: sfc-spin 1.1s linear infinite;
    margin-bottom: 4px;
}

@keyframes sfc-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.sfc-icon-done {
    width: 38px; height: 38px; border-radius: 50%;
    background: #e8f5e9; border: 1.5px solid #a5d6a7;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #2e7d32;
    margin-bottom: 4px;
    animation: sfc-pop 0.25s ease;
}

@keyframes sfc-pop {
    0%  { transform: scale(0.7); opacity: 0.4; }
    70% { transform: scale(1.12); }
    100%{ transform: scale(1); opacity: 1; }
}

.sfc-icon-error {
    width: 38px; height: 38px; border-radius: 50%;
    background: #ffebee; border: 1.5px solid #ef9a9a;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #c62828;
    margin-bottom: 4px;
}

/* Card background states */
.smart-file-card.sfc-state-queued   { border-color: #e0e7ef; }
.smart-file-card.sfc-state-uploading{ border-color: #90caf9; background: #fafcff; }
.smart-file-card.sfc-state-analyzing{ border-color: #ce93d8; background: #fdf6ff; }
.smart-file-card.sfc-state-done     { border-color: #a5d6a7; background: #f9fff9; }
.smart-file-card.sfc-state-error    { border-color: #ef9a9a; background: #fff8f8; }

/* ============================================================
   SMART IMPORT LIVE GRID — "Import in progress" tab
   ============================================================ */

/* ContentPanel header */
.sil-header-counts {
    font-size: 11px;
    color: #546e7a;
    font-weight: 500;
    padding-right: 8px;
    line-height: 22px;
}

.sil-header-counts b {
    color: #1976d2;
}

/* File type icons in the grid */
.sil-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.sil-icon-pdf    { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.sil-icon-docx   { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.sil-icon-doc    { background: #e8eaf6; color: #283593; border: 1px solid #9fa8da; }
.sil-icon-generic{ background: #f5f5f5; color: #616161; border: 1px solid #e0e0e0; }

/* Badges de statut */
.sil-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.sil-badge-queued {
    background: #f5f5f5;
    color: #90a4ae;
    border: 1px solid #e0e0e0;
}

.sil-badge-analyzing {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.sil-badge-done {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.sil-badge-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Spinner in the grid (AI Analysis state) */
.sil-spin {
    display: inline-block;
    animation: sfc-spin 1.1s linear infinite;
}

/* Cellule upload avec barre de progression inline */
.sil-upload-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.sil-progress-track {
    flex: 1;
    height: 5px;
    background: #e3f2fd;
    border-radius: 3px;
    overflow: hidden;
}

.sil-progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sil-pct {
    font-size: 10px;
    color: #1976d2;
    font-weight: 600;
    min-width: 28px;
    text-align: right;
}

/* Row highlighting based on state */
.x-grid3-row .sfc-state-done td   { background-color: #f9fff9 !important; }
.x-grid3-row .sfc-state-error td  { background-color: #fff8f8 !important; }

/* ============================================================
   SMART IMPORT — Barre de progression globale (style "image 2")
   ============================================================ */

.sip-global-bar {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 8px 14px 6px;
    margin: 6px 8px 2px;
    box-sizing: border-box;
}

.sip-global-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.sip-global-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #2e7d32;
}

.sip-global-counts {
    font-size: 11px;
    color: #388e3c;
    font-weight: 500;
}

.sip-global-track {
    width: 100%;
    height: 6px;
    background: #c8e6c9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}

.sip-global-fill {
    height: 100%;
    background: #43a047;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.sip-global-pct {
    text-align: right;
    font-size: 10px;
    color: #388e3c;
    font-weight: 700;
    margin-top: 1px;
}

/* ============================================================
   SMART IMPORT — Drop zone
   ============================================================ */

.smart-import-dropzone {
    width: 100%;
    height: 128px;
    border: 2px dashed #b0bec5;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    margin: 4px 0;
}

.smart-import-dropzone.x-drop-panel-file-over,
.smart-import-dropzone:hover {
    border-color: #1976d2;
    background: #e3f2fd;
}

.smart-dz-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 4px;
    pointer-events: none;
    user-select: none;
}

.smart-dz-icon {
    font-size: 26px;
    color: #90a4ae;
    line-height: 1;
}

.smart-dz-title {
    font-size: 13px;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
}

.smart-dz-hint {
    font-size: 11px;
    color: #90a4ae;
}

/* ============================================================
   SMART IMPORT — Empty zone
   ============================================================ */

.smart-empty-state {
    width: 100%;
    padding: 28px 0 12px;
    text-align: center;
    color: #b0bec5;
}

.smart-empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.smart-empty-state p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

/* ============================================================
   FILE STATUS CARD — Card per file (Smart Import window)
   ============================================================ */

.smart-file-card {
    display: inline-block;
    width: 150px;
    height: 126px;
    background: #ffffff;
    border: 1.5px solid #e0e7ef;
    border-radius: 10px;
    padding: 9px 9px 7px;
    margin: 4px;
    box-sizing: border-box;
    vertical-align: top;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.sfc-icon {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.sfc-icon-pdf    { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.sfc-icon-docx   { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.sfc-icon-doc    { background: #e8eaf6; color: #283593; border: 1px solid #9fa8da; }
.sfc-icon-generic{ background: #f5f5f5; color: #616161; border: 1px solid #e0e0e0; }

.sfc-name {
    font-size: 10.5px;
    font-weight: 600;
    color: #263238;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 132px;
    margin-bottom: 1px;
}

.sfc-size {
    font-size: 9.5px;
    color: #90a4ae;
    margin-bottom: 3px;
}

.sfc-progress-track {
    width: 100%;
    height: 4px;
    background: #eceff1;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2px;
}

.sfc-progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.sfc-pct {
    font-size: 9.5px;
    color: #1976d2;
    font-weight: 600;
    text-align: right;
}

.sfc-status {
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
}

.sfc-queued    { color: #90a4ae; }
.sfc-uploading { color: #1976d2; }
.sfc-analyzing { color: #7b1fa2; }
.sfc-done      { color: #2e7d32; }
.sfc-error     { color: #c62828; }

.sfc-spinner {
    width: 38px; height: 38px;
    border-radius: 7px;
    background: #f3e5f5; border: 1px solid #ce93d8;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #7b1fa2;
    animation: sfc-spin 1.1s linear infinite;
    margin-bottom: 4px;
}

@keyframes sfc-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.sfc-icon-done {
    width: 38px; height: 38px; border-radius: 50%;
    background: #e8f5e9; border: 1.5px solid #a5d6a7;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #2e7d32;
    margin-bottom: 4px;
    animation: sfc-pop 0.25s ease;
}

@keyframes sfc-pop {
    0%  { transform: scale(0.7); opacity: 0.4; }
    70% { transform: scale(1.12); }
    100%{ transform: scale(1); opacity: 1; }
}

.sfc-icon-error {
    width: 38px; height: 38px; border-radius: 50%;
    background: #ffebee; border: 1.5px solid #ef9a9a;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #c62828;
    margin-bottom: 4px;
}

/* Card background states */
.smart-file-card.sfc-state-queued   { border-color: #e0e7ef; }
.smart-file-card.sfc-state-uploading{ border-color: #90caf9; background: #fafcff; }
.smart-file-card.sfc-state-analyzing{ border-color: #ce93d8; background: #fdf6ff; }
.smart-file-card.sfc-state-done     { border-color: #a5d6a7; background: #f9fff9; }
.smart-file-card.sfc-state-error    { border-color: #ef9a9a; background: #fff8f8; }

/* ============================================================
   SMART IMPORT LIVE GRID — "Import in progress" tab
   ============================================================ */

/* ContentPanel header */
.sil-header-counts {
    font-size: 11px;
    color: #546e7a;
    font-weight: 500;
    padding-right: 8px;
    line-height: 22px;
}

.sil-header-counts b {
    color: #1976d2;
}

/* File type icons in the grid */
.sil-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.sil-icon-pdf    { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.sil-icon-docx   { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.sil-icon-doc    { background: #e8eaf6; color: #283593; border: 1px solid #9fa8da; }
.sil-icon-generic{ background: #f5f5f5; color: #616161; border: 1px solid #e0e0e0; }

/* Badges de statut */
.sil-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.sil-badge-queued {
    background: #f5f5f5;
    color: #90a4ae;
    border: 1px solid #e0e0e0;
}

.sil-badge-analyzing {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.sil-badge-done {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.sil-badge-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Spinner in the grid (AI Analysis state) */
.sil-spin {
    display: inline-block;
    animation: sfc-spin 1.1s linear infinite;
}

/* Cellule upload avec barre de progression inline */
.sil-upload-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.sil-progress-track {
    flex: 1;
    height: 5px;
    background: #e3f2fd;
    border-radius: 3px;
    overflow: hidden;
}

.sil-progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sil-pct {
    font-size: 10px;
    color: #1976d2;
    font-weight: 600;
    min-width: 28px;
    text-align: right;
}

/* Row highlighting based on state */
.x-grid3-row .sfc-state-done td   { background-color: #f9fff9 !important; }
.x-grid3-row .sfc-state-error td  { background-color: #fff8f8 !important; }

/* ============================================================
   SMART IMPORT LIVE GRID — nouvelles classes colonnes riches
   ============================================================ */

/* Nom du contrat dans la grille */
.sil-name {
    font-weight: 500;
    color: #263238;
    line-height: 1.4;
}

/* Tag type de contrat */
.sil-tag {
    display: inline-block;
    padding: 1px 7px;
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
}

/* Bouton cerveau dans la colonne action */
.ls-brain-icon-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.ls-brain-icon-btn .x-btn-text {
    background-image: url('gxt/themes/legalsuite/images/legalsuite/Icon_Septeo-Brain_RVB_2.svg');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center;
    width: 22px;
    height: 22px;
    display: inline-block;
}

/* Animated loading dots for cells awaiting analysis */
.sil-loading-dots {
    color: #b0bec5;
    font-size: 16px;
    letter-spacing: 2px;
    animation: sil-blink 1.4s infinite;
}

@keyframes sil-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Row appearance animation when analysis is complete */
@keyframes sil-row-pop {
    from { background-color: #e8f5e9; }
    to   { background-color: transparent; }
}

/* Ligne "done" : flash vert puis retour normal */
.x-grid3-row.sil-row-done {
    animation: sil-row-pop 1.2s ease-out forwards;
}

/* Row being analyzed: slightly tinted background */
.x-grid3-row.sil-row-analyzing td {
    background-color: #fdf6ff !important;
    color: #7b1fa2;
}

/* ============================================================
   SMART IMPORT — Barre de progression globale (style "image 2")
   ============================================================ */

.sip-global-bar {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 8px 14px 6px;
    margin: 6px 8px 2px;
    box-sizing: border-box;
}

.sip-global-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.sip-global-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #2e7d32;
}

.sip-global-counts {
    font-size: 11px;
    color: #388e3c;
    font-weight: 500;
}

.sip-global-track {
    width: 100%;
    height: 6px;
    background: #c8e6c9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}

.sip-global-fill {
    height: 100%;
    background: #43a047;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.sip-global-pct {
    text-align: right;
    font-size: 10px;
    color: #388e3c;
    font-weight: 700;
    margin-top: 1px;
}

/* ============================================================
   SMART IMPORT — Drop zone
   ============================================================ */

.smart-import-dropzone {
    width: 100%;
    height: 128px;
    border: 2px dashed #b0bec5;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    margin: 4px 0;
}

.smart-import-dropzone.x-drop-panel-file-over,
.smart-import-dropzone:hover {
    border-color: #1976d2;
    background: #e3f2fd;
}

.smart-dz-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 4px;
    pointer-events: none;
    user-select: none;
}

.smart-dz-icon {
    font-size: 26px;
    color: #90a4ae;
    line-height: 1;
}

.smart-dz-title {
    font-size: 13px;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
}

.smart-dz-hint {
    font-size: 11px;
    color: #90a4ae;
}

/* ============================================================
   SMART IMPORT — Empty zone
   ============================================================ */

.smart-empty-state {
    width: 100%;
    padding: 28px 0 12px;
    text-align: center;
    color: #b0bec5;
}

.smart-empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.smart-empty-state p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

/* ============================================================
   FILE STATUS CARD — Per-file card (Smart Import window)
   ============================================================ */

.smart-file-card {
    display: inline-block;
    width: 150px;
    height: 126px;
    background: #ffffff;
    border: 1.5px solid #e0e7ef;
    border-radius: 10px;
    padding: 9px 9px 7px;
    margin: 4px;
    box-sizing: border-box;
    vertical-align: top;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.sfc-icon {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.sfc-icon-pdf    { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.sfc-icon-docx   { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.sfc-icon-doc    { background: #e8eaf6; color: #283593; border: 1px solid #9fa8da; }
.sfc-icon-generic{ background: #f5f5f5; color: #616161; border: 1px solid #e0e0e0; }

.sfc-name {
    font-size: 10.5px;
    font-weight: 600;
    color: #263238;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 132px;
    margin-bottom: 1px;
}

.sfc-size {
    font-size: 9.5px;
    color: #90a4ae;
    margin-bottom: 3px;
}

.sfc-progress-track {
    width: 100%;
    height: 4px;
    background: #eceff1;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2px;
}

.sfc-progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.sfc-pct {
    font-size: 9.5px;
    color: #1976d2;
    font-weight: 600;
    text-align: right;
}

.sfc-status {
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
}

.sfc-queued    { color: #90a4ae; }
.sfc-uploading { color: #1976d2; }
.sfc-analyzing { color: #7b1fa2; }
.sfc-done      { color: #2e7d32; }
.sfc-error     { color: #c62828; }

.sfc-spinner {
    width: 38px; height: 38px;
    border-radius: 7px;
    background: #f3e5f5; border: 1px solid #ce93d8;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #7b1fa2;
    animation: sfc-spin 1.1s linear infinite;
    margin-bottom: 4px;
}

@keyframes sfc-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.sfc-icon-done {
    width: 38px; height: 38px; border-radius: 50%;
    background: #e8f5e9; border: 1.5px solid #a5d6a7;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #2e7d32;
    margin-bottom: 4px;
    animation: sfc-pop 0.25s ease;
}

@keyframes sfc-pop {
    0%  { transform: scale(0.7); opacity: 0.4; }
    70% { transform: scale(1.12); }
    100%{ transform: scale(1); opacity: 1; }
}

.sfc-icon-error {
    width: 38px; height: 38px; border-radius: 50%;
    background: #ffebee; border: 1.5px solid #ef9a9a;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #c62828;
    margin-bottom: 4px;
}

/* Card background states */
.smart-file-card.sfc-state-queued   { border-color: #e0e7ef; }
.smart-file-card.sfc-state-uploading{ border-color: #90caf9; background: #fafcff; }
.smart-file-card.sfc-state-analyzing{ border-color: #ce93d8; background: #fdf6ff; }
.smart-file-card.sfc-state-done     { border-color: #a5d6a7; background: #f9fff9; }
.smart-file-card.sfc-state-error    { border-color: #ef9a9a; background: #fff8f8; }

/* ============================================================
   SMART IMPORT LIVE GRID — Onglet "Import en cours"
   ============================================================ */

/* ContentPanel header */
.sil-header-counts {
    font-size: 11px;
    color: #546e7a;
    font-weight: 500;
    padding-right: 8px;
    line-height: 22px;
}

.sil-header-counts b {
    color: #1976d2;
}

/* File type icons in the grid */
.sil-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.sil-icon-pdf    { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.sil-icon-docx   { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.sil-icon-doc    { background: #e8eaf6; color: #283593; border: 1px solid #9fa8da; }
.sil-icon-generic{ background: #f5f5f5; color: #616161; border: 1px solid #e0e0e0; }

/* Badges de statut */
.sil-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.sil-badge-queued {
    background: #f5f5f5;
    color: #90a4ae;
    border: 1px solid #e0e0e0;
}

.sil-badge-analyzing {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.sil-badge-done {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.sil-badge-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Spinner in the grid (AI Analysis state) */
.sil-spin {
    display: inline-block;
    animation: sfc-spin 1.1s linear infinite;
}

/* Cellule upload avec barre de progression inline */
.sil-upload-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.sil-progress-track {
    flex: 1;
    height: 5px;
    background: #e3f2fd;
    border-radius: 3px;
    overflow: hidden;
}

.sil-progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sil-pct {
    font-size: 10px;
    color: #1976d2;
    font-weight: 600;
    min-width: 28px;
    text-align: right;
}

/* Row highlighting based on state */
.x-grid3-row .sfc-state-done td   { background-color: #f9fff9 !important; }
.x-grid3-row .sfc-state-error td  { background-color: #fff8f8 !important; }

/* ============================================================
   SMART IMPORT LIVE GRID — nouvelles classes colonnes riches
   ============================================================ */

/* Nom du contrat dans la grille */
.sil-name {
    font-weight: 500;
    color: #263238;
    line-height: 1.4;
}

/* Tag type de contrat */
.sil-tag {
    display: inline-block;
    padding: 1px 7px;
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
}

/* Bouton cerveau dans la colonne action */
.ls-brain-icon-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.ls-brain-icon-btn .x-btn-text {
    background-image: url('gxt/themes/legalsuite/images/legalsuite/Icon_Septeo-Brain_RVB_2.svg');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center;
    width: 22px;
    height: 22px;
    display: inline-block;
}

/* ============================================================
   SKELETON SHIMMER — cellules en attente d'analyse (style Salesforce)
   ============================================================ */

.sil-skeleton {
    display: flex;
    align-items: center;
    height: 16px;
    padding: 0 2px;
}

.sil-skeleton-bar {
    height: 10px;
    width: 80%;
    max-width: 120px;
    border-radius: 5px;
    background: linear-gradient(90deg, #e0e0e0 25%, #eeeeee 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: sil-shimmer 1.4s infinite;
}

@keyframes sil-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tag droit applicable — bleu-gris */
.sil-tag.sil-tag-law {
    background: #e8eaf6;
    color: #3949ab;
    border-color: #9fa8da;
}

/* Row appearance animation when analysis is complete */
@keyframes sil-row-pop {
    from { background-color: #e8f5e9; }
    to   { background-color: transparent; }
}

/* Ligne "done" : flash vert puis retour normal */
.x-grid3-row.sil-row-done {
    animation: sil-row-pop 1.2s ease-out forwards;
}

/* Row being analyzed: slightly tinted background */
.x-grid3-row.sil-row-analyzing td {
    background-color: #fdf6ff !important;
    color: #7b1fa2;
}

/* Conteneur */
.ls-smart-import .ls-grid-panel {
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.06);
  background: #fff;
}

/* Fix grid body width not expanding when IAAssistant panel closes */
.ls-smart-import .x-grid3,
.ls-smart-import .x-grid3-scroller,
.ls-smart-import .x-grid3-body,
.ls-smart-import .x-grid3-row-table {
  width: 100% !important;
}

/* Header de colonnes */
.ls-smart-import .x-grid3-hd {
  background: #f7f9fc;
  border-bottom: 1px solid #e6e9ef;
  font-weight: 600;
  color: #344054;
}

/* Lignes */
.ls-smart-import .x-grid3-row td {
  padding: 14px 10px;  /* + haut */
  vertical-align: middle;
  border-bottom: 1px solid #f0f2f6;
}

.ls-smart-import .x-grid3-row-over {
  background: #f7fbff !important;
}

/* Clamp 2 lignes */
.ls-smart-import .ls-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 16px;
  max-height: 32px;
  color: #475467;
}

/* Montant */
.ls-smart-import .ls-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #101828;
}
.ls-smart-import .ls-currency {
  font-weight: 500;
  color: #667085;
  font-size: 11px;
}

/* Statut chip */
.ls-smart-import .sil-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid transparent;
}

.ls-smart-import .sil-badge-done {
  background: #ecfdf3;
  color: #027a48;
  border-color: #abefc6;
}
.ls-smart-import .sil-badge-analyzing {
  background: #eff8ff;
  color: #175cd3;
  border-color: #b2ddff;
}
.ls-smart-import .sil-badge-queued {
  background: #f2f4f7;
  color: #344054;
  border-color: #eaecf0;
}
.ls-smart-import .sil-badge-error {
  background: #fef3f2;
  color: #b42318;
  border-color: #fecdca;
}

/* Grid scroller - let GXT handle scrolling natively for proper header sync */
/* Onglets style "segmented" */
.ls-smart-import .x-tab-strip {
  background: transparent;
  border: 0;
  padding: 8px 8px 0 8px;
}

.ls-smart-import .x-tab-strip .x-tab-strip-inner {
  border-radius: 999px;
  background: #f2f4f7;
  padding: 4px;
}

.ls-smart-import .x-tab-strip .x-tab-strip-text {
  font-weight: 600;
  color: #344054;
}

/* tab */
.ls-smart-import .x-tab-strip .x-tab-strip-active {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.06);
}

.ls-smart-import .x-tab-strip .x-tab-strip-active .x-tab-strip-text {
  color: #101828;
}

/* compteur */
.ls-smart-import .ls-tab-count {
  margin-left: 6px;
  background: #e0f2fe;
  color: #075985;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* =============================
   SoftLaw Tabs - Modern LegalSuite
   ============================= */

/* 1) Nettoyage header TabPanel */
.ls-file-tab .x-tab-panel-header {
  background: #ffffff !important;
  border: 0 !important;
  padding: 0 !important;
}

/* 2) Strip: barre des onglets */
.ls-file-tab .x-tab-strip {
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid #eaecf0 !important;
  padding: 0 18px !important;
  margin: 0 !important;
  height: 44px !important;
}

/* 3) Chaque onglet (li) */
.ls-file-tab .x-tab-strip li.x-component {
  margin: 0 22px 0 0 !important;
  padding: 0 !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* 4) Supprime skin Ext (right/left/inner) */
.ls-file-tab .x-tab-strip a.x-tab-right,
.ls-file-tab .x-tab-strip em.x-tab-left,
.ls-file-tab .x-tab-strip span.x-tab-strip-inner {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* 5) Texte onglet */
.ls-file-tab .x-tab-strip span.x-tab-strip-text {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;

  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .35px !important;

  color: #667085 !important;
  padding: 0 2px !important;
  line-height: 44px !important; /* centre vertical */
}

/* Hover (non actif) */
.ls-file-tab .x-tab-strip li.x-component:not(.x-tab-strip-active) .x-tab-strip-text:hover {
  color: #344054 !important;
}

/* 6) Onglet actif: underline propre sous le texte */
.ls-file-tab .x-tab-strip li.x-tab-strip-active .x-tab-strip-text {
  color: #101828 !important;
}

.ls-file-tab .x-tab-strip li.x-tab-strip-active .x-tab-strip-text:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;                 /* place l’underline dans la barre */
  height: 2px;
  border-radius: 2px;
  background: #2f80ed;         /* accent */
}



/* ============================================================
   SMART IMPORT INSIGHTS PANEL — Heading icon
   ============================================================ */

.sii-heading-icon::before {
    content: "\1F4CA";  /* 📊 chart emoji */
    margin-right: 6px;
}


/* Header: align everything to the right */
.smartimport-title-near-close .x-window-header{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Cancel the inline float on toolbar (inline style wins unless !important) */
.smartimport-title-near-close .x-window-header > .x-panel-toolbar{
  float: none !important;
  margin: 0 !important;
  order: 2 !important;          /* toolbar after title */
}

/* Title should be right-aligned and placed before the toolbar */
.smartimport-title-near-close .x-window-header > .x-window-header-text{
  float: none !important;
  order: 1 !important;          /* title before toolbar */
  margin: 0 !important;
  white-space: nowrap !important;
}

/* ============================================================
   SmartImportWindow — Dropzone "glass" like screenshot
   ============================================================ */

/* Le bloc global (la zone en pointillés) */
.smart-import-dropzone{
  height: 170px;                       /* ajuste 160-190 selon ton layout */
  border: 2px dashed #4e79ff !important;
  border-radius: 14px !important;

  /* "glass" soft gradient */
  background: radial-gradient(120% 140% at 50% 60%,
              #ffffff 0%,
              #f4f7ff 45%,
              #eef2ff 100%) !important;

  box-shadow:
    inset 0 0 0 1px rgba(78,121,255,.10),
    0 10px 30px rgba(16,24,40,.10);

  position: relative;
  overflow: hidden;
}

/* Optionnel : léger voile lumineux comme sur la capture */
.smart-import-dropzone:before{
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 30%,
              rgba(120, 140, 255, .20) 0%,
              rgba(120, 140, 255, .10) 35%,
              rgba(255,255,255,0) 70%);
  pointer-events: none;
}

/* Hover + drag over : plus "focus" */
.smart-import-dropzone:hover,
.smart-import-dropzone.x-drop-panel-file-over{
  border-color: #2f63ff !important;
  box-shadow:
    inset 0 0 0 1px rgba(47,99,255,.18),
    0 14px 36px rgba(16,24,40,.14);
}

/* Centrage vertical/horizontal du contenu */
.smart-dz-inner{
  position: relative; /* au-dessus du :before */
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Icône upload (plus proche de la capture) */
.smart-dz-icon{
  width: 44px;
  height: 44px;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(78,121,255,.10);
  border: 1px solid rgba(78,121,255,.25);
  color: #2f63ff;

  font-size: 22px;     /* si c’est une police icône */
  line-height: 1;
}

/* Titre haut (dans le bandeau au-dessus de la dropzone) */
.smart-import-window-title{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .25px;
  color: #2b2f70;
}

/* Texte principal */
.smart-dz-title{
  font-size: 14px;
  font-weight: 600;
  color: #475467;     /* gris LS */
}

/* Hint (la ligne PDF/DOC/DOCX...) */
.smart-dz-hint{
  font-size: 12px;
  color: #667085;
}

/* ──────────────────────────────────────────────────────────────
   Duplicate Detection Modal - Selection Checkboxes
   ────────────────────────────────────────────────────────────── */

/* Select All container */
.sii-dup-select-all-container {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sii-dup-select-all label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #1e293b;
  font-size: 13px;
  user-select: none;
}

.sii-dup-select-all input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #4e79ff;
  border-radius: 4px;
}

/* Duplicate list container */
.sii-dup-list {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sii-dup-items {
  padding: 6px 0;
}

/* Individual duplicate item */
.sii-dup-item {
  padding: 12px 14px;
  margin: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #fafbfc;
  transition: all 0.2s ease;
}

.sii-dup-item:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sii-dup-item:last-child {
  margin-bottom: 4px;
}

/* Checkbox label wrapper */
.sii-dup-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 6px;
  user-select: none;
}

.sii-dup-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  margin-top: 1px;
  cursor: pointer;
  accent-color: #4e79ff;
  flex-shrink: 0;
  border-radius: 4px;
}

.sii-dup-checkbox:checked + .sii-dup-name {
  color: #1e40af;
}

/* Document name */
.sii-dup-checkbox-label .sii-dup-name {
  font-weight: 500;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  transition: color 0.15s ease;
}

/* Status metadata */
.sii-dup-meta {
  font-size: 11px;
  color: #64748b;
  margin-left: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sii-dup-meta::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #94a3b8;
  border-radius: 50%;
}

/* Subtitle text */
.sii-dup-subtitle-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
  padding: 0 2px;
}

/* Warning text */
.sii-dup-warning {
  margin-top: 14px;
}

.sii-dup-warning-text {
  font-size: 12px;
  color: #92400e;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sii-dup-warning-text::before {
  content: '⚠';
  font-size: 14px;
}