:root {
    --ppi-blue: #1e9dd8;
    --cta-orange: #ffb10e;
    --box-shadow-color: #00000078;
    --light-box-shadow-color: #00000038;
    --background-color: #ececec;
    --warning-color: #ffe700;
    --disabled-color: #008CBA;
    --hover-color: #007095;
}

:focus {
    outline: -webkit-focus-ring-color auto 0;
}

.disabled a,
a.disabled {
    pointer-events: none;
}

a:hover {
    color: #15848F;
}

a {
    color: #1798A5;
}

.side-nav li a:not(.button) {
    color: #15848F;
}

.side-nav li a:not(.button):hover {
    color: #15848F;
}

header {
    background-color: #D33C44;
    color: #ffffff;
    font-size: 30px;
    height: 84px;
    line-height: 64px;
    padding: 16px 0px;
    box-shadow: 0px 1px rgba(0, 0, 0, 0.24);
}

header .header-title {
    padding-left:80px
}

legend {
    color:#15848F;
}

.row {
    max-width: 80rem;
}

.actions.columns {
    margin-top:1rem;
    border-left: 5px solid #15848F;
    padding-left: 15px;
    padding: 32px 20px;
}

.actions.columns h3 {
    color:#15848F;
}

.related table {
    border: 0;
    width: 100%;
    table-layout: fixed;
}

.index table thead {
    height: 3.5rem;
}

.header-help {
    float: right;
    margin-right:2rem;
    margin-top: -80px;
    font-size:16px;
}

.header-help span {
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    display: inline-block;
    padding: 0.25rem 0.5rem 0.375rem;
    font-size: 0.8rem;
    background-color: #0097a7;
    color: #FFF;
    border-radius: 1000px;
}

.header-help a {
    color: #fff;
}

ul.pagination li a {
    color: rgba(0, 0 ,0 , 0.54);
}

ul.pagination li.active a {
    background-color: #DCE47E;
    color: #FFF;
    font-weight: bold;
    cursor: default;
}
ul.pagination .disabled:hover a {
    background: none;
}

.paginator {
    text-align: center;
}

.paginator ul.pagination li {
    float: none;
    display: inline-block;
}

.paginator p {
    text-align: right;
    color: rgba(0, 0 ,0 , 0.54);
}

.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

.form .error-message {
    display: block;
    padding: 0.375rem 0.5625rem 0.5625rem;
    margin-top: -1px;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: normal;
    font-style: italic;
    color: rgba(0, 0, 0, 0.54);
}

.required > label {
    font-weight: bold;
}
.required > label:after {
    content: ' *';
    color: #C3232D;
}

select[multiple] {
    min-height:150px;
    background: none;
}
input[type=checkbox],
input[type=radio] {
    margin-right: 0.5em;
}

.date select,
.time select,
.datetime select {
    display: inline;
    width: auto;
    margin-right: 10px;
}

.error label,
.error label.error {
    color: #C3232D;
}

.view h2 {
    color: #6F6F6F;
}

.view .columns.strings {
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
    margin-right:0.7rem;
}

.view .numbers {
    background-color: #B7E3EC;
    color: #FFF;
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
    margin-right: 0.7rem;
}

.view .columns.dates {
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
    margin-right:0.7rem;
    background-color:#DCE47E;
    color: #fff;
}

.view .columns.booleans {
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
    margin-right:0.7rem;
    background-color: #8D6E65;
    color: #fff;
}

.view .strings p {
    border-bottom: 1px solid #eee;
}
.view .numbers .subheader, .view .dates .subheader {
    color:#747474;
}
.view .booleans .subheader {
    color: #E9E9E9
}

.view .texts .columns {
    margin-top:1.2rem;
    border-bottom: 1px solid #eee;
}

/** Notices and Errors **/
.cake-error,
.cake-debug,
.notice,
p.error,
p.notice {
    display: block;
    clear: both;
    background-repeat: repeat-x;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
}

.cake-debug,
.notice,
p.notice {
    color: #000000;
    background: #ffcc00;
}

.cake-error,
p.error {
    color: #fff;
    background: #C3232D;
}

pre {
    background: none repeat scroll 0% 0% #FFF;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
    margin: 15px 0px;
    color: rgba(0, 0 ,0 , 0.74);
    padding:5px;
}

.cake-error .cake-stack-trace {
    margin-top:10px;
}

.cake-stack-trace code {
    background: inherit;
    border:0;
}

.cake-code-dump .code-highlight {
    display: block;
    background-color: #FFC600;
}

.cake-error a,
.cake-error a:hover {
    color:#fff;
    text-decoration: underline;
}

.checks {
    padding:30px;
    color: #626262;
    background-color: #B7E3EC;
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
    margin-bottom: 2em;
}

.checks h4 {
    margin-bottom: 1.5rem;
}

.checks hr {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.checks .success,
.checks .problem {
    margin-left: 10px;
}
.checks .success:before,
.checks .problem:before {
    line-height: 0px;
    font-size: 28px;
    height: 12px;
    width: 12px;
    border-radius: 15px;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    left: -11px;
}

.checks .success:before {
    content: "✓";
    color: green;
    margin-right: 9px;
}

.checks .problem:before {
    content: "✘";
    color: red;
    margin-right: 9px;
}

.top-bar.expanded .title-area {
    background: #6891CC;
    height: 100%;
}

.top-bar.expanded, .top-bar,.top-bar-section ul li,.top-bar-section li:not(.has-form) a:not(.button) {
    background: #1E9DD8;
    float: left;
    height: 100%;
}

.top-bar-section li:not(.has-form) a:not(.button):hover {
    background-color: #308e97;
    background: #308e97;
}

.side-nav li.heading {
    color: #1798A5;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.4375rem 0.875rem;
}

#actions-sidebar {
    background: #fafafa;
}

.index table {
    margin-top: 0rem;
    border: 0;
    width: 100%;
    table-layout: fixed;
}

table {
    background: #fff;
    margin-bottom: 1.25rem;
    border: none;
    table-layout: fixed;
    width: 100%;
}

table thead {
    background: none;
}

table tr {
    border-bottom: 1px solid #ebebec;
}

table thead tr {
    border-bottom: 1px solid #1798A5;
}

table tr th {
    padding: 0.5625rem 0.625rem;
    font-size: 0.875rem;
    color: #1798A5;
    text-align: left;
    border-bottom: 2px solid #1798A5;
}

table tr:nth-of-type(even) {
    background: none;
}

fieldset {
    border: none;
    padding: 1.25rem;
    margin: 1.125rem 0;
}

fieldset legend {
    border-bottom: 2px solid #1798A5;
    width: 100%;
    line-height: 2rem;
}

.form button[type="submit"] {
    float: right;
    text-transform: uppercase;
    box-shadow: none;
}

.form button:hover, .form button:focus {
    background: #BE840B;
    box-shadow: none;
}

button {
    background: #ffb10e;
    padding: 0px 12px;
    border-radius: 2px;
    border: 1px solid #00000038;
}
.button-style-link {
    background: #ffb10e;
    padding: 0px 12px;
    border-radius: 2px;
    border: 1px solid #00000038;
    text-align:right;
    width: 115px;
    margin-left: 270px;
}

.link-button {
    background: #ffb10e;
    padding: 0px 12px;
    border-radius: 2px;
    border: 1px solid #00000038;
    float: right;
}

.link-button-235wide {
    position: relative;
    background: #ffb10e;
    padding: 0px 12px;
    border-radius: 2px;
    border: 1px solid #00000038;
    width: 235px;
    margin-left: 165px;
    margin-top: 5px;
}
.link-button-item-status-edit {
    margin: 25px 0px 0px 0px;
}

.link-button-item-status-add {
    margin: 25px 950px -26px 0px;
}

.link-button-item-status-index {
    margin: 25px 0px 0px 0px;
}
.add-item-status-container {
    width: 800px;
    background: none repeat scroll;
    overflow-y;
}

.edit-item-status-container {
    width: 800px;
}

.content-container {
    padding: 0px 12px;
    width: 450px;
}
.author-container {
    padding: 0px 12px;
    width: 450px;
}

.item-status {
    width: 400px;
}

.link-button-source-edit {
    margin: 25px 250px 0px 0px;
}

.link-button-rights-edit {
    margin: 10px 142px 0px 0px;
}

.link-button-source-add {
    margin: 25px 250px 0px 0px;
}

.link-button-author-edit {
    margin: 25px 250px 0px 0px;
}
.link-button-solvingTime-edit {
    margin: 25px 250px 0px 0px;
}

.add-source-container {
    width: 800px;
}
.edit-source-container {
    width: 800px;
}
.edit-right-container {
    width: 450px;
}

.edit-solvingTime-container {
    width: 800px;
}

.description-column {
    padding: 10px 12px;
    width: 175px;
}

.id-column {
    padding: 10px 12px;
    width: 30px;
}

.id-column-reference-standard {
    padding: 10px 12px;
    width: 45px;
}
.code-column {
    padding: 10px 12px;
    width: 70px;
}

.code-column-reference-standard {
    padding: 10px 12px;
    width: 110px;
}

.format-container {
    padding: 0px 12px;
    width: 450px;
    background: none repeat scroll;
    overflow-y: scroll;
}

.reference-standard-container {
    width: 800px;
}

.id-column-source {
    padding: 10px 12px;
    width: 40px;
}

.code-column-source {
    padding: 10px 12px;
    width: 96px;
}

.code-column-item-status {
    padding: 10px 12px;
    width: 90px;
}

.description-column {
    padding: 10px 12px;
    width: 165px;
}

.description-item-status-column-column {
    padding: 10px 12px;
    width: 120px;
}

.description-column-reference-standard {
    padding: 10px 12px;
    width: 165px;
}

.description-column-author {
    padding: 10px 12px;
    width: 388px;
}

.format-container-source {
    padding: 0px 12px;
    width: 500px;
    height: 140px;
    oveflow: scroll;
    border: #0c0c0c;
    border-width: 2px;
    /*background: none repeat scroll;
    overflow-y: scroll;
    */


}
.uploads{
    width:100%;
}

#instructions {
    min-height: 92%; /* full height almost always */
    height: 100%;
    width:85%;
}
#upload-file{
    width:85%;
    top-margin: 50px;
}
#upload-form{
    width:45%;
}
#filetype{
    width:38%;
}
#upload-button{
    width:15%;
    top-margin: 50px;

}

#table-wrapper {
    position:relative;
}
#table-scroll {
    height:auto;
    overflow:auto;
    margin-top:20px;
}
#table-wrapper table {
    width:100%;

}
#table-wrapper table * {
    background:white;
    color:black;
}
#table-wrapper table thead th .text {
    position:absolute;
    top:-20px;
    z-index:2;
    height:20px;
    width:35%;
    border:1px solid red;
}

#table-wrapper {
    position:relative;
}

#table-wrapper table {
    width:100%;

}
#table-wrapper table * {
    background:white;
    color:black;
}
#table-wrapper table thead th .text {
    position:absolute;
    top:-20px;
    z-index:2;
    height:20px;
    width:35%;
    border:1px solid red;
}

#table-wrapper {
    position:relative;
}

#table-wrapper table {
    width:100%;

}
#table-wrapper table * {
    background:white;
    color:black;
}
#table-wrapper table thead th .text {
    position:absolute;
    top:-20px;
    z-index:2;
    height:20px;
    width:35%;
    border:1px solid red;
}

div.message {
    text-align: center;
    cursor: pointer;
    display: block;
    font-weight: normal;
    padding: 0 1.5rem 0 1.5rem;
    transition: height 300ms ease-out 0s;
    background-color: #a0d3e8;
    color: #626262;
    top: 15px;
    right: 15px;
    z-index: 999;
    overflow: hidden;
    height: 50px;
    line-height: 2.5em;
}

div.message:before {
    line-height: 0px;
    font-size: 20px;
    height: 12px;
    width: 12px;
    border-radius: 15px;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    left: -11px;
    background-color: #FFF;
    padding: 12px 14px 12px 10px;
    content: "i";
    color: #a0d3e8;
}

div.message.error {
    background-color: #C3232D;
    color: #FFF;
}

div.message.error:before {
    padding: 11px 16px 14px 7px;
    color: #C3232D;
    content: "x";
}
div.message.hidden {
    height: 0;
}


.vertical-table th {
    padding: 0.5625rem 0.625rem;
    font-size: 0.875rem;
    color: #1798A5;
    border: none;
    text-align: left;
}

.vertical-table {
    vertical-align: middle;
}

.vertical-table td {
    text-align: right;
}

.content {
    padding: 2rem;
}

span.letterClass
{
    color: #00FF00;
    font-size: 5px;
    font-weight: bold;
    text-decoration: underline;
    font-size: xx-large;
}

/* Use 'one true layout' methods to get equal height columns */
.container {
    overflow: scroll;
    min-height: 92%; /* full height almost always */
    height: 100%;
}

#table-wrapper {
    position:relative;
}

#table-wrapper table {
    width:100%;

}
#table-wrapper table * {
    background:white;
    color:black;
}
#table-wrapper table thead th .text {
    position:absolute;
    top:-20px;
    z-index:2;
    height:20px;
    width:35%;
    border:1px solid red;
}

.author-container {
    width: 800px;
}

.edit-author-container {
    padding: 0px 12px;
    width: 455px;
    height: auto;
    oveflow: scroll;
    /*background: none repeat scroll;
    overflow-y: scroll;
    */

}
.link-button {
    background: #ffb10e;
    padding: 0px 12px;
    border-radius: 2px;
    border: 1px solid #00000038;
}

.id-column {
    padding: 10px 12px;
    width: 30px;
}

.code-column {
    padding: 10px 12px;
    width: 67px;
}

.description-column {
    padding: 10px 12px;
    width: 175px;
}

.content-container {
    padding: 0px 12px;
    width: 450px;
}

/* Force equal height by overflowing */
.content,
#actions-sidebar {
    margin-bottom: -99999px;
    padding-bottom: 99999px;
}
@media(max-width: 640px) {
    #actions-sidebar {
        padding-bottom: 2rem;
        margin-bottom: 0;
    }
}

.content h3 {
    color: #be140b;
    padding-bottom: 0.5rem;
    margin-bottom: 20px;
}

.content h4 {
    color: #be140b;
    padding-bottom: 0.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #be140b;
}

.content .related h4 {
    color: #4d8f97;
    padding-bottom: 0.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 0px;
}

table td {
    vertical-align: top;
    word-break: break-all;
}

/* Menu css (from DOOCS) */
#menu-left {
    clear: both;
    float: left;
    margin: 0px 10px;
    position: relative;
    z-index: 50;
}
#menu-left .left-sidebar {
    border-radius: 3px;
    float: left;
    padding: 0px;
    position: relative;
    width: 230px;
    z-index: 75;
}
#menu-left .left-sidebar H2 {
    clear: both;
    color: white;
    display: block;
    font-size: 14px;
    line-height: 130%;
    margin: 8px 12px;
    padding: 0;
}
#menu-left .left-sidebar UL {
    border: 1px solid #252525;
    border-radius: 5px 5px 5px 5px;
    list-style: none outside none;
    margin: 0 5px;
    padding: 0;
}
#menu-left .left-sidebar UL LI {
    border: 0 solid #3564B2;
    font-size: 12px;
    line-height: 20px;
    overflow: visible;
    position: relative;
    z-index: 100;
}
#menu-left .left-sidebar UL LI:hover {
    position: relative;
    z-index: 250;
    background-color: blue;
}
#menu-left .left-sidebar UL LI.first A, #menu-left .left-sidebar UL LI.first SPAN.left-sidebar-top_level {
    border-radius: 5px 5px 0 0;
}
#menu-left .left-sidebar UL LI.last A, #menu-left .left-sidebar UL LI.last SPAN.left-sidebar-top_level {
    border-radius: 0 0 5px 5px;
}
#menu-left .left-sidebar UL A, #menu-left .left-sidebar UL SPAN.left-sidebar-top_level {
    background: none repeat scroll 0 0 #666666;
    border-bottom: 1px solid #252525;
    color: white;
    display: block;
    width: 100%;
}
#menu-left .left-sidebar UL A STRONG, #menu-left .left-sidebar UL SPAN.left-sidebar-top_level STRONG {
    display: block;
    line-height: 100%;
    margin: 0 5px;
    padding: 5px 0;
}
#menu-left .left-sidebar UL LI:hover A, #menu-left .left-sidebar UL LI:hover SPAN.left-sidebar-top_level, #menu-left .left-sidebar UL A:hover {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: #3564B2 #3564B2 #252525;
    border-image: none;
    border-style: solid;
    border-width: 0 0 1px;
    text-decoration: none;
    z-index: 360;
    background-color: #3564B2;
}
#menu-left .left-sidebar UL LI .sub-menu {
    border: medium none;
    box-shadow: 3px 3px 4px #000000;
    display: none;
    font-size: 12px;
    position: absolute;
    right: -90px;
    top: -70px;
    width: 160px;
    z-index: 3;
    background-color: #4f75ab;
}
.left-sidebar UL LI .sub-menu {
    display: block;
}
#menu-left .left-sidebar P.sub-menu {
    font-size: 12px;
    margin-bottom: 1px;
    margin-top: 3px;
}
#menu-left .left-sidebar UL LI:hover .sub-menu, LI:hover .sub-menu, A:hover .sub-menu, SPAN:hover .sub-menu, LI:hover .sub-box {
    display: block;
    z-index: 350;
}
#menu-left .left-sidebar UL LI .sub-menu A {
    background: none repeat scroll 0 0 transparent;
    border-bottom: 1px solid #3763A0;
    border-top: 1px solid #6891CC;
    z-index: 400;
}
#menu-left .left-sidebar UL LI .sub-menu .first A {
    border-top: medium none;
}
#menu-left .left-sidebar UL LI .sub-menu .last A {
    border-bottom: medium none;
}
#menu-left .left-sidebar UL LI .sub-menu A SPAN {
    display: block;
    padding: 2px 10px;
    z-index: 410;
}
#menu-left .left-sidebar UL LI .sub-menu A:hover {
    background: none repeat scroll 0 0 #1C4FAD;
}
#menu-left .main-menu .sub-menu LI:hover A, .main-menu-sublinolink {
    background: none repeat scroll 0 0 transparent;
    color: white;
    display: block;
    float: none;
    font-size: 11px;
    font-weight: normal;
    margin: 0;
    padding: 5px 0;
    text-align: center;
}
#menu-left .main-menu .sub-menu LI A, .main-menu-sublinolink {
    left: 0px;
    position: relative;
}
#menu-left .left-sidebar UL LI .sub-menu LI UL.sub-level {
    background: none repeat scroll 0 0 #2C58A8;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 0 0 5px #333333;
    display: none;
    padding: 0;
    position: absolute;
    right: -150px;
    top: 0;
    width: 200px;
}
#menu-left .main-menu LI UL.sub-menu LI UL.sub-level LI.first, #menu-left .main-menu LI UL.sub-menu LI UL.sub-level LI.first A {
    border-radius: 5px 5px 0 0;
}
#menu-left .left-sidebar UL LI .sub-menu LI:hover UL.sub-level {
    display: block;
    z-index:420;
}
.top-bar #header-logo {
    margin: auto;
    padding-top: 15px;
    text-align: center;
}
.top-bar .name {
    text-align: center;
}

/* tooltips */
.has-tooltip-if-disabled.has-tooltip:hover>.tooltip {
        visibility: hidden;
}
.has-tooltip-if-disabled.has-tooltip:hover:disabled>.tooltip {
    visibility: visible;
}
.has-tooltip {
    position: relative;
}
.has-tooltip>.tooltip {
    visibility: hidden;
    position: absolute;
    display: inline-block;
    opacity: 0;
    transition: opacity .2s;
}
.has-tooltip:hover>.tooltip {
    visibility: visible;
    opacity: 1;
}
.tooltip {
    border-radius: 3px;
    width: 200px;
    background-color: rgba(0,0,0,100);
}
.tooltip::after {
    border-width: 5px;
    border-style: solid;
    content: "";
    position: absolute;
}
.tooltip-left {
    left:0%;
    margin-left: -205px;
    top: 0%;
    margin-top: -5%;
}
.tooltip-left::after {
    top: 10%;
    left: 100%;
    margin-left: 0px;
    border-color: transparent transparent transparent rgba(0,0,0,1);
}
.tooltip-right {
    right:0%;
    margin-right: -205px;
    top: 0%;
    margin-top: -5%;
}
.tooltip-right::after {
    top: 10%;
    right: 100%;
    margin-right: 0px;
    border-color: transparent rgba(0,0,0,1) transparent transparent;
}
button.disabled, button[disabled], .button.disabled, .button[disabled] {
    opacity: 1;
}
