/* The trading calendar page (Pages/TradingCalendarPage.razor, Shared/TradeCalendar; mockup 010 B) and
   the group of calendar switches (mockup 011 C).
   A plain stylesheet linked in Pages/_Layout.cshtml rather than scoped .razor.css: a scoped stylesheet
   of a new component reaches the styles bundle only on a full rebuild. Every class starts with "tc-". */

.tc-muted { color: #6c757d; }
.tc-card { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(31,36,48,.08); min-width: 0; }
.tc-row { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }
/* The rule list is as tall as the calendar card beside it and scrolls inside: the absolutely placed
   inner box does not add to the row's height, so the calendar alone sets it. */
.tc-side { position: relative; min-height: 320px; }
.tc-side-scroll { position: absolute; inset: 16px; overflow-y: auto; padding-right: 4px; }
.tc-main { flex: 3 1 560px; }
.tc-side { flex: 1 1 260px; }

.tc-year { display: inline-flex; align-items: center; gap: 4px; background: #EEF0F4; border-radius: 6px; padding: 3px; }
.tc-year button { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 4px; color: #5A606B; font-size: 16px; cursor: pointer; }
.tc-year button:hover { color: #5B2E8E; background: #fff; }
.tc-year span { min-width: 56px; text-align: center; font-weight: 800; color: #1F2430; }

.tc-link { border: 0; background: none; color: #91268F; font-weight: 600; font-size: 12px; cursor: pointer; padding: 0; text-align: left; }
.tc-link:hover { text-decoration: underline; }
.tc-link.is-danger { color: #C2334D; }

.tc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; flex: 0 0 10px; }
.tc-dot.h { background: #C2334D; }
.tc-dot.t { background: #1F8A70; }
.tc-dot.p { background: repeating-linear-gradient(45deg, #C98A0B 0 3px, #F6E3B8 3px 6px); }
.tc-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #5A606B; }

.tc-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.tc-months.is-big { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }
.tc-month-name { font-weight: 800; font-size: 12px; color: #1F2430; margin-bottom: 6px; }
.tc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tc-wd { font-size: 10px; color: #9AA0AA; text-align: center; padding-bottom: 2px; }
.tc-day { font-size: 11px; text-align: center; height: 22px; line-height: 22px; border-radius: 4px; color: #1F2430; border: 0; background: transparent; padding: 0; }
.is-big .tc-day { height: 28px; line-height: 28px; font-size: 12px; cursor: pointer; }
.is-big .tc-day:hover { outline: 2px solid #C9B5E0; }
.tc-day.sun { color: #9AA0AA; }
.tc-day.h { background: #C2334D; color: #fff; font-weight: 700; }
.tc-day.t { background: #1F8A70; color: #fff; font-weight: 700; }
.tc-day.p { background: repeating-linear-gradient(45deg, #C98A0B 0 4px, #F6E3B8 4px 8px); color: #1F2430; font-weight: 700; }
.tc-day.off { background: #fff; color: #9AA0AA; text-decoration: line-through; outline: 1px dashed #C4C8CF; }
.tc-day.sel { outline: 2px solid #5B2E8E !important; }

.tc-form { border: 1px solid #E0D4EE; background: #FBF8FE; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.tc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-chip { border: 1px solid #CFD4D9; background: #fff; color: #1F2430; border-radius: 16px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.tc-chip.is-on { border-color: #5B2E8E; background: #5B2E8E; color: #fff; }
.tc-fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }
.tc-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #1F2430; margin: 0; }
.tc-fields input, .tc-fields select {
    height: 36px; border: 1px solid #CFD4D9; border-radius: 6px; padding: 0 10px; font-size: 13px; min-width: 120px; max-width: 100%;
    background: #fff; color: #1F2430; font-weight: 400;
}
.tc-fields input:focus, .tc-fields select:focus { outline: 0; border-color: #5B2E8E; box-shadow: 0 0 0 3px rgba(91, 46, 142, .14); }
.tc-fields label.is-wide { flex: 1 1 100%; }
.tc-fields label.is-wide input { width: 100%; }
.tc-fields input.is-short { min-width: 70px; width: 70px; }
.tc-fields input.is-medium { min-width: 90px; width: 90px; }
.tc-actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.tc-button {
    border: 0; border-radius: 4px; background: #55BD03; color: #fff; font-weight: 700; font-size: 14px;
    height: 36px; padding: 0 16px; cursor: pointer;
}
.tc-button:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, .1); }
.tc-preview { font-size: 12px; margin-top: 10px; color: #3F2466; }
.tc-source { font-size: 11px; color: #6c757d; }
.tc-popover { border: 1px solid #E0D4EE; background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 6px 18px rgba(31,36,48,.14); margin-bottom: 16px; }
.tc-entry { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid #F0F1F4; font-size: 12px; }
.tc-entry.is-off .tc-entry-name { color: #9AA0AA; text-decoration: line-through; }
.tc-entry button { white-space: nowrap; }

.tc-rule { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #E6E8EC; font-size: 12px; }
.tc-rule-actions { display: flex; gap: 10px; flex: 0 0 auto; }

.tc-draft { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: #7A5306; font-weight: 700; }
.tc-problem { font-size: 12px; color: #C2334D; margin-top: 8px; }
.tc-side-title { font-weight: 800; font-size: 14px; margin: 12px 0 4px; }
.tc-side-title:first-child { margin-top: 0; }

/* A group of switches "Dni z zakazem handlu" (mockup 011 C, its s11- rules). The scenario form no
   longer has it; the rules serve the device's switches (DeviceCalendarFlagsGroup, mockup 020). */
.tc-group { margin-top: 16px; }
.tc-group-title { font-size: 12px; font-weight: 700; color: #1F2430; margin-bottom: 8px; }
.tc-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.tc-check input { margin-top: 2px; flex: 0 0 auto; }
.tc-check-text { font-size: 12px; font-weight: 700; color: #1F2430; }
.tc-check-hint, .tc-group-note { display: block; font-size: 12px; color: #6B6880; margin-top: 2px; }

@media (max-width: 720px) {
    .tc-row { flex-direction: column; align-items: stretch; }
    .tc-main, .tc-side { flex: 0 0 auto; width: 100%; }
    .tc-side { min-height: 0; }
    .tc-side-scroll { position: static; overflow: visible; padding-right: 0; }
    .tc-months.is-big { grid-template-columns: 1fr; }
    .tc-card { padding: 12px; }
}
