* {
  font-family: sans-serif;
  font-size: 12px;
}

.data-imei {
  font-weight: bold;
  font-size: 15pt;
}

.data-refresh {
  margin-right: 0px;
}
.index-refresh {
  margin-right: 0px;
}

.data-change {
  margin-left: 20px;
}

.width100p {
  width: 100% !important;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.simclick {
  color: #337ab7 !important;
}

.inline-small {
  padding: 1px 5px!important;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
  height: auto !important;
  margin-top: -1px;
}

table.table-4 td
{
  padding: 2px;
  text-align: center;
  min-width: 12px;
}
table.table-4 tr
{
  min-height: 12px;
  height: 18px;
}

table.table-padding td
{
  padding: 2px 4px;
}

div.error, td.error, a.error
{
  color: red;
}

input.error, select.error
{
  border-color: red;
}

div.ok, td.ok, a.ok
{
  color: green;
}

input.ok, select.ok
{
  border-color: green;
}

#main-info-body{
  position: relative;
}

.ui-dialog.ble-conf-dialog-top {
  position: fixed !important;
  top: 8px !important;
}
.ui-dialog.ble-conf-dialog-top .ui-dialog-content {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#temp-values {
  width: 100%;
}
#temp-values .sensor-id {
  width: 50px;
}
#temp-values .sensor-temp {
  width: 42px;
}
#temp-values .sensor-timestamp {
  width: 80px;
}
#temp-values .sensor-name {
  width: 100px;
}
#temp-values .sensor-btn {
  width: 70px;
}
#temp-values .sensor-btn button {
  font-size: 11px;
  padding: 3px 6px;
}

.loader-back {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
#main-info-body.loading .loader-back {
  display: block;
  background-color: rgba(226,226,226,0.7);
  z-index: 20;
}
#main-info-body.loading .loader-back .lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
  padding-top: 48%;
}
#main-info-body.loading .loader-back .lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes companyAutofillGlow {
  0%, 100% { box-shadow: none; border-color: #28a745; }
  50% { box-shadow: 0 0 8px 3px rgba(40, 167, 69, 0.85); border-color: #28a745; }
}
#companyfield.company-autofilled {
  border-color: #28a745;
  animation: companyAutofillGlow 1.4s ease-in-out 2;
}
.master-object-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 5px solid #337ab7;
  border-color: #337ab7 transparent #337ab7 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
.btn .btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: text-top;
  border-radius: 50%;
  border: 2px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

/* Camera barcode scanner (serial.php IMEI field, data.php BLE dialog) */
.scan-controls {
  margin-bottom: 6px;
}
.scan-status {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}
.scan-viewport {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 160px; /* per-mode height is applied by barcode-scan.js */
  margin: 0 auto 6px;
  background: #000;
  overflow: hidden;
  border-radius: 4px;
}
.scan-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scan-window {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
}
.scan-zoom {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 6px auto;
}