/* CAMPUSONE_ASSIGNMENT_UI_V4
   Versioned global assignment UI so browser caching cannot keep the old lms.css layout. */

/* Shared file picker rows ------------------------------------------------ */
.co-file-stack-v2 { display:flex!important; flex-direction:column!important; gap:10px!important; width:100%; }
.co-file-row-v2, .co-single-file-row-v2 {
  display:flex!important; align-items:center!important; gap:10px!important; width:100%!important;
  min-height:46px!important; padding:6px 7px 6px 10px!important; margin:0!important;
  border:1px solid #d8e2e4!important; border-radius:9px!important; background:#fff!important;
  box-shadow:none!important; box-sizing:border-box!important;
}
.co-file-row-v2:focus-within, .co-single-file-row-v2:focus-within {
  border-color:#8dcab4!important; box-shadow:0 0 0 3px rgba(21,132,93,.10)!important;
}
.co-file-row-body-v2 { order:1!important; flex:1 1 auto!important; min-width:0!important; }
.co-file-row-v2 .co-file-row-remove-v2, .co-single-file-row-v2 .co-file-row-remove-v2 {
  order:2!important; flex:0 0 30px!important; width:30px!important; height:30px!important;
  display:grid!important; place-items:center!important; margin:0!important; padding:0!important;
  border:1px solid #d7e0e2!important; border-radius:7px!important; background:#f7f9f8!important;
  color:#61747c!important; font-size:18px!important; font-weight:800!important; line-height:1!important;
  cursor:pointer!important;
}
.co-file-row-v2 .co-file-row-remove-v2:hover, .co-single-file-row-v2 .co-file-row-remove-v2:hover {
  border-color:#e0b8b8!important; background:#fff5f5!important; color:#a13c3c!important;
}
.co-file-row-v2 .co-file-row-remove-v2[hidden], .co-single-file-row-v2 .co-file-row-remove-v2[hidden] { display:none!important; }
.co-file-row-body-v2 input[type="file"], .co-single-file-row-v2>input[type="file"] {
  width:100%!important; min-height:32px!important; padding:0!important; margin:0!important;
  border:0!important; background:transparent!important; box-shadow:none!important; color:#1d313a!important;
}
.co-file-row-body-v2 input[type="file"]::file-selector-button, .co-single-file-row-v2>input[type="file"]::file-selector-button {
  margin-right:10px!important; padding:7px 11px!important; border:1px solid #ccd8dc!important;
  border-radius:6px!important; background:#f7f9f8!important; color:#18313b!important; font-weight:750!important;
  cursor:pointer!important;
}
.co-file-row-detail-v2 { display:none!important; }
.co-file-stack-summary-v2 { margin:0!important; padding:0 2px!important; color:#6e8087!important; font-size:12px!important; font-weight:700!important; }
.co-file-picker-help { display:block!important; margin-top:7px!important; color:#708188!important; }

/* Existing teacher brief files ----------------------------------------- */
.co-existing-brief-list-v4 { display:flex; flex-direction:column; gap:8px; }
.co-existing-brief-v4 {
  display:flex; align-items:center; gap:10px; min-height:46px; padding:6px 7px 6px 10px;
  border:1px solid #d8e2e4; border-radius:9px; background:#fff;
}
.co-existing-brief-v4>a { display:flex; align-items:center; gap:9px; min-width:0; flex:1; color:#1b674f; text-decoration:none; font-weight:750; }
.co-v4-file-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.co-v4-file-remove {
  flex:0 0 30px; width:30px; height:30px; display:grid; place-items:center; padding:0;
  border:1px solid #d7e0e2; border-radius:7px; background:#f7f9f8; color:#61747c;
  font-size:18px; font-weight:800; cursor:pointer;
}
.co-v4-file-remove:hover { border-color:#e0b8b8; background:#fff5f5; color:#a13c3c; }
.co-existing-brief-v4.is-removed { opacity:.45; background:#fafafa; }
.co-existing-brief-v4.is-removed>a { text-decoration:line-through; pointer-events:none; }
.co-existing-brief-v4.is-removed .co-v4-file-remove { color:#187a58; border-color:#b9decf; background:#eef8f3; }

/* Allowed file type chooser -------------------------------------------- */
.co-assignment-file-types .co-file-type-grid { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; padding:0!important; list-style:none!important; }
.co-assignment-file-types .co-file-type-grid>div, .co-assignment-file-types .co-file-type-grid>li { margin:0!important; }
.co-assignment-file-types .co-file-type-grid label { display:flex!important; align-items:flex-start; gap:8px; padding:9px 10px; border:1px solid #dde5e7; border-radius:8px; background:#fbfcfc; font-weight:600!important; line-height:1.3; cursor:pointer; }
.co-assignment-file-types .co-file-type-grid input { margin-top:2px; }

/* Lecturer submissions ------------------------------------------------- */
.co-assignment-submissions-v4 { max-width:1240px!important; }
.co-submission-overview-v4 { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(360px,.9fr); gap:14px; margin:14px 0; }
.co-submission-control-v4, .co-submission-stats-v4, .co-assignment-roster-card-v4 {
  border:1px solid #dce5e7; border-radius:11px; background:#fff; box-shadow:0 1px 2px rgba(23,45,54,.025);
}
.co-submission-control-v4 { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:16px 17px; }
.co-submission-control-copy-v4 { min-width:0; }
.co-submission-control-title-v4 { display:flex; align-items:center; gap:9px; margin:3px 0 4px; }
.co-submission-control-title-v4 strong { font-size:15px; color:#172d36; }
.co-submission-control-copy-v4 small { color:#6f8087; }
.co-submission-state-v4 { display:inline-flex; padding:4px 8px; border-radius:999px; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.co-submission-state-v4.is-open { background:#edf8f3; color:#147452; border:1px solid #cce7da; }
.co-submission-state-v4.is-locked { background:#fff3f3; color:#a34040; border:1px solid #edcdcd; }
.co-submission-stats-v4 { display:grid; grid-template-columns:repeat(4,1fr); overflow:hidden; }
.co-submission-stats-v4>div { padding:13px 12px; border-right:1px solid #e5ebed; }
.co-submission-stats-v4>div:last-child { border-right:0; }
.co-submission-stats-v4 span { display:block; color:#7a8a90; font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:.035em; }
.co-submission-stats-v4 strong { display:block; margin-top:3px; color:#172d36; font-size:20px; }
.co-v4-button { min-height:36px; padding:8px 12px; border-radius:8px; border:1px solid #d4dee1; background:#fff; font-weight:800; cursor:pointer; white-space:nowrap; }
.co-v4-button-danger { border-color:#e2bcbc; background:#fff6f6; color:#9e3737; }
.co-v4-button-neutral { background:#f6f8f8; color:#334c57; }
.co-assignment-roster-card-v4 { overflow:hidden; }
.co-assignment-roster-head-v4, .co-assignment-roster-row-v4 {
  display:grid; grid-template-columns:minmax(175px,1.1fr) 120px 145px minmax(220px,1.4fr) 110px minmax(250px,1.45fr);
  column-gap:16px; align-items:center;
}
.co-assignment-roster-head-v4 { padding:13px 16px; background:#f7f9f9; border-bottom:1px solid #e2e9ea; color:#72838a; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.co-assignment-roster-row-v4 { padding:16px; border-bottom:1px solid #e6ecee; }
.co-assignment-roster-row-v4:last-child { border-bottom:0; }
.co-assignment-roster-row-v4:hover { background:#fcfdfd; }
.co-roster-student-v4 strong { display:block; color:#172d36; font-size:13px; }
.co-roster-student-v4 small, .co-roster-date-v4 { display:block; margin-top:3px; color:#7b8b91; font-size:10px; }
.co-v4-pill { display:inline-flex; align-items:center; min-height:26px; padding:5px 8px; border-radius:999px; border:1px solid #dfe6e8; background:#f6f8f8; color:#64767d; font-size:10px; font-weight:800; white-space:nowrap; }
.co-v4-pill.is-on-time, .co-v4-pill.is-graded { background:#edf8f3; border-color:#cce7da; color:#147452; }
.co-v4-pill.is-late { background:#fff6e8; border-color:#efd5aa; color:#985b08; }
.co-v4-pill.is-submitted { background:#eef6fa; border-color:#d3e4ec; color:#315f79; }
.co-roster-files-v4 { min-width:0; }
.co-roster-file-v4 { display:flex; align-items:center; gap:7px; min-width:0; margin-top:6px; padding:7px 8px; border:1px solid #e1e8ea; border-radius:8px; background:#fbfcfc; color:#167754; text-decoration:none; font-size:11px; font-weight:750; }
.co-roster-file-v4 span:nth-child(2) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.co-roster-file-v4 b { margin-left:auto; }
.co-roster-mark-v4 strong { color:#172d36; font-size:14px; }
.co-roster-mark-v4 small { margin-left:3px; color:#7c8b91; font-size:10px; }
.co-roster-actions-v4 { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.co-roster-actions-v4 form { margin:0; }
.co-v4-action { display:inline-flex; align-items:center; justify-content:center; min-height:31px; padding:6px 9px; border:1px solid #d8e2e4; border-radius:7px; background:#fff; color:#334d58!important; text-decoration:none!important; font:inherit; font-size:10px!important; font-weight:800!important; line-height:1; cursor:pointer; white-space:nowrap; }
.co-v4-action.is-primary { border-color:#bcded0; background:#eef8f3; color:#147452!important; }
.co-v4-action.is-danger { border-color:#e5c5c5; color:#a13e3e!important; background:#fff; }
.co-v4-action:hover { background:#f4f7f6; }
.co-v4-empty, .co-v4-muted { color:#94a0a5; }
.co-v4-empty-state { padding:28px; text-align:center; color:#7b898f; }
.co-assignment-brief-list-v4 { display:flex; flex-direction:column; gap:8px; margin-top:14px; }

@media (max-width:1120px) {
  .co-submission-overview-v4 { grid-template-columns:1fr; }
  .co-assignment-roster-head-v4 { display:none; }
  .co-assignment-roster-row-v4 { grid-template-columns:1fr 1fr; gap:14px 18px; }
  .co-assignment-roster-row-v4>div::before { content:attr(data-label); display:block; margin-bottom:5px; color:#8a979c; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
}
@media (max-width:700px) {
  .co-assignment-file-types .co-file-type-grid { grid-template-columns:1fr!important; }
  .co-submission-control-v4 { align-items:flex-start; flex-direction:column; }
  .co-submission-stats-v4 { grid-template-columns:1fr 1fr; }
  .co-submission-stats-v4>div:nth-child(2) { border-right:0; }
  .co-submission-stats-v4>div:nth-child(-n+2) { border-bottom:1px solid #e5ebed; }
  .co-assignment-roster-row-v4 { grid-template-columns:1fr; }
}
