a.no-link-style {
  color: black !important;
  text-decoration: none;
}
a.no-link-style:hover {
  color: black !important;
  text-decoration: none;
}

#loginform_box {
  width: fit-content;
  border: black 1px solid;
  margin: 10px;
  padding: 10px;
  background: gainsboro;
  border-radius: 5px;
  text-align: center;
}

#loginform {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* Make dropdown panels wider so long labels fit */
.ui.top.fixed.menu.inverted.green 
.ui.dropdown.item.vvlndd > .menu,
.ui.top.fixed.menu.inverted.green 
.ui.dropdown.item.vvlndd > .menu .menu {
  min-width: 220px;   /* adjust to taste */
}

  #m-marks-grid td.m-mark-cell.selected {
    font-weight: 700;
  }
  #m-marks-grid td.disabled {
    opacity: 0.4;
  }

/* header cell: fixed size, narrow, clip overflow */
.marks-header{
  width: 26px;              /* narrower columns */
  min-width: 26px;
  max-width: 26px;
  height: 90px;             /* adjust to taste */
  padding: 0 !important;
  vertical-align: bottom;
  text-align: center;
  overflow: hidden;         /* prevents spilling past header */
  position: relative;
}

/* wrapper fills th */
.marks-header .vwrap{
  position: absolute;
  inset: 0;                 /* top/right/bottom/left:0 */
  overflow: hidden;
}

/* rotated text centered inside th */
.marks-header .vtext{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  font-weight: 600;
  font-size: 12px;          /* smaller label */
  line-height: 1;
}

#m-marks-grid td.m-mark-cell,
#m-marks-grid td.disabled{
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  padding: 2px !important;
  text-align: center;
}

  #m-marks-grid td.m-mark-cell.selected {
    background: rgba(33, 186, 69, 0.10); /* Semantic "green" feel without hardcoding classes */
    font-weight: 700;
  }
  #m-marks-grid td.m-mark-cell.selected i.check.icon {
    margin: 0;
  }

  /* base transition so it feels responsive */
#m-marks-grid td,
#m-marks-grid th {
  transition: background-color 0.08s ease;
}

/* hovered cell */
#m-marks-grid td.m-mark-cell:hover {
  background-color: rgba(33, 133, 208, 0.15);
}

/* hovered row */
#m-marks-grid tr.hover-row td {
  background-color: rgba(0,0,0,0.035);
}

/* hovered column */
#m-marks-grid td.hover-col,
#m-marks-grid th.hover-col {
  background-color: rgba(0,0,0,0.05);
}

/* keep selected mark stronger than hover */
#m-marks-grid td.m-mark-cell.selected {
  background-color: rgba(33, 186, 69, 0.15);
}

.ui.menu .ui.dropdown.item .menu .item:not(.filtered) {
    width: 200px !important;
}