:root {
	--in : mediumseagreen;
	--out : lightsteelblue;
	--unk : salmon;
	--offcampus : deepskyblue;
	--abs : #d1d5db;
	--sched-abs : #e5e7eb;
}

/* State-based styling for presence lists */
.in li {
    background-color: var(--in);
}
.out li {
    background-color: var(--out);
}
.offcampus li {
    background-color: var(--offcampus);
}
.unk li {
    background-color: var(--unk);
}
.abs li {
    background-color: var(--abs);
    opacity: 0.7;
    font-style: italic;
}
.sched-abs li {
    background-color: var(--sched-abs);
    opacity: 0.7;
    font-style: italic;
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
    text-decoration-skip-ink: none;
    -webkit-text-decoration-skip: none;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/*!
 * Writ v1.0.4
 *
 * Copyright © 2015, Curtis McEnroe <curtis@cmcenroe.me>
 *
 * https://cmcenroe.me/writ/LICENSE (ISC)
 */

/* Fonts, sizes & vertical rhythm */

html {
  font-family: Palatino, Georgia, Lucida Bright, Book Antiqua, serif;
  font-size: 16px;
  line-height: 1.5rem;
}

code, pre, samp, kbd {
  font-family: Consolas, Liberation Mono, Menlo, Courier, monospace;
  font-size: 0.833rem;
}

kbd { font-weight: bold; }
h1, h2, h3, h4, h5, h6, th { font-weight: normal; }

/* Minor third */
h1 { font-size: 2.488em; }
h2 { font-size: 2.074em; }
h3 { font-size: 1.728em; }
h4 { font-size: 1.44em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1em; }
small { font-size: 0.833em; }

h1, h2, h3 { line-height: 3rem; }

p, ul, ol, dl, table, blockquote, pre, h1, h2, h3, h4, h5, h6 {
  margin: 0.5rem 0 0;
}
ul ul, ol ol, ul ol, ol ul { margin: 0; }

hr {
  margin: 0;
  border: none;
  padding: 1.5rem 0 0;
}

/* Accounting for borders */
table {
  line-height: calc(1.5rem - 1px);
  margin-bottom: -1px;
}
pre {
  margin-top: calc(1.5rem - 1px);
  margin-bottom: -1px;
}

/* Colors */

body { color: #222; }
code, pre, samp, kbd { color: #111; }
a, header nav a:visited, a code { color: #00e; }
a:visited, a:visited code { color: #60b; }
mark { color: inherit; }

code, pre, samp, thead, tfoot { background-color: rgba(0, 0, 0, 0.05); }
mark { background-color: #fe0; }

main aside, blockquote, ins { border: solid rgba(0, 0, 0, 0.05); }
pre, code, samp { border: solid rgba(0, 0, 0, 0.1); }
th, td { border: solid #dbdbdb; }

/* Layout */

/*body { margin: 1.5rem 1ch; }*/

body > header { text-align: center; }

main, body > footer {
  display: block; /* Just in case */
  /*max-width: 78ch;*/
  margin: auto;
}

main figure, main aside {
  float: right;
  margin: 1.5rem 0 0 1ch;
}

main aside {
  max-width: 26ch;
  border-width: 0 0 0 0.5ch;
  padding: 0 0 0 0.5ch;
}

/* Copy blocks */

blockquote {
  margin-right: 3ch;
  margin-left: 1.5ch;
  border-width: 0 0 0 0.5ch;
  padding: 0 0 0 1ch;
}

pre {
  border-width: 1px;
  border-radius: 2px;
  padding: 0 0.5ch;
  overflow-x: auto;
}
pre code {
  border: none;
  padding: 0;
  background-color: transparent;
  white-space: inherit;
}

img { max-width: 100%; }

/* Lists */

ul, ol, dd { padding: 0 0 0 3ch; }
dd { margin: 0; }

/*
ul > li { list-style-type: disc; }
li ul > li { list-style-type: circle; }
li li ul > li { list-style-type: square; }

ol > li { list-style-type: decimal; }
li ol > li { list-style-type: lower-roman; }
li li ol > li { list-style-type: lower-alpha; }
*/

nav ul {
  padding: 0;
  list-style-type: none;
}
nav ul li {
  display: inline;
  padding-left: 1ch;
  white-space: nowrap;
}
nav ul li:first-child { padding-left: 0; }

/* Tables */

table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}

th, td {
  border-width: 1px;
  padding: 0 0.5ch;
}

/* Copy inline */

a { text-decoration: none; }

sup, sub {
  font-size: 0.75em;
  line-height: 1em;
}

ins {
  border-width: 1px;
  padding: 1px;
  text-decoration: none;
}

mark {
  padding: 1px;
}

code, samp {
  border-width: 1px;
  border-radius: 2px;
  padding: 0.1em 0.2em;
  white-space: nowrap;
}
img {
    max-width:100%;
    width:100%;
}

ol {
    list-style-type: decimal;
}

* {
    box-sizing: border-box; 
}

h3 {
   line-height: 2rem;
   margin-bottom: 0.5rem; 
}

p~h3 {
    margin-top: 2rem;
}

.hide {
    display: none;
}

strong {
    font-weight:bold;
}

em {
    font-style:italic;
}
del {
    text-decoration: line-through;
    background-color: #fbb;
    color: #555;
}

ins {
    text-decoration: none;
    background-color: #d4fcbc;
}
.inner {
    background-color: whitesmoke;
    padding : 14px;
    border-radius: 19px;
}

.inner h2 {
        font-size: 1.728em;
}


.inner li {
    margin-bottom : 10px;
    margin-left : 0px;
}

/* .inner placeholder removed */

header {
    position: fixed;

top: 0;
    background: #bce090;
    width: 100%;
}

main {
    margin-top:52px;
    margin-bottom:19px;
    margin-left: 10px;
}

main > h2 {
    display: flex;
    justify-content:center;
}

.outer {
    width: 100%;
}

.inner {
    min-width: 600px;
    max-width: 1000px;
    width: 80%;
    margin-left:auto;
    margin-right:auto;
}

@media (max-width: 670px) {
    
    .inner {
        min-width:50px;
        -webkit-box-orient:vertical;
        -webkit-box-direction:normal;
            -ms-flex-direction:column;
                flex-direction:column;
        width:auto;
        margin-left:10px;
        margin-right:10px;
    }

    /*undo*/
    article {
        margin-right:initial;
    }

    form textarea {
        width:90vw;
    }
    
    main {
        margin-top:30px;
    }

}

@media (max-width: 900px) {
   .inner {
        width: auto;
        margin-left: 20px;
        margin-right: 20px;
   }
}

h4 {
    margin-bottom: 9px;
    margin-top: 9px;
}

input, button, textarea, select {
    font-family: inherit; 
    font-size: inherit;
    text-align: inherit;
}

html {
    font-size:22px;
}

.input {
    margin-bottom:10px;
}

ul.multi {
    /* display:inline-flex; */
    margin-top:0;
    margin-bottom:0;
}

ul.multi li {
    margin-right:5px;
    /*border: solid black 1px;*/
    padding-left:2px;
    padding-right:2px;
}

label span {
    display:inline-block;
    min-width: 150px;
    margin-right: 10px;
    margin-left:10px;
}

button {
    border-radius: 10px;
    height: 1.5em;
    background-color: #bce090;
    box-shadow: 3px 3px #90b3e045;
    border-style: solid;
    border-color: black;
}

button.x, button.plus {
    margin-left:1px;
    margin-right:1px;
}

.clear {
    clear:both;
}

.hide {
    display:none;
}

ul {
    list-style-type : none;
    padding-left: 2px;
}


dialog {
  padding: 0;
  border: 0;
  border-radius: 0.6rem;
  box-shadow: 0 0 1em black;
}

dialog::backdrop {
  /* make the backdrop a semi-transparent black */
  background-color: rgba(0, 0, 0, 0.4);
}

dialog + .backdrop {
  background-color: rgba(0, 0, 0, 0.4);
}


input {
    width: 12em;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 13.8px;
  cursor: pointer;
  box-shadow: 0.9px 0.9px 6.3px #009968, 0px 0px 0.9px #00b379;
  background:#bce090;
  border-radius: 22.8px;
  border: 0px solid #010101;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border: 5.4px solid #00bc69;
  height: 38px;
  width: 20px;
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  margin-top: -13.45px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background:#bce090;
}
input[type=range]::-moz-range-track {
  height: 13.8px;
  width:100%;
  cursor: pointer;
  box-shadow: 0.9px 0.9px 6.3px #009968, 0px 0px 0.9px #00b379;
  background:#bce090;
  border-radius: 22.8px;
  border: 0px solid #010101;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border: 5.4px solid #00bc69;
  height: 38px;
  width: 10px;
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 13.8px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: rgba(179, 219, 106, 0.72);
  border: 0px solid #010101;
  border-radius: 45.6px;
  box-shadow: 0.9px 0.9px 6.3px #009968, 0px 0px 0.9px #00b379;
}
input[type=range]::-ms-fill-upper {
  background: #bce090;
  border: 0px solid #010101;
  border-radius: 45.6px;
  box-shadow: 0.9px 0.9px 6.3px #009968, 0px 0px 0.9px #00b379;
}
input[type=range]::-ms-thumb {
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border: 5.4px solid #00bc69;
  height: 38px;
  width: 20px;
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
  height: 13.8px;
}
input[type=range]:focus::-ms-fill-lower {
  background:#bce090;
}
input[type=range]:focus::-ms-fill-upper {
  background: #bce090;
}

.range-container:focus-within {
    border: 3px rgb(138, 179, 238) solid;
    border-radius: 4px;
}

.range-container input {
    width:initial;
}


main > h3 {
    text-align: center;
}

input { 
    text-align:left;
}

[x-cloak] { display: none !important; }

extern {
    color: blue;
}

intern {
    color: yellow;
}



nav {
    display: flex;
    justify-content:space-between;
}


/*
ul {
    display: flex;
    margin-left : 1rem;
    margin-right: 1rem;
    margin-top: 0;
    margin-bottom: 0;
    list-style: none;
    justify-content: space-around;
    width: 70%;
}
*/


header {
    height:1.5rem;
    position: fixed;
    top: 0;
    background: #bce090;
    width: 100%;
}

nav > * {
    margin: 2px 5px 2px 5px;
}

nav > a {
    text-decoration: none;
    color: black;
    border: solid black 2px;
    border-radius: 10px; 
    padding:2px;
    padding-bottom:0px;
    height:max-content;
}



#login form {
    display:flex;
    position:relative;
    flex-direction : column;
    background-color: #a4cafe;  /*light blue*/
    padding: 0.5rem;
}

#login > div {
    display: flex;
}

#login > div > span {
    margin-right: 6px;
    align-self:center;
}

#login > div > button {
    background-color: #fce96a; /*yellow*/
}

#login input {
    width: 12em;
}

#login p {
    background-color: #fbd5d5;  /*red*/
    width:12em;
}

#login > div > div {
    display: flex;
    justify-content:space-evenly;
}
.select-list {
    display:flex;
    flex-wrap:wrap;
}

.select-list li {
    margin: 2px;
}

.select-list button {
    background-color: lightblue;
}

button:active {
	outline: solid 3px black;
	outline-offset: -3px;
}

[x-show="msg"]::after {
	content:" \2716";
}

/* Styled textarea for notes and forms */
.styled-textarea {
    width: 50%;
    max-width: 800px;
    min-height: 80px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: inherit;
    resize: vertical;
}

.styled-textarea.short {
    min-height: 60px;
}

@media (max-width: 670px) {
    .styled-textarea {
        width: 100%;
    }
}

/* Attendance table styling */
.attendance-table {
    width: auto;
    margin-top: 0.5rem;
}

.attendance-table th, .attendance-table td {
    text-align: left;
    padding: 4px 12px;
}

.attendance-table th {
    background-color: rgba(0, 0, 0, 0.1);
}

.attendance-table button {
    background-color: lightblue;
}

/* Name column: fits ~2 average names, no wrap, truncate overflow */
.attendance-table td:first-child,
.attendance-table th:first-child {
    width: 14em;
    max-width: 14em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attendance-table td:first-child button {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Date column: fits ~2 dates */
.attendance-table td:nth-child(2),
.attendance-table th:nth-child(2) {
    width: 16em;
    min-width: 16em;
    white-space: nowrap;
}

/* Responsive: notes drop below name/date on small screens */
@media (max-width: 600px) {
    .attendance-table thead {
        display: none;
    }
    
    .attendance-table tr {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid #ccc;
        padding: 8px 0;
    }
    
    .attendance-table td {
        border: none;
    }
    
    .attendance-table td:first-child,
    .attendance-table td:nth-child(2) {
        width: auto;
        max-width: none;
        min-width: auto;
    }
    
    .attendance-table td:nth-child(3) {
        width: 100%;
        padding-top: 4px;
    }
}
