@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
    font-size: 1em;
    line-height: 1.4;
}

.header h1 {
    display: inline-block;
}

.header h1 a {
    background-image: url('../img/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    color: #000;
    display: block;
    font-size: 16px;
    font-weight: bold;
    height: 50px;
    margin: 20px;
    padding: 15px 10px 10px 70px;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.header {
    position: relative;
}

.auth .page {
    margin: auto;
    max-width: 1000px;
    width: 100%;
}

.page {
    padding: 10px;
}

.error {
    background: #ffbbbb;
    color: #ff0000;
}

.success {
    background: #bbffbb;
    color: #000;
}

.warning, .warningmsg {
    background: #FEC065;
    color: #000;
}

.error, .success, .warning, .warningmsg {
    margin: 0 !important;
    text-align: center;
    padding: 9px 20px;
}

.error, .success, .warning {
    animation: disappear 5s forwards;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    z-index: 10000;
}

.error {
    z-index: 10001;
}

@keyframes disappear {
    80% {
      transform: translateX(-50%);
    }
    100% {
      transform: translate(-50%,-100%);
    }
}

/*
 * MENU
 */
 #menu_icon {
    height: 30px;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    z-index: 1001;
}

#menu_icon .line {
    background: #FA3343;
    box-sizing: border-box;
    height: 4px;
    margin: 6px 0;
    width: 100%;
    transition: all 0.5s ease-out;
}

.menu_open #menu_icon .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px); 
}

.menu_open #menu_icon .line:nth-child(2) {
    opacity: 0;
}

.menu_open #menu_icon .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px); 
}

.menu {
    background: #000;
    display: none;
    position: absolute;
    right: 0;
    top: 70px;
    width: calc(100% - 70px);
    z-index: 1000;
}

.menu_open .menu {
    display: block;
}

.menu .icons {
    background: #E3EBF0;
    text-align: right;
}

.menu .icons a {
    display: inline-block;
    height: 36px;
    margin: 5px 10px;
    overflow: hidden;
    text-indent: 100%;
    width: 36px;
}

.menu .items a, .menu .items div {
    color: #fff;
    display: block;
    padding: 10px;
    text-align: right;
    text-decoration: none;
}

.menu .items div {
    background: #FA3343;
    color: #fff;
    font-weight: bold;
    text-align: left;
}

.menu .items div a {
    padding: 0;
    text-align: left;
}

#menu_notifications {
    background-image: url('../img/icons/notifications.png');
}

#menu_profile {
    background-image: url('../img/icons/account.png');
}

#menu_logout {
    background-image: url('../img/icons/logout.png');
}

/*
 * AUTHENTICATION
 */

.login .col {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    width: 400px;
}

.login .col:first-child {
    margin-bottom: 40px;
    text-align: right;
}

.login .fabio {
    width: 300px;
}

.login h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.login label {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 15px;
    width: 100px;
}

.login #lblemail, .login #lblpass {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
    height: 60px;
    text-indent: -5000px;
    vertical-align: middle;
}

.login #lblemail {
    background-image: url('../img/username.png');
}

.login #lblpass {
    background-image: url('../img/password.png');
}

.login input[type=text], .login input[type=password] {
    background-color: #EFF4F3;
    border: 0;
    border-radius: 20px;
    height: 40px;
    padding: 3px 15px;
    vertical-align: middle;
    width: 200px;
}

.login input[type=submit] {
    background: #FA3343;
    border: 0;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    height: 60px;
    margin-top: 10px;
    width: 60px;
}

.login #pwd_reset {
    font-size: 12px;
    margin-bottom: 40px;
}

.login #btn_register, .login input.btn_send {
    width: 100px;
}

.login #view_pwd {
    background: url('../img/icons/eye.svg');
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    height: 32px;
    margin-left: 10px;
    vertical-align: middle;
    width: 32px;
}

/*
 * END AUTHENTICATION
 */

.bubble {
    border: 3px solid #E3EBF0;
    position: relative;
    line-height: 30px;
    width: 100%;
    border-radius: 40px;
    padding: 20px;
    text-align: center;
    max-width: 100%;
}
  
.bubble:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 24px solid transparent;
    border-right: 12px solid #E3EBF0;
    border-top: 12px solid transparent;
    border-bottom: 20px solid #E3EBF0;
    left: 100px;
    top: -34px;
}

h2, h3 {
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
}

h2 {
    margin-bottom: 10px;
}

h3 {
    border-radius: 20px;
}

.breadcrumbs {
    font-size: 10px;
    margin-bottom: 10px;
}

.subnav div {
    display: inline-block;
    width: 50%;
}

.subnav input[type=button], .subnav a {
    background: none;
    border: 0;
    color: #000;
    cursor: pointer;
    display: block;
    font-size: 14px;
    padding: 0 10px 10px 0;
    text-decoration: underline;
}

.subnav .right input[type=button] {
    text-align: right;
    width: 100%;
}

.data .blocks {
    text-align: center;
}

.data .blocks div {
    height: 180px;
    margin: auto;
    width: 180px;
}

.data .blocks a {
    border: 2px solid #000;
    color: #000;
    display: inline-block;
    height: 250px;
    margin: 2px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    width: 250px;
}

.data .blocks a img{
    width: 180px;
}

table {
    width: 100%;
}

table td, table th {
    padding: 5px;
}

input[type=text] {
    padding: 3px;
}

input[type=submit], input[type=button], .btn {
    background: #FA3343;
    border: 1px solid #91000c;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    padding: 10px;
    text-decoration: none;
}

input[type=submit]:disabled, input[type=button]:disabled {
    background: #ffa2aa;
}

.autoaction .actions a {
    width: auto;
}

.block {
    border: 1px solid #000;
    margin-bottom: 20px;
}

.block > div, .block > form {
    padding: 10px;
}

label {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 15px;
    width: 200px;
}

.longlabel label {
    max-width: 100%;
    vertical-align: middle;
    width: 400px;
}

.extralonglabel label {
    max-width: 100%;
    vertical-align: middle;
    width: 600px;
}

.extralonglabel input[type=checkbox] {
    margin-right: 10px;
}

.actions {
    position: absolute;
    right: 10px;
    top: 5px;
}

.actions a {
    display: inline-block;
    width: 32px;
}

table tr:nth-child(odd) {
    background: #E3EBF0;
}

.rows>* {
    margin: 0 -10px;
    padding: 10px;
    position: relative;
}

table tr:nth-child(odd), .rows>*:nth-child(odd) {
    background: #E3EBF0;
}

.rows>*:first-child {
    margin-top: -10px;
}

.rows>*:last-child {
    margin-bottom: -10px;
}

.rows label {
    margin: 0;
}

.block h4, tr.subheader { /* Overwrite .rows */
    background: #000 !important;
    color: #fff;
    padding: 5px 10px;
}

.autoaction .rows {
    padding: 14px 10px;
}

.lnkdelete, h4 .right {
    float: right;
}

h4 .right a img {
    margin-left: 5px;
    max-width: 24px;
}

.right {
    text-align: right;
}

.left {
    text-align: left;
}

.center {
    text-align: center;
}

b {
    font-weight: bold;
}

/* Home */
.photo_home .block {
    max-width: 800px;
}

.photo_home table td:nth-child(1) {
    width: 40%;
}

.photo_home table td.num {
    text-align: right;
    white-space: nowrap;
    width: 30%;
}

.photo_home .movable {
    overflow-x: auto;
    padding: 0;
}
.photo_home .movable td {
    padding-right: 20px;
}

/* Person data */
#person_selector a {
    display: inline-block;
    margin-right: 10px;
}

#person_selector a.active {
    color: #FA3343;
    font-weight: bold;
    text-decoration: none;
}

#btn_delete_person {
    background: #b2b9bd;
    border: 0;
    font-size: 10px;
    margin-left: 10px;
}

input[type="submit"].delete, input[type="button"].delete {
    background: url('../img/icons/delete.svg') no-repeat;
    background-size: contain;
    border: 0;
    cursor: pointer;
    display: inline-block;
    text-indent: -5000px;
    width: 30px;
}

.hide {
    display: none;
}

/* Admin */
.alphabet {
    margin-top: 8px;
    overflow-x: auto;
}

.alphabet a {
    margin-right: 5px;
}

#usersearch {
    display: flex;
    justify-content: space-between;
    vertical-align: middle;
}

.usersadmin .col {
    display: inline-block;
}

.usersadmin .col.name {
    width: 200px;
}

.usersadmin .col.email {
    width: 300px;
}

.usersadmin .col.role {
    width: 50px;
}

.tabs .tab {
    background: #b2b9bd;
    border-radius: 5px 5px 0 0;
    color: #000;
    display: inline-block;
    padding: 5px 20px;
}

.tabs .tab.active {
    background: #FA3343;
    color: #fff;
}

th {
    font-weight: bold;
    text-align: left;
}

.overview {
    border: 1px solid #000;
    margin-top: -1px;
}

.tabs a {
    border: 1px solid #000;
    border-radius: 10px 10px 0 0;
    color: #000;
    display: inline-block;
    margin-right: 10px;
    padding: 10px;
}

.tabs a.active {
    background: #000;
    color: #fff;
}

.tabs .action, .editsimulation .action {
    float: right;
}

#report_income {
    overflow-x: scroll;
}

#report_income td {
    min-width: 90px;
}

#report_income tr:nth-child(even) {
    background: #E3EBF0;
}

.chart {
    height: 400px;
    width: 100%;
}

#report_income .chart {
    margin: 20px auto 100px;
}

.pagination a, .pagination b {
    display: inline-block;
    margin-right: 10px;
}

.credit_types .col {
    display: inline-block;
    width: 200px;
}

.simulation_view .chart {
    display: inline-block;
    width: 50%;
}

select {
    padding: 10px;
}

input[type=file] {
    padding: 10px;
}

.documents .uploaded .document div {
    display: inline-block;
    vertical-align: middle;
    width: 50%;
}

.documents .uploaded a img {
    max-height: 32px;
}