.event-calendar-page { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; background: #fff; color: #344256; }
.maya-v2-content > #content.app-content > .ng-scope { flex: 1 1 0%; width: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.event-calendar-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 10px 16px; border-bottom: 1px solid #e5e9f0; background: #fff; }
.event-calendar-title { color: #293852; font-size: 14px; font-weight: 750; }
.event-calendar-title span { color: #8a95a5; font-size: 11px; font-weight: 500; }
.event-calendar-hint { margin-top: 3px; color: #8a95a5; font-size: 10px; }
.event-calendar-actions, .event-calendar-year-control { display: flex; align-items: center; gap: 6px; }
.event-calendar-year-control { gap: 2px; padding: 2px; border: 1px solid #e5e9f0; border-radius: 7px; }
.event-calendar-year-control button, .event-calendar-reload { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0; border: 0; border-radius: 5px; color: #66758a; background: transparent; font-size: 19px; cursor: pointer; }
.event-calendar-year-control button:hover, .event-calendar-reload:hover { color: #5544c5; background: #f4f2ff; }
.event-calendar-year-control strong { min-width: 46px; color: #293852; font-size: 12px; text-align: center; }
.event-calendar-today { height: 32px; padding: 0 11px; border: 1px solid #e5e9f0; border-radius: 6px; color: #596577; background: #fff; font-size: 11px; cursor: pointer; }
.event-calendar-today:hover { border-color: #c9c2ff; color: #5544c5; }
.event-calendar-board-scroll { position: relative; display: block; flex: 1 1 0%; width: 100%; min-width: 0; min-height: 0; overflow-x: scroll; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: auto; -webkit-overflow-scrolling: touch; }
.event-calendar-board { position: relative; display: flex; flex: 0 0 auto; align-items: stretch; width: max-content; min-width: 100%; min-height: 100%; background: #fff; }
.event-calendar-sidebar { position: sticky; left: 0; z-index: 15; display: flex; flex: 0 0 var(--event-calendar-category-width, 220px); flex-direction: column; min-width: 0; background: #f7f8fc; border-right: 1px solid #e5ece7; }
.event-calendar-timeline { display: flex; flex: 0 0 auto; flex-direction: column; min-width: 0; background: #fff; }
.event-calendar-month-toggles, .event-calendar-month-header, .event-calendar-day-header, .event-calendar-row { display: grid; grid-template-columns: var(--event-calendar-category-width, 220px) repeat(var(--event-calendar-day-count, 365), minmax(40px, 1fr)); }
.event-calendar-month-toggles { position: sticky; top: 0; z-index: 14; flex: 0 0 28px; height: 28px; border-top: 1px solid #e5e9f0; background: #fff; }
.event-calendar-category-toggle { position: sticky; top: 0; z-index: 40; flex: 0 0 28px; height: 28px; }
.event-calendar-category-toggle button, .event-calendar-month-toggle button { position: absolute; top: 50%; left: 10px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; transform: translateY(-50%); border: 1px solid #cbd8d0; border-radius: 4px; color: #4c6b5b; background: #fff; font-size: 13px; cursor: pointer; }
.event-calendar-category-toggle button::before { width: 12px; height: 12px; content: ''; background: #4c6b5b; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat; }
.event-calendar-category-toggle.is-hidden button { border-color: #4c6b5b; background: #4c6b5b; }
.event-calendar-category-toggle.is-hidden button::before { background: #fff; }
.event-calendar-month-toggle { position: relative; min-width: 0; }
.event-calendar-month-toggle::after { position: absolute; top: 0; right: 20px; bottom: 0; left: 29px; content: ''; background: linear-gradient(#aebfb4,#aebfb4) left center/100% 1px no-repeat, linear-gradient(#aebfb4,#aebfb4) right center/1px 10px no-repeat; pointer-events: none; }
.event-calendar-month-toggle.is-hidden::after { display: none; }
.event-calendar-month-toggle button { left: 10px; color: #4c6b5b; font-size: 0; }
.event-calendar-month-toggle button::before { width: 12px; height: 12px; content: ''; background: #4c6b5b; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15'/%3E%3C/svg%3E") center/contain no-repeat; }
.event-calendar-month-toggle:not(.is-hidden) button::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 12h14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 12h14'/%3E%3C/svg%3E"); }
.event-calendar-month-toggle.is-hidden button { border-color: #4c6b5b; background: #4c6b5b; }
.event-calendar-month-toggle.is-hidden button::before { background: #fff; }
.event-calendar-month-header { position: relative; z-index: 5; flex: 0 0 34px; height: 34px; border-bottom: 1px solid #dce5df; background: #f7faf8; }
.event-calendar-category-heading { flex: 0 0 34px; height: 34px; }
.event-calendar-date-heading { flex: 0 0 42px; height: 42px; background: #fbfdfc; color: #8a9790; }
.event-calendar-sticky-label { display: flex; align-items: center; min-width: 0; box-sizing: border-box; padding: 0 14px; color: #65736c; background: #f7faf8; font-size: 10px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.event-calendar-month { display: flex; align-self: start; align-items: center; justify-content: center; height: 34px; box-sizing: border-box; color: #315d4c; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.event-calendar-month.is-hidden { position: relative; z-index: 11; align-self: start; height: 76px; flex-direction: column; color: #6c8074; background: #f0f4f1; writing-mode: horizontal-tb; transform: none; }
.event-calendar-month.is-hidden span { display: block; flex: 0 0 auto; width: max-content; max-width: none; transform: rotate(-90deg); font-size: 10px; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.event-calendar-day-header { position: relative; z-index: 4; flex: 0 0 42px; height: 42px; border-bottom: 1px solid #dce5df; background: #fbfdfc; }
.event-calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid #edf1ee; color: #87938c; font-size: 9px; line-height: 1.25; }
.event-calendar-day strong { color: inherit; font-size: 10px; }
.event-calendar-day.is-weekend { color: #bb6565; background: #faf5f5; }
.event-calendar-collapsed-day { background: #f0f4f1; }
.event-calendar-sidebar-rows { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 180px;}
.event-calendar-sidebar-empty { flex: 1 1 auto; min-height: 180px; border-bottom: 1px solid #e5ece7; }
.event-calendar-rows { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; min-height: 180px; }
.event-calendar-rows::after { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; left: 0; content: ''; background: repeating-linear-gradient(to right,transparent 0 39px,#eef2ef 39px 40px); pointer-events: none; }
.event-calendar-row { position: relative; z-index: 2; flex: 0 0 68px; min-height: 68px; border-bottom: 1px solid #e5ece7; }
.event-calendar-category { display: flex; flex: 0 0 68px; align-items: center; min-width: 0; box-sizing: border-box; padding: 10px 14px; border-right: 1px solid rgba(138, 138, 138, 0.55); border-bottom: 1px solid #e5ece7; color: #fff; font-size: 11px; font-weight: 800; }
.event-calendar-board.category-hidden .event-calendar-legend { width: 40px; }
.event-calendar-board.category-hidden .event-calendar-sticky-label,
.event-calendar-board.category-hidden .event-calendar-category { width: 100%; min-width: 0; padding-right: 0; padding-left: 0; overflow: hidden; white-space: nowrap; }
.event-calendar-board.category-hidden .event-calendar-sidebar { flex-basis: 40px; }
.event-calendar-board.category-hidden .event-calendar-category-toggle,
.event-calendar-board.category-hidden .event-calendar-category-heading,
.event-calendar-board.category-hidden .event-calendar-date-heading,
.event-calendar-board.category-hidden .event-calendar-category { padding-right: 0; padding-left: 0; overflow: hidden; border-right: 0; }
.event-calendar-board.category-hidden .event-calendar-rows::after { left: 0; }
.event-calendar-board.category-hidden .event-calendar-sticky-label { color: transparent; }
.event-calendar-board.category-hidden .event-calendar-category { color: transparent; background: #fff !important; }
.event-calendar-grid { position: relative; grid-column: 1 / -1; }
.event-calendar-event { position: absolute; top: 10px; display: flex; align-items: center; min-width: 34px; height: 24px; padding: 0 9px; overflow: hidden; border-radius: 4px; color: #fff !important; font-size: 10px; font-weight: 800; line-height: 1; text-decoration: none !important; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 2px rgba(36,57,45,.14); }
.event-calendar-event:hover { filter: brightness(.94); }
.event-calendar-event span { overflow: hidden; text-overflow: ellipsis; }
.event-calendar-event small { display: none; }
.event-calendar-empty { padding: 28px 16px; color: #8a95a5; font-size: 12px; text-align: center; }
.event-calendar-legend { display: flex; flex: 0 0 auto; flex-direction: column; box-sizing: border-box; width: 100%; gap: 5px; padding: 10px; border-top: 1px solid #e7eee9; border-right: 1px solid #e7eee9; color: #66756d; background: #f7f8fc; font-size: 11px; }
.event-calendar-legend span { display: flex; align-items: center; min-width: 0; gap: 7px; padding: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-calendar-legend i { width: 10px; height: 10px; border-radius: 2px; }
.event-calendar-board.category-hidden .event-calendar-legend span { justify-content: center; gap: 0; padding-right: 0; padding-left: 0; font-size: 0; }
.event-calendar-error { margin: 12px 16px; padding: 10px 12px; border: 1px solid #f3c7c7; border-radius: 6px; color: #a94442; background: #fff6f6; font-size: 12px; }
@media (max-width: 760px) { .event-calendar-toolbar { min-height: 52px; padding: 8px 10px; } .event-calendar-title { font-size: 12px; } .event-calendar-hint { display: none; } .event-calendar-today { padding: 0 8px; font-size: 10px; } .event-calendar-board-scroll { overscroll-behavior-x: contain; } }
