
body {
  overflow-x: hidden;
  background: #F9FAFB;
}

.db-subtitle {
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.db-tt-hdr {
    font-weight: 500;
}

.db-primary {
    font-size: 1.8em;
    font-weight: 500;
}

.db-section {
    padding: 1.5rem !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px;
}

.db-section-header {
    font-size: 1.2em;
    cursor: pointer;
}

.db-section-name {
    text-decoration: underline;
    font-weight: 500;
}

.db-popover {
    max-width: 17rem;
}

.table-xs td, .table-xs th {
    padding: .1rem;
    font-size: 0.9rem;
}

.modal {
  overflow-y:auto;
}

.cursor-pointer {
    cursor: pointer;
}

.scroll-thin {
    overflow-y: auto;
    scrollbar-width: thin;           /* Firefox */
    scrollbar-color: #333 transparent; /* thumb, track */
}

/* Chrome, Edge, Safari */
.scroll-thin::-webkit-scrollbar {
    width: 6px;                      /* scrollbar width */
}

.scroll-thin::-webkit-scrollbar-track {
    background: transparent;         /* hide track */
}

.scroll-thin::-webkit-scrollbar-thumb {
    background-color: #222;          /* thumb color */
    border-radius: 10px;             /* round corners */
}

.table-borderless > tbody > tr > td,
.table-borderless > tbody > tr > th,
.table-borderless > tfoot > tr > td,
.table-borderless > tfoot > tr > th,
.table-borderless > thead > tr > td,
.table-borderless > thead > tr > th {
    border: none;
}

/* Tablet interface */

.tab-description {
    display: none;
    color: black;
}

.nav-link.active .tab-description {
    display: initial;
}

.nmop-nav, .drive-nav {
    border: 1px solid lightgray;
    border-radius: 0.4rem;
    margin: 0.25rem 0;
    background: #F2F4F7;
}

.step-num {
    display: inline-block;
    border: 1px solid #EC6527;
    background: #EC6527;
    width: 1.8rem;
    border-radius: 0.9rem;
    text-align: center;
    color: white;
}

.nav-link.disabled .step-num {
    border: 1px dotted gray;
    background: none;
    color: gray;
}

.nav-link.active .step-num {
    background: black;
    border-color: black;
    border-style: solid;
    color: white;
}

.form-section {
    border: 1px solid #ededed;
    border-radius: 0.4rem;
}

.btn-fe {
    color: white;
    background-color: #EC6527;
    border-color: #EC6527;
}

.text-fe {
    color: #EC6527 !important;
}

.bg-fe {
    background-color: #EC6527 !important;
}

.bg-ntrl {
    background-color: #d0d6e5 !important;
}

.fe-lbl {
    margin-bottom: 0;
    font-size: small;
}

.photo-frame {
    border: 1px dotted gray;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    overflow: hidden;
    position: relative;
}

.photo-placeholder {
    text-align: center;
}

.ph-img, .ph-other {
    max-width: 72px;
    max-height: 72px;
    cursor: pointer;
}

.add-upload {
    background: url(/img/add-photo.png);
    background-repeat: no-repeat;
    background-position: top right;
}

#edit_image {
    max-height: calc(100vh - 180px);
    max-width: 100%;
}

.image-preview {
    max-width: 100%;
}

.image-other {
    max-height: 100px;
    display: inline-block;
    margin: 5px;
}

.jcrop-holder {
    margin: auto;
}

.fe-text {
    color: #EC6527;
}

.getAddress_autocomplete_list {
    width: max-content;
}

.getAddress_autocomplete_suggestion {
    padding: 0.5rem 0;    
}

.address-list-item {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid lightgray;
}

.ws-input {
    display: inline-block;
    width: 10rem;
}

.anpr-reg-plate {
    font-size: 3.3em;
    font-family: UKRegPlate;
    letter-spacing: 0.1rem
}

.anpr-reg-thumb {
    font-family: UKRegPlate;
    border: 1px solid lightgray;
    padding: 0 0.25rem;
    border-radius: 0.2rem;
    font-size: large;
    min-width: 5.5rem;
    text-align: center;
    display: inline-block;
}

/* Admin interface */

.marker-label-light {
    font-weight: bold;
    text-shadow: 
        2px 2px 2px white,
        2px -2px 2px white,
        -2px 2px 2px white,
        -2px -2px 2px white,
        2px 2px 2px white,
        2px -2px 2px white,
        -2px 2px 2px white,
        -2px -2px 2px white;
}

.cc-alias {
    display: inline-block;
    background: #a9ddf7;
    border-radius: 0.3rem;
    font-size: 0.8em;
    padding: 0.1rem 0.5rem;
    margin: 0 0.1rem;
}

.bootstrap-autocomplete.dropdown-menu {
    font-size: 0.9rem;
}

.bootstrap-autocomplete .dropdown-item {
    cursor: pointer;
    padding: 0.25rem;
}

.bootstrap-select .dropdown-menu {
    font-size: 0.85rem;
}

.bootstrap-select .dropdown-toggle {
    color: inherit !important;
    background: white;
}

.bs-select-all, .bs-deselect-all {
    border: 1px solid lightgray;
}

.bs-anpr-sites {
    border: 1px solid lightgray;
    border-radius: 0.25rem;
    margin: 0.5rem;
    width: calc(100% - 1rem);
    background-color: #f8f9fa;
}

.db-photo-frame {
    border: 1px dotted gray;
    height: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    overflow: hidden;
    background: white;
}

.db-photo, .db-img-upload {
    max-height: 100%;
    max-width: 100%;
    cursor: pointer;
}

.img-thumb {
    cursor: pointer;
    border: 1px solid lightgray;
}

.img-thumb.selected {
    border: 2px solid #EC6527;
}

.missing-image {
    border: 3px solid red;
}

.reloaded-image {
    border: 3px solid green;
}

#db_view_image {
    max-height: calc(100vh - 250px);
    max-width: 100%;
}

.check-photo-frame {
    border: 1px dotted gray;
    height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    overflow: hidden;
}

.check-photo {
    max-height: 100%;
    max-width: 100%;
}

.act-line {
    height: calc(100% - 1.5rem);
    border-left: 1px dotted lightgray;
    position: absolute;
    left: 1.4rem;
    top: 1.5rem;
}

.act-name {
    text-indent: -0.65rem;
    padding-left: 1.3rem;
}

.text-stroke {
    text-decoration: line-through;
}

.text-underline {
    text-decoration: underline;
}

.check-tab, .check-link {
    display: inline-block;
}

@media (min-width: 1800px) {
    .modal-xl {
        max-width: 1740px;
    }    
}

/* ANPR */

.anpr-summary-block {
    border: 2px solid black;
    border-radius: 1rem;
}

.anpr-nav {
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
}

.anpr-nav-link {
    width: 12rem;
    text-align: center;
    border-radius: 0 !important;
    margin: 0 !important;
    font-size: initial !important;
}

.anpr-nav-link.active {
    background-color:  black !important;
    color: white !important;
    font-weight: 500;
}

/* ANPR Dashboard */

#anpr_dashboard .db-primary {
    font-size: 2em;
    font-weight: 600;
    color: #333;
}

#anpr_dashboard .db-unit {
    font-size: 0.5em;
    font-weight: normal;
    color: #666;
}

.db-tooltip {
    color: #999;
    cursor: help;
}

.db-th {
    border-bottom: 1px solid #EC6527 !important;
}

.db-detail-th {
    border-top: none !important;
    border-bottom: 2px solid #EC6527 !important;
}

#anpr_dashboard .border-fe {
    border-left: 4px solid #EC6527 !important;
}

#anpr_dashboard .table th {
    font-weight: 500;
    font-size: 0.85em;
    border-top: none;
}

#anpr_dashboard .table td {
    font-size: 0.9em;
}

#anpr_dashboard .progress {
    background-color: #e9ecef;
}

.img-popup {
    width: 25rem;
    min-height: 10rem;
}

.popover {
    max-width: 30rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#anpr_hover {
	border: 1px solid gray;
    position: absolute;
    top: 200px;
    left: 200px;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 5px;
    z-index: 9999;
    display: none;
}

#zoom_hover {
	border: 1px solid gray;
    position: absolute;
    top: 200px;
    left: 200px;
    width: 400px;
    height:  300px;
    border-radius: 5px;
    z-index: 9999;
    display: none;
    background-repeat:no-repeat;
}

#dvla_hover {
	border: 1px solid gray;
    position: fixed;
    top: 10%;
    left: 45%;
    width: 50%;
    height: 80%;
    border-radius: 5px;
    z-index: 9999;
    background-repeat: no-repeat;
    background-position: 0 -250px;
    display: none;
    background-size: cover;
}

.anpr-img {
	max-width: 100%;
    width: auto;
}

.anpr-info {
    display: flex;
    justify-content: space-between;
    background: white;
    width: 100%;
    font-size: 0.8em;
}

.img-container {
	overflow: hidden !important;
	width: 100%;
	position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 4/3;
}

.pac-container {
    background-color: #FFF;
    z-index: 9990;
    position: fixed;
    display: inline-block;
    float: left;
}

.edit-click {
	cursor: pointer;
}

.bootstrap-select {
	border: 1px solid #ced4da !important;
    height: 31px !important;
} 

.bootstrap-select button {
	padding-top: 2px !important;
}

.navbar {
	position: sticky;
	top:0;
	z-index: 999;
}

.nav-link {
	color: black !important;
    font-size: large;
}

.nav-link:hover {
	color: #EC6527 !important;
}

.nav-item.active .nav-link {
	color: #EC6527 !important;
    border-bottom:  2px solid #EC6527;
    font-weight: 500;
}

.ssn {
	position: absolute;
	top:0;
	color: transparent !important;
	background: transparent !important;
	font-family: 'Libre Barcode 39 Extended', cursive;
}

.ssn-mask {
	position: absolute;
	padding: 4px 8px;
	font-size: 0.875rem;
	color: #495057;
	width: 130px !important;
    max-width: 130px !important;
}

.ssn-container {
	display: inline-block;
    position: relative;
    width: 150px !important;
    max-width: 150px !important;
    height: 31px;
}

.act-icon {
	margin: 0 10px;
}

.mfg {
	justify-content: space-between;
	margin-top: 8px;
	margin-bottom: 8px;
}

.mfg label {
	margin-left: 15px;
}

.mfg:hover {
	background: #eeeeee !important;
}

.mfg label.lr {
	margin-left: 15px;
}

.mfg label.lr::before {
  content: "* ";
  color: red;
  margin-left: -15px;
  width: 15px;
  font-weight: bold;
}

.cb-yn {
	width: 25px !important;
	height: 25px !important;
}

.mfg .form-control-sm {
	width: 150px !important;
}

.navForm {
	min-width: 300px;
	padding: 10px;
}

.pwinput {
	max-width: 40%;
}

.phead {
	font-weight: bold;
}

.req-star {
	font-weight: bold;
	color: red;
}


.sticky-col {
	position: sticky;
	left: 0;
	background: #cfcfcf;
	white-space: nowrap;
}

.sticky-row {
	position: sticky;
	top:49px;
}

.list-group-item.active {
	background: #DAE0E5 !important;
	color: #495057;
}

/** Sortable Plugin **/
body.dragging, body.dragging * {
  cursor: move !important;
}

.dragged {
  position: absolute !important;
  opacity: 0.5;
  z-index: 2000;
}

ul.sortable li {
  position: relative;
  padding: 5px;
}

ul.sortable li:before {
  position: absolute;
  /** Define arrowhead **/
}

#sidebar-wrapper {
  min-height: 100vh;
  margin-left: -10rem;
  -webkit-transition: margin .25s ease-out;
  -moz-transition: margin .25s ease-out;
  -o-transition: margin .25s ease-out;
  transition: margin .25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
  padding: 0.875rem 1.25rem;
  font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
  width: 10rem;
}

#page-content-wrapper {
  min-width: 100vw;
  background: #F9FAFB;
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

#loader
{
	height: 100%;
	width: 100%;
    cursor: wait;
	top: 0;
	left: 0;
	text-align: center;
	position: fixed;
	background-color: black;
	opacity: 0.5;
	display: none;
	z-index: 99999;
}

.va
{
	position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -100px;
    margin-top: -100px;
}

.error {
    position: relative;
    border: 1px solid maroon;
    color: #000;
    border-radius: 4px;
    padding: 5px;
    margin: 2px;
    background: url("/img/error.png") no-repeat pink 3px 14px;
}
.notice {
    position: relative;
    border: 1px solid #00a200;
    color: #000;
    border-radius: 4px;
    padding: 5px;
    margin: 2px;
    background: url("/img/info.png") no-repeat #acf2ac 3px 7px;
}
.success h1, .notice h1, .error h1 {
    border-bottom: 2px solid;
    font-weight: bold;
    text-align: left;
    font-size: 30px;
    padding-left: 20px;
}
div.error h1 {
    border-color: #ff0000;
}
div.notice h1 {
    border-color: #007700;
}

.close-link {
	position: absolute;
    top: 0px;
    right: 7px;
    color: #00000099;
    font-weight: bold;
    cursor: pointer;
}

.popup-item {
	padding-left: 25px;
}

#popup_container {
	position: absolute;
    width: 100%;
    z-index: 9990;
}

@font-face {
    font-family: UKRegPlate;
    font-weight: normal;
    font-style: normal;
    src: url("/inc/assets/UKNumberPlate.ttf") format("truetype");
}

@media (max-width: 1400px) {
  .mfg label {
	max-width: calc(100vw - 200px);
  }
  .mfg span {
	max-width: calc(100vw - 200px);
  }
}

@media (min-width: 780px) {
  #sidebar-wrapper {
    margin-left: 0;
  }

  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }

  #wrapper.toggled #sidebar-wrapper {
    margin-left: -10rem;
  }
}

@media print {
  #sidebar-wrapper {
    display: none;
  }
  .no-print {
  	display: none !important;
  }
}

/* EPOS Upload Summary Styles */
.epos-summary-table {
    width: 100%;
    font-size: 0.95rem;
}

.epos-summary-table td {
    padding: 10px 15px;
    background: #f2f2f2;
    border-top: 1px solid lightgray;
}

.epos-summary-table .epos-label {
    font-weight: 500;
    color: #333;
}

.epos-summary-table .epos-val {
    text-align: right;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    width: 60px;
}

.epos-summary-table .epos-pct {
    text-align: right;
    color: #555;
    white-space: nowrap;
    width: 60px;
}

.epos-summary-table tr.epos-missing td {
    background: #fce4e4;
}

.epos-summary-table tr.epos-loss td {
    background: #c8c8c8;
}

.epos-summary-table .epos-sub {
    font-weight: 400;
    font-size: 0.85em;
    color: #555;
}
