/* Styles pour la page de configuration */
.config-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.config-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    color: #475569;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-half {
    flex: 1;
}

.form-group-large {
    flex: 3;
}

.form-group-small {
    flex: 1;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker {
    width: 50px;
    height: 36px;
    padding: 0;
    border: none;
    cursor: pointer;
}

.color-preview {
    width: 100%;
    height: 50px;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.email-test-section {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.email-test-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
}

.email-test-form {
    margin-bottom: 0;
}
/* ======= STYLES POUR L'AUTHENTIFICATION ======= */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
}

.auth-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 30px;
}

.auth-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.auth-info {
    margin-bottom: 20px;
    color: #64748b;
    text-align: center;
}

.auth-form {
    margin-bottom: 20px;
}

.form-actions {
    margin-top: 30px;
}

.btn-full {
    width: 100%;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--primary-color, #ffcc33);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Styles pour la liste des utilisateurs */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table th, .users-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}

.users-table th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: bold;
}

.users-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.badge-admin {
    background-color: #f59e0b;
    color: white;
}

.badge-user {
    background-color: #10b981;
    color: white;
}

.btn-danger {
    background-color: #ef4444;
    border: none;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.action-bar {
    margin-bottom: 20px;
}

.info-card {
    background-color: #f8fafc;
    border-left: 4px solid #ffcc33;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

.help-text {
    font-size: 14px;
    color: #64748b;
    margin-top: 5px;
}

/* Style pour le menu admin - ajout de l'item Utilisateurs */
.admin-navbar {
    background-color: #f8fafc;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

/* ======= STYLES COMMUNS ======= */
/* ===== STYLES GÉNÉRAUX ===== */

/* Styles généraux pour le système de signature */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête */
.header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--primary-color, #ffcc33);
    padding: 0;
    position: relative;
}


.header-content {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    /* S'assurer que le logo n'a pas de marges verticales */
    margin: 0;
    padding: 10px;
    display: block;
}

.logo img {
    /* S'assurer que l'image n'a pas de marges */
    display: block;
    margin: 0;
    padding: 0;
    /* Définir la hauteur et largeur maximales */
    max-height: 100px;
    max-width: 300px;
    width: auto;
    height: auto;
}
.hero {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
}

.hero h2 {
    color: white;
    margin: 0;
    padding: 0;
    font-size: 2rem;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.header-user-info .user-email {
    color: white;
    font-size: 14px;
}

.header-user-info .btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.header-user-info .btn-login {
    background: rgba(255, 255, 255, 0.2);
    color: black;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.header-user-info .btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: #1e293b;
}

.title {
    text-align: center;
    margin: 30px 0;
    color: #1e293b;
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    background-color: var(--primary-color, #ffcc33);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    border: none;
    /* border: 1px solid #cbd5e1; */
}

/* Messages */
.error-message {
    background-color: #fee2e2;
    color: #ef4444;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #d1fae5;
    color: #10b981;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Pied de page */
.footer {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    margin-top: 20px;
    padding: 20px 0;
}

/* ======= STYLES POUR L'INTERFACE CLIENT ======= */

/* Styles pour la page d'accueil */
.home-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

.token-form {
    max-width: 400px;
    margin: 0 auto 30px auto;
}

.features {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.feature {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 0 10px;
}

/* Premier élément sans marge à gauche */
.feature:first-child {
    margin-left: 0;
}

/* Dernier élément sans marge à droite */
.feature:last-child {
    margin-right: 0;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color, #ffcc33);
}

.feature-title {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 14px;
    color: #64748b;
}

/* Styles pour les cartes de succès et d'erreur */
.success-card, .error-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 40px;
    text-align: center;
    margin: 50px auto;
    max-width: 800px;
}

.success-icon, .error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
    color: white;
    font-size: 40px;
}

.success-icon {
    background-color: #10b981;
}

.error-icon {
    background-color: #ef4444;
}

/* Styles pour la page de signature */
.content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.viewer-section {
    flex: 3;
    min-width: 350px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
}

.form-section {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
}

.section-title {
    color: #475569;
    margin-top: 0;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.pdf-viewer {
    height: 600px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

embed {
    width: 100%;
    height: 100%;
}

.pdf-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.pdf-controls button {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 15px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

/* Styles pour les zones de signature */
.signature-area, .stamp-area {
    height: 150px;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.signature-area canvas, .stamp-area canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Styles pour les images de prévisualisation */
#signature-preview, #stamp-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Conteneur pour les champs dynamiques (multi-signature) */
#signature-container {
    overflow: hidden;
    position: relative;
}

#signature-placeholder, #stamp-placeholder {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

/* Styles pour tous les aperçus dynamiques (multi-signature) */
[id^="signature-preview-"], [id^="stamp-preview-"] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

[id^="signature-container-"], [id^="stamp-container-"] {
    overflow: hidden;
    position: relative;
}

[id^="signature-placeholder-"], [id^="stamp-placeholder-"] {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

/* Limiter la taille des champs de texte pour qu'ils ne dépassent pas */
.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
}

/* ======= STYLES POUR L'INTERFACE ADMIN ======= */
/* Styles spécifiques à l'administration */
.admin-header {
    background-color: #1e293b;
    color: white;
}

.admin-navbar {
    background-color: #f8fafc;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.admin-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    position: relative;
}

.admin-nav-right {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
}

.user-email {
    color: #64748b;
    margin-right: 15px;
    font-size: 14px;
}

.btn-logout {
    background-color: #f1f5f9;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.btn-logout:hover {
    background-color: #ef4444;
    color: white;
}

.admin-nav > a {
    margin-right: 20px;
    color: #64748b;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
}

.admin-nav a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color, #ffcc33);
}

.admin-nav a.active {
    background-color: var(--primary-color, #ffcc33);
    color: white;
}

/* Styles pour la page upload admin */
.form-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.api-info {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
}

.api-info pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
}

.document-types {
    margin-top: 30px;
}

.document-type {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
}

.document-type h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.positions {
    display: flex;
    gap: 20px;
}

.position-group {
    flex: 1;
}

.position-group h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #64748b;
}

.position-details {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
}

.tab.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    color: var(--primary-color, #ffcc33);
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

#base64-result {
    margin-top: 20px;
    display: none;
}

/* Styles pour la page liste des documents admin */
.documents-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.documents-table th, .documents-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}

.documents-table th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: bold;
}

.documents-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    min-width: 24px;
}

.status-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-signed {
    background-color: #d1fae5;
    color: #10b981;
}

.actions {
    /* display: flex; */
    gap: 5px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.filters {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-weight: bold;
    color: #475569;
}

.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color, #ffcc33);
    margin: 10px 0;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-link {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: var(--primary-color, #ffcc33);
    text-decoration: none;
}

.page-link.active {
    background-color: var(--primary-color, #ffcc33);
    color: white;
}

/* ======= STYLES POUR LA MODALE DE REMPLACEMENT ======= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background-color: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
}

.close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    background-color: #f8fafc;
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.info-box {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-box p {
    margin: 5px 0;
    color: #0369a1;
}

.warning-box {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.warning-box strong {
    color: #d97706;
}

.warning-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    color: #92400e;
}

.warning-box li {
    margin-bottom: 5px;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #64748b;
}

.btn-primary {
    /* background-color: var(--primary-color, #ffcc33); */
    color: white;
    /* border: none; */
    border: none;
    /* border: 1px solid #cbd5e1; */
}

.btn-primary:hover:not(:disabled) {
    /* background-color: #fbbf24; */
    background-color: #e2e8f0;
    color: #475569;
    text-decoration: none;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    border: none;
    /* border: 1px solid #cbd5e1; */
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #475569;
}

/* Animation pour l'ouverture/fermeture de la modale */
.modal {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ======= STYLES RESPONSIVES ======= */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .header-content{
        flex-direction: column;
    }

    .hero {
        position: relative;
        left: 0;
        transform: none;
    }
    
    .viewer-section, .form-section {
        width: 100%;
    }
    
    .features {
        flex-direction: column;
    }
    
    .feature {
        margin: 10px 0;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 15px;
    }
}

/* ======= STYLES POUR L'ÉDITION INLINE DES MÉTADONNÉES ======= */

/* Styles pour les cellules éditables */
.editable-cell {
    position: relative;
    cursor: pointer;
    /* min-width: 120px; */
    transition: background-color 0.2s;
}

.editable-cell:hover:not(.editing) {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
}

.editable-cell.editing {
    background-color: #fff;
    padding: 2px;
}

.editable-cell .cell-input {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 3px;
    padding: 6px 8px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.editable-cell .cell-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Styles pour les boutons d'édition */
.btn-edit {
    background-color: #17a2b8;
    color: white;
    border: none;
    margin-right: 3px;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-edit:hover {
    background-color: #138496;
    transform: translateY(-1px);
}

.btn-edit.save-mode {
    background-color: #28a745;
    animation: pulse 1.5s infinite;
}

.btn-edit.save-mode:hover {
    background-color: #218838;
}

.btn-edit.cancel-mode {
    background-color: #dc3545;
}

.btn-edit.cancel-mode:hover {
    background-color: #c82333;
}

.btn-edit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Animation pour le mode sauvegarde */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Styles pour la ligne en cours d'édition */
.row-editing {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.row-editing td {
    border-top: 1px solid #ffeeba;
    border-bottom: 1px solid #ffeeba;
}

/* Messages de notification temporaires */
.alert {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: slideInRight 0.3s ease-out;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Amélioration des styles de table existants pour l'édition */
.documents-table {
    border-collapse: collapse;
    width: 100%;
}

.documents-table th,
.documents-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.documents-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.documents-table tr:hover:not(.row-editing) {
    background-color: #f8f9fa;
}

/* Styles pour les actions - mise à jour */
.actions {
    white-space: nowrap;
    width: 1%;
}

.actions .btn {
    margin-right: 2px;
    margin-bottom: 2px;
}

/* Icones pour les boutons */
.icon-edit, .icon-save, .icon-cancel, .icon-loading {
    font-style: normal;
    display: inline-block;
}

/* Responsive pour les petits écrans - mise à jour */
@media (max-width: 768px) {
    .documents-table {
        font-size: 12px;
    }
    
    .documents-table th,
    .documents-table td {
        padding: 6px 8px;
    }
    
    .btn-small {
        padding: 2px 6px;
        font-size: 11px;
    }
    
    .editable-cell {
        min-width: 100px;
    }
    
    .btn-edit {
        padding: 2px 6px;
        font-size: 11px;
    }
}
