/* assets/css/style.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
}

header {
    background-color: #003366;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
}

.environment-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: #ff9800;
    color: #1f2933;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.04em;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 20px;
    min-height: 80vh;
}

footer {
    background-color: #003366;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: left;
}


.member-card p {
    margin: 2px 0;
}
.error {
    color: red;
}

.success {
    color: green;
}

form label {
    display: block;
    margin: 10px 0;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="date"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-top: 5px;
}

form button {
    background-color: #003366;
    color: #fff;
    padding: 10px 20px;
    border: none;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
}

form button:hover {
    background-color: #00509e;
}

.login-section {
    max-width: 400px;
    margin: 50px auto;
}

.dashboard ul {
    list-style-type: none;
    padding: 0;
}

.dashboard ul li {
    margin: 10px 0;
}

.accounting tbody tr.subtotal a,
.accounting tbody tr.total a {
    display: block;
}
.accounting tbody tr.subtotal a:hover,
.accounting tbody tr.total a:hover {
    background-color: #eef;
}

/* 1. Mettre la première colonne en gras */
table th:first-child,
table td:first-child {
  font-weight: bold;
}

/* 2. Colorer chaque ligne selon son type */
tr.sales td {     /* Ventes */
  color: #c9302c;  /* Rouge bootstrap */
}
tr.arrivals td {  /* Arrivages */
  color: #5cb85c;  /* Vert bootstrap */
}
tr.balance td {   /* Solde fin */
  color: #0275d8;  /* Bleu bootstrap */
}

/* 3. Aligner la dernière colonne à droite */
table th:last-child,
table td:last-child {
  text-align: right;
}

/* 4. Séparateur « virtuel » avant la ligne Coût des ventes
   On lui applique une bordure supérieure pour créer un espacement visuel */
tr.cost td {
  border-top: 2px solid #999;
  padding-top: 12px;  /* un peu d’air au-dessus */
}
