.tool-salary-calculator {
    background-color: var(--background-color);
}

.tool-salary-calculator .salary-calculator-wrapper {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.salary-calculator-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.salary-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.salary-mode-btn {
    flex: 1 1 0;
    min-width: 8rem;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    color: #1F2937 !important;
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.salary-mode-btn:hover,
.salary-mode-btn:focus {
    border-color: #3B82F6;
    color: #1F2937 !important;
}

.salary-mode-btn.is-active,
.salary-mode-btn.is-active:hover {
    background: #3B82F6;
    border-color: #3B82F6;
    color: #ffffff !important;
}

.tool-salary-calculator .form-control-lg,
.tool-salary-calculator .form-select-lg {
    font-size: 1.1rem;
    padding: 0.7rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
}

.tool-salary-calculator .form-control-lg:focus,
.tool-salary-calculator .form-select-lg:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}

.tool-salary-calculator .btn-accent {
    background-color: #22C55E;
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.tool-salary-calculator .btn-accent:hover,
.tool-salary-calculator .btn-accent:focus {
    background-color: #16a34a;
    color: #ffffff !important;
}

.tool-salary-calculator .btn-secondary {
    background-color: #6c757d;
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.tool-salary-calculator .btn-secondary:hover,
.tool-salary-calculator .btn-secondary:focus {
    background-color: #5a6268;
    color: #ffffff !important;
}

.tool-salary-calculator .result-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    text-align: center;
    height: 100%;
}

.tool-salary-calculator .result-card-accent {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.tool-salary-calculator .result-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-salary-calculator .result-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #3B82F6;
    word-break: break-word;
}

.tool-salary-calculator .result-card-accent .result-value {
    color: #15803d;
}

.salary-breakdown {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.salary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #1F2937;
}

.salary-row:last-child {
    border-bottom: none;
}

.salary-row:nth-child(odd) {
    background: #f8fafc;
}

.salary-table {
    font-size: 0.9rem;
}

.salary-table th {
    white-space: nowrap;
    background: #f8fafc;
    color: #1F2937;
}

.salary-table tr.is-current td {
    background: #dcfce7;
    font-weight: 600;
}

.salary-sheet-table {
    font-size: 0.75rem;
    white-space: nowrap;
}

.salary-sheet-table th {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    min-width: 5.5rem;
    max-width: 7.2rem;
    vertical-align: bottom;
}

.salary-sheet-table th:first-child,
.salary-sheet-table td:first-child,
.salary-sheet-table tfoot th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #f8fafc;
    min-width: 5.5rem;
}

.salary-sheet-table td,
.salary-sheet-table tfoot th {
    text-align: right;
    vertical-align: middle;
}

.salary-sheet-table td:first-child,
.salary-sheet-table tfoot th:first-child {
    text-align: left;
}

.salary-sheet-table .form-control {
    min-width: 6.5rem;
    width: 6.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.4rem;
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
    text-align: right;
}

.salary-sheet-table .form-control:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.12);
}

.salary-sheet-table .form-control.is-locked {
    background: #f8fafc;
    color: #111827;
    cursor: default;
    border-color: #e5e7eb;
    box-shadow: none;
}

.salary-sheet-table.is-gross-mode th:nth-child(2),
.salary-sheet-table.is-net-mode th:nth-child(12) {
    color: #15803d;
}

.salary-sheet-table tfoot th {
    background: #f3f4f6;
    font-weight: 700;
}

.tool-salary-calculator .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    border: 2px solid #d1d5db;
}

.tool-salary-calculator .form-check-input:checked {
    background-color: #3B82F6;
    border-color: #3B82F6;
}

.tool-salary-calculator .form-check-label {
    color: #1F2937;
}

@media (max-width: 767.98px) {
    .salary-mode-btn {
        flex: 1 1 100%;
    }

    .tool-salary-calculator .d-flex.gap-3 {
        flex-direction: column;
    }

    .tool-salary-calculator .btn-lg {
        width: 100%;
    }
}
