        /* -- PRIMARY BRAND COLOR -- */
        :root {
          --accent-color: #F78E1E; /* your main logo color */
          --col-wid-lg: 200px;
          --col-wid-med: 120px;
          --col-wid-sm: 80px;
        }

        /* === GLOBAL RESETS & BASE STYLES === */
        * {
          box-sizing: border-box;
          margin: 0;
          padding: 0;
        }
        html, body {
          height: 100%;
        }
        body {
          font-family: "Segoe UI", Tahoma, Helvetica, Arial, sans-serif;
          font-size: 15px;
          line-height: 1.5;
          background-color: #f5f5f5; /* slightly brighter background */
          color: #333;
          overflow-x: hidden;
        }

		.heading-title-bar {
			width: 100%;
			height: 90px;
			background-color: #f78E1E;
			display: flex;
			justify-content: space-between;
			position: relative;
		}
		
		/* Version display in header */
		.version-display {
			position: absolute;
			bottom: 5px;
			right: 10px;
			font-size: 10px;
			color: rgba(255, 255, 255, 0.6);
			font-family: 'Courier New', monospace;
			letter-spacing: 0.5px;
			z-index: 1;
		}
		
		.heading-logo {
			width:350px;
			height:100%;
			background-image: url('../assets/img/plannerlogowhite.svg');
			background-repeat: no-repeat;
			background-size: auto 100%;
		}
		
		.heading-filter {
			align-content: center;
		}
		
        /* === CORE LAYOUT CONTAINER FOR THE PLANNER === */
        .grid-container {
            display: flex;
            flex-direction: column;
            border: 1px solid #ddd;       /* softened border color */
            background-color: #fff;       /* pure white for clarity */
            max-width: 100%;
            max-height: calc(100vh - 2px);
            overflow: hidden;
            position: relative;
        }
        .grid-content {
            overflow: auto;
            max-height: calc(100vh);
        }

        /* === GRID HEADERS === */
        .grid-header {
            display: flex;
            background-color: #f7f7f7;    /* more neutral grey */
            position: sticky;
            top: 0;
            z-index: 1000;
            width: fit-content;
            border-bottom: 1px solid #ddd;
        }
        .grid-header-sub {
            display: flex;
            background-color: #f7f7f7;
            position: sticky;
            top: 40px;
            z-index: 999;
            width: fit-content;
            border-bottom: 1px solid #ddd;
        }
        .grid-header-sub .name-cell {
            text-align: center;
            font-weight: bold;
        }

        /* === ROWS === */
        .grid-row {
            display: flex;
            min-height: 65px;
            position: relative;
            width: fit-content;
            border-bottom: 1px solid #eee;
        }

        /* === DAY CELLS (HEADER + BODY) === */
        .header-cell,
        .day-cell {
            font-weight: bold;
            padding: 8px;
            background-color: #fafafa;
            border: 1px solid #eee;
            box-sizing: border-box;
            text-align: center;
            width: var(--col-wid-med);
            justify-content: center;
            display: flex;
            flex-direction: column;
            font-size: 0.85rem;
        }

        /* === PUBLIC HOLIDAY CELLS === */
        .holiday-cell {
            font-size: 9px;
            box-sizing: border-box;
            text-align: left;
            width: var(--col-wid-med);
            flex: 1 0 var(--col-wid-med);
            padding: 8px;
            background-color: #fafafa;
            border: 1px solid #eee;
        }
        .ht-cell {
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 9px;
            padding: 2px 4px;
            border-radius: 4px;
            margin-bottom: 2px;
            position: relative;
            white-space: nowrap;
            background-color: #4682B4;
            color: #fff;
        }

        /* === EMPLOYEE NAME CELL === */
        .name-cell {
            width: 350px;
            font-weight: bold;
            font-size: 10px;
            padding: 5px 5px 5px 5px;
            background-color: #FFF;
            border-right: 3px solid #999;
            border-left: 3px solid #999;
            box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 5px;
            box-sizing: border-box;
            text-align: left;
            position: sticky;
            left: 0;
            z-index: 3;
            display: flex;
            flex-direction: row;
        }
        .first-name-cell {
            border-top: 3px solid #999;
            border-top-right-radius: 8px;
            border-top-left-radius: 8px;
        }
        .last-name-cell {
            border-bottom: 3px solid #999 !important;
            border-bottom-right-radius: 8px;
            border-bottom-left-radius: 8px;
        }

        /* Employee skill badges */
        .employee-skill {
            margin-top: auto;
        }
        .employee-skill span {
            display: inline-block;
			padding: 0px 3px;
			background-color: #e5e7eb;
			color: #374151;
			border-radius: 9999px;
			font-size: 7px;
			font-weight: 500;
			transition: all 0.2s ease;
			margin-right: 2px;
        }
        .employee-skill span:hover {
            background-color: #d1d5db;
            transform: translateY(-1px);
        }

        /* Sticky cells for public holidays and notes */
        .ph-cell {
            background-color: #fafafa;
            border: 1px solid #eee;
            box-sizing: border-box;
            display: grid;
            place-items: center;
            position: sticky;
            left: 0;
        }
        .notes-cell {
            background-color: #fafafa;
            border: 1px solid #eee;
            box-sizing: border-box;
            display: grid;
            place-items: center;
            position: sticky;
            left: 0;
            height: 50px;
            z-index: 999;
        }

        /* === TASK CELLS === */
        .task-cell {
            flex: 1 0 var(--col-wid-med);
            border: 1px solid #eee;
            position: relative;
            box-sizing: border-box;
            text-align: center;
            white-space: nowrap;
            text-overflow: ellipsis;
            width: var(--col-wid-med);
            cursor: pointer;
            background-color: #fff;
            overflow: hidden;
            color: #2f2e2e;
            font-size: 0.85rem;
            padding: 2px;
        }
        .task {
            width: calc(100%);
            height: 30px;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 12px;
            padding: 2px;
            border-radius: 3px;
            margin-bottom: 2px;
            position: relative;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            white-space: normal;
        }
        .task-allday {
            border: none;
        }
        .task-partial {
            opacity: 0.9;
            font-style: italic;
            color: #333;
            height: 20px !important;
            box-sizing: border-box;
        }
        .task-time {
            font-size: 7px;
            color: #333;
            display: inline-block;
            margin-right: 3px;
        }
        .highlighted {
            background-color: #e3f2fd !important;
        }

        /* === MODAL SIDEPANEL === */
        .modal {
            position: fixed;
            right: -850px;
            top: 0;
            width: 850px;
            height: 100%;
            background-color: #fff;
            box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
            transition: right 0.3s ease;
            padding: 20px;
            box-sizing: border-box;
            z-index: 1000;
        }
        .modal.active {
            right: 0;
        }
        .modal-header {
            font-weight: bold;
            margin-bottom: 10px;
            font-size: 1rem;
            color: #333;
        }
        .modal-content {
            white-space: pre-wrap;
            margin-bottom: 20px;
            font-size: 0.9rem;
            color: #333;
        }
        .close-modal {
            cursor: pointer;
            color: #dc3545;
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 20px;
        }
        .mb-2 {
            margin-bottom: .5rem !important;
        }
        .mb-3 {
            margin-bottom: .75rem !important;
        }
		
		.ml-5p {
			margin-left: 5px;
		}
		
        .mb-meaty {
            margin-bottom: 2rem !important;
        }
        
        /* Make the entire sideModal scrollable */
        #sideModal {
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }
        
        /* Add scrollbar styling for better appearance */
        #sideModal::-webkit-scrollbar {
            width: 8px;
        }
        
        #sideModal::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        #sideModal::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 4px;
        }
        
        #sideModal::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
        
        /* Ensure close button stays visible when scrolling */
        #sideModal .close-modal {
            position: sticky;
            top: 10px;
            float: right;
            z-index: 1001;
        }
        
        /* Keep modal header at top when scrolling */
        #sideModal .modal-header {
            position: sticky;
            top: 40px; /* Below the close button */
            background-color: #fff;
            padding: 10px 0;
            z-index: 999;
            border-bottom: 1px solid #e0e0e0;
            margin-bottom: 15px;
        }

        /* Task container cards inside the modal details */
        .task-container {
            display: flex;
            align-items: center;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            background-color: #f9f9f9;
            font-size: 12px;
            margin: 10px;
        }
        .task-content {
            display: flex;
            flex-direction: column;
        }
        .job-title {
            font-weight: bold;
            margin-bottom: 5px;
        }
        .job-comment {
            color: #555;
            font-size: 11px;
            font-style: italic;
        }

        /* Delete button styling */
        .delete-btn {
            background-color: #dc3545;
            color: #fff;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            margin-right: 8px;
        }
        .delete-btn:hover {
            background-color: #c82333;
        }

        /* Basic row/column forms for the modals */
        .row {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .column {
            display: flex;
            flex-direction: column;
            margin-right: 10px;
            align-self: flex-end;
        }
        label {
            margin-bottom: 5px;
            font-weight: bold;
            font-size: 0.9rem;
        }
        .form-switch {
            display: flex;
            align-items: center;
            padding: 8px;
        }
        .form-switch input {
            margin-right: 5px;
        }
        .commentbox {
            padding: 4px;
            border-radius: 5px;
            border: 1px solid #ccc;
            font-size: 14px;
        }
        .tasktime {
            padding: 4px;
            border-radius: 5px;
            border: 1px solid #ccc;
            font-size: 14px;
        }

        /* Main button styling */
        button {
            padding: 8px 16px;
            border: none;
            border-radius: 5px;
            background-color: var(--accent-color);
            color: #fff;
            font-size: 14px;
            cursor: pointer;
        }
        button:hover {
            background-color: #e67e15;
        }

        /* Refresh button styling */
        .refresh-btn {
            margin-left: 10px;
            padding: 6px 12px;
            background-color: #6c757d;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 38px;
            height: 32px;
        }
        .refresh-btn:hover {
            background-color: #5a6268;
            transform: rotate(90deg);
        }
        .refresh-btn:disabled {
            background-color: #adb5bd;
            cursor: not-allowed;
            transform: none;
        }
        .refresh-btn:disabled:hover {
            transform: none;
        }
        .button-group {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        /* Notes delete button */
        .notes-delete {
            background-color: #dc3545;
            color: white;
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .notes-delete:hover {
            background-color: #c82333;
        }

        /* Edit notes date range styling */
        #edit-notes-date-range {
            margin-bottom: 15px;
        }
        #edit-notes-date-range .form-group {
            margin-bottom: 10px;
        }

        /* Add form spacing */
        #modal-add-form {
            margin-bottom: 2rem;
        }

        /* The separate Notes modal panel */
        #notesModal {
            position: fixed;
            right: -400px;
            top: 0;
            width: 400px;
            height: 100%;
            background-color: #fff;
            box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
            transition: right 0.3s ease;
            padding: 20px;
            box-sizing: border-box;
            z-index: 1000;
        }
        #notesModal.active {
            right: 0;
        }
        .notes-textarea {
            width: 100%;
            height: 150px;
            margin: 10px 0;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            resize: vertical;
            font-size: 14px;
        }
        .notes-submit {
            background-color: #28a745;
            color: white;
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .notes-submit:hover {
            background-color: #218838;
        }

        /* The Edit Notes modal */
        #editNotesModal {
            position: fixed;
            right: -400px;
            top: 0;
            width: 400px;
            height: 100%;
            background-color: #fff;
            box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
            transition: right 0.3s ease;
            padding: 20px;
            box-sizing: border-box;
            z-index: 1000;
        }
        #editNotesModal.active {
            right: 0;
        }

        /* Additional form styling in the modals */
        .add-btn {
            padding: 0.375rem 0.75rem;
            font-size: 1rem;
            line-height: 1.5;
            height: 38px;
        }
        .form-row {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
        }
        .form-group {
            margin-bottom: 1rem;
        }
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: bold;
        }
        .form-control {
            width: 100%;
            padding: 0.375rem 0.75rem;
            font-size: 1rem;
            line-height: 1.5;
            border: 1px solid #ced4da;
            border-radius: 4px;
        }
        .form-control-dropdown {
            width: 100%;
            padding: 4px;
            border: 1px solid #ced4da;
            border-radius: 4px;
        }
        .mt-5-px {
            margin-top: 5px;
        }
        .btn-sm {
            height: 20px !important;
            font-size: 10px !important;
            line-height: 0;
            margin-top: 5px;
            margin-bottom: 5px;
        }

        /* Expand arrow for tasks */
        .expand-arrow {
            position: absolute;
            bottom: 2px;
            right: 2px;
            font-size: 10px;
            background: #eee;
            border-radius: 3px;
            padding: 2px 5px;
            cursor: pointer;
            z-index: 10;
        }
        .expanded {
            height: auto;
        }

        /* Note bars displayed across multiple days */
        .note-bar {
            position: absolute;
            height: 10px;
            background-color: #ff9800;
            border-radius: 5px;
            top: 50%;
            transform: translateY(-50%);
            overflow: hidden;
            white-space: nowrap;
            text-align: center;
            color: #fff;
            font-size: 10px;
            line-height: 10px;
            padding: 0 5px;
            box-sizing: border-box;
            cursor: pointer;
        }
        .note-highlighted {
            background-color: #e3f2fd !important;
        }

        /* Tooltip styling */
        .tooltip {
            position: absolute;
            width: 320px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            padding: 12px;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
        }
        .tooltip.visible {
            visibility: visible;
            opacity: 1;
        }
        .tooltip-title {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 10px;
            color: #333;
        }
        .tooltip-date {
            font-size: 13px;
            color: #666;
            margin-bottom: 8px;
        }
        .tooltip-job-id {
            font-size: 12px;
            color: #333;
            font-weight: 500;
            margin-bottom: 6px;
        }
        .tooltip-comment {
            font-size: 12px;
            color: #555;
            font-style: italic;
            margin-bottom: 6px;
            line-height: 1.3;
        }
        .tooltip-employee {
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
        }
        .tooltip-calendar {
            display: flex;
            align-items: center;
            font-size: 13px;
        }
        .tooltip-calendar-indicator {
            width: 12px;
            height: 12px;
            margin-right: 6px;
            border-radius: 2px;
        }
        .tooltip-calendar-indicator.event-orange {
            background-color: #FF7F50;
        }
        .tooltip-calendar-indicator.event-blue {
            background-color: #4682B4;
        }
        .tooltip-calendar-indicator.event-green {
            background-color: #3CB371;
        }

        /* Filter panel on top-left corner */
        .filter-container {
            width: 350px;
            position: sticky;
            left: 0px;
            background-color: #f0f0f0;
            border-right: 1px solid #ddd;
        }
        .finter-inner {
            padding: 7px;
        }
        
        /* Multi-select filter styling */
        .cc-multi-select,
        .emp-multi-select,
        .skills-multi-select {
            min-width: 120px;
            margin: 2px 0;
        }
        
        /* Select2 containers in filter area */
        .filter-container .select2-container {
            width: 100% !important;
            margin-bottom: 5px;
        }
        
        /* Filter buttons styling */
        .filter-container button {
            margin: 2px;
            padding: 4px 8px;
            font-size: 12px;
        }

        /* Employee name, cc, and utilisation circle styling */
        .employee-name {
            font-size: 15px;
            color: #2D2D2D;
            font-weight: 500 !important;
        }
        .employee-cc {
            font-size: 12px;
            color: #535353;
            font-weight: normal !important;
        }
        .employee-labour {
            font-size: 12px;
            color: #666666;
            font-weight: normal !important;
            margin-top: 2px;
        }
        .utilisation {
            width: 25px;
            height: 25px;
            background-color: var(--accent-color); /* brand color for circle */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #ffffff;
        }
		
		.favourite {
			width: 20px;
    		height: 15px;
    		margin-top: 10px;
			cursor: pointer;
		}
		
		.unstarred {
			background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%230C59A6" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
			background-repeat: no-repeat;
		}
		
		.starred {
			background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%230C59A6" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
			background-repeat: no-repeat;
		}

        /* Additional class for rounding top/bottom name-cell corners */
        .name-cell-first {
            border-top: 3px solid #999;
            border-radius: 10px 10px 0 0;
        }
        .name-cell-last {
            border-bottom: 3px solid #999;
            border-radius: 0 0 10px 10px;
        }
        .task-hover {
            height: 40px !important;
        }

        /* Container for tabs in the sideModal */
        .tab-container {
            width: 100%;
        }
        .tab {
            overflow: hidden;
            border-bottom: 1px solid #ccc;
        }
        .tab button {
            float: left;
            border: none;
            background: none;
            outline: none;
            cursor: pointer;
            padding: 14px 16px;
            transition: background-color 0.3s;
            font-size: 17px;
            color: #999;
            margin-bottom: -1px;
        }
        .tab button:hover {
            background-color: #eee;
        }
        .tab button.active {
            border: 1px solid #007bff;
            background-color: #007bff !important;
            color: #ffffff;
            border-bottom: 1px solid #fff;
            border-radius: 4px 4px 0 0;
            position: relative;
            top: 1px;
        }
        .tabcontent {
            display: none;
            padding: 20px;
            border: 1px solid #007bff;
            margin-top: -1px;
			background-color: #f0f5fa;
        }

        /* Event indicators used by tasks */
        .event-indicator {
            top: 6px;
            left: 0;
            right: 0;
            height: 14px;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            font-size: 10px;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .event-orange {
            background-color: #FF7F50;
        }
        .event-blue {
            background-color: #4682B4;
        }
        .event-green {
            background-color: #3CB371;
        }