﻿/* ----- Style sheet TOC ----------------
    ^1 Session Timeout Login Box Overlay
    ^2 Navigation Bar text and colour
    ^3 Barcode scanner Overlay
    ^4 Language Dropdown Submenu
    ^5 Mes Action Previous / Next / New Run Button Styles
    ^6 Kendo grid
        ^6.1 Grid Item Colours for Batch Formula Statuses
    ^7 flow control treeview MES Side Menu
    ^8 GridDetails Toolbar Buttons
    ^9 Exchange Query Labels Text Align
    ^10 Search block collapse (from nop 4.20)
    ^11 Datatables stuff (from nop 4.20)
    ^12 Disable Hover
    ^13 input text always upper case
    ^14 Blinking text in colors
    ^15 Custom Properties styles
    ^16 Datatables stuff (MakingControl)
    ^17 ListingDetails
    ^18 Mobile Input
    ^19 Bootstrap
    ^20 Picture Evidence camera button style
    ^21 Inserted MesEvents
}

*/

/* ^1 --------------------------- Session Timeout Login Box Overlay -------------------------*/

#mes-timeout-login-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 1031;
    cursor: default;
}

#mes-timeout-overlay-login {
    display: none;
    z-index: 1032;
}

#mes-timeout-overlay-login-timeout {
    color: red;
    font-size: 13.5px;
}

/* ^2 --------------------------- Navigation Bar text and colour -------------------------*/

.navbar-env-text {
    text-align: center;
    position: relative;
    color: #fff;
    margin-top: 16px;
    z-index: -1;
}

@media (max-width: 1200px) {
    .navbar-env-text {
        margin-top: -35px;
    }
}

@media (max-width: 520px) {
    .navbar-env-text {
        margin-top: 0px;
    }

    .sidebar-menu {
        margin-top: 35px;
    }
}

@media (max-width: 248px) {
    .sidebar-menu {
        margin-top: 89px;
    }
}


/* ^3 --------------------------- Barcode scanner Overlay -------------------------*/

.layout-barcode-reader-wrapper {
    position: fixed;
    z-index: 1029;
    top: 15px;
    right: 80px;
}

@media (max-width: 767px) {
    .layout-barcode-reader-wrapper {
        top: 15px;
    }
}

@media (max-width: 520px) {
    .layout-barcode-reader-wrapper {
        top: 15px;
    }
}

@media (max-width: 247px) {
    .layout-barcode-reader-wrapper {
        top: 15px;
    }
}
/* Temp CSS for Sanofi camera testing */
.layout-barcode-reader-wrapper-ipad {
    position: fixed;
    top: 70px;
    right: 50px;
    z-index: 999;
    width: 40px;
    height: 40px;
    background-color: rgb(0,136,204);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .layout-barcode-reader-wrapper-ipad i {
        position: relative;
        left: 2px;
    }

.whiteColour {
    color: white;
}

.layout-virtual-keyboard-wrapper {
    position: fixed;
    z-index: 1029;
    top: 15px;
    right: 15px;
}

@media (max-width: 767px) {
    .layout-virtual-keyboard-wrapper {
        15px;
    }
}

@media (max-width: 520px) {
    .layout-virtual-keyboard-wrapper {
        15px;
    }
}

@media (max-width: 247px) {
    .layout-virtual-keyboard-wrapper {
        15px;
    }
}

.barcode-scanner-dialog .modal-dialog {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.barcode-scanner-dialog .modal-header {
    display: none;
}

.barcode-scanner-dialog .modal-body {
    padding-top: 0px;
    padding-bottom: 0px;
}

.barcode-scanner-dialog .modal-footer {
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: -50px;
    text-align: center;
}

.barcode-scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: -46px;
}

.barcode-scanner-video-frame {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.barcode-scanner-button-top {
    text-align: center;
}

.barcode-scanner-button-start-top, .barcode-scanner-button-close-top, .barcode-scanner-button-change-camera-top {
    margin-top: 11px;
    margin-left: 5px;
    position: relative;
    z-index: 2000;
}

.barcode-scanner-button-start-bottom, .barcode-scanner-button-close-bottom {
    display: none;
    position: relative;
    z-index: 2000;
}

.barcode-scanner-source-select-panel {
    position: absolute;
    z-index: 2000;
    background-color: white;
    width: 100%;
    bottom: 0px;
}

#barcode-scanner-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 1051;
    cursor: default;
}

#barcode-overlay-scanner {
    display: none;
    z-index: 1052;
}

.btn-login-barcode-scanner {
    float: right;
    margin-top: -7px;
}

.btn-esignature-barcode-scanner {
    position: fixed;
    top: 15px;
    right: 80px;
}

.btn-esignature-virtual-keyboard {
    position: fixed;
    top: 15px;
    right: 15px;
}

.btn-barcode-scanner-hide {
    display: none !important;
}

.btn-virtual-keyboard-hide {
  display: none !important;
}

.btn-full-screen-hide {
    display: none !important;
}

#laser {
    width: 60%;
    margin-left: 20%;
    background-color: tomato;
    height: 3px;
    position: absolute;
    top: 40%;
    z-index: 1053;
    box-shadow: 0 0 4px red;
    -webkit-animation: scanning 2s infinite;
    animation: scanning 2s infinite;
}

@-webkit-keyframes scanning {
    50% {
        -webkit-transform: translateY(75px);
        transform: translateY(75px);
    }
}

@keyframes scanning {
    50% {
        -webkit-transform: translateY(75px);
        transform: translateY(75px);
    }
}

/* ^4 --------------------------- Language Dropdown Submenu -------------------------*/

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: -99%;
        margin-top: -1px;
    }

@media (max-width: 1200px) {
    .dropdown-submenu .dropdown-menu {
        left: 100%;
    }
}

@media (max-width: 995px) {
    .dropdown-submenu .dropdown-menu {
        left: -99%;
        right: auto;
    }
}

@media (max-width: 1200px) {
    .dropdown-menu {
        right: auto !important;
    }
}

.navbar-nav .dropdown-menu > li > a {
    color: #fff;
}

    .navbar-nav .dropdown-menu > li > a:hover {
        background: transparent !important;
    }

/* ^5 --------------------------- Mes Action Previous / Next / New Run Button Styles -------------------------*/

.btn-next-step.btn-bg-darkyellow {
    background-color: #8B4513;
    color: #fff;
}

.btn-next-step {
    margin-left: 3px;
}

/* ^6 --------------------------- Kendo grid -------------------------*/

.k-alt > .k-state-selected {
    background-color: #3c8dbc;
    border-color: #3c8dbc;
}

.k-state-hover,
.k-state-hover:hover {
    background-color: #a99f9a;
    border-color: #a99f9a;
}

.k-grid table tr.k-alt td {
    background-color: transparent !important;
}

.k-grid table tr:hover > td {
    background: transparent !important;
}

/* ^6.1 --------------------------- Grid Item Colours for Batch Formula Statuses -------------------------*/
span.grid-report-item.lightyellow {
    background-color: #FFD700;
    color: #fff;
}

span.grid-report-item.darkyellow {
    background-color: #8B4513;
    color: #fff;
}

span.grid-report-item.lightblue {
    background-color: #ADD8E6;
    color: #fff;
}

span.grid-report-item.mediumblue {
    background-color: #0000CD;
    color: #fff;
}

span.grid-report-item.darkblue {
    background-color: #00008B;
    color: #fff;
}

span.grid-report-item.lightgreen {
    background-color: #90EE90;
    color: #fff;
}

span.grid-report-item.darkgreen {
    background-color: #008000;
    color: #fff;
}

span.grid-report-item.lightred {
    background-color: #F08080;
    color: #fff;
}

span.grid-report-item.darkred {
    background-color: #800000;
    color: #fff;
}

/* ^7 --------------------------- flow control treeview MES Side Menu -------------------------*/
.treeview-menu > li.disabled-item > a {
    color: #842;
}

    .treeview-menu > li.disabled-item > a:hover {
        color: #842;
    }


/* ^8 --------------------------- GridDetails Toolbar Buttons -------------------------*/
.tb-btn-margin-left {
    margin-left: 3px;
}

/* ^9 --------------------------- Labels Text Align -------------------------*/
.label-wrapper {
    float: left !important;
}

@media (min-width: 768px) {
    .form-horizontal .control-label {
        text-align: left;
    }
}

/* ^10 ------------------Search block collapse (from nop 4.20)  -----------------------*/
/*Search block collapse*/
.search-row {
    padding-left: 50px;
    padding-right: 30px;
    position: relative;
    cursor: pointer;
}

.panel-search .search-body.closed {
    display: none;
}

.panel-search .search-body {
    display: block;
    margin-top: 15px;
}

.icon-search {
    position: absolute;
    left: 0;
    top: 3px;
    text-align: center;
    width: 50px;
}

    .icon-search i {
        font-size: 18px;
        padding-right: 0 !important;
    }

.icon-collapse {
    position: absolute;
    right: 0;
    top: 3px;
    text-align: center;
    width: 42px;
}

    .icon-collapse i {
        font-size: 20px;
        padding-right: 0 !important;
        font-weight: bold;
    }

.search-text {
    font-size: 18px;
}

/* ^11 ------------------Datatables stuff (from nop 4.20)  -----------------------*/
.float-lg-left {
    float: left;
}

.float-lg-right {
    float: right;
}

div.dataTables_wrapper {
    position: relative;
}

    div.dataTables_wrapper div.dataTables_processing {
        border: none;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin-left: auto;
        margin-top: auto;
        z-index: 50;
        background: rgba(255,255,255,0.7);
        -ms-border-radius: 3px;
        border-radius: 3px;
    }

        div.dataTables_wrapper div.dataTables_processing .fa {
            padding-right: 0 !important;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-left: -15px;
            margin-top: -15px;
            color: #000;
            font-size: 30px;
        }

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #f4f4f4;
}

.dataTables_wrapper thead {
    background-color: #f4f4f4;
}

.dataTables_wrapper tbody td {
    vertical-align: middle !important;
}

/* JQUERY DATA TABLES */
.button-column {
    text-align: center;
}

.table > tbody > tr > td.button-column {
    padding: 2px;
}

    .table > tbody > tr > td.button-column .btn {
        margin-top: 1px;
        margin-bottom: 1px;
        padding: 5px 12px;
    }

div.dataTables_wrapper div.dataTables_length {
    margin: 5px 5px 0 5px;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0;
    margin-top: 10px;
}

div.dataTables_wrapper .data-tables-refresh > div {
    float: none;
    margin-top: 2px;
    width: auto;
}

.table-bordered {
    border: 1px solid #e3e3e3;
}

    .table-bordered > thead > tr > th,
    .table-bordered > tbody > tr > th,
    .table-bordered > tfoot > tr > th {
        border: 1px solid #e3e3e3;
    }

    .table-bordered > thead > tr > td,
    .table-bordered > tbody > tr > td,
    .table-bordered > tfoot > tr > td {
        border-top: 1px solid #f3f3f3;
        border-right: 1px solid #e3e3e3;
    }

.dataTables_scrollBody .dataTables_wrapper {
    width: 95%;
    margin-left: 3%;
}

.dataTables_scroll > .dataTables_scrollBody > .table,
.dataTables_scroll > .dataTables_scrollHead > .dataTables_scrollHeadInner > .table {
    padding-left: 0 !important;
}

div.dataTables_wrapper div.dataTables_paginate {
    text-align: center;
}

@media (max-width: 1200px) {
    .dataTables_scrollBody .dataTables_wrapper {
        width: 100%;
        margin-left: 0;
    }

    div.dataTables_wrapper div.dataTables_info {
        margin-top: 0;
    }

    div.dataTables_wrapper .data-tables-refresh {
        margin-top: 8px;
    }

    .float-lg-left {
        float: none;
    }

    .float-lg-right {
        float: none;
    }
}

@media (max-width: 992px) {
    .panel-search .form-control {
        max-width: 100%;
    }

    div.dataTables_wrapper div.dataTables_length {
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    div.dataTables_wrapper div.dataTables_length {
        text-align: center;
    }
}

@media (max-width: 572px) {
    div.dataTables_wrapper div.dataTables_length {
        text-align: center;
    }

    .float-lg-left {
        float: none;
    }

    .float-lg-right {
        float: none;
    }
}

div.dataTables_wrapper .table-bordered > thead > tr > th {
    font-weight: bold;
}

/* ^12 ------------------ Disable Hover  -----------------------*/
.table-disable-hover.table tbody tr:hover td,
.table-disable-hover.table tbody tr:hover th {
    background-color: transparent;
}

.table-disable-hover.table-striped tbody tr:nth-child(odd):hover td,
.table-disable-hover.table-striped tbody tr:nth-child(odd):hover th {
    background-color: transparent;
}

.dataTable > thead > tr > th,
.dataTable > tbody > tr > th,
.dataTable > tfoot > tr > th,
.dataTable > thead > tr > td,
.dataTable > tbody > tr > td,
.dataTable > tfoot > tr > td {
    padding: 4px;
}

/* 200124 - disable hover for New Run eSignature details table in MES Action  */
.table-mes-new-run-esign-details.table tbody tr:hover td,
.table-mes-new-run-esign-details.table tbody tr:hover th {
    background-color: #FFD700;
}

/* ^13 --------------------------- input text always upper case -------------------------*/

.text-box-keyup-touppercase {
    text-transform: uppercase;
}

.text-box-keyup-tolowercase {
    text-transform: lowercase;
}

.text-box-keyup-none {
    text-transform: none;
}

/* ^14 ---------------------------- blinking text in colors ------------------------------ */
.blinkingInColor {
    animation: blinkingInColor 1s infinite;
}

@keyframes blinkingInColor {
    from {
        background-color: var(--fromBackgroundColor);
        color: var(--fromColor);
    }

    to {
        background-color: var(--toBackgroundColor);
        color: var(--toColor);
    }
}

.blinking {
    animation: blinkingText 1.2s infinite;
}

@keyframes blinkingText {
    0% {
        background-color: var(--backgroundColor);
        color: var(--textColor);
    }

    49% {
        background-color: var(--backgroundColor);
        color: var(--textColor);
    }

    60% {
        background-color: var(--backgroundColor);
        color: transparent;
    }

    99% {
        background-color: var(--backgroundColor);
        color: transparent;
    }

    100% {
        background-color: var(--backgroundColor);
        color: var(--textColor);
    }
}

/* ^15 --------------------------- Custom Properties styles ---------------------------------*/
.custom-property-panel-body .custom-property-form-row-group {
    margin-left: 0px;
}

/* ^16 --------------------------- Datatables stuff (MakingControl) ------------------------------*/
.dataTable button {
    color: black;
}

/* ^17 --------------------------- ListingDetails -------------------------------------------*/
/* Thick border */
hr.separator-line {
    border: 1px solid lightgray;
}

/* ^18 --------------------------- Mobile Input --------------------------------------------*/
input.big-input {
    font-size: 28px;
}

.no-padding {
    padding: 0px
}

/* ^19 --------------------------- Bootstrap -----------------------------------------------*/
@media (max-width: 440px) {
    .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
        padding-right: 0px;
        padding-left: 0px;
    }
}


/* ^20 -------------- Picture Evidence camera button style ---------------------------------*/
#click-photo {
    position: absolute;
    top: 2px; /* Adjust the distance from the bottom as needed */
    left: 50%; /* Position the button horizontally at the center */
    transform: translateX(-50%); /* Center the button using transform */
    width: 45px; /* Set the width and height to create a circular button */
    height: 45px;
    border: none;
    background-color: #d46868;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    border-radius: 50%;
    overflow: hidden;
}

#click-photo::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border: 2px solid #e2e1e1; /* Black border */
    border-radius: 50%;
}

#click-photo:hover {
    background-color: #d46868;
}

#click-photo:focus {
    outline: none;
}

/* ^21 --------------------------- Inserted MesEvents --------------------------------------*/
.panel-info > .inserted-mes-event {
    color: #31708f;
    background-color: gold;
    border-color: #bce8f1;
}
