/*
 * The Chihlee University Single Sign-On Portal module.
 * 
 * @copyright 2019 Steps Inc.  All rights reserved.
 * @author imacat <imacat@steps.com.tw>
 * @version 0.0.1
 */

/* The website list */
.sso-websites {
    display: flex;
}
.sso-websites .sso-website {
    border: 1px solid silver;
    border-radius: 9px;
    width: 80px;
    margin: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    color: rgb(73, 80, 87);
    background-color: white;
    position: relative;
    display: inline-block;
    text-decoration: none;
}
.sso-websites .sso-website:hover {
    color: black;
    background-color: rgb(248, 249, 250);
}
.sso-websites .sso-website-inactive {
    background-color: #adb5bd;
}
.sso-websites .sso-website-inactive:hover {
    background-color: #adb5bd;
}
.sso-websites .sso-website .sso-website-inactive-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bolder;
    text-align: center;
}
.sso-websites .sso-website .sso-website-name {
    margin: 0;
    width: 80px;
    height: 44px;
    overflow: hidden;
}
.sso-website-icon {
    width: 80px;
    height: 80px;
}


/* The success and error message */
.sso-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid silver;
    border-radius: 9px;
    margin: 0.5em;
    padding: 0.5em 1em;
}
.sso-success p {
    margin: 0;
}
.sso-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid silver;
    border-radius: 9px;
    margin: 0.5em;
    padding: 0.5em 1em;
}
.sso-error p {
    margin: 0;
}

/* The button group */
.sso-button-group {
    margin: 1em 0.5em;
}
.sso-button-group .sso-button {
    background-color: #0b7a9c;
    color: white;
    border: 0;
    font-size: inherit;
    margin: 0 0 0 -1px;
    padding: 0.5em 1em;
    text-decoration: none;
    display: inline-block;
}
.sso-button-group .sso-button:hover {
    background-color: #075066;
    cursor: pointer;
}
.sso-button-group .sso-button:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.sso-button-group .sso-button:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.sso-button-group .sso-button i {
    margin-right: 0.5em;
}
.sso-button-group .sso-button-delete {
    background-color: #dc3545;
}
.sso-button-group .sso-button-delete:hover {
    background-color: #c82333;
}
.sso-button-group .sso-button-disabled {
    background-color: #adb5bd;
}
.sso-button-group .sso-button-disabled:hover {
    background-color: #adb5bd;
}
.sso-button-group .sso-button-sort {
    border: 1px solid #0b7a9c;
    background-color: white;
    color: #0b7a9c;
}
.sso-button-group .sso-button-sort:hover {
    border: 1px solid #075066;
    background-color: white;
    color: #075066;
}
.sso-button-group .sso-button-sort i {
    margin-right: 0;
}
.sso-sort-active {
    background-color: rgba(0, 0, 0, .075);
}

/* A standard item list */
.sso-list {
    background-color: white;
    border: 1px solid silver;
    border-radius: 9px;
    margin: 0.5em;
    padding: 0;
}
.sso-list ul {
    margin: 0;
    padding: 0;
}
.sso-list ul li {
    border-width: 1px;
    border-style: solid;
    border-color: silver transparent transparent transparent;
    margin: -1px;
    padding: 0.5em;
    list-style-type: none;
}
.sso-list ul:first-child li:first-child {
    border: 1px solid transparent;
}
.sso-list ul li a {
    display: block;
    margin: -0.5em;
    padding: 0.5em;
    list-style-type: none;
    background-image: url(/common/images/action-arrow.png);
    background-repeat: no-repeat;
    background-position: right;
    text-decoration: none;
    color: inherit;
}
.sso-list ul li a:hover {
    color: #1D6EEC;
}
.sso-status-inactive {
    font-size: 0.833em;
    background-color: gray;
    color: white;
    border-radius: 3px;
    margin-right: 0.5em;
    padding: 1px 5px;
}

/* A data record */
.sso-data-record {
    background-color: white;
    border: 1px solid silver;
    border-radius: 9px;
    margin: 0.5em;
    padding: 0;
}
.sso-data-record h2 {
    margin: 0;
    padding: 0.5em;
}
.sso-data-record ul {
    margin: 0;
    padding: 0;
}
.sso-data-record ul li {
    border-top: 1px solid silver;
    margin: 0;
    padding: 12px;
    list-style-type: none;
}
.sso-data-record ul li label {
    font-size: 0.833em;
}

/* The form */
.sso-form-group {
    background-color: white;
    border: 1px solid silver;
    border-radius: 9px;
    margin: 0.5em;
    padding: 0;
}
.sso-form-group h2 {
    margin: 0;
    padding: 0.5em;
}
.sso-form-group ul {
    margin: -1px;
    padding: 0;
    border-style: solid;
    border-width: 1px 0 0 0;
    border-color: silver transparent transparent transparent;
}
.sso-form-group ul li {
    border-style: solid;
    border-width: 1px;
    border-color: transparent transparent silver transparent;
    margin: -1px 0 0 0;
    padding: 12px;
    list-style-type: none;
}
.sso-form-group ul li:last-child {
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
}
div div .sso-form-error-field {
    border: 1px solid red;
}
.sso-form-hidden-field {
    display: none;
}
.sso-form-group label {
    font-size: 0.833em;
}
.sso-form-group .sso-form-required {
    color: red;
}
.sso-form-text-box {
    /* (8px+2px)*2: the left-right padding and border of sso-form-control */
    margin-right: 20px;
}
.sso-form-control {
    background-color: #E1F1FA;
    width: 100%;
    padding: 3px 8px;
    border-radius: 5px;
}
.sso-form-group textarea {
    height: 5em;
}
.sso-hint {
    margin: 0;
    color: gray;
    font-style: italic;
}
.sso-errmsg {
    color: red;
    margin: 0;
    padding: 0;
    clear: both;
    font-size: 0.833em;
}

/* The delete confirmation dialog */
.sso-del-confirm {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
.sso-del-confirm-wallpaper {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
}
.sso-del-confirm-dialog {
    position: relative;
    margin: 2em auto;
    background-color: white;
    border: 1px solid silver;
    max-width: 500px;
    padding: 0.5em;
    border-radius: 9px;
}
.sso-del-confirm-dialog h2 {
    font-family: sans-serif;
    margin: 0 0 0.5em 0;
    padding: 0;
}
.sso-del-confirm-dialog p {
    margin: 0;
    padding: 0;
}
.sso-del-confirm-buttons {
    margin-top: 1.5em;
}
.sso-del-confirm-buttons input {
    font-size: inherit;
    padding: 0.1em 0.5em;
    border: 0;
    cursor: pointer;
}
.sso-del-confirm-buttons input:first-child {
    background-color: red;
    color: white;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.sso-del-confirm-buttons input:last-child {
    background-color: gray;
    color: white;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* The illustration */
.sso-illustration h2 {
    font-weight: bolder;
}
.sso-illustration pre {
    background-color: #E9ECEF;
    padding: 1em;
}
.sso-illustration var {
    color: #dc3545;
    font-weight: bolder;
}
