/* Work calendar: neutral surfaces, clear hierarchy, compact event summaries. */
body.schedule-page {
  --schedule-ink: #1a2a45;
  --schedule-muted: #65748a;
  --schedule-line: #e4e8ee;
  --schedule-brand: #bd2036;
  background: #fff9f7 url('../img/backgrounds/login-reference.png') center bottom / cover no-repeat fixed;
  color: var(--schedule-ink);
  font-family: 'Inter', Arial, sans-serif;
}
.schedule-page .layout-page, .schedule-page .content-wrapper { background: rgba(248,247,246,.86); }
.schedule-page .layout-navbar { border: 1px solid #e9e4e1; box-shadow: 0 4px 16px rgba(26,42,69,.05) !important; }
.schedule-page .bg-menu-theme { background: #fff !important; color: var(--schedule-ink); box-shadow: 1px 0 0 #e8e5e2; }
.schedule-page .bg-menu-theme .menu-link { color: #42516a; }
.schedule-page .bg-menu-theme .menu-link:hover { color: var(--schedule-brand); background: #faf3f3; }
.schedule-page .bg-menu-theme .menu-item.active > .menu-link { color: var(--schedule-brand) !important; background: #fbecef !important; }
.schedule-page .bg-menu-theme .menu-item.active::before { background: var(--schedule-brand) !important; }
.schedule-page .page-content-wrapper { width: 100%; padding: 24px; }
.schedule-page .page-content-wrapper > .container-fluid { width: 100%; max-width: none; padding: 0; }
.schedule-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.schedule-heading h1 { font-size: 28px; font-weight: 700; color: var(--schedule-ink); margin: 0 0 8px; letter-spacing: -.6px; }
.schedule-heading p { font-size: 13px; line-height: 1.7; color: var(--schedule-muted); margin: 0; }
.schedule-heading-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--schedule-line); border-radius: 14px; background: #fff; color: var(--schedule-brand); font-size: 26px; }
.schedule-page #mainTabsContent { padding: 0; background: transparent; box-shadow: none; }
.schedule-page .calendar-container { width: 100%; padding: 24px; border: 1px solid var(--schedule-line); border-radius: 16px; background: #fff; box-shadow: 0 4px 20px #1a2a4505; }
.schedule-page #calendar { --fc-border-color: #e4e8ee; --fc-page-bg-color: #fff; --fc-neutral-bg-color: #f6f8fa; --fc-list-event-hover-bg-color: #fff; --fc-today-bg-color: #fff8f3; }
.schedule-page #calendar .fc-header-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-bottom: 20px !important; padding: 0 0 20px; border-bottom: 1px solid var(--schedule-line); }
.schedule-page #calendar .fc-toolbar-chunk:last-child { justify-self: end; }
.schedule-page #calendar .fc-toolbar-chunk:first-child { display: flex; align-items: center; gap: 8px; }
.schedule-page #calendar .fc-prev-button { padding-left: 14px !important; }
.schedule-page #calendar .fc-toolbar-title { color: var(--schedule-ink); font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; line-height: 1.5; letter-spacing: -.4px; }
.schedule-page #calendar .fc-button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--schedule-line); border-radius: 8px; background: #fff; color: #46566f; font-family: inherit; font-size: 13px; font-weight: 600; box-shadow: none; transition: background .15s, border-color .15s; }
.schedule-page #calendar .fc-button-group { display: inline-flex; gap: 4px; padding: 4px; background: #f5f6f8; border-radius: 11px; }
.schedule-page #calendar .fc-button-group .fc-button { margin: 0; border-color: transparent; background: transparent; border-radius: 8px; }
.schedule-page #calendar .fc-button:hover { color: var(--schedule-brand); background: #fff3f4 !important; border-color: #edc8ce !important; transform: none; box-shadow: none; }
.schedule-page #calendar .fc-button.fc-button-active { background: var(--schedule-brand) !important; border-color: var(--schedule-brand) !important; color: #fff; box-shadow: none; }
.schedule-page #calendar .fc-button:disabled { opacity: .5; }
.schedule-page #calendar .fc-button:focus { box-shadow: none; }
.schedule-page #calendar :focus-visible { outline: 3px solid #bd2036; outline-offset: 3px; }
.schedule-page #calendar .fc-view-harness { min-height: 0; margin: 0; }
.schedule-page #calendar .fc-list { border: 0; }
.schedule-page #calendar .fc-list-table { table-layout: auto; }
.schedule-page #calendar .fc-list-day-cushion { padding: 12px 16px; background: #f2f5f8; border-radius: 8px; }
.schedule-page #calendar .fc-list-day-cushion a { color: #46566f; font-size: 13px; font-weight: 600; }
.schedule-page #calendar .fc-list-day-side-text { color: var(--schedule-muted); font-weight: 400; }
.schedule-page #calendar .fc-list-event { color: var(--schedule-ink); }
.schedule-page #calendar .fc-list-event:hover { transform: none; box-shadow: none; }
.schedule-page #calendar .fc-list-event > :where(td) { padding: 20px 0; border-color: var(--schedule-line); vertical-align: top; }
.schedule-page #calendar .fc-list-event-time { width: 136px; padding: 27px 16px 20px; color: #46566f; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: normal; }
.schedule-page #calendar .fc-list-event-graphic { width: 12px; padding-top: 29px; }
.schedule-page #calendar .fc-list-event-dot { border-radius: 3px; }
.schedule-page #calendar .fc-list-event-title { padding: 20px 16px; font-weight: 400; }
.schedule-event { padding: 0 0 0 18px; border-left: 3px solid var(--event-accent, var(--schedule-line)); }
.schedule-event-title { color: var(--schedule-ink); font-size: 16px; font-weight: 700; line-height: 1.6; margin: 0 0 10px; overflow-wrap: anywhere; }
.schedule-event-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 18px; white-space: pre-line; color: #526078; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.schedule-event-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 0; }
.schedule-meta-item { min-width: 0; }
.schedule-meta-item dt { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; color: var(--schedule-muted); font-size: 11px; font-weight: 500; }
.schedule-meta-item dt i { font-size: 15px; }
.schedule-meta-item dd { margin: 0; color: #34445f; font-size: 13px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.schedule-event-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf0f4; }
.schedule-page #calendar .schedule-documents, .schedule-detail-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 11px; border-radius: 8px; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.6; }
.schedule-page #calendar .schedule-documents { color: var(--schedule-brand); background: #fff2f3; border: 1px solid #f2dce0; text-decoration: none; }
.schedule-detail-button { border: 1px solid var(--schedule-line); color: #46566f; background: #fff; }
.schedule-detail-button:hover { border-color: #b9c4d2; background: #f5f7fa; }
.schedule-page #calendar .schedule-documents:hover { background: #fbe6e9; }
.schedule-no-documents { color: var(--schedule-muted); font-size: 12px; }
.schedule-page #calendar .fc-list-empty { min-height: 260px; background: #fafbfc; border: 1px dashed var(--schedule-line); border-radius: 12px; }
.schedule-page #calendar .fc-list-empty-cushion { margin: 35px 20px; }
.schedule-empty > i { font-size: 36px; color: #8697ac; margin-bottom: 16px; }
.schedule-empty h3 { color: var(--schedule-ink); font-size: 16px; font-weight: 600; }
.schedule-empty p { color: var(--schedule-muted); font-size: 13px; line-height: 1.7; margin: 0; }
.schedule-page #calendar .fc-col-header-cell { background: #f6f8fa; padding: 10px 4px; }
.schedule-page #calendar .fc-col-header-cell-cushion { color: #526078; font-size: 12px; font-weight: 600; }
.schedule-page #calendar .fc-daygrid-day-number { color: #46566f; padding: 8px 10px; font-size: 13px; }
.schedule-page #calendar .fc-daygrid-day.fc-day-today { background: #fff8f3 !important; border: 1px solid var(--schedule-line) !important; }
.schedule-page #calendar .fc-day-today .fc-daygrid-day-number { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; margin: 5px; background: var(--schedule-brand); border: 0; border-radius: 50%; color: #fff; }
.schedule-page #calendar .fc-daygrid-event { background: #f7f9fb !important; border: 1px solid var(--schedule-line) !important; border-radius: 7px; margin: 3px 4px; padding: 0; color: var(--schedule-ink); }
.schedule-page #calendar .fc-daygrid-event:hover { background: #eef2f7 !important; transform: none; box-shadow: none; }
.schedule-page #calendar .fc-event-main { padding: 0; color: var(--schedule-ink); }
.schedule-month-event { border-left: 3px solid var(--event-accent, #bd2036); padding: 7px 8px; white-space: normal; }
.schedule-month-event .schedule-event-title { font-size: 12px; line-height: 1.5; margin-bottom: 5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.schedule-month-time, .schedule-month-location, .schedule-month-files { color: var(--schedule-muted); font-size: 11px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-month-event i { margin-right: 4px; }
.schedule-page .event-detail-modal .modal-dialog { max-width: 900px; }
.schedule-page .event-detail-modal .modal-content { overflow: hidden; border: 1px solid #eadfe1; border-radius: 18px; box-shadow: 0 24px 70px rgba(26,42,69,.2); }
.schedule-page .event-detail-modal .modal-header { align-items: flex-start; border-bottom: 1px solid #eee7e7; padding: 22px 26px 18px; background: linear-gradient(110deg, #fff, #fff5f2); }
.schedule-page .event-detail-modal .modal-title { padding-right: 24px; color: var(--schedule-ink); font-size: 19px; font-weight: 700; line-height: 1.5; }
.schedule-page .event-detail-modal .btn-close { margin-top: 2px; border-radius: 8px; }
.schedule-page .event-detail-modal .modal-body { max-height: min(67vh, 660px); padding: 22px 26px; line-height: 1.75; font-size: 14px; }
.event-detail-summary { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-bottom: 12px; }
.event-detail-highlight { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 14px 16px; border: 1px solid #eddde0; border-radius: 12px; background: #fff8f7; }
.event-detail-icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; color: var(--schedule-brand); background: #fbe9ec; font-size: 20px; }
.event-detail-highlight > div { min-width: 0; }
.event-time-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; }
.event-time-range > i { color: #a1aab7; font-size: 20px; }
.event-detail-label { display: block; margin-bottom: 5px; color: var(--schedule-muted); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.event-detail-highlight strong { display: block; color: var(--schedule-ink); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.event-detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(230px, .8fr); gap: 26px; }
.event-detail-main { min-width: 0; padding-right: 26px; border-right: 1px solid var(--schedule-line); }
.event-detail-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--schedule-ink); font-size: 13px; font-weight: 700; }
.event-detail-heading i { color: var(--schedule-brand); font-size: 18px; }
.event-detail-content { color: #34445f; font-size: 14px; line-height: 1.9; text-align: justify; text-justify: inter-word; white-space: pre-line; overflow-wrap: anywhere; hyphens: auto; }
.event-detail-end { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 14px; border-radius: 10px; color: var(--schedule-muted); background: #f6f7f8; font-size: 12px; }
.event-detail-end i { color: var(--schedule-brand); font-size: 17px; }
.event-detail-end strong { color: var(--schedule-ink); text-align: right; }
.event-detail-note { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border: 1px solid #efe3cf; border-radius: 10px; background: #fff9ee; color: #715c3d; }
.event-detail-note > i { margin-top: 2px; font-size: 18px; }
.event-detail-note strong { font-size: 12px; }
.event-detail-note p { margin: 3px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.event-detail-side { min-width: 0; }
.event-detail-meta-bar { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(200px, 1.5fr) minmax(105px, .65fr) minmax(65px, .35fr); gap: 16px; align-items: start; margin-bottom: 22px; padding: 12px 14px; border: 1px solid var(--schedule-line); border-radius: 11px; background: #faf9f8; }
.event-detail-meta-bar > div { min-width: 0; }
.event-detail-grid-wide { display: block; }
.event-detail-grid-wide .event-detail-main { padding-right: 0; border-right: 0; }
.event-side-item { margin-bottom: 20px; }
.event-category-badge { max-width: 100%; padding: 5px 7px; white-space: normal; text-align: left; line-height: 1.4; font-size: 10px; color: var(--category-color) !important; background: color-mix(in srgb, var(--category-color) 10%, white) !important; border: 1px solid color-mix(in srgb, var(--category-color) 20%, white); }
.event-guests small { display: block; margin-top: 7px; color: var(--schedule-muted); font-size: 11px; }
.event-guest-chip { display: inline-flex; align-items: center; padding: 6px 8px; border-radius: 7px; color: #46566f; background: #f2f4f7; font-size: 11px; font-weight: 600; }
.event-empty-value { color: #8a96a6; font-size: 12px; }
.event-side-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; border-top: 1px solid var(--schedule-line); }
.event-status { display: inline-flex; align-items: center; width: fit-content; padding: 6px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.event-status.is-public { color: #21725b; background: #eaf6f1; }
.event-status.is-private { color: #647187; background: #eef0f3; }
.event-file-count { display: block; color: var(--schedule-brand); font-size: 20px; line-height: 1; }
.event-external-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--schedule-brand); font-size: 12px; font-weight: 600; }
.schedule-page .event-detail-modal .modal-footer { justify-content: space-between; gap: 12px; padding: 15px 26px; border-top: 1px solid #eee7e7; background: #faf9f8; }
.schedule-page .event-detail-modal .modal-footer .btn { min-height: 38px; border-radius: 8px; font-size: 12px; font-weight: 600; box-shadow: none; }
.schedule-page .event-detail-modal .btn-primary { background: var(--schedule-brand); border-color: var(--schedule-brand); }
.schedule-page .event-detail-modal .btn-primary:hover { background: #991a2d; border-color: #991a2d; }
.schedule-page .event-detail-modal .btn-success, .schedule-page .event-detail-modal .btn-info, .schedule-page .event-detail-modal .btn-warning { color: #46566f; background: #fff; border-color: #dfe3e8; }
.schedule-page .event-detail-modal .btn-success:hover, .schedule-page .event-detail-modal .btn-info:hover, .schedule-page .event-detail-modal .btn-warning:hover { color: var(--schedule-brand); background: #fff3f4; border-color: #e8c9ce; }
.schedule-page .content-footer { margin-top: 24px !important; color: var(--schedule-muted); font-size: 12px; }
@media (max-width: 991px) {
  .schedule-page #calendar .fc-header-toolbar { grid-template-columns: 1fr 1fr; gap: 14px; }
  .schedule-page #calendar .fc-toolbar-chunk:nth-child(2) { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .schedule-page #calendar .fc-toolbar-chunk { display: block; }
  .schedule-page #calendar .fc-list-event-time { width: 108px; padding-left: 8px; padding-right: 8px; }
  .schedule-event-meta { gap: 12px 18px; }
  .event-detail-meta-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .schedule-page .page-content-wrapper { padding: 18px 12px; }
  .schedule-heading h1 { font-size: 24px; }
  .schedule-heading-icon { display: none; }
  .schedule-page .calendar-container { padding: 14px 12px; border-radius: 12px; }
  .schedule-page #calendar .fc-header-toolbar { gap: 12px 6px; }
  .schedule-page #calendar .fc-button { padding: 7px 9px; font-size: 12px; }
  .schedule-page #calendar .fc-prev-button { padding-left: 9px !important; }
  .schedule-page #calendar .fc-toolbar-chunk > .fc-button { margin-left: 5px; }
  .schedule-page #calendar .fc-button-group { gap: 2px; padding: 3px; }
  .schedule-page #calendar .fc-list-table, .schedule-page #calendar .fc-list-table tbody, .schedule-page #calendar .fc-list-day, .schedule-page #calendar .fc-list-day th { display: block; width: 100%; }
  .schedule-page #calendar .fc-list-day-cushion { padding: 10px 12px; }
  .schedule-page #calendar .fc-list-day-cushion a { float: none; display: block; line-height: 1.7; }
  .schedule-page #calendar .fc-list-event { display: block; border-bottom: 1px solid var(--schedule-line); }
  .schedule-page #calendar .fc-list-event-time { display: block; width: 100%; padding: 16px 4px 0; border: 0; color: var(--schedule-brand); }
  .schedule-page #calendar .fc-list-event-graphic { display: none; }
  .schedule-page #calendar .fc-list-event-title { display: block; width: 100%; padding: 12px 0 20px; border: 0; }
  .schedule-event { padding-left: 12px; }
  .schedule-event-title { font-size: 15px; }
  .schedule-event-meta { grid-template-columns: minmax(0, 1fr); }
  .schedule-event-description { -webkit-line-clamp: 4; }
  .schedule-page #calendar .fc-daygrid-day-number { padding: 6px; font-size: 11px; }
  .schedule-month-event { padding: 4px; }
  .schedule-month-event .schedule-event-title { font-size: 10px; }
  .schedule-month-location, .schedule-month-files { display: none; }
  .schedule-month-time { font-size: 9px; }
  .schedule-month-time i { display: none; }
  .schedule-page .event-detail-modal .modal-dialog { margin: 10px; }
  .schedule-page .event-detail-modal .modal-header, .schedule-page .event-detail-modal .modal-body, .schedule-page .event-detail-modal .modal-footer { padding-left: 16px; padding-right: 16px; }
  .event-detail-summary, .event-detail-grid, .event-detail-meta-bar { grid-template-columns: 1fr; }
  .event-time-range { grid-template-columns: 1fr; gap: 7px; }
  .event-time-range > i { display: none; }
  .event-detail-main { padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--schedule-line); }
  .event-detail-end { grid-template-columns: auto 1fr; }
  .event-detail-end strong { grid-column: 2; text-align: left; }
  .schedule-page .event-detail-modal .modal-footer, .schedule-page .event-detail-modal .modal-footer > .d-flex { width: 100%; }
  .schedule-page .event-detail-modal .modal-footer .btn { flex: 1 1 auto; }
}
@media (max-width: 360px) {
  .schedule-page #calendar .fc-header-toolbar { grid-template-columns: minmax(0, 1fr); }
  .schedule-page #calendar .fc-toolbar-chunk:last-child { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .schedule-page #calendar * { transition: none !important; } }
