/* RegWeb: the old RegWeb look (Style/TUSM.css), kept on purpose so students need no retraining.
   Same header bar, captions, column headings, row shading, label/field cells and colours; only cosmetic changes:
   slightly larger text, standards-mode pages, tables that scroll sideways on a phone, tidier spacing.
   Class names are the old ones (Caption, Label, Field, Row, RowGray, PageLogo, PageTitle, ...). */

body {
	margin: 0;
	background: rgb(255,255,255);
	color: rgb(0,0,0);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	cursor: default;
}

a { color: rgb(0,0,238); }
a:visited { color: rgb(85,26,139); }

/* ---- the page header bar (old Page_Header) ---- */
table.PageHeader { width: 100%; border-collapse: separate; border-spacing: 2px; margin: 0; }
td.PageLogo {
	color: rgb(255,255,255);
	background: rgb(51,102,153);
	font-family: "Times New Roman", Times, serif;
	font-size: 19px;
	font-weight: normal;
	text-align: left;
	padding: 5px 8px;
	border: solid 1px rgb(210,210,230);
	white-space: nowrap;
}
td.PageTitle {
	color: rgb(255,255,255);
	background: rgb(51,102,153);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	text-align: left;
	padding: 5px 8px;
	border: solid 1px rgb(210,210,230);
}
td.PageTitle a, td.PageTitle a:visited { color: rgb(255,255,255); }
td.PageFill { background: rgb(51,102,153); border: solid 1px rgb(210,210,230); }
@media (max-width: 640px) {
	td.PageLogo { white-space: normal; font-size: 16px; }
	td.PageFill { display: none; }
}

/* grey menu bar under the header (old visiting pages) */
table.PageMenu { width: 100%; background: rgb(99,99,99); border-collapse: collapse; margin: 0; }
table.PageMenu td { padding: 3px 8px; }
a.MenuBarHoverable, a.MenuBarHoverable:visited {
	color: rgb(255,255,255);
	font-family: Tahoma, Arial, sans-serif;
	font-size: 11px;
	font-weight: bold;
	text-decoration: none;
	padding: 1px 4px;
}
a.MenuBarHoverable:hover { color: rgb(255,255,0); }

/* staff viewing RegWeb as a student (new, staff only) */
.ImpersonationBanner {
	background: #fff3cd;
	border: 2px solid #c0392b;
	padding: 6px 10px;
	margin: 4px 2px;
	font-size: 13px;
}
.ImpersonationBanner a { margin-left: 10px; }

/* the deploy notice staff write in ..\config\notice.txt (new, everyone; src/lib/notice.ts) */
.NoticeBanner {
	background: #fff3cd;
	border: 2px solid #b8860b;
	color: #000;
	padding: 8px 12px;
	margin: 4px 2px;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
}

/* ---- page body ---- */
.Page { padding: 0 8px 24px; }
.Center { text-align: center; }
.Center > table, .Center > .TableScroll { margin-left: auto; margin-right: auto; }
.Center table { text-align: left; }

table { border-width: 0; padding: 0; margin: 0; }
table[align=center] { margin-left: auto; margin-right: auto; }
td { font-family: Arial, Helvetica, sans-serif; font-size: 12px; }

/* wide tables scroll sideways on a small screen instead of shrinking the page */
.TableScroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; display: inline-block; vertical-align: top; }

caption {
	color: rgb(0,0,50);
	background: rgb(171,222,253);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: bold;
	text-align: left;
	padding: 3px 4px;
	border-top: solid 1px rgb(210,210,230);
	border-left: solid 1px rgb(210,210,230);
	border-right: solid 1px rgb(170,170,170);
	border-bottom: solid 1px rgb(170,170,170);
	line-height: 16px;
}

th {
	color: rgb(51,102,153);
	background: rgb(255,255,255);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	text-align: left;
	vertical-align: bottom;
	padding: 3px 3px;
	border-bottom: solid 1px rgb(0,0,0);
}

td.Row, td.row { background: rgb(255,255,255); padding: 3px 3px; vertical-align: top; }
td.RowGray, td.rowgray { background: rgb(235,235,235); padding: 3px 3px; vertical-align: top; }
td.Gray, td.gray { padding: 3px 3px; vertical-align: top; }
td.Hyperlink, td.hyperlink { padding: 3px 3px; white-space: nowrap; }
td.Navigate { background: rgb(171,222,253); text-align: center; padding: 3px; border: outset 1px rgb(255,255,255); }

/* label / field pairs (search forms, course detail) */
td.Label, td.label {
	background: rgb(224,224,239);
	color: rgb(0,64,0);
	font-size: 12px;
	font-weight: normal;
	text-align: right;
	padding: 4px 6px;
	vertical-align: top;
}
td.Field, td.field {
	font-size: 12px;
	font-weight: normal;
	text-align: left;
	padding: 4px 6px;
	border-bottom: solid 1px rgb(220,220,220);
	vertical-align: top;
}
td.Buttons, td.buttons { text-align: center; padding: 8px; }

select, input, button, textarea { font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
select { font-weight: bold; }
input[type=submit], input[type=button], button { font-weight: bold; padding: 2px 10px; }

/* report heading lines (old PrintReportHeader / Report_Open) */
td.PageInfo { font-size: 12px; padding: 1px; }
td.Title1 { font-family: "Times New Roman", Times, serif; font-size: 20px; font-weight: bold; text-align: center; }
td.Title2 { font-family: "Times New Roman", Times, serif; font-size: 16px; font-weight: bold; text-align: center; }

/* messages */
.Error, .error { color: rgb(200,50,50); font-weight: bold; font-size: 15px; text-align: center; }
.GoodMessage { color: rgb(30,140,30); font-weight: bold; font-size: 15px; text-align: center; }
.Note { font-size: 12px; }
/* the release at the foot of every page (src/lib/version.ts); grey with enough contrast to read (5.7:1) */
.Version { font-size: 11px; color: rgb(105,105,105); text-align: center; margin: 10px 0 4px; }
h4 { font-size: 13px; }

/* text staff keep in config_Content */
.Content img { max-width: 100%; height: auto; }

@media print {
	.ImpersonationBanner, .NoticeBanner, table.PageMenu { display: none; }
}

/* which data the PC's development server shows (src/components/page.tsx; never on a deployed server) */
.DataStrip { background: rgb(255,243,205); color: rgb(90,70,0); font-size: 12px; font-weight: bold; padding: 3px 8px; text-align: center; }
.DataStripReal { background: rgb(180,20,20); color: rgb(255,255,255); }
