body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f6f8fa;
    margin: 0;
    min-height: 100vh;
}
.logo-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:16px;
    gap:24px;
}
.logo-box {
    width:160px;
    height:64px;
    border:2px dashed #c2d1dc;
    border-radius:10px;
    background:#eef3f7;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    font-size:0.9em;
    color:#5a6b78;
    letter-spacing:0.5px;
}
.container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px 28px 24px 28px;
}
h1 {
    text-align: center;
    font-size: 2.1em;
    font-weight: 600;
    margin-bottom: 28px;
    color: #222;
}
form label {
    display: block;
    margin-top: 18px;
    font-weight: 500;
    color: #444;
}
.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
input, select {
    width: 250px;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 7px;
    font-size: 1em;
    background: #f9fafb;
    transition: border-color 0.2s;
}
input:focus, select:focus {
    border-color: #007bff;
    outline: none;
}
.input-prefix, .input-suffix {
    font-weight: bold;
    color: #555;
    margin-right: 4px;
    margin-left: 4px;
}
.result {
    margin-top: 32px;
    background: linear-gradient(90deg, #e3eafc 0%, #f6f8fa 100%);
    padding: 22px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.result h2 {
    margin-top: 0;
    font-size: 1.3em;
    color: #007bff;
}
.result p {
    font-size: 1.08em;
    margin: 10px 0;
    color: #222;
}
button[type="submit"] {
    margin-top: 28px;
    width: 100%;
    padding: 12px;
    font-size: 1.13em;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
button[type="submit"]:hover {
    background: linear-gradient(90deg, #0056b3 0%, #007bff 100%);
    box-shadow: 0 4px 16px rgba(0,123,255,0.12);
}
.form-frame {
    background: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 18px 16px 12px 16px;
    margin-bottom: 22px;
}
.frame-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.08em;
    font-weight: 600;
    color: #007bff;
    letter-spacing: 0.5px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}
th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid #d0d7de;
}
th {
    background: #e3eafc;
    font-weight: 600;
}
tfoot tr {
    background: #f6f8fa;
    font-weight: 600;
}
#add-unit-btn {
    margin-bottom: 8px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 1em;
    cursor: pointer;
}
#tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.deal-tab {
    padding: 8px 18px;
    border: none;
    border-radius: 7px 7px 0 0;
    background: #e3eafc;
    color: #222;
    font-weight: 600;
    cursor: pointer;
}
.deal-tab.active {
    background: #007bff;
    color: white;
}
.pos-value { color:#28a745 !important; }
.neg-value { color:#d9534f !important; }
