/* (C)2019 Endis Ltd. 
No permission is given to use any code in this file, except on an Endis/ChurchInsight website.

This file is for generic fixes to any system page, and is rolled out across all 2020 class templates.
It only needs to appear in the header for system page templates (not home or content etc.)
It is expecting the section.slice_system_page element to have the page name aspx code added on as a css class. 
URL of the page is: /Images/Content/2414/Templates/56328/SystemPage.css
On US: /Images/Content/1000000487/Templates/1000010205/SystemPage.css
*/

.Validator, .validator {color:red !important; font-weight:700;}

/* iOS fixes */
body.OnSmallAppleDevice section.slice_content_page div.main-content input[type="checkbox"]:checked,
body.OnSmallAppleDevice section.slice_system_page input[type="checkbox"]:checked {
  background-color:black;
}

body.OnSmallAppleDevice ul.consent-questions {margin-top:0;}
body.OnSmallAppleDevice li.consent-question {text-indent:0 !important;}
body.OnSmallAppleDevice li.consent-question input[type="checkbox"]
{display:block; position:relative; right:20px; top:18px;}
body.OnSmallAppleDevice li.consent-question label
{display:block;}

body.OnSmallAppleDevice input[type="text"] {
  -webkit-appearance: none;
  -webkit-border-radius:0;
  border-radius: 0;
}
body:not(.endis-body) li.consent-question {
  text-indent: -32px;
}

section.slice_system_page div.systemPageLeft {display:none;}

section.slice_system_page input[type="text"], 
section.slice_system_page input[type="password"] {
    padding: 1px 1px 2px 1px;
    border: 1px solid #aaaaaa;
}
section.slice_system_page input[type="text"]:focus, 
section.slice_system_page input[type="password"]:focus,
section.slice_system_page textarea:focus,
section.slice_system_page select:focus,
section.slice_system_page select:hover,
section.slice_system_page option:focus,
section.slice_system_page option:hover {
    outline:none;
}

/* Payment group fixes */

section.slice_system_page._paymentgroup_registration_aspx div.systemPageContent {display:block;}

section.slice_system_page._paymentgroup_registration_aspx a[id*="_ctlWizard_StepLink_"] {
	font-size:16px;
}
section.slice_system_page._paymentgroup_registration_aspx a.aspNetDisabled[id*="_ctlWizard_StepLink_"] {
	padding:0; margin:0; background-color:transparent;
    color:#aaaaaa;border:none;
    cursor:default;
    transition:none;
}
section.slice_system_page._paymentgroup_registration_aspx a.aspNetDisabled[id*="_ctlWizard_StepLink_"]:hover
{opacity:1;}
section.slice_system_page._paymentgroup_registration_aspx div.ShadedBackground {
	background-color:#eeeeee; padding:0 !important;
}
section.slice_system_page._paymentgroup_registration_aspx div.ShadedBackground table table td {
	padding:2px 5px;
}
section.slice_system_page._paymentgroup_registration_aspx input[type=checkbox] {
	width:18px;height:18px;display:inline-block;position:relative;top:3px;
}
section.slice_system_page._paymentgroup_registration_aspx table.boxout_header {
	background-color:#dddddd;
}
section.slice_system_page._paymentgroup_registration_aspx label {
	display:inline;
}
div#selectorDiv.shadedbox {background-color:#dddddd;border:1px solid black;}
div#selectorDiv.shadedbox a {
  background-color:#dddddd;padding:2px;display:block;
}

/* Fix date boxes */
section.slice_system_page._paymentgroup_registration_aspx input.text.date_text_box.hasDatepicker
{min-width:110px;}

/* tool-tip code */
section.slice_system_page div.new-card-details .whats-this {
  font-size:12px;
  line-height:1.5;
}
body .ui-tooltip { line-height:1.2 !important; }
/* Another style of tip box */
div#tipDiv {background-color:black; color:white; padding:5px 5px 5px 10px; border-radius:10px;}

/* deal with the floating "Step X" box on mobile screens. */
section.slice_system_page._paymentgroup_registration_aspx div.systemPageContent > div:first-child
{text-align:center; margin:0 0 10px 10px;}
@media (max-width:767px) {
	section.slice_system_page._paymentgroup_registration_aspx div.systemPageContent > div:first-child
  	{float:none !important; width:auto !important; margin:0 auto 20px;}
}

/* delegate option edit buttons */
section.slice_system_page._paymentgroup_registration_aspx div.delegate div.editColButton {
	width:auto;padding-top:0;
}
section.slice_system_page._paymentgroup_registration_aspx div.delegate div.editColButton input.button {
	margin:0; padding:2px 0 1px;
}
section.slice_system_page._paymentgroup_registration_aspx div.delegate h4.noMargin {
	line-height:1.2;
}
section.slice_system_page._paymentgroup_registration_aspx div.delegate div.total {margin-top:5px;}
section.slice_system_page._paymentgroup_registration_aspx div.options div.ShadedBackground {
	padding:10px !important; margin-top:10px;
}

section.slice_system_page._paymentgroup_registration_aspx div#OptionsWrapper {width:auto;}
section.slice_system_page._paymentgroup_registration_aspx div#OptionsWrapper table {width:auto;}
section.slice_system_page._paymentgroup_registration_aspx div#OptionsWrapper table.answer {width:100%;}
section.slice_system_page._paymentgroup_registration_aspx div#OptionsWrapper div.Question div.Question table.answer {background-color:#eeeeee;padding:0 5px;}

section.slice_system_page._paymentgroup_registration_aspx 
div[id$=_ctlWizard_wsChooseIndividualOptions_ctlRefineOptions_pnlIndividual] a {
	display:block;margin-left:10px;background-color:#dddddd;padding:2px;line-height:1;
}

section.slice_system_page._paymentgroup_registration_aspx 
div[id^="divOtherGuest_"] td:last-child {text-align:center;}
section.slice_system_page._paymentgroup_registration_aspx 
div[id^="divOtherGuest_"] td:last-child img {margin:0;}
section.slice_system_page._paymentgroup_registration_aspx 
div[id^="divOtherGuest_"] td.gridheader {padding:10px 0 0 20px;}
@media (max-width:700px) {
  section.slice_system_page._paymentgroup_registration_aspx 
  div[id^="divOtherGuest_"] table {border-collapse:collapse;}
   	section.slice_system_page._paymentgroup_registration_aspx 
  div[id^="divOtherGuest_"] tr.griditemrow {background-color:transparent;}
 	section.slice_system_page._paymentgroup_registration_aspx 
  	div[id^="divOtherGuest_"] td.griditem {
      padding:1px;border-color:transparent;border-bottom-width:20px;background-color:transparent;
    }
   	section.slice_system_page._paymentgroup_registration_aspx 
  	div[id^="divOtherGuest_"] td.griditem input.text {
      border:1px solid #aaaaaa;
    }
	section.slice_system_page._paymentgroup_registration_aspx 
  	div[id^="divOtherGuest_"] input.text[size="25"] {
    	width:100%; 
    }
  section.slice_system_page._paymentgroup_registration_aspx 
  div[id^="divOtherGuest_"] td:last-child img {margin-left:10px;}
}

section.slice_system_page._paymentgroup_registration_aspx ul.stripe-card-list {list-style-type:none;padding-left:0;}

/* Payment group options */
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv input.text,
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv input.date_text_box,
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv textarea.text {
  border:1px solid #aaaaaa; padding:5px 10px; margin:2px 0;
}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv textarea.text {display:block;}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv input.date_text_box 
{min-width:130px; margin:0;}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv input.text[style="width:200px;"],
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv textarea.text[style="width:200px;"] {
  width:98% !important;
}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv div.datablock {
	background-color:#eeeeee; margin-top:10px; padding:0 0 10px 10px;
}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv select {
	width:auto !important; margin:2px 0;
}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv table,
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv tbody,
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv td {
  padding:0; border:none; border-spacing:0;
}

section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv div.datablock td table td:first-child[style^="width:30%;"]
{width:10% !important;}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv div.datablock input[maxlength] 
{font-size:15px;padding-left:2px;padding-right:1px;}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv div.datablock input[maxlength="3"] {width:33px !important;}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv div.datablock input[maxlength="4"] {width:44px !important;}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv div.datablock input[maxlength="5"] {width:55px !important;}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv div.datablock input[maxlength="6"] {width:66px !important;}
section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv div.datablock input[maxlength="11"] {width:121px !important;}

section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv table[id^="GNDG_"] td:first-child 
{white-space:nowrap; padding-right:5px;}
@media (max-width:991px) {
  section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv table[id^="GNDG_"] td:first-child 
  {white-space:normal;word-break:break-word; line-height:1.15;}
  section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv table[id^="GNDG_"] td 
  {padding-top:10px;padding-bottom:10px;}
  section.slice_system_page._paymentgroup_registration_aspx div#GroupNotesEnclosingDiv div.datablock {margin-left:0;width:100%;}
}

section.slice_system_page._paymentgroup_registration_aspx 
input.aspNetDisabled.button[type="submit"][disabled="disabled"][value="< Back"] {display:none;}
section.slice_system_page._paymentgroup_registration_aspx div.page_title {font-weight:900;}

/* Fix images on Image.aspx pages */
section.slice_system_page._publisher_image_aspx img {margin-top:10px;}
section.slice_system_page._publisher_image_aspx table[width="750"] {
  width:auto !important; margin:0 auto;
}

section.slice_system_page._user_privacypolicy_aspx div.system_content div.systemPageContent ul {
  list-style-type: disc;
  padding-left:40px;
}

section.slice_system_page._myarea_profilepassword_aspx input.text {
  border:1px solid #aaaaaa;
  margin:5px 0;
}

section.slice_system_page._myarea_myregistrations_aspx table.payment-options td {
  vertical-align:middle;
}
section.slice_system_page._myarea_myregistrations_aspx table.payment-options input.button {margin:0;}
section.slice_system_page._myarea_myregistrations_aspx input.text.date_text_box.hasDatepicker {
  padding-top:2px; padding-bottom:1px; min-width:130px; border:1px solid #aaaaaa;
}

/* Fix the new calendar page */
body.calendar-month-page div#calendar_title select {font-size:16px; line-height:30px;}
body.calendar-month-page ul#calendar_buttons {list-style:none inside none; padding:0;}
body.calendar-month-page ul#calendar_buttons select.calendar-export-options,
body.calendar-month-page ul#calendar_buttons li,
body.calendar-month-page ul#calendar_buttons li.list-view-toggle i::before {line-height:30px;}
body.calendar-month-page input#chkIncludeCalendarSubgroups {
  width:18px;height:18px;margin-left:10px;position:relative;top:3px;
}
body.calendar-month-page span.calendar_children_select label {margin:0; line-height:1.2;}

body.calendar-month-page select.group-selector.calendar-filter.all-groups,
body.calendar-month-page select.calendar-export-options {font-size:16px;padding-bottom:2px;}
body.calendar-month-page select.group-selector.calendar-filter.all-groups {line-height:1.3;}
body.calendar-month-page div.system_body.calendar_body div.calendar {margin-top:20px;}

/* make the calendar title text plain, so that the colored events show up better */
body.calendar-month-page div.systemPageContent div.calendar_day_wrapper, 
body.calendar-month-page div.systemPageContent div.calendar_day_header {color:inherit;}
body.calendar-month-page div.systemPageContent div.calendar {border-bottom:none;}

/* Fix the new calendar page pop-up */
body.calendar-month-page div.dialog-content.calendar-event-content > h4,
body.calendar-month-page div.dialog-content.calendar-event-content > h4 a.event-location-link {
	display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;
}

/* Fix the calendar page export light-boxes */
div.calendar-generic-popup div.endis_dialog_outer p,
div.calendar-generic-popup div.endis_dialog_outer a,
div.calendar-generic-popup div.endis_dialog_outer p select,
div.calendar-generic-popup div.endis_dialog_outer p + input.download-csv
{font-size:16px; line-height:1.2;}
div.calendar-generic-popup div.endis_dialog_outer a {word-break: break-all;}
div.calendar-generic-popup div.endis_dialog_outer p input#chkReminders {
  width:18px;height:18px;position:relative;top:3px;
}
div.calendar-generic-popup div.endis_dialog_outer p label {display:inline;}

section.slice_system_page._user_cookiespolicy_aspx table {border-collapse:collapse;}
section.slice_system_page._user_cookiespolicy_aspx td,
section.slice_system_page._user_cookiespolicy_aspx th {padding:5px; border:1px solid #bbbbbb;}
@media (max-width:767px) {
  section.slice_system_page._user_cookiespolicy_aspx td,
  section.slice_system_page._user_cookiespolicy_aspx th {font-size:16px; line-height:1.2;}
	section.slice_system_page._user_cookiespolicy_aspx td:first-child {word-break:break-all;}
	section.slice_system_page._user_cookiespolicy_aspx th:first-child {white-space:nowrap;}
}

/* pop-up fix */
form[action^="./Registration.aspx?payment_group_id="][action$="&mode=summary"] {margin:10px 0 0 10px;}

/* My bookings editing pages */
section.slice_system_page._myarea_editmybooking_aspx div.page_subtitle {margin-bottom:10px;}
section.slice_system_page._myarea_editmybooking_aspx td > input.text[type=text] {
  width:100% !important;padding-left:5px;margin:15px 0;
}
section.slice_system_page._myarea_editmybooking_aspx input.text.date_text_box.hasDatepicker {
  padding-top:2px; padding-bottom:1px; min-width:130px; border:1px solid #aaaaaa;
  padding-left:5px;
}
section.slice_system_page._myarea_editmybooking_aspx input.text.time_text_box.hasTimepicker {
  padding-top:2px; padding-bottom:1px; min-width:100px; border:1px solid #aaaaaa;
  padding-left:5px; margin-top:2px;
}
section.slice_system_page._myarea_editmybooking_aspx tr#trBookFrom  td:first-child,
section.slice_system_page._myarea_editmybooking_aspx tr#trBookUntil td:first-child 
{padding-left:0 !important;}
section.slice_system_page._myarea_editmybooking_aspx tr#trBookUntil td:last-child {padding-top:5px;}
section.slice_system_page._myarea_editmybooking_aspx input[type=checkbox],
section.slice_system_page._myarea_editmybooking_aspx input[type=radio] {
	width:18px;height:18px;display:inline-block;position:relative;top:3px;
}
section.slice_system_page._myarea_editmybooking_aspx td:first-child {text-align:right;}
section.slice_system_page._myarea_editmybooking_aspx td:first-child[colspan],
section.slice_system_page._myarea_editmybooking_aspx tr#trRecurrenceDay table td {text-align:left;}
section.slice_system_page._myarea_editmybooking_aspx table.data_entry.narrow-left td,
section.slice_system_page._myarea_editmybooking_aspx div.date_wrapper {white-space:nowrap;}
section.slice_system_page._myarea_editmybooking_aspx div.page_content > div:last-child {
  display:flex;flex-flow:row nowrap;justify-content:center;align-items:flex-start;
}

  section.slice_system_page._myarea_editmybooking_aspx table.gridstyle input.button90.sitebutton.update_button
  {margin:0;padding:5px;}

@media (max-width:467px) {
  section.slice_system_page._myarea_editmybooking_aspx table.data_entry {font-size:13px;} 
}

@media (max-width:600px) {
  section.slice_system_page._myarea_editmybooking_aspx table.gridstyle,
  section.slice_system_page._myarea_mybookings_aspx table.gridstyle {
 	border-collapse:collapse; margin:0;padding:0; font-size:12px;
 }
 section.slice_system_page._myarea_editmybooking_aspx table.gridstyle td,
 section.slice_system_page._myarea_mybookings_aspx table.gridstyle td {
 	padding:1px;border:1px solid #cccccc;text-align:center;
 }
} 

/* improve my-area headings */
section.slice_system_page._myarea_introduction_aspx td ul b a,
section.slice_system_page._myarea_mydetails_aspx td ul b a,
section.slice_system_page._myarea_myinvolvement_aspx td ul b a,
section.slice_system_page._myarea_myaccount_aspx td ul b a,
section.slice_system_page._myarea_myaccountpayments_aspx td ul b a
{text-transform:capitalize;}

/* My bookings page */
section.slice_system_page._myarea_mybookings_aspx input.text.date_text_box.hasDatepicker {
  padding-top:2px; padding-bottom:1px; min-width:130px; border:1px solid #aaaaaa;
  padding-left:5px;
}

/* User side user picker */
body.logged_in_user.system_popup._user_picker_userpicker_aspx.endis_dialog {margin:0;}

/* Rotas page */
section.slice_system_page._rotas_rota_aspx div.systemPageContent td#tdOldEventButtons input.button,
section.slice_system_page._rotas_rota_aspx div.systemPageContent td.subMenu
{width:auto !important;}
section.slice_system_page._rotas_rota_aspx div.systemPageContent td.subMenu a.subMenu 
{margin:0;}
section.slice_system_page._rotas_rota_aspx div.systemPageContent td#tdOldEventButtons input.button,
section.slice_system_page._rotas_rota_aspx div.systemPageContent td.subMenu a.subMenu
{padding:5px 10px;line-height:1;font-size:16px;line-height:1.3;}

section.slice_system_page._rotas_rota_aspx div.systemPageContent table#tblRota.gridstyle {
  margin-top:20px;
}
section.slice_system_page._rotas_rota_aspx div.systemPageContent table#tblRota.gridstyle tr
{border:none;}
section.slice_system_page._rotas_rota_aspx div.systemPageContent table#tblRota.gridstyle td
{padding:2px 1px;vertical-align:middle;}
section.slice_system_page._rotas_rota_aspx div.systemPageContent table#tblRota.gridstyle td,
section.slice_system_page._rotas_rota_aspx div.systemPageContent table#tblRota.gridstyle td a
{font-size:16px; text-align:center; line-height:1.3;}
section.slice_system_page._rotas_rota_aspx div.systemPageContent table#tblRota.gridstyle td[rowspan]:not([rowspan="1"])
{line-height:1.2;padding:0 1px;font-size:14px;}
@media (max-width:991px) {
  section.slice_system_page._rotas_rota_aspx div.systemPageContent table#tblRota.gridstyle td,
  section.slice_system_page._rotas_rota_aspx div.systemPageContent table#tblRota.gridstyle td a
	{font-size:14px;}
}
/* add bolder lines betwwen days on rota table */
section.slice_system_page._rotas_rota_aspx table#tblRota tr.altgriditemrow + tr.griditemrow td.griditem,
section.slice_system_page._rotas_rota_aspx table#tblRota tr.altgriditemrow + tr.griditemrow + tr.griditemrow td.griditem,
section.slice_system_page._rotas_rota_aspx table#tblRota tr.griditemrow + tr.altgriditemrow td.griditem,
section.slice_system_page._rotas_rota_aspx table#tblRota tr.griditemrow + tr.altgriditemrow + tr.altgriditemrow td.griditem {
	border-top:2px solid #777777;
}

section.slice_system_page div.system_content ul.consent-questions {
	list-style-type:none;
}
body:not(.endis-body) section.slice_system_page li.consent-question {
  text-indent: -32px;
}
@media(max-width:600px){
  section.slice_system_page._myarea_profilenew_aspx table.shadedbox tr.gridheader + tr:last-child,
  section.slice_system_page._myarea_profilepersonal_aspx table.shadedbox tr.gridheader + tr:last-child {
  	display:flex; flex-flow: column nowrap; align-items:center; justify-content:flex-start;
  }
}

section.slice_system_page._myarea_profilefamily_aspx table.profilebox table > tbody > tr:first-child > td[colspan="2"],
section.slice_system_page._myarea_profilepersonal_aspx div#GroupNotesEnclosingDiv > table > tbody > tr:first-child > td[colspan="2"],
section.slice_system_page._myarea_profilenew_aspx div#GroupNotesEnclosingDiv > table > tbody > tr:first-child > td[colspan="2"]
{text-align:center;}

section.slice_system_page._myarea_profilepersonal_aspx h1,
section.slice_system_page._myarea_profilenew_aspx h1,
section.slice_system_page._myarea_profilefamily_aspx h1 {margin-bottom:5px;}

section.slice_system_page._myarea_profilepersonal_aspx input.text,
section.slice_system_page._myarea_profilenew_aspx input.text,
section.slice_system_page._myarea_profilefamily_aspx input.text,
section.slice_system_page._myarea_profilepersonal_aspx input.text,
section.slice_system_page._myarea_profilenew_aspx input.text,
section.slice_system_page._myarea_profilefamily_aspx select,
section.slice_system_page._myarea_profilepersonal_aspx select,
section.slice_system_page._myarea_profilenew_aspx select,
section.slice_system_page._myarea_profilefamily_aspx textarea,
section.slice_system_page._myarea_profilepersonal_aspx textarea,
section.slice_system_page._myarea_profilenew_aspx textarea
{
  font-size:smaller; padding:2px; margin:0;
}
section.slice_system_page._myarea_profilefamily_aspx input[maxlength="2"],
section.slice_system_page._myarea_profilepersonal_aspx input[maxlength="2"],
section.slice_system_page._myarea_profilenew_aspx input[maxlength="2"]
{min-width:30px;}
section.slice_system_page._myarea_profilefamily_aspx input[maxlength="3"],
section.slice_system_page._myarea_profilepersonal_aspx input[maxlength="3"],
section.slice_system_page._myarea_profilenew_aspx input[maxlength="3"]
{min-width:40px;}
section.slice_system_page._myarea_profilefamily_aspx input[maxlength="4"],
section.slice_system_page._myarea_profilepersonal_aspx input[maxlength="4"],
section.slice_system_page._myarea_profilenew_aspx input[maxlength="4"]
{min-width:50px;}
section.slice_system_page._myarea_profilefamily_aspx input[maxlength="5"],
section.slice_system_page._myarea_profilepersonal_aspx input[maxlength="5"],
section.slice_system_page._myarea_profilenew_aspx input[maxlength="5"]
{min-width:60px;}
section.slice_system_page._myarea_profilefamily_aspx input[maxlength="6"],
section.slice_system_page._myarea_profilepersonal_aspx input[maxlength="6"],
section.slice_system_page._myarea_profilenew_aspx input[maxlength="6"]
{min-width:70px;}
section.slice_system_page._myarea_profilefamily_aspx input[maxlength="11"],
section.slice_system_page._myarea_profilepersonal_aspx input[maxlength="11"],
section.slice_system_page._myarea_profilenew_aspx input[maxlength="11"]
{min-width:120px;}

section.slice_system_page._myarea_profilefamily_aspx td.smalltext,
section.slice_system_page._myarea_profilepersonal_aspx td.smalltext,
section.slice_system_page._myarea_profilenew_aspx td.smalltext
{padding-bottom:0;line-height:1;}

section.slice_system_page._myarea_profilefamily_aspx td.tabSelected,
section.slice_system_page._myarea_profilepersonal_aspx td.tabSelected,
section.slice_system_page._myarea_profilenew_aspx td.tabSelected,
section.slice_system_page._myarea_profilefamily_aspx td.tableft,
section.slice_system_page._myarea_profilepersonal_aspx td.tableft,
section.slice_system_page._myarea_profilenew_aspx td.tableft,
section.slice_system_page._myarea_profilefamily_aspx td.tabright,
section.slice_system_page._myarea_profilepersonal_aspx td.tabright,
section.slice_system_page._myarea_profilenew_aspx td.tabright
{font-size:larger;}

@media(max-width:991px){
	section.slice_system_page._myarea_profilefamily_aspx table.profilebox > tbody > tr > td[style="width: 10px;"],
	section.slice_system_page._myarea_profilepersonal_aspx table.profilebox > tbody > tr > td[style="width: 10px;"],
	section.slice_system_page._myarea_profilenew_aspx table.profilebox > tbody > tr > td[style="width: 10px;"]
  {display:none;}
	section.slice_system_page._myarea_profilefamily_aspx table.profilebox > tbody > tr > td:last-child,
	section.slice_system_page._myarea_profilepersonal_aspx table.profilebox > tbody > tr > td:last-child,
	section.slice_system_page._myarea_profilenew_aspx table.profilebox > tbody > tr > td:last-child,
  	section.slice_system_page._myarea_profilefamily_aspx table.shadedbox,
	section.slice_system_page._myarea_profilepersonal_aspx table.shadedbox,
	section.slice_system_page._myarea_profilenew_aspx table.shadedbox
  {padding:0;}
}
@media(max-width:500px){ /* crunch up on mobiles */
	section.slice_system_page._myarea_profilefamily_aspx div.systemPageContent,
	section.slice_system_page._myarea_profilepersonal_aspx div.systemPageContent,
	section.slice_system_page._myarea_profilenew_aspx div.systemPageContent
  {padding-left:0;padding-right:0;}
	section.slice_system_page._myarea_profilefamily_aspx div.systemPageContent td,
	section.slice_system_page._myarea_profilepersonal_aspx div.systemPageContent td,
	section.slice_system_page._myarea_profilenew_aspx div.systemPageContent td
  {padding-left:2px;padding-right:2px;}
	section.slice_system_page._myarea_profilefamily_aspx div.systemPageContent table,
	section.slice_system_page._myarea_profilepersonal_aspx div.systemPageContent table,
	section.slice_system_page._myarea_profilenew_aspx div.systemPageContent table
  {border-collapse:collapse;}
	section.slice_system_page._myarea_profilefamily_aspx div.systemPageContent input[type="submit"],
	section.slice_system_page._myarea_profilepersonal_aspx div.systemPageContent input[type="submit"],
	section.slice_system_page._myarea_profilenew_aspx div.systemPageContent input[type="submit"],
  	section.slice_system_page._myarea_profilefamily_aspx div.systemPageContent input[type="button"],
	section.slice_system_page._myarea_profilepersonal_aspx div.systemPageContent input[type="button"],
	section.slice_system_page._myarea_profilenew_aspx div.systemPageContent input[type="button"]
  {padding-left:5px;padding-right:5px;margin-left:0;margin-right:0;}
  section.slice_system_page._myarea_profilefamily_aspx td.tabSelected,
  section.slice_system_page._myarea_profilepersonal_aspx td.tabSelected,
  section.slice_system_page._myarea_profilenew_aspx td.tabSelected,
  section.slice_system_page._myarea_profilefamily_aspx td.tableft,
  section.slice_system_page._myarea_profilepersonal_aspx td.tableft,
  section.slice_system_page._myarea_profilenew_aspx td.tableft,
  section.slice_system_page._myarea_profilefamily_aspx td.tabright,
  section.slice_system_page._myarea_profilepersonal_aspx td.tabright,
  section.slice_system_page._myarea_profilenew_aspx td.tabright
  {font-size:normal;}
}

/* some generic fixes */
section.slice_system_page input[type="checkbox"],
section.slice_system_page input[type="radio"] {
	width:18px;height:18px;display:inline-block;position:relative;top:3px;margin:0 !important;
}
section.slice_system_page input.text.date_text_box.hasDatepicker
{min-width:110px;}

/* My Sign Up's */
section.slice_system_page._myarea_mysignups_aspx h1 {margin:0 0 20px 0;}
section.slice_system_page._myarea_mysignups_aspx div.signups-grid {
	grid-template-columns:repeat(auto-fill, minmax(250px, 1fr))
}
section.slice_system_page._myarea_mysignups_aspx div.signup-rota span {font-weight:700;}
section.slice_system_page._myarea_mysignups_aspx div.signup-rota {
  border:2px solid #e1e1e1;
  border-radius:0;
  padding:10px;
  margin:5px;
}
section.slice_system_page._myarea_mysignups_aspx table.full-width {
	border-collapse:collapse;
}
section.slice_system_page._myarea_mysignups_aspx table.full-width table.full-width tr
{display:flex; flex-flow:row nowrap; justify-content:flex-start; align-items:flex-start;}
/* Use a huge flex-basis to make all the items the same width */
section.slice_system_page._myarea_mysignups_aspx table.full-width table.full-width td
{border:2px solid #e1e1e1;border-right:none;padding:0;flex-basis:2000px;}
section.slice_system_page._myarea_mysignups_aspx table.full-width table.full-width td:last-child
{border-right:2px solid #e1e1e1;}
section.slice_system_page._myarea_mysignups_aspx table.full-width table.full-width td
{display:block; height:50px; line-height:50px;
  font-size:inherit;
}
section.slice_system_page._myarea_mysignups_aspx table.full-width table.full-width td a
{display:block; height:46px; line-height:46px;
  font-size:inherit;
}
section.slice_system_page._myarea_mysignups_aspx .systemPageContent table.full-width table.full-width td.tabSelected,
section.slice_system_page._myarea_mysignups_aspx .systemPageContent table.full-width table.full-width td.tableft,
section.slice_system_page._myarea_mysignups_aspx .systemPageContent table.full-width table.full-width td.tableft a
{color:inherit;}

/* Tidy up media page advanced search options */
section.slice_system_page._media_allmedia_aspx div#media_title h1 {margin:0;line-height:1;}
section.slice_system_page._media_allmedia_aspx ul#media_buttons {margin:0;}
section.slice_system_page._media_allmedia_aspx div#media_controls {
	display:flex;flex-flow:row wrap; justify-content:flex-start;align-items:center;
  	margin-top:0; border:none;padding-top:5px;
}
section.slice_system_page._media_allmedia_aspx div#media_controls div.system_option {
	width:auto;
}
section.slice_system_page._media_allmedia_aspx div#media_controls div.system_option input.text,
section.slice_system_page._media_allmedia_aspx div#media_controls div.system_option select {
	margin-left:0;
}
section.slice_system_page._media_allmedia_aspx div.media_summary_image {
  width:120px; /* Display is table-cell, so this just closes it up */
}
@media (max-width:991px) {
  section.slice_system_page._media_allmedia_aspx a.media_recording_speaker {
  	float:none;
    display:block;
  }
}
@media (max-width:767px) {
  section.slice_system_page._media_allmedia_aspx a.media_recording_file_play,
  section.slice_system_page._media_allmedia_aspx a.media_recording_file_download {
    font-size:18px; margin-top:5px;
  }
}

section.slice_system_page._user_registration_aspx div.TopCaption input[type="checkbox"],
._user_registration_aspx div.TopCaption input[type="checkbox"] { 
  margin: 0 0 0 10px !important; 
}
section.slice_system_page._user_registration_aspx div[id$="_login_details"]
table.SubTable > tbody > tr > td:first-child {display:none;}
._user_registration_aspx div[id$='outerdiv_ctls_phone'] div.SubCaption, 
._user_registration_aspx div[id$='outerdiv_ctls_alt_addr_phone'] div.SubCaption {position:static;}
._user_registration_aspx div[id$='_div_ctls_registration_groups'] label {display:inline;}

/* Fix multi-page media lists */
section.slice_system_page._media_allmedia_aspx div#media_pager_top a.system_pager_next,
section.slice_system_page._media_allmedia_aspx div#media_pager_top a.system_pager_prev,
section.slice_system_page._media_allmedia_aspx div#media_pager_bottom a.system_pager_next,
section.slice_system_page._media_allmedia_aspx div#media_pager_bottom a.system_pager_prev {
  background-color:transparent;
  padding:0;
  margin:5px;
  border:none;
}

/* Fix consent questions */
section.slice_system_page div.system_content ul.consent-questions {
  	list-style:none;
	list-style-type:none;
}

/* Fix address book image sizes */
section.slice_system_page._address_addressbook_aspx div.systemPageContent 
div.address_cell a img {
  width:auto !important;
  height:auto !important;
  max-height:initial;
  max-width:150px;
}
body.system_popup._address_details_aspx div.user-family-details img {
  width:auto !important;
  height:auto !important;
}

/* Fix Calendar list-view icon */
section.slice_system_page._calendar_month_aspx ul#calendar_buttons 
i.toggle-calendar-view::before {position:relative; top:-9px !important;}

/* remove bottom border on calendar */
section.slice_system_page._calendar_month_aspx div.systemPageContent div.calendar {
	border-bottom:none;
}

/* Hide syndicated search options */
section.slice_system_page._publisher_search_aspx select[id$="_ddlSearchScopeTemplate"],
section.slice_system_page._publisher_search_aspx select[id$="_ddlSortTemplate"] option:last-child
{display:none;}
section.slice_system_page._publisher_search_aspx div.search_option_left,
section.slice_system_page._publisher_search_aspx div.search_option_right {margin:0;}

div#system_modal div.modal-content {
  padding-top:0 !important; 
  padding-bottom:0 !important;
}
div#system_modal div.modal-content p {
  margin-top:10px !important; 
  margin-bottom:0 !important;
}

section.slice_system_page._rotas_rota_aspx div.systemPageContent table#tblRota.gridstyle td.gridheader {
  border:1px solid #cccccc;
}

/* fix forum textarea box */
section.slice_system_page._forums_messages_aspx div.systemPageContent textarea {margin:0;}
section.slice_system_page._forums_threads_aspx img[src="/Images/new.gif"] {
	display:inline-block; margin-right:10px; width:25px !important;
}
section.slice_system_page._forums_allforums_aspx img[src="/Images/new.gif"] {width:auto !important;}

section.slice_system_page._publisher_search_aspx table.shadedBox[id$="_ArticleGrid"] a img {
	width:auto !important;
  	height:auto !important;
    max-width:200px;
  	margin:0 5px 0 0;
}
@media(max-width:767px){
  section.slice_system_page._publisher_search_aspx table.shadedBox[id$="_ArticleGrid"] a img {
      max-width:100px;
  }
}