.tax-demands-container {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 15px 0;
}

.tax-demands-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.tax-demands-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tax-demands-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tax-demands-table-wrapper {
    padding: 0;
    overflow-x: auto;
}

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

/* Hide Consolidated column by default so Bifurcated mode is clean on AJAX load */
.tax-demands-table .col-consolidated {
    display: none;
}

.tax-demands-table th {
    background-color: #f8fafc;
    color: #334155;
    font-weight: 700;
    text-align: right;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    border-right: 1px solid #cbd5e1;
    white-space: nowrap;
}

.tax-demands-table th:first-child {
    text-align: left;
}

.tax-demands-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    text-align: right;
    color: #1e293b;
    font-weight: 500;
}

.tax-demands-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #0f172a;
    background-color: #f8fafc;
}

.tax-demands-table tbody tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

/* Light Sky Blue Tint for Interest Row */
    .tax-demands-table tbody tr.row-interest {
        background-color: #176b43;
    }

        .tax-demands-table tbody tr.row-interest td:first-child {
            background-color: #176b43;
            color: #ffffff;
        }

        .tax-demands-table tbody tr.row-interest td.col-bifurcated-total {
            color: #ffffff;
        }

        .tax-demands-table tbody tr.row-interest td.col-consolidated,
        .tax-demands-table tbody tr.row-interest td.col-consolidated .tax-input {
            color: #0f172a !important;
        }

        .tax-demands-table tbody tr.row-interest:hover {
            background-color: #009148;
        }

.tax-demands-table .col-total {
    background-color: #f8fafc;
    font-weight: 700;
    color: #1e3a8a;
}

.tax-demands-table tfoot tr {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    font-weight: 700;
}

.tax-demands-table tfoot td {
    border-top: 2px solid #cbd5e1;
    font-size: 15px;
    color: #0f172a;
}

.tax-demands-table tfoot td:first-child {
    background: transparent;
    font-weight: 800;
    color: #1e3a8a;
}

.tax-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.tax-badge-arrear {
    background-color: #fef3c7;
    color: #92400e;
}

.tax-badge-interest {
    background-color: #fee2e2;
    color: #991b1b;
}

.tax-badge-current {
    background-color: #e0e7ff;
    color: #3730a3;
}

.tax-currency {
    font-weight: 600;
    font-family: inherit;
}

.tax-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.tax-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.tax-input-symbol {
    background-color: #f1f5f9;
    color: #475569;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    border-right: 1px solid #cbd5e1;
}

.tax-input {
    border: none !important;
    outline: none !important;
    padding: 6px 10px;
    text-align: right;
    font-weight: 600;
    width: 100%;
    color: #0f172a;
    background: transparent;
    font-size: 14px;
}

/* Modern Radio Switch Styling */
.tax-view-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.18);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tax-view-switch input[type="radio"] {
    display: none;
}

.tax-view-switch label {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.25s ease;
    margin: 0;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tax-view-switch input[type="radio"]:checked + label {
    background: #ffffff;
    color: #1e3a8a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tax-input-readonly {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
    cursor: default;
    color: #0f172a !important;
    font-weight: 700;
}

.tax-edit-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.tax-status-editable {
    background-color: rgba(34, 197, 94, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.tax-status-readonly {
    background-color: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.tax-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    outline: none;
    user-select: none;
}

.tax-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.tax-toggle-btn.active-hidden {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.6);
    color: #ffffff;
}

.tax-data-row.tax-row-hidden {
    display: none !important;
}


