/* Global Styles */
.error {
  color: red;
}

html {
  background-color: #d3cf9f;
}

body {
  text-align: center;
  overflow: hidden;
}

h2 {
  font-size: 14pt;
  font-family: sans-serif;
}

h3 {
  font-size: 12pt;
  font-family: sans-serif;
  padding-bottom: 0;
  margin-bottom: 0;
}

#student_id {
  padding: 0;
  margin: 0;
  font-size: 10pt;
  margin-left: 0.5em;
}

.form_line {
  margin: 0.5em;
}

.no_results {
  margin: 1em;
  font-size: 14pt;
}

/* Rails errors styling */

.fieldWithErrors {
  padding: 2px;
  display: inline;
}

.fieldWithErrors input {
  background-color: #ffaaaa;
  display: inline;
}

.fieldWithErrors select {
  background-color: #ffaaaa;
  display: inline;
}

#errorExplanation {
  width: 400px;
  border: 2px solid red;
  padding: 7px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

#errorExplanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12px;
  margin: -7px;
  background-color: #c00;
  color: #fff;
}

#errorExplanation p {
  color: #333;
  margin-bottom: 0;
  padding: 5px;
}

#errorExplanation ul li {
  font-size: 12px;
  list-style: square;
}

/* Main Layout Styles */

#page {
  width: 962px;
  border-spacing: 0;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

#header {
  text-align: right;
}

#sidebar {
  vertical-align: top;
  width: 10em;
  border: 1px solid black;
  border-right: none;
  padding: 0.5em;
  background-color: white;
  float: left;
}

#sidebar ul {
  list-style: none;
  padding: 0;
}

#sidebar ul.nav a {
  display: block;
  padding: 3px;
  margin-bottom: 2px;

  background-color: #ccc;

  color: #000;
  text-decoration: none;

  font-family: sans-serif;
  font-size: 14px;
}

#sidebar ul.nav li.current > a {
  background-color: #aaa;
  font-weight: bold;
}

#sidebar ul.nav a:hover {
  background-color: #999;
}

#sidebar ul.nav ul a {
  margin-left: 15px;
}

#menu {
  font-size: 14pt;
}

#term_form {
  text-align: center;
}

#term_range {
  font-size: 9pt;
}

#content {
  float: left;
  padding: 10px;
  vertical-align: top;
  background-color: white;
  border: 1px solid black;
  margin-right: 7px;
  min-height: 401px;
  width: 746px;
}

#auth_page {
  width: 50em;
  margin-left: auto;
  margin-right: auto;
}

#auth_header {
  margin: 0;
}

#auth_content {
  background-color: white;
  width: 746px;
  margin: 0;
  margin-left: 15px;
  min-height: 100px;
  padding: 10px;
  border: 1px solid black;
}

#login_form fieldset {
  width: 30em;
  margin-left: auto;
  margin-right: auto;
}

#login_form input,
#login_form p {
  font-size: 24pt;
  padding: 0;
  margin: 5px;
}

#login_form p {
  text-align: left;
}

/* Check controller Styles */

#checks_list {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  padding: 20px;
}

#checks_list .more_info_column {
  width: 10px;
  text-align: center;
}

#checks_list .night_of_column {
  width: 5em;
  text-align: center;
}

#checks_list .time_column {
  width: 5em;
  text-align: center;
}

#checks_list .type_column {
  width: 7em;
  text-align: left;
}

#checks_list .reason_column {
  text-align: left;
}

#checks_list .excused_column {
  width: 4em;
  text-align: center;
}

#checks_list .room_state_column {
  width: 5em;
  text-align: center;
}

#checks_list td {
  margin: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 10px;
  padding-right: 10px;
  vertical-align: middle;
}
#checks_list tr {
  height: 52px;
}

#checks_list .room_state_dirty {
  background-color: #ff4040;
}

#checks_list .room_state_clean {
  background-color: #00ff20;
}

.check_row_even {
  background-color: lightgrey;
}

.check_row_status_V {
  background-color: #ee0000;
}

.check_details {
  padding: 5px;
}

.check_details p {
  margin-top: 2px;
  margin-bottom: 2px;
}

.check_details .check_excused_by,
.check_details .check_excused_reason,
.check_details .check_excused_until {
  float: left;
  margin-right: 20px;
}

.check_details .check_comments {
  clear: both;
}

#checks_list .no_return,
#checks_list .no_contact {
  background-color: #ff4949; /* Pastel Red */
}

#checks_list .holiday_leave,
#checks_list .nightly_leave,
#checks_list .late_leave {
  background-color: #50ff50; /* Pastel Green */
}

#checks_list .violation {
  background-color: #fff578; /* Yellow (light) */
}

#checks_list .excused_no_return,
#checks_list .excused_no_contact,
#checks_list .excused_violation {
  background-color: #80b1ff; /* Pastel Blue */
}

.show_button img,
.hide_button img {
  border: 0;
}

#check_totals {
  list-style: none;
}

#check_totals li {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

/* Maint styles */
.maint_status {
  float: right;
  padding: 10px;
  border: 1px solid black;
  text-align: center;
}

.maint_status_Open {
  background-color: #50ff50;
}

.maint_status_Closed {
  background-color: #ff4949;
}

.maint_status_Submitted {
  background-color: lightgrey;
}

/* leave styles */
.leave_status {
  float: right;
  padding: 10px;
  border: 1px solid black;
  width: 6em;
  text-align: center;
}

.leave_status_approved {
  background-color: #50ff50;
}

.leave_status_denied {
  background-color: #ff4949;
}

.leave_status_pending {
  background-color: lightgrey;
}

#leaves_list div {
  width: 30em;
  border: 1px solid black;
  padding: 5px;
  margin: 10px;
}

#leaves_list em {
  font-size: 12pt;
  font-weight: bold;
}

#leaves_list p {
  margin: 5px;
}

/* Student Styles */
#student_info em {
  font-size: 12pt;
  font-weight: bold;
}

#student_info fieldset {
  width: 20.5em;
}

#student_info fieldset p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

fieldset#worship_curfew_info {
  width: 43em;
}

fieldset#worship_curfew_info span {
  margin-right: 2em;
}

fieldset#worship_curfew_info table td {
  text-align: center;
  padding: 5px;
  font-size: 11pt;
}

#student_info td {
  vertical-align: top;
}

#address,
#phone_nubmers {
  height: 7.3em;
}

#holiday_plans_options {
  list-style: none;
}

/* Worship Styles */

#worship_list {
  border-spacing: 0;
  border-collapse: collapse;
  padding: 10px;
}

#worship_list td {
  margin: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 10px;
  padding-right: 10px;
}

#worship_list .worship_date_column {
  width: 5em;
}

#worship_list .worship_name_column {
  width: 15em;
}

#worship_list .worship_credits_column {
  width: 5em;
  text-align: center;
}

#worship_list .worship_presenter_column {
  width: 5em;
  text-align: center;
}

.worship_row_even {
  background-color: lightgrey;
}

#worship_complete_bar {
  border: 1px solid black;
  height: 20px;
  float: left;
  margin-top: 11px;
  margin-right: 10px;
}

#worship_complete_progress {
  height: 20px;
  background-color: blue;
}

#worship_complete_text {
  float: left;
}

/* Holiday Leaves Styles */

.date {
  width: 60%;
}

.bootstrap-timepicker {
  width: 40%;
  min-width: 125px;
}

/* discipline controller Styles */

#disciplines_list {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  padding: 20px;
}

#disciplines_list .more_info_column {
  width: 10px;
  text-align: center;
}

#disciplines_list .discipline_date_column {
  width: 5em;
  text-align: left;
}

#disciplines_list .title_column {
  width: 15em;
  text-align: left;
}

#disciplines_list .issuing_dean_column {
  width: 7em;
  text-align: center;
}

#disciplines_list .resolved_column {
  text-align: center;
}

#disciplines_list .incident_column {
  width: 4em;
  text-align: center;
}

#disciplines_list td {
  margin: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 10px;
  padding-right: 10px;
}

.discipline_row_even {
  background-color: lightgrey;
}

.discipline_row_status_V {
  background-color: #ee0000;
}

.discipline_details {
  padding: 5px;
}

.discipline_details p {
  margin-top: 2px;
  margin-bottom: 2px;
}

#discipline_totals {
  list-style: none;
}

#discipline_totals li {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

/* charge controller Styles */

#charges_list {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  padding: 20px;
}

#charges_list .more_info_column {
  width: 10px;
  text-align: center;
}

#charges_list .charge_date_column {
  width: 5em;
  text-align: left;
}

#charges_list .charge_type_column {
  width: 15em;
  text-align: left;
}

#charges_list .amount_column {
  width: 7em;
  text-align: center;
}

#charges_list td {
  margin: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 10px;
  padding-right: 10px;
}

.charge_row_even {
  background-color: lightgrey;
}

.charge_row_status_V {
  background-color: #ee0000;
}

.charge_details {
  padding: 5px;
}

.charge_details p {
  margin-top: 2px;
  margin-bottom: 2px;
}

#charge_totals {
  list-style: none;
}

#charge_totals li {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

/* New Application Forward */
#applications_list table {
  border-collapse: collapse;
}

#applications_list table th,
#applications_list table td {
  padding: 8px 10px;
}

#applications_list table th {
  border-bottom: 1px solid #777;
}

#applications_list table td {
  border-bottom: 1px solid #ccc;
}

.application_form_v2 .fieldWithErrors {
  display: block;
  padding: 0;
}

.application_form_v2 .fieldWithErrors select {
  background-color: #ffaaaa;
}

.application_form_v2 fieldset {
  border: 1px solid silver;
  margin-bottom: 1em;
}

.application_form_v2 .form_line {
  margin: 0.5em 0;
  width: 100%;

  min-height: 52px;
}

.application_form_v2 .form_line.clear {
  clear: left;
}

.application_form_v2 fieldset#student_info .form_line,
.application_form_v2 fieldset#about_me .form_line,
.application_form_v2 fieldset#parent_info .form_line,
.application_form_v2 fieldset#emergency_info .form_line {
  -moz-box-sizing: border-box;
  box-sizing: border-box;

  margin: 0.5em 1.5%;

  width: 47%;
  float: left;
}

.application_form_v2 label {
  display: block;
}

.application_form_v2 input[type="text"],
.application_form_v2 select,
.application_form_v2 .chzn-container,
.application_form_v2 textarea {
  width: 100% !important;
}

.application_form_v2 input[type="text"],
.application_form_v2 .chzn-container input[type="text"],
.application_form_v2 textarea,
#filter_form input[type="text"],
#filter_form .chzn-container .search-field input[type="text"] {
  -moz-box-sizing: border-box;
  box-sizing: border-box;

  padding: 3px;
  height: auto;

  border: 1px solid silver;

  font-size: 16px;
}

.application_form_v2 input[type="text"][readonly] {
  background-color: #ddd;
}

.application_form_v2 .chzn-container input[type="text"] {
  height: auto !important;
}

/*
.application_form_v2 select,
#filter_form select {
  margin: 4px 0 5px 0;
  height: 24px;
}
*/

.application_form_v2 select {
  background-color: transparent;
}

.application_form_v2 .date select {
  width: auto !important;
}

.radio input[type="radio"] {
  position: relative !important;
  margin-left: 0px !important;
}

.application_form_v2 .radio {
  line-height: 24px;
}

.application_form_v2 input[type="submit"] {
  display: inline-block;

  margin: 20px 0;
  padding: 8px 12px;

  font-size: 24px;
  background-color: silver;
  border: 1px solid grey;
}

/* Chapels controller Styles */

#chapel_list {
  border-spacing: 0;
  border-collapse: collapse;
  margin-left: 50px;
}

#chapel_list .more_info_column {
  width: 10px;
  text-align: center;
}

#chapel_list td {
  margin: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

.chapel_row_even {
  background-color: lightgrey;
}

.chapel_row_fine {
  background-color: #ff4949; /* Pastel Red */
}

.chapel_row_skip {
  background-color: #fff578; /* Yellow (light) */
}

.chapel_row_excused {
  background-color: #80b1ff; /* Pastel Blue */
}

.clearfix:before,
.clearfix:after {
  content: "\0020";
  display: block;
  height: 0;
  overflow: hidden;
}
.clearfix:after {
  clear: both;
}
.clearfix {
  zoom: 1;
}

/*
 * ─── FORMS ──────────────────────────────────────────────────────────────────────
 */

.required::after {
  content: " *";
  color: red;
}
