/*
 * Copyright (c) 2017 Tracelink ApS - www.tracelink.dk - info@tracelink.dk
 * --------------------------------------------------------------------------
 *
 * File-created: "2017-02-23 14:14:41 by cbn"
 * Time-stamp:   "2020-07-08 13:55:26 by cbn"
 * 
 */

.header { 
    padding-top: 0px; 
}

.page-content, #sorting {
    top: 45px;
}

.page-content.using-tabs { 
    top: 90px; 		/* make room for tabs */
}

#edit-tabs li:hover {
    cursor: pointer;
}

.splash-img {
    /* background-image: url(https://tracelink.dk/imgs/130.jpg); */
    animation: backdrop-init 5s ease-out;
    transform: scaleX(1);
    background-position: 50%;
    opacity: 1;
    width: 100%;
    height: 100%;
    will-change: transform;
    background-repeat: no-repeat;
    background-size: cover !important;
}

@keyframes backdrop-init {
    0% {
            /* opacity: 0; */
            transform: scale3d(1.3, 1.3, 1.3)
    }

    15% {
            /* opacity: 1 */
    }

    to {
            transform: scaleX(1)
    }
}

/* ------------------------------ */
/*   DIALOG                       */
/* ------------------------------ */


#dialog {
    max-width: 80%;
    min-width: 60%;
    /* width: initial; */
    z-index: 9999;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border-radius: 15px;
    background-color: rgba(255,255,255,0.98);
}

#dialog .dialog_head {
    text-align: center;
    background-color: var(--blue);
    color: var(--white);
    padding: 8px 0;
    border-radius: 15px 15px 0 0;
}

#dialog .modal_content {
    margin-bottom: 0px;
    padding: 15px 0px;
    text-align: center;
}

#dialog .buttons {
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    background: transparent;
    font-size: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray);
}

#dialog .dialog_button {
    background: none;
    color: var(--blue-light);
    font-weight: bold !important;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    height: 45px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    font-size: 100%;
    text-align: center;
    flex: 1 1 auto;
    min-width: 100px;
    border-right: 1px solid var(--gray);
}

#dialog .dialog_button:last-child {
    border-right: 0px !important;
}

#dialog .dialog_button.red {
    color: var(--red);
}

#dialog .modal_content input[type=text],
#dialog .modal_content input[type=radio],
#dialog .modal_content select {
    margin-bottom: 3px;
    float: initial;
    float: initial;
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
}

#dialog .modal_content P {
    margin: 8px 0;
}

#dialog .modal_content h4 {
    border-bottom: none;
    width: 100%;
    text-align: center;
    font-weight: bold;
    margin: 5px 0;
    padding: 0
}

#dialog_error {
    background-color: rgb(250, 227, 227);
    border: 1px solid red;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    margin: 15px;
}

#dialog table {
    width: 100%;
}

#dialog table th {
    padding: 15px 15px 5px 0;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
    white-space: nowrap;
}

#dialog table td {
    padding: 8px 0;
}


#modal_scrim {
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed; 
    top: 0px; 
    left: 0px; 
    width: 100%; 
    height: 100%; 
    z-index: 905; 
}

/* ------------------------------ */
/*  Barcode scanner               */
/* ------------------------------ */

#page-scan {
    transform: translate3d(0,-100%, 0);
    z-index: 9990;  /* just "below" dialogs */
}

#scan-content {
    z-index: 100000000;
    font-size: 1rem;
    position: fixed;
    inset: 0;
    display: block;
    flex-direction: column;
    align-items: center;
    --width: calc(min(100vw, 100vh) - 2rem);
    /* -height: calc(min(100vw, 100vh) - 2rem); */
    justify-content: center;
    transition: 200ms;
    top: 60px
}

#scan-content .video_canvas_holder:before {
    position: absolute;
    font-size: 1.1rem;
    content: "Åbner kamera...";
    color: var (--gray-dark);
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    text-shadow: rgba(255, 255, 255, 0.9) 1px 1px 0;
}

#scan-content .video_canvas_holder {
  position: absolute;
  width: var(--width);
  height: var(--height);
  inset: 0;
  margin: 0 auto;
  padding: 0;
 }

 #scan-content .video_canvas_holder video,
 #scan-content .video_canvas_holder canvas {
    position: absolute;
    width: var(--width);
    height: var(--height);
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background-color: transparent;
}

#scan_result {
    position: absolute;
    bottom: 200px;
    width: 100%;
    text-align: center;
    color: var(--blue);
}

#stop_scan {
	display: none;
	position: absolute;
	bottom: 80px;
	text-align: center;
}