.salary-pro-page {
    max-width: var(--small-width);
    margin: 0 auto;
    padding: 24px;
}

.input-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.input-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.calc-btn {
    flex: 1;
    padding: 14px 24px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-btn:hover {
    background: #2563eb;
}

.monthly-grid {
    display: flex;
    gap: 16px;
}

.monthly-grid-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.month-header {
    display: flex;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
}

.month-row {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background: #f9fafb;
    border-radius: 8px;
    gap: 12px;
}

.month-name {
    width: 50px;
    font-size: 14px;
    color: #374151;
}

.month-field {
    flex: 1;
    text-align: center;
}

.month-input {
    flex: 1;
    width: 120px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.month-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.calc-btn:active {
    transform: scale(0.98);
}

.result-container {
    margin-bottom: 24px;
}

.result-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.result-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 20px 24px;
    color: white;
}

.result-date {
    display: flex;
    gap: 24px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-label {
    font-size: 14px;
    opacity: 0.9;
}

.date-value {
    font-size: 14px;
    font-weight: 500;
}

.warning-box {
    background: #fef3c7;
    padding: 12px 24px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid #fde68a;
}

.warning-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.warning-text {
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.detail-section {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.detail-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-icon {
    font-size: 18px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.detail-row.sub {
    padding-left: 24px;
    background: #f9fafb;
}

.detail-row.highlight {
    background: #eff6ff;
    padding: 12px 0;
}

.detail-row.total-row {
    background: #f0fdf4;
    padding: 14px 0;
    margin-top: 8px;
    border-radius: 8px;
}

.detail-label {
    font-size: 14px;
    color: #6b7280;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.detail-value.tax-value {
    color: #dc2626;
}

.detail-value.total-value {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.expandable-section {
    margin: 10px 0;
}

.expand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.expand-header .detail-label {
    flex: 1;
}

.expand-header .detail-value {
    flex: 1;
    text-align: right;
    margin-right: 12px;
}

.expand-icon {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.2s;
}

.expand-content {
    display: none;
}

.year-end-section {
    background: #fffbeb;
}

.year-end-section .section-header {
    color: #92400e;
}

.month-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-range .form-select {
    flex: 1;
}

.range-sep {
    font-size: 14px;
    color: #6b7280;
}

.yearly-table-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    overflow-x: auto;
}

.yearly-table-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.yearly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 800px;
}

.yearly-table th, .yearly-table td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.yearly-table th:first-child, .yearly-table td:first-child,
.yearly-table th:nth-child(2), .yearly-table td:nth-child(2),
.yearly-table th:nth-child(3), .yearly-table td:nth-child(3) {
    text-align: left;
}

.yearly-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.yearly-table .col-tax {
    color: #dc2626;
    font-weight: 500;
}

.yearly-table .col-net {
    color: #059669;
    font-weight: 500;
}

.yearly-table tfoot td {
    background: #f0fdf4;
    font-weight: 600;
    color: #059669;
}

.tax-table-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tax-table-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.tax-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tax-table th, .tax-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.tax-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.tax-table tr:last-child td {
    border-bottom: none;
}

.tax-table td {
    color: #4b5563;
}

@media (max-width: 768px) {
    .salary-pro-page {
        padding: 16px;
    }

    .monthly-grid {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }

    .btn-row {
        flex-direction: column;
    }

    .result-date {
        flex-direction: column;
        gap: 8px;
    }

    .warning-box {
        padding: 12px 16px;
    }

    .detail-section {
        padding: 16px;
    }

    .detail-row.sub {
        padding-left: 16px;
    }
}

@media (max-width: 480px) {
    .input-card, .tax-table-section {
        padding: 16px;
    }

    .card-title {
        font-size: 18px;
    }

    .form-input, .form-select {
        padding: 8px 12px;
        font-size: 14px;
    }

    .detail-label, .detail-value {
        font-size: 13px;
    }
}