:root {
	--action-link-color: #800;
}

#title {
	background-color: #880000;
}

#site-admin-menu a {
	color: #880000;
}

.content.box {
	min-height: 200px;
}

#body .content.box {
	overflow-x: auto;
}

.box.no-print {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	column-gap: 10px;
}

table.class-chooser {
	width: 100%;
}

table.class-chooser td {
	vertical-align: top;
}

table.class-chooser th {
	text-align: right;
}

table.class-choosers th input {
	border: none;
	padding: 2px 5px;
	border-bottom: 1px solid #ccc;
}

table.class-chooser td div.classroom,
table.class-chooser td div.instructor,
table.class-chooser td div.books-link {
	font-size: 12px;
}

/**
 * Single line inputs
 */
input.kit-kat {
	border-top: none;
	border-left: none;
	border-right: none;
	border-bottom-width: 1px;
	width: auto;
	outline: none;
}

input.kit-kat {
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	outline: none;
	padding: 3px 0px 3px 3px;
	margin: 5px 1px 3px 0px;
	border: 1px solid #dddddd;
	border-top: none;
	border-left: none;
	border-right: none;
}

input.kit-kat:focus {
	box-shadow: 0 2px 2px -2px rgba(81, 203, 238, 1);
	padding: 3px 0px 3px 3px;
	border: 1px solid rgba(81, 203, 238, 1);
	outline: none;
	outline-color: transparent;
	margin: 5px 1px 3px 0px;
	border-top: none;
	border-left: none;
	border-right: none;
}

.action-link {
	background-color: var(--action-link-color);
}

table.kitkat {
	border-collapse: separate;
}

table.kitkat td,
table.kitkat th {
	margin: 0;
	padding: 3px 5px;
	min-width: 60px;
	white-space: nowrap;
	border: 1px solid #aaa;
	border-left-width: 0;
	border-bottom-width: 0;
	font-size: 14px;
	-khtml-user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

table.kitkat tr th:first-child {
	border-top-color: transparent;
}

table.kitkat tr:last-child td {
	border-bottom-width: 1px;
}

table.kitkat td.entry {
	cursor: pointer;
}

table.kitkat .headcol {
	position: absolute;
	width: 100px;
	left: 255px;
	top: auto;
	text-align: left;
}

table.kitkat tr:hover td {
	background-color: lightblue;
}

table.kitkat td {
	text-align: center;
}

table.kitkat tr:hover td input.problem-score {
	background-color: lightblue;
}

table.kitkat th {
	background-color: #e2e2e2;
}

#timesheet-manager {
	margin: 20px 0;
}

.grader-hours-container {
	margin-bottom: 20px;
}

.grader-row-delete-container {
	position: relative;
}

.grader-row-delete {
	font-size: 16px;
	color: #6e6e6e;
	cursor: pointer;
	position: absolute;
	top: 4px;
	right: 7px;
}

.grader-row-delete:hover {
	color: #444;
}

.add-grader-row {
	margin-top: 20px;
	margin-left: 20px;
}

.add-grader-row .add-grader-instructions {
	width: 90%;
}

.add-grader-row .add-grader-modal-field {
	padding: 8px 0;
}

.add-grader-row .add-grader-modal-field > div:first-child {
	width: 35%;
}

.add-grader-row .add-grader-modal-field > div:first-child label {
	font-weight: bold;
	display: inline-block;
	max-width: 92%;
}

.add-grader-row .add-grader-modal-field input {
	width: 30%;
}

.add-grader-row .add-grader-button {
	margin-top: 25px;
}

.writing-title-info-icon {
	align-items: baseline;
	display: flex;
	padding-top: 16px;
}

.info-icon {
	color: #20458c;
	padding: 4px;
}

/* info icon tooltip popup */
.info-tooltip-box {
	/* general styling */
	background-color: #e1e1e1;
	border-color: #000000;
	border-width: 2px;
	border-radius: 6px;
	border-style: solid;

	/* sizing and positioning */
	display: inline-block;
	height: fit-content;
	margin: 8px;
	padding: 16px;
	position: absolute;
	width: 40%;
	z-index: 1;

	/* visiblity animation */
	opacity: 0;
	transition: visibility 0s linear 300ms, opacity 400ms;
	visibility: hidden;
}

/* additional styling for rubric flyout tooltip */
.flyout-rubric-tooltip {
	position: fixed;
	top: 30%;
	right: 32%;
	width: 30%;
}

.show-flyout-rubric-tooltip {
	visibility: visible;
	opacity: 1;
	transition: visibility 0s linear 0s, opacity 400ms;
}

.info-icon:hover .info-tooltip-box {
	visibility: visible;
	opacity: 1;
	transition: visibility 0s linear 0s, opacity 400ms;
}

.info-tooltip-box-text {
	color: #000000;
	font-family: sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	position: relative;
}

.writing-grader-top-bar {
	margin-bottom: 10px;
}

.writing-grader-top-bar-inner-layout {
	width: 100%;
	display: flex;
	justify-content: space-between;
	margin-top: 5px;
}

.writing-grader-instructions {
	display: none;
	padding: 7px 10px;
	margin-bottom: 10px;
	background: #fed;
}

.writing-grader-instructions-title {
	display: inline-block;
	cursor: pointer;
	margin-bottom: 16px !important;
}

.writing-rubric-flyout-container {
	/* make resizeable from the bottom left corner */
	resize: both;
	direction: rtl;

	/* positioning */
	position: fixed;
	right: 16px;
	top: 16px;
	z-index: 1;

	/* styling */
	background-color: white;
	border-style: solid;
	padding: 32px;
	box-shadow: 0px 0px 4px 1px black;

	/* sizing */
	overflow-y: auto;
	width: 30%;
	max-height: 90%;
	display: none;
}

.writing-rubric-flyout {
	direction: ltr;
}

#grade-student-submission .writing-rubric-flyout {
	padding: 32px;
}

.flyout-button-container {
	text-align: right;
	margin-bottom: 16px;
	float: right;
}

.flyout-button {
	color: #22449d;
	cursor: pointer;
}

.close-flyout-button {
	background-color: white;
	position: fixed;
	right: 32px;
	top: 32px;
}

.writing-grader-score-display {
	width: 100%;
	max-width: 1080px;
	margin-bottom: 10px;
}

.writing-criteria-container {
	color: #22449d;
	float: right;
}

.rubric-last-saved {
	color: green;
	font-size: 12px;
}

.comment-input {
	width: 100%;
	height: 250px;
}

.aops-modal-body {
	overflow-y: scroll;
}

.comment-grid-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 10px;
	grid-auto-rows: minmax(100px, auto);
}

.comment-fmt-wrapper {
	grid-column: 1 / 2;
	grid-row: 1;
}

.comment-input-wrapper {
	grid-column: 2 / 3;
	grid-row: 1;
}

.compile-comment {
	margin-top: 3px !important;
	float: right;
}

.view-uploads {
	padding-right: 5px;
}

.rubric {
	padding: 7.5px 0px;
}

.rubric-category,
.total-score {
	padding: 5px 0px;
}

.rubric-label {
	padding: 2.5px 0px;
}

.save-rubric {
	margin: 5px 0px;
}

.writing-checkbox {
	float: left;
	width: 18px;
	height: 18px;
}

.writing-checkbox-header {
	margin: 2px !important;
}

.writing-checkbox-content {
	margin-left: 2px !important;
}

.writing-checkbox-text {
	margin-left: 16px;
	padding: 3px 10px;
}

.writing-draft-dashboard {
	width: 1150px !important;
}

.draft-dashboard-col {
	width: auto;
	padding: 3px 10px;
}

.draft-dashboard-col-feedback {
	width: 120px;
}

textarea#comments {
	width: 100%;
	height: 200px;
	resize: vertical;
}

.submitted-comment > div {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-top: 1em;
	margin-bottom: 1em;
}

.submitted-comment > div > .comment-text {
	background-color: lightgrey;
	padding: 0.5em;
	width: 100%;
	margin-bottom: 0.25em;
}

.submitted-comment > div > .timestamp {
	font-style: italic;
}

.comment-slides > a {
	display: block;
}

#lesson-rating {
	max-width: 600px;
	margin-bottom: 2em;
}

.ratings {
	display: grid;
	grid-template-columns: auto repeat(5, 1fr);
	grid-auto-rows: 1fr;
	grid-row-gap: 1em;
	grid-column-gap: 0.5em;
	margin-bottom: 1em;
}

.ratings * {
	padding-top: 0.75em;
	padding-bottom: 0.5em;
}

.ratings .option-div {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	justify-content: start;
	text-align: center;
	height: 100%;
	padding-left: 0.5em;
	padding-right: 0.5em;
}

.ratings .option-div:hover {
	background-color: #eee;
}

.ratings .option-div input[type="radio"] {
	transform: scale(1.5);
}

.ratings .subject {
	font-weight: bold;
}

.ratings .additional-comments {
	display: flex;
	flex-direction: column;
}

.additional-comments textarea {
	width: 100%;
	resize: vertical;
	min-height: 80px;
}

.lesson-rating-submit {
	margin: 2em auto;
	display: block;
}

.rating-not-ready > * {
	display: inline;
}

.rating-not-ready > h3 {
	color: #999;
}

.rating-not-ready > small {
	font-style: italic;
}

.action-link.feedback-todo {
	background-color: var(--action-link-color);
	color: white;
}

.need-feedback {
	background-color: #e8c5c4;
	padding: 1em;
}

.need-feedback > ul > li > a {
	font-weight: bold;
}

.lesson-rating-container {
	margin-bottom: 1em;
}

.lesson-rating-header {
	background: #22449d;
	color: white;
	padding: 0.5em;
	text-align: center;
}

.lesson-rating-table > table {
	font-size: 0.9em;
	display: grid;
	grid-template-columns:
		minmax(24ch, 1fr)
		minmax(50px, 4fr)
		repeat(4, minmax(50px, 1fr))
		minmax(16ch, 1fr);
}

.lesson-rating-table > table thead,
.lesson-rating-table > table tbody,
.lesson-rating-table > table tr {
	display: contents;
}

.lesson-rating-table > table > thead > tr > th {
	border: inherit;
	font-weight: inherit;
	text-align: left;
	border-bottom: #333 2px solid;
	padding: 0.5em;
}

.lesson-rating-table > table > th.help {
	cursor: help;
}

.lesson-rating-table tbody td {
	border-bottom: #999 1px solid;
	padding: 0.5em;
}

.lesson-rating-table tbody tr:nth-child(2) td {
	background: #eee;
}

.lesson-rating-table tbody tr:not(:nth-child(2)):hover td {
	background: #f3f3f3;
}

.lesson-rating-table tbody tr:nth-child(2):hover td {
	background: #e2e2e2;
}

.span-2 {
	grid-column: span 2;
}

.align-right {
	text-align: right;
}

.text-block {
	white-space: pre-line;
}

.lesson-rating-table > table > thead > tr > th.align-right {
	text-align: right;
}

.color-keys-container {
	display: flex;
}

.color-key {
	display: flex;
	align-items: center;
}

.color-keys-container > *:not(:last-child) {
	margin-right: 0.5em;
}

.blob {
	display: inline-block;
	height: 1em;
	width: 1em;
	margin-right: 0.25em;
}

.blob.great,
td.great,
th.great {
	background: #a4c2f4 !important;
}

.blob.good,
td.good,
th.good {
	background: #b7d7a8 !important;
}

.blob.ok,
td.ok,
th.ok {
	background: #ffe597 !important;
}

.blob.orange,
td.orange,
th.orange {
	background: #f9cb9c !important;
}

.blob.bad,
td.bad,
th.bad {
	background: #e99a99 !important;
}

.panic-btn {
	background-color: red;
}

.panic-btn:hover {
	background-color: darkred;
}

.delete-grader-score {
	cursor: pointer;
	float: right;
}

.not-allowed {
	cursor: not-allowed !important;
}

.lock-changes {
	display: none;
}

.contest-locked {
	text-align: center;
	margin-bottom: inherit;
}

.submission-upload-pdf-embed {
	margin-top: 10px;
	width: 100%;
	height: 1000px;
}

#filter-select-project-num {
	z-index: 1;
	overflow: auto;
}

#filter-select-project-num .dropdown-option {
	padding: 5px 10px;
	cursor: pointer;
}

#filter-select-project-num .dropdown-option::before {
	content: "✖️ ";
}

#filter-select-project-num .dropdown-option:checked::before {
	content: "✔️ ";
}

#feedback-dashboard-filters {
	display: flex;
	margin-bottom: 20px;
}

.feedback-dashboard-filter {
	margin: 0px 1px;
}

.feedback-dashboard-filter-column {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.feedback-dashboard-filter-row {
	display: flex;
	flex-direction: row;
	gap: 8px;
	align-items: center;
}

.feedback-dashboard-filter-button {
	width: fit-content;
}

.writing-project-flag-icon {
	color: green;
	float: right;
	padding: 3px;
}

.writing-project-flag-icon:hover {
	background-color: white;
}

.claimed {
	opacity: 0.5;
}

.claim-sub-button {
	margin-top: 1px;
	margin-bottom: 1px;
}

.sub-requests-batch-cue {
	font-size: 0.9em;
	color: #880000;
}
.sub-requests-batch-cell {
	vertical-align: top;
}
.sub-requests-batch-line {
	display: block;
	line-height: 1.5;
}
.sub-requests-batch-line + .sub-requests-batch-line {
	margin-top: 2px;
}

.substitute-requested {
	font-style: italic;
	color: #cc6600;
}

/* ==== Dashboard cell note functionality ==== */
.dashboard-cell {
	position: relative;
}

.note-indicator {
	color: #666;
	font-style: italic;
	display: block;
	word-wrap: break-word;
	line-height: 1.2;
	max-width: 200px;
}

/* Edit note container - hidden by default */
span.edit-note {
	opacity: 0;
	transition: opacity 0.2s ease;
	margin-left: 5px;
	cursor: pointer;
	color: #880000;
}

/* Pencil icon */
span.edit-note:before {
	font-family: AoPS;
	content: "L";
	margin-right: 3px;
}

/* Text label */
span.edit-note-text {
	font-size: 11px;
	font-weight: normal;
}

/* Show entire edit note element on cell hover */
.dashboard-cell:hover .edit-note {
	opacity: 1;
}

.dashboard-note-textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}
