.app-day-calendar__appointment-handle:hover {
    background: rgba(79, 70, 229, 0.12);
}

.app-day-calendar__appointment.is-selected .app-day-calendar__appointment-handle {
    background-color: rgba(37, 99, 235, 0.1);
}

.app-day-calendar__appointment.is-selected .app-day-calendar__appointment-handle--drag::before {
    background: rgba(37, 99, 235, 0.6);
}

.app-day-calendar__appointment.is-selected .app-day-calendar__appointment-handle--resize::before,
.app-day-calendar__appointment.is-selected .app-day-calendar__appointment-handle--resize::after {
    background: rgba(37, 99, 235, 0.55);
}

.app-day-calendar__appointment[data-status="completed"] .app-day-calendar__appointment-handle {
    background-color: rgba(16, 185, 129, 0.12);
}

.app-day-calendar__appointment[data-status="completed"] .app-day-calendar__appointment-handle--drag::before {
    background: rgba(16, 185, 129, 0.55);
}

.app-day-calendar__appointment[data-status="completed"] .app-day-calendar__appointment-handle--resize::before,
.app-day-calendar__appointment[data-status="completed"] .app-day-calendar__appointment-handle--resize::after {
    background: rgba(16, 185, 129, 0.45);
}

.app-day-calendar__appointment.is-locked .app-day-calendar__appointment-handle {
   cursor: not-allowed;
}

[data-calendar-container][data-calendar-busy="true"] {
    pointer-events: none;
}

[data-calendar-container][data-calendar-busy="true"] .app-day-calendar__appointment {
    opacity: 0.6;
    cursor: progress;
}

[data-calendar-container][data-calendar-busy="true"] .app-day-calendar__appointment-handle {
    opacity: 0;
}
:root {
    --calendar-slot-width: 46px;
    --calendar-row-height: 66px;
}

.app-calendar__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.app-day-calendar__appointment.is-selected {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.app-day-calendar {
    display: none;
}

.app-calendar__grid {
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
}

.app-day-calendar--horizontal {
    display: flex;
    width: 100%;
    background: #fff;
}

.app-day-calendar__content {
    display: flex;
    width: 100%;
    height: 100%;
}

.app-day-calendar__lifts-column {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border-right: none;
}

.app-day-calendar__lifts-header {
    padding: 0.75rem 0.9rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--app-muted-strong);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    height: 42px;
}

.app-day-calendar__lifts-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    will-change: transform;
}

.app-day-calendar__lift-row {
    min-height: var(--calendar-row-height);
    padding: 0 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--app-text);
    display: flex;
    align-items: center;
    background: #fff;
    height: 68px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.app-day-calendar__lift-row:nth-child(odd) {
    background: rgba(15, 23, 42, 0.03)
}

.app-day-calendar__slots-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    background: transparent;
}

.app-day-calendar__timeline-wrapper {
    flex: 1;
    overflow: auto;
    position: relative;
    background: transparent;
    padding-bottom: 40px;
}

.app-day-calendar__slots-body {
    position: relative;
}

.app-day-calendar__now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    pointer-events: none;
}

.app-day-calendar__now::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -10px;
    left: -1px;
    width: 1px;
    background: rgba(239, 68, 68, 0.35);
}

.app-day-calendar__now::after {
    content: attr(data-time);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #b91c1c;
    background: rgba(254, 242, 242, 0.92);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: var(--app-radius-sm);
    padding: 2px 6px;
    white-space: nowrap;
}

.app-day-calendar__now.is-over-appointment::after {
    color: #fff;
    background: rgba(239, 68, 68, 0.88);
    border-color: rgba(220, 38, 38, 0.5);
}

.app-day-calendar__slots-header {
    display: grid;
    grid-template-columns: repeat(var(--calendar-slot-count, 1), var(--calendar-slot-width));
    min-width: calc(var(--calendar-slot-count, 1) * var(--calendar-slot-width));
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.3rem 0;
    border: 1px solid transparent;
}

.app-day-calendar__time-header {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 32px;
    color: var(--app-muted-strong);
    text-align: center;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    white-space: nowrap;
}

.app-day-calendar__slots-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: calc(var(--calendar-slot-count, 1) * var(--calendar-slot-width));
    gap: 10px;
    padding-top:12px;
}

.app-day-calendar__slot-row {
    display: grid;
    grid-template-columns: repeat(var(--calendar-slot-count), var(--calendar-slot-width));
    grid-auto-rows: var(--calendar-row-height);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: none;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.app-day-calendar__offday {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    text-align: center;
    padding: 1.5rem;
    z-index: 5;
}

.app-day-calendar__offday-content {
    max-width: 420px;
    background: rgba(15, 23, 42, 0.85);
    border-radius: var(--app-radius-lg, 16px);
    padding: 1.5rem 2rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.45);
}

.app-day-calendar__offday-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.app-day-calendar__offday-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.92);
}

.app-day-calendar__slot-row:nth-child(odd) {
    background: rgba(15, 23, 42, 0.03);
}

.app-day-calendar__slot {
    border-right: 1px solid rgba(15, 23, 42, 0.05);
    position: relative;
    min-width: var(--calendar-slot-width);
}

.app-day-calendar__slot:last-child {
    border-right: none;
}

.app-day-calendar__slot:hover {
    background: rgba(79, 70, 229, 0.08);
}

.app-day-calendar__appointment {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
    padding: 5px 25px;
    border-radius: var(--app-radius-sm);
    background: rgba(79, 70, 229, 0.16);
    border: 1px solid rgba(79, 70, 229, 0.28);
    color: #312e81;
    font-size: 0.78rem;
    line-height: 1.2;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    top: 4px;
    bottom: 4px;
    overflow: hidden;
}

.app-day-calendar__appointment-handles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.app-day-calendar__appointment-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    opacity: 1;
    background-color: rgba(79, 70, 229, 0.06);
}

.app-day-calendar__appointment-handle--drag {
    left: 0;
    cursor: grab;
    border-radius: var(--app-radius-sm) 0 0 var(--app-radius-sm);
}

.app-day-calendar__appointment-handle--drag::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.4);
}

.app-day-calendar__appointment-handle--resize {
    right: 0;
    cursor: ew-resize;
    border-radius: 0 var(--app-radius-sm) var(--app-radius-sm) 0;
}

.app-day-calendar__appointment-handle--resize::before,
.app-day-calendar__appointment-handle--resize::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 14px;
    background: rgba(79, 70, 229, 0.35);
    border-radius: 999px;
}

.app-day-calendar__appointment-handle--resize::before {
    transform: translateX(-3px);
}

.app-day-calendar__appointment-handle--resize::after {
    transform: translateX(3px);
}

.app-day-calendar__appointment-handle:hover {
    background: rgba(79, 70, 229, 0.12);
}

.app-day-calendar__appointment[data-status="completed"] {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.34);
    color: #065f46;
}

.app-day-calendar__appointment[data-status="cancelled"] {
    background: rgba(244, 114, 182, 0.18);
    border-color: rgba(244, 114, 182, 0.3);
    color: #9d174d;
}

.app-day-calendar__appointment::after {
    display: none;
}

.app-day-calendar__appointment-title {
    font-weight: 700;
    font-size: 0.82rem;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-day-calendar__appointment-meta {
    font-size: 0.72rem;
    color: var(--app-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-day-calendar__appointment-services {
    font-size: 0.7rem;
    color: var(--app-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-inspector__action--status {
    justify-content: center;
}