* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

.navbar {
    background-color: #2e7d32; /* Dark green */
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    height: 60px; /* Fixed height */
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    white-space: nowrap; /* Prevent wrapping */
    min-width: 150px; /* Ensure enough space */
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1em; /* Consistent font size */
    line-height: 1.5; /* Consistent line height */
    white-space: nowrap; /* Prevent wrapping */
    display: inline-block;
}

.nav-links a:hover, .nav-links a.active {
    background-color: #4caf50; /* Light green */
}

.hamburger {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin: 10px 0 5px;
}

form input, form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    margin-top: 15px;
    padding: 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #388e3c;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    table-layout: auto;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
}

th {
    background-color: #2e7d32;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

button {
    padding: 6px 12px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.edit-btn { background-color: #4caf50; color: white; }
.delete-btn { background-color: #ef5350; color: white; }
.view-btn { background-color: #0288d1; color: white; }
.add-btn { background-color: #2e7d32; color: white; margin: 10px 0; }

h3.report-heading {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center !important;
    margin: 15px 0;
}

pre {
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Data Entries table specific styles */
table.data-entries th, table.data-entries td {
    padding: 8px;
}

table.data-entries .col-entry-number { max-width: 100px; }
table.data-entries .col-date { max-width: 100px; }
table.data-entries .col-bill-number { max-width: 100px; }
table.data-entries .col-client { max-width: 150px; }
table.data-entries .col-description { 
    max-width: 200px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
table.data-entries .col-amount { 
    max-width: 100px; 
    text-align: right; 
}
table.data-entries .col-payment-status { max-width: 120px; }
table.data-entries .col-actions { 
    max-width: 120px; 
    white-space: nowrap; 
}

table.data-entries .col-actions button {
    padding: 4px 8px;
    margin: 0 2px;
    font-size: 0.9em;
}

table.data-entries .col-description:hover {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #2e7d32;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    .nav-links a {
        white-space: normal; /* Allow wrapping on mobile */
    }

    table.data-entries {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Print styles */
@media print {
    .navbar, .actions, button {
        display: none;
    }
    .container {
        padding: 0;
    }
    .header {
        text-align: center;
        margin-bottom: 20px;
    }
    .header h1 {
        font-size: 24pt;
    }
    .header p {
        font-size: 12pt;
    }
    table {
        width: 100%;
    }
}