@import url("automated.css");

.equipment-image-container:hover .equipment-image-popup {
    opacity: 1;
}

.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 Item Colors */
.schedule-item-task {
    background-color: #e3f2fd !important;
    /* Light blue for tasks */
}

.schedule-item-note {
    background-color: #fff9c4 !important;
    /* Light yellow for notes */
}

/* Schedule Styles - Fix for small week/day view columns */
.schedule-day-column,
.schedule-week-column {
    border: 1px solid #F4F4F4;
    padding: 2px;
    box-sizing: border-box;
    min-height: 20px;
}

.schedule-day-column.schedule-block,
.schedule-week-column.schedule-block {
    background: #f8f9fa;
    min-height: 20px;
}

/* Time column styling */
.schedule-day-times {
    background-color: #f8f9fa;
    border: 1px solid #F4F4F4;
    padding: 2px;
    text-align: center;
    box-sizing: border-box;
}

/* Make the schedule container take full viewport height */
.schedule-container:not(#unscheduledContainer) {
    min-height: calc(100vh - 200px);
}

.schedule-day,
.schedule-week {
    min-height: calc(100vh - 300px);
}

/* Dark mode support */
.dark-mode .schedule-item-task {
    background-color: #1a237e !important;
    /* Darker blue for tasks in dark mode */
}

.dark-mode .schedule-item-note {
    background-color: #827717 !important;
    /* Darker yellow for notes in dark mode */
}

.dark-mode .schedule-day-times {
    background-color: #343a40;
    border-color: #495057;
    color: #ffffff;
}

/* Dark mode schedule header text - keep black text */
.dark-mode .schedule-week-header,
.dark-mode .schedule-day-header {
    color: #000000 !important;
}

.dark-mode .schedule-week-header strong,
.dark-mode .schedule-day-header strong {
    color: #000000 !important;
}

/* Limit unscheduled appointments area height */
#unscheduledContainer {
    max-height: none;
}

#unscheduledContainer .schedule-block {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: visible;
}

#unscheduledContainer .schedule-item {
    padding: 6px 10px;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.2;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

#unscheduledContainer .schedule-item:last-child {
    margin-bottom: 0;
}

#unscheduledContainer .schedule-item .schedule-item-content {
    height: auto !important;
}

/* Enhanced appointment card styling */
.schedule-item {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    line-height: 1.2;
}

.schedule-item .schedule-item-content {
    width: 100%;
}

/* Badge styling for job type and status */
.schedule-item .badge {
    font-size: 0.8em;
    padding: 2px 5px;
    border-radius: 3px;
}

/* User assignment styling */
.schedule-item .fa-user {
    font-size: 0.9em;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .schedule-item .badge {
        font-size: 0.6em;
    }
}

.schedule-month .schedule-item,
.schedule-list .schedule-item {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Job Type Filter Styles */
.job-type-filter {
    transition: all 0.2s ease;
    border-width: 2px;
}

.job-type-filter.active {
    background-color: var(--job-type-color, #007bff) !important;
    border-color: var(--job-type-color, #007bff) !important;
    color: white !important;
    font-weight: 600;
}

.job-type-filter:not(.active):hover {
    background-color: var(--job-type-color, #007bff);
    border-color: var(--job-type-color, #007bff);
    color: white;
    opacity: 0.8;
}

/* Invoice quick receipt toggle */
#quick_receipt:checked+label.btn-outline-success {
    color: #fff !important;
}

#quick_receipt:checked+label.btn-outline-success i {
    color: #fff;
}

.qrCodeScannerContainer .select2 {
    width: 80% !important;
}

/* Dashboard Whiteboard Styles */
.whiteboard-content {
    background: #ffffff;
}

.dark-mode .whiteboard-content {
    background: #ffffff;
    color: #0f172a;
}

/* Scroll Bars */
/* width */
::-webkit-scrollbar {
    width: 12px;
}