* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
    font-size: 13px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.header-row {
    display: flex;
    border: 1px solid #000;
    margin-bottom: 20px;
}

.header-left {
    flex: 2;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-right: 1px solid #000;
}

.header-right {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th,
td {
    border: 1px solid #000;
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
}

/* Headers */
.section-header {
    background: #d6dce4;
    font-weight: bold;
    font-size: 13px;
    text-align: left;
    padding-left: 10px;
}

.sub-header {
    background: #e0e6ed;
    font-weight: bold;
}

.row-label {
    font-weight: bold;
    background: #f0f0f0;
    text-align: left;
    padding-left: 10px;
}

/* Inputs */
input[type="number"],
input[type="text"] {
    width: 100%;
    min-width: 60px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    padding: 4px;
    font-family: inherit;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]:focus,
input[type="text"]:focus {
    outline: 2px solid #4a90d9;
    background: #fffde7;
}

/* Calculated & Readonly */
input[readonly],
.calculated {
    background: #e8f4e8;
    font-weight: bold;
    color: #2e7d32;
}

input[readonly]:focus {
    outline: none;
    background: #e8f4e8;
}

/* Buttons */
.button-group {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: white;
}

.btn-primary {
    background: #4a90d9;
}

.btn-secondary {
    background: #6c757d;
}

.btn:hover {
    opacity: 0.9;
}

/* Print */
@media print {
    @page {
        size: A4 landscape;
        margin: 0.5cm;
    }

    .btn,
    .button-group {
        display: none !important;
    }

    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }

    input {
        border: none !important;
    }
}