/* Fichier : css/position.css */

.position-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap; /* Passe en colonne sur petit écran */
}

.position-block {
    flex: 1; /* Chaque tableau prend 50% */
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.pos-title {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pos-title.entree { color: #28a745; border-bottom-color: #28a745; }
.pos-title.sortie { color: #dc3545; border-bottom-color: #dc3545; }

/* Tableaux */
.position-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.position-table th {
    text-align: left;
    color: #6c757d;
    font-size: 0.9em;
    padding: 8px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.position-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9em;
}

/* Totaux */
.position-table tfoot td {
    border-top: 2px solid #333;
    font-weight: bold;
    font-size: 1.1em;
    padding-top: 15px;
}

.position-table tfoot td:last-child {
    text-align: right;
}

.position-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Résultat Net en bas */
.position-net {
    margin-top: 20px;
    background: #343a40;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 6px;
}