.role-calendar-workspace { min-width: 0; color: #244052; }
.role-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.role-calendar-heading h2 { margin: 0 0 7px; font-size: 25px; line-height: 1.3; color: #19394d; }
.role-calendar-heading p { margin: 0; font-size: 12px; line-height: 1.6; color: #78909c; overflow-wrap: anywhere; }
.role-calendar-heading .role-calendar-eyebrow { margin-bottom: 6px; color: #009b86; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.role-calendar-heading > .btn { flex-shrink: 0; }
.role-calendar-filter { display: grid; grid-template-columns: minmax(190px, 330px) minmax(145px, 190px) auto; align-items: end; justify-content: start; gap: 12px; padding: 16px 18px; border: 1px solid #dfe9ed; border-radius: 12px; background: #fff; }
.role-calendar-filter .field { min-width: 0; margin: 0; }
.role-calendar-filter .field > span { display: block; margin-bottom: 6px; color: #718894; font-size: 11px; }
.role-calendar-filter select, .role-calendar-filter input { width: 100%; min-width: 0; }
.role-calendar-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.role-calendar-metric { min-width: 0; padding: 15px 18px; border: 1px solid #e0eaed; border-radius: 12px; background: #fff; }
.role-calendar-metric > span { font-size: 12px; color: #728895; }
.role-calendar-metric strong { display: block; margin: 7px 0 5px; color: #244759; font-size: 27px; font-weight: 700; line-height: 1.2; }
.role-calendar-metric strong small { margin-left: 5px; font-size: 11px; font-weight: 400; color: #91a1aa; }
.role-calendar-metric p { margin: 0; color: #8a9ca7; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.role-calendar-tabs { display: flex; align-items: center; gap: 5px; margin-bottom: 16px; padding: 4px; width: fit-content; max-width: 100%; border-radius: 10px; background: #eaf0f3; }
.role-calendar-tabs .btn { padding: 9px 17px; border: 0; background: transparent; box-shadow: none; color: #738894; white-space: nowrap; font-size: 12px; }
.role-calendar-tabs .btn.is-active { background: #fff; color: #008e7d; font-weight: 700; box-shadow: 0 2px 6px #16354d0a; }
.role-calendar-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); align-items: start; gap: 16px; }
.role-calendar-card { min-width: 0; padding: 19px; border: 1px solid #dfe9ed; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px #16354d03; }
.role-calendar-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.role-calendar-section-head > div { min-width: 0; }
.role-calendar-section-head h3 { margin: 0 0 5px; color: #254657; font-size: 15px; line-height: 1.5; }
.role-calendar-section-head p { margin: 0; color: #91a1aa; font-size: 11px; line-height: 1.5; }
.role-calendar-count { flex-shrink: 0; font-size: 11px; color: #78909c; }
.role-calendar-month-actions { display: flex; align-items: center; gap: 5px; }
.role-calendar-month-actions .btn { padding: 6px 10px; font-size: 11px; }
.role-calendar-month-actions .btn.role-calendar-arrow { width: 28px; padding: 3px; font-size: 20px; line-height: 1.2; }
.role-calendar-weekdays, .role-calendar-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.role-calendar-weekdays { margin-bottom: 8px; text-align: center; font-size: 11px; color: #8a9ca7; }
.role-calendar-weekdays span { padding: 4px 0; }
.role-calendar-weekdays span:nth-last-child(-n+2) { color: #a3b2bb; }
.role-calendar-blank { min-width: 0; min-height: 72px; }
.role-calendar-day-button { display: flex; flex-direction: column; align-items: stretch; position: relative; min-width: 0; min-height: 72px; gap: 9px; padding: 8px; border: 1px solid transparent; border-radius: 9px; background: #f7fafb; text-align: left; color: #486474; transition: background .15s, border-color .15s; }
.role-calendar-day-button.is-weekend { background: #f4f7f9; }
.role-calendar-day-button:hover { border-color: #acdbd3; background: #edf8f5; }
.role-calendar-day-button:focus-visible { outline: 2px solid #008f7f; outline-offset: 2px; }
.role-calendar-day-button.is-selected { border-color: #13a38e; background: #eaf8f4; box-shadow: inset 0 0 0 1px #13a38e18; }
.role-calendar-day-number { display: flex; align-items: center; justify-content: space-between; gap: 2px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.role-calendar-day-number small { color: #009881; font-size: 8px; font-weight: 500; white-space: nowrap; }
.role-calendar-day-button.is-today .role-calendar-day-number { color: #008e7d; }
.role-calendar-day-count { color: #9caeb8; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.role-calendar-day-button.has-pending .role-calendar-day-count { color: #b27c27; }
.role-calendar-day-button.is-complete .role-calendar-day-count { color: #15977f; }
.role-calendar-day-progress { height: 3px; margin-top: auto; overflow: hidden; border-radius: 3px; background: #eadfc7; }
.role-calendar-day-progress > span { display: block; height: 100%; border-radius: inherit; background: #28b89f; }
.role-calendar-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; color: #8fa1ab; font-size: 10px; line-height: 1.6; }
.role-calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.role-calendar-legend span:last-child { margin-left: auto; }
.role-calendar-legend i { width: 6px; height: 6px; border-radius: 50%; }
.role-calendar-legend i.pending { background: #d6a14e; }
.role-calendar-legend i.done { background: #2eae97; }
.role-calendar-agenda-list { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.role-calendar-task-card { min-width: 0; padding: 13px; border: 1px solid #e7edef; border-radius: 10px; background: #fff; }
.role-calendar-task-card.is-done { background: #fbfdfc; }
.role-calendar-task-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.role-calendar-task-head strong { color: #325364; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.role-calendar-task-head .badge { flex-shrink: 0; font-size: 9px; white-space: nowrap; }
.role-calendar-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 7px; color: #8da0aa; font-size: 10px; line-height: 1.5; }
.role-calendar-task-description { margin: 10px 0 0; color: #788f9b; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.role-calendar-task-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; background: #f3f7f8; color: #6d8795; font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.role-calendar-task-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.role-calendar-task-actions .btn { padding: 6px 11px; font-size: 11px; }
.role-calendar-footnote { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #eef2f4; color: #99a9b2; font-size: 10px; line-height: 1.6; }
.role-calendar-day-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 230px; padding: 24px 10px; text-align: center; }
.role-calendar-day-empty > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #edf7f3; color: #58a390; font-size: 19px; }
.role-calendar-day-empty strong { color: #6c8491; font-size: 12px; font-weight: 500; }
.role-calendar-day-empty p { margin: 0; color: #9caeb8; font-size: 11px; line-height: 1.6; }
.role-calendar-arrangements { display: grid; gap: 10px; max-height: 65vh; overflow-y: auto; scrollbar-width: thin; }
.role-calendar-arrangement { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 15px; border: 1px solid #e6edef; border-radius: 10px; }
.role-calendar-arrangement.is-disabled { background: #fafcfd; }
.role-calendar-arrangement > .btn { padding: 7px 12px; font-size: 11px; }
.role-calendar-history { display: grid; gap: 0; max-height: 65vh; overflow-y: auto; scrollbar-width: thin; }
.role-calendar-history > article { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px; padding: 0 0 20px; }
.role-calendar-history-dot { width: 8px; height: 8px; margin-top: 6px; border: 2px solid #6dcab8; border-radius: 50%; background: #fff; }
.role-calendar-history article > div { padding-bottom: 16px; border-bottom: 1px solid #eef2f4; }
.role-calendar-history article p { margin: 7px 0 0; color: #8fa2ac; font-size: 11px; line-height: 1.6; }
form[data-form="role-calendar-task"] .span-2 { grid-column: 1 / -1; }
form[data-form="role-calendar-task"] .inline-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; }
form[data-form="role-calendar-completion"] .field { display: block; margin: 16px 0; }
@media (max-width: 1150px) {
  .role-calendar-main { grid-template-columns: minmax(0, 1fr); }
  .role-calendar-agenda-list { max-height: 420px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .role-calendar-day-empty { grid-column: 1 / -1; min-height: 150px; }
}
@media (max-width: 620px) {
  .role-calendar-heading { align-items: start; gap: 10px; margin-bottom: 16px; }
  .role-calendar-heading h2 { font-size: 21px; }
  .role-calendar-heading > .btn { padding: 8px 9px; margin-top: 20px; font-size: 10px; }
  .role-calendar-filter { grid-template-columns: minmax(0, 1fr) 70px; gap: 10px; padding: 13px; }
  .role-calendar-filter .field:first-child { grid-column: 1 / -1; }
  .role-calendar-filter > .btn { width: 100%; }
  .role-calendar-metrics { gap: 7px; margin: 10px 0 14px; }
  .role-calendar-metric { padding: 12px 10px; }
  .role-calendar-metric > span { font-size: 10px; }
  .role-calendar-metric strong { font-size: 22px; }
  .role-calendar-metric p { display: none; }
  .role-calendar-tabs { width: 100%; gap: 3px; }
  .role-calendar-tabs .btn { flex: 1; padding: 9px 8px; font-size: 11px; }
  .role-calendar-card { padding: 14px 12px; }
  .role-calendar-section-head { gap: 8px; margin-bottom: 16px; }
  .role-calendar-section-head h3 { font-size: 14px; }
  .role-calendar-month-card .role-calendar-section-head p { font-size: 10px; }
  .role-calendar-weekdays, .role-calendar-month { gap: 3px; }
  .role-calendar-weekdays { font-size: 10px; }
  .role-calendar-day-button, .role-calendar-blank { min-height: 57px; }
  .role-calendar-day-button { padding: 7px 5px; gap: 6px; border-radius: 7px; }
  .role-calendar-day-number { font-size: 12px; }
  .role-calendar-day-number small { display: none; }
  .role-calendar-day-count { font-size: 9px; }
  .role-calendar-legend { gap: 10px; margin-top: 14px; }
  .role-calendar-legend span:last-child { width: 100%; margin-left: 0; }
  .role-calendar-agenda-list { grid-template-columns: minmax(0, 1fr); max-height: 440px; }
  .role-calendar-arrangement { gap: 12px; padding: 12px; }
  .role-calendar-arrangement > .btn { padding: 6px 8px; font-size: 10px; }
  .role-calendar-count { font-size: 10px; }
}
