/* Mobiscroll timeline + tooltip + view-switcher styles shared by timeline consumers.
   Copied verbatim from the <style> block of CalendarioPlanComponent.razor (which keeps its own copy). */

/* Resource column width (header and body) */
.mbsc-timeline-resource-col {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
}

.mbsc-timeline-resource-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Week/Month/Quarter/Agenda switcher injected by mobiscroll-timeline.js */
.md-work-week-picker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #fff7f0;
    border: 1px solid #ffd6a5;
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: 0 2px 6px rgba(255, 165, 0, 0.2);
    font-family: 'Inter', sans-serif;
}

    .md-work-week-picker label {
        position: relative;
        cursor: pointer;
        background: white;
        border: 1px solid #ffb84d;
        border-radius: 6px;
        padding: 6px 14px;
        font-size: 14px;
        color: #ff7b00;
        font-weight: 500;
        transition: all 0.25s ease;
    }

        .md-work-week-picker label:hover {
            background: #fff0e0;
            box-shadow: 0 2px 4px rgba(255, 165, 0, 0.2);
        }

    .md-work-week-picker input[type="radio"] {
        display: none;
    }

        .md-work-week-picker input[type="radio"]:checked + label {
            background: linear-gradient(135deg, #ff9a3d, #ff7b00);
            color: white;
            border-color: #ff7b00;
            box-shadow: 0 3px 8px rgba(255, 123, 0, 0.3);
        }

@media (max-width: 600px) {
    .md-work-week-picker {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Tooltip */
.md-tooltip, .md-tooltip * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.md-tooltip {
    width: 340px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    border: none;
    animation: fadeInTooltip 0.2s ease-out;
}

.md-tooltip-header {
    background: #007bff;
    color: #fff;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    border: none;
}

.md-tooltip-time {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
    margin-bottom: 4px;
}

.md-tooltip-header-title {
    font-size: 0.98rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md-tooltip-info {
    background-color: #fff;
    padding: 14px 16px;
    line-height: 1.5;
}

.md-tooltip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 3px;
}

    .md-tooltip-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .md-tooltip-row .label {
        color: #555;
        font-weight: 600;
    }

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline fills its container */
.timeline-wrapper {
    flex: 1;
    min-width: 800px;
    height: 100%;
}
