﻿/* MudDialog Styles */

.mud-dialog-container .mud-input:not(.mud-shrink) ~ .mud-input-label,
.mud-form .mud-input:not(.mud-shrink) ~ .mud-input-label {
    color: var(--mud-palette-primary) !important;
    font-weight: 400;
}

.mud-dialog-container .mud-dialog-actions .mud-button {
    width: 100px;
}

.mud-dialog-container .mud-dialog-actions .mud-button-root.wide-button {
    width: 150px !important;
}

.mud-dialog-container .mud-dialog-actions .mud-button-root.default-button {
    width: auto;
}

.gsr-dialog {
    max-width: 800px !important; 
    width: 90vw !important; 
    max-height: 95vh !important; 
    overflow-y: scroll !important;
}


/* GsrAutoComplete Styles */

/* Base styles for all GsrAutoComplete instances */
/* Base styles for all GsrAutoComplete instances */
.mud-list-item:has(> .mud-list-item-text > .mud-typography-body1 > .mud-button) {
    padding: 0 !important;
}

/* GsrAutoComplete with Actions Styles */
.gsr-autocomplete-with-actions {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Hide the dropdown arrow when actions are present */
.gsr-autocomplete-with-actions .mud-input-adornment.mud-input-adornment-end {
    display: none !important;
}

/* Adjust clear button positioning to make room for actions */
.gsr-autocomplete-with-actions .mud-input-clear-button {
    right: var(--actions-padding, 16px) !important;
}

.gsr-autocomplete-with-actions .mud-input-slot,
.gsr-autocomplete-with-actions .mud-input-root {
    padding-right: var(--actions-padding, 16px) !important;
}

.gsr-autocomplete-with-actions .mud-input-outlined .mud-input-slot,
.gsr-autocomplete-with-actions .mud-input-filled .mud-input-slot,
.gsr-autocomplete-with-actions .mud-input-text .mud-input-slot {
    padding-right: var(--actions-padding, 16px) !important;
}

.gsr-autocomplete-actions {
    position: absolute;
    right: 0px;
    top: 0%;
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 1000;
    pointer-events: auto;
    height: auto;
}

.gsr-autocomplete-actions.standalone {
    top: 34%;
}

.gsr-autocomplete-actions * {
    pointer-events: auto;
    box-sizing: border-box;
}

.gsr-autocomplete-actions .mud-button-root {
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 50% !important;
}

.gsr-autocomplete-actions .mud-icon-button {
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
}

.gsr-autocomplete-with-actions.variant-outlined .gsr-autocomplete-actions {
    right: 12px;
}

.gsr-autocomplete-with-actions.variant-filled .gsr-autocomplete-actions {
    right: 12px;
}

@media (max-width: 600px) {
    .gsr-autocomplete-actions .mud-icon-button {
        min-width: 28px !important;
        width: 28px !important;
        height: 28px !important;
    }
}

.gsr-autocomplete-with-actions .mud-disabled .gsr-autocomplete-actions {
    opacity: 0.6;
    pointer-events: none;
}


#hubspot-messages-iframe-container {
    margin-bottom: 25px;
}


/*JOB ROSTER SCHEDULER*/

.e-schedule .e-table-wrap .e-resource-left-td {
    width: 300px;
}

.e-schedule .e-table-wrap .e-parent-node {
    padding-left: 2px;
}

.e-schedule .e-schedule-table .weekend {
    background-color: #EEEEEE !important;
}

.e-schedule .e-schedule-table .current-day {
    background-color: #FFF3E0 !important;
}

.e-schedule .e-appointment-details .e-indicator {
    color: gray;
}

.e-timeline-month-view .e-schedule-table col {
    width: 140px !important;
}

/*JOB ROSTER MULTIPLE SELECTION*/
.e-schedule .e-appointment.selected-event {
    box-shadow: 0 0 0 3px #2196f3 !important;
    z-index: 1000 !important;
    position: relative !important;
}

.e-schedule .e-appointment.selected-event {
    box-shadow: 0 0 0 3px #2196f3 !important;
    z-index: 1000 !important;
    position: relative !important;
}

.e-schedule .e-appointment.selected-event::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    z-index: 1001;
}

.e-schedule .e-appointment.multi-selected-event {
    box-shadow: 0 0 0 2px #9c27b0 !important;
    z-index: 999 !important;
}

.e-schedule .e-appointment.multi-selected-event::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    color: white;
    font-weight: bold;
    font-size: 10px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    background-color: #9c27b0;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

/*Job Scheduler Loading*/

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*JOB EVENT TEMPLATE*/
.e-time {
    font-weight: 400;
}

.e-subject {
    font-weight: 400 !important;
}

/* job floater icons */
.job-floater-icon {
    display: none;
}

/* When combined with show-job-floater-red, display and color red */
.job-floater-icon.show-job-floater-red {
    display: inline-block;
    color: var(--mud-palette-error);
}

/* When combined with show-job-floater-green, display and color green */
.job-floater-icon.show-job-floater-green {
    display: inline-block;
    color: var(--mud-palette-success);
}

/* unresolved icons */
.job-unresolved-notes-icon {
    display: none;
}
.show-unresolved-notes .job-unresolved-notes-icon {
    display: inline-block;
}

/* status icons */
.job-timesheet-status-icon {
    display: none;
}

.job-timesheet-status-icon-green {
    color: var(--mud-palette-success);
}

.job-timesheet-status-icon-amber {
    color: var(--mud-palette-warning);
}

.job-timesheet-status-icon-red {
    color: var(--mud-palette-error);
}

/* Show icons */
.show-timesheet-status .job-timesheet-status-icon {
    display: inline-block;
}

/* Flexbox layout */
.e-inner-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.event-content {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-icons {
    display: flex;
    align-items: center;
    margin-top: 8px;
    white-space: nowrap;
}

/*JOB EVENT TOOLTIP*/
/* Job Event Tooltip Styles */
.job-event-tooltip {
    padding: 8px;
    max-width: 350px;
}

.job-event-tooltip__header {
    display: flex;
    align-items: center;
}

.job-event-tooltip__icon {
    margin-right: 4px;
}

.job-event-tooltip__title {
    margin-left: 4px;
    font-weight: 500;
}

.job-event-tooltip__shift {
    display: flex;
    align-items: center;
}

.job-event-tooltip__shift-icon {
    font-size: 1rem;
    margin-right: 4px;
}

.job-event-tooltip__shift-text {
    margin-top: -2px;
}

.job-event-tooltip__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-event-tooltip__field {
    display: flex;
    flex-direction: column;
}