.labor-container {
    position: relative;
}

.manual_labor_reminder_overlay {
    position: absolute;
    inset: 0;
    z-index: 1050;
    min-height: 720px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 20px;
    background: rgba(15, 23, 42, 0);
}



.manual_labor_reminder_modal {
    position: relative;
    width: min(980px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(330px, 42%);
    gap: 0;
    padding: 48px 32px 76px;
    overflow: hidden;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 58%, #f5fbff 58%, #f5fbff 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
    color: #1f2937;
}

.manual_labor_reminder_overlay:not(.d-none) .manual_labor_reminder_modal {
    animation: manual_labor_modal_fade_down_right 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.manual_labor_reminder_overlay:not(.d-none) .manual_labor_reminder_timer_graphic,
.manual_labor_reminder_overlay:not(.d-none) .manual_labor_reminder_right_graphic,
.manual_labor_reminder_overlay:not(.d-none) .manual_labor_reminder_tip {
    animation: manual_labor_modal_soft_reveal 0.38s ease-out both;
}

.manual_labor_reminder_overlay:not(.d-none) .manual_labor_reminder_right_graphic {
    animation-delay: 0.06s;
}

.manual_labor_reminder_overlay:not(.d-none) .manual_labor_reminder_tip {
    animation-delay: 0.1s;
}

@keyframes manual_labor_overlay_fade {
    from {
        background: rgba(15, 23, 42, 0);
    }

    to {
        background: rgba(15, 23, 42, 0.24);
    }
}

@keyframes manual_labor_modal_fade_down_right {
    from {
        opacity: 0;
        transform: translate(-12px, -10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes manual_labor_modal_soft_reveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .manual_labor_reminder_overlay:not(.d-none),
    .manual_labor_reminder_overlay:not(.d-none) .manual_labor_reminder_modal,
    .manual_labor_reminder_overlay:not(.d-none) .manual_labor_reminder_timer_graphic,
    .manual_labor_reminder_overlay:not(.d-none) .manual_labor_reminder_right_graphic,
    .manual_labor_reminder_overlay:not(.d-none) .manual_labor_reminder_tip {
        animation: none;
    }
}

.manual_labor_reminder_close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #64748b;
    font-size: 18px;
}

.manual_labor_reminder_close:hover {
    background: #edf2f7;
    color: #1f2937;
}

.manual_labor_reminder_left {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 22px;
    row-gap: 28px;
    align-items: start;
    padding-right: 28px;
}

.manual_labor_reminder_timer_graphic {
    width: 190px;
    max-width: 100%;
    height: auto;
    margin-top: 36px;
    display: block;
}

.manual_labor_reminder_content {
    padding-top: 4px;
}

.manual_labor_reminder_badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 18px;
    border: 2px solid #ffb3a9;
    border-radius: 7px;
    color: #f06455;
    font-weight: 700;
    font-size: 13px;
    background: #fff8f6;
}

.manual_labor_reminder_modal h2 {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
    color: #111827;
}

.manual_labor_reminder_modal p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 600;
    color: #374151;
}

.manual_labor_reminder_rule {
    height: 1px;
    margin: 28px 0 24px;
    background: #dbe3ea;
}

.manual_labor_reminder_small {
    color: #64748b !important;
}

.manual_labor_reminder_tip {
    grid-column: 1 / span 2;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 320px;
    max-width: 100%;
    margin-top: 10px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #eaf5ff;
    color: #2f6fb7;
    font-size: 15px;
    line-height: 1.4;
}

.manual_labor_reminder_tip i {
    font-size: 24px;
}

.manual_labor_reminder_right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 0 8px 28px;
}

.manual_labor_reminder_right_graphic {
    width: 100%;
    max-width: 370px;
    height: auto;
    display: block;
}

.manual_labor_reminder_footer {
    position: absolute;
    right: 32px;
    bottom: 18px;
    left: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 26px;
}

.manual_labor_reminder_ok,
.manual_labor_reminder_timer {
  
    min-height: 44px;
    font-weight: 700;
}
.manual_labor_reminder_ok i {
    margin-right:10px;
    font-size:20px;
}
.manual_labor_reminder_timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
}

.manual_labor_reminder_timer i {
    font-size: 22px;
}

@media (max-width: 900px) {
    .manual_labor_reminder_overlay {
        padding: 14px;
    }

    .manual_labor_reminder_modal {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 42px 20px 142px;
        background: #ffffff;
    }

    .manual_labor_reminder_left {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .manual_labor_reminder_timer_graphic {
        width: 150px;
        margin: 0 auto;
    }

    .manual_labor_reminder_tip {
        grid-column: 1;
        width: 100%;
    }

    .manual_labor_reminder_right {
        padding-top: 0;
        padding-left: 0;
    }

    .manual_labor_reminder_right_graphic {
        max-width: 100%;
    }

    .manual_labor_reminder_footer {
        flex-direction: column;
        gap: 10px;
    }

    .manual_labor_reminder_ok,
    .manual_labor_reminder_timer {
        width: 100%;
        min-width: 0;
    }
}

.manual_labor_reminder_modal .manual_labor_reminder_dark_graphic {
    display: none;
}

:is([data-layout-mode="dark"], [data-sidebar="dark"]) #section-tickets .manual_labor_reminder_modal {
    background: linear-gradient(90deg, #262626 0%, #262626 58%, #202020 58%, #202020 100%);
    border-color: #454545;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

:is([data-layout-mode="dark"], [data-sidebar="dark"]) .manual_labor_reminder_modal .manual_labor_reminder_light_graphic {
    display: none;
}

:is([data-layout-mode="dark"], [data-sidebar="dark"]) .manual_labor_reminder_modal .manual_labor_reminder_dark_graphic {
    display: block;
}

:is([data-layout-mode="dark"], [data-sidebar="dark"]) #section-tickets .manual_labor_reminder_badge {
    background: #3b2926;
    border-color: #a85d50;
    color: #ffb3a9;
}

:is([data-layout-mode="dark"], [data-sidebar="dark"]) #section-tickets .manual_labor_reminder_rule {
    background: #454545;
}

:is([data-layout-mode="dark"], [data-sidebar="dark"]) #section-tickets .manual_labor_reminder_tip {
    background: #203449;
    color: #b6d9ff;
}

:is([data-layout-mode="dark"], [data-sidebar="dark"]) #section-tickets .manual_labor_reminder_close {
    color: #b8c2cc;
}

:is([data-layout-mode="dark"], [data-sidebar="dark"]) #section-tickets .manual_labor_reminder_close:is(:hover, :focus-visible) {
    background: #383838;
    color: #ffffff;
}

:is([data-layout-mode="dark"], [data-sidebar="dark"]) #section-tickets .manual_labor_reminder_timer {
    background: #203449;
    border-color: #629dcc;
    color: #c4e3ff;
}

:is([data-layout-mode="dark"], [data-sidebar="dark"]) #section-tickets .manual_labor_reminder_timer:is(:hover, :focus-visible) {
    background: #2b4864;
    color: #ffffff;
}

@media (max-width: 900px) {
    :is([data-layout-mode="dark"], [data-sidebar="dark"]) #section-tickets .manual_labor_reminder_modal {
        background: #262626;
    }
}

.labor-entry-card.labor_drop_hover,
.labor-form-component .labor-entry-card.labor_form_drop_hover,
.labor_form_body.labor_form_drop_hover,
.labor_form_drop_hover {
    border: 1px dashed #4d8bff !important;
    background: #eef6ff;
}

.labor-form-component.labor-form-pending-hydration {
    opacity: 0;
    pointer-events: none;
}

.labor-form-component.labor-form-fade-target {
    opacity: 0;
}

.labor-form-component.labor-form-fade-target.labor-form-ready {
    opacity: 1;
    transition: opacity 0.18s ease-in-out;
}

.labor-form-component .labor-form-loading-shell {
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.labor-form-component .labor-form-loading-copy {
    font-size: 13px;
    color: #64748b;
}

#section-tickets .mce-edit-area {
    border-right:1px solid #efefef !important;
}
.labor_form_body.labor_form_drop_hover {
    border-radius: 6px;
}
.billable_hours_helper {
    color:#193651;
    padding-right: 20px;
}

.labor-form-component .labor-form-top-row {
    align-items: center;
}

.labor-form-component .labor-form-top-right {
    display: flex;
    justify-content: flex-end;
    padding-left: 0;
}

.labor-form-component .labor-form-inline-row {
    width: 100%;
    max-width: none;
    margin-left: auto;
}

.labor-form-component .labor-form-type-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
}

.labor-form-component .labor-form-type-select-wrap {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
}

.labor-form-component .labor-form-type-select-wrap .bootstrap-select,
.labor-form-component .labor-form-type-select-wrap .labor-type-select {
    width: 152px !important;
    min-width: 152px;
}

.labor-muted-text {
    color: #6c757d;
}
.labor_attach_thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 2px 0 6px;
}

.labor_attach_thumbs_inline {
    margin: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.labor_attach_thumb {
    width: 28px;
    height: 28px;
    border: 1px solid #d7e3ff;
    border-radius: 4px;
    background: #f7faff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.labor_attach_thumb_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 1px;
}

.labor_attach_pop {
    display: grid;
    gap: 6px;
    max-width: 220px;
}

.labor_attach_pop_img {
    width: 177px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dfe7ff;
    background: #fff;
}

.labor_attach_pop_name {
    font-size: 12px;
    color: #1f2a44;
    word-break: break-word;
}

.labor_files_popover {
    min-width: 300px;
    max-width: 420px;
    width: auto;
}

.tooltip.task-progress-tooltip-bs .tooltip-inner {
    max-width: 320px;
    width: 320px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.96);
    color: #e2e8f0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.2);
    text-align: left;
}

.tooltip.task-progress-tooltip-bs .tooltip-arrow::before {
    border-top-color: rgba(15, 23, 42, 0.96);
}

.tooltip.task-progress-tooltip-bs.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(15, 23, 42, 0.96);
}

.tooltip.task-progress-tooltip-bs.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(15, 23, 42, 0.96);
}

.tooltip.task-progress-tooltip-bs.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(15, 23, 42, 0.96);
}

.ticket_note_tooltip {
    color: #e2e8f0;
    text-align: left;
}

.ticket_note_tooltip_kicker {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #93c5fd;
}

.ticket_note_tooltip_empty {
    font-size: 13px;
    color: #cbd5e1;
}

.ticket_note_tooltip_thread + .ticket_note_tooltip_thread {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.ticket_note_tooltip_thread_meta,
.ticket_note_tooltip_comment_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.ticket_note_tooltip_thread_author,
.ticket_note_tooltip_comment_author {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
}

.ticket_note_tooltip_thread_time,
.ticket_note_tooltip_comment_time {
    font-size: 11px;
    font-weight: 600;
    color: rgba(191, 219, 254, 0.9);
    text-align: right;
    flex-shrink: 0;
}

.ticket_note_tooltip_thread_body,
.ticket_note_tooltip_comment_body {
    font-size: 12px;
    line-height: 1.4;
    color: #e2e8f0;
}

.ticket_note_tooltip_thread_body p:last-child,
.ticket_note_tooltip_comment_body p:last-child {
    margin-bottom: 0;
}

.ticket_note_tooltip_comment {
    margin-top: 7px;
    margin-left: 12px;
    padding-left: 10px;
    border-left: 2px solid rgba(147, 197, 253, 0.28);
}

.labor_files_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.labor_files_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
}

.labor_files_thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 1px solid #e6e6e6;
    object-fit: cover;
    flex-shrink: 0;
    background: #f8f9fa;
}

.labor_files_meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.labor_files_title {
    font-weight: 600;
    font-size: 11px;
    color: #23272b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labor_files_sub {
    font-size: 10px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labor_files_open {
    color: #5a5c60;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.labor_files_open:hover {
    border-color: #d0d7de;
    background: #f8f9fa;
    color: #212529;
}

.labor_file_badge {
    color: #1976d2;
    font-size: 18px;
    margin-left: 6px;
    margin-right: 6px;
}

#section-tickets .labor-container .hours-section {
    gap: 8px;
}

#section-tickets .labor-container .actual-hours {
   
    margin-right: 0;
    padding-right: 0 !important;
    border-right: 0 !important;
    text-align: right;
}

#section-tickets .labor-container .billable-hours {
    min-width: 58px;
    padding-left: 10px;
    border-left: 1px solid #ccc;
    text-align: left;
}

#section-tickets .labor-container .flat-rate-price {
    min-width: 68px;
    padding-left: 10px;
    border-left: 1px solid #ccc;
    text-align: left;
}

#section-tickets .labor-container .billable-hours.billable_hours_muted {
    border-left-color: #dedede;
}

#section-tickets .labor-container .billable-hours.billable_hours_muted .text-dark {
    color: #a1a1a1 !important;
}

#section-tickets .labor-container .drivetime-hours {
    text-align: right;
}

.labor-actual-label {
    display: block;
}

.labor_timer_indicator {
  width: 28px;
    height: 40px;
    border-radius: 7px;
    background: #b5b5b526;
    color: #000000;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    line-height: 1;
    border: 1px solid #001d5f40;
}

.labor_timer_indicator i {
    font-size: 18px;
}

.labor_timer_tooltip {
    color: #e2e8f0;
    text-align: left;
}

.labor_timer_tooltip_row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 5px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12px;
}

.ticket_note_tooltip_kicker + .labor_timer_tooltip_row {
    border-top: 0;
    padding-top: 0;
}

.labor_timer_tooltip_row strong {
    color: #f8fafc;
    font-weight: 700;
}

.labor_timer_tooltip_duration {
    color: rgba(191, 219, 254, 0.92);
    font-weight: 700;
}

.labor-form-component .timer-entry-summary-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible;
}

.labor-form-component .labor-type-label {
    white-space: nowrap;
}

.labor-form-component .labor-form-inline-section {
    display: flex;
    align-items: flex-start;
}

.labor-form-component .labor-form-left-field-group,
.labor-form-component .labor-form-right-field-group {
    display: flex;
    flex-direction: column;
}

.labor-form-component .labor-form-left-field-group {
    flex: 0 0 194px;
    max-width: 194px;
}

.labor-form-component .labor-form-right-field-group {
    flex: 1 1 auto;
    max-width: calc(100% - 194px);
    align-items: flex-end;
}

.labor-form-component .labor-form-slider-block {
    width: 100%;
    margin-bottom:10px !important;
}

.labor-form-component .labor-slider-row {
    min-height: 30px;
    gap: 4px;
}

.labor-form-component .labor-slider-value {
    width: 36px;
    min-width: 36px;
    text-align: right;
    line-height: 1.25;
}

.labor-form-component .labor-validation-label {
    color: #dc3545 !important;
}

.labor-form-component .labor-save-validation-message {
    color: #dc3545;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    max-width: 340px;
    text-align: right;
}

.labor-form-component .labor-flat-rate-row {
    width: 100%;
}

.labor-form-component .labor-inline-input-row {
    display: flex;
    gap: 2px;
    width: 100%;
}

.labor-form-component .labor-date-input-wrap,
.labor-form-component .labor-time-input-wrap {
    position: relative;
}

.labor-form-component .labor-date-input-wrap {
    flex: 1 1 auto;
    width: calc(100% - 98px);
    min-width: 90px;
}

.labor-form-component .labor-time-input-wrap {
    flex: 0 0 81px;
    width: 81px;
}

.labor-form-component .labor-date-input-wrap .labor-inline-icon-input {
    min-width: 0;
}


.labor-form-component .labor-inline-input-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #94a3b8;
    pointer-events: none;
}

.labor-form-component .labor-time-header-row {
    margin-bottom: 6px;
}

.labor-form-component .timer-entry-summary {
  font-size: 11px;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid #112645;
    padding: 4px 9px;
    background: #477ed0;
    border-radius: 6px;
    margin-top: -4px;
}

.labor-form-component .timer-entry-summary:hover {
    text-decoration: none;
     background: #226eac;
    color: #fff;
}

.labor-form-component .timer-entry-summary i {
    margin-right: 4px;
    font-size: 12px;
}

.labor-form-component .timer-entry-panel {
    position: absolute;
    left: -131px;
    top: calc(100% + 42px);
    z-index: 25;
    width: 490px;
    padding: 12px;
    border: 1px solid #d9e3f0;
    border-radius: 10px;
    background: #f8fbff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.labor-form-component .timer-entry-list {
    max-height: 320px;
    overflow: hidden;
}

.labor-form-component .timer-entry-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.labor-form-component .timer-entry-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.labor-form-component .edit_labor_visible_select.visibility-hidden {
    color: #dc3545 !important;
}

.labor-form-component .edit_labor_visible_select.visibility-visible {
    color: #16a34a !important;
}

.labor-form-component .timer-entry-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.labor-form-component .timer-entry-close-btn,
.labor-form-component .timer-entry-delete-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.labor-form-component .timer-entry-list .simplebar-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px !important;
}

.labor-form-component .timer-entry-list .simplebar-track.simplebar-vertical {
    width: 8px;
}

.labor-form-component .timer-entry-list .simplebar-scrollbar::before {
    background: #94a3b8;
}

.labor-form-component .timer-entry-card {
    border: 1px solid #d5deea;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
}

.labor-form-component .timer-entry-row {
    display: grid;
    grid-template-columns: 84px 100px 100px 64px 58px;
    align-items: center;
    gap: 8px;
}

.labor-form-component .timer-entry-date-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    text-align: left;
}

.labor-form-component .timer-entry-time-group,
.labor-form-component .schedv4_settings_time_wrap {
    position: relative;
}

.labor-form-component .schedv4_settings_time_wrap {
    width: 100px;
}

.labor-form-component .schedv4_settings_time_input {
    width: 100% !important;
    padding-right: 30px !important;
}

.labor-form-component .schedv4_settings_time_icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 100%;
    border: 0;
    border-left: 1px solid #cdd8e6;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    background: transparent;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.labor-form-component .timer-entry-time-input {
    background: #fff !important;
    min-width: 0;
    width: 100%;
}

.labor-form-component .timer-entry-time-input[readonly] {
    cursor: default;
}

.labor-form-component .timer-entry-time-input.timer-entry-locked {
    background: #fff !important;
    color: #64748b;
}

.labor-form-component .timer-entry-duration {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    text-align: right;
    justify-self: end;
}

.labor-form-component .timer-entry-delete-cell {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.labor-form-component .timer-entry-delete-confirm {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #f3c4c4;
    border-radius: 8px;
    background: #fff7f7;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    white-space: nowrap;
}

.labor-form-component .timer-entry-delete-confirm-text {
    font-size: 11px;
    color: #7f1d1d;
    font-weight: 600;
}

.labor-form-component .timer-entry-edit-notes {
    margin-top: 6px;
    font-size: 11px;
    color: #64748b;
    max-height: 72px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.labor-form-component .timer-entry-open-badge {
    font-size: 11px;
}

.task-selection-container::-webkit-scrollbar {
    width: 6px;
}

.task-selection-container::-webkit-scrollbar-track {
    background: #fff;
}

.task-selection-container::-webkit-scrollbar-thumb {
    background: #c7cfda;
    border-radius: 0;
    border: 1px solid #b6bec9;
}

.labor-form-component .labor-task-refresh-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #d5dde7;
    border-radius: 4px;
    background: #fff;
    color: #516176;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.labor-form-component .labor-task-refresh-btn:hover {
    background: #f4f7fb;
    color: #1f4f7a;
}

.labor-form-component .labor-task-refresh-btn.is-loading i {
    animation: laborFormSpin 0.8s linear infinite;
}

.labor-form-component .labor-task-list-toggle {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #246fa8;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 4px 2px;
    text-align: center;
}

.labor-form-component .labor-task-list-toggle:hover {
    color: #184c74;
    text-decoration: underline;
}

.labor-form-component .labor-task-empty {
    border: 1px dashed #d5dde7;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    padding: 10px;
    text-align: center;
}
.labor-form-component .dropdown-menu  ul {
    border-radius: 0px !important;
}

.labor-form-component .dropdown-menu .inner::-webkit-scrollbar {
    width: 6px;
}
.labor-form-component .dropdown-menu .inner::-webkit-scrollbar-track {
    background: #fff;
}

.labor-form-component .dropdown-menu .inner::-webkit-scrollbar-thumb {
    background: #c7cfda;
    border-radius: 0;
    border: 1px solid #b6bec9;
}

.labor-form-component .clock_icon {
    position: absolute;
  right: 17px;
    top: 34px;
    pointer-events: none;
    color: #64748b;
}
.labor-form-component .calendar_icon {
    position: absolute;
       right: 6px;
    top: 34px;
    pointer-events: none;
    color: #64748b;
}

.labor-form-component .labor-time-widget-input {
    background: #fff !important;
    color: #212529 !important;
    opacity: 1 !important;
}

.labor-form-component .qa-spin {
    animation: laborFormSpin 0.8s linear infinite;
}

.labor-form-component .is-invalid,
.labor-form-component .bootstrap-select .dropdown-toggle.is-invalid,
.labor-form-component .task-selection-container.is-invalid,
.labor-form-component .edit_labor_visible_div.is-invalid,
.labor-form-component .labor-form-slider-block.is-invalid,
.labor-form-component .tox-tinymce.is-invalid {
  background-image: none !important;
  border-color: #f15959 !important;
}


.labor-form-component .actual-time-slider.actual-time-locked {
    cursor: not-allowed;
}

.labor-form-component .timer-entry-summary.timer-entry-summary-attention {
    animation: laborTimerEntryBlink 0.18s ease-in-out 6;
}

@keyframes laborFormSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes laborTimerEntryBlink {
    0% {
        color: #2b6cb0;
        opacity: 1;
    }

    50% {
        color: #dc3545;
        opacity: 0.35;
    }

    100% {
        color: #2b6cb0;
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .labor-form-component .labor-form-top-right {
        justify-content: flex-start;
    }

    .labor-form-component .labor-form-inline-row {
        max-width: none;
        margin-left: 0;
    }

    .labor-form-component .labor-form-type-row {
        justify-content: flex-start;
    }

    .labor-form-component .labor-form-type-select-wrap {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
    }

    .labor-form-component .labor-form-right-field-group {
        flex: 1 1 auto;
        max-width: none;
        align-items: stretch;
    }

    .labor-form-component .labor-form-left-field-group {
        flex: 0 0 auto;
        max-width: none;
    }

    .labor-form-component .labor-time-input-wrap {
        flex-basis: 90px;
    }

    .labor-form-component .timer-entry-panel {
        position: absolute;
        right: -10px;
        width: min(92vw, 560px);
        max-width: min(92vw, 560px);
    }

    .labor-form-component .timer-entry-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .labor-form-component .timer-entry-panel-header {
        flex-direction: column;
        align-items: stretch;
    }
}
.time-display-invalid, .billable-hours-invalid {
    color: #dc3545 !important;
}
.labor_notes_ro {
    box-shadow: 1px 1px 4px 0px rgb(0 0 0 / 8%);
    background-color: white;
}

/* Ticket labor form dark mode */
[data-layout-mode="dark"] #section-tickets .labor-container,
[data-layout-mode="dark"] #section-tickets .labor-form-component,
[data-sidebar="dark"] #section-tickets .labor-container,
[data-sidebar="dark"] #section-tickets .labor-form-component{
    color: #dedede;
}

[data-layout-mode="dark"] #section-tickets .labor-entry-card,
[data-layout-mode="dark"] #section-tickets .labor-form-component .card,
[data-layout-mode="dark"] #section-tickets .labor-form-component .labor-form-loading-shell,
[data-layout-mode="dark"] #section-tickets .labor-form-component .task-selection-container,
[data-layout-mode="dark"] #section-tickets .labor-form-component .task-selection-item,
[data-layout-mode="dark"] #section-tickets .labor-form-component .new-task-placeholder,
[data-layout-mode="dark"] #section-tickets .labor-form-component .timer-entry-panel,
[data-layout-mode="dark"] #section-tickets .labor-form-component .timer-entry-card,
[data-layout-mode="dark"] #section-tickets .labor-form-component .timer-entry-summary,
[data-layout-mode="dark"] #section-tickets .labor_notes_ro,
[data-sidebar="dark"] #section-tickets .labor-entry-card,
[data-sidebar="dark"] #section-tickets .labor-form-component .card,
[data-sidebar="dark"] #section-tickets .labor-form-component .labor-form-loading-shell,
[data-sidebar="dark"] #section-tickets .labor-form-component .task-selection-container,
[data-sidebar="dark"] #section-tickets .labor-form-component .task-selection-item,
[data-sidebar="dark"] #section-tickets .labor-form-component .new-task-placeholder,
[data-sidebar="dark"] #section-tickets .labor-form-component .timer-entry-panel,
[data-sidebar="dark"] #section-tickets .labor-form-component .timer-entry-card,
[data-sidebar="dark"] #section-tickets .labor-form-component .timer-entry-summary,
[data-sidebar="dark"] #section-tickets .labor_notes_ro{
    border-color: #383838;
    background: #262626;
    color: #dedede;
    box-shadow: none;
}

[data-layout-mode="dark"] #section-tickets .labor-entry-card .card-header,
[data-layout-mode="dark"] #section-tickets .labor-form-component .card-header,
[data-layout-mode="dark"] #section-tickets .labor-form-component .timer-entry-panel-header,
[data-sidebar="dark"] #section-tickets .labor-entry-card .card-header,
[data-sidebar="dark"] #section-tickets .labor-form-component .card-header,
[data-sidebar="dark"] #section-tickets .labor-form-component .timer-entry-panel-header{
    border-color: #383838;
    background: #262626;
    color: #ededed;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .form-control,
[data-layout-mode="dark"] #section-tickets .labor-form-component .form-select,
[data-layout-mode="dark"] #section-tickets .labor-form-component .bootstrap-select > .dropdown-toggle,
[data-layout-mode="dark"] #section-tickets .labor-form-component .labor-time-widget-input,
[data-layout-mode="dark"] #section-tickets .labor-form-component .timer-entry-time-input,
[data-layout-mode="dark"] #section-tickets .labor-form-component .schedv4_settings_time_input,
[data-sidebar="dark"] #section-tickets .labor-form-component .form-control,
[data-sidebar="dark"] #section-tickets .labor-form-component .form-select,
[data-sidebar="dark"] #section-tickets .labor-form-component .bootstrap-select > .dropdown-toggle,
[data-sidebar="dark"] #section-tickets .labor-form-component .labor-time-widget-input,
[data-sidebar="dark"] #section-tickets .labor-form-component .timer-entry-time-input,
[data-sidebar="dark"] #section-tickets .labor-form-component .schedv4_settings_time_input{
   border-color: #383838 !important;
    background: #262626 !important;
    color: #ededed !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .form-control::placeholder,
[data-layout-mode="dark"] #section-tickets .labor-form-component textarea::placeholder,
[data-sidebar="dark"] #section-tickets .labor-form-component .form-control::placeholder,
[data-sidebar="dark"] #section-tickets .labor-form-component textarea::placeholder{
    color: #909090;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .labor-form-slider-block,
[data-layout-mode="dark"] #section-tickets .labor-form-component .edit_labor_visible_div,
[data-layout-mode="dark"] #section-tickets .labor-form-component .timer-entry-delete-confirm,
[data-layout-mode="dark"] #section-tickets .manual_labor_reminder_modal,
[data-sidebar="dark"] #section-tickets .labor-form-component .labor-form-slider-block,
[data-sidebar="dark"] #section-tickets .labor-form-component .edit_labor_visible_div,
[data-sidebar="dark"] #section-tickets .labor-form-component .timer-entry-delete-confirm,
[data-sidebar="dark"] #section-tickets .manual_labor_reminder_modal{
    border-color: #383838;
   
    color: #dedede;
}

[data-layout-mode="dark"] #section-tickets .manual_labor_reminder_modal h2,
[data-layout-mode="dark"] #section-tickets .manual_labor_reminder_modal p,
[data-layout-mode="dark"] #section-tickets .labor-form-component .timer-entry-panel-title,
[data-layout-mode="dark"] #section-tickets .labor-form-component .labor-type-label,
[data-layout-mode="dark"] #section-tickets .labor-form-component .timer-entry-date-label,
[data-layout-mode="dark"] #section-tickets .labor-form-component .task_text,
[data-layout-mode="dark"] #section-tickets .labor-form-component .task_text p,
[data-sidebar="dark"] #section-tickets .manual_labor_reminder_modal h2,
[data-sidebar="dark"] #section-tickets .manual_labor_reminder_modal p,
[data-sidebar="dark"] #section-tickets .labor-form-component .timer-entry-panel-title,
[data-sidebar="dark"] #section-tickets .labor-form-component .labor-type-label,
[data-sidebar="dark"] #section-tickets .labor-form-component .timer-entry-date-label,
[data-sidebar="dark"] #section-tickets .labor-form-component .task_text,
[data-sidebar="dark"] #section-tickets .labor-form-component .task_text p{
    color: #ededed;
}

[data-layout-mode="dark"] #section-tickets .manual_labor_reminder_small,
[data-layout-mode="dark"] #section-tickets .labor-form-component .labor-validation-label,
[data-layout-mode="dark"] #section-tickets .labor-form-component .timer-entry-duration,
[data-layout-mode="dark"] #section-tickets .labor-form-component .labor-form-loading-copy,
[data-sidebar="dark"] #section-tickets .manual_labor_reminder_small,
[data-sidebar="dark"] #section-tickets .labor-form-component .labor-validation-label,
[data-sidebar="dark"] #section-tickets .labor-form-component .timer-entry-duration,
[data-sidebar="dark"] #section-tickets .labor-form-component .labor-form-loading-copy{
    color: #a5a5a5 !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .task-selection-item:hover,
[data-layout-mode="dark"] #section-tickets .labor-form-component .new-task-placeholder:hover,
[data-layout-mode="dark"] #section-tickets .labor-form-component .timer-entry-summary:hover,
[data-sidebar="dark"] #section-tickets .labor-form-component .task-selection-item:hover,
[data-sidebar="dark"] #section-tickets .labor-form-component .new-task-placeholder:hover,
[data-sidebar="dark"] #section-tickets .labor-form-component .timer-entry-summary:hover{
    background: #292929;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .dropdown-menu,
[data-sidebar="dark"] #section-tickets .labor-form-component .dropdown-menu{
    border-color: #383838;
    background: #262626;
    color: #dedede;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .dropdown-item,
[data-sidebar="dark"] #section-tickets .labor-form-component .dropdown-item{
    color: #dedede;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .dropdown-item:hover,
[data-sidebar="dark"] #section-tickets .labor-form-component .dropdown-item:hover{
    background: #303030;
    color: #ffffff;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .tox-tinymce,
[data-layout-mode="dark"] #section-tickets .labor-form-component .tox-toolbar,
[data-layout-mode="dark"] #section-tickets .labor-form-component .tox-toolbar__primary,
[data-layout-mode="dark"] #section-tickets .labor-form-component .mce-panel,
[data-layout-mode="dark"] #section-tickets .labor-form-component .mce-container,
[data-layout-mode="dark"] #section-tickets .labor-form-component .mce-edit-area,
[data-sidebar="dark"] #section-tickets .labor-form-component .tox-tinymce,
[data-sidebar="dark"] #section-tickets .labor-form-component .tox-toolbar,
[data-sidebar="dark"] #section-tickets .labor-form-component .tox-toolbar__primary,
[data-sidebar="dark"] #section-tickets .labor-form-component .mce-panel,
[data-sidebar="dark"] #section-tickets .labor-form-component .mce-container,
[data-sidebar="dark"] #section-tickets .labor-form-component .mce-edit-area{
    border-color: #383838 !important;
    background: #1e1e1e !important;
    color: #dedede !important;
}

/* Ticket labor dark mode second pass */
[data-layout-mode="dark"] #section-tickets .labor-form-component .labor_form_body,
[data-sidebar="dark"] #section-tickets .labor-form-component .labor_form_body{
    border-color: #383838 !important;
    background: #1e1e1e !important;
    color: #dedede !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .labor-form-top-row,
[data-sidebar="dark"] #section-tickets .labor-form-component .labor-form-top-row{
    border-bottom-color: #454545 !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component label,
[data-layout-mode="dark"] #section-tickets .labor-form-component .form-label,
[data-layout-mode="dark"] #section-tickets .labor-form-component .employee_name,
[data-layout-mode="dark"] #section-tickets .labor-form-component .task-section-title,
[data-layout-mode="dark"] #section-tickets .labor-form-component .labor-notes-label,
[data-sidebar="dark"] #section-tickets .labor-form-component label,
[data-sidebar="dark"] #section-tickets .labor-form-component .form-label,
[data-sidebar="dark"] #section-tickets .labor-form-component .employee_name,
[data-sidebar="dark"] #section-tickets .labor-form-component .task-section-title,
[data-sidebar="dark"] #section-tickets .labor-form-component .labor-notes-label{
    color: #ededed !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .small,
[data-layout-mode="dark"] #section-tickets .labor-form-component small,
[data-layout-mode="dark"] #section-tickets .labor-form-component .text-muted,
[data-sidebar="dark"] #section-tickets .labor-form-component .small,
[data-sidebar="dark"] #section-tickets .labor-form-component small,
[data-sidebar="dark"] #section-tickets .labor-form-component .text-muted{
    color: #a5a5a5 !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .task-selection-container,
[data-sidebar="dark"] #section-tickets .labor-form-component .task-selection-container{
    border-color: #383838 !important;
    background: #151617 !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .task-selection-item,
[data-layout-mode="dark"] #section-tickets .labor-form-component .new-task-placeholder,
[data-sidebar="dark"] #section-tickets .labor-form-component .task-selection-item,
[data-sidebar="dark"] #section-tickets .labor-form-component .new-task-placeholder{
    border-color: #383838 !important;
    background: #262626 !important;
    color: #dedede !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .task-selection-item.task-expanded,
[data-layout-mode="dark"] #section-tickets .labor-form-component .task-selection-item.is-selected,
[data-sidebar="dark"] #section-tickets .labor-form-component .task-selection-item.task-expanded,
[data-sidebar="dark"] #section-tickets .labor-form-component .task-selection-item.is-selected{
    border-color: #5ea3cb !important;
    background: #20252a !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .task_text,
[data-layout-mode="dark"] #section-tickets .labor-form-component .task_text *,
[data-sidebar="dark"] #section-tickets .labor-form-component .task_text,
[data-sidebar="dark"] #section-tickets .labor-form-component .task_text *{
    color: #dedede !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .task-checkbox,
[data-layout-mode="dark"] #section-tickets .labor-form-component input[type="checkbox"],
[data-sidebar="dark"] #section-tickets .labor-form-component .task-checkbox,
[data-sidebar="dark"] #section-tickets .labor-form-component input[type="checkbox"]{
    border-color: #5d5c5c !important;
    background-color: #111111 !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .task-checkbox:checked,
[data-layout-mode="dark"] #section-tickets .labor-form-component input[type="checkbox"]:checked,
[data-sidebar="dark"] #section-tickets .labor-form-component .task-checkbox:checked,
[data-sidebar="dark"] #section-tickets .labor-form-component input[type="checkbox"]:checked{
    border-color: #5ea3cb !important;
    background-color: #5aa6c9 !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component input[type="range"],
[data-sidebar="dark"] #section-tickets .labor-form-component input[type="range"]{
    accent-color: #5aa6c9;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component input[type="range"]::-webkit-slider-runnable-track,
[data-sidebar="dark"] #section-tickets .labor-form-component input[type="range"]::-webkit-slider-runnable-track{
    background: #383838;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component input[type="range"]::-moz-range-track,
[data-sidebar="dark"] #section-tickets .labor-form-component input[type="range"]::-moz-range-track{
    background: #383838;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component input[type="range"]::-webkit-slider-thumb,
[data-sidebar="dark"] #section-tickets .labor-form-component input[type="range"]::-webkit-slider-thumb{
    border-color: #dedede;
    background: #6681cf;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component input[type="range"]::-moz-range-thumb,
[data-sidebar="dark"] #section-tickets .labor-form-component input[type="range"]::-moz-range-thumb{
    border-color: #dedede;
    background: #6681cf;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .mce-btn,
[data-layout-mode="dark"] #section-tickets .labor-form-component .mce-toolbar .mce-btn,
[data-sidebar="dark"] #section-tickets .labor-form-component .mce-btn,
[data-sidebar="dark"] #section-tickets .labor-form-component .mce-toolbar .mce-btn{
    border-color: #454545 !important;
    background: #262626 !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .mce-btn:hover,
[data-layout-mode="dark"] #section-tickets .labor-form-component .mce-btn.mce-active,
[data-sidebar="dark"] #section-tickets .labor-form-component .mce-btn:hover,
[data-sidebar="dark"] #section-tickets .labor-form-component .mce-btn.mce-active{
    background: #303030 !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .mce-ico,
[data-layout-mode="dark"] #section-tickets .labor-form-component .mce-txt,
[data-sidebar="dark"] #section-tickets .labor-form-component .mce-ico,
[data-sidebar="dark"] #section-tickets .labor-form-component .mce-txt{
    color: #dedede !important;
}

[data-layout-mode="dark"] #section-tickets .labor-form-component .mce-edit-area iframe,
[data-sidebar="dark"] #section-tickets .labor-form-component .mce-edit-area iframe{
    background: #161616 !important;
}

[data-layout-mode="dark"] #section-tickets .labor_notes_ro,
[data-layout-mode="dark"] #section-tickets .labor_notes_ro *,
[data-sidebar="dark"] #section-tickets .labor_notes_ro,
[data-sidebar="dark"] #section-tickets .labor_notes_ro *{
    color: #dedede !important;
}

[data-layout-mode="dark"] #section-tickets .labor-entry-card .card-body,
[data-sidebar="dark"] #section-tickets .labor-entry-card .card-body{
    background: #262626;
}

[data-layout-mode="dark"] #section-tickets .labor-entry-card .border-start,
[data-layout-mode="dark"] #section-tickets .labor-entry-card [style*="border-left"],
[data-sidebar="dark"] #section-tickets .labor-entry-card .border-start,
[data-sidebar="dark"] #section-tickets .labor-entry-card [style*="border-left"]{
    border-color: #383838 !important;
}
[data-layout-mode="dark"] .labor-form-component .labor-muted-text,
[data-sidebar="dark"] .labor-form-component .labor-muted-text{
    color:#d3dadf !important;
}

[data-layout-mode="dark"] .labor-form-component .labor-task-refresh-btn,
[data-sidebar="dark"] .labor-form-component .labor-task-refresh-btn{
    border-color: #4b4848 !important;
    background: #28292b !important;
    color: #a9c3e5 !important;
} 
[data-layout-mode="dark"] .labor-form-component .labor-task-refresh-btn:hover,
[data-sidebar="dark"] .labor-form-component .labor-task-refresh-btn:hover {
    border-color: #4b4848 !important;
    background: #3d424d !important;
    color: #a9c3e5 !important;
} 

.labor_timer_placeholder_card .card-body {
    padding: 18px 24px;
}

.labor_reload_no_animation .labor-entry-card {
    animation: none !important;
}

.labor_timer_placeholder_card.labor_card_paused_timer .card-header {
    background: #f1a2474d;
    border: 1px solid #f1a247;
    color: #7a4f24;
    font-weight: 600;
}

.labor_timer_placeholder_card.labor_card_paused_timer .bg-warning {
    background: #f1a247 !important;
    color: #ffffff !important;
}

.labor_timer_status_icon_paused {
    color: #f1a247;
    font-size: 16px;
}

.labor_timer_placeholder_card.labor_card_completed_timer {
    border: 1px solid #6f80c8 !important;
}

.labor_timer_placeholder_card.labor_card_completed_timer .card-header {
    background: #dfe6ff;
    border: 1px solid #6f80c8;
    color: #34437a;
    font-weight: 600;
}

.labor_timer_badge_completed {
    background: #6f80c8 !important;
    color: #ffffff !important;
}

.labor_timer_status_icon_completed {
    color: #6f80c8;
    font-size: 16px;
}

.labor_timer_summary_row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.labor_timer_draft_panel {
    background: #f8fbff;
    border: 1px solid #d7e6f5;
    border-radius: 6px;
    padding: 12px;
}

.labor_timer_has_draft {
    box-shadow: 0 3px 12px rgba(32, 91, 140, 0.12);
}

.labor_timer_draft_header {
    align-items: center;
    color: #254d6f;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    margin-bottom: 8px;
}

.labor_timer_draft_header i {
    margin-right: 6px;
}

.labor_timer_draft_updated {
    color: #6f7d8c;
    font-size: 12px;
    font-weight: 500;
}

.labor_timer_draft_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.labor_timer_draft_meta span {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe8f0;
    border-radius: 4px;
    color: #32475b;
    display: inline-flex;
    font-size: 12px;
    gap: 5px;
    min-height: 24px;
    padding: 3px 7px;
}

.labor_timer_draft_section {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    height: 100%;
    padding: 10px;
}

.labor_timer_draft_label {
    color: #5f6f80;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.labor_timer_draft_notes {
    color: #1f2d3d;
    font-size: 13px;
    line-height: 1.45;
    max-height: 120px;
    overflow-y: auto;
}

.labor_timer_draft_notes p:last-child {
    margin-bottom: 0;
}

.labor_timer_draft_task {
    align-items: center;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    gap: 8px;
    padding: 7px 0;
}

.labor_timer_draft_task:first-child {
    padding-top: 0;
}

.labor_timer_draft_task:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.labor_timer_draft_task_icon {
    color: #4fa5d1;
    flex: 0 0 auto;
    font-size: 17px;
}

.labor_timer_draft_task_complete .labor_timer_draft_task_icon {
    color: #1db78a;
}

.labor_timer_draft_task_body {
    flex: 1 1 auto;
    min-width: 0;
}

.labor_timer_draft_task_title {
    color: #22313f;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.labor_timer_draft_progress {
    background: #e7edf3;
    border-radius: 10px;
    height: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.labor_timer_draft_progress span {
    background: #4fa5d1;
    display: block;
    height: 100%;
}

.labor_timer_draft_task_complete .labor_timer_draft_progress span {
    background: #1db78a;
}

.labor_timer_draft_task_badge {
    flex: 0 0 auto;
    min-width: 44px;
}

.labor_timer_draft_task_badge_complete {
    background: #1db78a !important;
}

.labor_timer_draft_empty {
    color: #7b8794;
    font-size: 13px;
    font-style: italic;
}

[data-layout-mode="dark"] .labor_timer_draft_panel {
    background: #020304;
    border-color: #4c5259;
}

[data-layout-mode="dark"] .labor_timer_draft_section,
[data-layout-mode="dark"] .labor_timer_draft_meta span {
    background: #151617;
    border-color: #4c5259;
    color: #ededed;
}

[data-layout-mode="dark"] .labor_timer_draft_header,
[data-layout-mode="dark"] .labor_timer_draft_notes,
[data-layout-mode="dark"] .labor_timer_draft_task_title {
    color: #ededed;
}

[data-layout-mode="dark"] .labor_timer_draft_updated,
[data-layout-mode="dark"] .labor_timer_draft_label,
[data-layout-mode="dark"] .labor_timer_draft_empty {
    color: #b0b8c2;
}

[data-layout-mode="dark"] .labor_timer_draft_task {
    border-bottom-color: #4c5259;
}

[data-layout-mode="dark"] .labor_timer_draft_progress {
    background: #343a40;
}

[data-layout-mode="dark"] .labor_timer_draft_notes a {
    color: #79bce3;
}

[data-layout-mode="dark"] .labor_timer_draft_notes {
    scrollbar-color: #6a737f #151617;
}

.labor_ai_suggestion_wrap {
    margin: 0;
    min-height: 40px;
    position: relative;
    width: max-content;
    top:-6px;
}

.labor_ai_suggestion_trigger {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    gap: 9px;
    padding: 0;
}

.labor_ai_suggestion_trigger:focus-visible {
    border-radius: 20px;
    outline: 2px solid rgba(70, 126, 208, 0.35);
    outline-offset: 3px;
}

.labor_ai_suggestion_trigger:hover .labor_ai_suggestion_bubble,
.labor_ai_suggestion_trigger:focus .labor_ai_suggestion_bubble {
    border-color: #c8d0db;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.14);
}

.labor_ai_suggestion_trigger[aria-expanded="true"] {
    visibility: hidden;
}

.labor_ai_suggestion_bubble {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 20px;
    box-shadow: 0 3px 9px rgba(30, 41, 59, 0.11);
    color: #343a40;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 14px;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.labor_ai_suggestion_bubble::before {
    background: #fff;
    border-bottom: 1px solid #d9dee7;
    border-left: 1px solid #d9dee7;
    content: "";
    height: 8px;
    left: -5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
}

.labor_ai_suggestion_robot {
    height: 40px;
    object-fit: contain;
    width: 40px;
}

.labor_ai_suggestion_wrap.labor_ai_suggestion_thinking .labor_ai_suggestion_trigger {
    cursor: wait;
}

.labor_ai_suggestion_wrap.labor_ai_suggestion_thinking .labor_ai_suggestion_bubble {
    animation: labor_ai_suggestion_thinking_pulse 1.15s ease-in-out infinite;
}

@keyframes labor_ai_suggestion_thinking_pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .labor_ai_suggestion_wrap.labor_ai_suggestion_thinking .labor_ai_suggestion_bubble {
        animation: none;
    }
}

.labor_ai_suggestion_panel {
   background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 9px;
    box-shadow: 0 10px 28px rgba(30, 41, 59, 0.2);
    color: #33475b;
    left: -2px;
    max-width: calc(100vw - 60px);
    overflow: hidden;
    position: absolute;
    top: -18px;
    width: 660px;
    z-index: 1060;
}

.labor_ai_suggestion_header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    padding: 10px 10px 0px;
}

.labor_ai_suggestion_avatar {
    align-items: center;
    background: #eaf7ff;
    border-radius: 50%;
    display: flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    overflow: hidden;
    width: 44px;
}

.labor_ai_suggestion_avatar img {
    height: 36px;
    object-fit: contain;
    width: 36px;
}

.labor_ai_suggestion_heading {
    flex: 1 1 auto;
    min-width: 0;
}

.labor_ai_suggestion_title {
    color: #173e78;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin: 1px 0 4px;
    padding-top: 9px;
}

.labor_ai_reanalyze {
    flex: 0 0 auto;
    white-space: nowrap;
}

.labor_ai_suggestion_close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #8290a3;
    display: flex;
    font-size: 15px;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}

.labor_ai_suggestion_close:hover,
.labor_ai_suggestion_close:focus {
    color: #33475b;
}

.labor_ai_suggestion_body {
    background: #fbfcfe;
    border: 1px solid #dfe4eb;
    border-radius: 7px;
    margin: 0 18px;
    max-height: 390px;
    overflow-y: auto;
    padding: 12px 13px;
}
.labor_ai_suggestion_body::-webkit-scrollbar {
    width: 6px;
}

.labor_ai_suggestion_body::-webkit-scrollbar-track {
    background: #fff;
}

.labor_ai_suggestion_body::-webkit-scrollbar-thumb {
    background: #c7cfda;
    border-radius: 0;
    border: 1px solid #b6bec9;
}

.labor_ai_suggestion_group + .labor_ai_suggestion_group {
   
    padding-top: 10px;
}

.labor_ai_suggestion_section_title {
    color: #244e88;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.labor_ai_suggestion_item {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe4eb;
    border-radius: 6px;
    display: flex;
    gap: 9px;
    min-height: 48px;
    padding: 7px 8px;
}

.labor_ai_suggestion_item + .labor_ai_suggestion_item {
    margin-top: 6px;
}

.labor_ai_suggestion_item_icon {
    align-items: center;
    border: 1px solid #cad5e3;
    border-radius: 6px;
    color: #477ed0;
    display: flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.labor_ai_suggestion_item_copy {
    flex: 1 1 auto;
    min-width: 0;
}

.labor_ai_suggestion_item_text {
    color: #000;
    font-size: 12px;
    line-height: 1.2;
}

.labor_ai_suggestion_item_detail {
    color: #1f4161;
    font-size: 11px;
    line-height: 1.15;
    margin-top: 0;
}

.labor_ai_note_update_detail {
    white-space: pre-line;
}

.labor_ai_suggestion_badge {
    flex: 0 0 44px;
    font-size: 12px;
    min-width: 44px;
    padding: 6px 5px;
    text-align: center;
}

.labor_ai_suggestion_badge_complete {
    background: #50b96a !important;
    color: #fff;
}

.labor_ai_suggestion_badge_na {
    background: #f2a33a !important;
    color: #fff;
}

.labor_ai_suggestion_action {
    flex: 0 0 94px;
    white-space: nowrap;
    width: 94px;
}

.labor_ai_suggestion_empty {
    color: #7b8794;
    font-size: 12px;
    padding: 6px 0;
    text-align: center;
}

.labor_ai_suggestion_response {
    font-size: 13px;
    line-height: 1.45;
    max-height: 260px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.labor_ai_suggestion_meta {
    color: #7b8794;
    font-size: 11px;
    margin-top: 8px;
}

.labor_ai_suggestion_footer {
    display: flex;
    gap: 10px;
    padding: 10px 18px 16px;
}

.labor_ai_apply_all {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 12px !important;
    font-weight: bold;
}

.labor_ai_suggestion_dismiss {
    flex: 0 0 120px;
}
.labor_task_na_button {
    padding: 4px 8px;
    border: 1px solid #d1cece;
    color: #414141;
}
.labor_task_na_button:hover {
    background: #7084c7;
    color: #fff;
    border:1px solid #7084c7;

}
.labor_task_na_popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1055;
    width: 300px;
    padding: 12px;
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(30, 41, 59, 0.18);
}
.labor_task_na_popover::before {
    position: absolute;
    top: -6px;
    right: 24px;
    width: 11px;
    height: 11px;
    content: "";
    background: #fff;
    border-top: 1px solid #d9dee7;
    border-left: 1px solid #d9dee7;
    transform: rotate(45deg);
}
.labor_task_na_confirm_message {
    color: #343a40;
    font-size: 13px;
    line-height: 1.4;
}
@media (max-width: 767px) {
    .labor_timer_summary_row {
        align-items: flex-start;
        gap: 12px;
    }

    .labor_timer_placeholder_card .card-body {
        padding: 14px;
    }

    .labor_timer_draft_header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

[data-layout-mode="dark"] #section-tickets .labor_tasks_surface {
    background-color: #262626 !important;
    border-left-color: #454545 !important;
    color: #dedede;
}
[data-layout-mode="dark"] #section-tickets .labor-tasks-text { color: #dedede; }
[data-layout-mode="dark"] #section-tickets .labor_timer_indicator {
    background: #303030;
    border-color: #505050;
    color: #cecace;
}
[data-layout-mode="dark"] #section-tickets .labor_timer_indicator i { color: #cecace; }
[data-layout-mode="dark"] #section-tickets .employee_name { color: #ededed; }
[data-layout-mode="dark"] #section-tickets .day-box {
    background: #303030;
    border-color: #454545;
    color: #dedede;
}
[data-layout-mode="dark"] .labor_ai_suggestion_bubble::before {
    background: #506087;
    border-bottom: 1px solid #808eaf;
    border-left: 1px solid #808eaf;
    content: "";
    height: 8px;
    left: -4px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
}
[data-layout-mode="dark"] .labor_ai_suggestion_bubble {
   background: #506087;
    border: 1px solid #808eaf;
    color: #e5e5e5;
}
[data-layout-mode="dark"] .labor_ai_suggestion_bubble:hover {
    border-color: #c1c4cb;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.14);
}
[data-layout-mode="dark"] .labor-form-component .labor-task-empty {
    border: 1px dashed #6a737f;
    background: #151617;
    color: #f7f7f7;
    font-size: 12px;
    padding: 10px;
    text-align: center;
}
[data-layout-mode="dark"] .labor_task_na_button {
    padding: 4px 8px;
    border: 1px solid #8d8d8d;
    color: #ffffff;
}
