/* DarFindr account calendar styles: agenda and day-week views. */


.df-host-calendar-day:nth-child(7n),
.df-host-calendar-day:last-child {
    border-right: 0;
}

.df-host-calendar-day.is-muted {
    background: rgba(45, 28, 15, .018);
    color: rgba(45, 28, 15, .28);
}

.df-host-calendar-day.is-weekend:not(.is-muted) {
    background: rgba(45, 28, 15, .032);
}

.df-host-calendar-day.has-calendar-items {
    cursor: pointer;
}

.df-host-calendar-day.has-calendar-items:hover {
    background: rgba(177, 111, 58, .07);
}

.df-host-calendar-day > strong {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    display: block;
    margin: 0;
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
    text-align: right;
}

.df-calendar-day-dots {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 4px;
}

.df-calendar-day-dots i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
}

.df-calendar-day-dots i.is-pending {
    background: #e5a163;
}

.df-calendar-day-dots i.is-confirmed {
    background: #4aa36f;
}

.df-calendar-day-dots i.is-blocked {
    background: #6b7280;
}

.df-host-calendar-layout.is-block-mode .df-host-calendar-day,
.df-host-calendar-panel.is-block-mode .df-host-calendar-day {
    cursor: crosshair;
}

.df-host-calendar-layout.is-block-mode .df-host-calendar-day:hover,
.df-host-calendar-panel.is-block-mode .df-host-calendar-day:hover,
.df-host-calendar-day.is-selected-range {
    background: rgba(177, 111, 58, .08);
}

.df-host-calendar-day.is-today > strong {
    color: var(--color-primary-dark);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.df-host-calendar-day.is-selected-start,
.df-host-calendar-day.is-selected-end {
    background: rgba(177, 111, 58, .14);
}

.df-calendar-bars {
    position: absolute;
    inset: 42px 0 10px;
    pointer-events: none;
}

.df-calendar-event {
    position: absolute;
    top: calc(var(--event-lane) * 32px);
    left: calc(((var(--event-start) - 1) / 7) * 100% + 10px);
    z-index: 2;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: calc((var(--event-span) / 7) * 100% - 12px);
    min-height: 22px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: #fff1d9;
    color: #8f4d20;
    cursor: pointer;
    font-size: 11px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: auto;
    transition: box-shadow .18s ease, transform .18s ease, filter .18s ease;
}

.df-calendar-event span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.df-calendar-event small {
    margin-left: auto;
    color: inherit;
    font-size: 11px;
    font-weight: 760;
}

.df-calendar-event.is-confirmed {
    background: #e4f2e9;
    color: #2f6f4b;
}

.df-calendar-event.is-blocked {
    background: #eef0f3;
    color: #47515f;
}

.df-calendar-event.is-continued-left {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.df-calendar-event.is-continued-right {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.df-calendar-event.is-active,
.df-calendar-event.is-linked-hover,
.df-calendar-event:hover {
    box-shadow: 0 6px 16px rgba(45, 28, 15, .09);
    filter: saturate(1.08);
    transform: translateY(-1px);
}

#df-host-calendar > .df-host-section-head {
    display: none;
}

.df-host-calendar-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px;
}

.df-host-calendar-panel,
.df-host-calendar-side-card,
.df-calendar-detail {
    border-color: rgba(45, 28, 15, .06);
    background: rgba(255, 252, 248, .86);
    box-shadow: 0 18px 48px rgba(45, 28, 15, .055);
}

.df-host-calendar-overview {
    padding: 14px 16px;
    background: rgba(255, 255, 255, .52);
}

.df-host-calendar-overview strong {
    font-size: 24px;
}

.df-host-calendar-kpis article {
    min-height: 58px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .68);
}

.df-host-calendar-kpis strong {
    font-size: 23px;
}

.df-host-calendar-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .34);
}

.df-host-calendar-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(128px, 1fr));
}

.df-host-calendar-filter select {
    width: 100%;
    min-width: 0;
}

.df-host-calendar-toolbar-actions a,
.df-host-block-toggle {
    min-height: 40px;
    background: rgba(255, 255, 255, .76);
    font-weight: 850;
}

.df-host-calendar-toolbar-actions a:first-child,
.df-host-calendar-toolbar-actions a:last-of-type {
    width: 40px;
    padding: 0;
    font-size: 20px;
}

.df-host-calendar-layout.is-block-mode .df-host-block-form {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100001;
    display: block;
    width: min(640px, calc(100vw - 32px));
    max-height: min(820px, calc(100vh - 36px));
    overflow: auto;
    margin: 0;
    padding: 22px;
    border: 1px solid rgba(45, 28, 15, .1);
    border-radius: 12px;
    background: rgba(255, 252, 248, .98);
    box-shadow: 0 30px 90px rgba(17, 12, 8, .28);
    transform: translate(-50%, -50%);
}

.df-host-calendar-layout.is-block-mode .df-host-block-close {
    display: grid;
}

.df-host-calendar-layout.is-block-mode::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(17, 12, 8, .42);
    backdrop-filter: blur(5px);
}

.df-host-calendar-layout.is-block-mode .df-host-block-form-main {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
}

.df-host-calendar-layout.is-block-mode .df-host-block-selection {
    min-height: 44px;
    padding: 10px 12px;
}

.df-host-calendar-head {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 16px;
}

.df-host-calendar-head > span {
    display: none;
}

.df-host-calendar-head h3 {
    text-align: left;
    font-size: 18px;
}

.df-host-calendar-week {
    min-height: calc(76px + (var(--calendar-lanes) * 32px));
}

.df-host-calendar-day {
    background: rgba(255, 255, 255, .3);
}

.df-host-calendar-day.is-weekend:not(.is-muted) {
    background: rgba(177, 111, 58, .035);
}

.df-app-dashboard-page #df-host-calendar.df-host-section {
    padding: 28px 16px 28px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.df-app-dashboard-page .df-host-dashboard-main:has(#df-host-calendar) {
    padding-left: 12px;
    padding-right: 18px;
}

.df-app-dashboard-page .df-host-dashboard-main:has(#df-host-calendar) .df-host-topbar {
    margin-left: -12px;
    margin-right: -18px;
    padding-left: 12px;
    padding-right: 18px;
}

#df-host-calendar .df-host-calendar-layout {
    grid-template-columns: minmax(760px, 1fr) 300px;
    gap: 10px;
    align-items: start;
    margin-top: 0;
}

#df-host-calendar .df-host-calendar-panel {
    display: grid;
    grid-column: 1;
    gap: 18px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#df-host-calendar .df-host-calendar-toolbar {
    order: 1;
}

#df-host-calendar .df-host-block-form {
    order: 2;
}

#df-host-calendar .df-calendar-agenda-view {
    order: 3;
}

#df-host-calendar .df-calendar-current-range {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .54);
    color: rgba(45, 28, 15, .84);
    font-family: inherit;
    font-size: 13px;
    font-weight: 760;
    box-shadow: none;
}

#df-host-calendar .df-calendar-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    min-height: 32px;
    padding: 2px;
    border-color: rgba(45, 28, 15, .08);
    border-radius: 8px;
    background: rgba(45, 28, 15, .035);
    box-shadow: none;
}

#df-host-calendar .df-calendar-view-switch a {
    min-height: 28px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(45, 28, 15, .66);
    font-family: inherit;
    font-size: 12px;
    font-weight: 760;
    line-height: 1;
    box-shadow: none;
}

#df-host-calendar .df-calendar-view-switch a:hover {
    background: rgba(255, 255, 255, .54);
    color: #1f160f;
}

#df-host-calendar .df-calendar-view-switch a.is-active {
    background: rgba(255, 255, 255, .86);
    color: #1f160f;
    box-shadow: 0 4px 12px rgba(45, 28, 15, .055);
}

#df-host-calendar .df-calendar-agenda-head {
    align-items: center;
    padding: 0 2px;
}

#df-host-calendar .df-calendar-agenda-head span {
    font-size: 11px;
    font-weight: 760;
}

#df-host-calendar .df-calendar-agenda-head strong {
    font-family: inherit;
    font-size: 16px;
    font-weight: 780;
    line-height: 1.2;
}

#df-host-calendar .df-host-calendar-overview {
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 0;
    border: 0;
    background: transparent;
}

#df-host-calendar .df-host-calendar-overview > div:first-child span,
#df-host-calendar .df-host-calendar-kpis {
    display: none;
}

#df-host-calendar .df-host-calendar-overview strong {
    margin: 0;
    color: #1f160f;
    font-family: var(--font-heading, Georgia, serif);
    font-size: 31px;
    font-weight: 760;
    letter-spacing: 0;
}

#df-host-calendar .df-host-calendar-overview p {
    margin-top: 8px;
    color: #1f160f;
    font-size: 15px;
}
