/*
 * Style pour l'application de facturation moderne.
 */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: #f5f5f9;
    color: #333;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #6c5ce7; /* violet accent */
    color: #fff;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.navbar .accent {
    color: #ffeaa7; /* pastel yellow accent */
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
}

.navbar li a {
    color: #ffeaa7;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.navbar li a.active,
.navbar li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Views */
#views {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

h1 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #6c5ce7;
}

h2 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.field label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.field input,
.field select {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background: #fafafa;
}

/* Buttons */
.button {
    background: #6c5ce7;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.button:hover {
    background: #5b4cd5;
}

.button.secondary {
    background: #e4e4f0;
    color: #6c5ce7;
}

.actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

/* Tables */
.items-table,
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.items-table th,
.items-table td,
.history-table th,
.history-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.items-table th,
.history-table th {
    background: #f0eefd;
}

/* Overview cards */
.cards-overview {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.overview-card {
    flex: 1;
    min-width: 180px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem;
    text-align: center;
}

.overview-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #6c5ce7;
}

.overview-card p {
    margin: 0.5rem 0 0;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Client list */
.clients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clients-list li {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.clients-list li:nth-child(even) {
    background: #f9f9fb;
}

.summary {
    font-size: 1rem;
}

.summary .total {
    font-weight: 600;
    font-size: 1.2rem;
}