body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 1rem;
    background: #f2f2f2;
    color: #333;
    max-width: 960px;
    margin: 0 auto;
}

.header {
    display: flex
;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
}
.header_id, .header_action {
    flex: auto;
}
.header_id {
    text-align: left;
}
.header_id h1 {
    margin: 0;
    font-size: 42px;
}
.header_id h2 {
    margin: 0;
}
.header_action {
    text-align: right;
    align-items: flex-end;
    justify-content: flex-start;
    display: flex
;
    flex-direction: column;
}
button#nova-sessao {
    width: unset;
}
.header_action h2, .header_action p {
    margin: 0;
}

h3 {
    margin: 0;
}

form, .voo-lista {
    max-width: 600px;
    margin: 1rem auto;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

fieldset {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 6px;
}

input[type="text"], input[type="email"], input[type="date"] {
    width: 100%;
    padding: 0.5rem;
    margin: 0.25rem 0 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

button:hover {
    background: #0056b3;
}

form.form_voo {
    display: grid
;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 12px;
    grid-row-gap: 12px;
    max-width: unset;
    width: 100%;
    box-sizing: border-box;
}
form.form_voo button {
    grid-area: 2 / 1 / 3 / 4;
}

.voo-lista {
    display: grid
;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 12px;
    grid-row-gap: 12px;
    max-width: unset;
    width: 100%;
    box-sizing: border-box;
}
.voo-lista-header {
    grid-area: 1 / 1 / 2 / 4;
}

button.small {
    padding: 0.45rem;
    font-size: 0.9rem;
}
button.warning {
    background: #ddce07;
}
button.danger {
    background: #ff6363;
}


.voo-lista .voo-entry {
    background: #f5f5f5;
    padding: 0.75rem;
    border-radius: 12px;
}

ul.voo_result_list {
    padding: 0;
    margin: 0;
    list-style: none;
}
li.voo_result_list_item {
    font-size: 14px;
    padding: 2px 0;
}
li.voo_result_list_item span {
    font-weight: 700;
}
.voo-entry h4 {
    margin: 0 0 6px;
    padding: 6px 0;
    border-bottom: 1px solid rgb(0 0 0 / 20%);
}


.input_line {
    display: flex
;
    gap: 6px;
    align-items: center;
    justify-content: center;
}
select {
    height: 33px;
    width: 100%;
    padding: 0.5rem;
    margin: 0.25rem 0 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[type="time"] {
    width: 100%;
    padding: 0.5rem;
    margin: 0.25rem 0 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: 33px;
}


@media screen and (max-width: 768px) {

    .header {
        flex-direction: column;
    }
    .header_id, .header_action {
        flex: auto;
        width: 100%;
        text-align: center;
    }
    .header_action {
        width: 100%;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    form, .voo-lista {
        padding: 0.5rem;
    }

    fieldset {
        padding: 0.5rem;
    }

    form.form_voo, .voo-lista {
    grid-template-columns: repeat(1, 1fr);
}
form.form_voo button,.voo-lista-header {
    grid-area: unset;
}
}
