body {
    font-family: Arial;
    background: #f5f6fa;
    padding: 40px;
}

.container {
    background: white;
    padding: 30px;
    max-width: 800px;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 12px;
}

label {
    display: inline-block;
    width: 180px;
    font-weight: bold;
}

input {
    padding: 6px;
    width: 220px;
}

button {
    padding: 10px 20px;
    margin-top: 10px;
    background: #2ecc71;
    border: none;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #27ae60;
}

#slip {
    display: none;
    margin-top: 30px;
    border-top: 2px solid #ddd;
    padding-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background: #ecf0f1;
}

/* ----------------------- */
.payslip {
    background: white;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #ddd;
}

.payslip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-left h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #000;
}

.header-left h3 {
    font-size: 16px;
    margin: 5px 0;
    color: #333;
}

.header-left p {
    font-size: 12px;
    color: #666;
    margin: 3px 0;
}

.header-right {
    text-align: right;
}

.company-logo {
    width: 220px;
    max-height: 80px;
    object-fit: contain;
}

.employee-name {
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.employee-name h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.employee-grid label {
    display: block;
    font-size: 11px;
    color: #666;
    font-weight: normal;
    margin-bottom: 5px;
}

.employee-grid p {
    font-size: 13px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.salary-details {
    margin-top: 30px;
}

.salary-details h4 {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin: 0 0 10px 0;
}

.salary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.salary-grid label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.salary-grid p {
    font-size: 13px;
    color: #333;
    margin: 0;
}

.earnings-contributions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 30px;
    gap: 40px;
}

.earnings h4,
.contributions h4 {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin: 0 0 10px 0;
}

.earnings table,
.contributions table {
    width: 100%;
    border-collapse: collapse;
}

.earnings table tr,
.contributions table tr {
    border-bottom: 1px solid #eee;
}

.earnings table td,
.contributions table td {
    padding: 8px 5px;
    font-size: 12px;
}

.earnings table td:first-child,
.contributions table td:first-child {
    color: #666;
}

.earnings table td:last-child,
.contributions table td:last-child {
    text-align: right;
    font-weight: 500;
}

.total {
    font-weight: bold !important;
    border-top: 2px solid #333 !important;
    padding-top: 10px !important;
}

.total td:first-child {
    color: #000 !important;
}

.total td:last-child {
    color: #000 !important;
}

.net-salary-box {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #ddd;
}

.net-salary-box h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.net-salary-box h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: #2ecc71;
}

.note {
    margin-top: 15px;
    font-size: 11px;
    color: #666;
    font-style: italic;
}