/* ...przenieś cały kod z <style> calculation.html tutaj... */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0 0 40px 0;
}
h1 {
    text-align: center;
    margin-top: 30px;
    color: #2c3e50;
}
h2 {
    color: #34495e;
    margin-top: 30px;
}
button, input[type="submit"] {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 16px;
    cursor: pointer;
    margin: 4px 0;
    transition: background 0.2s;
}
button:hover, input[type="submit"]:hover {
    background: #217dbb;
}
.close-modal {
    position: absolute;
    right: 10px; top: 10px;
    font-size: 22px;
    cursor: pointer;
    border: none;
    background: none;
    color: #888;
}
.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 28px 28px 18px 28px;
    border-radius: 12px;
    min-width: 420px;
    width: 500px;
    max-width: 95vw;
    position: relative;
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
}
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #2980b9;
}
.modal-content form > button[type="submit"] {
    width: 100%;
    margin-top: 18px;
}
.modal-content select,
.modal-content input[type="number"],
.modal-content input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    min-width: 380px;
    margin-bottom: 12px;
    padding: 7px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
}
.container {
    /* max-width: 900px; */
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}
table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    margin: 32px 0 32px 0;
}
th {
    background: #2980b9;
    color: #fff;
    font-weight: 500;
    padding: 10px 8px;
    text-align: left;
}
td {
    padding: 8px;
}
tr:nth-child(even) td {
    background: #f3f6fa;
}
.edit-mode td {
    background-color: #eaf6fb !important;
}
.form-section {
    margin: 24px 0;
}
.hidden {
    display: none;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.5);
}
