

body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;

    display: flex;
    flex-direction: column;
    align-items: center;

}

h2{
    margin: 0px 0px 10px 0px;
}

section{
    width: calc(100% - 20px);
    max-width: 1000px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    margin: 10px;
}

/* last sectio */
section:last-of-type{
    margin-bottom: 50vh;
}

section>h2{
    margin: 10px;
}
h3{
    margin: 0;
}

.section-content>*:not(.error){
    margin-left: 10px;
    margin-right: 10px;
}

/* margin bottom for avant dernier child */
/* .section-content>*:nth-last-child(2){
    margin-bottom: 10px;
} */

a.btn{
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: space-between;

    width: fit-content;

    padding: 10px 10px;
    background-color: #007BFF;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}
a.btn > span.material-symbols-outlined{
    background-color: #dddddd54;
    padding: 2px;
    border-radius: 3px;
}

a.btn-valid{
    background-color: #28a745;
}
a.btn-alert{
    background-color: #ffc107;
    color: black;
}
a.btn-delete{
    background-color: #dc3545;
}

.line{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}


.error{
    background-color: red;
    color: white;
    width: calc(100% - 20px);
    padding: 10px;


    display: flex;
    justify-content: space-between;
    align-self: center;
}
.error>span{
    display: flex;
    align-items: center;
    font-weight: bold;
}
.error>a{
    color: rgb(228, 193, 193);
    text-decoration: none;
}

table{
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
    border-collapse: collapse;
}
table td{
    border: 1px solid rgb(95, 95, 95);
    padding: 5px 5px;
    min-width: 0;
}
table th {
    border: 1px solid rgb(95, 95, 95);
    background-color: rgb(95, 95, 95);
    color: #ffffff;
    padding: 5px 2px;
}

table th>div{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

td>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table input[type="text"]{
    width: 150px;
}
input[type="number"]{
    width: 50px;
}

input{
    padding: 5px;
    border: 2px solid #ccc;
    border-radius: 7px;
    font-size: 14px;
}

/* disable chome input border */
input:focus{
    outline: none;
    border-color: #072546;
}


.access-level{
    display: inline-block;
    font-weight: bold;
    padding: 5px 10px !important;
    border-radius: 3px;
    background-color: gray;
    color: black;
}

.access-level.level-1{ background-color: rgb(46, 204, 113); }
.access-level.level-2{ background-color: rgb(96, 185, 245); }
.access-level.level-3{ background-color: rgb(199, 139, 223); }
.access-level.level-4{ background-color: rgb(241, 196, 15); }
.access-level.level-5{ background-color: rgb(240, 110, 96); }

#result-Q1, #result-Q3{
    /* display: none; */
    margin-left: auto;
    margin-right: auto;
}

.card{
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    background-color: #f1f1f1;
    border-radius: 10px;
    width: 400px;
    padding: 10px;
    margin-bottom: 10px;
}
.card.vertical{
    width: 200px;
}
.card.vertical>.data{
    width: 100%;
    justify-content: center;

}
.card.vertical>.data>div{
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.card img{
    /* border-radius: 100%; */
    width: 120px;
    margin: 10px;
}
.card>*{
    width: 100%;
}
.card>.data{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-self: center;
}
.card>.data>div{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}
.card>span{
    background-color: rgb(61, 59, 52);
    color: white;
    border-radius: 3px;
    padding: 3px;
}

.filters{
    background-color: #e9e9e9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    width: calc(100% - 40px);
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}
.filters>div>*{
    display: inline;
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: nowrap;

}


#result-Q5{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}


.plant-tile{
    color: white;
    background-color: rgb(77, 77, 77);
    width: 200px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 10px;
    position: relative;
}
.plant-tile>*{

    margin: 0;
    padding: 0;
}

.plant-tile img{
    width: 100%;
    background-color: rgb(224, 224, 224);
    border-radius: 15px;
}

.plant-tile h3{
    font-size: 16px;
}

.plant-tile .plant-delete-btn{
    border-radius: 100%;
    font-size: 15px;
    padding: 4px;
    margin: 9px;

    position: absolute;
    right: 0;
    top: 0;
}

#invalid-studies input[type="checkbox"]{
    display: none;
}

#invalid-studies input[type="checkbox"] + label .collapsible-content {
    display: none;
}

#invalid-studies input[type="checkbox"]:checked + label .collapsible-content {
    display: flex;
}

#invalid-studies .scientist-data{
    display: flex;
    flex-direction: row;
    margin: 0 10px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #2e2e2e;
    border-radius: 5px;
    color: white;
    padding: 10px 20px;
}

#invalid-studies .collapsible-content{
    flex-direction: column;
    gap: 10px;
    margin-left: 30px;
    margin-top: 15px;
}

#invalid-studies .collapsible-content>div{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    background-color: #ececec;
    border-radius: 5px;
    width: calc(100% - 20px);
}
#invalid-studies .collapsible-content>div>span{
    width: 25%;
    text-align: center;
}

#debug-pane{
    display: block;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #cecece;
    gap: 5px;
    z-index: 100;
}