
div#master {
    min-height: 100vh;
}

header#page-header,
footer#page-footer {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 100;
}
header#page-header {
    top: 0;
}
footer#page-footer {
    bottom: 0;
}



main {
    padding: 5.6rem 0 7rem;
}
@media screen and (min-width: 103em){
    main {
        padding: 3.6rem 0 7rem;
    }
}

ul#form-tabs {
    display: flex;
    list-style: none;
    width: 100vw;
    z-index: 100;
    overflow-x: auto;
}

ul#form-tabs li {
    margin: 0 .5rem 0 0;
}

ul#form-tabs button {
    padding: 1rem 2rem 1rem 4rem;
    white-space: nowrap;
}


fieldset>ul {
    padding: 0 0 2rem 0;
}

label.block {
    display: flex;
    flex-wrap: wrap;
}

label.block.multiselect>span {
    display: none;
}

label.block+* {
    margin-top: 0;
}

label.block>* {
    width: 100%;
}

fieldset>div {
    overflow-x: auto;
}

fieldset>ul>li {
    margin: 0 1rem 0 0;
}

footer button, 
fieldset>ul button,
fieldset>ul a.button,
fieldset>ul input,
form#login-form button  {
    display: inline-block;
    padding: .5rem 2.5rem;
    text-decoration: none;
    
}

form#login-form {
    margin: 5rem auto;
    padding: 5rem;
    text-align: center;
    width: 30rem;
    max-width: 95vw;
    background-color: grey;
}

form#login-form label {
    display: block;
    margin: 0 0 2rem;
}

form#login-form label span {
    display: block;
}

form#login-form label input {
    padding: .5rem;
    background-color: #EFEFEF;
    border: none;
}

form#page-form {
    width: 100%;
}

form#page-form fieldset {
    width: 100%;
    height: 100%;
    display: none;
    grid-template-rows: auto 1fr;
}

form#page-form fieldset>ul {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
}

form#page-form fieldset>div {
    padding: 0;
    overflow-x: auto;
}

form#page-form fieldset.active {
    display: grid;
}

button,
a.button {
    transition: all .2s;
    cursor: pointer;
    padding: .5rem 2.5rem;
}

button[disabled] {
    opacity: .5;
}

label span {
    display: inline-block;
    
}

input:not([type="date"]), 
textarea {
    padding: .25rem .5rem;
}
select {
    padding: .25rem 1.5rem;
}
input[type="date"]{
    padding-top: .25rem;
    padding-bottom: .25rem;
}

.hidden, [hidden] {
    display: none!important;
}

input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

input[type="number"].count {
    width: 5rem;
}
input[type="number"].amount {
    width: 8rem;
}
input.unit {
    width: 5rem;
}

ul#object-results>li {
    font-weight: bold;
}

ul#object-results>li ul {
    margin-left: 2rem;
}

ul.field-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 2rem;
}

ul.field-list li {
    display: flex;
}

ul.field-list li span,
ul.field-list li label {
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
}

details {
    border-bottom: 1px solid white;
}

details summary  {
    list-style: none;
}
details summary::-webkit-details-marker {
    display: none;
}
details summary * {
    display: inline-block;
    vertical-align: middle;
}



section>article,
details {
    width: 100%;
}

section>article footer {
    padding: 0;
}

section>article>header,
details summary {
    padding: 1rem 2rem;
    display: grid;
    gap: 0 2rem; 
    grid-template-columns: 1fr auto;
    align-items: start;
}

section>article>header>div {
   display: flex;
   gap: 1rem;
}

table {
    width: 100%;
    
}

th, td {
    text-align: left;
   
    padding: .5rem 1rem;
}

th:first-child,
td:first-child {
    padding-left: 2rem;
}

td span,
th span {
    display: block;
}
.group-button {
    display: flex;
    gap: 2rem;
}

button.icon {
    background: none!important;
}

button.icon span {
    display: none;
}

#page-footer {
    padding: 1rem 2rem 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}



ul#documents-list {
    margin: 8rem 4rem 4rem;
    display: flex;
    gap: 4rem;

}

ul#documents-list a {
    padding: 4rem;
    width: 20rem;
}

#custom-alert {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999999;	
}

#custom-alert>section {
    background-color: white;
    padding: 0 0 2rem;
    width: 60rem;
    max-width: 95vw;
}

#custom-alert>section h2 {
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 1rem 2rem;
}
#custom-alert>section div {
    padding: 2rem 2rem 0;
}

#custom-alert>section div.buttons {
    display: flex;
    justify-content: space-between;
}

#custom-alert>section div.buttons button {
    min-width: 14rem;
}

.vcenter {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}


