












.calc-input-error { border-color: #e74c3c !important; }
.calc-remove { background: none; border: 1px solid #ccc; color: #999; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; transition: all 0.2s; }
.calc-remove:hover { border-color: #e74c3c; color: #e74c3c; }





.calc-presets { display: flex; gap: 8px; margin-bottom: 15px; }
.calc-preset { padding: 6px 14px; background: #fff; border: 1px solid #ddd; border-radius: 20px; color: #666; cursor: pointer; font-size: 12px; transition: all 0.2s; }
.calc-preset:hover, .calc-preset.active { border-color: #0d8059; color: #0d8059; background: #f0faf5; }










.bk-margin-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.bk-margin-table th { background: #f5f5f5; padding: 10px; text-align: left; color: #666; font-size: 12px; font-weight: 600; border-bottom: 2px solid #ddd; }
.bk-margin-table td { padding: 8px 10px; border-bottom: 1px solid #eee; color: #333; font-size: 13px; }
.bk-margin-table tr:hover td { background: #f9f9f9; }
.bk-margin-table .margin-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; }
.bk-margin-table .margin-badge.low { background: #e8f8f0; color: #1a9a5a; }
.bk-margin-table .margin-badge.medium { background: #fef5e7; color: #c07b10; }
.bk-margin-table .margin-badge.high { background: #fde8e8; color: #c0392b; }
.formula-block { background: #f8f8f8; border-left: 3px solid #0d8059; padding: 15px 20px; margin: 15px 0; border-radius: 0 6px 6px 0; font-family: 'Courier New', monospace; }
.formula-block .formula { font-size: 16px; color: #0d8059; margin: 8px 0; }

.calc-infobox dt { color: #888; font-size: 12px; margin-top: 10px; }
.calc-infobox dt:first-child { margin-top: 0; }
.calc-infobox dd { color: #333; font-size: 14px; margin: 2px 0 0 0; }

.system-type-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.system-type-label {
    font-size: 14px;
    color: #555;
    margin-right: 4px;
}

.system-type-btn {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.system-type-btn:hover,
.system-type-btn.active {
    border-color: #0d8059;
    color: #0d8059;
    background: #f0faf5;
}

.system-won-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
}

.system-won-check {
    width: 18px;
    height: 18px;
    accent-color: #0d8059;
    cursor: pointer;
}

.system-won-text {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.system-won-check:checked + .system-won-text {
    color: #1a9a5a;
}

.system-won-check:not(:checked) + .system-won-text {
    color: #c0392b;
}

.system-row-won td {
    background: #f8fdf8;
}

.system-row-lost td {
    opacity: 0.6;
}

.system-lost-text {
    color: #999;
}

@media (max-width: 600px) {
    
    
    .calc-input { max-width: 100%; }
    
    
    .bk-table th, .bk-table td { padding: 6px 4px; }
    .system-type-selector {
        flex-direction: column;
        align-items: flex-start;
    }
    .system-won-label {
        margin-top: 4px;
    }
}
