/* UCDashboard */

.table-ucdashboard {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
}

.ucdashboard-pillars{
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.ucdashboard-pillars .ucpillar {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    
    .table-ucdashboard {
        display: table;
    }
    
    .ucdashboard-pillars{
        margin-right: 15px;
        margin-left: 15px;
    }
    
    .ucdashboard-pillars .ucpillar {
        flex: none;
        max-width: 100%;
    }
}


.table.table-ucdashboard thead th {
    writing-mode: vertical-rl;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    font-weight: 400;
    max-height: 173px;
    border-right: 1px solid #CCC;
    border-top: 0;
    line-height: 0.75rem;
    font-size: 0.8rem;
    vertical-align: middle;
}

.table.table-ucdashboard thead th div {
    min-height:173px; 
    writing-mode: tb-rl;
}

@-moz-document url-prefix() {
  
  .table.table-ucdashboard thead th {
    vertical-align: top;
    height: 173px;
  }
}


.table td.ucd {
    border: 1px solid #eee;
    width: 50px;
    height: 50px;
    font-size: 0.6rem;
    text-align: center;
    vertical-align: middle;
    padding: 0;
}

.table td.ucd a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    padding: 0;
    vertical-align: middle;
    text-align: center;
    padding-top: 36%;
    -webkit-transition: background-color 0.35s ease-out;
    -moz-transition: background-color 0.35s ease-out;
    -o-transition: background-color 0.35s ease-out;
    transition: background-color 0.35s ease-out;
}

.table td.ucd.ucd-0,  
.table td.ucd.ucd-0 a:link, 
.table td.ucd.ucd-0 a:visited 
{
    background-color: #F36571;
    color: #813f45;
}

.table td.ucd.ucd-0:hover,
.table td.ucd.ucd-0 a:hover {
  background-color: #ec949b; 
}


.table td.ucd.ucd-1, 
.table td.ucd.ucd-1 a:link,
.table td.ucd.ucd-1 a:visited
{
    background-color: #FFDA84;
    color: #b49959;
}

.table td.ucd.ucd-1:hover, 
.table td.ucd.ucd-1 a:hover
{
    background-color: #fae2ab;
}



.table td.ucd.ucd-2,
.table td.ucd.ucd-2 a:link, 
.table td.ucd.ucd-2 a:visited 
{
    background-color: #90CE8E;
    color: #608a5f;
}

.table td.ucd.ucd-2:hover,
.table td.ucd.ucd-2 a:hover
{
    background-color: #b6dfb4;
}


.ucpillar {
    border: 1px solid #eee;
    padding: 1em;
    width: 30%;
    border-radius: 8px;
}

.ucpillar .subtitle span {
    font-variant: small-caps;
    text-transform: lowercase;
}

.ucpillar-0 .subtitle span {
  color: #813f45;
}
.ucpillar-1 .subtitle span {
  color: #b49959;
}
.ucpillar-2 .subtitle span {
  color: #608a5f;
}

.ucpillar-value {
  font-size: 1.75rem;
  color: #444;
}

.ucpillar-0 {
  background-color: #F36571;
}
.ucpillar-1 {
  background-color: #FFDA84;
}
.ucpillar-2 {
  background-color: #90CE8E;
}

/*
@media (min-width: 578px) { 
  .ucdashboard-pillars {
    flex-direction: row;
  }
}
*/

.alert-warning.alert-black {
    color: #333;
}


.badge.badge-ucdash {
    color: #fff;
    font-size: 1rem;
    border-radius: 50%;
    height: 45px;
    width: 45px;
    padding: 0.925rem 0;
}

.badge.badge-ucdash.badge-yes {
    color: #333;
    background-color: rgb(138, 203, 136);
}

.badge.badge-ucdash.badge-no {
    color: #333;
    background-color: #FFDA84;
}

.badge.badge-ucdash.badge-na {
    color: #333;
    background-color: #ccc;
}

.table-ucdashboard-det tr td {
  /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}  

.table-ucdashboard-det tr td:first-child{
    padding-left: 0;
    padding-right: 1.5rem;
}

.table-ucdashboard-det tr td:nth-child(2) {
    width: 75px;
}

h1 sup {
    font-size: 0.5em;
    color: #F36571;
}

.vertical-text {
    transform: rotate(180deg);
    -ms-writing-mode: tb-lr;
    -webkit-writing-mode: tb-lr;
    -moz-writing-mode: tb-lr;
    writing-mode: tb-lr;

    -ms-writing-mode: vertical-lr;
    -webkit-writing-mode: vertical-lr;
    -moz-writing-mode: vertical-lr;
    writing-mode: vertical-lr;

    -ms-writing-mode: sideways-lr;
    -webkit-writing-mode: sideways-lr;
    -moz-writing-mode: sideways-lr;
    writing-mode: sideways-lr;
}

.key-figure {
    padding: 1em 0;
}

.key-figure .kf-label {
    font-size: 2rem;
}

.key-figure .kf-description {
    font-size: 0.8rem;
}
