/* =========================================================
   EDUHUNT V2.1.20 — PLAYLIST / COMPACT REPORT / ASSIGNMENT UI
   Frontend-only presentation layer. Server permissions remain authoritative.
========================================================= */

/* Brand marks used by the portal are the supplied official EduHunt assets. */
.sidebar-brand img,.login-brand-panel img,.login-mobile-brand img{object-fit:contain!important}

/* Never show the retired playlist navigation controls from an older cached layer. */
.edu-video-controls,.edu-video-playlist-note,.edu-video-help,
#ehpVlVideoPreviousButton,#ehpVlVideoNextButton{display:none!important}
.edu-video-all-title{margin:12px 0 7px;font-size:12px;font-weight:950;letter-spacing:.06em;text-transform:uppercase;color:var(--ink,#10233d)}
.edu-video-playlist-rows{display:grid;gap:7px;min-width:0}
.edu-video-list-row{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) 26px;gap:9px;align-items:center;text-align:left;border:1px solid #bfd2e6;border-radius:11px;background:#f8fbff;color:#10233d;padding:9px 10px;cursor:pointer;min-width:0}
.edu-video-list-row>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e3f2ff;color:#075793;font-size:12px;font-weight:950}
.edu-video-list-row>div{min-width:0}
.edu-video-list-row strong{display:block;font-size:13px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.edu-video-list-row small{display:block;margin-top:2px;font-size:11px;color:#6b7f92}
.edu-video-list-row>b{font-size:15px;color:#0b7fda;text-align:center}
.edu-video-list-row.active{border-color:#14c7ce;background:#e8fbfb;box-shadow:inset 3px 0 #14c7ce}
.edu-video-list-row.active>span{background:#14c7ce;color:#002b39}
.edu-video-player{margin-top:14px}
.edu-video-frame{aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#000}
.edu-video-frame>div,.edu-video-frame iframe{width:100%!important;height:100%!important}

/* Operator central assignment publishing. */
.operator-assignment-upload-card .form-grid{row-gap:10px!important}
.operator-assignment-upload-card textarea{min-height:76px!important}
.operator-assignment-upload-card small{line-height:1.25}

/* Test-type chips shared by schedule / syllabus surfaces. */
.test-type-chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 11px}
.test-type-chip{border:1px solid #b8cce0;border-radius:999px;background:#f5f9fd;color:#17415f;padding:7px 13px;font-size:12px;font-weight:900;cursor:pointer;min-height:34px}
.test-type-chip.active{background:#075b96;color:#fff;border-color:#075b96;box-shadow:0 4px 12px rgba(7,91,150,.15)}
.excel-plan-card{border-left:5px solid #18a9b3!important}
.excel-plan-card .excel-plan-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:7px;color:#526b7e;font-size:12px;font-weight:750}
.excel-teaching-plan{display:grid;gap:8px}
.excel-teaching-row{border:1px solid #d4e1ed;border-radius:10px;padding:9px 10px;background:#fbfdff}
.excel-teaching-row strong{display:block;color:#0b4d86}
.excel-teaching-row small{display:block;color:#60758a;margin-top:3px;line-height:1.35}

/* Result mark list: fit all six columns inside the app without horizontal scrolling. */
@media screen and (max-width:1024px){
  [data-portal-module="results"] .result-table-fit,
  [data-portal-module="student-results"] .result-table-fit{width:100%;min-width:0;overflow:hidden!important}
  [data-portal-module="results"] .result-table-fit .table-wrap,
  [data-portal-module="student-results"] .result-table-fit .table-wrap{overflow-x:hidden!important;width:100%;max-width:100%}
  [data-portal-module="results"] .result-table-fit table,
  [data-portal-module="student-results"] .result-table-fit table{width:100%!important;min-width:0!important;table-layout:fixed!important;font-size:9.5px!important}
  [data-portal-module="results"] .result-table-fit th,
  [data-portal-module="results"] .result-table-fit td,
  [data-portal-module="student-results"] .result-table-fit th,
  [data-portal-module="student-results"] .result-table-fit td{padding:5px 3px!important;line-height:1.22!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;min-width:0!important}
  [data-portal-module="results"] .result-table-fit th:nth-child(1),
  [data-portal-module="student-results"] .result-table-fit th:nth-child(1){width:8%!important}
  [data-portal-module="results"] .result-table-fit th:nth-child(2),
  [data-portal-module="student-results"] .result-table-fit th:nth-child(2){width:20%!important}
  [data-portal-module="results"] .result-table-fit th:nth-child(3),
  [data-portal-module="student-results"] .result-table-fit th:nth-child(3){width:31%!important}
  [data-portal-module="results"] .result-table-fit th:nth-child(4),
  [data-portal-module="student-results"] .result-table-fit th:nth-child(4){width:19%!important}
  [data-portal-module="results"] .result-table-fit th:nth-child(5),
  [data-portal-module="student-results"] .result-table-fit th:nth-child(5){width:13%!important}
  [data-portal-module="results"] .result-table-fit th:nth-child(6),
  [data-portal-module="student-results"] .result-table-fit th:nth-child(6){width:9%!important}
  [data-portal-module="results"] .result-table-fit .table-card,
  [data-portal-module="student-results"] .result-table-fit .table-card{padding-left:0!important;padding-right:0!important}

  /* One heading only: the app topbar is the page title on phones/tablets. */
  .page-head--mirrors-topbar h2,.principal-app-page-head h2{display:none!important}
  .page-head--mirrors-topbar{min-height:0!important;margin-bottom:9px!important}

  /* Compact filters use the width productively. */
  .operator-assignment-upload-card .form-grid--4{grid-template-columns:1fr 1fr!important}
  .operator-assignment-upload-card .form-field--wide{grid-column:1/-1!important}
  .edu-video-select-row{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .edu-video-library{padding:11px!important}
  .edu-video-topic-list{gap:7px!important}
  .edu-video-topic{min-height:57px!important;padding:8px 9px!important}
  .edu-video-player-head{padding:10px 11px!important}
  .edu-video-player-head h3{margin-top:3px!important;font-size:17px!important}
  .edu-video-all-title{color:#dff8ff!important}
  .edu-video-list-row{background:#0d2c48!important;border-color:#285a78!important;color:#fff!important;padding:8px 9px!important}
  .edu-video-list-row small{color:#a7bfd0!important}
  .edu-video-list-row.active{background:#104365!important;border-color:#18d6d7!important}
  .test-type-chip{background:#0d2b47;color:#cfe8f7;border-color:#2c5875}
  .test-type-chip.active{background:#12bfc7;color:#002d3b;border-color:#12bfc7}
  .excel-plan-card,.excel-teaching-row{background:#0c2841!important;border-color:#285670!important;color:#eef9ff!important}
  .excel-teaching-row strong{color:#fff!important}.excel-teaching-row small,.excel-plan-card .excel-plan-meta{color:#afd0e1!important}
}

@media screen and (max-width:430px){
  [data-portal-module="results"] .result-table-fit table,
  [data-portal-module="student-results"] .result-table-fit table{font-size:8.7px!important}
  [data-portal-module="results"] .result-table-fit th,
  [data-portal-module="results"] .result-table-fit td,
  [data-portal-module="student-results"] .result-table-fit th,
  [data-portal-module="student-results"] .result-table-fit td{padding:4px 2px!important}
  .edu-video-list-row{grid-template-columns:30px minmax(0,1fr) 22px;gap:7px}
  .edu-video-list-row>span{width:25px;height:25px}
  .edu-video-list-row strong{font-size:12px}
}
