.path-mod-attendance .attbtn {
    border: 1px solid #aaa;
    border-radius: 5px;
    margin: 2px;
    padding: 5px;
    display: inline-block;
}

.path-mod-attendance .attcurbtn {
    margin-left: 2px;
    margin-right: 2px;
    padding: 5px;
}

.path-mod-attendance .attfiltercontrols {
    margin-bottom: 10px;
}

.path-mod-attendance .attfiltercontrols #currentdate {
    display: inline;
}

.path-mod-attendance .attwidth {
    margin: auto;
}

.path-mod-attendance .userwithoutenrol,
.path-mod-attendance .userwithoutenrol a {
    color: gray;
}

.path-mod-attendance .userwithoutdata,
.path-mod-attendance .userwithoutdata a {
    color: red;
}

.path-mod-attendance .takelist td {
    vertical-align: middle;
}

.path-mod-attendance .takelist .userpicture {
    margin: 0 3px;
    vertical-align: middle;
}

.path-mod-attendance .takegrid input {
    margin: 0 3px 0 6px;
}

.path-mod-attendance .takegrid .fullname {
    font-size: 0.8em;
}

.path-mod-attendance div.allsessionssummary + form#attendancetakeform > div {
    width: 100%;
}

.path-mod-attendance table.controls {
    text-align: center;
    width: 100%;
}

.path-mod-attendance table.controls tr {
    vertical-align: top;
}

.path-mod-attendance table.controls td.right,
.path-mod-attendance table.controls td.left {
    padding: 4px;
}

.path-mod-attendance table.controls .right {
    text-align: right;
}
/* for IE7*/
.path-mod-attendance .filtercontrols td {
    padding: 6px;
}

.path-mod-attendance .takecontrols {
    margin: 0 auto 20px auto;
    width: 800px;
}
.path-mod-attendance .takecontrols table {
    margin: 0 auto;
}
.path-mod-attendance .takecontrols .c0 {
    text-align: left;
    width: 500px;
}
.path-mod-attendance .takecontrols .c1 {
    text-align: right;
}

.path-mod-attendance .inline,
.path-mod-attendance .inline form,
.path-mod-attendance .inline div {
    display: inline;
}

.path-mod-attendance table.userinfobox {
    border: 1px solid #eee;
    padding: 0;
}
.path-mod-attendance table.userinfobox td.left {
    background-color: #eee;
    padding: 30px 10px;
}
.path-mod-attendance table.userinfobox .userpicture {
    margin: 0;
}
.path-mod-attendance table.attlist td.c0 {
    text-align: right;
}
.path-mod-attendance table.allsessions tr.grouper td {
    background-color: #eee;
}
.path-mod-attendance table.allsessions td.groupheading {
    font-weight: bold;
}
.path-mod-attendance .allsessionssummary .float-right {
    float: right;
}
.path-mod-attendance .allsessionssummary .float-left {
    float: left;
}

#page-mod-attendance-preferences .generalbox {
    text-align: center;
}

.path-mod-attendance .attsessions_manage_table .action-icon img.smallicon {
    margin-left: 5px;
}
#page-mod-attendance-sessions input[type="checkbox"] {
    margin-right: 2px;
}

.path-mod-attendance .setallstatuses {
    text-align: right;
}

.path-mod-attendance .remarkholder {
    position: relative;
}

.path-mod-attendance .remarkholder .remarkcontent {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 3px 3px 5px #ccc;
    display: none;
    left: 20px;
    padding: 5px;
    position: absolute;
    top: 0;
    width: 150px;
    z-index: 5000;
}

.path-mod-attendance .remarkholder:hover .remarkcontent {
    display: inline-block;
}

.path-mod-attendance .attendancestatus-P {
    color: green;
}

.path-mod-attendance .attendancestatus-E {
    color: #00aee3;
}

.path-mod-attendance .attendancestatus-L {
    color: #f7931e;
}

.path-mod-attendance .attendancestatus-A {
    color: red;
}

.path-mod-attendance .attreport .contrast {
    background-color: #eaeaea;
}

.path-mod-attendance .attreport .center {
    text-align: center;
}

.path-mod-attendance .attreport .left {
    text-align: left;
}

.path-mod-attendance .attreport .bottom {
    vertical-align: bottom;
}

.path-mod-attendance .attreport .nowrap {
    white-space: nowrap;
}

.path-mod-attendance .attreport .narrow {
    width: 1px;
}

.path-mod-attendance .attreport img.userpicture {
    max-width: inherit;
}

.path-mod-attendance .student-password {
    font-size: x-large;
    text-align: center;
}
.path-mod-attendance .ungraded {
    font-size: smaller;
    font-style: italic;
}
#page-mod-attendance-sessions .statusgroup .statusdesc {
    margin-right: 12px;
}

#page-mod-attendance-view .averageattendance {
    font-weight: bold;
}

#page-mod-attendance-preferences .form-control {
    width: inherit;
    display: inherit;
}

@media (max-width: 767px) {
    .path-mod-attendance .remarkscol {
        display: none;
    }

    .path-mod-attendance .statusgroup .form-check-inline {
        display: block;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #page-mod-attendance-view .colatt {
        display: none;
    }

    .path-mod-attendance .attfiltercontrols,
    .path-mod-attendance .attwidth {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .path-mod-attendance .desccol {
        display: none;
    }

    .path-mod-attendance .pointscol {
        display: none;
    }

    .path-mod-attendance .attfiltercontrols #currentdate {
        display: none;
    }

    #page-mod-attendance-view .colsessionscompleted,
    #page-mod-attendance-view .colpointssessionscompleted {
        display: none;
    }
}

#page-mod-attendance-report div[role=main] {
    position: relative;
}

#page-mod-attendance-report .attendancereporttable {
    padding: 0;
}

#page-mod-attendance-report .attendancereporttable .headcol {
    position: sticky;
    width: 200px;
    left: 0;
    vertical-align: top;
    background: white;
    border-top-width: 1px;
}

#page-mod-attendance-report .attendancereporttable .headcol input[type='checkbox'] {
    margin-right: 4px;

}

#page-mod-attendance-report .attendancereporttable tr:first-of-type th,
#page-mod-attendance-manage .attsessions_manage_table tr:first-of-type th,
#page-mod-attendance-preferences #preferencesform tr:first-of-type th,
#page-mod-attendance-index tr:first-of-type th {
    position: sticky;
    top: 0;
    background: white;
}

#page-mod-attendance-report .attendancereporttable tr:nth-of-type(2) th {
    position: sticky;
    top: 3rem;
    background: white;
}

#page-mod-attendance-report .attendancereporttable tr:first-of-type .headcol,
#page-mod-attendance-report .attendancereporttable tr:nth-of-type(2) .headcol {
    z-index: 1;
}

.attendancereporttable img.icon {
    padding-left: 5px;
}
#page-mod-attendance-password #page {
    text-align: center;
}

#page-mod-attendance-password #page #qrcode img {
    display: inline !important; /* stylelint-disable-line declaration-no-important */
    margin: 40px;
}

#page-mod-attendance-password .qrcodevalid,
#page-mod-attendance-password .qrcodeheader {
    font-size: larger;
}

#page-mod-attendance-report .attendancereporttable .table-responsive,
#page-mod-attendance-manage .attsessions_manage_table .table-responsive,
#page-mod-attendance-preferences #preferencesform .table-responsive,
#page-mod-attendance-index .table-responsive {
    overflow-x: initial;
}
#page-mod-attendance-report .attendancereporttable tbody tr,
#page-mod-attendance-manage .attsessions_manage_table tbody tr,
#page-mod-attendance-preferences #preferencesform tbody tr,
#page-mod-attendance-index tbody tr {
    background-color: white;
}
#page-mod-attendance-report .attendancereporttable tbody tr:nth-of-type(odd),
#page-mod-attendance-manage .attsessions_manage_table tbody tr:nth-of-type(odd),
#page-mod-attendance-preferences #preferencesform tbody tr:nth-of-type(odd),
#page-mod-attendance-index tbody tr:nth-of-type(odd) {
    background-color: #f7f7f7;
}

#page-mod-attendance-preferences .form-control.studentavailability,
.form-control.studentavailability {
    display: none;
    margin: 3% auto;
    width: 50%;
    text-align: center;
}
