.assignment-planning { margin: 20px 0; }
.assignment-section-nav { display:flex; flex-wrap:wrap; align-items:center; gap:4px 16px; margin:8px 0 12px; font-size:14px; }
.assignment-section-nav a { display:inline-flex; align-items:center; min-height:44px; font-weight:600; }
#assignments .assignment-main-heading { margin:24px 0 14px !important; font-size:28px; font-weight:500; line-height:1.3; }
#assignments :is(#assignment-details-submissions,#assignment-status-reference,#assignment-three-steps,#qualification-progression-section) { scroll-margin-top:calc(var(--lms-context-header-offset,75px) + 24px); }
.assignment-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.assignment-summary-card { min-width:0; padding:12px; border:1px solid #cbd9d1; border-radius:6px; background:#fff; overflow-x:auto; }
.assignment-summary-card table { display:table; margin:0; width:100%; max-width:100%; table-layout:fixed; border-collapse:collapse; font:inherit; }
.assignment-summary-card :is(th,td) { width:25%; padding:10px !important; border:1px solid #ccc !important; text-align:center; white-space:normal; overflow-wrap:anywhere; }
.assignment-summary-card > h3,.assignment-document-card > h3 { margin:0 0 10px; color:#243e34; font-size:18px; font-weight:600; }
.assignment-summary-statement { margin:0 0 14px; font-size:20px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.assignment-document-card { min-width:0; padding:12px; border:1px solid #cbd9d1; border-radius:6px; background:#fff; overflow-x:auto; }
.assignment-qualification-documents { margin-top:16px; }
.assignment-qualification-documents h3 { font-size:18px; font-weight:600; }
.assignment-staff-summary,.assignment-status-parent { margin:16px 0; padding:12px 16px; border:1px solid #cbd9d1; border-radius:6px; background:#f5f7f6; }
.assignment-staff-summary > summary,.assignment-status-parent > summary { position:relative; min-height:44px; padding:10px 0 10px 24px; list-style:none; cursor:pointer; }
.assignment-staff-summary > summary::-webkit-details-marker,.assignment-status-parent > summary::-webkit-details-marker { display:none; }
.assignment-staff-summary > summary::before,.assignment-status-parent > summary::before { content:''; position:absolute; left:0; top:16px; width:12px; height:12px; background:currentColor; clip-path:polygon(20% 0,100% 50%,20% 100%); }
.assignment-staff-summary[open] > summary::before,.assignment-status-parent[open] > summary::before { transform:rotate(90deg); }
.assignment-status-parent > summary > span { display:block; margin-top:4px; font-size:14px; color:#52675d; }
.assignment-staff-summary :focus-visible,.assignment-status-parent :focus-visible,.assignment-section-nav a:focus-visible,.assignment-main-heading:focus-visible { outline:3px solid #287254; outline-offset:3px; }
.assignment-table-heading .assignment-pathway { border:0; border-radius:0; padding:4px 0 0; background:transparent; font-size:14px; font-weight:400; }
.assignment-table-heading .assignment-pathway__row { justify-content:flex-start; align-items:baseline; }
.assignment-table-heading .assignment-pathway__row > span { font-size:13px; color:#526158; }
@media (max-width:960px) { .assignment-summary-grid { grid-template-columns:1fr; } }
@media (max-width:600px) { #assignments .assignment-main-heading { font-size:22px; } }
.assignment-planning-accordion { margin: 0; padding: 12px; border-radius: 5px; }
.assignment-planning-accordion > li > .uk-accordion-title { display: block; position: relative; padding-left: 24px; font-size: 16px; }
.assignment-planning-accordion > li > .uk-accordion-title::before,
.assignment-table-help summary::before { content: ''; position: absolute; left: 0; top: 6px; float: none; width: 12px; height: 12px; margin: 0; background: currentColor; clip-path: polygon(20% 0, 100% 50%, 20% 100%); transform-origin: center; }
.assignment-planning-accordion > .uk-open > .uk-accordion-title::before,
.assignment-table-help details[open] > summary::before { transform: rotate(90deg); }
.assignment-planning-accordion .uk-flex { flex-wrap: wrap; gap: 6px; }
#qualification-progression-section { margin: 20px 0 12px; padding-top:24px; }
.assignment-qualification-summary,.assignment-status-reference { padding-top:24px; }
#qualification-progression-section > h2 { margin: 0 0 12px; }
.assignment-progress-layout { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.assignment-progress-layout > div { flex: none !important; min-width: 0; }
.assignment-pathway { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #c7dfef; border-left: 4px solid #2196f3; border-radius: 5px; background: #f8fbff; }
.assignment-pathway__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.assignment-pathway__row strong { color: #1e73be; }
.assignment-pathway p { margin: 6px 0 0; font-size: 14px; }
.assignment-target-overdue { color: #805300; background: #fff8e8; font-weight: 600; }
.assignment-targets { min-width:0; max-width:100%; box-sizing:border-box; }
#assignments .assignment-targets-table { display:table !important; width:100% !important; min-width:0 !important; max-width:100% !important; table-layout:fixed !important; }
#assignments .assignment-targets-table :is(th,td,th span) { min-width:0 !important; white-space:normal !important; overflow-wrap:anywhere; word-break:normal; box-sizing:border-box; }
#assignments .assignment-targets-table th > div { min-width:0; max-width:100%; }
@media (max-width:600px) { #assignments .assignment-targets-table :is(th,td) { padding:6px !important; font-size:13px; } }
.assignment-table-heading, .assignment-table-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.assignment-table-header-content { display: flex; flex-direction: column; gap: 8px; }
.assignment-table-heading > div:first-child { flex: 1 1 240px !important; }
.assignment-table-meta { justify-content: flex-end; font-size: 14px; font-weight: 400; color: #526158; }
.assignment-table-upload { display: inline-flex; align-items: center; gap: 4px; }
.assignment-table-upload-status { display: inline-flex; align-items: center; gap: 6px; color: #287844; font-size: 13px; font-weight: 600; }
.assignment-table-upload-info { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #526158; font: inherit; cursor: help; }
.assignment-table-upload-info:focus-visible { outline: 3px solid #287254; outline-offset: 2px; }
.assignment-table-upload-status--temporary { color: #805300; }
.assignment-table-upload-status--unavailable { color: #922525; }
.assignment-table-instructions { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.5; text-align: left; }
.assignment-table-instructions p { margin: 6px 0 0; }
.assignment-table-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 12px; }
.assignment-table-tools .assignment-colour-key { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0; font-size: 13px; font-weight: 400; }
.assignment-table-help { display: contents; font-size: 14px; font-weight: 400; text-align: left; }
.assignment-table-help .upload-help { display: contents; }
.assignment-table-help .upload-help:not([open]) > .upload-help-content { display: none; }
.assignment-table-help summary { grid-column: 2; grid-row: 1; justify-self: end; display: inline-block; position: relative; padding-left: 24px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.assignment-table-help summary::before { top: 50%; margin-top: -6px; }
.assignment-table-help summary::-webkit-details-marker { display: none; }
.assignment-table-help .upload-help summary:hover { background: transparent !important; }
.assignment-table-help .upload-help > .upload-help-content { grid-column: 1 / -1; min-width: 0; padding: 12px 0; background: transparent; font-weight: 400; line-height: 1.6; }
.upload-help-content > p { margin: 0 0 12px; }
.upload-help-steps { list-style: none; margin: 0; padding: 0; }
.upload-help-steps > li { margin: 16px 0; }
.upload-help-content h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.upload-help-steps p, .upload-help-support p { margin: 0 0 8px; }
.upload-help .upload-browser-table { width: 100%; margin: 12px 0 0; border-collapse: collapse; background: #f5f7f6; font-size: 14px; }
.upload-browser-table caption { padding: 8px 10px; text-align: left; font-weight: 600; }
.upload-help .upload-browser-table th, .upload-help .upload-browser-table td { padding: 6px 10px; border: 1px solid #d9e1dc; background: transparent; text-align: left; white-space: normal; }
.upload-help-support { padding: 12px; border-left: 3px solid #668bad; border-radius: 4px; background: #edf4fb; }
.upload-help-support ul { margin: 8px 0; padding-left: 22px; }
.assignment-table-help :focus-visible, .assignment-planning :focus-visible { outline: 3px solid #287254; outline-offset: 3px; }
.assignment-pathway, .assignment-table-heading, .assignment-table-instructions, .assignment-table-help { overflow-wrap: anywhere; hyphens: none; }
@media (prefers-reduced-motion: reduce) {
  .assignment-table-upload-status .fa-beat { animation: none !important; }
}
@media (max-width: 600px) {
  .assignment-table-heading, .assignment-table-instructions, .assignment-table-tools, .assignment-table-help { max-width: calc(100vw - 110px); }
  .assignment-table-heading > div:first-child { flex-basis: 100% !important; }
  .assignment-table-meta { justify-content: flex-start; }
  .assignment-table-tools { grid-template-columns: minmax(0, 1fr); }
  .assignment-table-help summary { grid-column: 1; grid-row: 2; }
  .upload-help .upload-browser-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .upload-help .upload-browser-table tr { display: grid; grid-template-columns: minmax(0, 1fr); }
  .upload-help .upload-browser-table td::before { content: attr(data-label) ': '; font-weight: 600; }
  .assignment-planning-accordion .uk-label { white-space: normal; }
}
.assignment-child-wrap .assignment-history-heading {
  padding: 12px 16px;
  border-top: 1px solid #d5dfd9;
  background: #f8faf9;
  text-align: left;
  white-space: normal;
}
.assignment-child-wrap .assignment-history-heading h3 { margin: 0 0 4px; color: #19523f; font-size: 18px; font-weight: 600; }
.assignment-child-wrap .assignment-history-heading p { margin: 0; color: #52675d; font-size: 14px; }
.assignment-child-wrap .assignment-history-scroll { width: 0; min-width: 100%; max-width: 100%; overflow-x: auto; }
.assignment-child-wrap .assignment-history-scroll:focus-visible { outline: 3px solid #4383b5; outline-offset: -3px; }
.assignment-child-wrap .assignment-child-table { display: table !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; table-layout: fixed !important; }
.assignment-child-wrap .assignment-child-table th,
.assignment-child-wrap .assignment-child-table td { box-sizing: border-box; min-width: 0 !important; padding: 8px; white-space: normal !important; overflow-wrap: anywhere; word-break: normal; vertical-align: top; }
.assignment-child-wrap .assignment-child-table th { font-size: 14px; line-height: 1.4; }
.assignment-child-wrap .assignment-child-table td:nth-child(2),
.assignment-child-wrap .assignment-child-table td:nth-child(3) { text-align: center; }
.assignment-child-wrap .assignment-child-table td:nth-child(4),
.assignment-child-wrap .assignment-child-table td:nth-child(7),
.assignment-child-wrap .assignment-child-table td:nth-child(8) { text-align: left; }
.assignment-child-wrap .assignment-upload-action,
.assignment-child-wrap .assignment-copy-filename { box-sizing: border-box; min-height: 44px; border: 1px solid #19523f; border-radius: 5px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: normal; }
.assignment-child-wrap .assignment-upload-action { background: #19523f; color: #fff; }
.assignment-child-wrap input[data-upload-button-radio] { display: none !important; }
.assignment-child-wrap .assignment-copy-filename { background: #fff; color: #19523f; }
.assignment-child-wrap .assignment-upload-action:disabled { background: #e8eeea; color: #52675d; border-color: #cbd9d1; cursor: not-allowed; }
.assignment-child-wrap .assignment-upload-note { display: block; margin-top: 8px; max-width: 240px; color: #52675d; text-align: left; line-height: 1.5; }
.assignment-child-wrap .assignment-required-filename { display: grid; justify-items: start; gap: 6px; text-align: left; }
.assignment-child-wrap .assignment-required-filename strong { user-select: text; }
.assignment-child-wrap .assignment-copy-feedback { font-size: 13px; color: #52675d; }
.assignment-child-wrap .assignment-copy-feedback:empty { display: none; }
.assignment-child-wrap .assignment-upload-instructions { margin: 0; padding: 12px 16px; border-bottom: 1px solid #d5dfd9; background: #f8faf9; color: #52675d; font-size: 14px; line-height: 1.6; text-align: left; white-space: normal; }
.assignment-child-wrap .assignment-upload-action:focus-visible,
.assignment-child-wrap .assignment-copy-filename:focus-visible { outline: 3px solid #4383b5; outline-offset: 3px; }
@media (max-width: 760px) {
  .assignment-child-wrap .assignment-child-table { min-width: 1100px !important; }
  .assignment-child-wrap .assignment-child-table[data-history-columns="7"] { min-width: 780px !important; }
}
