.modal.add-order-entry {

}

.modal.add-order-entry .content {
    padding: 0 !important;
    width: 100%;
}

.modal.add-order-entry h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.modal.add-order-entry .details {
    padding: 2rem;
    background-color: rgba(255,255,255,0.1);
    margin-bottom: 4rem;
}

.modal.add-order-entry .details > .name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.modal.add-order-entry .details > [data-ui-dac="product"] {
    margin-bottom: 1rem;
}

.modal.add-order-entry .details .entries > * {
    padding: 1rem 1rem 1rem 2rem;
    border: 1px solid var(--border);
    position: relative;
}

.modal.add-order-entry .details .entries > *:not(:last-child) {
    margin-bottom: 1rem;
}

.modal.add-order-entry .details .entries > .category {
    opacity: 0.7;
    margin-top: 0.5rem;
}

.modal.add-order-entry .details .entries > .component {
    min-height: 5rem;
}

.modal.add-order-entry .details .entries > .product {
    display: flex;
    flex-direction: row;
}

.modal.add-order-entry .details .entries > .product img {
    margin-right: 1rem;
    width: 3rem;
    flex-shrink: 0;
}

.modal.add-order-entry .details .entries > .service {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.modal.add-order-entry .details .entries > * input {
    padding: 0;
    width: 2rem;
    position: absolute;
    left: -1.5rem;
    top:calc(50% - 1.5rem);
}

.modal.add-order-entry[_components-count="1"] input[type="checkbox"] {
    opacity: 0;
    pointer-events: none;
}


.modal.add-order-entry .details .entries > .service input:checked ~ .checkmark {
    background-color: #8f8f49;
}

.modal.add-order-entry > .content > .actions {
    padding: 1rem 2rem;
}

.modal.add-order-entry button {
    margin: 0 auto 2rem auto;
}

/*ORDERS SUMMARY*/
#orders { position: sticky; width: 100%; top: 5rem; z-index: 1; }

#orders[_entry-count="0"] { display: none; }

#orders.modal { position: fixed !important; top:0 !important; height: 100% !important; }

#orders.modal .content {
    width: 100%;
    padding: 1rem 0;
}

#orders .summary {
    background-color: #7c4343;
    padding: 1rem;
    font-weight: 500;
    font-size: 1.2rem;
    text-align: center;
}

#orders .summary button {
    margin-top: 1rem;
}

#orders.modal .summary { display: none; }


#orders .overview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

#orders .overview .entries {
    max-height: 30rem;
    overflow-y: auto;
}

#orders .overview > .actions {
    padding: 2rem;
}

#orders .overview > .actions > button { margin-bottom: 1rem; }
#orders:not(.modal) .actions { display: none; }

.orders:not(.open) .summary .actions > button { margin-top: 2rem; }

#orders:not(.modal) .overview {
    display: none;
}

#orders .overview .entries {
    margin-bottom: 2rem;
}

#orders .overview .entries .order-entry {
    padding: 1rem;
    position: relative;
}

#orders .overview .entries .order-entry:nth-child(odd) {
    background-color: rgba(255,255,255,0.1);
}

#orders .overview .entries .order-entry .event {
    margin-bottom: 1rem;
}

#orders .overview .entries .order-entry .event .name {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
}

#orders .overview .entries .order-entry .product {
    margin-bottom: 1rem;
    border: none !important;
}

#orders .overview .entries .order-entry .component {
    display: flex;
    flex-direction: row;
    margin-bottom: 0.5rem;
}

#orders .overview .entries .order-entry .component span:first-child {
    margin-right: 0.5rem;
}

#orders .overview .entries .order-entry .actions {
    position: absolute;
    top:0.5rem;
    right: 0.5rem;
}

#orders .overview .entries .order-entry .actions button {
    background-color:var(--black-tr20) !important;
    padding: 0 !important;
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
    color: var(--almost-white);
    box-shadow: none !important;
    border-radius: 50% !important;
    justify-content: center;
}

.modal.order-finished > .content {
    text-align: center;
}

.modal.order-finished > .content h2 {
    margin-top:6rem;
    margin-bottom: 4rem;
}

.modal.order-finished > .content > div:nth-of-type(1) {
    width: 5rem;
    height: 5rem;
    margin:0 auto 4rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
}

.modal.order-finished > .content button {
    margin-top: 4rem;
}

/*END OF ORDERS*/