/* Shared calendar and noticeboard: native navigation and details need no overlay. */
.collaboration-form-panel, .collaboration-panel { padding: 22px; }
.shared-calendar-panel, .dashboard-notices { margin-bottom: 22px; min-width: 0; }
.calendar-panel-body { padding: 0 20px 20px; }
.dashboard-notices .notice-brief-list { padding: 0 20px; }
.collaboration-heading { gap: 14px; flex-wrap: wrap; }
.calendar-toolbar, .calendar-month-nav, .calendar-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.calendar-toolbar { justify-content: space-between; margin: 8px 0 16px; }
.calendar-month-nav h3 { font-size: 22px; margin: 0 6px; }
.calendar-legend { font-size: 12px; color: #546575; }
.calendar-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }
.calendar-legend-contract::before { background: #29699d; }
.calendar-legend-memo::before { background: #479076; }
.calendar-scroll { overflow-x: auto; }
.shared-calendar { width: 100%; min-width: 680px; table-layout: fixed; border-collapse: collapse; }
.shared-calendar th { padding: 10px 4px; background: #f5f8fa; color: #546575; font-size: 12px; font-weight: 600; }
.shared-calendar td { vertical-align: top; height: 100px; padding: 6px; border: 1px solid #e1e8ed; }
.shared-calendar .outside-month { background: #f8fafb; }
.outside-month .calendar-day-heading time { color: #8795a1; }
.calendar-day-heading { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-bottom: 6px; }
.calendar-day-heading time { font-size: 13px; font-weight: 650; }
.calendar-day-heading a { display: inline-flex; justify-content: center; align-items: center; min-width: 25px; min-height: 25px; border-radius: 5px; color: #6b7c8b; text-decoration: none; }
.calendar-day-heading a:hover { background: #e4edf3; color: #254b69; }
.calendar-today .calendar-day-heading time { background: #235e84; border-radius: 50%; color: white; padding: 4px; min-width: 25px; text-align: center; }
.calendar-event { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #204f73; background: #e8f2fa; border-left: 3px solid #29699d; border-radius: 3px; padding: 4px 5px; margin-top: 4px; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; text-decoration: none; }
.calendar-event:hover { text-decoration: underline; }
.calendar-event-memo { color: #28604c; background: #e9f4ee; border-left-color: #479076; white-space: pre-line; }
.calendar-more summary { margin-top: 6px; font-size: 11px; color: #546575; cursor: pointer; }
.notice-brief-list > a, .notice-list-entry { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #e6edf2; color: inherit; text-decoration: none; }
.notice-brief-list > a:last-child, .notice-list-entry:last-child { border-bottom: 0; }
.notice-brief-list > a:hover strong, .notice-list-entry:hover strong { color: #245f85; text-decoration: underline; }
.notice-brief-list > a > div, .notice-list-entry > div { min-width: 0; }
.notice-brief-list strong, .notice-list-entry strong { display: block; overflow-wrap: anywhere; }
.notice-brief-list small, .notice-list-entry small { display: block; margin-top: 5px; color: #6c7b89; }
.notice-brief-list time, .notice-list-entry time { flex-shrink: 0; font-size: 12px; color: #6c7b89; }
.collaboration-form-panel { max-width: 1050px; }
.collaboration-form { display: grid; gap: 20px; }
.collaboration-form label { display: grid; gap: 7px; font-weight: 600; }
.collaboration-form small { color: #6c7b89; font-weight: 400; }
.collaboration-date-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.collaboration-date-fields label { align-content: start; min-width: 0; }
.collaboration-date-fields input { min-width: 0; width: 100%; }
.collaboration-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 20px; }
.collaboration-actions form { margin: 0; }
.notice-search { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.notice-search label { display: grid; gap: 6px; flex: 1; min-width: 180px; }
.notice-metadata { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 18px; border-bottom: 1px solid #e6edf2; color: #6c7b89; font-size: 13px; }
.notice-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; padding: 24px 0; }
.notice-title { overflow-wrap: anywhere; }
.notice-attachments { padding-top: 20px; margin-top: 20px; border-top: 1px solid #e6edf2; }
.notice-attachments h2 { font-size: 16px; margin: 0 0 12px; }
.notice-file-row { display: flex; align-items: center; gap: 15px; padding: 10px 0; }
.notice-file-row > a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.notice-file-row > span { color: #6c7b89; font-size: 12px; }
@media (max-width: 650px) {
  .collaboration-date-fields { gap: 12px; }
  .notice-brief-list > a, .notice-list-entry { align-items: flex-start; flex-direction: column; gap: 6px; }
  .notice-file-row { gap: 8px; flex-wrap: wrap; }
  .calendar-legend { margin-top: 5px; }
}

/* v126: month navigation updates the calendar in-place without a page flash. */
.shared-calendar-panel{overflow-anchor:none}
.shared-calendar-panel[aria-busy="true"] .calendar-month-nav{cursor:progress}
.calendar-load-status{margin:0 0 14px;padding:10px 12px;border:1px solid #e1cfa1;border-radius:8px;background:#fffaf0;color:#70581e;font-size:12px;line-height:1.6}
.calendar-load-status[hidden]{display:none}
.calendar-load-status a{font-weight:700;text-decoration:underline}
.notice-inline-editor { display: grid; width: 100%; gap: .6rem; margin: .8rem 0 1.2rem; }
.notice-inline-editor small { display: block; }
.notice-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 650; }
.notice-image-button { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex: none; border: 1px solid var(--border, #d7dee5); border-radius: 7px; background: #f3f6fa; color: #49627c; cursor: pointer; }
.notice-image-button:hover { background: #e7eef8; }
.notice-image-button:focus-visible,.notice-content-surface:focus-visible { outline: 2px solid #2774df; outline-offset: 2px; }
.notice-content-surface { box-sizing: border-box; width: 100%; min-height: 16rem; max-height: 42rem; overflow: auto; padding: 1rem; border: 1px solid var(--border, #d7dee5); border-radius: .65rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-weight: 400; cursor: text; }
.notice-content-surface img { display: block; width: auto; max-width: 100%; max-height: 34rem; object-fit: contain; margin: .75rem 0; border-radius: .5rem; cursor: default; }
.notice-editor-error { margin: 0; color: #b42a32; font-size: 12px; }
.notice-editor-error[hidden] { display: none; }
.notice-inline-image { margin: .8rem 0; max-width: 100%; }
.notice-inline-image img { display: block; width: auto; max-width: 100%; max-height: 34rem; object-fit: contain; border-radius: .5rem; }
