﻿
.widget-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.dashboard-widget {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
}

.dashboard-widget.empty-widget {
    visibility: hidden
}

/* Single column widget */
.widget-container .dashboard-widget {
    width: 300px;
    min-height: 300px;
}

/* Double width widget */
.widget-container.col-md-6 .dashboard-widget {
    max-width: 624px; /* 2x300 + 24px gap */
}

/* Full width widget */
.widget-container.col-12 .dashboard-widget {
    max-width: 1272px; /* 4x300 + 3x24px gap */
}

/* Details widget - spans full width */
.detailswidget-container .dashboard-widget {
    max-width: none;
    margin-top: 32px;
}

.detailswidget-container {
    display: none;    
}

.detailswidget-button {
    background: none;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #6B7280;
    padding: 8px 16px;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-block;
    margin-top: 0;
    margin-left: 0;
}

/* Grid spacing */
.widgets-grid {
    display: grid;
    gap: 24px;
    padding: 24px;
    margin: 0 auto; /* Center the grid */
    width: 100%;
    max-width: 1338px; 
}

/* 2 widgets wide */
@media (max-width: 1272px) and (min-width: 648px) {
    .widgets-grid {
        max-width: 624px; /* 2x300 + 1x24 */
    }
}

/* 1 widget wide */
@media (max-width: 647px) {
    .widgets-grid {
        max-width: 300px;
    }
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .widget-container.col-md-6 .dashboard-widget,
    .widget-container.col-12 .dashboard-widget {
        max-width: 300px;
    }
}

.widget-content .description-line {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    min-height: 1.4rem;
}

.widget-content .description-line.high {
    color: #F74046;
}

.widget-content .description-line.compliant {
    color: #21C68A;
}

.widget-content .details-line {
    color: #9CA3AF;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    min-height: 1.4rem;
}

.widget-content .details-line.high {
    color: #F74046;
}

.widget-content .details-line.compliant {
    color: #21C68A;
}


.widget-content .text-3xl {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    width: 35px;
    height: 44px;
    font-family: 'Borna-Regular';
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.02em;
    color: #02455F;
}

.widget-content .trend {
    color: #bfbdbd;
    font-size: 0.875rem;
}

.widget-content button {
    background: none;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #6B7280;
    padding: 8px 16px;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-block;
    margin-top: 0;
    margin-left: 0;
}

.widget-content button:hover {
    color: #111827;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.widget-icon {
    background: #EDEDED;
    padding: 12px;
    border-radius: 20px;
}

.widget-icon i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.widget-title {
    width: 212px;
    height: 28px;
    font-family: 'Arial';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #535862;
}

.widget-description {
    margin-right: 60px;
    margin-left: 55px;
    font-family: 'Borna-Regular';
    font-style:normal;
    font-weight: 300;
    font-size: 20px;
    margin-bottom:50px
}

.number-trend-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.widget-content hr {
    border: 0;
    border-top: 1px solid #E5E7EB;
    margin: 16px 0;
}

.widget-header {
    position: relative; /* Nodig voor absolute positioning van de close button */
}

.close-detail-widget {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.close-detail-widget:hover {
    color: #111827;
}

.widget-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/*Tabulator aangepaste styling*/
.tabulator-footer {
    background-color: white !important;
    border-top: 1px solid #e5e7eb;
}

.tabulator-paginator {
    background-color: white !important;
}

.tabulator-footer-contents {
    background-color: white !important;
}

.tabulator-page.active {
    background-color: #268B57 !important;
    color: white !important;
    border-color: #268B57 !important;
}

.tabulator-page.active:hover {
    background-color: #268B57 !important;
    color: white !important;
}

.tabulator .tabulator-col .tabulator-col-title {
    white-space: normal;
}

.widget-info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
}

    .widget-info-tooltip .icon-info {
        color: #6B7280;
        font-size: 16px;
    }

    .widget-info-tooltip .tooltip-content {
        visibility: hidden;
        width: 300px;
        background-color: #fff;
        color: #333;
        text-align: left;
        border-radius: 6px;
        padding: 12px;
        position: absolute;
        z-index: 1;
        top: 125%;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .widget-info-tooltip:hover .tooltip-content {
        visibility: visible;
        opacity: 1;
    }