/* EDUHUNT ACADEMIC LIBRARY V2.2.77 */
.eduhunt-library-svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.eduhunt-library-nav-button .eduhunt-library-svg{width:20px;height:20px}
.eduhunt-library-page-head .eyebrow{margin:0 0 7px!important;color:#176fe8!important;font-size:12px!important;font-weight:900!important;letter-spacing:.13em!important}
.eduhunt-library-back{margin-bottom:14px;display:inline-flex;align-items:center;gap:6px}
.eduhunt-library-back .eduhunt-library-svg{width:17px;height:17px}
.eduhunt-library-required{color:#c62828}
.eduhunt-library-form .form-field small{display:block;margin-top:6px;color:var(--ink-600,#607086);font-size:12px;line-height:1.45}
.eduhunt-library-upload-card{border-top:4px solid #176fe8}
.eduhunt-library-status{min-height:24px;margin-top:12px;font-weight:800;font-size:13px}
.eduhunt-library-status.is-info{color:#075a9e}.eduhunt-library-status.is-success{color:#08752a}.eduhunt-library-status.is-error{color:#b42318}
.eduhunt-library-loading{padding:26px;text-align:center;color:var(--ink-600,#607086);font-weight:800}
.eduhunt-library-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.eduhunt-library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.eduhunt-library-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:13px;align-items:start;border:1px solid var(--line,#d3dce8);border-radius:13px;background:var(--surface,#fff);padding:14px;min-width:0}
.eduhunt-library-card-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:#e9f3ff;color:#176fe8}
.eduhunt-library-card-icon .eduhunt-library-svg{width:25px;height:25px}
.eduhunt-library-card-copy{min-width:0}.eduhunt-library-card-copy h3{margin:0;color:var(--ink-950,#0e213c);font-size:16px;line-height:1.35;overflow-wrap:anywhere}.eduhunt-library-card-copy p{margin:5px 0 4px;color:var(--ink-700,#40546b);font-weight:800;font-size:13px;line-height:1.45}.eduhunt-library-card-copy small{display:block;margin-top:3px;color:var(--ink-600,#66788c);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.eduhunt-library-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}.eduhunt-library-actions .button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.eduhunt-library-actions .eduhunt-library-svg{width:16px;height:16px}
.eduhunt-library-empty{padding:32px 15px;text-align:center;display:grid;gap:6px;color:var(--ink-600,#66788c)}.eduhunt-library-empty strong{color:var(--ink-950,#0e213c);font-size:18px}
.eduhunt-library-readonly-note{margin-bottom:14px}.eduhunt-library-readonly-note strong{font-weight:900}
.eduhunt-book-reader{border:1px solid var(--line,#cbd8e8);border-radius:14px;background:#111;overflow:hidden;box-shadow:0 8px 24px rgba(14,33,60,.12)}
.eduhunt-book-reader iframe{display:block;width:100%;height:calc(100vh - 235px);min-height:650px;border:0;background:#353535}
body[data-eduhunt-library-reader="book"] .topbar-button-label{pointer-events:none}
body[data-desktop-theme="dark"] .eduhunt-library-card{background:#101d2f;border-color:#33465e}body[data-desktop-theme="dark"] .eduhunt-library-card-copy h3{color:#f7fbff}body[data-desktop-theme="dark"] .eduhunt-library-card-copy p,body[data-desktop-theme="dark"] .eduhunt-library-card-copy small{color:#b9c8da}body[data-desktop-theme="dark"] .eduhunt-library-card-icon{background:#173454;color:#6db3ff}
@media(max-width:980px){.eduhunt-library-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.eduhunt-library-list{grid-template-columns:1fr}.eduhunt-book-reader iframe{height:70vh;min-height:500px}}
@media(max-width:600px){.eduhunt-library-filter-grid{grid-template-columns:1fr}.eduhunt-library-card{grid-template-columns:44px minmax(0,1fr);padding:12px}.eduhunt-library-card-icon{width:40px;height:40px}.eduhunt-library-actions .button{flex:1 1 44%;min-height:42px}.eduhunt-book-reader iframe{height:72vh;min-height:460px}}
@media print{body[data-eduhunt-library-reader="book"] #content,body[data-eduhunt-library-reader="book"] .portal-footer{display:none!important}body[data-eduhunt-library-reader="book"]::after{content:"EduHunt read-only Book. Printing is not provided.";display:block!important;padding:40px;font:700 16px Arial,sans-serif;color:#000}}


/* V2.2.34 — MATERIAL MULTI-PROGRAMME PICKER */
.eduhunt-library-programme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:2px}
.eduhunt-library-programme-card{position:relative;display:flex;align-items:center;gap:10px;min-height:56px;padding:11px 12px;border:2px solid var(--line,#c9d7e8);border-radius:11px;background:var(--surface,#fff);color:var(--ink-900,#17304d);font-weight:900;cursor:pointer;user-select:none;transition:border-color .14s ease,background .14s ease,box-shadow .14s ease}
.eduhunt-library-programme-card input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.eduhunt-library-programme-tick{width:23px;height:23px;flex:0 0 23px;display:grid;place-items:center;border:2px solid #8fa8c3;border-radius:6px;background:#fff;color:transparent;font-size:15px;font-weight:900}
.eduhunt-library-programme-card.is-selected{border-color:#176fe8;background:#eaf3ff;box-shadow:0 0 0 2px rgba(23,111,232,.10)}
.eduhunt-library-programme-card.is-selected .eduhunt-library-programme-tick{border-color:#176fe8;background:#176fe8;color:#fff}
.eduhunt-library-programme-card.is-disabled{opacity:.45;cursor:not-allowed;background:#f2f4f7}
body[data-desktop-theme="dark"] .eduhunt-library-programme-card{background:#101d2f;border-color:#33465e;color:#f5f9ff}
body[data-desktop-theme="dark"] .eduhunt-library-programme-card.is-selected{background:#173454;border-color:#6db3ff}
@media(max-width:980px){.eduhunt-library-programme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.eduhunt-library-programme-grid{grid-template-columns:1fr}}


/* V2.2.35 — PREFILLED FAMILY TOPIC CATALOGUE */
.eduhunt-library-programme-copy{display:flex;min-width:0;flex-direction:column;gap:3px;line-height:1.2}.eduhunt-library-programme-copy b{font-size:13px;color:inherit}.eduhunt-library-programme-copy small{margin:0!important;font-size:9px!important;letter-spacing:.04em;color:var(--ink-600,#607086)!important}.eduhunt-library-programme-card.is-selected .eduhunt-library-programme-copy small{color:#35689d!important}.eduhunt-library-programme-card.is-incompatible{opacity:.42;background:#f3f5f8;cursor:not-allowed}.eduhunt-library-catalog-note{border-left-color:#6c4cff!important;background:#f4f1ff!important}.eduhunt-library-form select:disabled{background-color:#f2f5f8!important;color:#78879a!important;cursor:not-allowed}.eduhunt-library-form #eduhuntLibraryChapterName{font-weight:800}.eduhunt-library-form #eduhuntLibraryModuleName{font-weight:900;color:#0b4d86}
body[data-desktop-theme="dark"] .eduhunt-library-programme-card.is-incompatible{background:#0c1522}body[data-desktop-theme="dark"] .eduhunt-library-programme-copy small{color:#9eafc3!important}body[data-desktop-theme="dark"] .eduhunt-library-catalog-note{background:#1b1831!important;color:#ddd8ff!important;border-color:#7d6cff!important}


/* V2.2.36 — QUICK CHAPTER PDF UPLOAD */
.eduhunt-library-quick-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:22px 0 10px;padding-top:16px;border-top:1px solid var(--line,#d3dce8)}
.eduhunt-library-quick-head h3{margin:0 0 4px;color:var(--ink-950,#0e213c);font-size:19px}.eduhunt-library-quick-head p{margin:0;color:var(--ink-600,#607086);font-size:13px;line-height:1.45}
.eduhunt-library-chapter-placeholder{padding:24px 16px;border:1px dashed #aac0d8;border-radius:12px;background:#f8fbff;color:#587086;text-align:center;font-weight:800}
.eduhunt-library-chapter-groups{display:grid;gap:15px}.eduhunt-library-chapter-group{border:1px solid var(--line,#d3dce8);border-radius:13px;overflow:hidden;background:var(--surface,#fff)}
.eduhunt-library-module-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#0b4d86;color:#fff;font-weight:900}.eduhunt-library-module-head small{color:#dcecff!important;font-size:11px!important;margin:0!important}
.eduhunt-library-chapter-list{display:grid}.eduhunt-library-chapter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 14px;border-top:1px solid #e1e8f0;background:#fff}.eduhunt-library-chapter-row:first-child{border-top:0}
.eduhunt-library-chapter-row.is-uploaded{background:#effaf2}.eduhunt-library-chapter-row.is-partial{background:#fff9e8}
.eduhunt-library-chapter-copy{min-width:0}.eduhunt-library-chapter-copy strong{display:block;color:var(--ink-950,#0e213c);font-size:14px;line-height:1.4;overflow-wrap:anywhere}.eduhunt-library-chapter-copy small{display:block;margin-top:4px!important;color:#64778c!important;font-size:11px!important;font-weight:700;line-height:1.35}
.eduhunt-library-chapter-row.is-uploaded .eduhunt-library-chapter-copy small{color:#08752a!important}.eduhunt-library-chapter-row.is-partial .eduhunt-library-chapter-copy small{color:#8a6100!important}
.eduhunt-library-chapter-action{display:flex;align-items:center;justify-content:flex-end;min-width:150px}.eduhunt-library-chapter-file{display:none!important}.eduhunt-library-chapter-upload{min-width:148px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.eduhunt-library-chapter-upload:disabled{opacity:.78;cursor:not-allowed;background:#198a43!important;color:#fff!important}
body[data-desktop-theme="dark"] .eduhunt-library-quick-head h3{color:#f7fbff}body[data-desktop-theme="dark"] .eduhunt-library-quick-head p{color:#aebed1}body[data-desktop-theme="dark"] .eduhunt-library-chapter-placeholder{background:#101d2f;border-color:#40546b;color:#b9c8da}body[data-desktop-theme="dark"] .eduhunt-library-chapter-group,body[data-desktop-theme="dark"] .eduhunt-library-chapter-row{background:#101d2f;border-color:#33465e}body[data-desktop-theme="dark"] .eduhunt-library-chapter-copy strong{color:#f7fbff}body[data-desktop-theme="dark"] .eduhunt-library-chapter-row.is-uploaded{background:#10291d}body[data-desktop-theme="dark"] .eduhunt-library-chapter-row.is-partial{background:#2a2410}
@media(max-width:650px){.eduhunt-library-chapter-row{grid-template-columns:1fr;gap:9px;padding:12px}.eduhunt-library-chapter-action{min-width:0;justify-content:stretch}.eduhunt-library-chapter-upload{width:100%;min-width:0;min-height:44px}.eduhunt-library-module-head{padding:10px 12px}}

/* =========================================================
   EDUHUNT V2.2.46 - UPLOAD CONFIRMATION + RECENT/HISTORY
========================================================= */
.eduhunt-library-upload-receipt[hidden],
.eduhunt-upload-confirm-overlay[hidden]{display:none!important}
.eduhunt-library-upload-receipt{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  border:2px solid #169447!important;
  border-left:7px solid #169447!important;
  background:#effaf3!important;
  box-shadow:0 8px 24px rgba(22,148,71,.13)!important;
}
.eduhunt-library-receipt-icon{
  width:52px;height:52px;border-radius:50%;display:grid;place-items:center;
  background:#169447;color:#fff;font-size:30px;font-weight:900
}
.eduhunt-library-receipt-copy{min-width:0}
.eduhunt-library-receipt-kicker{color:#08752a;font-size:11px;font-weight:900;letter-spacing:.12em}
.eduhunt-library-receipt-copy h3{margin:3px 0 4px;color:#075d2a;font-size:20px}
.eduhunt-library-receipt-copy p{margin:0 0 5px;color:#214f34;font-weight:800}
.eduhunt-library-receipt-copy small{display:block;color:#466b54;font-size:12px;line-height:1.4}
.eduhunt-library-receipt-copy strong{display:block;margin-top:7px;color:#08752a;font-size:13px}
.eduhunt-library-upload-tracking{border-top:4px solid #0b4d86}
.eduhunt-library-tracking-head{align-items:flex-start!important;gap:14px;flex-wrap:wrap}
.eduhunt-library-tracking-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.eduhunt-library-tracking-buttons .button{min-height:40px}
.eduhunt-library-recent-summary{
  display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;
  margin-bottom:12px;padding:10px 12px;border:1px solid #b7d8c2;border-radius:10px;background:#f2fbf5
}
.eduhunt-library-recent-summary strong{color:#08752a;font-size:14px}
.eduhunt-library-recent-summary span{color:#526a5b;font-size:12px;font-weight:700}
.eduhunt-library-uploaded-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:24px;padding:4px 9px;margin:0 0 6px;border-radius:999px;
  background:#dcfce7;color:#166534;border:1px solid #86d7a4;
  font-size:10px;font-weight:900;letter-spacing:.05em
}
.eduhunt-library-history-filters{
  display:grid;grid-template-columns:minmax(220px,1.35fr) repeat(3,minmax(150px,.8fr)) auto;
  gap:10px;align-items:end;margin-bottom:12px
}
.eduhunt-library-history-clear{align-self:end}
.eduhunt-library-history-count{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  margin:0 0 10px;padding:9px 12px;border-radius:9px;background:#eef6ff;color:#0b4d86
}
.eduhunt-library-history-count span{font-size:12px;font-weight:700;color:#52677d}
.eduhunt-library-history-table table{min-width:1180px}
.eduhunt-library-history-table th{white-space:nowrap}
.eduhunt-library-history-table td{vertical-align:top}
.eduhunt-library-history-chapter{min-width:240px;text-align:left!important}
.eduhunt-library-history-chapter small{display:block;margin-top:4px;color:#64778c}
.eduhunt-library-history-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:230px}
.eduhunt-library-history-empty{padding:25px 14px!important}

/* Universal operator confirmation. A successful upload stays visible until OK is clicked. */
.eduhunt-upload-confirm-overlay{
  position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;
  padding:18px;background:rgba(5,20,38,.58);backdrop-filter:blur(2px)
}
.eduhunt-upload-confirm-card{
  width:min(560px,100%);display:grid;grid-template-columns:64px minmax(0,1fr);gap:15px;
  padding:21px;border:2px solid #1e9b4e;border-radius:18px;background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.30)
}
.eduhunt-upload-confirm-icon{
  width:58px;height:58px;border-radius:50%;display:grid;place-items:center;
  background:#159447;color:#fff;font-size:34px;font-weight:900
}
.eduhunt-upload-confirm-copy{min-width:0}
.eduhunt-upload-confirm-kicker{font-size:11px;font-weight:900;letter-spacing:.14em;color:#0b7a36}
.eduhunt-upload-confirm-copy h2{margin:4px 0 7px;color:#0b3e22;font-size:23px;line-height:1.25}
.eduhunt-upload-confirm-copy p{margin:0 0 7px;color:#294b37;font-weight:800;line-height:1.45}
.eduhunt-upload-confirm-copy small{color:#617265;font-weight:700}
.eduhunt-upload-confirm-ok{grid-column:1/-1;min-height:46px;font-size:15px}

body[data-desktop-theme="dark"] .eduhunt-library-upload-receipt{background:#10291d!important;border-color:#3cc56c!important}
body[data-desktop-theme="dark"] .eduhunt-library-receipt-copy h3,
body[data-desktop-theme="dark"] .eduhunt-library-receipt-copy p,
body[data-desktop-theme="dark"] .eduhunt-library-receipt-copy strong{color:#d9ffe6!important}
body[data-desktop-theme="dark"] .eduhunt-library-receipt-copy small{color:#add7bb!important}
body[data-desktop-theme="dark"] .eduhunt-library-recent-summary{background:#10291d;border-color:#315a40}
body[data-desktop-theme="dark"] .eduhunt-library-recent-summary span{color:#b8d5c2}
body[data-desktop-theme="dark"] .eduhunt-library-history-count{background:#173454;color:#dcecff}
body[data-desktop-theme="dark"] .eduhunt-library-history-count span{color:#b9c8da}
body[data-desktop-theme="dark"] .eduhunt-upload-confirm-card{background:#101d2f;border-color:#3cc56c}
body[data-desktop-theme="dark"] .eduhunt-upload-confirm-copy h2{color:#ecfff2}
body[data-desktop-theme="dark"] .eduhunt-upload-confirm-copy p{color:#c8e5d2}
body[data-desktop-theme="dark"] .eduhunt-upload-confirm-copy small{color:#9fbaaa}

@media(max-width:1050px){
  .eduhunt-library-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .eduhunt-library-history-clear{grid-column:1/-1}
}
@media(max-width:700px){
  .eduhunt-library-upload-receipt{grid-template-columns:48px 1fr;padding:13px}
  .eduhunt-library-receipt-icon{width:44px;height:44px;font-size:25px}
  .eduhunt-library-upload-receipt>.button{grid-column:1/-1;width:100%}
  .eduhunt-library-tracking-buttons{width:100%;display:grid;grid-template-columns:1fr}
  .eduhunt-library-tracking-buttons .button{width:100%}
  .eduhunt-library-history-filters{grid-template-columns:1fr}
  .eduhunt-library-history-clear{grid-column:auto}
  .eduhunt-library-history-clear .button{width:100%}
  .eduhunt-upload-confirm-card{grid-template-columns:48px minmax(0,1fr);padding:16px}
  .eduhunt-upload-confirm-icon{width:46px;height:46px;font-size:27px}
  .eduhunt-upload-confirm-copy h2{font-size:19px}
}

/* =========================================================
   EDUHUNT V2.2.48 - PRINCIPAL / TEACHER / STUDENT DOWNLOAD FLOW
   Materials & Solutions: Programme -> Class -> Subject -> Chapter
========================================================= */
.eduhunt-library-role-filter-card{border-top:4px solid #0b4d86}
.eduhunt-library-role-filter-flow{
  display:grid;grid-template-columns:repeat(4,minmax(155px,1fr));gap:10px;align-items:end
}
.eduhunt-library-role-filter-flow .form-field{min-width:0}
.eduhunt-library-role-filter-flow select:disabled{opacity:.62;cursor:not-allowed;background:#eef3f8;color:#718298}
.eduhunt-library-role-filter-actions{
  display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;
  margin-top:10px;padding-top:10px;border-top:1px solid #d9e4ef
}
.eduhunt-library-role-filter-actions span{font-weight:900;color:#53677e}
.eduhunt-library-role-filter-message{
  margin-top:10px;padding:10px 12px;border:1px solid #c8d7e8;border-radius:9px;
  background:#f7fbff;color:#53677e;font-weight:800;line-height:1.45
}
.eduhunt-library-role-filter-message.ready{background:#effcf3;border-color:#9cd5ac;color:#166534}
.eduhunt-library-role-waiting{
  min-height:105px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;text-align:center;border:1px dashed #b9cce0;border-radius:12px;background:#f8fbff;padding:18px
}
.eduhunt-library-role-waiting strong{font-size:17px;color:#0b4d86}
.eduhunt-library-role-waiting span{font-size:12px;color:#64778c;font-weight:700}
body[data-desktop-theme="dark"] .eduhunt-library-role-filter-flow select:disabled{background:#142238;color:#7f93aa}
body[data-desktop-theme="dark"] .eduhunt-library-role-filter-actions{border-color:#33465e}
body[data-desktop-theme="dark"] .eduhunt-library-role-filter-actions span{color:#b9c8da}
body[data-desktop-theme="dark"] .eduhunt-library-role-filter-message{background:#101d2f;border-color:#40546b;color:#b9c8da}
body[data-desktop-theme="dark"] .eduhunt-library-role-filter-message.ready{background:#10291d;border-color:#315a40;color:#c9f5d6}
body[data-desktop-theme="dark"] .eduhunt-library-role-waiting{background:#101d2f;border-color:#40546b}
body[data-desktop-theme="dark"] .eduhunt-library-role-waiting strong{color:#dcecff}
body[data-desktop-theme="dark"] .eduhunt-library-role-waiting span{color:#aebed1}
@media(max-width:1100px){.eduhunt-library-role-filter-flow{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){
  .eduhunt-library-role-filter-flow{grid-template-columns:1fr}
  .eduhunt-library-role-filter-actions{align-items:stretch;flex-direction:column}
  .eduhunt-library-role-filter-actions .button{width:100%}
  .eduhunt-library-role-filter-actions span{width:100%;text-align:center}
}


/* =========================================================
   EDUHUNT V2.2.73 — OPERATOR UPLOAD TRACKING FILTERS
   Recent Uploads: Search → Programme → Class → Subject → Chapter
   Upload History: Search → Type → Programme → Class → Subject → Chapter
   Tracking cards are intentionally ONE COLUMN on desktop and mobile.
========================================================= */
.eduhunt-library-upload-tracking .eduhunt-library-list,
.eduhunt-library-upload-tracking .eduhunt-library-tracking-list{
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
}
.eduhunt-library-upload-tracking .eduhunt-library-card{width:100%!important;max-width:none!important}
.eduhunt-library-recent-filters{
  display:grid;
  grid-template-columns:minmax(210px,1.35fr) repeat(4,minmax(145px,.8fr)) auto;
  gap:10px;
  align-items:end;
  margin:0 0 12px;
  padding:12px;
  border:1px solid var(--line,#d3dce8);
  border-radius:11px;
  background:var(--surface,#fff);
}
.eduhunt-library-recent-clear{align-self:end}
.eduhunt-library-history-filters{
  grid-template-columns:minmax(210px,1.3fr) repeat(5,minmax(135px,.76fr)) auto!important;
}
body[data-desktop-theme="dark"] .eduhunt-library-recent-filters{
  background:#101d2f!important;
  border-color:#33465e!important;
}
@media(max-width:1250px){
  .eduhunt-library-recent-filters,
  .eduhunt-library-history-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .eduhunt-library-recent-clear,
  .eduhunt-library-history-clear{grid-column:auto!important}
}
@media(max-width:800px){
  .eduhunt-library-recent-filters,
  .eduhunt-library-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
  .eduhunt-library-recent-filters,
  .eduhunt-library-history-filters{grid-template-columns:1fr!important;padding:10px!important}
  .eduhunt-library-recent-clear .button,
  .eduhunt-library-history-clear .button{width:100%!important}
}

/* =========================================================
   EDUHUNT V2.2.74 — OPERATOR TRACKING ALIGNMENT / OVERFLOW FIX
   - no horizontal overflow under the sidebar
   - filters remain inside the content width
   - search gets its own full-width row
   - single-column cards stay left aligned
========================================================= */
.eduhunt-library-upload-tracking,
.eduhunt-library-upload-tracking *{box-sizing:border-box}
.eduhunt-library-upload-tracking{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-align:left!important;
}
.eduhunt-library-upload-tracking>.card-head,
.eduhunt-library-upload-tracking #eduhuntLibraryUploadTrackingBody,
.eduhunt-library-upload-tracking .eduhunt-library-recent-summary,
.eduhunt-library-upload-tracking .eduhunt-library-history-count,
.eduhunt-library-upload-tracking .eduhunt-library-list,
.eduhunt-library-upload-tracking .eduhunt-library-tracking-list{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
}
.eduhunt-library-tracking-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  width:100%!important;
}
.eduhunt-library-tracking-head>div:first-child{min-width:0!important;flex:1 1 420px!important;text-align:left!important}
.eduhunt-library-tracking-head h3,
.eduhunt-library-tracking-head p,
.eduhunt-library-recent-summary,
.eduhunt-library-history-count{text-align:left!important}
.eduhunt-library-tracking-buttons{flex:0 0 auto!important;max-width:100%!important}

/* Search row owns full width. */
.eduhunt-library-recent-filters,
.eduhunt-library-history-filters{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  gap:10px!important;
  margin:0 0 12px!important;
  padding:12px!important;
  overflow:hidden!important;
  border:1px solid var(--line,#d3dce8)!important;
  border-radius:11px!important;
  background:var(--surface,#fff)!important;
}
.eduhunt-library-filter-search-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  min-width:0!important;
}
.eduhunt-library-filter-scope-row{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:end!important;
  width:100%!important;
  min-width:0!important;
}
.eduhunt-library-filter-scope-row.is-book{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.eduhunt-library-history-scope-row{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:end!important;
  width:100%!important;
  min-width:0!important;
}
.eduhunt-library-recent-filters .form-field,
.eduhunt-library-history-filters .form-field,
.eduhunt-library-filter-scope-row .form-field,
.eduhunt-library-history-scope-row .form-field{
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  text-align:left!important;
}
.eduhunt-library-recent-filters label,
.eduhunt-library-history-filters label{
  display:block!important;
  text-align:left!important;
  margin:0 0 6px!important;
}
.eduhunt-library-recent-filters input,
.eduhunt-library-recent-filters select,
.eduhunt-library-history-filters input,
.eduhunt-library-history-filters select{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.eduhunt-library-recent-clear,
.eduhunt-library-history-clear{align-self:end!important}
.eduhunt-library-recent-clear .button,
.eduhunt-library-history-clear .button{width:100%!important;min-width:0!important;white-space:nowrap!important}

/* One upload per row, fully left aligned. */
.eduhunt-library-upload-tracking .eduhunt-library-tracking-list{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:12px!important;
}
.eduhunt-library-upload-tracking .eduhunt-library-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  align-items:start!important;
  text-align:left!important;
}
.eduhunt-library-upload-tracking .eduhunt-library-card-copy,
.eduhunt-library-upload-tracking .eduhunt-library-card-copy h3,
.eduhunt-library-upload-tracking .eduhunt-library-card-copy p,
.eduhunt-library-upload-tracking .eduhunt-library-card-copy small,
.eduhunt-library-upload-tracking .eduhunt-library-actions{
  text-align:left!important;
  justify-content:flex-start!important;
  min-width:0!important;
}
.eduhunt-library-upload-tracking .eduhunt-library-actions{display:flex!important;flex-wrap:wrap!important}

body[data-desktop-theme="dark"] .eduhunt-library-recent-filters,
body[data-desktop-theme="dark"] .eduhunt-library-history-filters{
  background:#101d2f!important;
  border-color:#33465e!important;
}

@media(max-width:1350px){
  .eduhunt-library-filter-scope-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .eduhunt-library-history-scope-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
  .eduhunt-library-filter-scope-row,
  .eduhunt-library-filter-scope-row.is-book,
  .eduhunt-library-history-scope-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .eduhunt-library-tracking-head{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .eduhunt-library-tracking-buttons{width:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .eduhunt-library-tracking-buttons .button{width:100%!important;min-width:0!important}
}
@media(max-width:600px){
  .eduhunt-library-recent-filters,
  .eduhunt-library-history-filters{padding:10px!important}
  .eduhunt-library-filter-scope-row,
  .eduhunt-library-filter-scope-row.is-book,
  .eduhunt-library-history-scope-row{grid-template-columns:minmax(0,1fr)!important}
  .eduhunt-library-tracking-buttons{grid-template-columns:minmax(0,1fr)!important}
  .eduhunt-library-upload-tracking .eduhunt-library-card{grid-template-columns:44px minmax(0,1fr)!important;padding:12px!important}
}

/* =========================================================
   EDUHUNT V2.2.75 — OPERATOR SIDEBAR + ASSIGNMENT LAYOUT FIX
   - Books / Materials / Solutions stay true children of UPLOADS
   - sidebar children align exactly like Principal submenu
   - desktop Operator content never slides below the sidebar
   - Assignment upload uses responsive grids, not forced horizontal strips
   - content area owns vertical scrolling so actions/history remain reachable
========================================================= */
body[data-portal-role="OPERATOR"] .sidebar-nav{
  overflow-x:hidden!important;
  padding-bottom:30px!important;
}
body[data-portal-role="OPERATOR"] .operator-upload-nav-group{
  display:block!important;
  min-width:0!important;
  margin:2px 0!important;
}
body[data-portal-role="OPERATOR"] .operator-upload-nav-group .principal-nav-toggle{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
}
body[data-portal-role="OPERATOR"] .operator-upload-nav-group .principal-nav-toggle>span{
  flex:1 1 auto!important;
  min-width:0!important;
  text-align:left!important;
}
body[data-portal-role="OPERATOR"] .operator-upload-nav-group .principal-nav-chevron{
  flex:0 0 auto!important;
  margin-left:auto!important;
  font-size:22px!important;
  line-height:1!important;
  transition:transform .18s ease!important;
}
body[data-portal-role="OPERATOR"] .operator-upload-nav-group .principal-nav-toggle.is-open .principal-nav-chevron{
  transform:rotate(90deg)!important;
}
body[data-portal-role="OPERATOR"] .operator-upload-nav-group .principal-nav-submenu{
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
  max-width:100%!important;
  margin:4px 0 6px 17px!important;
  padding:3px 0 3px 7px!important;
  border-left:2px solid rgba(79,172,255,.35)!important;
  overflow:hidden!important;
}
body[data-portal-role="OPERATOR"] .operator-upload-nav-group .principal-nav-submenu[hidden]{display:none!important}
body[data-portal-role="OPERATOR"] .operator-upload-nav-group .principal-nav-child{
  width:100%!important;
  min-width:0!important;
  min-height:36px!important;
  margin:0!important;
  padding:7px 8px!important;
  gap:9px!important;
  border-radius:8px!important;
  text-align:left!important;
  overflow:hidden!important;
}
body[data-portal-role="OPERATOR"] .operator-upload-nav-group .principal-nav-child>span{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body[data-portal-role="OPERATOR"] .operator-upload-nav-group .principal-nav-child svg,
body[data-portal-role="OPERATOR"] .operator-upload-nav-group .principal-nav-child .eduhunt-library-svg{
  width:17px!important;
  height:17px!important;
  flex:0 0 17px!important;
}

@media(min-width:1025px){
  body[data-portal-role="OPERATOR"] .portal-view{
    height:100vh!important;
    min-height:0!important;
    overflow:hidden!important;
    grid-template-columns:var(--sidebar-width,252px) minmax(0,1fr)!important;
  }
  body[data-portal-role="OPERATOR"] .portal-main{
    grid-column:2!important;
    width:auto!important;
    max-width:calc(100vw - var(--sidebar-width,252px))!important;
    height:100vh!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body[data-portal-role="OPERATOR"] .topbar{
    flex:0 0 var(--topbar-height,70px)!important;
  }
  body[data-portal-role="OPERATOR"] .content{
    flex:1 1 auto!important;
    min-height:0!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:24px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
  }
  body[data-portal-role="OPERATOR"] .content>*{
    max-width:100%!important;
    min-width:0!important;
  }
  body[data-portal-role="OPERATOR"] .portal-footer{
    flex:0 0 auto!important;
    padding:8px 24px 12px!important;
  }
  body[data-portal-role="OPERATOR"] .table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
  }
}

/* Assignment upload: remove forced horizontal canvases. */
body[data-portal-role="OPERATOR"] .operator-assignment-upload-card,
body[data-portal-role="OPERATOR"] #opAssignmentHistoryHost,
body[data-portal-role="OPERATOR"] .op-assignment-history-flow,
body[data-portal-role="OPERATOR"] .op-assignment-programme-scroll,
body[data-portal-role="OPERATOR"] .op-assignment-class-scroll{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body[data-portal-role="OPERATOR"] .op-assignment-programme-scroll,
body[data-portal-role="OPERATOR"] .op-assignment-class-scroll{
  overflow:visible!important;
  padding-bottom:0!important;
}
body[data-portal-role="OPERATOR"] #opAssignmentProgrammeChoices.op-assignment-programme-line{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
  gap:9px!important;
  min-width:0!important;
  width:100%!important;
}
body[data-portal-role="OPERATOR"] .op-assignment-meta-line{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
body[data-portal-role="OPERATOR"] .op-assignment-class-line{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
body[data-portal-role="OPERATOR"] .op-assignment-meta-line .form-field,
body[data-portal-role="OPERATOR"] .op-assignment-class-upload{
  min-width:0!important;
  width:100%!important;
}
body[data-portal-role="OPERATOR"] .op-assignment-class-upload input[type="file"],
body[data-portal-role="OPERATOR"] .op-assignment-meta-line select,
body[data-portal-role="OPERATOR"] .operator-assignment-upload-card textarea{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body[data-portal-role="OPERATOR"] .operator-assignment-upload-card .form-actions{
  width:100%!important;
  display:flex!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
}
body[data-portal-role="OPERATOR"] #opAssignmentHistoryHost{
  overflow:hidden!important;
}
body[data-portal-role="OPERATOR"] #opAssignmentHistoryHost .table-card,
body[data-portal-role="OPERATOR"] #opAssignmentHistoryHost .table-wrap{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}

@media(max-width:1320px){
  body[data-portal-role="OPERATOR"] .op-assignment-meta-line,
  body[data-portal-role="OPERATOR"] .op-assignment-class-line{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body[data-portal-role="OPERATOR"] #opAssignmentProgrammeChoices.op-assignment-programme-line,
  body[data-portal-role="OPERATOR"] .op-assignment-meta-line,
  body[data-portal-role="OPERATOR"] .op-assignment-class-line{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-portal-role="OPERATOR"] .operator-assignment-upload-card .form-actions .button{
    width:100%!important;
  }
}

/* =========================================================
   EDUHUNT V2.2.76 — UNIQUE PHYSICAL FILE TRACKING
   - one physical PDF appears once even if shared to many Programmes
   - recent tracking stays one-column
   - compact Search + Filters toolbar
   - Programme names hidden from cards; target count only
========================================================= */
.eduhunt-library-upload-tracking .eduhunt-library-tracking-list{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
}
.eduhunt-library-upload-tracking .eduhunt-library-card--grouped{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  gap:12px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:14px 16px!important;
  margin:0!important;
  align-items:start!important;
  text-align:left!important;
}
.eduhunt-library-card--grouped .eduhunt-library-card-copy{
  min-width:0!important;
  display:grid!important;
  gap:4px!important;
  text-align:left!important;
}
.eduhunt-library-card--grouped .eduhunt-library-card-copy h3,
.eduhunt-library-card--grouped .eduhunt-library-card-copy p,
.eduhunt-library-card--grouped .eduhunt-library-card-copy small{
  margin:0!important;
  text-align:left!important;
}
.eduhunt-library-card--grouped .eduhunt-library-target-count{
  color:#52677d!important;
  font-weight:800!important;
}
.eduhunt-library-card--grouped .eduhunt-library-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-start!important;
  gap:7px!important;
  margin-top:7px!important;
}
.eduhunt-library-recent-filters-v276{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:10px!important;
  overflow:hidden!important;
}
.eduhunt-library-recent-toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:8px!important;
  align-items:end!important;
  width:100%!important;
  min-width:0!important;
}
.eduhunt-library-recent-search{min-width:0!important;width:100%!important;margin:0!important}
.eduhunt-library-recent-search input{width:100%!important;min-width:0!important}
.eduhunt-library-recent-toolbar>.button{
  min-height:44px!important;
  white-space:nowrap!important;
  align-self:end!important;
}
.eduhunt-library-recent-filters-v276 .eduhunt-library-filter-scope-row{
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid var(--line,#d3dce8)!important;
}
.eduhunt-library-recent-filters-v276 .eduhunt-library-filter-scope-row[hidden]{display:none!important}
.eduhunt-library-history-table table{width:100%!important;min-width:900px!important}
body[data-desktop-theme="dark"] .eduhunt-library-card--grouped .eduhunt-library-target-count{color:#9fb5ca!important}
body[data-desktop-theme="dark"] .eduhunt-library-recent-filters-v276 .eduhunt-library-filter-scope-row{border-top-color:#33465e!important}

@media(max-width:760px){
  .eduhunt-library-recent-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(90px,.35fr)!important;
  }
  .eduhunt-library-recent-toolbar>.button:last-child{grid-column:1/-1!important;width:100%!important}
  .eduhunt-library-upload-tracking .eduhunt-library-card--grouped{grid-template-columns:42px minmax(0,1fr)!important;padding:12px!important}
}
@media(max-width:520px){
  .eduhunt-library-recent-toolbar{grid-template-columns:minmax(0,1fr)!important}
  .eduhunt-library-recent-toolbar>.button{width:100%!important}
  .eduhunt-library-upload-tracking .eduhunt-library-card--grouped{grid-template-columns:38px minmax(0,1fr)!important;padding:10px!important}
  .eduhunt-library-card--grouped .eduhunt-library-actions .button{flex:1 1 auto!important;min-width:90px!important}
}

/* =========================================================
   EDUHUNT V2.2.77 — OPERATOR TRUE NESTED SIDEBAR + DESKTOP SHELL LOCK
   PURPOSE
   1. Make UPLOADS a visually obvious expandable parent.
   2. Keep all seven upload modules INSIDE the parent with real inset.
   3. Prevent Operator main content from ever slipping underneath sidebar.
   4. Keep Assignment page vertically scrollable and all controls reachable.
========================================================= */

/* Operator sidebar: parent owns the submenu. */
body[data-portal-role="OPERATOR"] .operator-upload-nav-group{
  width:100%!important;
  max-width:100%!important;
  margin:3px 0 7px!important;
  padding:0!important;
  overflow:visible!important;
}
body[data-portal-role="OPERATOR"] #operatorUploadsNavToggle{
  width:100%!important;
  min-height:44px!important;
  margin:0!important;
  padding:9px 10px!important;
  border-radius:9px!important;
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  color:#d2e0ef!important;
}
body[data-portal-role="OPERATOR"] #operatorUploadsNavToggle.active,
body[data-portal-role="OPERATOR"] #operatorUploadsNavToggle.is-open{
  background:#103b61!important;
  color:#fff!important;
}
body[data-portal-role="OPERATOR"] #operatorUploadsNavToggle>span{
  flex:1 1 auto!important;
  min-width:0!important;
  font-size:13px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  text-align:left!important;
}
body[data-portal-role="OPERATOR"] #operatorUploadsNavToggle .principal-nav-chevron{
  margin-left:auto!important;
  width:18px!important;
  text-align:center!important;
  color:#8fb6d8!important;
  font-size:21px!important;
  transition:transform .16s ease!important;
}
body[data-portal-role="OPERATOR"] #operatorUploadsNavToggle.is-open .principal-nav-chevron{
  transform:rotate(90deg)!important;
  color:#fff!important;
}

/* This is the important part: a clearly inset submenu, not another top-level list. */
body[data-portal-role="OPERATOR"] #operatorUploadsNavPanel{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:2px!important;
  width:calc(100% - 34px)!important;
  max-width:calc(100% - 34px)!important;
  min-width:0!important;
  margin:5px 4px 4px 30px!important;
  padding:5px 5px 5px 10px!important;
  border-left:2px solid #28b6dc!important;
  border-radius:0 10px 10px 0!important;
  background:rgba(4,25,45,.54)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body[data-portal-role="OPERATOR"] #operatorUploadsNavPanel[hidden]{display:none!important}
body[data-portal-role="OPERATOR"] #operatorUploadsNavPanel .principal-nav-child{
  width:100%!important;
  min-width:0!important;
  min-height:36px!important;
  margin:0!important;
  padding:7px 8px!important;
  border-radius:7px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  background:transparent!important;
  color:#9fb6ce!important;
  font-size:12.3px!important;
  font-weight:750!important;
  text-align:left!important;
  box-shadow:none!important;
  transform:none!important;
  overflow:hidden!important;
}
body[data-portal-role="OPERATOR"] #operatorUploadsNavPanel .principal-nav-child:hover{
  background:rgba(255,255,255,.07)!important;
  color:#fff!important;
}
body[data-portal-role="OPERATOR"] #operatorUploadsNavPanel .principal-nav-child.active{
  background:#0e466f!important;
  color:#fff!important;
  box-shadow:inset 3px 0 0 #28d6df!important;
}
body[data-portal-role="OPERATOR"] #operatorUploadsNavPanel .principal-nav-child svg,
body[data-portal-role="OPERATOR"] #operatorUploadsNavPanel .principal-nav-child .eduhunt-library-svg{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
}
body[data-portal-role="OPERATOR"] #operatorUploadsNavPanel .principal-nav-child>span{
  flex:1 1 auto!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Desktop Operator layout: fixed sidebar + fixed main lane. No content underlay. */
@media(min-width:1025px){
  body[data-portal-role="OPERATOR"] #portalView.portal-view{
    position:relative!important;
    display:block!important;
    width:100vw!important;
    height:100vh!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body[data-portal-role="OPERATOR"] #sidebar.sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:var(--sidebar-width,252px)!important;
    z-index:1500!important;
  }
  body[data-portal-role="OPERATOR"] .portal-main{
    position:fixed!important;
    left:var(--sidebar-width,252px)!important;
    right:0!important;
    top:0!important;
    bottom:0!important;
    width:auto!important;
    max-width:none!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    grid-column:auto!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body[data-portal-role="OPERATOR"] .topbar{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:0 0 var(--topbar-height,70px)!important;
    box-sizing:border-box!important;
  }
  body[data-portal-role="OPERATOR"] #content.content{
    flex:1 1 auto!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:22px 24px 28px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
    box-sizing:border-box!important;
  }
  body[data-portal-role="OPERATOR"] #content.content>*{
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body[data-portal-role="OPERATOR"] .portal-footer{
    width:100%!important;
    max-width:100%!important;
    flex:0 0 auto!important;
    box-sizing:border-box!important;
  }
}

/* Assignment Upload: the page itself never scrolls sideways; only real tables may. */
body[data-portal-role="OPERATOR"] .operator-assignment-upload-card,
body[data-portal-role="OPERATOR"] .operator-assignment-upload-card form,
body[data-portal-role="OPERATOR"] .op-assignment-programme-scroll,
body[data-portal-role="OPERATOR"] .op-assignment-class-scroll,
body[data-portal-role="OPERATOR"] .op-assignment-history-flow,
body[data-portal-role="OPERATOR"] #opAssignmentHistoryHost{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body[data-portal-role="OPERATOR"] .operator-assignment-upload-card,
body[data-portal-role="OPERATOR"] .op-assignment-programme-scroll,
body[data-portal-role="OPERATOR"] .op-assignment-class-scroll{
  overflow:visible!important;
}
body[data-portal-role="OPERATOR"] .op-assignment-meta-line{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
}
body[data-portal-role="OPERATOR"] .op-assignment-class-line{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
}
body[data-portal-role="OPERATOR"] .op-assignment-history-flow{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
  overflow:visible!important;
}
body[data-portal-role="OPERATOR"] .operator-assignment-upload-card .form-actions,
body[data-portal-role="OPERATOR"] #opAssignmentHistoryHost .form-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  max-width:100%!important;
}
body[data-portal-role="OPERATOR"] .operator-assignment-upload-card .button,
body[data-portal-role="OPERATOR"] #opAssignmentHistoryHost .button{
  max-width:100%!important;
}
body[data-portal-role="OPERATOR"] #opAssignmentHistoryHost{
  overflow:visible!important;
}
body[data-portal-role="OPERATOR"] #opAssignmentHistoryHost .table-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
body[data-portal-role="OPERATOR"] #opAssignmentHistoryHost .table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch!important;
}
@media(max-width:1380px) and (min-width:1025px){
  body[data-portal-role="OPERATOR"] .op-assignment-meta-line,
  body[data-portal-role="OPERATOR"] .op-assignment-class-line{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body[data-portal-role="OPERATOR"] .op-assignment-history-flow{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* V2.2.183 — Student recipient filters: Programme/Class are implicit from login scope. */
.eduhunt-library-role-filter-flow--student{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
@media(max-width:700px){
  .eduhunt-library-role-filter-flow--student{grid-template-columns:1fr 1fr!important;gap:10px!important}
}
@media(max-width:460px){
  .eduhunt-library-role-filter-flow--student{grid-template-columns:1fr!important}
}
