:root {
    --primary-color: #263B53;
    --hot-background-color: #E6E9EB;
    --primary-contrast-color: #2A8ECC;
    --primary-dark-color: #014047;
    --text-color: #282829;
    --negative-color: #DE6363;
    --white-color: #ffffff;
    --gray-institucional: #8C8E90;
}

html,
body {
    height: 100%;
    background: linear-gradient(var(--hot-background-color) 231px, var(--white-color) 231px, var(--white-color) 100%);
    background-repeat: no-repeat;
    font-family: "Raleway", sans-serif;
}

html {
    overflow-y: scroll;
}

#container {
    min-height: 100%;
}

#content {
    padding: 0;
}

.content-error {
    display: flex;
    justify-content: center;
}

.col.s8 {
    margin-top: 195px;
}

ul {
    margin: 0;
}

h2 {
    font-size: 28px;
}

.btn.secondary {
    background-color: var(--gray-institucional);
}

.btn:hover {
    opacity: 0.8;
}

.btn.secondary:active,
.btn.secondary:focus,
.btn.secondary:hover {
    background-color: var(--gray-institucional);
}

.card h2 {
    background-color: unset;
    color: var(--body-fg);
    font-weight: 600;
    font-size: 1.8rem;
    padding-left: 0;
}

.card .inline-group h2 {
    letter-spacing: normal;
    text-transform: none;
}

a,
a:link,
a:visited,
a:hover {
    color: rgba(0, 0, 0, 0.54);
}

a:focus {
    text-decoration: none;
}

.orange {
    background-color: var(--primary-color) !important;
}

.module caption {
    background: var(--primary-color);
    border-radius: 16px 16px 0 0;
}

.module p {
    padding-left: 0;
}

a.historylink {
    display: block;
    float: left;
    padding: 3px 12px;
    background: var(--object-tools-bg);
    color: var(--object-tools-fg);
    font-weight: 400;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

a.historylink:hover {
    background: var(--primary-dark-color);
}

.changelink, .inlinechangelink {
    padding-left: 16px;
    background: url("../img/icon-changelink.18d2fd706348.svg") left 50% no-repeat;
    display: inline-flex;
    align-items: center;
}

.addlink {
    padding-left: 16px;
    background: url("../img/icon-addlink.d519b3bab011.svg") left 50% no-repeat;
    display: inline-flex;
    align-items: center;
}

#content-related .actionlist li  {
    margin-bottom: 14px;
}

.card .card-content {
    padding: 24px;
}

.module.card-content {
    padding: 0;
    border-radius: 20px;
}

.module.card-content .section {
    padding-left: 15px;
}

.card .card-title {
    font-size: 20px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.72);
}

.results.card-content .card-title {
    font-size: 28px;
}

fieldset.card,
#content-main .card {
    /* padding: 24px; */
    border-radius: 20px;
    /* Overflow can't be hidden. Select box will not be completely displayed */
    /* overflow: hidden; */
}

div.breadcrumbs {
    background: transparent;
    color: var(--gray-institucional);
    padding: 0;
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.button,
input[type=submit],
input[type=button],
.submit-row input,
a.button {
    padding: 0 2rem;
    background: var(--primary-color);
}

input[type=submit].default {
    background-color: var(--primary-color);
    z-index: 100;
}

.button.default:active,
input[type=submit].default:active,
.button.default:focus,
input[type=submit].default:focus,
.button.default:hover,
input[type=submit].default:hover {
    background: var(--primary-color);
}

.delete-confirmation form input[type="submit"] {
    padding: 0 2rem;
}

.delete-confirmation form .cancel-link {
    height: 36px;
    line-height: 36px;
    border-radius: 4px;
    padding: 0 2rem;
}

.object-tools a:link:hover {
    background: var(--primary-dark-color);
}

#footer {
    opacity: 0.2;
    transition: opacity 0.3s;
    bottom: 0;
    position: static;
    width: 100%;
}

#footer:hover {
    opacity: 0.4;
}

/* Content table */
table {
    overflow: hidden;
    border-radius: 20px;
}

thead th {
    background-color: rgba(0, 0, 0, 0);
    border-top: none;
    border-bottom: none;
    text-transform: none;
    font-size: 13px;
    line-height: 34px;
}

tbody th {
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 15px 12px;
}

td {
    border-top: 1px solid #eee;
    border-radius: 0;
    color: rgba(0, 0, 0, 0.54);
    padding: 0;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.highlight td:first-child {
    padding-left: 0;
}

td:first-child,
td:first-child a,
td:first-child a:visited {
    color: rgba(0, 0, 0, 0.72);
    font-weight: 500;
    padding-left: 12px;
}

td:first-child input[type="checkbox"] {
    left: -6px;
}

td a {
    display: inline-block;
    height: 100%;
    width: 100%;
    padding: 15px 10px;
}

thead th a:link,
thead th a:visited {
    color: var(--text-color);
}

thead th.sorted {
    background-color: transparent;
}

table thead th .text a:focus,
table thead th .text a:hover {
    background-color: transparent;
}

table thead th:focus,
table thead th:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

#logo-container .logo img {
    width: 230px;
}

ul.messagelist {
    margin-top: -48px;
}

#content-related {
    background: var(--a1-hot-background);
    color: var(--a1-text-gray);
    right: inherit;
    z-index: 500;
    border-radius: 20px;
    margin: 0;
    width: auto;
}

/* same as #changelist-filter .title  */
#content-related .module .title {
    color: #FFF;
    display: block;
    border-radius: 20px 20px 0 0;
    width: 100%;
    padding: 8px 24px;
    margin-bottom: 4px;
    background: var(--a1-primary);
    font-size: 20px;
    font-weight: 600;
}

#container {
    padding: 40px 40px 0 40px;
}

#container > .main {
    display: flex;
    flex-direction: row;
    flex: 1 0 auto;
    gap: 30px;
}

.content-flex {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.main > .content {
    flex: 1 0;
}

.container-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.header.container-flex {
    align-items: center;
    margin-bottom: 24px;
}

.calendarbox, .clockbox {
    z-index: 100;
}

.input-field:has(.custom-datetime) {
    margin-top: 24px;
}

.input-field:has(.custom-datetime) label {
    top: -32px;
    left: -24px;
}

.container-lateral-additional-content {
    flex: 0 0 240px;
}

.popup .container-lateral-additional-content {
    display: none;
}

.additional-content {
    display: flex;
    justify-content: center;
}

.lateral-menu {
    background-color: var(--primary-color);
    border-radius: 20px;
    padding: 16px;
    margin-right: 24px;
    position: sticky;
    top: 24px;
}

.lateral-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lateral-menu li {
    margin-bottom: 8px;
}

.lateral-menu a {
    display: flex;
    align-items: center;
    color: var(--white-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.lateral-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lateral-menu a i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    text-align: center;
}

.lateral-menu a span {
    font-size: 14px;
    font-weight: 500;
}

/* Account */
a.user-account {
    color: rgba(140, 142, 144, 1);
    float: right;
    padding-top: 24px;
    transition: color 0.3s;
}

a.user-account:hover {
    color: rgba(140, 142, 144, 0.8)
}

.user-account i {
    font-size: 55px;
}

.welcome-msg {
    padding: 16px;
    width: 300px;
    color: rgba(0, 0, 0, 0.72);
}

.welcome-msg span {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.44);
}

#user-dropdown {
    overflow: visible;
}

#user-dropdown::after {
    content: "";
    position: absolute;
    top: -8px;
    right: 13px;
    border-style: solid;
    border-width: 0 8px 8px;
    border-color: #fff transparent;
    display: block;
    width: 0;
    z-index: 10000;
}

.dropdown-content li>a,
.dropdown-content li>span {
    color: rgba(0, 0, 0, 0.54);
    font-size: 14px;
}

.select-wrapper {
    display: flex;
    justify-content: flex-end;
    flex-direction: row-reverse;
}

#content-main .errornote {
    padding: 10px 20px;
    margin: 0.5em 0 10px 0;
}

.input-field .selector-available .selector-filter {
    margin: 0 !important;
    color: inherit !important;
}

.selector-available .selector-filter label {
    top: -20px;
}

.selector-available .selector-filter label {
    top: -20px;
}

.form-row.field-password .help a {
    color: var(--primary-dark-color);
}

/* ----------End of Pickers Styling ----------*/

/* Responsive fixes */
@media (max-width: 1100px) {
    #content {
        padding: 0 !important;
    }

    #logo-container .logo img {
        width: 80%;
    }

    .lateral-menu a i {
        padding: 0 12px;
    }

    .card .card-content {
        padding: 16px;
    }

}