.page_body{
    position: relative;
}

.page_content, .login_area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* - Common */

.pill {
    border-radius: 30px;
    min-width: 200px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7px 30px 7px 30px;
    margin: 0 10px 5px 10px;
}

.disabled {
    background-color: #c9cbce;
}

.disabled:hover {
    background-color: #a1a2a3;
}

.link_as_button:hover {
    text-decoration: none;
    color: white;
}
.link_as_button:active {
    text-decoration: none;
    color: white;
}
.link_as_button:focus {
    text-decoration: none;
    color: white;
}

.remove_order_modal_text {
    font-size: 2rem;
}
.remove_order_name {
    font-weight: bold;
}

/* - Order selection screen */
#new_order_area {
    margin-bottom: 40px;
}

#new_order_form {
    margin-top: 20px;
}

#existing_orders {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 80%;
    margin: 0 auto;
    padding-top: 15px;
}

.order_pill {
    flex-direction: row;
}

.pill_order_name {
    flex: 3 0 auto;
}
.remove_order_icon {
    flex: 0 1 auto;
    color: #912930;
    margin-left: 5px;
    cursor: pointer;
    z-index: 2;
    transform: scale(1.2);
}
.remove_order_icon:hover {
    color: #e62720;
}

.order_last_update {
    font-weight: bold;
}

.order_modified_msg {
    font-size: 2rem;
    color: #e62720;
}

/* - Main screen */

/* -- Top action button(s) */
#back_to_order_selection {
    position: absolute;
}

#main_content .actions_buttons_area {
    position: absolute;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
}

#orders_created .actions_buttons_area {
    position: absolute;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: flex-start;
}

.right_action_buttons {
    display: flex;
}

#actions_buttons_wrapper {
    position: relative;
    margin-right: 5px;
}

#toggle_action_buttons {
    width: 250px;
    position: relative;
}

.toggle_action_buttons_icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
}

#actions_buttons_container {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 250px;
    display: none;
}

.action_button {
    width: 100%;
    min-height: 45px;
}

#do_inventory {
    border-top: 1px solid #004aa6;
}
#refresh_order {
    border-top: 1px solid #004aa6;
    border-bottom: 1px solid #004aa6;
}

/* -- Order data */
#order_data_container {
    font-size: 1.8rem;
}

#order_data_separator {
    margin: 0 10px 0 10px;
}

#order_forms_container {
    margin-top: 20px;
    display: flex;  
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.order_form_item {
    margin-top: 10px;
}

#supplier_input {
    width: 350px;
    border-radius: 3px;
}

#stats_date_period_select {
    margin-left: 5px;
    min-width: 200px;
}

#date_planned_input, #coverage_days_input, #stats_date_period_select {
    border-radius: 3px;
}

#coverage_form > div {
    display:inline-block;
    float:left;
}

#coverage_form .input-wrapper {
    margin-right: 3px;
}

#coverage_days_input, #percent_adjust_input {
    display:  block;
}

#coverage_days_input {
    margin-bottom: 3px;
}

/* -- Table */
#products_table_filter{
    text-align: right !important;
}

#products_table_filter input{
    height: 35px;
    width: 300px;
    border-radius: 3px;
}
#products_table .help {cursor: help;}
#table_header_select_all{
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}

.select_all_text {
    margin-top: 5px;
    margin-bottom: 5px;
}

#table_header_select_all input{
    margin-left: 5px;
}

.main.fa-info-circle {
    color: #0275d8;
    cursor:  pointer;
}
.custom_cell_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product_qty_input {
    width: 100px;
}

.product_ref_input {
    padding: .5rem .5rem;
}

.supplier_package_qty {
    font-style: italic;
    font-size: 1.3rem;
}

.product_not_from_supplier {
    background-color: #e8ebf0;
    cursor: pointer;
}

.product_not_from_supplier:hover {
    background-color: #d3d7db;
}

.product_ref_cell:hover {
    background-color: #d3d7db;
    cursor: pointer;
}

.product_name, .supplier_name, .product_npa {
    font-weight: bold;
}

.select_product_cb, .product_npa_cb {
    cursor: pointer;
}

.focused_line {
    background-color: #76cf71 !important;
}

.dataTables_scrollHead {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0;
    z-index: 3;
    background-color: white;
}

/* -- Footer */

#main_content_footer {
    margin: 20px 0 40px 0;
}

#footer_actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* -- Suppliers list */
#suppliers_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    margin: 30px 0 20px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 140px;
    z-index: 5;
}

.supplier_pill {
    background-color: #a0daff;
    border: 1px solid #6ea8cc;
}

.pill_supplier_name {
    font-weight: bold;
}

.supplier_data {
    font-size: 1.5rem;
    display: flex;
}

.remove_supplier_icon {
    color: red;
    margin-left: 5px;
    cursor: pointer;
}

/* -- Attach product to supplier modal */
.modal_input_area {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.modal_input_container, .modal_input_label {
    width:50%;
    margin: 0 15px 0 15px;
}

.modal_input_label {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.modal_input {
    width: 90%;
}

/* product actions modal*/
.npa-options {
    width: fit-content;
    text-align: left;
    margin: auto;
}
.npa-options label {
    display:  block;
}
/* - Orders created screen */

.order_created_header {
    margin-top: 5px;
    margin-bottom: 40px;
}

#created_orders_area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.new_order_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.download_order_file {
    margin-top: 10px;
}

#recap_delivery_date {
    font-weight: bold;
}

.mail_example_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    margin: 0 auto;
}

.mail_type_text {
    width: 100%;
}

.mail_example {
    background-color: #e7e9ed;
    width: 100%;
    padding: 15px;
}



/* - Miscellaneous */

footer {
    display: none;
}