﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Dashboard Container */
.dashboard {
    width: 100%;
    margin: 0 0;
    position: relative;
    background-color: #ffffff; 
}


.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.tab {
    padding: 5px 8px 7px 8px;
    height: 32px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    cursor: pointer;
    white-space: nowrap;
}

    .tab.active {
        background-color: #26890d;
    }

/* Page Header */
.page-header {
    position: absolute;
    /* width: 1392px;*/
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .page-header h1 {
        font-size: 18px;
        font-weight: 700;
        line-height: 20px;
        color: #000000;
    }

.filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown, .dropdown:hover {
    color: #000000;
    background-color: #FFFFFF;
    border: 1px solid #d0d0ce !important;
    border-radius: inherit;
    height: 32px;
    padding: 5px 36px 7px 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%23000000" d="M8 11L3 6h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    width: 219px;
}
    .dropdown .k-icon {
        display: none !important;
    }
    .dropdown.fiscal-year {
        width: 124px;
    }
/* Change selected item background to black and text to white */
.k-list .k-selected,
.k-listbox .k-selected,
.k-list-optionlabel.k-selected {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Main Content */
.main-content {
    position: absolute;
    top: 50px;
    width: 100%;
    /*width: 1392px;*/
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 24px;
    width: 100%;
}

.info-box {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    padding: 4px 8px 20px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .info-box.two-line {
        padding: 4px 4px 8px 4px;
    }

.box-header {
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.box-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    line-height: 20px;
}

.info-icon {
    width: 10px;
    height: 10px;
    font-size :12px;
}

.expand-btn {
    width: 20px;
    height: 20px;
    border: 1px solid #d0d0ce;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .expand-btn img {
        width: 9px;
        height: 10px;
    }

.box-number {
    padding: 10px;
    text-align: center;
    font-size: 25px;
    font-weight: 600;
    color: #000000;
    line-height: 20px;
}

.box-subtitle {
    padding: 0 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #97999b;
    line-height: 20px;
}

/* Charts Section */
.charts-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.charts-row {
    display: flex;
    gap: 24px;
    width: 100%;
}

.chart-box {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

    .chart-box .box-header {
        padding: 4px;
    }

    .chart-box .box-title {
        font-size: 13px;
    }

.chart-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.download-btn {
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .download-btn img {
        width: 32px;
        height: 32px;
    }

/* Bar Chart */
.bar-chart {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
}

.bar {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    line-height: 20px;
    min-width: fit-content;
}

.bar-client {
    background-color: #90b5d8;
}

.bar-learning {
    background-color: #7ba57b;
}

.bar-external {
    background-color: #c1c1c1;
}

.bar-general {
    background-color: #274060;
    color: #ffffff;
}

/* Legend */
.legend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #97999b;
    line-height: 20px;
}

.legend-color {
    width: 12px;
    height: 12px;
    min-width:12px;
}

    .legend-color.client {
        background-color: #90b5d8;
    }

    .legend-color.learning {
        background-color: #7ba57b;
    }

    .legend-color.external {
        background-color: #c1c1c1;
    }

    .legend-color.general {
        background-color: #274060;
    }

    /* Business Type Colors */
    .legend-color.audit {
        background-color: #48ab34;
    }

    .legend-color.consulting {
        background-color: #088392;
    }

    .legend-color.gov {
        background-color: #278a37;
    }

    .legend-color.growth {
        background-color: #23305d;
    }

    .legend-color.talent {
        background-color: #01adac;
    }

    .legend-color.tax {
        background-color: #72c0b3;
    }

    .legend-color.leadership {
        background-color: #037cb1;
    }

    .legend-color.other {
        background-color: #65666b;
    }

/* Pie Chart */
.pie-chart-box {
    width: 100%;
    display: flex;
    position:relative;
}

.pie-chart-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 0 0 0;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 4px;
    width: 257px;
}

    .pie-legend .legend-item {
        display: flex;
        align-items: center;
        width: 100%;
    }

.pie-chart-container {
    position: relative;
    width: 100%;
    }
    /* Add margin-top to SVG */
    .pie-chart-container svg {
        margin-top: -1rem;*/ 
    }

        /* Hide specific paths */
        .pie-chart-container svg path[d="M0 0 L 346 0 346 400 0 400Z"],
        .pie-chart-container svg path[d="M0 0 L 0 0 0 0 0 0Z"] {
            display: none;
        }

.pie-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pie-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 20px;
}

    .pie-label.dark {
        color: #000000;
    }

/* Last Updated */
.last-updated {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    margin-top: 20px;
}

    .last-updated p {
        font-size: 10px;
        color: #000000;
        line-height: 20px;
        text-align: right;
    }

    .last-updated strong {
        font-weight: 700;
    }

    /*tooltip barchart*/
.bar-chart {
    position: relative;
}

.bar {
    position: relative;
    cursor: pointer;
}

.bar-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    background: black;
    color: white;
    border-radius: 4px;
    padding: 7px 12px 9px 12px;
    font-size: 12px;
    min-width: 120px;
    max-width: 300px;
    white-space: nowrap;
    z-index: 10;
    transition: opacity 0.2s;
}

.bar:hover .bar-tooltip {
    visibility: visible;
    opacity: 1;
}

.bar-tooltip-arrow {
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid black;
}
/*pie chart tooltip*/

.k-chart-tooltip {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.tooltip-container {
    min-width: 120px;
    max-width: 300px;
    width: auto;
    min-height: 40px;
    max-height: 172px;
    opacity: 1;
    position: relative;
}

.tooltip-body {
    min-width: 116%;
    max-width: 296%;
    width: auto;
    min-height: 36px;
    gap: 4px;
    opacity: 1;
    padding: 7px 12px 9px 12px;
    background-color: black;
    border: none;
    /* border-radius: 4px; */
    display: flex;
    align-items: center;
}



.tooltip-text {
    min-width: 100px;
    max-width: 272px;
    width: auto;
    height: auto;
    min-height: 16px;
    opacity: 1;
    color: white;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tooltip-arrow {
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid black;
}

/* Tooltip container styles */
.custom-tooltip .k-tooltip {
    background: #000000 !important; /* Force the background to black */
    color: #FFFFFF !important; /* Ensure text color is white for contrast */
    border: none; /* Remove any default borders if present */
    box-shadow: none; /* Remove any default shadows if present */
    position: absolute;
    border-radius: 0 !important;
}

    /* Tooltip pointer styles */
    .custom-tooltip .k-tooltip .k-callout {
        color: #000000 !important; /* Force the pointer color to black */
    }
.custom-tooltip-content {
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

