﻿/*JOB ROSTER SCHEDULER*/

.e-schedule .e-table-wrap .e-resource-left-td {
    width: 300px;
}

.e-schedule .e-table-wrap .e-parent-node {
    padding-left: 2px;
}

.e-schedule .e-schedule-table .weekend {
    background-color: #EEEEEE !important;
}

.e-schedule .e-schedule-table .current-day {
    background-color: #FFF3E0 !important;
}

.e-schedule .e-appointment-details .e-indicator {
    color: gray;
}

.e-timeline-month-view .e-schedule-table col {
    width: 140px !important;
}

/*JOB ROSTER MULTIPLE SELECTION*/
.e-schedule .e-appointment.selected-event {
    box-shadow: 0 0 0 3px #2196f3 !important;
    z-index: 1000 !important;
    position: relative !important;
}

.e-schedule .e-appointment.selected-event {
    box-shadow: 0 0 0 3px #2196f3 !important;
    z-index: 1000 !important;
    position: relative !important;
}

.e-schedule .e-appointment.selected-event::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    z-index: 1001;
}

.e-schedule .e-appointment.multi-selected-event {
    box-shadow: 0 0 0 2px #9c27b0 !important;
    z-index: 999 !important;
}

.e-schedule .e-appointment.multi-selected-event::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    color: white;
    font-weight: bold;
    font-size: 10px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    background-color: #9c27b0;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

/*Job Scheduler Loading*/

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*JOB EVENT TEMPLATE*/
.e-time {
    font-weight: 400;
}

.e-subject {
    font-weight: 400 !important;
}

/* job floater icons */
.job-floater-icon {
    display: none;
}

/* When combined with show-job-floater-red, display and color red */
.job-floater-icon.show-job-floater-red {
    display: inline-block;
    color: var(--mud-palette-error);
}

/* When combined with show-job-floater-green, display and color green */
.job-floater-icon.show-job-floater-green {
    display: inline-block;
    color: var(--mud-palette-success);
}

/* unresolved icons */
.job-unresolved-notes-icon {
    display: none;
}
.show-unresolved-notes .job-unresolved-notes-icon {
    display: inline-block;
}

/* status icons */
.job-timesheet-status-icon {
    display: none;
}

.job-timesheet-status-icon-green {
    color: var(--mud-palette-success);
}

.job-timesheet-status-icon-amber {
    color: var(--mud-palette-warning);
}

.job-timesheet-status-icon-red {
    color: var(--mud-palette-error);
}

/* Show icons */
.show-timesheet-status .job-timesheet-status-icon {
    display: inline-block;
}

/* Flexbox layout */
.e-inner-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.event-content {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-icons {
    display: flex;
    align-items: center;
    margin-top: 8px;
    white-space: nowrap;
}

/*JOB EVENT TOOLTIP*/
/* Job Event Tooltip Styles */
.job-event-tooltip {
    padding: 8px;
    max-width: 350px;
}

.job-event-tooltip__header {
    display: flex;
    align-items: center;
}

.job-event-tooltip__icon {
    margin-right: 4px;
}

.job-event-tooltip__title {
    margin-left: 4px;
    font-weight: 500;
}

.job-event-tooltip__shift {
    display: flex;
    align-items: center;
}

.job-event-tooltip__shift-icon {
    font-size: 1rem;
    margin-right: 4px;
}

.job-event-tooltip__shift-text {
    margin-top: -2px;
}

.job-event-tooltip__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-event-tooltip__field {
    display: flex;
    flex-direction: column;
}