:root {
    --primary-color: #0b301b;
    --primary-light: #1a5631;
    --primary-lighter: #2d7d49;
    --primary-dark: #072213;
    --accent-color: #e6c78b;
    --text-light: #e8f5e9;
    --success-color: #4caf50;
    --warning-color: #ffc107;
    --danger-color: #d32f2f;
    --info-color: #29b6f6;
}

body {
    background-color: #f5f8f5;
    color: #333;
}

/* Styles de base */
.page-title, .dashboard-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-lighter);
}

.dashboard-subtitle {
    color: var(--primary-light);
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary-lighter);
}

.card-container, .dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Welcome banner et user sections */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-lighter));
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.welcome-banner h2 {
    margin: 0;
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
}

.welcome-banner p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

.user-details {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-lighter);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.user-email {
    color: #666;
    margin: 0.25rem 0 0;
}

.user-company {
    color: #444;
    margin: 0.15rem 0 0;
    font-weight: 500;
    font-style: italic;
}

.info-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-item {
    flex: 1;
    min-width: 250px;
}

.info-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.info-title i {
    margin-right: 0.5rem;
    color: var(--primary-lighter);
}

.info-content {
    background-color: rgba(45, 125, 73, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-lighter);
}

.info-row {
    display: flex;
    margin-bottom: 0.25rem;
}

.info-label {
    font-weight: 500;
    width: 100px;
    color: #555;
}

.info-value {
    flex-grow: 1;
}

.manager-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.manager-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.manager-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 0.75rem;
}

.manager-name {
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.manager-role {
    font-size: 0.8rem;
    color: #666;
    margin: 0.15rem 0 0;
}

.manager-contact {
    margin-top: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.contact-item i {
    width: 20px;
    color: var(--primary-lighter);
    margin-right: 0.5rem;
}

/* Date range and workflow selectors */
.date-range-selector {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.date-range-selector .btn-range {
    background-color: var(--primary-lighter);
    border: none;
    color: white;
    font-weight: 500;
    margin-right: 0.5rem;
    transition: all 0.2s;
    border-radius: 6px;
}

.date-range-selector .btn-range:hover,
.date-range-selector .btn-range.active {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.date-range-selector .btn-export {
    background-color: var(--accent-color);
    border: none;
    color: var(--primary-dark);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.date-range-selector .btn-export:hover {
    background-color: #d9b97e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.workflow-selector {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.workflow-selector select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.2s;
}

.workflow-selector select:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(45, 125, 73, 0.1);
    outline: none;
}

.workflow-selector .btn-filter {
    background-color: var(--primary-lighter);
    border: none;
    color: white;
    border-radius: 6px;
    transition: all 0.2s;
}

.workflow-selector .btn-filter:hover {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stat cards for dashboard */
.stat-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.stat-card .card-header {
    font-weight: 600;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.stat-card .card-header i {
    margin-right: 0.5rem;
}

.stat-card .card-body {
    padding: 1.25rem;
}

.stat-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Stats overview section */
.stats-overview {
    margin-bottom: 1.5rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Small stat cards (used in stats-cards) */
.stats-cards .stat-card {
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: center;
    border: 1px solid #f0f0f0;
    height: auto;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.stat-icon i {
    color: white;
    font-size: 1.25rem;
}

.stat-content {
    flex-grow: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* Chart container */
.chart-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.2s;
    height: 350px;
    border: 1px solid #f0f0f0;
}

.chart-container:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* Table styles */
.table-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.2s;
    overflow: hidden;
}

.table-container:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.user-table, .workflow-table, .execution-table, .table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.user-table thead th, .workflow-table thead th, .execution-table thead th, .table thead th {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.user-table thead th:first-child, .workflow-table thead th:first-child, .execution-table thead th:first-child, .table thead th:first-child {
    border-top-left-radius: 8px;
}

.user-table thead th:last-child, .workflow-table thead th:last-child, .execution-table thead th:last-child, .table thead th:last-child {
    border-top-right-radius: 8px;
}

.user-table tbody tr, .workflow-table tbody tr, .execution-table tbody tr, .table tbody tr {
    transition: all 0.2s;
}

.table-striped tbody tr:nth-of-type(odd),
.user-table tbody tr:nth-child(even),
.workflow-table tbody tr:nth-child(even),
.execution-table tbody tr:nth-child(even) {
    background-color: rgba(11, 48, 27, 0.05);
}

.user-table tbody tr:hover, .workflow-table tbody tr:hover, .execution-table tbody tr:hover, .table tbody tr:hover {
    background-color: rgba(11, 48, 27, 0.08);
}

.user-table td, .workflow-table td, .execution-table td, .table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}

.user-table tbody tr:first-child td, .workflow-table tbody tr:first-child td, .execution-table tbody tr:first-child td {
    border-top: none;
}

/* Badges */
.badge-success, .bg-success {
    background-color: var(--success-color) !important;
    color: white;
    padding: 0.4rem 0.7rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-danger, .bg-danger {
    background-color: var(--danger-color) !important;
    color: white;
    padding: 0.4rem 0.7rem;
    font-weight: 600;
    border-radius: 4px;
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-info {
    background-color: #0288d1;
}

/* DataTables customization */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-lighter) !important;
    color: white !important;
    border: 1px solid var(--primary-lighter) !important;
    border-radius: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-light) !important;
    color: white !important;
    border: 1px solid var(--primary-light) !important;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

/* Boutons d'ajout */
.btn-add-user, .btn-add-workflow {
    background-color: var(--primary-lighter);
    border: none;
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    margin-bottom: 1.25rem;
}

.btn-add-user:hover, .btn-add-workflow:hover {
    background-color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    color: white;
}

.btn-add-user i, .btn-add-workflow i {
    margin-right: 0.5rem;
}

.action-cell {
    display: flex;
    gap: 8px;
}

.btn-edit {
    background-color: #29b6f6;
    border: none;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-edit:hover {
    background-color: #0288d1;
    color: white;
}

.btn-delete {
    background-color: #ef5350;
    border: none;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-delete:hover {
    background-color: #d32f2f;
    color: white;
}

/* Compteurs */
.user-count, .workflow-count {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    display: inline-block;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
    margin-left: 1rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 300px;
}

.search-box input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    width: 100%;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(45, 125, 73, 0.2);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.user-initials {
    width: 36px;
    height: 36px;
    background-color: var(--primary-lighter);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
}

.user-cell {
    display: flex;
    align-items: center;
}

/* Styles spécifiques pour workflow */
.workflow-id, .workflow-id-code {
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #555;
    font-size: 0.9rem;
}

.workflow-name {
    font-weight: 600;
}

.owner-badge {
    background-color: var(--primary-lighter);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

.owner-badge i {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

/* Styles pour le dashboard d'automatisation détails */
.dashboard-header {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-lighter);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--primary-lighter);
}

.rgpd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.rgpd-item {
    background-color: rgba(11, 48, 27, 0.03);
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--primary-lighter);
}

.rgpd-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.rgpd-value {
    color: #333;
}

.rgpd-sensitive-yes {
    color: #d32f2f;
    font-weight: 600;
}

.rgpd-sensitive-no {
    color: #388e3c;
    font-weight: 600;
}

.rgpd-actions {
    margin-top: 1rem;
    text-align: right;
}

.btn-rgpd-pdf {
    background-color: var(--primary-lighter);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-rgpd-pdf:hover {
    background-color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    color: white;
}

.btn-rgpd-pdf i {
    margin-right: 0.5rem;
}

.btn-back {
    background-color: #607d8b;
    border: none;
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-back:hover {
    background-color: #455a64;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    color: white;
}

.btn-back i {
    margin-right: 0.5rem;
}

/* Styles pour la page de détails d'intervention */
.form-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-icon {
    color: var(--primary-lighter);
    margin-right: 0.5rem;
}

.intervention-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.intervention-detail-item {
    background-color: rgba(11, 48, 27, 0.03);
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--primary-lighter);
}

.intervention-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.intervention-value {
    color: #333;
}

.intervention-details-text {
    background-color: rgba(11, 48, 27, 0.03);
    border-radius: 6px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-left: 3px solid var(--primary-lighter);
    white-space: pre-line;
}

.intervention-details-header {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.btn-cancel {
    background-color: #607d8b;
    border: none;
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background-color: #455a64;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    color: white;
}

/* Alert d'impersonation */
.alert-warning.d-flex {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 0.75rem 1rem;
}

.alert-warning .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.alert-warning .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #666;
    margin-top: 2rem;
    border-top: 1px solid #eee;
}:root {
     --primary-color: #0b301b;
     --primary-light: #1a5631;
     --primary-lighter: #2d7d49;
     --primary-dark: #072213;
     --accent-color: #e6c78b;
     --text-light: #e8f5e9;
     --success-color: #4caf50;
     --warning-color: #ffc107;
     --danger-color: #d32f2f;
     --info-color: #29b6f6;
 }

body {
    background-color: #f5f8f5;
    color: #333;
}

/* Styles de base */
.page-title, .dashboard-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-lighter);
}

.dashboard-subtitle {
    color: var(--primary-light);
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary-lighter);
}

.card-container, .table-container, .chart-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.2s;
}

.chart-container:hover, .table-container:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* Welcome banner et user sections */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-lighter));
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.welcome-banner h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.welcome-banner p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

.user-details {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-lighter);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.user-email {
    color: #666;
    margin: 0.25rem 0 0;
}

.user-company {
    color: #444;
    margin: 0.15rem 0 0;
    font-weight: 500;
    font-style: italic;
}

.info-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-item {
    flex: 1;
    min-width: 250px;
}

.info-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.info-title i {
    margin-right: 0.5rem;
    color: var(--primary-lighter);
}

.info-content {
    background-color: rgba(45, 125, 73, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-lighter);
}

.info-row {
    display: flex;
    margin-bottom: 0.25rem;
}

.info-label {
    font-weight: 500;
    width: 100px;
    color: #555;
}

.info-value {
    flex-grow: 1;
}

.manager-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.manager-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.manager-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 0.75rem;
}

.manager-name {
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.manager-role {
    font-size: 0.8rem;
    color: #666;
    margin: 0.15rem 0 0;
}

.manager-contact {
    margin-top: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.contact-item i {
    width: 20px;
    color: var(--primary-lighter);
    margin-right: 0.5rem;
}

/* Date range and workflow selectors */
.date-range-selector {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.date-range-selector .btn-range {
    background-color: var(--primary-lighter);
    border: none;
    color: white;
    font-weight: 500;
    margin-right: 0.5rem;
    transition: all 0.2s;
    border-radius: 6px;
}

.date-range-selector .btn-range:hover,
.date-range-selector .btn-range.active {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.date-range-selector .btn-export {
    background-color: var(--accent-color);
    border: none;
    color: var(--primary-dark);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.date-range-selector .btn-export:hover {
    background-color: #d9b97e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.workflow-selector {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.workflow-selector select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.2s;
}

.workflow-selector select:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(45, 125, 73, 0.1);
    outline: none;
}

.workflow-selector .btn-filter {
    background-color: var(--primary-lighter);
    border: none;
    color: white;
    border-radius: 6px;
    transition: all 0.2s;
}

.workflow-selector .btn-filter:hover {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stat cards */
.stat-card {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.stat-card .card-header {
    font-weight: 600;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.stat-card .card-header i {
    margin-right: 0.5rem;
}

.stat-card .card-body {
    padding: 1.25rem;
}

.stat-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Table styles */
.table-container {
    border-radius: 12px;
    overflow: hidden;
}

.user-table, .workflow-table, .execution-table, .table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.user-table thead th, .workflow-table thead th, .execution-table thead th, .table thead th {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.user-table thead th:first-child, .workflow-table thead th:first-child, .execution-table thead th:first-child, .table thead th:first-child {
    border-top-left-radius: 8px;
}

.user-table thead th:last-child, .workflow-table thead th:last-child, .execution-table thead th:last-child, .table thead th:last-child {
    border-top-right-radius: 8px;
}

.user-table tbody tr, .workflow-table tbody tr, .execution-table tbody tr, .table tbody tr {
    transition: all 0.2s;
}

.table-striped tbody tr:nth-of-type(odd),
.user-table tbody tr:nth-child(even),
.workflow-table tbody tr:nth-child(even),
.execution-table tbody tr:nth-child(even) {
    background-color: rgba(11, 48, 27, 0.05);
}

.user-table tbody tr:hover, .workflow-table tbody tr:hover, .execution-table tbody tr:hover, .table tbody tr:hover {
    background-color: rgba(11, 48, 27, 0.08);
}

.user-table td, .workflow-table td, .execution-table td, .table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}

.user-table tbody tr:first-child td, .workflow-table tbody tr:first-child td, .execution-table tbody tr:first-child td {
    border-top: none;
}

/* Badges */
.badge-success, .bg-success {
    background-color: var(--success-color) !important;
    color: white;
    padding: 0.4rem 0.7rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-danger, .bg-danger {
    background-color: var(--danger-color) !important;
    color: white;
    padding: 0.4rem 0.7rem;
    font-weight: 600;
    border-radius: 4px;
}

/* DataTables customization */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-lighter) !important;
    color: white !important;
    border: 1px solid var(--primary-lighter) !important;
    border-radius: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-light) !important;
    color: white !important;
    border: 1px solid var(--primary-light) !important;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

/* Boutons d'ajout */
.btn-add-user, .btn-add-workflow {
    background-color: var(--primary-lighter);
    border: none;
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    margin-bottom: 1.25rem;
}

.btn-add-user:hover, .btn-add-workflow:hover {
    background-color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    color: white;
}

.btn-add-user i, .btn-add-workflow i {
    margin-right: 0.5rem;
}

.action-cell {
    display: flex;
    gap: 8px;
}

.btn-edit {
    background-color: #29b6f6;
    border: none;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-edit:hover {
    background-color: #0288d1;
    color: white;
}

.btn-delete {
    background-color: #ef5350;
    border: none;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-delete:hover {
    background-color: #d32f2f;
    color: white;
}

/* Compteurs */
.user-count, .workflow-count {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    display: inline-block;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
    margin-left: 1rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 300px;
}

.search-box input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    width: 100%;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(45, 125, 73, 0.2);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.user-initials {
    width: 36px;
    height: 36px;
    background-color: var(--primary-lighter);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
    padding: 13px;
}

.user-cell {
    display: flex;
    align-items: center;
}

/* Styles spécifiques pour workflow */
.workflow-id, .workflow-id-code {
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #555;
    font-size: 0.9rem;
}

.workflow-name {
    font-weight: 600;
}

.owner-badge {
    background-color: var(--primary-lighter);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

.owner-badge i {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

/* Styles pour le dashboard d'automatisation détails */
.dashboard-header {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-lighter);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--primary-lighter);
}

.rgpd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.rgpd-item {
    background-color: rgba(11, 48, 27, 0.03);
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--primary-lighter);
}

.rgpd-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.rgpd-value {
    color: #333;
}

.rgpd-sensitive-yes {
    color: #d32f2f;
    font-weight: 600;
}

.rgpd-sensitive-no {
    color: #388e3c;
    font-weight: 600;
}

.rgpd-actions {
    margin-top: 1rem;
    text-align: right;
}

.btn-rgpd-pdf {
    background-color: var(--primary-lighter);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-rgpd-pdf:hover {
    background-color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    color: white;
}

.btn-rgpd-pdf i {
    margin-right: 0.5rem;
}

.btn-back {
    background-color: #607d8b;
    border: none;
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-back:hover {
    background-color: #455a64;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    color: white;
}

.btn-back i {
    margin-right: 0.5rem;
}

/* Styles pour la page de détails d'intervention */
.form-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-icon {
    color: var(--primary-lighter);
    margin-right: 0.5rem;
}

.intervention-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.intervention-detail-item {
    background-color: rgba(11, 48, 27, 0.03);
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--primary-lighter);
}

.intervention-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.intervention-value {
    color: #333;
}

.intervention-details-text {
    background-color: rgba(11, 48, 27, 0.03);
    border-radius: 6px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-left: 3px solid var(--primary-lighter);
    white-space: pre-line;
}

.intervention-details-header {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.btn-cancel {
    background-color: #607d8b;
    border: none;
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background-color: #455a64;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    color: white;
}

/* Styles pour le graphique d'exécutions */
.stats-overview {
    margin-bottom: 1.5rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-info {
    background-color: #0288d1;
}

.stat-content {
    flex-grow: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #666;
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

/* Styles pour les formulaires et les champs */
.form-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.form-control:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 0.25rem rgba(45, 125, 73, 0.25);
}

.form-label {
    color: #444;
    font-weight: 500;
}

.form-text {
    font-size: 0.85rem;
    color: #666;
}

.form-field {
    margin-bottom: 1.5rem;
}

.required-field::after {
    content: " *";
    color: #d32f2f;
}

.invalid-feedback {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #d32f2f;
}

.is-invalid:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25);
}

/* Styles pour les boutons */
.btn-primary {
    background-color: var(--primary-lighter);
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Style pour le bouton Annuler (style alternatif) */
.btn-cancel {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #555;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background-color: #e9e9e9;
    color: #333;
}

/* Correction pour .form-actions (déjà dans le CSS principal mais avec une définition légèrement différente) */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Styles pour la section des messages */
.message-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.message-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.message-mine {
    background-color: rgba(45, 125, 73, 0.05);
    border-left: 4px solid var(--primary-lighter);
}

.message-other {
    background-color: #fff;
    border-left: 4px solid var(--accent-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.message-time {
    color: #777;
    font-size: 0.85rem;
}

.message-content {
    color: #333;
    line-height: 1.5;
}

.ticket-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticket-actions {
    display: flex;
    gap: 0.5rem;
}

/* Extension du style vide */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    color: #777;
}

.empty-state i {
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Pour améliorer l'espacement des badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 4px;
}

.ml-2 {
    margin-left: 0.5rem;
}

/* Améliorations pour les éléments de formulaire de message */
textarea.form-control {
    min-height: 120px;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    transition: all 0.2s;
}

textarea.form-control:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 0.25rem rgba(45, 125, 73, 0.15);
    outline: none;
}

/* Styles pour la liste des tickets */
.ticket-count {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    display: inline-block;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
    margin-left: 1rem;
    font-weight: 600;
}

.btn-add-ticket {
    background-color: var(--primary-lighter);
    border: none;
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    margin-bottom: 0;
    text-decoration: none;
}

.btn-add-ticket:hover {
    background-color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    color: white;
    text-decoration: none;
}

.ticket-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.ticket-table thead th {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.ticket-table thead th:first-child {
    border-top-left-radius: 8px;
}

.ticket-table thead th:last-child {
    border-top-right-radius: 8px;
}

.ticket-table tbody tr {
    transition: all 0.2s;
}

.ticket-table tbody tr:nth-child(even) {
    background-color: rgba(11, 48, 27, 0.05);
}

.ticket-table tbody tr:hover {
    background-color: rgba(11, 48, 27, 0.08);
}

.ticket-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}

.ticket-title {
    font-weight: 500;
    color: var(--primary-dark);
}

.btn-view, .btn-assign, .btn-status {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    margin-right: 5px;
}

.btn-view {
    background-color: var(--info-color);
}

.btn-view:hover {
    background-color: #0288d1;
    color: white;
}

.btn-assign {
    background-color: var(--primary-lighter);
}

.btn-assign:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-status {
    background-color: var(--warning-color);
}

.btn-status:hover {
    background-color: #e0a800;
    color: white;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    font-weight: 500;
    color: white;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}

/* Style pour l'état vide */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    text-align: center;
}

.empty-state i {
    font-size: 3.5rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* Styles pour le formulaire de création de ticket amélioré */

/* Mise en page générale */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4, .col-md-6, .col-md-8, .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Style pour les select */
.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-select:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 0.25rem rgba(45, 125, 73, 0.25);
    outline: 0;
}

/* Sous-titres dans le formulaire */
.form-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Zone d'upload de fichiers */
.file-upload-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background-color: #f8f9fa;
}

.file-upload-zone:hover, .file-upload-zone.drag-over {
    border-color: var(--primary-lighter);
    background-color: rgba(45, 125, 73, 0.05);
}

.file-upload-message {
    color: #6c757d;
}

.file-upload-message i {
    font-size: 2rem;
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

.file-browse {
    color: var(--primary-lighter);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.file-hint {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #6c757d;
}

/* Liste des fichiers */
.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border: 1px solid #eee;
}

.file-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

.file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    margin: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.file-remove:hover {
    opacity: 1;
}

/* Codes couleurs pour les icônes de fichiers */
.fa-file-pdf {
    color: #e53935;
}

.fa-file-word {
    color: #1565c0;
}

.fa-file-excel {
    color: #2e7d32;
}

.fa-file-image {
    color: #6a1b9a;
}

.fa-file {
    color: #616161;
}

/* Styles pour les éléments de téléchargement de fichiers */
.file-upload-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background-color: #f8f9fa;
}

.file-upload-zone:hover, .file-upload-zone.drag-over {
    border-color: var(--primary-lighter);
    background-color: rgba(45, 125, 73, 0.05);
}

.file-upload-message {
    color: #495057;
}

.file-upload-message i {
    font-size: 2.5rem;
    color: var(--primary-lighter);
    margin-bottom: 1rem;
    display: block;
}

.file-browse {
    color: var(--primary-lighter);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.file-hint {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    color: #6c757d;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.file-item:hover {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.file-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.fa-file-pdf {
    color: #e53935;
}

.fa-file-word {
    color: #1565c0;
}

.fa-file-excel {
    color: #2e7d32;
}

.fa-file-image {
    color: #6a1b9a;
}

.fa-file {
    color: #616161;
}

.file-name {
    flex: 1;
    font-weight: 500;
    color: var(--primary-dark);
}

.file-size {
    margin: 0 1rem;
    color: #6c757d;
    font-weight: 500;
}

.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.file-remove:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Autres styles pour le formulaire */
.form-subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

/* Styles supplémentaires pour améliorer la présentation */
.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.25rem;
}

.form-check-label {
    padding-left: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

/* Amélioration de la présentation des cellules de tickets */
.ticket-id {
    font-family: monospace;
    font-weight: bold;
    color: var(--primary-dark);
    min-width: 50px;
}

.ticket-title {
    font-weight: 500;
    color: var(--primary-dark);
    max-width: 250px;
    word-wrap: break-word;
}

.ticket-status-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    font-weight: 600;
    border-radius: 12px;
    color: white;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.workflow-cell {
    max-width: 150px;
}

.workflow-name {
    font-weight: 500;
    color: var(--primary-color);
}

.date-cell {
    min-width: 160px;
    font-size: 0.9rem;
}

.date-created, .date-updated {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    white-space: nowrap;
}

.date-created {
    color: #28a745;
}

.date-updated {
    color: #007bff;
}

.user-name {
    font-weight: 500;
    color: var(--primary-dark);
}

.assigned-cell, .user-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-cell {
    display: flex;
    gap: 5px;
    min-width: 120px;
}

.btn-view, .btn-assign, .btn-status {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-view {
    background-color: var(--info-color);
}

.btn-view:hover {
    background-color: #0277bd;
    color: white;
    transform: translateY(-1px);
}

.btn-assign {
    background-color: var(--primary-lighter);
}

.btn-assign:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-status {
    background-color: var(--warning-color);
    color: var(--primary-dark);
}

.btn-status:hover {
    background-color: #e0a800;
    color: white;
    transform: translateY(-1px);
}

/* Amélioration responsive */
@media (max-width: 768px) {
    .date-cell {
        min-width: auto;
    }

    .date-created, .date-updated {
        font-size: 0.8rem;
    }

    .action-cell {
        flex-direction: column;
        gap: 3px;
    }
}

/* Badge pour non assigné */
.bg-secondary {
    background-color: #6c757d !important;
    font-weight: 500;
    color: white !important;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}