/* =========================================================================
   SMART DIARY CSS ARCHITECTURE (2026) - REFACTORED
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. VARIABLES & BASE UTILITIES
   ------------------------------------------------------------------------- */
:root {
    /* Centralised gutter controls breathing room across header and lanes */
    --diary-track-inset: 3px;
}

.SmContainer {
    /* Base container wrapper */
}

.clear {
    clear: both;
}

.fw-bold {
    font-weight: bold;
}

.text-light {
    color: #f8f9fa;
    font-style: normal;
}

.opacity-75 {
    opacity: 0.75;
}

/* Helper for the VB.NET architecture fix */
.is-visually-hidden {
    display: none !important;
}

/* -------------------------------------------------------------------------
   2. TIMELINE HEADER
   ------------------------------------------------------------------------- */
.HeaderRow {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 0 5px;
    margin-bottom: 5px;
    gap: 0;
}

.HeaderSpacer {
    flex: 0 0 95px;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.AddBookingHeader {
    background-color: #42647F;
    color: #ffffff;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    width: 65px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

    .AddBookingHeader:hover {
        background-color: #375263;
        transform: scale(1.02);
    }

    .AddBookingHeader i {
        margin-right: 4px;
    }

.TimelineContainer {
    flex: 1;
    display: flex;
    border: 1px solid silver;
    border-radius: 5px;
    overflow: hidden;
    background-color: #80ffd4;
    box-sizing: border-box;
    margin: 0 var(--diary-track-inset);
}

.TimeBlock {
    flex: 1;
    text-align: center;
    border-right: 1px solid silver;
    box-sizing: border-box;
    padding: 5px 0;
    font-family: Arial, sans-serif;
}

    .TimeBlock:last-child {
        border-right: none;
    }

/* -------------------------------------------------------------------------
   3. GRID LAYOUT & ROW CONTAINERS
   ------------------------------------------------------------------------- */
.RepRow {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 0 5px;
    margin-bottom: 10px;
    gap: 0;
}

.SmNameElement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 0 0 95px;
    min-height: 70px;
    border: 1px solid silver;
    box-sizing: border-box;
    border-radius: 5px 0 0 5px;
    padding: 5px;
    background-color: #fafafa;
}

.SmNameText {
    font-size: 11px;
    font-weight: bold;
    color: #333333;
    width: 100%;
    word-break: break-word;
}

.SmMainElement {
    flex: 1;
    min-height: 70px;
    border: 1px solid silver;
    border-left: none;
    box-sizing: border-box;
    border-radius: 0 5px 5px 0;
    padding: 0 0 var(--diary-track-inset) 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------------------
   4. SCHEDULED TRACK LANES
   ------------------------------------------------------------------------- */
.csSLane {
    position: relative;
    height: 68px;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

    .csSLane:last-child {
        border-bottom: none;
    }

.csSTrackCanvas {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--diary-track-inset);
    right: var(--diary-track-inset);
    pointer-events: auto;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* -------------------------------------------------------------------------
   5. UNSCHEDULED & UNASSIGNED HOLDING QUEUES
   ------------------------------------------------------------------------- */
.csSUnscheduledLane {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 65px;
    box-sizing: border-box;
    padding: 0;
    transition: min-height 0.2s ease, height 0.2s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.csSUnscheduledCanvas {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    background-color: #f4f6f8;
    border: none;
    border-radius: 0 4px 0 0;
    min-height: 70px;
    padding: 6px;
    transition: min-height 0.2s ease, background-color 0.2s ease;
    flex: 1;
}

    .csSUnscheduledCanvas::before {
        content: "Awaiting booked time";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #90a4ae;
        font-size: 12px;
        font-weight: normal;
        letter-spacing: 0.5px;
        pointer-events: none;
        user-select: none;
        z-index: 0;
    }

/* Empty State Overrides for TBA Rails */
.csSUnscheduledLane.is-empty-tba {
    min-height: 18px;
}

    .csSUnscheduledLane.is-empty-tba .csSUnscheduledCanvas {
        min-height: 20px;
        background-color: #e9ecef;
        border-bottom: 1px solid #cfd8dc;
        padding: 14px;
    }

        .csSUnscheduledLane.is-empty-tba .csSUnscheduledCanvas::before {
            content: "Drop jobs here to remove booked time";
        }

/* Unassigned Row Modifiers */
.RepRow.RepRow-Unassigned {
    margin-bottom: 0;
}

.SmUnassignedNameElement {
    flex: 0 0 95px;
    min-height: 70px;
    border: 1px solid #b0bec5;
    border-right: 1px solid silver;
    box-sizing: border-box;
    border-radius: 5px 0 0 5px;
    padding: 5px;
    background-color: #eceff1;
    color: #455a64;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.UnassignedDivider {
    width: 100%;
    height: 1px;
    margin: 5px 0;
}

.RepRow.RepRow-Unassigned .csSUnscheduledLane {
    margin-bottom: calc(var(--diary-track-inset) * -1);
}

.RepRow.RepRow-Unassigned .csSUnscheduledCanvas {
    border-radius: 0 4px 4px 0;
}

.RepRow.RepRow-Unassigned .SmUnassignedNameElement,
.RepRow.RepRow-Unassigned .SmMainElement {
    min-height: 30px;
    transition: min-height 0.2s ease, height 0.2s ease;
}

.csSLane[data-rep-id="0"] .csSUnscheduledCanvas::before,
.csSLane[data-rep-id=""] .csSUnscheduledCanvas::before {
    content: "Unassigned Holding Queue";
}

.csSLane[data-rep-id="0"].is-empty-tba .csSUnscheduledCanvas::before,
.csSLane[data-rep-id=""].is-empty-tba .csSUnscheduledCanvas::before {
    content: "Holding Queue Drop Zone";
}










/* -------------------------------------------------------------------------
   6. JOB BLOCKS, HOLIDAYS & INTERNAL TYPOGRAPHY
   ------------------------------------------------------------------------- */
.csSJobBlock {
    position: absolute;
    top: 3px;
    bottom: 1px;
    box-sizing: border-box;
    border-radius: 4px;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #333333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border-left: none;
}

    .csSJobBlock:hover {
        z-index: 10;
        box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    }

.csSMainJob {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 5px 3px 3px 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2px 3px 2px 14px;
}

.csSJobTitle .csSJobName,
.csSJobDetails {
    display: block;
    font-size: 11px;
    line-height: 1.3;
}

.csSJobTitle {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.csSJobDetails {
    word-break: break-word;
    overflow: hidden;
}

.csSUnscheduledLane .csSUnscheduledBlock {
    position: relative;
    top: auto;
    bottom: auto;
    flex: 0 0 100px;
    height: 60px;
    margin: 0;
    box-sizing: border-box;
    z-index: 1;
}

/* Status Indicators */
.statBox1,
.statBox2 {
    position: absolute;
    left: 0;
    width: 10px;
    height: 50%;
    box-sizing: border-box;
    border-left: 1px solid silver;
    border-right: 1px solid silver;
}

.statBox1 {
    top: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-top: 1px solid silver;
}

.statBox2 {
    bottom: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom: 1px solid silver;
}

/* Dynamic Status Backgrounds */
.csSStatusBooked {
    background-color: #aed6f1;
    border-left-color: #2e86c1;
}

.csSStatusInProgress {
    background-color: #f9e79f;
    border-left-color: #d4ac0d;
}

.csSStatusComplete {
    background-color: #abebc6;
    border-left-color: #239b56;
}

/* Timeline Blocking Events (Holiday / Absence) */
.csSHolidayBlock {
    position: absolute;
    top: 3px;
    bottom: 0;
    background: repeating-linear-gradient( 45deg, #e0e0e0, #e0e0e0 10px, #f5f5f5 10px, #f5f5f5 20px );
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    z-index: 1;
    opacity: 0.55; /* Reduced from 0.8 to increase visibility of underlying jobs */
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .csSHolidayBlock span {
        background-color: rgba(255, 255, 255, 0.85);
        padding: 2px 8px;
        border-radius: 3px;
        font-size: 11px;
        font-weight: bold;
        color: #616161;
    }

    .csSHolidayBlock.is-unapproved {
        background: repeating-linear-gradient( 45deg, #ffcdd2, #ffcdd2 10px, #ffebee 10px, #ffebee 20px );
        border-color: #ef9a9a;
    }

        .csSHolidayBlock.is-unapproved span {
            color: #d32f2f;
        }

    .csSHolidayBlock.is-absence {
        background: repeating-linear-gradient( 45deg, #fff3e0, #fff3e0 10px, #ffe0b2 10px, #ffe0b2 20px );
        border-color: #ffb74d;
    }

        .csSHolidayBlock.is-absence span {
            color: #e65100;
        }

        .csSHolidayBlock.is-absence.is-unapproved {
            background: repeating-linear-gradient( 45deg, #ffcdd2, #ffcdd2 10px, #ffebee 10px, #ffebee 20px );
            border-color: #ef9a9a;
        }

/* On Call Badge (TaskType 8) */
.csSOnCallBadge {
    margin-top: 3px;
    font-size: 10px;
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
    border-radius: 4px;
    padding: 4px 2px 3px 2px;
    text-align: center;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

    .csSOnCallBadge i {
        font-size: 10px;
        line-height: 1;
    }

    .csSOnCallBadge span {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        line-height: 1;
    }

/* -------------------------------------------------------------------------
   7. INTERACTION STATES (DRAG, DROP & RESIZE)
   ------------------------------------------------------------------------- */
.csSTrackCanvas.is-dragover {
    background-color: rgba(128, 255, 212, 0.15);
    border-color: #239b56;
    border-style: dashed;
}

.csSUnscheduledLane.is-dragover .csSUnscheduledCanvas {
    border: 1px dashed #239b56;
    padding: 5px;
}

.csSUnscheduledLane.is-empty-tba.is-dragover {
    min-height: 65px;
}

    .csSUnscheduledLane.is-empty-tba.is-dragover .csSUnscheduledCanvas {
        min-height: 70px;
        background-color: rgba(128, 255, 212, 0.15);
        border: 1px dashed #239b56;
    }

        .csSUnscheduledLane.is-empty-tba.is-dragover .csSUnscheduledCanvas::before {
            content: "Release to remove booked time";
            color: #239b56;
            font-weight: bold;
        }

.csSJobBlock.is-pending-update {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
    transition: none;
}

.csSResizeHandle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: ew-resize;
    z-index: 50;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

    .csSResizeHandle:hover {
        background-color: rgba(0, 0, 0, 0.15);
    }

.csSJobBlock.is-resizing {
    opacity: 0.8;
    z-index: 100;
    transition: none;
}

.csSDragTooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #375263;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    will-change: transform;
    pointer-events: none;
    transform-origin: center bottom;
}

    .csSDragTooltip.hidden {
        display: none;
    }

.csSDragTooltip-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #375263 transparent transparent transparent;
}

/* -------------------------------------------------------------------------
   8. COMPACT MODE OVERRIDES
   ------------------------------------------------------------------------- */
.RepRow.is-compact .SmNameElement,
.RepRow.is-compact .SmMainElement {
    min-height: 36px;
}

.RepRow.is-compact .SmNameElement {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 2px 5px;
}

.RepRow.is-compact .SmNameText {
    text-align: center;
    line-height: 1.1;
}

.RepRow.is-compact .csSOnCallBadge {
    margin-top: 0;
    width: auto;
    font-size: 9px;
    padding: 2px 4px;
    flex-direction: row;
    gap: 4px;
}

    .RepRow.is-compact .csSOnCallBadge i {
        font-size: 11px;
    }

    .RepRow.is-compact .csSOnCallBadge span {
        display: block;
        white-space: nowrap;
    }

.RepRow.is-compact .SmUnassignedNameElement {
    min-height: 36px;
    flex-direction: row;
    gap: 5px;
}

    .RepRow.is-compact .SmUnassignedNameElement i {
        margin-bottom: 0;
    }

.csSLane.csSCompactLane {
    height: 36px;
    transition: height 0.2s ease;
}

.csSCompactLane .csSJobTitle {
    line-height: 1.1;
}


    .csSCompactLane .csSJobTitle .csSJobName {
        display: inline;
        margin-left: 4px;
    }

.csSUnscheduledLane.csSCompactLane {
    min-height: 34px;
    height: auto;
}

    .csSUnscheduledLane.csSCompactLane .csSUnscheduledCanvas {
        min-height: 26px;
        padding: 2px 4px;
        gap: 2px 5px;
    }

        .csSUnscheduledLane.csSCompactLane .csSUnscheduledCanvas::before {
            font-size: 11px;
        }

    .csSUnscheduledLane.csSCompactLane .csSUnscheduledBlock {
        height: 30px;
    }

        .csSUnscheduledLane.csSCompactLane .csSUnscheduledBlock:hover .csSMainJob {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            min-width: 100px;
            z-index: 30;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }

/* -------------------------------------------------------------------------
   9. SINGLETON TOOLTIP (APPLE-ESQUE)
   ------------------------------------------------------------------------- */
.csSAppleTooltip {
    position: fixed;
    z-index: 10000;
    width: 200px;
    height: 197px;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 14px;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-sizing: border-box;
}

    .csSAppleTooltip.is-visible {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

.csSAppleTooltip-header {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.csSAppleTooltip-body {
    font-size: 11px;
    line-height: 1.4;
    color: #515154;
    word-break: break-word;
}

/* Tooltip Inheritance Overrides */
.csSAppleTooltip .text-light,
.csSAppleTooltip .text-light * {
    color: #1d1d1f !important;
}

.csSAppleTooltip .maroon {
    color: #ff3b30 !important;
}

.csSAppleTooltip .opacity-75 {
    opacity: 1 !important;
    color: #515154 !important;
}

.csSAppleTooltip .fw-bold {
    font-weight: 600 !important;
}


/* -------------------------------------------------------------------------
   10. SINGLETON MODAL DIALOGUE
   ------------------------------------------------------------------------- */
.csSModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 11000; /* Must sit above tooltips (10000) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

    .csSModalOverlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

.csSModal {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 380px;
    padding: 24px;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    box-sizing: border-box;
}

.csSModalOverlay.is-visible .csSModal {
    transform: scale(1);
}

.csSModal-icon {
    font-size: 36px;
    color: #e65100;
    margin-bottom: 12px;
}

.csSModal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.csSModal-body {
    font-size: 13px;
    color: #515154;
    margin-bottom: 24px;
    line-height: 1.4;
}

.csSModal-btn {
    background-color: #42647F;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

    .csSModal-btn:hover {
        background-color: #375263;
        transform: scale(1.02);
    }


/* -------------------------------------------------------------------------
   EMPTY STATE ALIGNMENT
   ------------------------------------------------------------------------- */
.csSEmptyStateMessage {
    margin-left: 95px; /* Matches the 95px flex-basis of the left-hand name columns */
    width: calc(100% - 95px); /* Restricts the width to prevent horizontal overflow */
    box-sizing: border-box;
}



/* =========================================================================
   TASK TILE MODIFIER (No Status Pills)
   ========================================================================= */
.csSMainJob.csSMainJob--task {
    /* Apply a clean, uniform inner padding to the box itself */
    padding: 2px 3px;
}

    .csSMainJob.csSMainJob--task .csSJobTitle,
    .csSMainJob.csSMainJob--task .csSJobDetails {
        /* Strip away the legacy offsets originally meant to clear the statBox pills */
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    /* Optional: If you want the task icon to perfectly align with the text block */
    .csSMainJob.csSMainJob--task .fa-tasks {
        margin-right: 6px;
        color: inherit;
        opacity: 0.8;
        vertical-align: baseline;
    }


/* =========================================================================
   RECURRING TASK MODIFIERS
   ========================================================================= */
.csSRecurringIcon {
    margin-right: 5px; /* Pushed to the right slightly for breathing room */
    font-size: 12px; /* Slightly increased for legibility */
    opacity: 1; /* REMOVED: The 0.65 opacity that was hiding it */
    color: #2e86c1; /* ADDED: A distinct semantic blue to make it pop */
    vertical-align: baseline;
    display: inline-block; /* Required for transform animations */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Inherit light text colour if the tile background is dark */
.csSJobDetails.text-light .csSRecurringIcon,
.csSJobName.text-light .csSRecurringIcon {
    color: #ffffff;
}

/* Subtle, playful rotation ONLY on interaction (Hover) */
.csSJobBlock:hover .csSRecurringIcon {
    transform: rotate(180deg);
}


/* -------------------------------------------------------------------------
   6. JOB BLOCKS, HOLIDAYS & TIMELINE BLOCKING MODIFIERS
   ------------------------------------------------------------------------- */

/* Unavailable Working Hours / Profile Availability (DaySwitch) */
.csSHolidayBlock.is-unavailable {
    background: repeating-linear-gradient( 45deg, #ede7f6, #ede7f6 10px, #f3e5f5 10px, #f3e5f5 20px );
    border: 1px solid #d1c4e9;
}

    .csSHolidayBlock.is-unavailable span {
        color: #512da8;
        background-color: rgba(255, 255, 255, 0.9);
    }





/* =========================================================================
   11. APPLE-ESQUE CONTEXT MENU
   ========================================================================= */
.csSAppleContextMenu {
    position: fixed;
    z-index: 12000; /* Must sit above tooltips and modals */
    min-width: 220px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transform-origin: top left;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
    box-sizing: border-box;
}

    .csSAppleContextMenu.is-visible {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        pointer-events: auto;
    }

.csSAppleContextMenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.csSAppleContextMenu-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.1s ease, color 0.1s ease;
    user-select: none;
}

    .csSAppleContextMenu-item:hover {
        background-color: #007aff;
        color: #ffffff;
    }

    .csSAppleContextMenu-item.is-danger {
        color: #ff3b30;
    }

        .csSAppleContextMenu-item.is-danger:hover {
            background-color: #ff3b30;
            color: #ffffff;
        }

.csSAppleContextMenu-icon {
    width: 20px;
    font-size: 14px;
    margin-right: 8px;
    text-align: center;
    opacity: 0.8;
}

.csSAppleContextMenu-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 6px 4px;
}

.csSAppleContextMenu-info {
    font-size: 11px;
    padding: 4px 12px 8px 12px;
    color: #86868b;
    word-break: break-word;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 6px;
}

.csSModal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.csSModal-btn.is-cancel {
    background-color: #f1f3f5;
    color: #495057;
}

    .csSModal-btn.is-cancel:hover {
        background-color: #e9ecef;
    }

.csSModal-btn.is-danger {
    background-color: #ff3b30;
}

    .csSModal-btn.is-danger:hover {
        background-color: #d32f2f;
    }



/* =========================================================================
   PUBLIC HOLIDAY BANNER
   ========================================================================= */
.csSPublicHolidayBanner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9; /* Soft alert green */
    color: #2e7d32; /* Deep readable green */
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 0px 8px 10px 10px; 
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
   
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .csSPublicHolidayBanner i {
        margin-right: 8px;
        font-size: 14px;
    }






















/* =========================================================================
   12. LIST VIEW (COMBINED) MODIFIERS & TOOLTIP EXTENSIONS - WEEK / MONTH VIEW
   ========================================================================= */
.csSListCanvas {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding: 0px 2px 2px 1.5px;
    background-color: transparent;
}

.csSJobBlock.csSListBlock {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-height: 53px;
    margin: 0;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* Override the standard 6px gap to tighten up the vertical stacking */
.csSListCanvas.csSCompactList {
    gap: 3px;
}

.csSCompactList .csSJobBlock.csSListBlock {
    min-height: 18px;
}

.csSCompactList .csSJobTitle {
    line-height: 1.1;
}

    /* ARCHITECTURAL FIX: Force TBC and HH:MM to consume identical widths for column alignment */
    .csSCompactList .csSJobTitle span[id^="bts_"] {
        display: inline-block;
        min-width: 30px; /* Matches the width of "00:00" in Arial */
        text-align: left;
    }

    .csSCompactList .csSJobTitle .csSJobName {
        display: inline;
        margin-left: 4px;
    }

/* Base state: keep extended tooltip info visually hidden on the tile */
.csSExtraTooltipData {
    display: none;
}


/* Interaction state: When JS pushes the HTML into the tooltip container, reveal it */
.csSAppleTooltip .csSExtraTooltipData {
    display: block;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #86868b;
    font-size: 11px;
}

    .csSAppleTooltip .csSExtraTooltipData strong {
        color: #1d1d1f;
        font-weight: 600;
    }

/* ARCHITECTURAL FIX: Global state to prevent tiles from blocking drop zones */
body.is-dragging-tile .csSJobBlock {
    pointer-events: none !important;
}

/* -------------------------------------------------------------------------
   JOB TYPE INDICATOR (Colour Preference Disabled)
   ------------------------------------------------------------------------- */
.csSJobTypeDot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: baseline;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset; /* Prevents light colours bleeding into the background */
}

/* 
   ARCHITECTURAL FIX: 
   Prevents separate Flexbox canvases (e.g., Service Jobs and Tasks) 
   from colliding when rendered sequentially in Week/Month views. 
*/
.csSListCanvas + .csSListCanvas {
    margin-top: 4px;
}






