
html, body {
   height: 100%;
   width: 100%;
}

body
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   background-color: #ffffff;
   margin: 0;
   display: inline-block;  /* Makes sure the child elements with margins don't bleed out of the body. */
                           /* A "clearfix" solution would also have worked, but it's more code and involves */
                           /* pseudo-elements. */
}

body.tablet input.acs_input
{
   font-size: large;
}

body.tablet .acs_input_label
{
   font-size: medium;
}

body.tablet input.button
{
   font-size: medium;
}

body.tablet .application_link
{
   padding: 4px 0;
}

.acs_container {
   display: flex;
   justify-content: center;
   flex-direction: column;
   align-items: center;
   top: 50px;
   position: relative;
   font-family: arial, verdana, sans-serif;
   margin-left: auto;
   margin-right: auto;
}

body.not-loaded {
   visibility: hidden;
}

.acs_container .error_message {
   text-align: left;
   background-color: #feffd7;
   padding: 15px;
   border: 1px solid #d9d9d9;
   border-radius: 5px;
   margin-top: 20px;
}

.acs_container .error_message br {
   display: block;
   content: "";
   margin: 1em;
}

.acs_container .error_message.hidden,
.acs_container .acs_motd.hidden,
.acs_container .acs_help_text.hidden {
   display: none;
}

.acs_image_and_controls {
   display: flex;
   flex-direction: column;
   width: 530px;
   border: 1px solid #d9d9d9;
   border-radius: 5px;
}

.acs_container .acs_motd {
   width: 530px; /* Must match .acs_image_and_controls width. */
   margin-bottom: 20px;
}

/* The image must be 530px in width for it to look sensible. For both cases of smaller/larger
   than 530px we shrink/expand the image maintaining the aspect ratio. */
.acs_image {
   display: flex;
   display: -ms-grid; /* Needed for IE11 windows 7. */
   width: 530px; /* Must match .acs_image_and_controls width. */
   background-color: #ffffff;
   border-top-left-radius: 5px;
   border-top-right-radius: 5px;
}

.acs_image img {
   width: 530px; /* Must match .acs_image_and_controls width. */
   height: 100%;
}

.acs_controls {
   padding: 0px 20px 10px 20px;
   background-color: #f4f4f4;
   border-bottom-left-radius: 5px;
   border-bottom-right-radius: 5px;
}

.login_title
{
   font-size: 20px;
   font-weight: 700;
   text-align: left;
   color: #606060;
   margin-top: 30px;
}

.acs_input_label
{
   color: #087dbb;
   font-size: 16px;
   font-weight: 700;
   margin-top: 20px;
   margin-bottom: 5px;
}

.acs_input {
   width: 100%;
   color: #606060;
   border: 1px solid #d9d9d9;
   border-radius: 3px;
   padding: 5px;
   box-sizing: border-box;
}

.acs_buttons
{
   margin-top: 20px;
   display: flex;
   justify-content: space-between;
   flex-direction: row-reverse; /* Used to display the Log in button second, but 
                                   allow it to be defined first in the DOM so enter activates it. */
}

button {
   font-family: inherit; /* Browsers try to style buttons their own way. Force them not to! */
}

.acs_button {
   cursor: pointer;
}

.acs_ok_button {
   background-color: #087dbb;
   padding: 5px 30px;
   color: #ffffff;
   font-weight: 700;
   font-size: 15px;
   border: none;
   border-radius: 3px;
}

.acs_help_button {
   border: none;
   background-color: transparent;
   color: #087dbb;
   font-size: 15px;
   font-weight: 400;
}

.acs_help_text {
   font-size: 15px;
   padding-left: 10px;
   padding-right: 10px;
   border: 1px solid #d9d9d9;
   border-radius: 5px;
   background-color: #e2e2e2;
   margin-top: 10px;
}

.acs_help_text p {
   margin-top: 10px;
   margin-bottom: 10px;
}

.acs_container .application_copyright {
   margin-top: 30px;
   margin-bottom: 0;
   color: #606060;
}

body.tablet input.field
{
   /* FB 56156: change the size slightly for mobile so IE properly re-renders the
   inputs when we change to the tablet stylesheet */
   width: 181px;
   height: 18px; /* Make the input fields a bit smaller */
}

.logout_img
{
   vertical-align: middle;
}


/* 
   FB 84862: fix the size of the main ACS column to stop the filter controls from 
   jumping about and to stop the group descriptions from being so wide. 
*/
#acs-containing-table {
   width: 850px;
}

.application_copyright {
   font-family: arial, verdana, sans-serif;
   font-size: 12px;
   color: #000000;
}

.application_description
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #000000;
   text-decoration: none;
   width: 45em; 
}

.application_appname {
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 11px;
   color: #666666;
   text-decoration: none;
}

.application_link
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 14px;
   color: #000000;
}

.application_link_a, .group_name_a {
   color: #116da0;
   text-decoration: none;
}

.application_link_a:visited, .group_name_a:visited {
   color: #56208a;
}

.application_link_a:hover, .group_name_a:hover {
   color: #444444;
   text-decoration: underline;
}

.hires {
   display: none;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.1), only screen and (-o-min-device-pixel-ratio: 11/10), only screen and (min-resolution: 101dpi) {
   .lowres {
      display: none;
   }

   .hires {
      display: inline;
   }
}

.hide-loading-img.hires {
   display: none;
}

.application_icon
{
   text-align: center;
}

.application_name
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 15px;
   color: #087dbb;
   font-weight: bold;
   text-decoration: none
}

.group_name
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 15px;
   color: #087dbb;
   font-weight: bold;
   text-decoration: none
}

.groups_description
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #000000;
   text-decoration: none;
}

.groups_parentage_text
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #ffffff;
   text-decoration: none;
   padding-left: 16px;
   margin-top: 0;
   margin-bottom: 0;
}

.groups_parentage_link
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #ffffff;
   text-decoration: none;
}

.groups_parentage_link:hover {
   text-decoration: underline;
}

.groups_parentage_current
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #ffffff;
   text-decoration: none;
   font-weight: bold;
}

.error_heading
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 15px;
   color: #087dbb;
   font-weight: bold;
   text-decoration: none
}

.error_title
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 13px;
   color: #000000;
   font-weight: bold;
   text-decoration: none
}

.error_message
{
   font-size: 13px;
   color: #606060;
   text-decoration: none;
   text-align: center;
}

.details_title
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #000000;
   font-weight: bold;
   text-decoration: none;
}

.details_item
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #000000;
   text-decoration: none;
}

.builtins_title
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #000000;
   font-weight: bold;
   text-decoration: none;
}

.builtins_item
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #000000;
   text-decoration: none;
}

.starting_message
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 14px;
   color: #000000;
   text-decoration: none;
}

.configerror_table
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   border: 1px solid black;
   width: 90%;
   text-align: center;
}

.configerror_heading
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 15px;
   color: #087dbb;
   font-weight: bold;
   text-decoration: none;
}

.configerror_title
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 15px;
   color: #000000;
   text-decoration: none;
}

.configerror_error
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: red;
   text-decoration: none;
}

.configerror_warning
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: black;
   text-decoration: none;
}

.configerror_information
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: green;
   text-decoration: none;
}

.configerror_filename
{
   text-decoration: none;
}

.configerror_linenumber
{
   text-align: right;
}

.configerror_applicationname
{
   text-decoration: none;
}

.configerror_controlname
{
   text-decoration: none;
}

.configerror_description
{
   text-align: left;
   text-decoration: none;
}

.admindetails_title
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 14px;
   color: #000000;
   text-decoration: none;
}

.admindetails_table
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   border: 1px solid black;
   width: 90%;
   text-align: left;
}

.admindetails_heading
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 15px;
   color: #087dbb;
   font-weight: bold;
   text-decoration: none;
}

.admindetails_item
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   text-decoration: none;
}

.download_body
{
   display: none;
}

.acs_motd
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   color: #000000;
   text-decoration: none;
   text-align: center;
   font-size: 16px;
}


/* ACS Filtering */

.acs-filter-center > td {
    display: flex;
    justify-content: center;
}

#acs-filter-controls {
   display: flex;
   justify-content: left;
   flex-direction: column;
   margin-bottom: 0.5em;
}

#acs-filter-edit-holder {
    display: flex;
    justify-content: start;
    align-items: stretch;
    border: 1px solid rgb(118, 118, 118);
    border-radius: 2px;
    margin-right: 1em;
    width: 16em;
    height: 2em;
}

#acs-filter-edit-holder:focus-within {
    outline: 1px solid black;
    border: 1px solid black;
}

#acs-filter-clear-button {
    background-color: transparent;
    padding: 0.2em;
    border: none;
}

#acs-filter-clear-button:hover {
    background-color: rgb(217, 217, 217);
    cursor: pointer;
}

#acs-filter-input {
    padding-left: 0.33em;
    border: none;
    width: 100%;
    outline: none;
}

#acs-filter-group-selector {
   margin-top: 0.5em;
}

#acs-filter-group-selector > div {
   margin-bottom: 0.1em;
}

#acs-filter-message {
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 14px;
}


/* Indent marked items - to indicate which apps are children of groups */
.acs-filter-app-indent > td:first-child {
    padding-left: 30px; 
}

/* FB 89823: Override search match colours to make them less distracting */
mark {
    background-color: rgb(254, 254, 190);
}