/** MMS specific things, needed on top of the main shared css.  In the ideal world, this would be empty ... */

/** Getting the signout button to look more like the other nav links */
li#logout-link button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0px;
    margin: 0px;
}

button.fa, button.fas, button.far {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0px;
    margin: 0px;
}

div.tabs-container div.tab-pane table tbody ul {
    padding-left: 0;
}
table.table tbody ul, table.table tbody ul li {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

/** Change the top bar colour for different system types (i.e. mark Test and Dev clearly) */
div#app-wrapper.DEVELOPMENT nav#app-nav {
    background-color: red;
}
div#app-wrapper.TEST nav#app-nav {
    background-color: green;
}
div#app-wrapper.UNKNOWN nav#app-nav {
    background-color: blue;
}

/** PIack out drag and drop targets clearly and consistnelty */
 .dragtarget {
     margin: 1ex;
     padding: 2ex;
     background-color: #e0e0e0;
     border: 2px solid grey;
 }


/** A 'paler grey' sort of style for DPL table stuff.  This should, hopefully, get pushed back up into the main DPL.  */

table.table-pale-grey th {
    background-color: #d6d6d6;
    color: #202024;
}

table.table-pale-grey thead th {
    border-bottom: 1px solid black;
    padding: 5px;
}

table.table-pale-grey th a {
    color: #00539b;
    text-decoration: underline;
}

.dt-bootstrap table.table-pale-grey thead .sorting {
    background-image: url('../../images/sort_both.png');
}
.dt-bootstrap table.table-pale-grey thead .sorting_asc {
    background-image: url('../../images/sort_asc.png');
}
.dt-bootstrap table.table-pale-grey thead .sorting_desc {
    background-image: url('../../images/sort_desc.png');
}

/* For vue-good-table */
table.table-pale-grey thead .sorting-asc {
    background-image: url('../../images/sort_asc.png');
    background-position: center right;
    background-repeat: no-repeat;
}
table.table-pale-grey thead .sorting-desc {
    background-image: url('../../images/sort_desc.png');
    background-position: center right;
    background-repeat: no-repeat;
}
div.vgt-global-search {
    background-color: #d6d6d6;
    background-image: none;
}

/* Make the download links not hit the hard right */
div.vgt-global-search__actions {
    padding-right: 1ex;
}

/** Adjustments to DPL to make legacy stuff work.  This should be as surgically precise as possible */

tr a.columnOrder {
    color: white
}

tr a.currentColumnOrder {
    border: 1px white solid;
}

/** Tas uses a centered background image on the td; which can overlap withth eself cert indicator.  So some surgicl CSS to reposition things a bit better. */
table tbody tr td.attendance {
    padding-right: 0;
    vertical-align: middle;
}

/** For the cases where we want to highlight a cell - Double markign cases and so on */
/** Mark these next two as within a TR.  This increases thier score, and
 * so they will override other cases - which is what we want when we use them.
 */
tr td.info {
    background: #bee5eb;
    color: #212529;
}

tr td.hilight {
    background: #ccc;
    color: #212529;
}

tr td.warn {
    background: #f5c6cb;
    color: #212529;
}

tr td.alert {
    background: #f5767b;
    color: #212529;
}

/** Disabilites: highlight by providoer typer */


ul.disabilities li {
    margin-top: 0.5ex;
    margin-bottom: 0.5ex;
}

ul.disabilities :first-child {
    margin-top: 0ex;
}

ul.disabilities li.sss {
}
ul.disabilities li.sch {
    border-left: 5px solid #bf5909;
    padding-left: 1rem;
}
ul.disabilities li.stu {

}
ul.disabilities li.exam {

}

/** Stop lists from being overpadded */
table ul.vertical {
    margin: 0;
    padding: 0;
}


/* Allow pages to control this directly; otherwise it's a right mess */
form input[type="file"] {
    display: inline-block;
}

/** Breadcrumb bar, so it stands out.  Toying with this, off at the moment! */
#breadcrumb-bar {
    border-bottom: 1px solid rgba(0,0,0,0.2);
    /*box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2); */
    width: 100%;
}

/** Card layout, primarily for the modules page. Should probably drift towards the Boostrap cards, but, eh, when's there time for that... */
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    margin: 15px 15px 10px 15px;
    border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
.card.card-no-margin {
    margin: 0;
}

.card-content {
    padding: 7px 16px;
    webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

/** To get the resources table to render right on the Module Overview page */
.columns > .col-2 {
    flex: 2;
    margin: 15px;
}

.card-title {
    padding: 20px;
    font-size: 14pt;
}

.card-footer {
    padding: 20px;
    background-color: #F6F7F7;
}


.card-title .card-subtitle {
    font-size: 12.5pt
}

.card-content .module_resources a {
    text-decoration: none;
}

.card-primary {
    border-color: #b4b4bc;
}

.card-primary a {
    color: #004077;
}

.card-info a {
    color: #1761a4;
}

.card-title {
    background-color: #f0f0f2;
    border-color: rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.card-info {
    border-color: #1b74c3;
}

/** And other layout for the modules page */


section.semesters {
    display: flex;
    flex-wrap: wrap;
}

section.semesters div.semester_block {
    margin-bottom: 1ex;
}

ul.module_resources {
    margin-top: 0.5ex;
    padding-left: 0;
    margin-bottom: 0;
}

ul.module_resources li {
    list-style: none;
}

li.resource {
    font-size: large;
    min-height: 32px;
}

li.resource span.admin {
    font-size: medium;
}

.semester_heading {
    font-size: x-large;
    font-weight: bold;
    margin: 3px;
}

/** Used in many Flex rendered tables */
ul.horizontal {
    list-style: none;
    margin: 0;
    padding: 0;
}

/** To get code to display well */
.ecmaScript {
    border: 2px solid #ddd;
    padding: .8em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    margin-top: 1ex;
    width: 90%;
    clear: both;
    background-color: #eeeeee;
    white-space: pre;
}

/** Working around a DPL thing.. */
.tabs-container .tab-pane ul.horizontal {
    padding: 0;
}

ul.horizontal li {
    float: left;
    margin-left: 0.5ex;
    margin-right: 0.5ex;
}

/* Repeat the definitions, to allow inner lists to bind tighter, otherwise we can't nest verticals in horizintals, etc */
ul ul.horizontal {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul ul.horizontal li {
    float: left;
    margin-left: 0.5ex;
    margin-right: 0.5ex;
}

/** DPL defined this to be white text - which doens't work with the 50 shades of grey interpretation of 'style' */

button > span.label {
    color: black;
}

div pre.technical {
    background: white;
    color: black;
    border: 1px solid black;
}

/* mostly for the tools buttons on the Module Overview page, but in theory generally useful */
li.disabled {
    text-decoration: line-through;
}

ul.additional-tools {
    list-style: none;
    margin: 0 0 0.5rem 0;
    padding: 0 0 0 1rem;
}

/* For the Exam Tool, reporting of mark status.  Should probably pull this into an exam specific file? */

td.NOT_MARKED { /* Ignore, show as default */

}

td.MARKED { /* Ignore, show as default */

}

td.AGREE_AGAINST { /*  */
    background: #09f;

}
td.AGREE_AGAINST input { /*  */
    border: 3px solid black;
}

td.AGREE_WITH { /*  */
    background: #09f;
}

td.TIE_AGAINST { /*  */
    background: #ff0;
}
td.TIE_AGAINST input { /*  */
    border: 3px solid black;
}

td.TIE_WITH { /*  */
    background: #ff0;
}

td.NOT_AGREED { /*  */
    background: #f00;
}
td.NOT_AGREED input { /*  */
    border: 3px solid black;
}

.div-adjust-width {
    max-width: 900px;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) { }
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) { }
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .div-adjust-width {
        max-width: 1100px;
    }
}
/* when other elements are large, applying max-width will make table easier to use */
@media (min-width: 1200px) and (max-width: 1300px){
    .div-adjust-width {
        max-width: 1300px;
    }
}

/* when other elements are large, applying max-width will make table easier to use */
@media (min-width: 1300px) {
    .div-adjust-width {
        max-width: 1300px;
    }
}

.view_option {
    margin-bottom: 1em;
}

.page-header--smaller-top-margin {
    margin-top: 20px;
}

fieldset legend .fa {
    font-size: smaller;
    margin-right: 1vw;
}
fieldset.with-well {
    margin-bottom: 1rem;
}
fieldset.with-well legend {
    margin-bottom: 0;
}
fieldset.with-well .subheading {
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-top: none;
    border-radius: 0;
    padding: 8px 19px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
fieldset.with-well .subheading .totals {
    margin-left: auto;
}
fieldset.with-well .well {
    border-top: none;
    margin-bottom: 0;
    background: #fff;
    box-shadow: none;
}
fieldset.with-well .footer {
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-top: none;
    border-radius: 0;
    padding: 8px 19px;
    display: flex;
}
fieldset.sub-fieldset {
    padding-left: 30px;
}
.collapsible .collapse-trigger {
    position: relative;
    cursor: pointer;
}
.collapsible .collapse-trigger:after {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    content: "\f078";
    height: 28px;
    width: 28px;
    font-family: 'standicon' !important;
    color: #333;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}
.collapsible .collapse-trigger[aria-expanded=true]:after {
    transform: rotate(180deg);
}


.btn-group-spaced .btn + .btn {
    margin-left: 0.75em;
}

/* form elements */
.vertical-form input[type=text], .vertical-form select {
    margin-left: 0.5em
}

.vertical-form input[type=submit]:hover {
    background-color: #45a049;
}

.vertical-form {
    background-color: #f0f0f0;
    padding: 0.75em;
    margin-top: 10px;
    margin-left: 0.75em;
    margin-right: 0.25em;
}

.vertical-form .form-title{
    font-weight: bold;
    font-size: 1.15em;
    margin-bottom: 20px;
}

/*Action list component*/

.action-list-group {
    margin-left: 0.75em;
    border: 1px solid #ccc;
}

.action-list {
    padding-top: 0.25em;
}

.action-list .list-title {
    font-weight:bold;
    padding: 8px;
    font-size: 1.15rem;
    color: #373737;
    border-bottom:1.5px solid #bdbdbd;
}
.action-list .list-item {
    padding: 8px;
    cursor: pointer;
}

.action-list .list-tiles {
    line-height: 30px;
}

.action-list .list-action{
    float:right;
}

/*Action list component*/
