.schedule-container {
    /*scrollbar-width: auto;*/
    font-size: 12px;
    box-sizing: border-box;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.pb-schedule-button-prev {
    padding-left: 10px;
}

.pb-schedule-button-next{

}

.pb-scheduler-week-item {
    width: 220px;
}

.pb-schedule-draggable {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.pb-schedule-draggable:active {
    cursor: grabbing;
}

.pb-schedule-drop-target {
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.pb-schedule-drop-target-active {
    box-shadow: inset 0 0 0 2px #2196f3;
    background-color: rgba(33, 150, 243, 0.08);
}
.tech-header-sticky{
    background-color: var(--mud-palette-surface);
    position: sticky;
    top: 0;
}

.pb-scheduler-month-item {
    border-radius: 4px;
    background-color: #8cc0e5;
    color: black;
    height: 100%;
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    line-height: 0.55rem;
    overflow: hidden;
}

html, body {
    height: 100%;
}

/* Legend - Fixed Footer */
.pb-schedule-day-legend-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-lines-default);
    padding: 6px 16px;
    z-index: 100;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.08);
}

.pb-schedule-day-legend {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.pb-schedule-legend-item {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
    color: #333;
}

/* Legacy - keep for backwards compatibility */
.pb-schedule-day-legend-container {
    display: none; /* Hidden - using wrapper instead */
}

.schedule-arrows-container {
    display: flex;
    justify-content: flex-end;
}

.schedule-arrow-right {
    display: flex;
    gap: 10px;
}

.schedule-arrows {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.pb-schedule-day-slot {
    border-radius: initial;
    border-top: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
    background-color: #8cc0e5;
    display: flex;
}

.pb-scheduler-day-item {
    border-radius: 4px;
    /*background-color: #8cc0e5;*/
    color: darkblue;
    height: 100%;
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1.25rem;
    overflow: hidden;
}

.pb-scheduler-tech-day-item {
    border-radius: 4px;
    background-color: #e58cc0;
    color: black;
    height: 100%;
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1.25rem;
    overflow: hidden;
    border: 5px solid #e5e5e5;
}

.pb-scheduler-day-header {
    font-size: 16px;
    text-transform: capitalize;
    color: rgba(117, 117, 117, 1);
    text-align: center;
}



.pb-scheduler-view-container {
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    border-radius: 6px 6px 6px 6px;
    box-sizing: border-box;
}

.pb-scheduler-view-rows {
    /*max-height: 120px;*/
    overflow: hidden;
    border: 0;
}

.pb-scheduler-view-week-rows {
    box-shadow: rgba(0, 0, 0, 0.16) 0 1px 4px;
    /*box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;*/
    border-radius: 8px;
    margin-top: 5px;
    margin-left: 5px;
    /*max-height: 120px;*/
    overflow: hidden;
    border: 0;
}

.pb-scheduler-view-rows:hover {
    overflow-y: auto;
}

.pb-scheduler-view-header {
    background-color: rgba(216, 216, 216, 0.1);
    display: flex;
    flex-direction: column;
    font-size: 13px;
    border-radius: 6px 6px 0 0;
    text-transform: uppercase;
}

    .pb-scheduler-view-header > div:first-child {
        border-radius: 6px 6px 0 0;
        justify-content: space-between;
        padding-bottom: 3px;
        padding-top: 3px;
    }

    .pb-scheduler-view-header .pb-scheduler-view-row {
        border: 0;
    }

.pb-scheduler-view-row:first-of-type {
    border: 0;
}

.pb-scheduler-view-row:last-of-type {
    border-bottom: 1px solid rgba(151, 151, 151, 0.1);
}

.pb-scheduler-view-row {
    padding-left: 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: space-between;
    border-top: 1px solid rgba(151, 151, 151, 0.1);
    flex-grow: 1;
    padding-right: 15px;
}

.pb-scheduler-view-month-row {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 2px 6px 2px 0;
}

.pb-scheduler-view-month-row .pb-scheduler-view-row-main {
    min-width: 0;
}

.pb-scheduler-view-month-row .pb-scheduler-view-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
    max-height: none;
    overflow: hidden;
}

.pb-scheduler-view-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-shrink: 0;
}

.pb-scheduler-view-month-capacity {
    width: 100%;
    flex-shrink: 0;
}

.pb-scheduler-view-month-badges {
    width: 100%;
    margin-top: 0;
    gap: 4px;
}

.pb-scheduler-view-month-meta {
    font-size: 0.5rem;
    color: #6b7280;
    line-height: 1.1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.pb-schedule-month-issue {
    cursor: pointer;
}

.pb-schedule-month-issue-sep {
    margin: 0 4px;
    color: #9ca3af;
}

.pb-month-chip {
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 6px !important;
    font-size: 0.55rem !important;
    line-height: 1.1 !important;
}

.pb-scheduler-view-month-row .pb-schedule-capacity-month {
    width: 100%;
}

.pb-scheduler-row-right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.pb-scheduler-view-name {
    font-size: 12px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    /*color: #353535;*/
    /*border-right: 1px solid rgba(151, 151, 151, 0.1);*/
    min-width: 60px;
    text-overflow: ellipsis;
    white-space: nowrap;
    /*word-wrap: break-word;*/
    overflow: hidden;
}

.pb-scheduler-view-nr {
    /*border-right: 1px solid rgba(151, 151, 151, 0.1);*/
    /*border-left: 1px solid rgba(151, 151, 151, 0.1);*/
    width: 22px;
    text-align: right;
    padding-right: 5px;
}

.pb-scheduler-view-hours {
    width: 40px;
    text-align: right;
}

/* Schedule count badge - distinct color */
.pb-schedule-count-badge {
    background-color: #6366f1;
    color: white;
    border-radius: 8px;
    padding: 0 4px;
    font-size: 8px;
    font-weight: 600;
    min-width: 14px;
    text-align: center;
    line-height: 1.4;
}

.pb-scheduler-view-row .date {
    padding-left: 5px;
}

.pb-slot-title, .pb-slot-title a, .pb-scheduler-view-day-hours a {
    color: rgba(117, 117, 117, 1);
    /*font-weight: 700;*/
}

    .pb-slot-title a:hover, .pb-scheduler-view-day-hours a:hover {
        color: blue;
        /*font-weight: 700;*/
    }

.pb-scheduler-view-week-name,
.pb-scheduler-view-day-order-acc-container,
.pb-scheduler-view-day-order-acc-left-side {
    font-size: 12px;
    font-weight: 700;
    min-width: 60px;
    max-width: 150px;
    text-overflow: ellipsis;
    white-space: nowrap;
    /*word-wrap: break-word;*/
    padding-bottom: 4px;
}

.pb-scheduler-view-day-order-acc-container {
    display: flex;
    gap: 2px;
    flex-wrap: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.pb-scheduler-view-day-order-acc-helpers-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* or flex-end for right-side if needed */
    gap: 2px;
    margin-top: 5px;
    padding: 0 5px;
}
.pb-scheduler-view-day-order-acc-helper {
    font-style: italic;
    font-size: 11px;
}

.pb-scheduler-view-day-order-acc-order-id {
    flex-shrink: 0;
}

.pb-scheduler-view-day-order-acc-separator {
    flex-shrink: 0;
}

.pb-scheduler-view-day-order-acc-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.pb-scheduler-view-day-hours {
}


.pb-scheduler-view-week-name {
    font-size: 13px;
}

.pb-scheduler-view-week-row {
    border-radius: inherit;
    padding: 10px 10px 5px 15px;
    display: flex;
    flex-direction: column;
}

.pb-scheduler-view-week-data {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
}

.pb-scheduler-view-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.pb-scheduler-view-city {
}

.pb-scheduler-view-details {
    padding-left: 2px;
}

.pb-week-slot-header {
    text-transform: capitalize;
    font-size: 14px !important;
    min-width: 220px;
}

.pb-week-slot-date {
    font-size: 12px;
    line-height: 1.2;
}

.pb-week-view {
    overflow-y: auto;
}

.pb-week-view-header {
    overflow-x: hidden;
}

.pb-week-view .rz-view-content {
    overflow-x: hidden;
}

.pb-wk-view-content {
    overflow: visible;
}

.pb-week-view-header, .pb-day-view-header {
    border-bottom: 0;
    margin-bottom: 5px;
}

.pb-day-view-header {
    font-weight: 600;
    font-size: 14px;
}


.pb-scheduler-view-day-rows {
    box-shadow: rgba(0, 0, 0, 0.16) 0 1px 4px;
    /*box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;*/
    border-radius: 8px;
    margin-top: 5px;
    margin-left: 5px;
    /*max-height: 120px;*/
    overflow: hidden;
    border: 0;
}

.pb-scheduler-view-day-row {
    border-radius: inherit;
    padding: 10px 7px 5px 8px;
    display: flex;
    flex-direction: column;
    color: rgba(117, 117, 117, 1);
}

    .pb-scheduler-view-day-row > div {
        padding-bottom: 1px;
        font-size: 12px;
    }

        .pb-scheduler-view-day-row > div:first-child {
            padding-bottom: 7px;
            font-size: 13px;
        }


.pb-event-day-item {
}

.pb-scheduler-details-popup-container-group {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
}

.pb-scheduler-details-popup-detail-description {
    color: var(--mud-palette-text-secondary);
    font-size: 13px;
}

.pb-scheduler-details-popup-li {
    margin-top: 10px;
}

.pb-scheduler-details-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--mud-palette-divider);
    border-left: 4px solid var(--schedule-status-color, var(--mud-palette-divider));
    background: var(--mud-palette-surface);
    box-shadow: rgba(0, 0, 0, 0.08) 0 1px 3px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.pb-scheduler-details-card:hover {
    box-shadow: rgba(0, 0, 0, 0.12) 0 4px 12px;
    transform: translateY(-1px);
}

.pb-scheduler-details-card-personal {
    border-left-style: dashed;
}

.pb-scheduler-details-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.pb-scheduler-details-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.pb-scheduler-details-card-title-sub {
    margin-left: 4px;
    font-weight: 400;
    color: var(--mud-palette-text-secondary);
}

.pb-scheduler-details-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pb-scheduler-details-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pb-scheduler-details-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pb-scheduler-details-row-content {
    display: flex;
    flex-direction: column;
}

.pb-scheduler-details-row-sub {
    color: var(--mud-palette-text-secondary);
}

.pb-scheduler-details-row .mud-icon-root {
    color: var(--mud-palette-text-secondary);
}

.pb-scheduler-details-helpers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px 0;
    border-top: 1px dashed var(--mud-palette-divider);
    margin-top: 4px;
}

.pb-scheduler-details-helpers .mud-icon-root {
    color: var(--mud-palette-text-secondary);
    font-size: 18px;
}

.pb-scheduler-details-helpers .mud-chip {
    height: 22px;
    font-size: 11px;
}

.pb-scheduler-details-duration {
    color: var(--mud-palette-text-secondary);
    background: var(--mud-palette-background);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: auto;
    white-space: nowrap;
}

.pb-scheduler-details-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-scheduler-details-work-preview {
    color: var(--mud-palette-text-secondary);
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pb-scheduler-details-conflict {
    color: var(--mud-palette-warning);
    display: flex;
    align-items: center;
}

.pb-scheduler-details-order-type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Schedule status colors */
.pb-scheduler-details-card--completed {
    --schedule-status-color: #2e7d32;
}

.pb-scheduler-details-card--in-progress {
    --schedule-status-color: #1976d2;
}

.pb-scheduler-details-card--scheduled,
.pb-scheduler-details-card--speculated {
    --schedule-status-color: #f6ad55;
}

.pb-scheduler-details-card--cancelled {
    --schedule-status-color: #e53935;
}

.pb-scheduler-details-card--worked {
    --schedule-status-color: #757575;
}

.pb-scheduler-details-card--personal {
    --schedule-status-color: #7c4dff;
}

/* Dark mode status colors */
.mud-theme-dark .pb-scheduler-details-card--completed {
    --schedule-status-color: #7ed957;
}

.mud-theme-dark .pb-scheduler-details-card--in-progress {
    --schedule-status-color: #90caf9;
}

.mud-theme-dark .pb-scheduler-details-card--scheduled,
.mud-theme-dark .pb-scheduler-details-card--speculated {
    --schedule-status-color: #ffd166;
}

.mud-theme-dark .pb-scheduler-details-card--cancelled {
    --schedule-status-color: #ff8a80;
}

.mud-theme-dark .pb-scheduler-details-card--worked {
    --schedule-status-color: #b0b0b0;
}

.mud-theme-dark .pb-scheduler-details-card--personal {
    --schedule-status-color: #b388ff;
}

.pb-week-view-content {
    /*overflow-y: auto;*/
    /*width: 1600px;*/
    /*min-width: 0;*/
}

.pb-week-slots {
    min-width: 220px;
}

/*SCHEDULER */
.order-scheduler-container {
    display: flex;
    gap: 3px;
    padding-bottom: 50px;
}

.order-scheduler-left {
    min-width: 300px;
    padding-right: 5px;
}

#pb-day-view-container-id {
    /* overflow-x: scroll; */
    /*border: 1px solid black;*/
}

.pb-day-view-container-new {
}

.pb-day-view-items-new {
    display: flex;
    /*gap: 10px;*/
    overflow: auto;
    /*width: calc(100vw - 50px);*/
    width: calc(100vw - var(--day-schedule-width-adder));
    height: calc(100vh - 210px); /* Reduced offset, account for fixed legend footer ~40px */
    padding-bottom: 50px; /* Space for fixed legend */
}

@media only screen and (max-width: 960px) {
    .pb-day-view-items-new {
        width: calc(100vw - 70px);
    }
}

.pb-day-view-column-new {
    min-height: max(var(--day-schedule-height), 100%);
    /*min-height: 1300px;*/
    /*flex: 1 1 0;*/
}

.pb-day-view-column-new:last-child {
/*border-right: 0;*/
}

.pb-day-view-header-new {
    font-size: 14px;
    min-width: 100px;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
    color: rgba(117, 117, 117, 1);
    text-align: center;
    padding: 0px 10px;
}

.pb-day-view-route-action {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.pb-day-view-schedules-new {
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
    /*gap: 10px;*/
}

.pb-day-view-schedule-new {
    padding: 2px;
    border-radius: 8px;
    /*remove*/
    /*background-color: #f7e8dc;*/
}

    .pb-day-view-schedule-new:last-child {
    }

.pb-scheduler-view-day-cell-container {
    display: flex;
    flex-direction: column;
    /*background-color: #f7e8dc;*/
    padding: 4px 2px 2px 3px;
    border-radius: inherit;
    /*padding: 4px;*/
    /*border-radius: 4px;*/
}

.pb-schedule-drag-content {
    position: relative;
    padding-left: 18px;
}

.rz-month-view .rz-event {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.rz-month-view .pb-schedule-drag-content {
    height: 100%;
    overflow: hidden;
    padding-left: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.rz-month-view .pb-schedule-drag-handle {
    position: relative;
    top: 2px;
    left: 0;
    flex: 0 0 12px;
}

.rz-month-view .pb-month-more-event {
    cursor: pointer;
}

.rz-month-view .pb-month-more-content {
    background: transparent;
    padding: 0 0 0 2px;
    color: var(--rz-scheduler-event-list-button-color);
    font-size: var(--rz-scheduler-event-list-button-font-size);
    line-height: 1.2;
}

.rz-month-view .pb-month-more-event:hover .pb-month-more-content {
    text-decoration: underline;
}

/* Focus indicators for keyboard navigation */
.rz-month-view .pb-month-more-event:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.rz-month-view .pb-month-more-event:focus .pb-month-more-content {
    text-decoration: underline;
}

.pb-slot-title:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 1px;
    border-radius: 2px;
}

.pb-schedule-drag-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 20px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.15);
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.7) 2px,
        transparent 2px,
        transparent 4px
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    opacity: 0.7;
    z-index: 1;
}

.pb-schedule-drag-handle:hover {
    opacity: 1;
}

.pb-chip-action {
    cursor: pointer;
}

.pb-schedule-inline-edit-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pb-schedule-inline-edit-row a {
    flex: 1 1 auto;
}

.pb-schedule-inline-edit {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pb-schedule-inline-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pb-schedule-conflict-drawer {
    position: fixed;
    top: var(--toolbar-header-height);
    right: 0;
    width: min(360px, 92vw);
    height: calc(100vh - var(--toolbar-header-height));
    background-color: var(--mud-palette-surface, #ffffff);
    border-left: 1px solid var(--mud-palette-divider, #e0e0e0);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
}

.pb-schedule-conflict-drawer.is-open {
    transform: translateX(0);
}

.pb-schedule-conflict-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--mud-palette-divider, #e0e0e0);
}

.pb-schedule-conflict-drawer-body {
    overflow-y: auto;
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pb-schedule-conflict-item {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pb-schedule-conflict-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pb-schedule-conflict-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.pb-schedule-conflict-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1100;
}

.pb-schedule-capacity {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pb-schedule-capacity-bar {
    flex: 1 1 auto;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.pb-schedule-capacity-fill {
    height: 100%;
    background-color: #4caf50;
}

.pb-route-planner-overlay {
    position: fixed;
    top: var(--toolbar-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
}

.pb-schedule-route-hidden {
    display: none;
}

.pb-route-planner-inline {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: var(--mud-palette-surface, #ffffff);
    display: flex;
    flex-direction: column;
}

.pb-route-planner-inline .pb-route-planner-panel {
    margin: 0;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.pb-route-planner-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 16, 24, 0.35);
}

.pb-route-planner-panel {
    position: relative;
    z-index: 1;
    margin: 16px;
    height: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface, #ffffff);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.pb-route-planner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    background: #f8fafc;
}

.pb-route-planner-title {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.pb-route-planner-title-main {
    margin: 0;
}

.pb-route-planner-title-meta {
    color: #64748b;
}

.pb-route-planner-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pb-route-planner-controls .mud-input-control {
    min-width: 220px;
}

.pb-route-planner-field {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pb-route-planner-field .mud-input-control {
    min-width: 220px;
}

.pb-route-planner-pick-button {
    margin-top: 2px;
}

.pb-route-planner-pick-note {
    font-size: 0.75rem;
    color: #475569;
}

.pb-route-planner-body {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 16px;
    padding: 12px 16px 16px;
    overflow: hidden;
    min-height: 0;
}

.pb-route-planner-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
    min-width: 0;
    overflow-x: hidden;
}

.pb-route-planner-list .fluent-sortable-list {
    border: none;
    padding: 0;
    background: transparent;
}

.pb-route-planner-list .fluent-sortable-list .sortable-item {
    align-items: stretch;
}

.pb-route-planner-list .fluent-sortable-list .sortable-item-content {
    width: 100%;
}

.pb-route-planner-list .fluent-sortable-list .sortable-grab {
    background: transparent;
    width: auto;
    padding: 0;
    left: 0;
    border-radius: 0;
}

.pb-route-planner-map {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    min-width: 0;
}

.pb-route-planner-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 360px;
}

.pb-route-planner-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #475569;
}

.pb-route-planner-summary-left {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.pb-route-planner-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pb-route-planner-loading {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.pb-route-stop {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
}

.pb-route-stop-header {
    display: grid;
    grid-template-columns: 20px 28px 28px 1fr auto 28px;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.pb-route-stop-handle {
    color: #94a3b8;
    cursor: grab;
}

.pb-route-stop-handle-disabled {
    cursor: default;
    opacity: 0.3;
}

.pb-route-stop-toggle {
    justify-self: end;
    color: #64748b;
}

.sortable-grab {
    display: flex;
    align-items: center;
}

.pb-route-stop-seq {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #1e293b;
}

.pb-route-stop-locate {
    justify-self: center;
    color: #2563eb;
}

.pb-route-stop-title {
    font-weight: 600;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.pb-route-stop-time {
    font-size: 0.85rem;
    color: #334155;
    justify-self: end;
}

.pb-route-stop-travel {
    font-size: 0.8rem;
    color: #64748b;
    padding-left: 28px;
}

.pb-route-stop-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 28px;
}

.pb-route-stop-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f8fafc;
}

.pb-route-stop-item-main {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    min-width: 0;
}

.pb-route-stop-item-time {
    font-weight: 600;
    color: #1e293b;
}

.pb-route-stop-item-title {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.pb-route-stop-item-meta {
    font-size: 0.75rem;
    color: #64748b;
    overflow-wrap: anywhere;
}

.pb-route-planner-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
}

.pb-route-planner-muted {
    font-size: 0.75rem;
    color: #64748b;
}

.pb-route-planner-inline-item {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    color: #334155;
}

.pb-route-planner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

.pb-route-planner-footer-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pb-route-planner-defaults {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #64748b;
}

.pb-route-planner-footer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pb-route-marker {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background: #1d4ed8;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
}

.pb-route-marker span {
    font-size: inherit;
    line-height: 1;
}

.pb-route-marker-origin {
    background: #15803d;
}

.pb-route-marker-destination {
    background: #b91c1c;
}

.pb-route-marker-combined {
    background: linear-gradient(90deg, #15803d 0%, #15803d 50%, #b91c1c 50%, #b91c1c 100%);
}

.pb-route-marker-combined span {
    font-size: 0.85rem;
    letter-spacing: -0.02em;
}

.pb-route-focus-icon {
    position: relative;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
}

.pb-route-focus-pin {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.pb-route-focus-pulse {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid rgba(249, 115, 22, 0.55);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pb-route-pulse 1.6s ease-out infinite;
    z-index: 1;
}

@keyframes pb-route-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

@media (max-width: 1100px) {
    .pb-route-planner-panel {
        margin: 10px;
        height: calc(100% - 20px);
    }

    .pb-route-planner-body {
        grid-template-columns: 1fr;
    }

    .pb-route-planner-map {
        min-height: 280px;
    }
}

.pb-schedule-capacity-bar.is-overbooked .pb-schedule-capacity-fill {
    background-color: #f59e0b;
}

.pb-schedule-capacity-text {
    font-size: 0.7rem;
    color: #4b5563;
    white-space: nowrap;
}

.pb-schedule-capacity-compact {
    width: 100%;
}

.pb-schedule-capacity-compact .pb-schedule-capacity-text {
    font-size: 0.65rem;
}

.pb-schedule-capacity-month {
    min-width: 0;
}

.pb-schedule-capacity-month .pb-schedule-capacity-bar {
    height: 3px;
}

.pb-schedule-capacity-month .pb-schedule-capacity-text {
    font-size: 0.5rem;
}

/* Ensure capacity bar is very compact in month view */
.pb-scheduler-view-month-row .pb-schedule-capacity {
    gap: 3px;
}

.pb-scheduler-view-capacity {
    margin-top: 4px;
}

/* ===== VISUAL HIERARCHY IMPROVEMENTS ===== */

/* Scheduler navigation bar - clearer separation */
.rz-scheduler-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 4px;
    padding: 8px 12px;
    position: relative;
}

/* Today button - more prominent */
.rz-button.rz-today {
    font-weight: 600;
    background-color: #e3f2fd;
    color: var(--mud-palette-primary);
    border-radius: 4px;
    padding: 6px 16px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rz-button.rz-today:hover {
    background-color: var(--mud-palette-primary);
    color: white;
}

/* Navigation prev/next buttons */
.rz-button.rz-prev,
.rz-button.rz-next {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rz-button.rz-prev:hover,
.rz-button.rz-next:hover {
    background-color: #f5f5f5;
    border-color: #bdbdbd;
}

/* Date title - larger and bolder, centered absolutely */
.rz-scheduler-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* View buttons - pill style container */
.rz-scheduler-nav-views {
    display: flex;
    gap: 4px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 8px;
}

.rz-scheduler-nav-views .rz-button {
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
}

.rz-scheduler-nav-views .rz-state-active {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    color: var(--mud-palette-primary);
    font-weight: 600;
}

/* Toolbar alignment */
.pb-schedule-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pb-schedule-toolbar .pb-dropdown-225,
.pb-schedule-toolbar .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ===== MOBILE RESPONSIVENESS ===== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Compact legend */
    .pb-schedule-day-legend {
        gap: 2px;
    }

    .pb-schedule-legend-item {
        padding: 3px 8px;
        font-size: 10px;
        min-width: 60px;
    }

    /* Scheduler nav - stack on small screens */
    .rz-scheduler-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .rz-scheduler-nav-title {
        order: -1;
        width: 100%;
        font-size: 16px;
    }

    .rz-scheduler-nav-views {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    /* Compact legend items */
    .pb-schedule-legend-item {
        padding: 4px 6px;
        font-size: 9px;
        min-width: auto;
    }

    /* Two-line legend */
    .pb-schedule-day-legend {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Smaller view buttons */
    .rz-scheduler-nav-views .rz-button {
        padding: 4px 8px;
        font-size: 11px;
    }

    /* Day view - narrower columns */
    .pb-day-view-column-new {
        min-width: 200px;
    }
}

/* ===== LOADING STATES ===== */

.pb-schedule-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mud-palette-surface);
    opacity: 0.92;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 200;
    backdrop-filter: blur(2px);
}

/* Skeleton loading for day view columns */
.pb-day-view-skeleton {
    display: flex;
    gap: 8px;
    padding: 16px;
}

.pb-day-view-skeleton-column {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pb-day-view-skeleton-header {
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}

.pb-day-view-skeleton-item {
    height: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== TOOLBAR IMPROVEMENTS ===== */

.pb-schedule-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
    margin-bottom: 8px;
}

.pb-schedule-toolbar-nav {
    display: flex;
    align-items: center;
    min-width: 40px;
}

.pb-schedule-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-schedule-toolbar-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.pb-schedule-nav-btn {
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
}

.pb-schedule-nav-btn:hover {
    background-color: #f5f5f5 !important;
    border-color: #bdbdbd !important;
}

.pb-schedule-last-refresh {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

/* ===== EMPTY STATE ===== */

.pb-schedule-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    min-height: 300px;
    text-align: center;
    background: #fafafa;
    border-radius: 12px;
    margin: 16px 0;
}

.pb-schedule-empty-icon {
    color: #9ca3af;
    margin-bottom: 16px;
}

.pb-schedule-empty-title {
    color: #374151;
    margin-bottom: 8px;
}

.pb-schedule-empty-message {
    color: #6b7280;
    max-width: 400px;
    margin-bottom: 24px;
}

.pb-schedule-empty-actions {
    display: flex;
    gap: 12px;
}

/* ===== LEGEND TOGGLE ===== */

.pb-schedule-day-legend-wrapper.is-collapsed .pb-schedule-day-legend {
    display: none;
}

.pb-schedule-legend-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    color: #6b7280;
    font-size: 12px;
    margin: 0 auto 4px;
    transition: background-color 0.15s ease;
}

.pb-schedule-legend-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.pb-schedule-legend-toggle-text {
    font-weight: 500;
}

/* Legend pattern indicators for colorblind accessibility */
.pb-schedule-legend-pattern {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: middle;
}

.pb-pattern-solid {
    background: currentColor;
}

.pb-pattern-stripes {
    background: repeating-linear-gradient(
        45deg,
        currentColor,
        currentColor 2px,
        transparent 2px,
        transparent 4px
    );
}

.pb-pattern-dots {
    background: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 4px 4px;
}

.pb-pattern-dashed {
    background: repeating-linear-gradient(
        90deg,
        currentColor,
        currentColor 3px,
        transparent 3px,
        transparent 6px
    );
}

.pb-pattern-crosshatch {
    background:
        repeating-linear-gradient(45deg, currentColor, currentColor 1px, transparent 1px, transparent 3px),
        repeating-linear-gradient(-45deg, currentColor, currentColor 1px, transparent 1px, transparent 3px);
}

.pb-pattern-waves {
    background: repeating-linear-gradient(
        0deg,
        currentColor,
        currentColor 2px,
        transparent 2px,
        transparent 4px
    );
}

.pb-pattern-checkerboard {
    background:
        linear-gradient(45deg, currentColor 25%, transparent 25%),
        linear-gradient(-45deg, currentColor 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, currentColor 75%),
        linear-gradient(-45deg, transparent 75%, currentColor 75%);
    background-size: 4px 4px;
    background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
}

.pb-pattern-diagonal {
    background: repeating-linear-gradient(
        -45deg,
        currentColor,
        currentColor 2px,
        transparent 2px,
        transparent 4px
    );
}

/* ===== DAY VIEW HEADER IMPROVEMENTS ===== */

.pb-day-view-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.pb-day-view-tech-name {
    font-size: 14px;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-day-view-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pb-day-view-add-personal {
    font-size: 11px !important;
    padding: 2px 6px !important;
    min-width: auto !important;
}

.pb-day-view-route-btn {
    font-size: 11px !important;
    padding: 2px 6px !important;
    min-width: auto !important;
}

/* ===== SCHEDULE CARD IMPROVEMENTS ===== */

.pb-scheduler-view-day-cell-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 8px 8px 22px;
    border-radius: 8px;
    position: relative;
    transition: box-shadow 0.15s ease;
}

.pb-scheduler-view-day-cell-container:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pb-scheduler-view-day-cell-container:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.pb-schedule-order-icon,
.pb-schedule-personal-icon,
.pb-schedule-time-icon,
.pb-schedule-location-icon,
.pb-schedule-helpers-icon {
    color: rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.pb-schedule-personal-label {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #7c3aed;
    margin-right: 4px;
}

.pb-schedule-time-link {
    font-weight: 500;
}

.pb-schedule-note {
    color: rgba(0, 0, 0, 0.6);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

.pb-schedule-edit-btn {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.pb-scheduler-view-day-cell-container:hover .pb-schedule-edit-btn {
    opacity: 1;
}

.pb-scheduler-view-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.7);
}

.pb-scheduler-view-zip {
    color: rgba(0, 0, 0, 0.5);
}

.pb-scheduler-view-description {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-scheduler-view-helpers {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.6);
    padding-top: 4px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    margin-top: 2px;
}

.pb-schedule-helpers-label {
    font-weight: 500;
}

.pb-schedule-helpers-list {
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== IMPROVED DRAG HANDLE ===== */

.pb-schedule-drag-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 20px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.15);
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.7) 2px,
        transparent 2px,
        transparent 4px
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    cursor: grab;
}

.pb-schedule-drag-handle:hover,
.pb-schedule-drag-handle:focus {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.25);
}

.pb-schedule-drag-handle:active {
    cursor: grabbing;
    background-color: rgba(0, 0, 0, 0.3);
}

/* ===== CONFLICT DRAWER MOBILE IMPROVEMENTS ===== */

@media (max-width: 576px) {
    .pb-schedule-conflict-drawer {
        width: 100vw;
        right: 0;
        border-left: none;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
    }

    .pb-schedule-conflict-drawer.is-open {
        transform: translateY(0);
    }

    .pb-schedule-conflict-drawer-header {
        padding: 16px;
        border-bottom: 1px solid var(--mud-palette-divider, #e0e0e0);
    }

    .pb-schedule-conflict-drawer-header::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 0 auto 12px;
    }

    .pb-schedule-conflict-item-actions {
        flex-direction: column;
        gap: 8px;
    }

    .pb-schedule-conflict-item-actions .mud-button-root {
        width: 100%;
    }
}

/* ===== MOBILE TOOLBAR ===== */

@media (max-width: 768px) {
    .pb-schedule-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .pb-schedule-toolbar-nav {
        display: none;
    }

    .pb-schedule-toolbar-actions {
        justify-content: space-between;
    }

    .pb-schedule-toolbar-filters {
        flex-direction: column;
    }

    .pb-schedule-toolbar-filters .pb-dropdown-225 {
        width: 100%;
    }

    .pb-schedule-empty-state {
        padding: 32px 16px;
        min-height: 200px;
    }

    .pb-schedule-empty-actions {
        flex-direction: column;
        width: 100%;
    }

    .pb-schedule-empty-actions .mud-button-root {
        width: 100%;
    }
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */

.pb-schedule-nav-btn:focus-visible,
.pb-schedule-legend-toggle:focus-visible,
.pb-chip-action:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* Skip to main content link (screen reader) */
.pb-schedule-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--mud-palette-primary);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.2s;
}

.pb-schedule-skip-link:focus {
    top: 0;
}

/* ========================================
   Tech Daily Schedule Card Component
   ======================================== */

.tech-daily-schedule {
    width: 100%;
}

.appointment-timeline {
    position: relative;
}

/* Current Time Marker */
.current-time-marker {
    position: relative;
    z-index: 10;
}

.time-marker-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mud-palette-error), transparent);
    opacity: 0.6;
}

/* Time Badge */
.time-badge-column {
    width: 80px;
    display: flex;
    align-items: flex-start;
    padding-right: 1rem;
}

.time-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    background: var(--mud-palette-background-grey);
    border: 2px solid var(--mud-palette-lines-default);
    min-width: 70px;
    text-align: center;
    transition: all 0.2s ease;
}

.time-badge.status-current,
.time-badge.status-active {
    background: var(--mud-palette-primary);
    color: white;
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 10px rgba(var(--mud-palette-primary-rgb), 0.3);
}

.time-badge.status-completed {
    opacity: 0.6;
    background: var(--mud-palette-success);
    color: white;
    border-color: var(--mud-palette-success);
}

.time-start {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
}

.time-period {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.time-separator {
    font-size: 0.8rem;
    margin: 2px 0;
    opacity: 0.6;
}

.time-end {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
}

.time-duration {
    font-size: 0.65rem;
    margin-top: 4px;
    opacity: 0.7;
}

/* Appointment Card */
.appointment-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border-left: 4px solid var(--mud-palette-primary);
}

.appointment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.appointment-card.status-completed {
    opacity: 0.75;
    border-left-color: var(--mud-palette-success);
}

.appointment-card.status-current,
.appointment-card.status-active {
    border-left-color: var(--mud-palette-warning);
    background: linear-gradient(90deg, rgba(var(--mud-palette-warning-rgb), 0.05), transparent);
}

.appointment-card.status-upcoming {
    border-left-color: var(--mud-palette-info);
}

.tech-badge-section .mud-chip {
    font-size: 0.75rem;
    min-height: 28px;
}

.helper-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Appointment Content */
.appointment-content {
    position: relative;
}

/* Quick Info Grid */
.quick-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quick-info-grid .info-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--mud-palette-text-secondary);
}

/* Appointment Actions */
.appointment-actions {
    height: 100%;
    justify-content: flex-start;
}

/* Status Classes */
.status-completed {
    position: relative;
}

/* Animations */
@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.status-active .time-badge {
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .time-badge-column {
        width: 60px;
        padding-right: 0.5rem;
    }

    .time-badge {
        min-width: 55px;
        padding: 0.5rem 0.25rem;
    }

    .time-start {
        font-size: 0.95rem;
    }

    .time-end {
        font-size: 0.8rem;
    }

    .appointment-actions {
        margin-top: 1rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 575px) {
    .time-badge-column {
        display: none;
    }

    .appointment-card-row {
        padding-left: 0;
    }

    .appointment-content .row {
        flex-direction: column;
    }
}
