.content-stripe {
    max-width: 900px;
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}
.module-header .title-group {
    display: flex;
    align-items: center;
}
.module-icon {
    width: 64px;
    height: 64px;
    margin-right: 0.75rem;
}
.module-icon-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.module-icon-name img {
    width: 30px;
    margin-left: 4px;
}
.module-title {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.2;
}
.debug-link { /* Used in internal version.  */
    font-size: 0.9rem;
    color: #f39c12;
    text-decoration: none;
}

.module-overview {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.module-overview td {
    padding: 10px;
    vertical-align: top;
    border-bottom: 1px dotted #bdc3c7;
}

.module-overview td:first-child {
    font-weight: 600;
    width: 200px;
    background-color: #ecf0f1;
}

.module-overview .small-link {
    font-size: 12px;
}

.module-description {
  margin: 1rem 0;
  padding: 0.8rem;
  border-radius: 3px;
  font-weight: 300;
  font-style: italic;
  font-size: 17px;
}

.module-block {
   width: 800px;
}

.module-block .block-description td {
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  padding-top: 5px;
  padding-bottom: 5px;
}

table.module-block tbody tbody  {display: grid; grid-template-columns: 1fr;}  /*  table.module-overview  - breaks dotted lines*/
table.module-block tbody tr {display: grid; grid-template-columns: .5fr 1fr .5fr .1fr;}
table.module-block tbody tr td {display: flex; gap: 4px; justify-content: flex-start; flex-wrap: wrap; align-items: center;}
/* table.module-overview tbody tr {display: grid; grid-template-columns: 0.2fr 1fr;} ... breaks current version */

table.module-block tbody tr:not(.block-heading):not(.block-description) td:last-of-type {justify-content: flex-end;}
table.module-block .block-heading td, table.module-block .block-description td {grid-column: span 4;}

table.module-block i {
    margin-bottom: 0px;  /* to overwrite texting.css */
}

.module-block img.exercise-icon {
  width: 28px;
}

.module-block img.mastery-shield {
    width: 24px;
}

.module-block .crystal-progress {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 24px;
    justify-content: flex-end;
    background: url(https://www.umimeto.org/asset/global/img/badges/crystal-blue-nav-demo.svg) top center no-repeat;
}

.module-block .crystal-progress span {border: 1.5px solid var(--black); width: 100%; height: 6px; display: block; border-radius: 1.5px; overflow: hidden; background-color: var(--lightGray); padding: 0; margin: 0;}


.module-block td {
   min-height: 30px;
   margin-top: 0px;
   padding: 2px;
}
.module-block .block-heading td {
   background-color:#ecf0f1;
   padding-left: 10px;
}

.module-block .special-set-type {
   text-transform: uppercase;
   font-weight: 300;
   color: #95a5a6;
}

.module-block .difficulty-level {
   font-weight: 300;
   color: #3498dbc0;
}

p.modules-overview-intro {
   margin-top: 1em;
   margin-bottom: 1.5em;
}

#module-grades-table, #module-content-table, #module-rvp-table  {
  border-collapse: collapse;
  margin: 0 auto;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
}

#module-grades-table td, #module-content-table td, #module-content-table td {
  border-bottom: 1px dotted #bdc3c7;
}

#module-grades-table td, #module-content-table td {
  padding: 0.5em 0.5em;
}

#module-rvp-table td { /* This one has lot of white space anyway, so let's make the padding smaller. */
  padding: 0.3em 0.3em;
}

#module-grades-table td, #module-content-table td {
  min-width: 20px;
}

#module-rvp-table td {
  min-width: 150px;
}

#module-grades-table tr.area-row td,  #module-content-table tr.area-row td, #module-rvp-table tr.area-row td {
  background-color: #ecf0f1;
}

#module-grades-table tr:not(.area-row) td:nth-child(even) {
  background-color: #fafafa;
}

.en-dash-list {
  list-style: none;
  padding-left: 0.5em;
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 0px;
}

.en-dash-list li {
  line-height: 1.2;
}

.en-dash-list li::before {
  content: "–";
  display: inline-block;
  width: 1em; /* reserve space */
  margin-left: -1em; /* pull the dash into left margin */
  margin-right: 0em;
}


/* TK nově responzivita */
@media screen and (max-width: 600px) {
.module-block {width: 100%;}
table.module-overview tbody tr {display: grid; grid-template-columns: 1fr; grid-auto-rows: auto;}
table.module-overview td {margin-top: 0;}
table.module-overview td:first-child {width: 100%;}

/* table.module-block tr:has(td:first-child:not(:empty)):not(:first-of-type) {border-top: 1px solid gray;} */
/* table.module-block tr:last-of-type {border-bottom: 1px solid gray;} */
table.module-block tbody tr {display: grid; grid-template-columns: 3fr min-content min-content; grid-auto-rows: auto;}
table.module-block tbody tr > td:first-child:empty{display: none;}
table.module-block tbody tr td:first-of-type{grid-column: span 3;}
table.module-block tbody tr td:nth-child(2){padding-left: 30px;}

#module-content-table tr {display: grid; grid-template-columns: 1fr; grid-auto-rows: auto;}
#module-content-table tr:not([class]) td:first-of-type {border-bottom: 0; padding-bottom: 0;}
#module-content-table tr.area-row td:nth-of-type(2n) {display: none;}

#module-grades-table {
  display: block;
  max-width: 100vw;
  overflow-x: scroll;
}

#module-grades-table tr td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

/* pravý okraj pro skrolování, border moc nefungoval kvůli collapse */
#module-grades-table tr td:first-child:before {
  display: block;
  height: 100%;
  width: 1px;
  position: absolute;
  top: 0; bottom: 0; right: 0;
  content: '';
  background: var(--gray);
  z-index: 10;
}

#module-grades-table tr:not(.area-row) td:first-child {
  background: white;
}
}