/* Color Palette: Dark Purple (#4a148c), Light Purple (#7c43bd), Accent Green (#8bc34a) */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    background-color: #333; /* Dark background */
    color: #fff; 
}
header { 
    text-align: center; 
    padding: 20px 0; 
    background-color: #4a148c; /* Dark Purple Header */
    color: #fff; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
h1, h2, h3 { color: #fff; margin-top: 0; }
h3 { border-bottom: 2px solid #7c43bd; padding-bottom: 5px; margin-bottom: 15px; }

/* Tabs */
.tabs { background-color: #383838; padding: 10px 0; display: flex; justify-content: center; }
.tab-button { 
    padding: 12px 25px; 
    cursor: pointer; 
    border: none; 
    background-color: #5d3599; /* Medium Purple for inactive */
    color: #fff; 
    font-weight: bold;
    margin: 0 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.tab-button:hover { background-color: #7c43bd; }
.tab-button.active { 
    background-color: #7c43bd; /* Light Purple for active */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Content & Boxes */
.tab-content { 
    display: none; 
    padding: 30px; 
    margin: 20px;
    background-color: #424242; /* Darker content background */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
.tab-content.active { display: block; }
.header-details label { margin-right: 30px; margin-bottom: 15px; display: inline-block; font-weight: 600; }

/* Table Styling */
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { 
    border: 1px solid #555; /* Darker border */
    padding: 10px; 
    text-align: center; 
    font-size: 0.9em;
}
th { background-color: #6a1b9a; /* Deep Purple Header */ color: #fff; }
td { background-color: #4e4e4e; }

/* Input Fields */
input[type="text"], input[type="number"], input[type="date"], input[type="time"] { 
    width: 90%; 
    padding: 8px; 
    border: 1px solid #7c43bd; 
    background-color: #333; /* Dark input background */
    color: #fff;
    border-radius: 4px;
}
span { display: block; padding: 8px; }

/* Summary Boxes */
.section-box { 
    border: 2px solid #7c43bd; 
    padding: 20px; 
    margin-top: 25px; 
    border-radius: 8px; 
    background-color: #3a3a3a; 
}
.section-box label { display: block; margin-bottom: 15px; font-weight: 500; }
h4 { color: #8bc34a; /* Accent Green for section titles */ border-bottom: 1px dashed #7c43bd; padding-bottom: 5px; }

/* Highlight Totals */
.auto-total { 
    font-weight: bold; 
    color: #ffb74d; /* Warm Orange for visibility */ 
    font-size: 1.2em; 
    display: inline-block;
    min-width: 80px; /* Ensures alignment */
    text-align: right;
    padding-left: 10px;
}
.final-reconciliation { 
    background-color: #5d3599; /* Strong Purple for final total */ 
    border: 3px solid #8bc34a; 
    color: #fff;
}
.final-reconciliation .auto-total { color: #8bc34a; font-size: 1.5em; }