body {
    padding: 5px;
    background: #F5F7FA;
    font-family: 'Red Hat Display';
    min-width: 1000px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header.detail {
    border-bottom: none;
    /* background-color: #ffffff; */
    /* padding: 20px 0; */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

article section {
    padding: 0 20px 0 20px;
}

article header.home {
    min-width: 100%;
    display: grid;
    grid-template-columns: 33% 33% 33%;
}

article header.how-to ol li {
    margin: 10px 50px;
}

article header.how-to p {
    margin: 30px;
}

.oil-ticket {
    margin: 30px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0.5px 0.5px 0px 0.5px #2E2E2E;
}

.oil-ticket:hover {
    box-shadow: 2px 2px 2px 2px #A7C7E7;
}

.oil-ticket p {
    padding: 0;
}

.oil-ticket .data {
    padding: 20px;
}

.oil-ticket .title {
    background-color: #A7C7E7;
    border-radius: 8px 8px 0 0;
}

.oil-ticket .title-closed {
    background-color: green;
}

article header.detail {
    /* padding-top: 20px; */
    max-width: fit-content;
    min-width: 100%;
}

img {
    float: left;
}

#add_oil {
    float: right;
    background-color: #B4F62A;
    opacity: 0.8;
    display: block;
    height: 53px;
    padding-top: 4px;
}

#add_oil:hover {
    opacity: 1;
}

main {
    text-align: center;
    display: inline-flex;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 10px;
    min-height: 65vh;
}

main p {
    margin: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 18px;
}

aside {
    float: left;
    /* border: 1px solid #B4F62A; */
    background-color: #F5F7FA;
    min-width: 250px;
    max-width: 400px;
    color: #06103D;
    margin-right: 5px;
}

article {
    text-align: left;
    display: block;
    width: 100%;
}

article.detail {
    text-align: left;
    display: block;
    width: 85%;
}

section.home {
    background-color: #2969F2;
    padding-bottom: 5px;
}

aside section.home {
    margin-left: 0;
    margin-right: 5%;
}

section.detail {
    background-color: #ffffff;
    min-height: 200px;
    box-shadow: 0px 0.5px 0px 0px #2E2E2E;
}

footer {
    background-color: #A7C7E7;
    opacity: 0.8;
    text-align: center;
    margin-bottom: 5px;
    margin-top: auto;
}

footer p {
    padding-left: 20px;
    padding-right: 20px;
}

footer:hover {
    opacity: 1;
}

footer a {
    font-family: 'Red Hat Display';
    font-size: medium;
}

h1, h2, h3, h4, h5 {
    font-family: 'Red Hat Display';
    color: #2E2E2E;
}

h1 {
    margin: 0;
    padding: 10px 40% 10px 60px;
    font-size: 24px;
    background-color: #F5F7FA;
}

h2 {
    text-decoration: underline;
    margin-left: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

h2.detail {
    text-align: center;
}

h3 {
    text-align: center;
    padding: 5px;
    margin: 0 auto;
    font-size: 16pt;
}

div.logintitle h3 {
    color: #F5F7FA;
}

h5, label {
    color: #2E2E2E;
    text-align: center;
    padding: 0 5% 0 5%;
    margin-top: 10px;
}

video {
    padding: 5%;
}

p {
    margin: 0;
    padding: 10px;
    padding-left: 5px;
    font-size: 18px;
    color: #06103D;
}

aside p {
    padding: 5px;
    font-family: 'Red Hat display';
}

a {
    font-family: 'Red Hat Display';
    font-size: small;
    text-decoration: none;
}

th, td {
    font-family: 'Red Hat Display';
}

input {
    margin: 10px 0;
}

input[type="submit"], button#editUserDataButton {
    background-color: #005EB8;
    padding: 5px 10px;
    color: white;
    font-weight: bold;
    /* box-shadow: 1px 1px 0px 1px #B4F62A; */
}

input[type="submit"]:hover, button#editUserDataButton:hover {
    background-color: #A3D9A5;
    color: #2E2E2E;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

input[type="checkbox"][disabled] {
    background-color: #009879;
}

hgroup {
    margin: 20px;
}

hgroup.oil {
    border: 1px solid #B4F62A;
    border-radius: 10px;
}

table td, table th{
    padding: 12px 15px;
    text-align: center;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}
td {
    padding: 15px;
    text-wrap-mode: wrap;
}
td[contenteditable="true"] {
    background-color: #e8f8c5;
}
table {
    overflow-x: scroll;
}

select {
    font-size: 16px;
    padding: 5px;
}

.seccionAside {
    margin: 0 0 0 0;
    padding: 0;
}

.redondea {
    border-radius: 8px;
    border-style: none;
    border-width: 1px;
    display: block;
    float: none;
}

/*
.table-wrapper {
    overflow-x: auto;
    min-width: inherit;
}
    */

.table-wrapper {
    overflow-x: auto;
    width: 100%;
    /* overflow: hidden; */
    position: relative;
}

td.closed {
    background-color: #A3D9A5 !important;
}

tr.closed td button.modify {
    display: none;
}
td.open {
    background-color: #E27D7D !important;
}
td.mro {
    background-color: #FFE8A3 !important;
}
td.pfe {
    background-color: #fffda3 !important;
}
td.co {
    background-color: #62c4f1 !important;
}
td.started {
    background-color: #FFE8A3 !important;
    color: #2E2E2E !important;
}

.styled-table {
    margin: 20px auto;
}
div.styled-table {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    width: max-content;
    overflow: hidden;
    white-space: nowrap;
}

.styled-table tfoot.summary tr td {
    background-color: #005EB8;
    color: white;
    font-weight: bold;
}

.styled-table thead tr, .styled-table tfoot.summary tr td.total {
    background-color: #2E2E2E;
    color: #ffffff;
    text-align: center;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table.all tbody tr td:hover {
    cursor: pointer;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #2E2E2E;
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}

.styled-table thead tr.summary, .styled-table tfoot tr.summary td.total {
    background-color: #2E2E2E;
}

.styled-table tbody.summary td.area {
    background-color: #005EB8;
    opacity: 0.5;
    font-weight: bold;
    color: white;
}

.tab {
    float: left;
    /* border: 1px solid #2969F2; */
    /* background-color: white; */
    color: #2E2E2E;
    width: 15%;
    height: auto;
    margin-right: 5px;
}

/* Style the buttons inside the tab */
.tab button {
    display: block;
    background-color: inherit;
    color: black;
    padding: 22px 16px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
    font-size: 17px;
}

.tab button:hover {
    background-color: #A3D9A5;
    font-weight: bold;
}

/* Create an active/current "tab button" class */
.tab button.active {
    background-color: #A3D9A5;
    opacity: 0.85;
}

/* Style the tab content */
.tabcontent {
    float: left;
    width: 100%;
    height: 100%;
}

td.modify {
    min-width: 100px;
}

td#status:hover {
    cursor: pointer;
}

button.modify, button.comments {
    border: none;
    background-color: transparent;
}

button.template {
    border-color: #005EB8;
    border-radius: 5px;
    background-color: #A3D9A5;
    margin-bottom: 20px;
}

button:hover {
    cursor: pointer;
}

.info {
    display: flex;
    flex-direction: row;
    align-items: start;
}
.info table {
    margin: 30px;
}
.info td {
    margin: 20px;
    text-align: left;
}
.info-project {
    margin-right: 50px;
}

#imagenPrincipal {
    display: inline-block;
    margin-right: auto;
    margin-left: 10%;
    margin-top: 15px;
}

#logoItem {
    float: right;
    margin: 0;
    border: 1px solid black;
    padding: 0px;
}

#textoAside {
    text-align: left;
    color: #06103D;
}

#submission {
    display: block;
    align-items: center;
}

div#area_filters {
    padding-top: 20px;
}

div#area_filters label {
    font-size: 24px;
}

div#area_filters select, input {
    font-size: 18px;
    font-family: 'Red Hat Display';
}

div#import {
    text-align: center;
    display: block;
    padding: 10px 40px;
}

div#template {
    display: inline-block;
    width: 45%;
}

div#import-file {
    display: inline-block;
    width: 45%;
}

div#template-label label{
    display: block;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    margin: 0 auto;
}

div#template-button {
    margin: 10px auto;
    text-align: center;
}

div#import-buttons {
    margin: auto 20px;
}

div#import-inputs input[type="submit"] {
    margin: auto 20px;
}

div#import-inputs div {
    margin: auto 20px;
    display: inline-flex;
}

div#import-wrn-msg {
    max-height: 400px;
    overflow-y: scroll;
}

div#import-err-msg {
    max-height: 400px;
    overflow-y: scroll;
}

div.charts div {
    background-color: white;
}

div.profile {
    display: flex;
    flex-direction: row;
}

div.section {
    width: 46%;
    margin: 20px 2%;
}

.spinner, .home-spinner, .section-filter-spinner {
    width: 48px;
    height: 48px;
    margin: 20px auto;
    border: 3px solid #2E2E2E;
    border-radius: 50%;
    display: none;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.spinner::after, .home-spinner::after, .section-filter-spinner::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #A3D9A5;
}

/* Style the popup form*/
.popup-form {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccc;
    padding: 20px;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 500px;
    text-align: center;
}
.popup-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.popup-form h2 {
    margin-top: 0;
    font-size: 1.5em;
    text-decoration: none;
}
.popup-form label {
    display: block;
    margin: 10px 0;
}
.popup-form textarea {
    width: 80%;
    height: 150px;
    margin: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    vertical-align: top;
}
.popup-form button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.popup-form #submitFormBtn {
    background-color: #4CAF50;
    color: white;
}
.popup-form #closeFormBtn {
    background-color: #f44336;
    color: white;
    margin-left: 10px;
}

.strikethrough {
    text-decoration: line-through;
    background-color: #adadad !important;
}

td.lessor {
    background-color: #F55C38;
}

td.lessee {
    background-color: #1ED4B2;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


#loading {
    width: 2rem;
    height: 2rem;
    border: 5px solid #29f2af;
    border-radius: 100%;
    margin: auto;
    display: none;
    animation: spin 10s infinite linear;
}
#loading.display {
    display: block;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

p#validation-warning {
    background-color: gold;
    margin: 0;
    padding: 15px;
    font-size: 12pt;
}

p#validation-error {
    background-color: coral;
    margin: 0;
    padding: 15px;
    font-size: 12pt;
}

p#validation-ok {
    background-color: greenyellow;
    margin: 0;
    padding: 15px;
}

td.bold {
    font-weight: bold;
    text-align: left;
}

/* width */
/* ::-webkit-scrollbar {
    width: 10px;
} */

/* Track */
/* ::-webkit-scrollbar-track {
    background: #2969F2;
} */

/* Handle */
/* ::-webkit-scrollbar-thumb {
    background: #06103D;
} */

/* Handle on hover */
/* ::-webkit-scrollbar-thumb:hover {
    background: #B4F62A;
} */


#custom-menu, #comments-menu, #status-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}
#custom-menu ul, #status-menu ul, #comments-menu ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}
#custom-menu ul li, #status-menu ul li, #comments-menu ul li {
    padding: 8px 12px;
    cursor: pointer;
}
#custom-menu ul li:hover, #status-menu ul li:hover, #comments-menu ul li:hover{
    background-color: #f0f0f0;
}

a.button {
    font-family: 'Red Hat Display';
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #2969F2;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}
a.button:hover {
    background-color: #B4F62A;
    color: #06103D;
}