﻿
.grid-box {
    margin-top: 5px;
}



@media (min-width: 639px) {
    .grid-box-lg {
        max-width: calc(100vw - 320px);
    }
}

    .filter-collection-label {
        margin-right: 10px;
    }

    .filter-collection {
        display: flex;
        flex-wrap: wrap;
    }

    .filter-component {
        margin-right: 20px;
        display: block;
    }

    .filter-label {
        margin-right: 10px;
    }

    .dialog-header {
        margin-top: 10px;
        font-size: 20px !important;
    }

    .button-spacing button {
        margin-right: 10px;
    }

    .switch-label {
        padding: 10px 10px 10px 0;
    }

    .grey-background {
        background-color: #f2f2f2;
    }

    .content-section {
        padding: 10px;
        margin-bottom: 20px;
    }

.leaflet-container {
    height: 250px;
    width: 350px;
    max-width: 100%;
    max-height: 100%;
}

.site-detail-map {
    width: 100%;
    height: 260px;
}

.site-location-picker-map {
    height: 460px;
    width: 100%;
    max-height: 60vh;
}

.site-map-location-link {
    line-height: 1;
    font-size: 0.8125rem;
    text-decoration: none;
}

.site-map-location-link:hover,
.site-map-location-link:focus {
    text-decoration: underline;
}

.e-control-wrapper.is-invalid,
.e-input-group.is-invalid,
.e-multiselect.is-invalid {
    border-color: #dc3545 !important;
}

.site-import-drop-active {
    outline: 3px solid rgba(13, 110, 253, 0.25);
    outline-offset: 4px;
}


/* Generic: turn Syncfusion grid into card list (when you wrap the grid in .cs-card-grid) */
.cs-card-grid .cs-row-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin: 0.55rem 0;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.06);
}

.cs-card-grid .cs-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    display: grid;
    place-items: center;
    color: rgba(0,0,0,0.55);
    flex: 0 0 auto;
}

/* Optional small-screen tightening */
@media (max-width: 420px) {
    .cs-card-grid .cs-row-card {
        padding: 0.8rem 0.85rem;
    }
}

/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}

.leaflet-container {
    overflow: hidden;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}
    /* Prevents IE11 from highlighting tiles in blue */
    .leaflet-tile::selection {
        background: transparent;
    }
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
    image-rendering: -webkit-optimize-contrast;
}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
    width: 1600px;
    height: 1600px;
    -webkit-transform-origin: 0 0;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
    display: block;
}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
    max-width: none !important;
    max-height: none !important;
}

.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    width: auto;
    padding: 0;
}

.leaflet-container img.leaflet-tile {
    /* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
    mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
    -ms-touch-action: pan-x pan-y;
    touch-action: pan-x pan-y;
}

.leaflet-container.leaflet-touch-drag {
    -ms-touch-action: pinch-zoom;
    /* Fallback for FF which doesn't support pinch-zoom */
    touch-action: none;
    touch-action: pinch-zoom;
}

    .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
        -ms-touch-action: none;
        touch-action: none;
    }

.leaflet-container {
    -webkit-tap-highlight-color: transparent;
}

    .leaflet-container a {
        -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
    }

.leaflet-tile {
    filter: inherit;
    visibility: hidden;
}

.leaflet-tile-loaded {
    visibility: inherit;
}

.leaflet-zoom-box {
    width: 0;
    height: 0;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 800;
}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
    -moz-user-select: none;
}

.leaflet-pane {
    z-index: 400;
}

.leaflet-tile-pane {
    z-index: 200;
}

.leaflet-overlay-pane {
    z-index: 400;
}

.leaflet-shadow-pane {
    z-index: 500;
}

.leaflet-marker-pane {
    z-index: 600;
}

.leaflet-tooltip-pane {
    z-index: 650;
}

.leaflet-popup-pane {
    z-index: 700;
}

.leaflet-map-pane canvas {
    z-index: 100;
}

.leaflet-map-pane svg {
    z-index: 200;
}

.leaflet-vml-shape {
    width: 1px;
    height: 1px;
}

.lvml {
    behavior: url(#default#VML);
    display: inline-block;
    position: absolute;
}


/* control positioning */

.leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
    pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.leaflet-top {
    top: 0;
}

.leaflet-right {
    right: 0;
}

.leaflet-bottom {
    bottom: 0;
}

.leaflet-left {
    left: 0;
}

.leaflet-control {
    float: left;
    clear: both;
}

.leaflet-right .leaflet-control {
    float: right;
}

.leaflet-top .leaflet-control {
    margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
    margin-bottom: 10px;
}

.leaflet-left .leaflet-control {
    margin-left: 10px;
}

.leaflet-right .leaflet-control {
    margin-right: 10px;
}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
    opacity: 0;
    -webkit-transition: opacity 0.2s linear;
    -moz-transition: opacity 0.2s linear;
    transition: opacity 0.2s linear;
}

.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
    opacity: 1;
}

.leaflet-zoom-animated {
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
}

svg.leaflet-zoom-animated {
    will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
    -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
    -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
    transition: transform 0.25s cubic-bezier(0,0,0.25,1);
}

.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
    -webkit-transition: none;
    -moz-transition: none;
    transition: none;
}

.leaflet-zoom-anim .leaflet-zoom-hide {
    visibility: hidden;
}


/* cursors */

.leaflet-interactive {
    cursor: pointer;
}

.leaflet-grab {
    cursor: -webkit-grab;
    cursor: -moz-grab;
    cursor: grab;
}

.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
    cursor: crosshair;
}

.leaflet-popup-pane,
.leaflet-control {
    cursor: auto;
}

.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
    cursor: move;
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
    cursor: grabbing;
}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
    pointer-events: none;
}

    .leaflet-marker-icon.leaflet-interactive,
    .leaflet-image-layer.leaflet-interactive,
    .leaflet-pane > svg path.leaflet-interactive,
    svg.leaflet-image-layer.leaflet-interactive path {
        pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
        pointer-events: auto;
    }

/* visual tweaks */

.leaflet-container {
    background: #ddd;
    outline-offset: 1px;
}

    .leaflet-container a {
        color: #0078A8;
    }

.leaflet-zoom-box {
    border: 2px dotted #38f;
    background: rgba(255,255,255,0.5);
}


/* general typography */
.leaflet-container {
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-size: 0.75rem;
    line-height: 1.5;
}


/* general toolbar styles */

.leaflet-bar {
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    border-radius: 4px;
}

    .leaflet-bar a {
        background-color: #fff;
        border-bottom: 1px solid #ccc;
        width: 26px;
        height: 26px;
        line-height: 26px;
        display: block;
        text-align: center;
        text-decoration: none;
        color: black;
    }

    .leaflet-bar a,
    .leaflet-control-layers-toggle {
        background-position: 50% 50%;
        background-repeat: no-repeat;
        display: block;
    }

        .leaflet-bar a:hover,
        .leaflet-bar a:focus {
            background-color: #f4f4f4;
        }

        .leaflet-bar a:first-child {
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
        }

        .leaflet-bar a:last-child {
            border-bottom-left-radius: 4px;
            border-bottom-right-radius: 4px;
            border-bottom: none;
        }

        .leaflet-bar a.leaflet-disabled {
            cursor: default;
            background-color: #f4f4f4;
            color: #bbb;
        }

.leaflet-touch .leaflet-bar a {
    width: 30px;
    height: 30px;
    line-height: 30px;
}

    .leaflet-touch .leaflet-bar a:first-child {
        border-top-left-radius: 2px;
        border-top-right-radius: 2px;
    }

    .leaflet-touch .leaflet-bar a:last-child {
        border-bottom-left-radius: 2px;
        border-bottom-right-radius: 2px;
    }

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    font: bold 18px 'Lucida Console', Monaco, monospace;
    text-indent: 1px;
}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
    font-size: 22px;
}


/* layers control */

.leaflet-control-layers {
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    background: #fff;
    border-radius: 5px;
}

.leaflet-control-layers-toggle {
    background-image: url(images/layers.png);
    width: 36px;
    height: 36px;
}

.leaflet-retina .leaflet-control-layers-toggle {
    background-image: url(images/layers-2x.png);
    background-size: 26px 26px;
}

.leaflet-touch .leaflet-control-layers-toggle {
    width: 44px;
    height: 44px;
}

.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
    display: none;
}

.leaflet-control-layers-expanded .leaflet-control-layers-list {
    display: block;
    position: relative;
}

.leaflet-control-layers-expanded {
    padding: 6px 10px 6px 6px;
    color: #333;
    background: #fff;
}

.leaflet-control-layers-scrollbar {
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 5px;
}

.leaflet-control-layers-selector {
    margin-top: 2px;
    position: relative;
    top: 1px;
}

.leaflet-control-layers label {
    display: block;
    font-size: 13px;
    font-size: 1.08333em;
}

.leaflet-control-layers-separator {
    height: 0;
    border-top: 1px solid #ddd;
    margin: 5px -10px 5px -6px;
}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
    background-image: url(images/marker-icon.png);
}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
    background: #fff;
    background: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.leaflet-control-attribution,
.leaflet-control-scale-line {
    padding: 0 5px;
    color: #333;
    line-height: 1.4;
}

    .leaflet-control-attribution a {
        text-decoration: none;
    }

        .leaflet-control-attribution a:hover,
        .leaflet-control-attribution a:focus {
            text-decoration: underline;
        }

.leaflet-attribution-flag {
    display: inline !important;
    vertical-align: baseline !important;
    width: 1em;
    height: 0.6669em;
}

.leaflet-left .leaflet-control-scale {
    margin-left: 5px;
}

.leaflet-bottom .leaflet-control-scale {
    margin-bottom: 5px;
}

.leaflet-control-scale-line {
    border: 2px solid #777;
    border-top: none;
    line-height: 1.1;
    padding: 2px 5px 1px;
    white-space: nowrap;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px #fff;
}

    .leaflet-control-scale-line:not(:first-child) {
        border-top: 2px solid #777;
        border-bottom: none;
        margin-top: -2px;
    }

        .leaflet-control-scale-line:not(:first-child):not(:last-child) {
            border-bottom: 2px solid #777;
        }

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
    box-shadow: none;
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
}


/* popup */

.leaflet-popup {
    position: absolute;
    text-align: center;
    margin-bottom: 20px;
}

.leaflet-popup-content-wrapper {
    padding: 1px;
    text-align: left;
    border-radius: 12px;
}

.leaflet-popup-content {
    margin: 13px 24px 13px 20px;
    line-height: 1.3;
    font-size: 13px;
    font-size: 1.08333em;
    min-height: 1px;
}

    .leaflet-popup-content p {
        margin: 17px 0;
        margin: 1.3em 0;
    }

.leaflet-popup-tip-container {
    width: 40px;
    height: 20px;
    position: absolute;
    left: 50%;
    margin-top: -1px;
    margin-left: -20px;
    overflow: hidden;
    pointer-events: none;
}

.leaflet-popup-tip {
    width: 17px;
    height: 17px;
    padding: 1px;
    margin: -10px auto 0;
    pointer-events: auto;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: white;
    color: #333;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.leaflet-container a.leaflet-popup-close-button {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    text-align: center;
    width: 24px;
    height: 24px;
    font: 16px/24px Tahoma, Verdana, sans-serif;
    color: #757575;
    text-decoration: none;
    background: transparent;
}

    .leaflet-container a.leaflet-popup-close-button:hover,
    .leaflet-container a.leaflet-popup-close-button:focus {
        color: #585858;
    }

.leaflet-popup-scrolled {
    overflow: auto;
}

.leaflet-oldie .leaflet-popup-content-wrapper {
    -ms-zoom: 1;
}

.leaflet-oldie .leaflet-popup-tip {
    width: 24px;
    margin: 0 auto;
    -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
    filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
    border: 1px solid #999;
}


/* div icon */

.leaflet-div-icon {
    background: #fff;
    border: 1px solid #666;
}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
    position: absolute;
    padding: 6px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 3px;
    color: #222;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

    .leaflet-tooltip.leaflet-interactive {
        cursor: pointer;
        pointer-events: auto;
    }

.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
    position: absolute;
    pointer-events: none;
    border: 6px solid transparent;
    background: transparent;
    content: "";
}

/* Directions */

.leaflet-tooltip-bottom {
    margin-top: 6px;
}

.leaflet-tooltip-top {
    margin-top: -6px;
}

    .leaflet-tooltip-bottom:before,
    .leaflet-tooltip-top:before {
        left: 50%;
        margin-left: -6px;
    }

    .leaflet-tooltip-top:before {
        bottom: 0;
        margin-bottom: -12px;
        border-top-color: #fff;
    }

.leaflet-tooltip-bottom:before {
    top: 0;
    margin-top: -12px;
    margin-left: -6px;
    border-bottom-color: #fff;
}

.leaflet-tooltip-left {
    margin-left: -6px;
}

.leaflet-tooltip-right {
    margin-left: 6px;
}

    .leaflet-tooltip-left:before,
    .leaflet-tooltip-right:before {
        top: 50%;
        margin-top: -6px;
    }

.leaflet-tooltip-left:before {
    right: 0;
    margin-right: -12px;
    border-left-color: #fff;
}

.leaflet-tooltip-right:before {
    left: 0;
    margin-left: -12px;
    border-right-color: #fff;
}

/* Printing */

@media print {
    /* Prevent printers from removing background-images of controls. */
    .leaflet-control {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.text-pre-line {
    white-space: pre-line;
}

.activity-row {
    background-color: #f8f9fa;
    border: 1px solid #eef1f4;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

    .activity-row:hover {
        background-color: #f1f3f5;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
    }

.job-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.job-board-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 1rem;
}

.job-board-kanban {
    min-height: 560px;
    height: auto !important;
}

.job-board-kanban .e-kanban-table,
.job-board-kanban .e-content-row,
.job-board-kanban .e-content-cells,
.job-board-kanban .e-card-wrapper {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}

.job-board-kanban .e-kanban-content {
    height: auto !important;
    min-height: 500px;
    overflow-y: visible !important;
}

.job-board-kanban .e-card {
    overflow: visible;
}

.job-board-kanban .e-card .e-card-content {
    padding: 0;
}

.job-board-kanban .e-header-cells {
    padding: 0 !important;
}

.job-board-kanban .e-header-cells .e-header-wrap,
.job-board-kanban .e-header-cells .e-header-text {
    display: block;
    width: 100%;
}

.job-board-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    border-top: 1px solid;
    border-radius: 4px 4px 0 0;
    box-sizing: border-box;
    font-weight: 700;
}

.job-board-column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    font-weight: 700;
}

.job-board-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.75rem;
}

.job-board-card-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: #4b5563;
    font-size: 0.85rem;
}

.job-board-card-meta a,
.job-board-card-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-scheduler-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.job-scheduler-main,
.job-scheduler-sidebar {
    min-width: 0;
}

.job-scheduler-toolbar,
.job-scheduler-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.job-scheduler-toolbar-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-scheduler-group-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-scheduler-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    white-space: nowrap;
}

.job-scheduler-drop-zone {
    min-width: 0;
    overflow: auto;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
}

.job-scheduler-drop-zone.job-scheduler-drop-active {
    border-color: #3a7ca5;
    box-shadow: inset 0 0 0 2px rgba(58, 124, 165, 0.18);
}

.job-scheduler .e-work-cells.job-scheduler-drop-cell-active,
.job-scheduler .e-work-hours.job-scheduler-drop-cell-active,
.job-scheduler .e-all-day-cells.job-scheduler-drop-cell-active {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
    background-color: rgba(37, 99, 235, 0.12) !important;
    box-shadow: inset 0 0 0 9999px rgba(37, 99, 235, 0.05);
}

.job-scheduler {
    min-width: 1180px;
}

.job-scheduler.e-schedule .e-timeline-view .e-date-header-wrap table col,
.job-scheduler.e-schedule .e-timeline-view .e-content-wrap table col {
    width: 150px;
}

.job-scheduler.e-schedule .e-timeline-month-view .e-date-header-wrap table col,
.job-scheduler.e-schedule .e-timeline-month-view .e-content-wrap table col {
    width: 110px;
}

.job-scheduler.e-schedule .e-timeline-view .e-work-cells,
.job-scheduler.e-schedule .e-timeline-view .e-resource-cells,
.job-scheduler.e-schedule .e-timeline-month-view .e-work-cells,
.job-scheduler.e-schedule .e-timeline-month-view .e-resource-cells {
    height: 54px;
}

.job-scheduler-sidebar {
    position: sticky;
    top: 0.75rem;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    background: #ffffff;
}

.job-scheduler-filter {
    flex: 0 0 auto;
    margin-bottom: 0.85rem;
}

.job-scheduler-job-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.schedule-job-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem;
    border: 1px solid #dbe4ea;
    border-left: 4px solid #3a7ca5;
    border-radius: 8px;
    background: #f8fafc;
    cursor: grab;
}

.schedule-job-card:active {
    cursor: grabbing;
}

.schedule-job-card.schedule-job-card-dragging {
    opacity: 0.72;
}

.schedule-job-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: #4b5563;
    font-size: 0.85rem;
}

.schedule-job-meta a,
.schedule-job-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-job-count {
    align-self: flex-start;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #e3f2eb;
    color: #116149;
    font-size: 0.75rem;
    font-weight: 600;
}

.schedule-job-dialog-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.contract-job-preview-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contract-job-preview-sort {
    flex: 0 0 auto;
}

.contract-job-preview-sort-toggle {
    display: inline-flex;
    padding: 0.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.contract-job-preview-sort-button {
    min-width: 64px;
    padding: 0.35rem 0.65rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
}

.contract-job-preview-sort-button.is-active {
    background: #3a7ca5;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.contract-job-preview-list {
    display: grid;
    gap: 0.75rem;
    max-height: min(64vh, 680px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.contract-job-preview-card {
    border: 1px solid #dbe4ea;
    border-left: 4px solid #3a7ca5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.contract-job-preview-card-main {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.contract-job-preview-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
}

.contract-job-preview-date-day {
    color: #17324d;
    font-size: 1.05rem;
    font-weight: 700;
}

.contract-job-preview-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.contract-job-preview-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.contract-job-preview-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.contract-job-preview-title-row .contract-job-preview-title {
    min-width: 0;
}

.contract-job-preview-delete {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff5f5;
    color: #dc2626;
    line-height: 1;
}

.contract-job-preview-delete:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.contract-job-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.contract-job-preview-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.contract-job-preview-service-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #eaf4f7;
    color: #24566c;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .contract-job-preview-header {
        align-items: stretch;
        flex-direction: column;
    }

    .contract-job-preview-card-main {
        grid-template-columns: 1fr;
    }
}

.job-map-view-shell {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 21rem);
    min-height: 760px;
    padding: 1rem;
}

.job-map-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.job-map-view-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.job-map-legend-dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.35rem;
    border-radius: 999px;
    vertical-align: -0.05rem;
}

.job-map-legend-dot-staff {
    background: #2563eb;
}

.job-map-legend-dot-job {
    background: #16a34a;
}

.job-map-view-summary {
    margin-bottom: 0.75rem;
}

.home-search-card .form-control {
    min-height: 38px;
}

.home-search-controls {
    display: grid;
    gap: 0.5rem;
}

.home-search-control {
    width: 100%;
    max-width: 400px;
}

.home-search-switch {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    background: #f8fafc;
}

.home-search-switch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
}

.home-search-switch-button.active {
    background: #ffffff;
    color: #0d6efd;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.home-search-switch-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-search-result {
    border-radius: 8px;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.home-search-result:hover {
    background: #f8fafc;
}

.home-search-type {
    flex: 0 0 auto;
    font-weight: 600;
}

.ncr-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.ncr-status-open {
    background: #fff3cd;
    color: #664d03;
}

.ncr-status-progress {
    background: #dbeafe;
    color: #1e3a8a;
}

.ncr-status-closed {
    background: #dcfce7;
    color: #166534;
}

.ncr-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 575.98px) {
    .home-search-switch {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.job-map-view {
    flex: 1 1 auto;
    width: 100%;
    min-height: 680px;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f6;
}

.job-map-marker {
    border: 0;
    background: transparent;
}

.job-map-marker span {
    align-items: center;
    background: var(--job-map-marker-colour, #16a34a);
    color: #ffffff;
    display: flex;
    font-size: 0.78rem;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.job-map-marker span i {
    line-height: 1;
    pointer-events: none;
}

.job-map-tooltip {
    min-width: 180px;
    color: #1f2937;
    line-height: 1.35;
}

.job-map-tooltip-title {
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.job-scheduler .schedule-event-absence,
.job-scheduler .e-appointment.schedule-event-absence {
    background: #ede5ff !important;
    border-color: #c8b6f6 !important;
    border-left: 4px solid #8b5cf6 !important;
    border-radius: 6px;
    color: #3b246d !important;
    min-height: 30px;
}

.job-scheduler .schedule-event-absence .e-appointment-details,
.job-scheduler .schedule-event-absence .e-subject,
.job-scheduler .schedule-event-absence .e-time,
.job-scheduler .e-appointment.schedule-event-absence .job-schedule-event-title,
.job-scheduler .e-appointment.schedule-event-absence .job-schedule-event-meta {
    color: #3b246d !important;
}

.job-scheduler .e-appointment.schedule-event-absence .job-schedule-event-meta {
    opacity: 0.82;
}

.job-scheduler .schedule-event-job,
.job-scheduler .e-appointment.schedule-event-job {
    background: #3a7ca5 !important;
    border-color: #3a7ca5 !important;
    border-radius: 6px;
    color: #ffffff !important;
    min-height: 30px;
}

.job-scheduler .schedule-event-job .e-appointment-details,
.job-scheduler .schedule-event-job .e-subject,
.job-scheduler .schedule-event-job .e-time {
    color: #ffffff !important;
}

.job-scheduler .e-appointment .e-appointment-details {
    padding: 4px 7px;
}

.job-schedule-event-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-width: 0;
    height: 100%;
    line-height: 1.15;
}

.job-schedule-event-title,
.job-schedule-event-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-schedule-event-title {
    font-size: 0.78rem;
    font-weight: 700;
}

.job-schedule-event-meta {
    font-size: 0.7rem;
    opacity: 0.9;
}

.job-schedule-tooltip {
    box-sizing: border-box;
    width: 300px;
    max-width: min(300px, calc(100vw - 48px));
    padding: 0.75rem;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    line-height: 1.35;
}

.e-tooltip-wrap:has(.job-schedule-tooltip) {
    width: auto !important;
    min-width: 0 !important;
    max-width: 320px !important;
    border: 1px solid #dbe4ea !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18) !important;
    color: #1f2937 !important;
}

.e-tooltip-wrap:has(.job-schedule-tooltip) .e-tip-content {
    width: auto !important;
    min-width: 0 !important;
    max-width: 320px !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #1f2937 !important;
}

.e-tooltip-wrap:has(.job-schedule-tooltip) .e-arrow-tip-inner {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.job-schedule-tooltip-title {
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-weight: 700;
}

.job-schedule-tooltip-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.job-schedule-tooltip-row span {
    color: #6b7280;
    font-size: 0.78rem;
}

.job-schedule-tooltip-row strong {
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.job-schedule-tooltip-notes {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.8rem;
}

@media (max-width: 1100px) {
    .job-scheduler-layout {
        grid-template-columns: 1fr;
    }

    .job-scheduler-sidebar {
        position: static;
        max-height: 420px;
    }
}
