/* Login page */
:root {
    --main-back: #ffffff;
    --accent-back: #0069af;
    --accent1: #003c76;
    --accent2: #729ca9;
}


.body {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.vertical-center {
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    flex-wrap: wrap;
}

.image-row {
    display: flex;
    align-items: center;
}

.image-column {
    flex: 1 1 auto;
    margin: 5px;
}

.image-column img {
    max-height: 100%;
    max-width: 100%;
}

.img-padded {
    margin: 5px;
    height: auto;
    max-width: 100%;
}

.logo-scanapi {
    max-width: 95%;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    border-radius: 0.25rem;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 35px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Home and base */
.homepage-button {
    border-radius: 15px;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 20px;
}

.home-main-div {
    height: 100%;
}

.clickable {
    cursor: pointer;
}

.buttonrow {
    margin-top: 5px;
}

.container.navbar-container {
    clear: both;
}

.container.page-container {
    clear: both;
    display: block;
    overflow: auto;
}

.messages {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Navigation bar */
.navbar {
    background-color: #2170b4;
}

.navbar-nav {
    float: right;
}

.nav-link {
    text-align: left;
}

.navbar-menu-container {
    margin-top: 10px;
}

.navbar-brand {
    font-size: xx-large;
    color: white;
}

/* Footer */
.footer {
    position: relative;
    height: 6rem;
    width: 100%;
    pointer-events: none
}

p.copyright {
    position: absolute;
    width: 100%;
    line-height: 40px;
    text-align: center;
    bottom: 0;
}

.btn-container-ftr {
    position: absolute;
    margin-top: 45px;
    bottom: 20px;
}

a.footer-item {
    pointer-events: auto;
}

/* Forms */
.form-row {
    padding-bottom: 25px;
}

.help-block {
    font-size: x-small;
}

div.controls ul li {
    font-size: x-small;
}

.custom-checkbox-input {
    height: 1rem;
    width: 1rem;
    margin-top: 0.5rem;
}

.margin-top {
    margin-top: 1rem;
}

.pw-change-link {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.control-group {
    margin-top: 0.5rem;
}

.errornote {
    color: red;
}

#submit_depot_zone {
    width: 50px;
    height: 48px;
    background-color: green;
    color: var(--main-back);
}

#submit_depot_zone i {
    /*padding-top: 0.5rem;*/
    /*padding-left: -0.5rem;*/
    margin-left: -0.2rem;
}

#show_depot_zone_dropdown_panel {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#depot_zone_dropdown {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0.3rem;
}

/* Settings */
.user-table tbody tr.table-row:hover {
    background-color: rgba(33, 112, 180, 0.3);
    cursor: pointer;
}

thead {
    background: #2170b4;
}

thead tr th a {
    color: white; /* Table header text */
}

/* Trip page and list */
.address-list-container {
    margin-left: 0.75rem;
}

.nav-btn-container {
    margin-top: 0.20rem;
    display: grid;
    place-items: center;
    float: left;
}

.address-header {
    margin-bottom: 0.25rem;
}

.address-list-block {
    margin-left: 0;
    margin-bottom: 0;
    float: right;
}

.address-list-container div.address-container {
    margin-bottom: 0.75rem;
    margin-left: 0.75rem;
    display: grid;
    grid-template-areas: "nav_btn address";
}

.nav-btn {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Scan page */
.message-ERROR {
    background-color: #dc3545;
}

.message-WARNING {
    background-color: #ffc107;
}

.message-OK {
    background-color: #28a745;
}

.message-bar {
    text-align: center;
    vertical-align: middle;
}

.message-text {
    padding: 0.5rem;
}

/* Only float for "scan whole shipment button" when scanning on trip and parameter is True */
div.shipment-header-text.trip.show-scan-whole-shipment-btn-True {
    float: left;
}

@media (min-width: 481px) {
    .block-limit {
        max-width: 30rem;
    }
}

/* Address collapsible */
.panel-heading.collapsed .fa-caret-down,
.panel-heading .fa-caret-right {
    display: none;
}

.panel-heading.collapsed .fa-caret-right,
.panel-heading .fa-caret-down {
    display: inline-block;
}

.address-container {
    padding: 0;
    margin: 0;
    list-style: none;

    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -webkit-flex-flow: row wrap;
    justify-content: flex-start;
}

.address-block {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

.merge-input {
    max-width: 15rem;
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.merge-button {
    /*display: block;*/
    max-width: 15rem;
    width: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.yes-no-btn {
    margin-bottom: 0.75rem;
}

.yes-btn {
    float: left;
    margin-right: 0.5rem;
}

/* Parcel listing */
.parcel-item {
    margin: 0.5rem;
}

.parcel-panel {
    margin-left: 0.5rem;
}

.parcel-panel p {
    margin-bottom: 0;
}

.parcel-error {
    margin-left: 1rem;
}

.report-problem-panel {
    margin-top: 0.75rem;
}

.shipment-info {
    margin-left: 0.75rem;
}

.sibling-container {
    margin-left: 0.5rem;
}

.trip-parcel-container {
    margin-top: -1rem;
    margin-left: 1rem;
}

/* Icons */
.fas-margin-right {
    margin-right: 0.5rem;
}

.fa-triangle-exclamation {
    color: yellow;
}

.fa-circle-xmark {
    color: red;
}

.fa-circle-check {
    color: green;
}

.fa-bullhorn {
    color: white;
}

/*.fa-dolly {*/
/*    color: #2170b4;*/
/*}*/

/* Buttons */
.btn-container .btn-lg {
    margin: 5px;
    font-size: x-large;
    min-width: 5rem;
}

.margin-lr {
    margin-left: 5px;
    margin-right: 5px;
}

.wide-btn {
    padding-left: 2rem;
    padding-right: 2rem;
}

.btn-big {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    min-width: 11rem !important;
}

button.scan-whole-shipment {
    margin-top: -0.2rem;
    margin-left: 0.5rem;
}

@media (max-width: 480px) {
    .btn.block-sm {
        width: 100%;
    }

    .btn.block-lg {
        width: 100%;
    }
}

/* Signature */
canvas.jSignature {
    min-height: 120px;
}

.jsign-wrapper .jsign-container {
    border: 2px solid lightgrey;
    border-radius: 10px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    max-width: 500px;
}

.signature-form-error {
    color: red;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

#signature_name {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Remarks */
textarea#remarks {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: 7rem;
}

.remarks-panel {
    margin-bottom: 0.5rem;
}

/* Pallets */
#pallet_form > div.form-row {
    padding-bottom: 0.5rem;
}

.shipment-container {
    margin-left: 0.5rem;
}

.pallets-header {
    padding-bottom: 0.5rem;
}

.shipment-pallets {
    margin-left: 0.75rem;
    padding-bottom: 0.75rem;
}

label.compact {
    margin-bottom: 0.25rem;
}

h4.shipment-header {
    margin-bottom: 0.2rem;
}

.nr-pals {
    max-width: 5rem;
}

/* Photos and remarks */
.photo-container {
    overflow: auto;
    clear: both;
    margin-top: 0.5rem;
    border-radius: 10px;
    padding-bottom: 0.5rem;
}

.photo-item {
    margin-top: 10px;
}

p.photo-name {
    max-width: 50%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    float: left;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.photo-panel {
    margin-bottom: 0.75rem;
}

#id_img {
    margin-top: 5px;
    margin-bottom: 5px;
}

.photo-card-body {
    padding: 0.5rem 0.75rem 0.75rem;
}

.view-photo-modal {
    max-width: none;
}

.photo-modal-title {
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
}

.photos-header {
    padding-bottom: 0.5rem;
}

/*.shipment-body {*/
/*    margin-left: 0.75rem;*/
/*}*/

.shipment-photos {
    padding-bottom: 0.5rem;
}

.img-input {
    max-width: 20rem;
}

.no-photo-warning {
    clear: both;
    margin: 0;
}

/* List of parcels left to do */
.trip-todo-container {
    margin-top: 1.5rem;
}

/* Prevent hyperlink line from appearing when hovering button */
a:hover {
    text-decoration-line: none;
}

/* Text */
.msg-red {
    color: red;
}

.link-text {
    color: black;
}

/* Quick layout */
.hidden {
    visibility: hidden;
    display: none;
}

.no-hover {
    pointer-events: none;
}

.color-black {
    color: black;
}

.color-blue {
    color: #2170b4;
}

.bold {
    font-weight: bold;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.no-margin {
    margin-bottom: 0 !important;
}

.sharp-top-corners {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.sharp-bottom-corners {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-app-owner {
    color: var(--main-back);
    background-color: var(--accent1);
    border-color: var(--accent1);
}

.btn-app-owner:hover {
    color: var(--accent2);
}

.bg-accent-back{
    background-color: var(--accent-back);
}
