/* Felix Calendar (Story 3539) -- the follow-up calendar that belongs to Felix.
   Pinned chrome: the icon band, header and controls never scroll; .fc-body is the one
   scroller. Sheets come from files/file-kit.css. */

body { background: #F2F2F4; margin: 0; font-family: "Segoe UI", system-ui, sans-serif; }

.page-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
#lwIconBand, .ct-header, .fc-tabs, .fc-controls, .fc-monthbar { flex: 0 0 auto; }
.fc-controls[hidden], .fc-monthbar[hidden] { display: none; }

/* ---- List / Month tabs ---- */
.fc-tabs { display: flex; background: #fff; border-bottom: 1px solid #E2E2E5; }
.fc-tabs button {
    flex: 1 1 0; background: none; border: none; border-bottom: 3px solid transparent;
    padding: 10px 8px; font: 600 13px "Segoe UI", system-ui, sans-serif; color: #475569; cursor: pointer;
}
.fc-tabs button.on { color: #0A66C2; border-bottom-color: #0A66C2; }

/* ---- Month tab: the look of the Monthly Calendar (calendar.html) ---- */
.fc-monthbar {
    background: #3C3C3C; color: #fff; padding: 8px 12px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.fc-nav {
    background: transparent; color: #fff; border: 1px solid #6A6A6A; border-radius: 3px;
    padding: 4px 10px; cursor: pointer; font: 13px "Segoe UI", system-ui, sans-serif;
}
.fc-nav:hover { background: #5A5A5A; }
#btnPrevMonth, #btnNextMonth { font-size: 18px; line-height: 1; padding: 2px 12px 4px; }
.fc-month-title { flex: 1; text-align: center; font-size: 15pt; font-weight: 600; min-width: 140px; }
.fc-month { background: #fff; display: flex; flex-direction: column; min-height: 100%; }
.fc-month[hidden] { display: none; }
.fc-dow { display: grid; grid-template-columns: repeat(7, 1fr); background: #4A4A4A; color: #CCC; }
.fc-dow > div { text-align: center; padding: 4px 2px; font-size: 11px; font-weight: 600; letter-spacing: .5px; border-right: 1px solid #3A3A3A; }
.fc-dow > div:last-child { border-right: none; }
.fc-grid { flex: 1 1 auto; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(92px, 1fr); border-left: 1px solid #D0D0D4; }
.fc-cell {
    background: #fff; border-right: 1px solid #D0D0D4; border-bottom: 1px solid #D0D0D4;
    display: flex; flex-direction: column; min-width: 0; cursor: pointer;
}
.fc-cell:nth-child(7n) { border-right: none; }
.fc-cell.other { background: #F5F5F7; cursor: default; }
.fc-cell.today { outline: 3px solid #1565C0; outline-offset: -3px; }
.fc-cell:not(.other):hover { background: #EEF4FF; }
.fc-daynum { text-align: right; font-size: 12px; font-weight: 600; color: #555; padding: 2px 5px 1px; }
.fc-cell.today .fc-daynum { color: #1565C0; }
.fc-cell.other .fc-daynum { color: #BBB; }
.fc-entries { padding: 0 2px 3px; display: flex; flex-direction: column; gap: 2px; }
.fc-entry {
    font-size: 10px; line-height: 1.3; padding: 1px 3px; border-radius: 2px; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: #EDE9FE; color: #5B21B6;
}
.fc-entry:hover { filter: brightness(0.92); }
.fc-entry.k-overdue { background: #FEE2E2; color: #B91C1C; font-weight: 600; }
.fc-entry.k-done { background: #DCFCE7; color: #15803D; }
.fc-entry.k-wontdo, .fc-entry.k-ended { background: #E2E8F0; color: #475569; }
.fc-entry.k-moved, .fc-entry.k-reopened { background: #fff; color: #5B21B6; border: 1px dashed #A78BFA; }
@media (max-width: 500px) {
    .fc-grid { grid-auto-rows: minmax(72px, 1fr); }
    .fc-entry { font-size: 9px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
    .fc-daynum { font-size: 11px; }
}

.ct-header {
    background: #3C3C3C; color: #fff; padding: 10px 16px;
    display: flex; align-items: center; gap: 12px;
}
.ct-header h1 { margin: 0; font-size: 14pt; font-weight: 600; flex: 1; }
.ct-header button { color: #fff; background: transparent; border: 1px solid #6A6A6A; border-radius: 3px;
    padding: 4px 12px; font: inherit; cursor: pointer; }

.fc-controls { background: #fff; border-bottom: 1px solid #E2E2E5; padding: 8px 12px; }
.fc-row { display: flex; align-items: flex-start; gap: 8px; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.fc-chip {
    background: #fff; color: #334155; border: 1px solid #CBD5E1; border-radius: 999px;
    padding: 4px 12px; font: 12px "Segoe UI", system-ui, sans-serif; cursor: pointer;
}
.fc-chip.on { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.fc-chip .n { opacity: .8; margin-left: 4px; }
.fc-chip .late { color: #B91C1C; font-weight: 700; margin-left: 4px; }
.fc-chip.on .late { color: #FECACA; }
.fc-summary { font-size: 12px; color: #475569; }

/* ---- Story 5757: Roll Up Tools on the List tab, Fold All for the cards ---- */
.ef-tools-toggle { display: flex; align-items: center; gap: 6px; width: 100%; border: none; background: none;
    padding: 2px 0 4px; font: inherit; cursor: pointer; text-align: left; }
.ef-caret { width: 12px; color: #64748B; font-size: 11px; }
.ef-summary { flex: 1 1 auto; min-width: 0; }
.ef-tools-toggle:hover .ef-caret { color: #0A66C2; }
.ef-pane.ef-tools-collapsed .ef-tools { display: none; }
.fc-foldall { background: #fff; color: #334155; border: 1px solid #CBD5E1; border-radius: 4px;
    padding: 5px 10px; font: 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.fc-foldall:hover { background: #ECF4FD; }
.fc-foldall[hidden] { display: none; }

.fc-btn {
    background: #fff; color: #0A66C2; border: 1px solid #C9D7E8; border-radius: 4px;
    padding: 6px 12px; font: 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; white-space: nowrap;
}
.fc-btn:hover { background: #ECF4FD; }
.fc-btn.primary { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.fc-btn.danger { color: #B00020; border-color: #E8B4BE; }

.fc-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 8px 24px; }
.fc-body.month-mode { padding: 0; }
.fc-more { text-align: center; padding: 8px; }
.fc-empty { color: #64748B; font-size: 13px; padding: 20px 4px; }

/* ---- a follow-up ---- */
.fc-card { background: #fff; border: 1px solid #E2E2E5; border-left: 4px solid #6D28D9; border-radius: 6px; margin-bottom: 10px; }
.fc-card.late { border-left-color: #B91C1C; }
.fc-card.st-done { border-left-color: #15803D; }
.fc-card.st-wontdo { border-left-color: #94A3B8; background: #F8FAFC; }
.fc-card.fc-flash { animation: fc-flash 1.6s ease-out 2; }
@keyframes fc-flash { 0% { background: #EDE9FE; } 100% { background: #fff; } }

.fc-head { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; }
.fc-headmain { flex: 1 1 auto; min-width: 0; }
.fc-title { margin: 0; font-size: 15px; font-weight: 700; color: #111; word-break: break-word; }
.st-wontdo .fc-title { color: #64748B; }
.fc-tick { color: #15803D; margin-right: 4px; }
.fc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; font-size: 12px; color: #475569; }
.fc-pill { border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; background: #EEF2F7; color: #334155; }
.fc-pill.due  { background: #EDE9FE; color: #5B21B6; }
.fc-pill.late { background: #FEE2E2; color: #B91C1C; }
.fc-pill.today { background: #FEF3C7; color: #92400E; }
.fc-pill.done { background: #DCFCE7; color: #15803D; }
.fc-chev { flex: 0 0 auto; color: #94A3B8; transition: transform .15s; padding-top: 2px; }
.fc-card.open .fc-chev { transform: rotate(90deg); }

.fc-detail { border-top: 1px solid #E2E8F0; padding: 10px 12px 12px; }
.fc-details { white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.45; color: #1F2937; margin-bottom: 10px; }
.fc-log h3 { margin: 0 0 6px; font-size: 12px; color: #0F172A; text-transform: uppercase; letter-spacing: .03em; }
.fc-log ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #E2E8F0; }
.fc-log li { position: relative; padding: 0 0 8px 12px; font-size: 12px; color: #334155; line-height: 1.4; }
.fc-log li::before { content: ""; position: absolute; left: -5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.fc-log li.a-done::before { background: #15803D; }
.fc-log li.a-moved::before { background: #6D28D9; }
.fc-log li.a-wontdo::before, .fc-log li.a-ended::before { background: #94A3B8; }
.fc-log .why { display: block; color: #1F2937; font-style: italic; }
.fc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---- the add / edit sheet ---- */
.fc-form { display: flex; flex-direction: column; gap: 10px; }
.fc-form label { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #475569; }
.fc-form input[type="text"], .fc-form input[type="date"], .fc-form textarea {
    display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px;
    border: 1px solid #C9D0D8; border-radius: 4px; font: 14px "Segoe UI", system-ui, sans-serif;
}
.fc-form textarea { min-height: 90px; resize: vertical; }
.fc-seg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.fc-seg button { background: #fff; border: 1px solid #CBD5E1; border-radius: 4px; padding: 6px 10px; font: 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; color: #334155; }
.fc-seg button.on { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.fc-repeat-row { display: flex; gap: 10px; }
.fc-repeat-row > label { flex: 1 1 0; }
.fc-repeat-row[hidden] { display: none; }
