/**
 * Nexus-One - Styles pour les Relevés d'Activité
 * Interface utilisateur (frontend)
 */

/* ========================================================================
   LISTE DES RELEVÉS
   ======================================================================== */

.nexus-reports-list {
    margin: 20px 0;
}

.nexus-reports-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.nexus-reports-header h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.nexus-no-reports {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

.nexus-no-reports p {
    margin: 10px 0;
    font-size: 16px;
}

/* Table des relevés */
.nexus-reports-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nexus-reports-table thead th {
    background: #f1f1f1;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 2px solid #ddd;
}

.nexus-reports-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.nexus-reports-table tbody tr:hover {
    background: #f9f9f9;
}

/* Badge de statut */
.nexus-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================================================================
   ÉDITION DE RELEVÉ
   ======================================================================== */

.nexus-report-edit {
    margin: 20px 0;
}

.nexus-report-header {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.nexus-report-header h3 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.nexus-rejection-notice {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
}

.nexus-rejection-notice strong {
    display: block;
    margin-bottom: 8px;
    color: #d63638;
}

/* Table d'édition des heures */
.nexus-daily-hours-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.nexus-daily-hours-table thead th {
    background: #0073aa;
    color: #fff;
    padding: 12px 8px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}

.nexus-daily-hours-table tbody td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.nexus-daily-hours-table tbody tr:hover {
    background: #f9f9f9;
}

/* Ligne week-end */
.nexus-daily-hours-table tbody tr.nexus-weekend {
    background: #f0f0f0;
}

.nexus-daily-hours-table tbody tr.nexus-weekend:hover {
    background: #e8e8e8;
}

/* Inputs dans la table */
.nexus-hours-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.nexus-hours-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.nexus-notes-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.nexus-notes-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Ligne des totaux */
.nexus-totals-row {
    background: #f1f1f1 !important;
    font-weight: 600;
}

.nexus-totals-row td {
    padding: 12px 8px !important;
    border-top: 2px solid #ddd;
}

/* Actions du formulaire */
.nexus-report-actions {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nexus-report-actions .button {
    font-size: 14px;
    padding: 8px 16px;
}

/* ========================================================================
   VUE LECTURE SEULE
   ======================================================================== */

.nexus-report-view {
    margin: 20px 0;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 1024px) {
    .nexus-reports-table,
    .nexus-daily-hours-table {
        font-size: 12px;
    }
    
    .nexus-reports-table thead th,
    .nexus-daily-hours-table thead th {
        padding: 8px 6px;
    }
    
    .nexus-reports-table tbody td,
    .nexus-daily-hours-table tbody td {
        padding: 8px 6px;
    }
    
    .nexus-hours-input {
        width: 60px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    /* Forcer le scroll horizontal sur mobile */
    .nexus-reports-table-wrapper,
    .nexus-daily-hours-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nexus-report-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nexus-report-actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */

.nexus-reports-table tbody tr,
.nexus-daily-hours-table tbody tr {
    transition: background-color 0.2s ease;
}

.button {
    transition: all 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.button:active {
    transform: translateY(0);
}

/* ========================================================================
   MESSAGES D'ÉTAT
   ======================================================================== */

.nexus-success-message {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    color: #155724;
    border-radius: 4px;
    margin: 15px 0;
}

.nexus-error-message {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    color: #721c24;
    border-radius: 4px;
    margin: 15px 0;
}

.nexus-info-message {
    padding: 15px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
    border-radius: 4px;
    margin: 15px 0;
}