/* Calendar tab on the Matter full record page -- month grid over a date-ordered list,
   the Time Off Tracking layout. One colour per kind of dated thing. */

.mc-event  { --mc: #0A66C2; }
.mc-call   { --mc: #7B3FB5; }
.mc-next   { --mc: #C77700; }
.mc-opened { --mc: #1F8A4C; }

/* ---- legend: doubles as the show / hide switch for each kind ---- */
.mc-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.mc-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid #C8C8CC; border-radius: 14px;
    padding: 4px 11px; font: inherit; font-size: 12px; color: #222; cursor: pointer;
}
.mc-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--mc); }
.mc-chip.off { color: #8A8A90; background: #F4F4F6; }
.mc-chip.off i { background: transparent; border: 2px solid var(--mc); width: 6px; height: 6px; }

/* ---- the month ---- */
.mc-month { background: #fff; border: 1px solid #DDDDE0; border-radius: 10px; padding: 10px; }
.mc-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mc-nav .mc-title { flex: 1; font-size: 16px; font-weight: 700; text-align: center; }
.mc-nav .ed-btn { min-width: 40px; }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mc-dow { font-size: 11px; font-weight: 700; color: #6B6B70; text-align: center; padding: 2px 0 4px;
          text-transform: uppercase; letter-spacing: .04em; }
.mc-day {
    position: relative; min-height: 54px; box-sizing: border-box;
    background: #FAFAFB; border: 1px solid #ECECEF; border-radius: 6px;
    padding: 4px 5px; font: inherit; text-align: left; color: #444; cursor: default;
    display: flex; flex-direction: column; justify-content: space-between;
}
.mc-day.blank { background: transparent; border-color: transparent; }
.mc-day .n { font-size: 12px; font-weight: 600; }
.mc-day.has { background: #fff; border-color: #D2D2D8; cursor: pointer; color: #111; }
.mc-day.has:hover { border-color: #0A66C2; }
.mc-day.today { box-shadow: inset 0 0 0 2px #4FA3F7; }
.mc-day.sel { background: #EAF3FD; border-color: #0A66C2; }
.mc-day .dots { display: flex; gap: 3px; flex-wrap: wrap; }
.mc-day .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--mc); }
.mc-day .c { position: absolute; top: 4px; right: 5px; font-size: 10px; font-weight: 700; color: #6B6B70; }

/* ---- the list in date order ---- */
.mc-list-head { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 6px; }
.mc-list-head h3 { margin: 0; font-size: 12px; font-weight: 700; color: #6B6B70;
                   text-transform: uppercase; letter-spacing: .04em; }
.mc-list-head span { font-size: 12px; color: #6B6B70; }
.mc-dategroup { background: #fff; border: 1px solid #DDDDE0; border-radius: 8px; margin-bottom: 8px;
                scroll-margin-top: 10px; overflow: hidden; }
.mc-dategroup.upcoming { border-left: 3px solid #C77700; }
.mc-dategroup.sel { border-color: #0A66C2; box-shadow: 0 0 0 2px rgba(10,102,194,.18); }
.mc-date { font-size: 12px; font-weight: 700; color: #333; background: #F6F6F8; padding: 5px 10px;
           border-bottom: 1px solid #ECECEF; }
.mc-todaytag { background: #4FA3F7; color: #fff; border-radius: 8px; padding: 0 6px; font-size: 10px;
               margin-left: 4px; text-transform: uppercase; }
.mc-item { display: flex; gap: 9px; align-items: flex-start; padding: 7px 10px; color: inherit;
           text-decoration: none; border-top: 1px solid #F1F1F3; }
.mc-date + .mc-item { border-top: none; }
a.mc-item:hover { background: #F4F8FD; }
.mc-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; background: var(--mc); }
.mc-text { min-width: 0; }
.mc-text .t { font-size: 13px; color: #111; overflow-wrap: anywhere; }
.mc-text .s { font-size: 12px; color: #6B6B70; margin-top: 1px; overflow-wrap: anywhere; }

@media (max-width: 520px) {
    .mc-day { min-height: 44px; padding: 3px; }
    .mc-day .c { display: none; }
    .mc-dow { font-size: 10px; }
}

/* ---- fold chevrons: each half folds away; the fold is remembered on the device ---- */
.mc-fold {
    flex: 0 0 auto; background: none; border: 0; padding: 2px 6px; margin: 0;
    font: inherit; font-size: 13px; line-height: 1; color: #8A8A90; cursor: pointer; border-radius: 4px;
}
.mc-fold:hover { color: #333; background: #F1F1F3; }
.mc-month.folded { padding: 6px 10px; }
.mc-month.folded .mc-nav { margin-bottom: 0; }
.mc-month.folded .mc-grid,
.mc-month.folded [data-nav] { display: none; }
.mc-list-head .mc-fold { align-self: center; margin-left: -6px; }
.mc-list.folded { display: none; }

/* ---- a tapped day, on sepia (the .ed-rview sheet from entity-detail.css) ---- */
.mc-dv-kind {
    display: flex; align-items: center; gap: 6px;
    font: 600 11px "Segoe UI", system-ui, sans-serif;
    text-transform: uppercase; letter-spacing: 0.5px; color: #6f6144; margin-bottom: 3px;
}
.mc-dv-kind .mc-dot { margin-top: 0; width: 9px; height: 9px; }
.mc-dv-title { font: 700 16px/1.45 Georgia, "Iowan Old Style", "Times New Roman", serif; color: #3b3323;
               overflow-wrap: anywhere; }
.mc-dv-title + .ed-rview-val { margin-top: 3px; }
.mc-dv-link { display: inline-block; margin-top: 6px; font-size: 13px; color: #7a4f1c; }
