.wfm-mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    text-align: center;
}

.wfm-mini-calendar-header span {
    font-weight: 600;
}

.wfm-mini-calendar-week > * {
    min-width: 0;
}

.wfm-mini-calendar-week .btn {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}

/* Calendar View Enhancements */
.fc-event {
    font-size: 0.85em;
    border-radius: 4px;
    padding: 2px 4px;
}

.fc-event-title {
    font-weight: 500;
}

.fc-daygrid-event {
    margin: 1px 0;
}

.fc-toolbar-title {
    font-size: 1.5em;
    font-weight: 600;
}

.fc-button {
    background-color: #0d6efd;
    border-color: #0d6efd;
    text-indent: 0 !important;
    overflow: visible !important;
}

.fc-button .fc-icon {
    display: inline-block !important;
    vertical-align: middle !important;
}

.fc-button:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.fc-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.fc-today-button {
    background-color: #6c757d;
    border-color: #6c757d;
}

.fc-today-button:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

/* Status-specific styling */
.fc-event.status-requested {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

.fc-event.status-confirmed {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

.fc-event.status-in_progress {
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.fc-event.status-completed {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.fc-event.status-rejected {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.fc-event.status-cancelled {
    background-color: #343a40 !important;
    border-color: #343a40 !important;
}

/* Modal enhancements */
.modal-body .row {
    margin-bottom: 0.5rem;
}

.modal-body .row:last-child {
    margin-bottom: 0;
}

/* RO Calendar specific styles */
.draggable-ro {
    cursor: move;
    transition: all 0.2s ease;
}

.draggable-ro:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fc-resource-timeline .fc-timeline-slot {
    border-right: 1px solid #ddd;
}

.fc-resource-timeline .fc-timeline-slot:nth-child(even) {
    background-color: #f8f9fa;
}

/* Mechanic load indicators */
.mechanic-load {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    border: 2px solid #ddd;
    position: relative;
    overflow: hidden;
}

.mechanic-load::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #28a745 0%, #ffc107 70%, #dc3545 100%);
    transition: height 0.3s ease;
}

.mechanic-load[data-load="0"]::after { height: 0%; }
.mechanic-load[data-load="25"]::after { height: 25%; }
.mechanic-load[data-load="50"]::after { height: 50%; }
.mechanic-load[data-load="75"]::after { height: 75%; }
.mechanic-load[data-load="100"]::after { height: 100%; }

/* UKG-style timecard table */
.wfm-timecard-table {
    font-size: 0.875rem;
}

.wfm-timecard-table th {
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
}

.wfm-timecard-table td {
    vertical-align: middle;
    padding: 0.5rem 0.6rem;
}

.wfm-timecard-table tfoot td {
    border-top: 2px solid #dee2e6;
}

/* Mini-calendar day markers */
.wfm-cal-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    padding-bottom: 10px !important;
}

.wfm-cal-dots {
    display: flex;
    gap: 2px;
    justify-content: center;
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
}

.wfm-cal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.wfm-cal-dot-shift {
    background-color: #6c3fc5;
}

.wfm-cal-dot-approved {
    background-color: #198754;
    color: #198754;
    width: auto;
    height: auto;
    font-size: 7px;
    line-height: 1;
    border-radius: 0;
}

.wfm-cal-dot-pending {
    background-color: #ffc107;
}

/* RO priority badges */
.priority-high { background-color: #dc3545 !important; }
.priority-medium { background-color: #ffc107 !important; color: #000 !important; }
.priority-low { background-color: #28a745 !important; }