/* Calendar grid + company switcher — appended to the design system. */
.of-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.of-cal-dow  { font-size: 11px; font-weight: 700; color: var(--of-muted); text-align: center;
               text-transform: uppercase; letter-spacing: .04em; }

.of-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.of-cal-day {
    min-height: 92px; display: flex; flex-direction: column; gap: 4px; padding: 6px;
    border: 1px solid var(--of-border); border-radius: 9px; background: var(--of-surface);
    text-align: left; cursor: pointer; transition: .12s; overflow: hidden;
}
.of-cal-day:hover  { border-color: var(--of-border-2); }
.of-cal-day.is-out { opacity: .42; }
.of-cal-day.is-today .of-cal-num {
    background: var(--of-primary); color: #fff; border-radius: 999px;
    width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center;
}
.of-cal-day.is-sel { border-color: var(--of-primary); box-shadow: 0 0 0 2px rgba(14,159,110,.16); }
.of-cal-num    { font-size: 12px; font-weight: 650; color: var(--of-text); }
.of-cal-events { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.of-cal-pill {
    font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    background: var(--of-bg); color: var(--of-muted);
}
.of-cal-pill.t-blue   { background: #dbeafe; color: #1d4ed8; }
.of-cal-pill.t-rose   { background: #ffe4e6; color: #be123c; }
.of-cal-pill.t-green  { background: #dcfce7; color: #15803d; }
.of-cal-pill.t-amber  { background: #fef3c7; color: #b45309; }
.of-cal-pill.t-violet { background: #ede9fe; color: #6d28d9; }

@media (max-width: 720px) {
    .of-cal-day  { min-height: 62px; padding: 4px; }
    .of-cal-pill { font-size: 9px; }
}

/* ---------- company switcher ---------- */
.of-switcher {
    display: flex; align-items: center; gap: 9px; padding: 7px 13px;
    border: 1px solid var(--of-border-2); border-radius: 10px;
    background: var(--of-surface); cursor: pointer; font-size: 13px;
    font-weight: 600; color: var(--of-text);
}
.of-switcher:hover { border-color: var(--of-primary); }
.of-switcher-logo {
    width: 24px; height: 24px; border-radius: 6px; background-size: cover; background-position: center;
    background-color: var(--of-primary-l); display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: var(--of-primary-d); flex-shrink: 0;
}
.of-switcher-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 240px;
    background: var(--of-surface); border: 1px solid var(--of-border);
    border-radius: 12px; box-shadow: var(--of-shadow-lg); padding: 6px; display: none;
}
.of-switcher-menu.is-open { display: block; }
.of-switcher-item {
    display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px;
    border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left;
    font-size: 13px; color: var(--of-text);
}
.of-switcher-item:hover { background: var(--of-bg); }
.of-switcher-item.is-on { background: var(--of-primary-l); font-weight: 650; }
