div.mcpagewrapper {
    max-width: 800px;
    margin: auto;
    font-family: sans-serif;
}

div.mcheader {
    background-color: #ddf;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #003;
    border-radius: 2px;
}

h1.mcheading {
    margin: 0;
    font-weight: normal;
    font-size: x-large;
}

div.mctopstrip {
    position: relative;
    color: #ddf;
    background-color: #003;
    margin: -10px -14px 10px -14px;
    font-variant: small-caps;
    font-weight: bold;
    font-size: small;
    padding: 6px 12px;
    height: 18px;
}

div.mctopstrip_left {
    position: absolute;
    left: 10px;
    display: inline-block;
    text-align: left;
}

div.mctopstrip_right {
    position: absolute;
    right: 10px;
    display: inline-block;
    text-align: left;
}

div.mctopstrip a {
    color: #ddf;
    text-decoration: none;
}


div.mccontent {
    padding: 5px 10px;
}

div.mctrainee_row {
    width: 60%;
    margin: 20px auto;
    text-align: right;
}

a.mcsmallbutton {
    display: inline-block;
    margin: 0px 5px;
    padding: 12px;
    width: 20%;
    border-radius: 10px;
    border: 1px solid #003;
    background-color: #ddf;
    color: #003;
    text-decoration: none;
    text-align: center;
}

a.mcbigbutton {
    display: block;
    margin: 20px auto;
    padding: 12px;
    width: 60%;
    border-radius: 10px;
    border: 1px solid #003;
    background-color: #ddf;
    color: #003;
    text-decoration: none;
    text-align: center;
}

a.mcdelproclink {
    display: block;
    margin: 20px auto;
    padding: 12px;
    width: 60%;
    border-radius: 10px;
    border: 1px solid #300;
    background-color: #fdd;
    color: #300;
    text-decoration: none;
    text-align: center;
}

a.mcdelprocconflink {
    display: block;
    margin: 20px auto;
    padding: 12px;
    width: 60%;
    border-radius: 10px;
    border: 1px solid #300;
    background-color: #700;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

input[type="submit"].mcbigbutton {
    box-sizing: content-box;
    display: block;
    margin: 20px auto;
    padding: 12px;
    width: 60%;
    border-radius: 10px;
    border: 1px solid #030;
    background-color: #dfd;
    color: #030;
    text-decoration: none;
    text-align: center;
    line-height: 22px;
}

.mctitlefont {
    font-variant: small-caps;
}

div.mcpagewrapper ul.messages {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

div.mcpagewrapper ul.messages li {
    padding: 8px 10px;
    background-color: #ddd;
    margin: 10px;
    border-radius: 8px;
}

div.mcpagewrapper ul.messages li.debug {
    background-color: #fdb;
    border: 1px solid #321;
    color: #321;
}

div.mcpagewrapper ul.messages li.info {
    background-color: #ddf;
    border: 1px solid #003;
    color: #003;
}

div.mcpagewrapper ul.messages li.success {
    background-color: #dfd;
    border: 1px solid #030;
    color: #030;
}

div.mcpagewrapper ul.messages li.warning {
    background-color: #ffd;
    border: 1px solid #220;
    color: #220;
}

div.mcpagewrapper ul.messages li.error {
    background-color: #fdd;
    border: 1px solid #300;
    color: #300;
}


.mccontent h2 {
    text-align: center;
}


.mccontent form p>label {
    width: 30%;
    height: 100%;
    vertical-align: top;
    display: inline-block;
    text-align: right;
    position: relative;
    left: -32%;
}

.mccontent form p>span.helptext {
    vertical-align: top;
    margin-left: 5px;
}

.mccontent form p>label + input,
.mccontent form p>label + select,
.mccontent form p>label + textarea {
    margin-left: -30%;
}

.mccontent form p>label + textarea {
    height: 64px;
}

.mccontent form p, .mccontent form ul
{
    margin-left: 30%;
}

.mccontent form ul:not(.errorlist) {
    list-style-type: none;
    padding-left: 5px;
    margin-top: -38px;
}

.mccontent form p>select {
    width: 90px;
    max-width: 18%;
}

.mccontent form p>select:first-of-type {
    width: 120px;
    max-width: 24%;
}


/* Make selects wide iff only select there (exclude date select) */
.mccontent form label + input[type="text"],
.mccontent form label + input[type="email"],
.mccontent form p>label + select:only-of-type {
    width: 300px;
    max-width: 60%;
}

.mccontent form ul.errorlist {
    list-style-type: none;
    padding-left: 6px;
    margin-bottom: -12px;
    color: #a00;
    font-size: small;
    font-style: italic;
}

.mccontent form input[type="checkbox"] {
    margin-right: 5px;
}


div.mcloggedprocedure {
    width: 425px;
    margin: 10px auto;
    position: relative;
    padding: 10px 74px;
    background: linear-gradient(0deg, rgba(255,255,255,0  )   0%,
                                      rgba(238,238,255,0.5)  96%,
                                      rgba(255,255,255,0  ) 100%);
}

div.mcloggedprocedure span.mcdate {
    display: none;
    color: #666;
    position: absolute;
    top: 13px;
    left: 10px;
}

div.mcloggedprocedure span.mcdate.mcshowdate {
    display: inline;
}

div.mcloggedprocedure span.mcproctype {
    font-size: large;
}

div.mcprocdetails {
    font-size: 15px;
}

span.mcoption {
    font-weight: 100;
    margin-right: 2px;
}

span.mcoption ~ span.mcoption::before {
    content: "\a";
    white-space: pre-line;
}

span.mcchoice +span.mcchoice::before {
    content: " / ";
}

a.mceditproclink {
    display: block;
    position: absolute;
    right: 12px;
    top: 12px;
    color: #000;
    text-decoration: none;
    border: 1px solid #003;
    background-color: #eef;
    padding: 5px 10px;
    border-radius: 10px;
}

p.mcproctypeexpl {
    text-align: center;
}

div.loglimit {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

div.report_category {
    font-weight: bold;
    margin: 20px 10px 5px;
}

div.report_proctype {
    margin: 5px 5px 5px 30px;
}

span.report_number {
    width: 40px;
    display: inline-block;
    text-align: right;
    padding-right: 6px;
}

div.report_proctype a {
    color: #333;
}

@media screen and (max-width: 600px) {

    .mccontent form p>label {
        width: 100%;
        height: 100%;
        vertical-align: top;
        display: block;
        text-align: left;
        position: relative;
        left: -24px;
    }

    .mccontent form p>span.helptext {
        vertical-align: top;
        margin-left: 5px;
        font-weight: lighter;
        position: absolute;
        right: 0;
        top: 0;
    }

    .mccontent form p>#id_is_trainee + span.helptext,
    .mccontent form p>#id_is_supervisor + span.helptext {
        top: 23px;
        left: 18px;
        text-align: left;
    }

    .mccontent form p>label + input,
    .mccontent form p>label + select,
    .mccontent form p>label + textarea {
        margin-left: 0;
    }

    .mccontent form p>label + textarea {
        height: 64px;
        width: 90%
    }

    .mccontent form p, .mccontent form ul
    {
        position: relative;
        margin-left: 24px;
    }

    .mccontent form ul:not(.errorlist) {
        margin-top: -15px;
    }

    .mccontent form p>select {
        width: 29%;
        max-width: 29%;
    }

    .mccontent form p>select:first-of-type {
        width: 40%;
        max-width: 40%;
    }
    
    /* Make selects wide iff only select there (exclude date select) */
    .mccontent form label + input[type="text"],
    .mccontent form label + input[type="email"],
    .mccontent form p>label + select:only-of-type {
        width: 100%;
        max-width: 100%;
    }

    .mccontent form ul.errorlist {
        list-style-type: none;
        padding-left: 6px;
        margin-bottom: -12px;
        color: #a00;
        font-size: small;
        font-style: italic;
    }

    div.mctrainee_row {
        width: 100%;
    }
    
    div.mctrainee_row span.trainee_name {
        display: inline-block;
        width: 30%;
        text-align: center;
        vertical-align: middle;
    }
    
    a.mcbigbutton,
    a.mcdelproclink,
    a.mcdelprocconflink,
    input[type="submit"].mcbigbutton {
        width: 90%;
    }
    
    a.mcsmallbutton {
        width: 25%;
        padding: 12px 0;
    }

    div.mcloggedprocedure {
        width: unset;
        min-height: 50px;
        margin: 10px auto;
        padding: 5px 5px 5px 68px;
    }

    div.mcloggedprocedure span.mcdate {
        display: inline;
        top: 7px;
        left: 5px;
        min-width: 48px;
        text-align: center;
    }

    a.mceditproclink {
        left: 5px;
        top: 34px;
        width: 28px;
    }


}
