﻿
.Dashboard_LastRefreshDate {
    float: right;
    margin-right: 5px;
}

.Dashboard_SelectYourCharts {
    float: left;
    margin-left: 5px;
}


/* Job Type Selection Modal Overlay */
.job-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

    .job-filter-overlay.active {
        display: block;
    }

/* Modal Container */
.job-filter-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    width: 600px;
    max-width: 90%;
}

    .job-filter-modal.active {
        display: block;
    }

.job-filter-header {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Alphabetical List */
.job-filter-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    max-height: 250px;
    overflow-y: auto;
}

.job-filter-item {
    padding: 10px;
    margin-bottom: 4px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

    .job-filter-item:hover {
        background: #f0f0f0;
    }

    /* Selected State */
    .job-filter-item.selected {
        background: #e3f2fd;
        border-color: #2196f3;
        font-weight: bold;
        color: #0d47a1;
    }

/* Action Buttons */
.job-filter-actions {
    text-align: right;
}

.job-filter-btn {
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.btn-update {
    background: #4caf50;
    color: white;
}

.btn-cancel {
    background: #f44336;
    color: white;
}

#lnkEngFilters, #lnkRevFilters, #lnkPartsFilters, #lnkProductsFilters {
    text-decoration: none;
    color: #007bff;
    font-size: 13px;
    margin-bottom: 0px;
    margin-right: 5px;
    cursor: pointer;
    display: inline-block;
}

    #lnkEngFilters:hover, #lnkRevFilters:hover, #lnkPartsFilters:hover, #lnkProductsFilters:hover {
        text-decoration: underline;
        color: #0056b3;
    }

/* Ensure it floats right and clears correctly above the chart canvas */
.fr#lnkEngFilters, .fr#lnkRevFilters, .fr#lnkPartsFilters, fr#lnkProductsFilters {
    float: right;
    clear: both;
}


/* Container for side-by-side filter lists */
.job-filter-columns {
    display: flex;
    gap: 20px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.job-filter-column {
    flex: 1; /* Equal width columns */
    min-width: 0;
}

.job-filter-column-title {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 8px;
    color: #333;
}


/* --- Revenue Filter Modal Checkboxes --- */

/* Wrapper for the label and checkbox to keep them perfectly aligned */
.rev-check-wrapper {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #444;
    white-space: nowrap;
    cursor: pointer;
}

/* The checkbox itself - applies the spacing */
.rev-field-chk {
    margin: 0 6px 0 0 !important; /* Applies a strict 6px gap to the right of the checkbox */
    cursor: pointer;
    transform: scale(1.1); /* Slightly scales up the checkbox for better clickability, matching your other inputs */
}





.aspect-ratio-box {
    position: relative; /* Necessary for positioning the content */
    width: 100%;
    height: 0; /* 2. Height is zero, forced by padding */
    padding-top: 49.5%;
}

/* Content layer positioned over the padding area */
.aspect-ratio-content {
    position: absolute; /* Position content over the forced space */
    top: 0;
    left: 0;
    width: 95%;
    height: 95%;
    box-sizing: border-box; /* Ensures padding is inside the 100% height/width */
    overflow: auto; /* Allows content to scroll if it exceeds the box size */
}


.WidgetHeight {
    margin-top: 13px;
    width: 100%;
    border-radius: 8px; /* Slightly softer corners than the original 5px */
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    overflow: hidden; /* Ensures the blue header stays within the rounded corners */
    /* ARCHITECT ADDITION: Professional layered shadow for realistic depth */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease-in-out;
}

    /* Optional: Add a subtle lift effect when a user hovers over the widget */
    .WidgetHeight:hover {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    }

    .WidgetHeight h4 {
        background-color: #F0F8FF; /* Your pale blue */
        border-bottom: 1px solid #e0e0e0;
        padding: 10px 15px;
        margin: 0;
        font-size: 14px;
        color: #333;
        font-weight: bold;
        display: flex; /* Allows us to push filter links to the right */
        justify-content: space-between;
        align-items: center;
    }

    .WidgetHeight h4 span {
     float:right;
    }


.WidgetHeading{position:relative;padding-left:5px;padding-right:5px;top:-6px;overflow:auto;}






/* --- Widget Header Tooltips --- */
.widget-title-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Spacing between the icon and the heading */
}

.widget-info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    background-color: #999;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    position: relative;
    flex-shrink: 0;
}

    .widget-info-icon:hover {
        background-color: #666;
    }

/* The hidden tooltip text - Shifted to the right */
.widget-info-tooltip {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 8px 10px;
    position: absolute;
    z-index: 1000;
    /* Pivot adjustment: Anchor slightly to the left of the icon, expanding rightwards */
    top: 140%;
    left: -10px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    white-space: normal;
}

    /* The directional arrow (caret) pointing up to the icon */
    .widget-info-tooltip::after {
        content: "";
        position: absolute;
        bottom: 100%; /* Positions it directly on top of the black bubble */
        left: 18px; /* Aligns the arrow horizontally underneath the circular icon */
        margin-left: -6px; /* Centring offset based on border-width */
        border-width: 6px;
        border-style: solid;
        /* Draws a triangle pointing upwards using CSS borders */
        border-color: transparent transparent #333 transparent;
    }

/* Show on hover (Keep your existing hover rule) */
.widget-info-icon:hover .widget-info-tooltip {
    visibility: visible;
    opacity: 1;
}

/* --- Custom Toast Notifications --- */
.custom-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #d32f2f; /* Professional deep red for warnings */
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 12px 20px;
    position: fixed;
    z-index: 9999; /* Ensure it floats above all modals and overlays */
    left: 50%;
    top: 20px; /* Start slightly higher for the slide-in effect */
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
}

    /* The active state that triggers the animation */
    .custom-toast.show {
        visibility: visible;
        opacity: 1;
        top: 80px; /* Slides down to its final resting place */
    }
