/* General Layout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Section Spacing */
div {
    margin-bottom: 15px;
}

/* Labels and Inputs */
label {
    font-weight: 600;
    display: inline-block;
    width: 160px;
    margin-bottom: 5px;
}

input[type="text"],
input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Buttons */
button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

button:active {
    transform: translateY(1px);
}

/* Specific Button Styles */
button[onclick="processTrade()"] {
    background-color: #28a745;
    color: white;
    font-size: 16px;
}

button[onclick="processTrade()"]:hover {
    background-color: #218838;
}

button[onclick="addIssue()"],
button[onclick="removeIssue()"] {
    background-color: #6c757d;
    color: white;
    width: 40px;
    font-size: 18px;
}

button[onclick="addIssue()"]:hover { background-color: #5a6268; }
button[onclick="removeIssue()"]:hover { background-color: #c82333; }

/* Issue Table Logic */
#issue-list {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.issue-row, 
div[style*="display: flex; flex-direction: row;"] {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* Column Widths to ensure Header and Rows align */
.issue-row input[type="text"], 
div[style*="flex-direction: row;"] div:nth-child(1) {
    flex: 3;
}

.issue-row input[type="number"], 
div[style*="flex-direction: row;"] div:nth-child(2) {
    flex: 1.5;
}

.issue-row input[type="checkbox"], 
div[style*="flex-direction: row;"] div:nth-child(3) {
    flex: 0.5;
    text-align: center;
}

/* Header for Issues */
div[style*="flex-direction: row;"] div {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    font-weight: bold;
}

/* Badge for #21 */
label[for="default-name"] + label {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    width: auto;
    color: #495057;
}