﻿

.table-responsive {
    overflow-x: auto;
    padding: 0.5em 0px
}

.table1 {
    font-family: 'Arial';
    color: #555555;
    table-layout: fixed;
    width: max-content !important;
}

    .table1 tr th {
        background-color: #0056b3;
        color: white;
    }

    .table1 tr th, .table1 tr td {
        min-width: 100px;
        padding: 5px 30px 5px 10px;
        text-align: left;
        word-wrap: break-word;
        white-space: normal;
        vertical-align: bottom;
    }

    .table1 tr td {
        border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    }

.tabs-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.tabs {
    display: flex;
    align-content:center;
    margin-bottom: 20px;
    max-width: 300px;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: #eee;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius:4px;
    transition: background 0.3s;
    color: #0d50a0;
    font-weight: 500;
}

    .tab.active {
        background: #f58220;
        color: #fff;
        font-weight: bold;
    }

.tab-content {
    flex: 1;
    padding: 15px;
    border: 1px solid #ccc;
    background: #fafafa;
    border-radius: 0 0 5px 5px;
    font-size: 15px;
    color: #333;
}

.tab-innerContainer {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    justify-content:space-between;
}

.tabs {
    display: flex;
    gap: 10px; /* spacing between role buttons */
    width: 100%;
}

.tab {
    padding: 6px 12px;
    border: 1px solid #000;
    cursor: pointer;
    user-select: none;
}

    .tab:focus {
        outline: 2px solid #007bff;
    }

.nav-download {
    padding: 6px 14px;
    cursor: pointer;
}

.date-search {
    display: flex;
    align-items: center;
    gap: 8px; /* space between all items */
    flex-wrap: wrap;
}

    /* label spacing control */
    .date-search label {
        margin-right: 4px;
        font-size: 14px;
        color: #333;
    }

    .date-search input[type="date"] {
        padding: 6px 8px;
        border: 1px solid #000;
        border-radius: 4px;
        outline: none;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        .date-search input[type="date"]:hover,
        .date-search input[type="date"]:focus {
            border-color: #007bff;
        }

.d-button {
    display: flex;
    flex-direction: row;
}

.btn-search, .nav-download {
    padding: 6px 14px;
    cursor: pointer;
    color: black;
    border: 1px solid #007bff;
    border-radius: 4px;
    background-color: transparent;
}

    .btn-search:hover, .nav-download:hover {
        background: #0056b3;
        color: #fff;
    }

.icon {
    stroke-dasharray: 150;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s ease, color 0.3s ease;
    color: black;
}

.btn-search:hover .icon {
    stroke-dashoffset: 150;
    color: white;
}

.btn-search:hover .icon {
    animation: draw 2s ease forwards;
}

@keyframes draw {
    from {
        stroke-dashoffset: 150;
    }

    to {
        stroke-dashoffset: 0;
    }
}

fw-bold {
    font-weight: bold;
}

@media (max-width: 948px) {
   
    .chart-filter {
        width: 30%;
    }
    .date-search {
       width:50%
    }
        .date-search input {
            width:30% !important;
        }
}
@media (max-width: 768px) {
    .tab-innerContainer {
        flex-direction: column !important;
        gap: 10px;
        align-items: flex-start;
    }

    .chart-filter {
        width: 100% !important;
    }

    .date-search {
        width: 80%
    }
    .selectfund {
        width: 100%;
       
    }
        
}

.main-container {
    max-width: 1200px;
    padding: 0px 20px;
    margin: 20px auto 20px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

h2.section-title {
    font-size: 32px;
    margin: 20px 0 20px;
    color: #0d50a0;
}

.main-container .section-title {
    flex-basis: 100%; /* Take full row */
    width: 100%; /* Ensure it stretches */
    text-align: center; /* Optional: center align */
}


.shortname
{
    display:flex;justify-content:center;
}
.table2
{
    width:100% !important;
}
.table2 tr td, .table2 tr th {
    border: 1px solid rgba(0, 0, 0, 0.5);
}
.table2 tr th
{
    text-align:center;
}

.table2 tr:nth-child(even) {
    background: #f2f2f2;
}

.table2 tr:hover {
    background: #ddd;
}
.w-25{
    width:25% !important;
}

#chart-container {
    height: 400px;
    margin-bottom: 20px;
    margin-top: 20px;
}
.chart-filter{width:40%;}

.selectfund {
    padding: 6px 10px;
    width: 75%;
    border: 1px solid #000;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .selectfund:hover,
    .selectfund:focus {
        border-color: #007bff;
    }
