html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 0;
}

.sidebar {
    background-color: #295F54;
    background-image: none !important;
}

.header-content{
    background-color: #295F54 !important;
    background-image: none !important;
}

.white-icon {
    filter: brightness(0) invert(1);
}

/* Sidebar collapse */
.page.collapsed .sidebar {
    width: 60px !important;
}

.page.collapsed .nav-text {
    display: none;
}

.page.collapsed .nav-item {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

.page.collapsed .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.page.collapsed .bi {
    margin-right: 0;
    position: static;
}

.shift-layout {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    height: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.scheduler-container {
    flex-grow: 1;
    min-width: 0;
    max-height: 792px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
    background: white;
    border: 1px solid #e0e0e0;
}

.employee-container {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    max-height: 792px;
    overflow-y: auto;
    background: #f5f5f5;
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

    .employee-container h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        color: #333;
    }

.employee-tile {
    background: #e9ecef;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    border: 1px solid #d0d0d0;
    transition: background 0.2s ease;
    font-size: 0.85rem;
}

    .employee-tile:hover {
        background: #dee2e6;
    }

.e-schedule {
    font-size: 0.9rem;
}

    .e-schedule .e-timeline-view .e-time-cells-wrap,
    .e-schedule .e-timeline-view .e-work-cells {
        background-color: #f3f3f3;
    }

    .e-schedule .e-timeline-view .e-work-hours {
        background-color: #eaeaea;
    }

    .e-schedule .e-appointment {
        background-color: #295F54;
        color: #fff;
        border-radius: 4px;
        padding: 0.5rem;
        font-weight: 500;
    }
td.e-work-cells {
    min-width: 145px !important;
    width: 145px !important;
}

.event-subject{
    font-size: 1em;    
}

.e-schedule .e-timeline-view .e-content-wrap table td,
.e-schedule .e-timeline-month-view .e-content-wrap table td {
    height: 90px !important;
    min-width: 145px !important;
    width: 145px !important;
}

.e-schedule .e-timeline-month-view .e-date-header-wrap table col,
.e-schedule .e-timeline-month-view .e-content-wrap table col {
    width: 145px !important;
    min-width: 145px !important;
}

.e-schedule .e-timeline-view .e-appointment, .e-schedule .e-timeline-month-view .e-appointment {
    height: 90px !important;
    border: none !important;
    background: none !important;
    padding: 0px !important;
}

.employee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}


    .employee-avatar img {
        position: absolute;
        bottom: -4px;
        right: -4px;
        width: 16px;
        height: 16px;
        margin-bottom: -25px;
        margin-right: 12px;
    }

.initials-display {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-info {
    font-size: 1rem;
    line-height: 1.1;
    margin-top: 4px;
}

@media print {
    body * {
        visibility: hidden;
    }

    #shiftScheduler, #shiftScheduler * {
        visibility: visible;
    }

    #shiftScheduler {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100000; /* was 1050; ensure above overlays */
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
}
.toast-item {
    min-width: 260px;
    max-width: 380px;
    background: #fff;
    border-left: 6px solid #17a2b8;
    border-radius: .375rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    padding: .75rem .9rem;
    color: #333;
    pointer-events: auto;
}

.toast-title { font-weight: 600; margin-bottom: .25rem; }
.toast-success { border-left-color: #28a745; }
.toast-info    { border-left-color: #17a2b8; }
.toast-warning { border-left-color: #ffc107; }
.toast-error   { border-left-color: #dc3545; }

/* Hide scheduler toolbar completely */
.e-schedule .e-schedule-toolbar,
.e-schedule .e-toolbar,
.e-schedule-toolbar-container {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Availability highlight for drag & drop */
.available-highlight {
    box-shadow: 0 0 15px 5px rgba(40, 167, 69, 0.9) !important;
    animation: pulse-green 0.8s infinite !important;
    border-color: #28a745 !important;
}

.unavailable-highlight {
    opacity: 0.4 !important;
    filter: grayscale(50%);
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 10px 3px rgba(40, 167, 69, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px 8px rgba(40, 167, 69, 0.9);
        transform: scale(1.02);
    }
}
