@import url("automated.css");


.dashboard-item {
    padding: 10px;
    margin: 20px;
    border: 1px solid #F4F4F4;
    background: #FFF;
    border-radius: 10px;
    transition: scale 0.5s ease-in-out;
}

.dark-mode .dashboard-item {
    background: #272D48;
}

.dashboard-item h1,
.dashboard-item h4 {
    margin: 5px;
}

.dashboard-item:hover {
    cursor: pointer;
    scale: 1.1;
}

.dashboard-item.active {
    border: 5px solid #c1ddec;
}

.tag-note-type-private {
    background-color: #F4F4F4;
}

.tag-note-type-client {
    background-color: yellow;
}

/* Schedule Styles - Fix for small week/day view columns */
.schedule-day-column,
.schedule-week-column {
    min-height: 400px !important;
    height: auto !important;
    border: 1px solid #dee2e6;
    padding: 8px;
    box-sizing: border-box;
}

.schedule-day-column.schedule-block,
.schedule-week-column.schedule-block {
    min-height: 400px !important;
    overflow-y: auto;
    background: #f8f9fa;
}

.schedule-item {
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 4px;
    background: white;
    border: 1px solid #dee2e6;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.schedule-item:hover {
    background: #e9ecef;
}

.schedule-week-header,
.schedule-day-header {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.schedule-tech-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 110px;
    padding: 12px 8px;
    position: relative;
    z-index: 5;
}

.schedule-tech-name {
    font-size: 0.95rem;
    line-height: 1.2;
}

.schedule-tech-header .schedule-truck-select {
    width: 100%;
    max-width: 130px;
}

.schedule-tech-header .notSelect2 {
    position: relative;
    z-index: 1200;
}

.schedule-tech-header-active .notSelect2 {
    z-index: 3200;
}

.schedule-tech-header-active {
    z-index: 500;
}

.schedule-tech-header-active .schedule-truck-select {
    position: relative;
    z-index: 1000;
}

.schedule-column-lowered {
    position: relative;
    z-index: 1;
}

.schedule-column-lowered .schedule-item {
    position: relative;
    z-index: 1 !important;
    pointer-events: none;
}

.schedule-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33, 37, 41, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.schedule-loading-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.schedule-loading-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 18px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: #212529;
}

.schedule-loading-content .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
}

.schedule-week-today,
.schedule-day-today {
    background: #e3f2fd !important;
}

.schedule-week-alternate-day-bg {
    background: #f5f5f5 !important;
}

.schedule-container {
    overflow-x: auto;
}

/* Limit unscheduled appointments area height */
#unscheduledContainer .schedule-block {
    min-height: 100px !important;
    max-height: 100px !important;
    overflow-y: auto;
}

/* Make appointment cards smaller in unscheduled area only */
#unscheduledContainer .schedule-item {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 4px 8px !important;
    margin-bottom: 3px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 1.2;
}

.small-currency {
    font-size: 0.85rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Checklist Styles */
.checklist-item {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: move;
}

.checklist-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checklist-item.completed {
    background-color: #f8f9fa;
    border-color: #28a745;
}

.checklist-item.completed .checklist-label *:not(.no-strikethrough) {
    text-decoration: line-through;
    color: #6c757d;
}

/* Completion info should not be crossed out */
.checklist-item.completed .checklist-label .no-strikethrough {
    text-decoration: none !important;
    color: #28a745 !important;
}

.checklist-item.completed .checklist-label strong:not(.no-strikethrough) {
    color: #28a745;
    text-decoration: line-through;
}

.dragDots {
    color: #6c757d;
    font-size: 12px;
    line-height: 1;
    cursor: move;
}

.dragDots:hover {
    color: #495057;
}

/* Admin Panel Sortable Items */
.sortableItem:hover .dragDots {
    color: #495057;
}

.sortableContainer .sortableItem {
    cursor: move;
}

.sortableContainer .sortableItem.ui-sortable-helper {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
}

.checklist-container .ui-sortable-helper {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

/* Dark mode checklist styles */
.dark-mode .checklist-item {
    background-color: #272D48;
    border-color: #495057;
    color: #ffffff;
}

.dark-mode .checklist-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background-color: #2e2c55;
}

.dark-mode .checklist-item.completed {
    background-color: #1e1c38;
    border-color: #28a745;
}

.dark-mode .checklist-item.completed .checklist-label {
    color: #adb5bd;
}

/* Keep completion info from being crossed out in dark mode */
.dark-mode .checklist-item.completed .checklist-label .no-strikethrough {
    text-decoration: none !important;
    color: #28a745 !important;
}

.dark-mode .checklist-item.completed .checklist-label strong {
    color: #28a745;
}

.dark-mode .dragDots {
    color: #adb5bd;
}

.dark-mode .dragDots:hover {
    color: #ffffff;
}

.dark-mode .checklist-container .ui-sortable-helper {
    background-color: #1e1c38;
    border-color: #495057;
}

.dark-mode .checklist-label {
    color: #ffffff;
}

.dark-mode .text-muted {
    color: #adb5bd !important;
}

.dark-mode .small.text-muted {
    color: #adb5bd !important;
}

/* Schedule Appointment Animations */
@keyframes blink-appointment {
    0% {
        background-color: inherit;
        border: inherit;
        box-shadow: inherit;
    }

    50% {
        background-color: #fff3cd !important;
        border: 2px solid #ffc107 !important;
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
        transform: scale(1.02);
    }

    100% {
        background-color: inherit;
        border: inherit;
        box-shadow: inherit;
    }
}

.blink-appointment {
    animation: blink-appointment 1.5s ease-in-out infinite;
    z-index: 1000 !important;
    transition: all 0.3s ease;
}

/* Customer Map Styles */
#mapContainer {
    position: relative;
    overflow: hidden;
}

#mapView,
#streetView {
    width: 100%;
    height: 500px;
}

/* Admin Panel Sortable Items */
.sortableItem:hover .dragDots {
    color: #495057;
}

.sortableContainer .sortableItem {
    cursor: move;
}

.sortableContainer .sortableItem.ui-sortable-helper {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
}