#dividend-calculator {
    background-color: #f3f4f6;
    width: 100%;
    max-width: 1030px;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dv-three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dv-four-column-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
#dividend-calculator input {
	border-radius:8px !important;
}
#dividend-calculator button {
	border:none;
	background:#1D7DCA;
	padding:15px;
	color:#FFF;
}


.is-hidden {
    display: none !important; /* Use !important to ensure it overrides inline styles */
}

.dividend-filters,
.dividend-years {
    border-radius: 10px;
}

.dividend-years {
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
	padding:20px;
	gap:15px;
}


.dividend-filters label,
.dividend-years label {
    
}

.text-center {
    text-align: center;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .dv-four-column-grid,#dividend-years {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .dv-three-column-grid,
    .dv-four-column-grid {
        grid-template-columns: 1fr;
    }
}

/* Result Layout */
.dv-result-layout {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
    font-family: 'Inter', sans-serif;
    /* Assuming a nice font is available or falls back */
}

/* Sidebar */
.dv-result-sidebar {
    width: 300px;
    background: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #f3f4f6;
}

.dv-profile-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e5e7eb;
    /* Gray placeholder */
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.dv-profile-circle {
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%239ca3af"%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" /%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
}

.dv-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2rem 0;
}

.dv-sidebar-dividend {
    /*margin-top: auto;*/
    margin: 0 0 2rem 0;
}

.dv-dividend-year {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dv-dividend-rate {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: #000;
}

.dv-disclaimer {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Main Content */
.dv-result-main {
    flex: 1;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    /* Light blue gradient */
    padding: 2rem;
    min-width: 320px;
}

.dv-result-header {
    text-align: center;
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 2rem;
}

.dv-header-amount {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

/* Table */
.dv-table-wrapper {
    overflow-x: auto;
}

.dv-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.dv-results-table th {
    text-align: right;
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: #166534;
    /* Green header text */
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.dv-results-table th:first-child {
    text-align: left;
}

.dv-results-table td {
    padding: 0.75rem 1rem;
    color: #374151;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.dv-results-table tr:last-child td {
    border-bottom: none;
}

.dv-col-desc {
    text-align: left;
}

.dv-col-amount {
    text-align: right;
}

.dv-col-dividend {
    text-align: right;
    font-weight: 600;
    color: #166534;
    /* Green dividend text */
}

.dv-row-opening td {
    font-weight: 600;
}

/* Footer/Total */
.dv-results-table tfoot td {
    padding-top: 1.5rem;
    border-top: 2px solid #fff;
    border-bottom: none;
}

.dv-total-label {
    text-align: right;
    font-weight: 800;
    color: #166534;
    font-size: 1.125rem;
}

.dv-total-amount {
    text-align: right;
    font-weight: 800;
    color: #166534;
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 900px) {
    .dv-result-layout {
        flex-direction: column;
    }

    .dv-result-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f3f4f6;
        padding: 1.5rem;
    }

    .dv-result-main {
        padding: 1.5rem;
    }

    .dv-header-amount {
        font-size: 2.5rem;
    }
}