/* Engineering work schedule. Width rules follow the board panel on both role desks and wall displays. */
.jc-calendar {
  --jc-ink: #20382c;
  --jc-muted: #506153;
  --jc-green: #254735;
  --jc-brass: #79562b;
  --jc-rule: #d4dacb;
  --jc-surface: #fffcf5;
  --jc-sage: #e9eddf;
  container-type: inline-size;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(12px, 2vw, 32px);
  border: 1px solid var(--jc-rule);
  border-radius: 12px;
  background: var(--jc-surface);
  color: var(--jc-ink);
  font: 1rem/1.45 DM, 'Segoe UI', sans-serif;
}
.jc-calendar *, .jc-calendar *::before, .jc-calendar *::after { box-sizing: border-box; }
.jc-toolbar, .jc-navigation, .jc-modes, .jc-arrows, .jc-calendar .board-foot { display: flex; align-items: center; }
.jc-toolbar { flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; margin-bottom: 20px; }
.jc-period { min-width: 0; }
.jc-eyebrow {
  margin: 0 0 3px; color: var(--jc-brass); font-size: .7rem; font-weight: 400;
  line-height: 1.35; letter-spacing: .13em; text-transform: uppercase;
}
.jc-range, .jc-day-heading { margin: 0; color: var(--jc-ink); font: 400 clamp(1.8rem, 3.6cqw, 3rem)/1.13 Playfair,Georgia,serif; letter-spacing: -.035em; }
.jc-navigation { flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; }
.jc-modes { border: 1px solid #cbd3c4; border-radius: 9px; padding: 2px; background: #f0f1e7; }
.jc-button {
  display: inline-flex; align-items: center; justify-content: center; margin: 0;
  min-height: 42px; padding: 6px 12px; border: 1px solid var(--jc-rule);
  border-radius: 6px; color: var(--jc-ink); background: transparent;
  font: 400 .94rem/1.2 DM,'Segoe UI',sans-serif; cursor: pointer; touch-action: manipulation;
}
.jc-modes .jc-button { color: #405446; border: 0; border-radius: 6px; }
.jc-button:hover { background: #e7ebdf; }
.jc-modes .jc-button[aria-pressed="true"] { color: #fffdf5; background: var(--jc-green); }
.jc-arrows { gap: 5px; }
.jc-arrows .jc-button { width: 42px; padding: 0; }
.jc-arrows .jc-button::before {
  width: .54rem; height: .54rem; border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  content: ''; transform: rotate(45deg); margin-left: -.2em;
}
.jc-arrows .jc-prev::before { transform: rotate(-135deg); margin-left: .19em; }
.jc-calendar :is(button,summary):focus-visible { outline: 3px solid #94652e; outline-offset: 2px; z-index: 1; position: relative; }
.jc-jobs, .jc-events { list-style: none; margin: 0; padding: 0; }
.jc-job {
  display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,auto); align-items: start;
  column-gap: clamp(10px,2cqw,28px); row-gap: 5px; padding: 14px 0;
  border-top: 1px solid var(--jc-rule);
}
.jc-details { min-width: 0; overflow-wrap: anywhere; }
.jc-time { color: var(--jc-green); font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.4; white-space: nowrap; }
.jc-issue, .jc-meta, .jc-reference, .jc-materials { display: block; }
.jc-issue { font-weight: 400; color: var(--jc-ink); font-size: clamp(1.05rem,2cqw,1.5rem); line-height: 1.25; }
.jc-meta, .jc-materials, .jc-reference { margin-top: 3px; color: var(--jc-muted); font-size: .89rem; }
.jc-reference { font-size: .77rem; font-weight: 400; letter-spacing: .025em; }
.jc-status {
  justify-self: end; width: fit-content; max-width: 100%; padding: 4px 9px;
  border-radius: 4px; background: #e5eade; color: #354d39;
  font-size: .78rem; line-height: 1.25; font-weight: 400; overflow-wrap: anywhere;
}
.jc-status[data-status="In progress"], .jc-status[data-status="Waiting"] { background: #f5e7c6; color: #6b4917; }
.jc-status[data-status="Scheduled"] { background: #e1eaf0; color: #2d505e; }
.jc-status[data-status="Ready for inspection"] { background: #eee4ee; color: #624362; }
.jc-empty { margin: 0; padding: 12px 0; color: var(--jc-muted); font-size: .93rem; }
.jc-week { border-top: 1px solid var(--jc-rule); }
.jc-week-day { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; border-bottom: 1px solid var(--jc-rule); }
.jc-week-date { font-weight: 400; display: flex; flex-direction: column; align-self: start; gap: 1px; margin: 0; padding-block: 12px; color: var(--jc-green); }
.jc-week-name { font-size: .72rem; font-weight: 400; letter-spacing: .085em; text-transform: uppercase; }
.jc-week-number { font: 400 1.3rem/1.13 Playfair,Georgia,serif; white-space: nowrap; }
.jc-quiet-day .jc-week-date { align-self: center; }
.jc-quiet-day .jc-empty { align-self: center; }
.jc-current-day .jc-week-name { color: var(--jc-brass); }
.jc-week-day > .jc-jobs > .jc-job:first-child { border-top: 0; }
.jc-month-split { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(230px,1fr); gap: clamp(14px,2.5cqw,30px); align-items: start; }
.jc-grid {
  display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); min-width: 0;
  overflow: hidden; border: 1px solid #c4cebf; border-radius: 7px; background: #faf9f1;
}
.jc-dow, .jc-cell { min-width: 0; border-right: 1px solid var(--jc-rule); }
.jc-grid > :nth-child(7n) { border-right: 0; }
.jc-dow {
  padding: 9px 1px; color: #425744; background: var(--jc-sage);
  font-size: .72rem; font-weight: 400; letter-spacing: .04em; text-align: center; text-transform: uppercase;
}
.jc-cell { min-height: 0; border-top: 1px solid var(--jc-rule); background: var(--jc-surface); }
.jc-padding-cell { background: #f0f1e8; }
.jc-month-date {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px;
  width: 100%; height: 100%; min-height: clamp(52px,7.7cqw,92px); padding: 8px 9px;
  border: 0; border-radius: 0; background: transparent; line-height: 1.16;
}
.jc-month-date:hover { background: #edf0e4; }
.jc-month-date[aria-pressed="true"] { background: var(--jc-green); color: #fffdf4; }
.jc-month-date:focus-visible { outline-offset: -3px!important; }
.jc-day-number { position: relative; font-size: clamp(.91rem,1.9cqw,1.19rem); font-weight: 400; font-variant-numeric: tabular-nums; }
.jc-month-date[aria-current="date"] .jc-day-number { text-decoration: underline; text-decoration-color: #916d34; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.jc-month-date[aria-current="date"][aria-pressed="true"] .jc-day-number { text-decoration-color: #f3ce82; }
.jc-day-count { display: flex; align-items: center; gap: 3px; max-width: 100%; color: #435d46; font: 400 .73rem/1.18 DM,sans-serif; white-space: nowrap; }
.jc-day-count::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.jc-month-date[aria-pressed="true"] .jc-day-count { color: #e5eabd; }
.jc-month-agenda { min-width: 0; overflow-wrap: anywhere; border: 1px solid #cbd3c3; border-radius: 7px; background: #f8f8ef; }
.jc-agenda-heading { padding: 14px 16px 13px; background: var(--jc-sage); border-radius: 6px 6px 0 0; border-bottom: 1px solid #d4dacb; }
.jc-day-heading { font-size: clamp(1.28rem,2.4cqw,1.9rem); line-height: 1.23; }
.jc-month-agenda > .jc-jobs, .jc-month-agenda > .jc-empty { padding-inline: 15px; }
.jc-month-agenda > .jc-jobs > .jc-job:first-child { border-top: 0; }
.jc-month-agenda .jc-job { grid-template-columns: minmax(0,1fr) auto; }
.jc-month-agenda .jc-job > .jc-time { grid-column: 1; grid-row: 1; }
.jc-month-agenda .jc-job > .jc-status { grid-column: 2; grid-row: 1; }
.jc-month-agenda .jc-job > .jc-details { grid-column: 1/-1; grid-row: 2; }
.jc-history-link, .jc-pending-heading { color: var(--jc-green); font-weight: 400; cursor: pointer; }
.jc-history-link { width: fit-content; padding: 5px 0; font-size: .84rem; }
.jc-events { margin: 4px 0 3px 4px; }
.jc-event { position: relative; padding: 0 0 11px 13px; border-left: 1px solid #a6b79d; font-size: .87rem; line-height: 1.45; }
.jc-event::before { position: absolute; left: -3px; top: .43em; width: 5px; height: 5px; border-radius: 50%; content: ''; background: #5e7552; }
.jc-event:last-child { padding-bottom: 0; }
.jc-event-label, .jc-event-time, .jc-event-detail { display: block; font-weight: 400; }
.jc-event-label { color: var(--jc-green); }
.jc-event-time { color: var(--jc-muted); font-size: .79rem; }
.jc-event-detail { overflow-wrap: anywhere; }
.jc-pending { margin-top: 17px; border-block: 1px solid var(--jc-rule); }
.jc-pending-heading { padding: 10px 0; min-height: 43px; }
.jc-pending-title { padding-left: 2px; }
.jc-queue-count { display: inline-block; min-width: 1.6em; margin-left: 8px; border-radius: 5px; text-align: center; background: var(--jc-sage); font-size: .84rem; }
.jc-calendar .board-foot { justify-content: flex-start; flex-wrap: wrap; gap: 4px 15px; margin: 0; border-top: 0; padding-top: 10px; color: var(--jc-muted); font-size: .82rem; }
.jc-calendar .board-foot .jc-button { margin-left: auto; min-height: 40px; }
.jc-calendar .status-stale { color: #825313; font-weight: 400; }
@container (max-width: 840px) {
  .jc-range { font-size: clamp(1.55rem,4.8cqw,2.35rem); }
  .jc-month-split { grid-template-columns: minmax(0,1.5fr) minmax(200px,1fr); gap: 12px; }
  .jc-week-day { grid-template-columns: 72px minmax(0,1fr); }
  .jc-month-date { padding: 6px; }
}
@container (max-width: 660px) {
  .jc-month-split { grid-template-columns: 1fr; gap: 14px; }
  .jc-navigation { width: 100%; }
  .jc-toolbar { gap: 10px; margin-bottom: 15px; }
  .jc-month-date { min-height: clamp(48px,10cqw,65px); }
  .jc-week-day { grid-template-columns: 65px minmax(0,1fr); gap: 7px; }
  .jc-quiet-day .jc-week-date { flex-direction: row; gap: .4em; flex-wrap: wrap; align-items: center; }
  .jc-quiet-day .jc-week-number { font: 400 .82rem/1.25 DM,sans-serif; }
  .jc-week-number { font-size: 1.15rem; }
  .jc-week-name { font-size: .69rem; }
  .jc-week-date { padding-block: 10px; }
}
@container (max-width: 495px) {
  .jc-navigation { gap: 4px; }
  .jc-modes { padding: 1px; border-radius: 7px; }
  .jc-modes .jc-button { padding-inline: clamp(5px,2cqw,10px); min-height: 40px; font-size: .86rem; }
  .jc-arrows { gap: 3px; }
  .jc-arrows .jc-button { width: 37px; min-height: 40px; }
  .jc-month-date { padding: 5px 4px; gap: 6px; }
  .jc-dow { font-size: .65rem; letter-spacing: 0; }
  .jc-count-word { display: none; }
  .jc-day-count { gap: 3px; font-size: .73rem; }
  .jc-job { grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; }
  .jc-job > .jc-time { grid-row: 1; grid-column: 1; }
  .jc-job > .jc-status { grid-row: 1; grid-column: 2; max-width: 130px; }
  .jc-job > .jc-details { grid-row: 2; grid-column: 1/-1; }
  .jc-week-day { grid-template-columns: minmax(0,1fr); gap: 0; }
  .jc-week-day:not(.jc-quiet-day) .jc-week-date { padding-bottom: 4px; }
  .jc-week-date, .jc-quiet-day .jc-week-date { flex-direction: row; align-items: baseline; gap: 7px; }
  .jc-quiet-day { grid-template-columns: auto minmax(0,1fr); gap: 8px; }
  .jc-quiet-day .jc-empty { text-align: right; font-size: .82rem; padding-block: 8px; }
  .jc-week-day:not(.jc-quiet-day) > .jc-jobs { margin-left: 10px; padding-left: 10px; border-left: 2px solid #c4cfb9; }
  .jc-week-day:not(.jc-quiet-day) > .jc-jobs:last-child { margin-bottom: 8px; }
  .jc-week-day .jc-job { padding: 7px 0; }
  .jc-calendar .board-foot { gap: 4px 8px; }
}
@media (forced-colors: active) {
  .jc-button[aria-pressed="true"], .jc-month-date[aria-current="date"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
