@import url('https://fonts.googleapis.com/css2?family=Maven+Pro:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy: #010f2e;
  --blue: #6697ff;
  --blue-deep: #204863;
  --bg: #eef2f8;
  --panel: #ffffff;
  --line: #d7dee9;
  --text: #1a2332;
  --muted: #6b778a;
  --fail-bg: #fde8e8;
  --fail-fg: #b42318;
  --refund-bg: #fff1e6;
  --refund-fg: #c2410c;
  --ok: #0f7b4c;
  --warn: #b45309;
  --sidebar-w: 248px;
  --chrome-top: 60px;
  --chrome-nav: 70px;
  --chrome-report: 48px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(1, 15, 46, 0.08);
  --font: "Maven Pro", "Noto Sans TC", sans-serif;
  --fs-body: 16px;
  --fs-table: 0.84rem;
  --fs-meta: 0.86rem;
  --fs-toolbar: 0.85rem;
  --fs-nav: 1rem;
  --fs-title: 1.25rem;
  --dt-footer-font: 0.85rem;
}

tr.row-coin-short > td {
  background: var(--refund-bg) !important;
  color: var(--refund-fg) !important;
}

#dbTabsContent div.dataTables_wrapper div.dataTables_info {
  text-align: right !important;
  width: auto !important;
}
#dbOrderInfoTable .js-order-sensor {
  width: 80px !important;
  max-width: 80px !important;
  display: inline-block;
}

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(102, 151, 255, 0.22), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(32, 72, 99, 0.12), transparent 55%),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

#userLogin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(180deg, #071833 0%, #010f2e 100%);
}

#logoNav {
  background-color: var(--navy);
}

#userLogin .login-shell {
  width: 100%;
  max-width: 760px;
}

#userLogin .login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
}

#userLogin .login-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

#userLogin .login-heading-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

#userLogin .login-card h1 {
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  text-align: center;
}

#userLogin .login-lead {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

#userLogin .login-card a {
  color: var(--blue-deep);
  font-weight: 600;
}

#userLogin .form-group {
  margin-bottom: 0.85rem;
}

#userLogin .input-group-text {
  background: #f7f9fc;
  border: 1px solid var(--line);
  color: var(--blue-deep);
  min-width: 2.75rem;
  justify-content: center;
}

#userLogin .form-control {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

#userLogin .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.15rem rgba(102, 151, 255, 0.2);
}

#userLogin .input-group:not(:has(.input-group-append)) .form-control {
  border-radius: 0 8px 8px 0 !important;
}

#userLogin .input-group:not(:has(.input-group-append)) .input-group-text {
  border-radius: 8px 0 0 8px !important;
}

#userLogin .input-group:has(.input-group-append) .form-control {
  border-radius: 0 !important;
}

#userLogin .input-group:has(.input-group-append) .input-group-text {
  border-radius: 8px 0 0 8px !important;
}

#userLogin .input-group:has(.input-group-append) .input-group-append .btn {
  border-radius: 0 8px 8px 0 !important;
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
}

#userLogin .login-remember {
  margin-bottom: 1.1rem;
}

#userLogin .custom-control-label {
  color: var(--muted);
  font-size: 0.9rem;
}

#userLogin .loginBtn,
#userLogin .myBtn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 0.95rem;
  background: linear-gradient(135deg, #0acffe, #495aff);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 16px rgba(73, 90, 255, 0.28);
}

#userLogin .loginBtn:hover,
#userLogin .myBtn:hover {
  filter: brightness(1.05);
  color: #fff;
}

#userLogin .login-back {
  appearance: none;
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: var(--blue-deep);
  font-weight: 600;
  cursor: pointer;
}

#userLogin .login-back:hover {
  background: #f7f9fc;
}

@media (max-width: 820px) {
  html:has(#userLogin) {
    height: 100%;
    overflow: hidden;
  }

  #userLogin {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    align-items: flex-start;
    min-height: 0;
    height: 100%;
    height: 100svh;
    overflow: auto;
    overscroll-behavior: none;
    padding-top: calc(max(1rem, env(safe-area-inset-top)) + 20px);
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

.wrapper {
  height: 100vh;
}

.myColor {
  background-color: var(--navy);
}

.myShadow {
  box-shadow: var(--shadow);
}

.myHr {
  height: 2px;
  border-radius: 100px;
}

.myLinkBtn {
  border-radius: 8px;
  width: 80%;
  border: 2px solid #fff;
}

.input-group:not(:has(.input-group-append)) .form-control {
  border-radius: 0 0.375rem 0.375rem 0 !important;
}

.input-group:not(:has(.input-group-append)) .input-group-text {
  border-radius: 0.375rem 0 0 0.375rem !important;
}

.input-group:has(.input-group-append) .form-control {
  border-radius: 0 !important;
}

.input-group:has(.input-group-append) .input-group-text {
  border-radius: 0.375rem 0 0 0.375rem !important;
}

.input-group:has(.input-group-append) .input-group-append .btn {
  border-radius: 0 0.375rem 0.375rem 0 !important;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #071833 0%, #010f2e 100%);
  color: #fff;
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.45rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: auto;
  flex: 1;
  padding-right: 0.15rem;
}

.sidebar-hello {
  padding: 0.35rem 0.8rem 0.7rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.sidebar .nav a {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--fs-nav);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.sidebar .nav a i {
  width: 1.1rem;
  text-align: center;
  flex-shrink: 0;
}

.sidebar .nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar .nav a.active,
.sidebar .nav a.link-active {
  background: rgba(102, 151, 255, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(102, 151, 255, 0.45);
}

.sidebar .nav a.nav-back-cubo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.sidebar .nav a.nav-back-cubo .link-text,
.sidebar .nav a.nav-back-cubo strong {
  font-size: 1.35rem;
  font-weight: 800;
}

.sidebar .nav a.nav-back-cubo i {
  font-size: 1.2rem;
}

.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-foot .muted {
  color: rgba(255, 255, 255, 0.5);
}

.app > .main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(238, 242, 248, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(215, 222, 233, 0.85);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  place-items: center;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.topbar-title {
  flex: 1;
  min-width: 0;
}

.topbar-title h1 {
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.topbar:has(.topbar-report-nav) {
  justify-content: flex-start;
}

.topbar:has(.topbar-report-nav) .topbar-actions {
  position: static;
  transform: none;
  flex-shrink: 0;
}

.topbar-report-nav {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.topbar-report-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}

.topbar-report-nav button:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
}

.topbar-report-nav button.active {
  color: var(--navy);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.ghost-btn,
.topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  color: var(--blue-deep);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.ghost-btn:hover,
.topbar-logout:hover {
  background: #f7f9fc;
  color: var(--navy);
  text-decoration: none;
}

.app > .main > .content {
  padding: 1rem 1.25rem 2rem;
  margin-left: 0;
  min-width: 0;
}

.myContent {
  margin-top: 0;
}

.date-picker-icon {
  height: 38px;
}

.date-picker-input {
  font-size: 18px !important;
  height: 38px;
  padding: 0 2px;
}

.date-picker-separator {
  height: 38px;
  border-radius: 0;
  border-left-style: hidden;
  border-right-style: hidden;
}

#info-form {
  font-size: 1rem !important;
  font-weight: 800;
}

#info-form .form-control-plaintext {
  font-size: 1.25rem !important;
  font-weight: 500;
}

.mobile-records-table {
  padding-bottom: 1rem;
}

.mobile-records-date-range {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.mobile-records-table .scrollable-table-body.mobile-records-scroll {
  margin-top: 0;
  padding-bottom: 1.25rem;
}

.mobile-records-list-inner {
  max-width: 100%;
}

.mobile-records-data {
  table-layout: fixed;
  width: 100%;
  font-size: 0.8125rem;
  border: 0;
}

.mobile-records-data thead tr {
  background-color: #f8f9fa;
}

.mobile-records-data thead th {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  border-bottom: 2px solid #dee2e6;
  font-weight: 900 !important;
  padding: 0.5rem 0.35rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.mobile-records-data tbody td {
  padding: 0.45rem 0.35rem;
  vertical-align: middle;
  word-wrap: break-word;
  color: #212529;
}

.mobile-records-data th:nth-child(1),
.mobile-records-data td:nth-child(1) {
  width: 40%;
  min-width: 0;
}

.mobile-records-data th:nth-child(2),
.mobile-records-data td:nth-child(2) {
  width: 18%;
}

.mobile-records-data th:nth-child(3),
.mobile-records-data td:nth-child(3) {
  width: 14%;
}

.mobile-records-data th:nth-child(4),
.mobile-records-data td:nth-child(4) {
  width: 28%;
  font-variant-numeric: tabular-nums;
}

.mobile-records-cell-device .device-name {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
}

.mobile-records-cell-time .mobile-records-date {
  display: block;
  font-weight: 500;
  color: #334155;
  line-height: 1.25;
}

.mobile-records-cell-time .mobile-records-clock {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

.mobile-records-activate {
  display: inline-block;
  min-width: 1.1rem;
  text-align: center;
}

.mobile-records-activate .fa-check {
  font-size: 1rem;
}

.mobile-records-activate--off {
  min-height: 1rem;
}

#info-form .col-form-label a {
  color: inherit;
}

.table,
table.dataTable,
.dataTables_wrapper {
  font-size: var(--fs-table);
}

.card-header,
.card-header h5,
.card-header h6,
.panel-head h2 {
  font-size: 1rem;
  font-weight: 700;
}

.note {
  font-size: var(--fs-meta);
  color: var(--muted);
}

.form-control,
.custom-select,
.btn:not(.btn-lg):not(.btn-sm) {
  font-size: var(--fs-toolbar);
}

.btn-sm {
  font-size: 0.78rem;
}

.backdrop {
  display: none;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  background: linear-gradient(90deg, rgba(102, 151, 255, 0.12), transparent 70%);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.card-header.text-white:not(.bg-light):not(.bg-white) {
  background: var(--navy);
  color: #fff;
}

.page-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1rem;
}

.page-panel:has(#showDevice) {
  overflow: visible;
}

.page-panel > .card-body,
.page-panel-body {
  padding: 1rem 1.15rem;
}

.fault-toolbar .form-group label {
  display: block;
}

#faultTable th.js-sort-date {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

#faultTable th.js-sort-date:hover {
  color: var(--navy, #1b365d);
}

.fault-pager .btn:disabled {
  opacity: 0.45;
}

.myContent.px-0 > .page-panel,
.myContent > .page-panel {
  margin-bottom: 0;
}

.page-panel #showDevice.table-responsive,
.page-panel #showInventory.table-responsive,
.page-panel #showAvalible.table-responsive,
.page-panel #showBoxAlias.table-responsive,
.page-panel .table-responsive {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
}

.page-panel .records-cubo-table-scroll {
  box-shadow: none;
}

.page-panel.records-location-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  height: 100%;
}

.page-panel.records-location-panel > .page-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.myContent .nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

.myContent .tab-content {
  width: 100%;
}

.myContent .tab-pane .d-flex h5 {
  margin: 0;
  font-weight: 600;
}

.myContent .btn-primary {
  background-color: var(--blue);
  border-color: var(--blue);
  font-weight: 500;
}

.myContent .btn-primary:hover {
  background-color: #4d7ff0;
  border-color: #4d7ff0;
}

.btn:focus,
.btn:active {
  outline: none !important;
  box-shadow: none;
}

.border-left-primary {
  border-left: 0.25rem solid #4e73df !important;
}

.border-left-info {
  border-left: 0.25rem solid #36b9cc !important;
}

.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

.border-left-warning {
  border-left: 0.25rem solid #f6c23e !important;
}

.myBtn[aria-expanded="false"] .myCaret:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f107";
  float: right;
  transition: all 0.5s;
}

.myBtn[aria-expanded="true"] .myCaret:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f107";
  float: right;
  transition: all 0.5s;
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  transform: rotate(180deg);
}

.lockscroll {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.dataTables_wrapper {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.dataTables_wrapper .row {
  margin: 0 !important;
  width: 100% !important;
  overflow: hidden;
}

.dataTables_wrapper .col-sm-12 {
  padding: 0 !important;
  overflow: hidden;
}

.dataTables_wrapper .dataTable {
  width: 100% !important;
  min-width: 100%;
}

.dataTables_wrapper .dataTables_scroll {
  width: 100%;
}

.dataTables_wrapper .dataTables_scroll {
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible;
  background: transparent;
}

.dataTables_wrapper .dataTables_scrollHead,
.dataTables_wrapper .dataTables_scrollHeadInner {
  border: 0 !important;
  background: var(--navy) !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_scrollHead {
  border-radius: var(--radius) var(--radius) 0 0 !important;
  overflow: hidden !important;
}

.dataTables_wrapper .dataTables_scrollHeadInner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
}

.dataTables_wrapper .dataTables_scrollHead table {
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_scrollBody {
  border: 1px solid var(--line) !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
  background: #fff !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_scrollHead table thead th {
  border-radius: 0 !important;
  background: var(--navy) !important;
}

.dataTables_wrapper .dataTables_scrollBody thead,
.dataTables_wrapper .dataTables_scrollBody thead tr,
.dataTables_wrapper .dataTables_scrollBody thead th {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
  background: transparent !important;
  overflow: hidden !important;
}

#showDevice .dataTables_wrapper .dataTables_scrollBody {
  max-height: calc(100vh - 430px) !important;
  overflow: auto !important;
}

#showDevice .dataTables_wrapper .dataTables_scroll {
  margin-bottom: 1rem !important;
  margin-top: 0 !important;
}
.device-list-desktop {
  display: block;
}

.device-list-mobile {
  display: none;
}

.myContent #showDevice {
  width: 100%;
  overflow: visible;
  margin: 0;
  padding: 0;
}

body.device-mgmt-page .myContent #showDevice table {
  margin: 0 !important;
}

.device-mgmt-filters {
  margin: 0;
  padding: 0 0 0.5rem;
  background: #fff;
}

.device-mgmt-filters-label {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.device-mgmt-filters #deviceLocFilter,
.device-mgmt-filters #deviceLocFilterMobile,
.device-mgmt-filters #deviceManagementSearch {
  width: 100%;
}

.device-mgmt-filters #deviceManagementSearch {
  margin-top: 0.4rem;
}

.myContent #showDevice .device-list-search {
  margin: 0;
  padding: 0.4rem 0.5rem;
  background: #fff;
}

.myContent #showDevice table#table,
.myContent #showDevice table#tableSample {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: 100%;
}

.device-list-mobile #showDeviceMobile table thead th {
  background-color: #fff !important;
  color: #212529 !important;
  font-weight: 600;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid #dee2e6;
  white-space: nowrap;
}

.device-list-mobile #showDeviceMobile table tbody td {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 1px solid #dee2e6;
}

.device-list-mobile #showDeviceMobile .action-buttons {
  white-space: nowrap;
  vertical-align: middle;
}

.device-list-mobile #showDeviceMobile .action-buttons > * {
  vertical-align: middle;
}

.device-list-mobile #showDeviceMobile .btn-test-mode {
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.15rem 0.4rem;
  min-height: 0;
}

#showDevice.table-responsive,
#showDeviceMobile.table-responsive {
  border: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.device-list-heading {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #010f2e;
}

.device-list-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.4rem;
  min-width: 0;
  width: 100%;
}

.device-loc-filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 0 1 auto;
}

.device-loc-filter .device-loc-label {
  margin: 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.device-loc-filter #deviceLocFilter,
.device-loc-filter #machineLocFilter {
  min-width: 9.5rem;
  width: 11rem;
  max-width: 100%;
  height: calc(1.5em + 0.5rem + 2px);
}

.machine-alias-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-width: 0;
  width: 100%;
}

.device-list-search-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
  flex: 0 1 auto;
}

.device-list-search-slot .dataTables_filter {
  margin: 0 !important;
  float: none !important;
  text-align: right;
}

#showDevice #table_wrapper > .top-information.d-none {
  display: none !important;
}

#showAllRecords .dataTables_wrapper .dataTables_scrollBody {
  max-height: calc(100vh - 430px) !important;
}
#showAllRecords.table-responsive {
  overflow: visible;
}
#showAllRecords .dataTables_wrapper .top-information {
  margin-bottom: 0.25rem !important;
}
#showAllRecords .dataTables_wrapper .dataTables_scroll {
  margin-top: 0 !important;
}

.table-responsive {
  max-width: 100%;
  border-radius: 0;
  background: transparent;
  overflow-x: auto !important;
  overflow-y: visible;
  margin-top: 1rem;
  border: 0;
  box-shadow: none;
}

.dataTables_wrapper:not(:has(.dataTables_scroll)) table.dataTable > thead > tr > th:first-child {
  border-top-left-radius: var(--radius) !important;
}
.dataTables_wrapper:not(:has(.dataTables_scroll)) table.dataTable > thead > tr > th:last-child {
  border-top-right-radius: var(--radius) !important;
}
.dataTables_wrapper:not(:has(.dataTables_scroll)) table.dataTable > thead > tr > th {
  border-radius: 0;
  background: var(--navy) !important;
  color: #fff !important;
}
.dataTables_wrapper:not(:has(.dataTables_scroll)) table.dataTable > tbody > tr > td:first-child {
  border-left: 1px solid var(--line) !important;
}
.dataTables_wrapper:not(:has(.dataTables_scroll)) table.dataTable > tbody > tr > td:last-child {
  border-right: 1px solid var(--line) !important;
}
.dataTables_wrapper:not(:has(.dataTables_scroll)) table.dataTable > tbody > tr:first-child > td {
  border-top: 1px solid var(--line) !important;
}
.dataTables_wrapper:not(:has(.dataTables_scroll)) table.dataTable > tbody > tr:last-child > td {
  border-bottom: 1px solid var(--line) !important;
}
.dataTables_wrapper:not(:has(.dataTables_scroll)) table.dataTable > tbody > tr:last-child > td:first-child {
  border-bottom-left-radius: var(--radius) !important;
}
.dataTables_wrapper:not(:has(.dataTables_scroll)) table.dataTable > tbody > tr:last-child > td:last-child {
  border-bottom-right-radius: var(--radius) !important;
}

.table-responsive > table.table:not(.dataTable) > thead > tr > th {
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 0 !important;
}
.table-responsive > table.table:not(.dataTable) > thead > tr > th:first-child {
  border-top-left-radius: var(--radius) !important;
}
.table-responsive > table.table:not(.dataTable) > thead > tr > th:last-child {
  border-top-right-radius: var(--radius) !important;
}
.table-responsive > table.table:not(.dataTable) > tbody > tr > td:first-child {
  border-left: 1px solid var(--line) !important;
}
.table-responsive > table.table:not(.dataTable) > tbody > tr > td:last-child {
  border-right: 1px solid var(--line) !important;
}
.table-responsive > table.table:not(.dataTable) > tbody > tr:first-child > td {
  border-top: 1px solid var(--line) !important;
}
.table-responsive > table.table:not(.dataTable) > tbody > tr:last-child > td {
  border-bottom: 1px solid var(--line) !important;
}
.table-responsive > table.table:not(.dataTable) > tbody > tr:last-child > td:first-child {
  border-bottom-left-radius: var(--radius) !important;
}
.table-responsive > table.table:not(.dataTable) > tbody > tr:last-child > td:last-child {
  border-bottom-right-radius: var(--radius) !important;
}

.day-sales-table-wrap {
  margin-top: 0 !important;
}
.day-sales-table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent;
}
.day-sales-table > thead > tr > th {
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 600;
  text-align: center !important;
  vertical-align: middle !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.75rem 0.5rem !important;
}
.day-sales-table > thead > tr > th:first-child {
  border-top-left-radius: var(--radius) !important;
}
.day-sales-table > thead > tr > th:last-child {
  border-top-right-radius: var(--radius) !important;
}
.day-sales-table > tbody > tr > td {
  text-align: center !important;
  vertical-align: middle !important;
  background: #fff;
  border-top: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  padding: 0.7rem 0.5rem !important;
}
.day-sales-table > tbody > tr > td:first-child {
  border-left: 1px solid var(--line) !important;
}
.day-sales-table > tbody > tr > td:last-child {
  border-right: 1px solid var(--line) !important;
}
.day-sales-table > tbody > tr:first-child > td {
  border-top: 1px solid var(--line) !important;
}
.day-sales-table > tbody > tr:last-child > td {
  border-bottom: 1px solid var(--line) !important;
}
.day-sales-table > tbody > tr:last-child > td:first-child {
  border-bottom-left-radius: var(--radius) !important;
}
.day-sales-table > tbody > tr:last-child > td:last-child {
  border-bottom-right-radius: var(--radius) !important;
}
.day-sales-table > tbody > tr:hover > td {
  background: #f8f9fa;
}

.records-location-table-scroll,
.records-cubo-table-scroll {
  border: 0 !important;
  border-radius: 0 !important;
  overflow: auto;
  background: transparent;
  box-shadow: none;
}

.records-location-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
}

.records-location-table-scroll table thead th,
.records-cubo-table-scroll table thead th {
  border-radius: 0 !important;
  background: var(--navy) !important;
  color: #fff !important;
}

.records-location-table-scroll table thead th:first-child,
.records-cubo-table-scroll table thead th:first-child {
  border-top-left-radius: var(--radius) !important;
}

.records-location-table-scroll table thead th:last-child,
.records-cubo-table-scroll table thead th:last-child {
  border-top-right-radius: var(--radius) !important;
}

.records-location-table-scroll table tbody td:first-child,
.records-cubo-table-scroll table tbody td:first-child {
  border-left: 1px solid var(--line) !important;
}

.records-location-table-scroll table tbody td:last-child,
.records-cubo-table-scroll table tbody td:last-child {
  border-right: 1px solid var(--line) !important;
}

.records-location-table-scroll table tbody tr:first-child td,
.records-cubo-table-scroll table tbody tr:first-child td {
  border-top: 1px solid var(--line) !important;
}

.records-location-table-scroll table tbody tr:last-child td,
.records-cubo-table-scroll table tbody tr:last-child td {
  border-bottom: 1px solid var(--line) !important;
}

.records-location-table-scroll table tbody tr:last-child td:first-child,
.records-cubo-table-scroll table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius) !important;
}

.records-location-table-scroll table tbody tr:last-child td:last-child,
.records-cubo-table-scroll table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius) !important;
}

.table-responsive table {
  width: 100% !important;
}

.dataTables_filter {
  margin-bottom: 15px;
  text-align: right;
  overflow: visible !important;
}

.dataTables_filter input {
  max-width: 200px;
  width: 200px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  overflow: visible !important;
}

.dataTables_filter label {
  white-space: nowrap;
  overflow: visible !important;
}

.dataTables_length,
.dataTables_length label,
.dataTables_length select {
  white-space: nowrap;
}

.dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
}

.dataTables_info {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.bottom-information .dataTables_info {
  width: auto;
  flex: 1 1 auto;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}

.bottom-information .dataTables_length,
.bottom-information .dataTables_paginate {
  flex: 0 0 auto;
}

.bottom-information {
  align-items: flex-start;
}
.bottom-information .dataTables_length,
.bottom-information .dataTables_info,
.bottom-information .dataTables_paginate {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.bottom-information {
  margin-top: 1rem !important;
}

.dt-buttons {
  margin-bottom: 15px;
  overflow: visible !important;
}

.dt-buttons .btn {
  font-size: var(--fs-toolbar);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  margin-right: 5px;
  overflow: visible !important;
}

.dataTables_length {
  margin-bottom: 15px;
  overflow: visible !important;
}

.dataTables_length,
.dataTables_length label,
.dataTables_length select {
  white-space: nowrap;
}

.dataTables_length label {
  display: inline-block;
  margin-bottom: 0;
}

.dataTables_length select {
  margin: 0 0.35rem;
}

.dataTables_length select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  overflow: visible !important;
}

.dataTables_info {
  margin-top: 15px;
  color: #666;
  overflow: visible !important;
  font-size: var(--dt-footer-font, 1.15rem) !important;
  text-align: center;
}

.dataTables_paginate {
  margin-top: 15px;
  overflow: visible !important;
  white-space: nowrap;
  font-size: var(--dt-footer-font, 1.15rem) !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button {
  padding: 0.05rem 0.2rem !important;
  margin: 0 0.05rem !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0 !important;
  color: #333 !important;
  white-space: nowrap;
  display: inline-block;
  border-radius: 0.25rem;
}

div.dataTables_wrapper div.dataTables_paginate span {
  display: inline-flex;
  gap: 0.1rem !important;
  align-items: center;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button.current,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #333 !important;
  border: 0 !important;
}

div.dataTables_wrapper div.dataTables_paginate .paginate_button:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  margin: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
  column-gap: 0.1rem;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item {
  flex: 0 0 auto;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-link {
  padding: 0.05rem 0.2rem !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0 !important;
  width: auto !important;
  line-height: 1.1;
  font-size: var(--dt-footer-font, 1.15rem) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item + .page-item {
  margin-left: 0 !important;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link {
  background: rgba(0, 0, 0, 0.08) !important;
  border-radius: 0.25rem;
}

.bottom-information {
  flex-wrap: nowrap;
  align-items: flex-start;
  margin-top: 1rem !important;
}
.bottom-information > * {
  flex: 0 0 auto;
}

.bottom-information .dataTables_info {
  flex: 1 1 auto;
  text-align: center;
}

.bottom-information .dataTables_length,
.bottom-information .dataTables_info,
.bottom-information .dataTables_paginate {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.dataTables_wrapper table thead th,
.dataTables_wrapper table tbody td {
  text-align: center !important;
}

.table td, .table th {
  text-align: center !important;
  vertical-align: middle !important;
}

.table thead th,
table.dataTable thead th,
.dataTables_wrapper table thead th {
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 600;
}

.table thead th a,
table.dataTable thead th a,
.dataTables_wrapper table thead th a,
.table thead th .sorting,
.table thead th .sorting_asc,
.table thead th .sorting_desc {
  color: #fff !important;
}

.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1050 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modal-dialog,
.modal-dialog.modal-sm,
.modal-dialog.modal-lg,
.modal-dialog.modal-xl,
.records-modal-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  max-width: 500px !important;
  width: 500px !important;
}

.product-combo {
  position: relative;
}

.product-combo .form-control {
  padding-right: 2.5rem;
}

.product-combo .form-control[readonly] {
  background-color: #fff;
  cursor: pointer;
}

.product-combo-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #6c757d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.product-combo-toggle:focus {
  outline: none;
  color: #20324a;
}

.product-picker-sheet {
  position: fixed;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-sizing: border-box;
}

.product-picker-sheet[hidden] {
  display: none !important;
}

.product-picker-sheet-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #e4e8ee;
  background: #fff;
}

.product-picker-sheet-search {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.product-picker-sheet-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #20324a;
  font-weight: 700;
  padding: 0.35rem 0.2rem;
}

.product-picker-sheet-list {
  position: static !important;
  flex: 1 1 auto;
  min-height: 0;
  width: auto !important;
  max-height: none !important;
  height: auto !important;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-picker-menu {
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 40, 80, 0.12);
}

.product-picker-empty {
  padding: 0.65rem 0.8rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.product-picker-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.8rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  touch-action: pan-y;
}

.product-picker-item:hover,
.product-picker-item.is-active {
  background: #eef4fb;
}

.product-picker-item .n {
  font-weight: 600;
  color: #20324a;
}

.product-picker-item .c {
  margin-left: auto;
  font-size: 0.85rem;
  color: #6c757d;
  white-space: nowrap;
}

.product-picker-item .p {
  font-size: 0.85rem;
  color: #20324a;
  white-space: nowrap;
}

.product-picker-item .s {
  font-size: 0.78rem;
  color: #5b6b7c;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .product-picker-item {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.55rem;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
  }

  .product-picker-item .c,
  .product-picker-item .p {
    margin-left: 0;
  }

  .product-picker-item .s {
    white-space: normal;
    flex: 1 1 100%;
  }
}

#product_select {
  max-width: 100%;
}

.product-stock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.product-stock-meta[hidden] {
  display: none;
}

.product-stock-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: #f3f6fa;
  font-size: 0.82rem;
  color: #5b6b7c;
}

.product-stock-chip .q {
  font-weight: 700;
  color: #20324a;
}

.product-stock-hint {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #8a97a6;
}

#partnerBoxesModal .modal-dialog {
  height: min(82vh, 820px) !important;
  max-height: calc(100vh - 2rem) !important;
}

#partnerBoxesModal .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#partnerBoxesModal .modal-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 0;
  padding: 0.75rem 1rem;
  flex-shrink: 0;
}

#partnerBoxesModal .modal-header .close {
  color: #fff;
  text-shadow: none;
  opacity: 0.85;
}

#partnerBoxesModal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#partnerBoxesMsg {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

#partnerBoxesMsg.d-none {
  display: none !important;
}

#partnerBoxesTableWrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
}

#partnerBoxesTableWrap.d-none {
  display: none !important;
}

#partnerBoxesModal .dataTables_wrapper {
  padding: 0 !important;
  margin: 0 !important;
  flex: 1 1 auto;
  min-height: 0;
  height: 100% !important;
  display: flex;
  flex-direction: column;
}

#partnerBoxesModal .partner-boxes-dt-table {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

#partnerBoxesModal .partner-boxes-dt-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
}

#partnerBoxesModal table.dataTable {
  table-layout: fixed;
  width: 100% !important;
  margin: 0 !important;
}

#partnerBoxesModal table.dataTable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy) !important;
  color: #fff !important;
  padding: 0.55rem 0.5rem;
}

#partnerBoxesModal table.dataTable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.45rem 0.5rem;
}

#partnerBoxesModal .dataTables_wrapper .dataTables_info,
#partnerBoxesModal .dataTables_wrapper .dataTables_paginate {
  padding-top: 0;
  font-size: var(--dt-footer-font);
  float: none !important;
}

.records-modal-content {
  width: 100% !important;
}

.records-modal-header {
  padding: 10px 20px !important;
}

.records-modal-body {
  padding: 20px !important;
}

#editDeviceModal .modal-dialog {
  max-height: 80vh !important;
  height: auto !important;
}

#editDeviceModal .modal-content {
  max-height: 80vh !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 0.3rem;
  overflow: hidden;
}

#editDeviceModal .modal-header {
  flex-shrink: 0 !important;
  padding: 0.5rem 1rem;
  background-color: #6697ff;
}

#editDeviceModal .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem !important;
}

#editDeviceModal .modal-footer {
  flex-shrink: 0 !important;
}

#editDeviceModal .modal-title {
  font-size: 1rem;
}

#editDeviceModal .form-group {
  margin-bottom: 0.75rem;
}

#editDeviceModal .form-group h5 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

#editDeviceModal .form-control {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  height: auto;
}

#editDeviceModal .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.25rem;
}

#editDeviceModal .btn-lg {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

#editDeviceModal .digital-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

#editDeviceModal .digital-pay-row h5 {
  margin-bottom: 0;
}

#editDeviceModal .digital-pay-row .custom-switch {
  padding-left: 2.75rem;
  min-height: 1.6rem;
}

#editDeviceModal .digital-pay-row .custom-control-label {
  font-size: 0.85rem;
  line-height: 1.6rem;
  padding-top: 0;
}

#editDeviceModal .digital-pay-row .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #28a745;
  border-color: #28a745;
}

.qr-modal-header {
  background-color: #6697ff;
}

#QRModal .modal-dialog {
  max-width: min(800px, calc(100vw - 2rem)) !important;
  width: min(800px, calc(100vw - 2rem)) !important;
}

.qr-code-label {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.qr-print-btn {
  background-color: #6697ff;
  color: #fff;
}

.qr-modal-actions {
  gap: 0.75rem;
}

.qr-print-btn:hover {
  color: #fff;
  opacity: 0.92;
}

body.qr-print-window {
  font-family: "Maven Pro", sans-serif;
  margin: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
}

body.qr-print-window .qr-print-window-device-id {
  margin-bottom: 16px;
  font-size: 18px;
}

body.qr-print-window .qr-print-window-img {
  width: 4cm;
  height: 4cm;
  display: block;
}

.map-wrapper {
  width: 100%;
  overflow: hidden;
  margin-top: 10px;
}

.map-container {
  display: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

#editDeviceModal .map-wrapper {
  margin-top: 0.5rem;
}

#editDeviceModal #mapContainer {
  height: 400px;
  width: 100%;
  max-width: 100%;
}

.location-info {
  display: none;
}

.gm-style .gm-style-iw {
  padding: 0 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 7px rgba(0,0,0,0.3) !important;
}

.gm-style .gm-style-iw-c {
  padding: 0 !important;
  max-width: 350px !important;
  min-width: 200px !important;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-tc {
  display: none !important;
  width: 20px !important;
  height: 20px !important;
}

.gm-style .gm-style-iw-tc::after {
  display: none !important;
}

.gm-style .gm-style-iw-tc .gm-style-iw-tc-gm {
  width: 20px !important;
  height: 20px !important;
}

.map-info-window {
  padding: 10px 15px;
  min-width: 200px;
  max-width: 350px;
  font-size: 15px;
  line-height: 1.5;
}

.map-info-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
  font-size: 16px;
  white-space: nowrap;
}

.map-info-address {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link {
  position: relative;
}

.badge-counter {
  position: absolute;
  transform: scale(0.7);
  transform-origin: top right;
  right: .25rem;
  margin-top: -.25rem;
}

#edit-device-form #ebxid {
  font-size: 2rem;
  font-weight: 500;
  background-color: transparent;
  border: none;
  outline-width: 0;
}

.dt-button.excelButton {
  width: 15em;
  background-color: #6697ff !important;
  color: white;
  border: 0em;
}

.marginImage {
  margin-left: 0;
  display: flex;
  justify-content: center;
}

.circle-online {
  display: flex;
  justify-content: center;
  align-items: center;
  border-style: solid;
  border-color: rgb(45, 183, 45);
  border-radius: 50% !important;
  height: 100px;
  width: 100px;
  border-width: 5px !important;
}

.circle-offline {
  display: flex;
  justify-content: center;
  align-items: center;
  border-style: solid;
  border-color: rgb(228, 226, 226);
  border-radius: 50% !important;
  height: 100px;
  width: 100px;
  border-width: 5px !important;
}

form.is-readonly input[readonly],
input[disabled],
textarea[disabled] {
  cursor: text;
  background-color: #fff !important;
  border-color: transparent;
  outline-color: transparent;
  box-shadow: none;
}

form.is-readonly .KeyUpdateBtn {
  display: none;
}

form.is-editing .KeyEditBtn {
  display: none;
}

.error {
  border-color: red;
}

.warning {
  color: red;
  display: none;
}

.records-container {
  position: fixed;
  top: 4.75rem;
  left: var(--sidebar-w);
  right: 0;
  bottom: 0;
  width: auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.25rem 2rem;
  box-sizing: border-box;
}

.main.animate .records-container {
  left: var(--sidebar-w);
}

#showAllCubo.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-left: 0;
  margin-right: 0;
}

#showAllCubo .card {
  flex: 0 0 250px;
  width: 250px;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--panel);
}

#showAllCubo .card .card-body {
  padding: 1rem 0.85rem;
}

@media (min-width: 1025px) {
  html.is-records-location,
  html.is-records-location body {
    height: 100%;
    max-height: 100vh;
    overflow: hidden !important;
  }

  body.is-records-location > .app {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.is-records-location .app > .main {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.is-records-location .app > .main > .content {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .records-container.records-container--location-list {
    display: flex;
    flex-direction: column;
    position: relative;
    top: auto;
    left: auto !important;
    right: auto;
    bottom: auto;
    height: calc(100dvh - 4.75rem);
    max-height: calc(100dvh - 4.75rem);
    overflow: hidden !important;
    overflow-x: hidden;
    padding: 1rem 1.25rem 0.5rem;
    box-sizing: border-box;
  }

  .records-container.records-container--location-list > .row {
    flex-shrink: 0;
  }

  .records-container.records-container--location-list .page-panel.records-location-panel {
    flex: 1 1 auto;
    min-height: 0;
  }

  .records-container.records-container--location-list #showAllRecords {
    flex: 1 1 auto;
    min-height: 16rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .records-container.records-container--location-list #showAllRecords > p,
  .records-container.records-container--location-list #showAllRecords > .alert {
    flex-shrink: 0;
  }

  .records-container.records-container--location-list #showAllRecords > h3 {
    flex-shrink: 0;
  }

  .records-container.records-container--location-list #showAllRecords > .records-location-cards-pane {
    flex: 1 1 auto;
    min-height: 12rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .records-container.records-container--location-list #showAllRecords > .records-location-tables-stack {
    flex: 1 1 auto;
    min-height: 16rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .records-container.records-container--location-list #showAllRecords > .records-location-tables-stack > .records-location-group-title {
    flex-shrink: 0;
    color: var(--navy);
  }

  .records-container.records-container--location-list .records-location-tables-stack .records-location-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
    min-height: 12rem;
    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
  }
}

.records-cubo-layout {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.records-cubo-table-panel {
  flex: none !important;
  min-height: 20rem;
  height: auto !important;
  width: 100%;
}

.records-cubo-table-scroll {
  flex: none !important;
  min-height: 20rem;
  max-height: min(70vh, 40rem);
  height: auto !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
}

.records-cubo-table-scroll .table.records-cubo-sticky-table {
  border-collapse: separate;
  border-spacing: 0;
}

.records-cubo-table-scroll .table.records-cubo-sticky-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--navy) !important;
  color: #fff !important;
  background-clip: padding-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none;
  vertical-align: middle;
}

.records-cubo-stats-pair {
  display: grid;
  grid-template-columns: minmax(5rem, 6.5rem) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  row-gap: 0;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 20rem;
}

.records-cubo-toolbar > .d-flex {
  min-width: 0;
}

.records-cubo-stat-top,
.records-cubo-stat-bottom {
  min-width: 0;
  overflow-wrap: anywhere;
}

.records-cubo-stat-top {
  border: 1px solid #dee2e6;
  border-bottom: none;
  border-radius: 0.25rem 0.25rem 0 0;
  background-color: #f8f9fa;
  padding: 0.28rem 0.45rem 0.18rem;
  text-align: center;
}

.records-cubo-stat-formula {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.records-cubo-stat-bottom {
  border: 1px solid #dee2e6;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0 0 0.25rem 0.25rem;
  background-color: #f8f9fa;
  padding: 0.18rem 0.45rem 0.35rem;
  text-align: center;
}

.records-cubo-amount-nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.12rem;
  row-gap: 0.08rem;
  font-size: 0.85rem;
  line-height: 1.3;
  max-width: 100%;
}

.records-cubo-amt {
  white-space: nowrap;
}

#showAllRecords .records-location-table-scroll {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  overflow-x: auto;
}

#showAllRecords .table.records-location-sticky-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 56rem;
  width: 100%;
}

.license-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #b42318;
  background: #fde8e8;
  border: 1px solid #f5c2c7;
  vertical-align: 0.08em;
}

#showAllRecords .table.records-location-sticky-table thead th,
#showAllRecords .table.records-location-sticky-table tbody td {
  white-space: nowrap;
  padding: 0.5rem 0.65rem;
  line-height: 1.35;
}

#showAllRecords .table.records-location-sticky-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--navy) !important;
  color: #fff !important;
  background-clip: padding-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none;
  vertical-align: middle;
}

#showAllRecords .records-location-summary-card-head {
  border-bottom: 2px solid #dee2e6 !important;
}

#showAllRecords .records-location-summary-title {
  font-size: 1.125rem;
  line-height: 1.3;
}

#recordsLocStatsSlot .records-location-stats-pair {
  display: grid;
  grid-template-columns: minmax(4.25rem, 5.5rem) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  row-gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
}

#recordsLocStatsSlot .records-location-stat-top,
#recordsLocStatsSlot .records-location-stat-bottom {
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#recordsLocStatsSlot .records-location-stat-top {
  border: 1px solid #dee2e6;
  border-bottom: none;
  border-radius: 0.25rem 0.25rem 0 0;
  background-color: #f8f9fa;
  padding: 0.28rem 0.4rem 0.18rem;
  text-align: center;
}

#recordsLocStatsSlot .records-location-stat-formula {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0;
}

#recordsLocStatsSlot .records-location-stat-bottom {
  border: 1px solid #dee2e6;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0 0 0.25rem 0.25rem;
  background-color: #f8f9fa;
  padding: 0.18rem 0.4rem 0.28rem;
  text-align: center;
}

#recordsLocStatsSlot .records-location-amount-nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.12rem;
  row-gap: 0.08rem;
  font-size: 0.85rem;
  line-height: 1.3;
  max-width: 100%;
  white-space: normal;
}

#recordsLocStatsSlot .records-location-amt {
  white-space: nowrap;
}

#recordsLocStatsSlot .records-location-amt-op {
  flex: 0 0 auto;
}

.records-loc-toolbar .records-loc-toolbar-row {
  min-width: 0;
}

.records-loc-toolbar--all-stores .records-loc-toolbar-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
}

.records-loc-toolbar--all-stores .records-loc-toolbar-left-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  margin-right: 0.75rem;
}

.records-loc-toolbar--all-stores .records-loc-toolbar-top {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.records-loc-toolbar--all-stores .records-loc-field {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.records-loc-toolbar--all-stores .records-loc-label {
  margin-right: 0.5rem;
  white-space: nowrap;
}

.records-loc-toolbar--all-stores .records-loc-toolbar-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  padding-left: 0.5rem;
  margin-left: 0.25rem;
}

.records-loc-toolbar--all-stores .records-loc-stats-slot {
  display: flex;
  align-items: center;
}

.records-loc-toolbar--single-store .records-loc-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  overflow: visible;
}

.records-loc-toolbar--single-store .records-loc-toolbar-left-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 0;
  align-self: stretch;
  gap: 0.5rem;
}

.records-loc-toolbar--single-store .records-loc-toolbar-top {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
}

.records-loc-toolbar--single-store .records-loc-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
}

.records-loc-toolbar--single-store .records-loc-field .form-control {
  min-width: 0;
  max-width: 100%;
}

.records-loc-toolbar--single-store #recordsLocD0,
.records-loc-toolbar--single-store #recordsLocD1 {
  flex: 0 0 auto;
  width: auto;
  min-width: 8.6rem;
}

#recordsLocFilter {
  min-width: 9rem;
}

.records-loc-toolbar--single-store .records-loc-label {
  margin-right: 0.5rem;
  white-space: nowrap;
}

.records-loc-toolbar--single-store .records-loc-toolbar-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.records-loc-toolbar--single-store .records-loc-stats-slot {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  align-items: stretch;
  flex: 1 1 20rem;
  max-width: min(28rem, 100%);
  min-width: 0;
  min-height: 0;
}

.records-loc-toolbar.records-loc-toolbar--single-store #recordsLocStatsSlot .records-location-stats-pair {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  grid-template-rows: auto minmax(2.25rem, 1fr);
}

.records-loc-toolbar.records-loc-toolbar--single-store #recordsLocStatsSlot .records-location-stat-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
}

.records-location-summary-card .records-location-summary-amount-block {
  max-width: 100%;
  overflow-x: auto;
}

.records-nav-icon {
  color: #7a7a7a;
}

.empty-state-msg {
  font-size: 1rem;
  font-weight: 400;
  margin: 1.25rem 0;
}

.email-verification {
  color: Gray;
}

.resend-email-link {
  color: red;
  font-weight: 600;
}

.tab-image {
  height: 30px !important;
}

.status-4g-filter {
  filter: invert(69%) sepia(10%) saturate(2293%) hue-rotate(71deg) brightness(91%) contrast(86%);
}

.status-joystick-enabled {
  filter: invert(75%) sepia(18%) saturate(1467%) hue-rotate(346deg) brightness(98%) contrast(91%);
}

.status-joystick-disabled {
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(71deg) brightness(100%) contrast(100%);
}

.action-buttons {
  white-space: nowrap;
}

@media (max-width: 820px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 280px);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .menu-btn {
    display: inline-grid;
  }

  .backdrop {
    position: fixed;
    inset: 0;
    background: rgba(1, 15, 46, 0.45);
    z-index: 25;
  }

  body.nav-open .backdrop {
    display: block;
  }

  .records-container {
    left: 0 !important;
    top: 4.25rem;
    padding: 0.75rem 1rem 2rem;
  }

  .topbar-logout span {
    display: none;
  }
}

@media (max-width: 1024px) {
  html {
    min-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body {
    min-height: 100%;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .app > .main {
    min-height: 100%;
    overflow: visible !important;
  }
  .app > .main > .content {
    overflow: visible !important;
    min-height: 0;
  }
  .myContent {
    overflow: visible !important;
    min-height: 0;
    padding-bottom: 2rem;
  }
  .records-container {
    position: relative;
    top: auto;
    left: auto !important;
    right: auto;
    bottom: auto;
    overflow-y: visible;
    padding-bottom: 0;
  }

  #page-content-wrapper {
    overflow: visible !important;
  }
}

.dashboard-chart-subrow {
  min-height: 2.75rem;
  margin-bottom: 0.5rem;
}

.dashboard-sales-visual-frame {
  height: 520px;
  position: relative;
  overflow: hidden;
}

.dashboard-sales-visual-frame > #Chart {
  height: 100%;
}

.dashboard-sales-visual-frame #showTopSales {
  height: 100%;
  overflow: hidden;
}

.dashboard-paypie-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-paypie-inner {
  min-height: 0;
  height: 100%;
}

.dashboard-pie-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: center;
  justify-content: center;
  height: auto;
  max-height: 100%;
}

.dashboard-pie-wrap--panel {
  width: 100%;
  max-width: 22rem;
}

.dashboard-pie-sidebar {
  min-width: 14rem;
  max-width: 26rem;
  font-size: 150%;
}

.dashboard-pie-sidebar .dashboard-paypie-legend-swatch {
  width: 1.05rem;
  height: 1.05rem;
}

@media (min-width: 768px) {
  .dashboard-pie-sidebar {
    border-left: 1px solid #dee2e6;
    padding-left: 1.25rem;
    margin-left: 1rem;
  }
}

@media (max-width: 767.98px) {
  .dashboard-pie-sidebar {
    width: 100%;
    max-width: none;
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 0.5rem;
  }
}

.dashboard-paypie-legend-swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.dashboard-pie-canvas-wrap {
  flex: 0 0 auto;
  width: min(15rem, min(78vw, 48vh));
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  .dashboard-pie-canvas-wrap {
    width: min(17rem, min(34vw, 52vh));
  }
}

.dashboard-main-view-select {
  max-width: 14rem;
}

.dashboard-chart-date-input {
  width: 11rem;
  max-width: 11rem;
}

.dashboard-chart-hint-dynamic {
  max-width: 22rem;
  flex-shrink: 0;
}

body.logs-index-page {
  font-family: sans-serif;
  margin: 1rem 2rem;
  background: #1a1a1a;
  color: #e0e0e0;
}

body.logs-index-page a {
  color: #6ab7ff;
}

body.logs-index-page a:hover {
  text-decoration: underline;
}

body.logs-index-page h1 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

body.logs-index-page ul {
  list-style: none;
  padding: 0;
}

body.logs-index-page ul li {
  margin: 0.5rem 0;
}

body.logs-index-page ul li small {
  color: #888;
  margin-left: 0.5rem;
}

body.logs-index-page pre {
  background: #252525;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.4;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-all;
}

body.logs-index-page .logs-index-meta {
  margin-bottom: 1rem;
  color: #888;
  font-size: 0.9rem;
}

body.logs-index-page .logs-index-meta a {
  margin-right: 1rem;
}

.mobile-chrome {
  display: none !important;
}

.navbar-logo {
  height: 30px !important;
  width: auto !important;
  object-fit: contain !important;
}

.nav-buttons-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  gap: 0;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.3rem;
  min-width: 60px;
  flex: 1 1 0;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
}

.nav-btn i {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.nav-btn span {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-btn.nav-back-cubo {
  font-weight: 800;
  color: var(--navy);
}

.nav-btn.nav-back-cubo i {
  font-size: 1.35rem;
}

.nav-btn.nav-back-cubo span {
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-btn:hover {
  color: var(--navy);
  background-color: #e9ecef;
  text-decoration: none;
}

.nav-btn.active,
.nav-btn.active i {
  color: var(--blue);
}

.nav-btn.active {
  background-color: #e3f2fd;
  text-decoration: none;
}

@media (max-width: 820px) {
  .mobile-chrome.navbar.fixed-navbar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--chrome-top);
    background-color: var(--navy);
    padding-top: 0;
    padding-bottom: 0;
  }

  .mobile-chrome.nav-buttons-bar {
    display: flex !important;
    position: fixed;
    top: var(--chrome-top);
    left: 0;
    right: 0;
    z-index: 1029;
    height: var(--chrome-nav);
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--line);
    align-items: center;
    padding: 0.5rem 0;
  }

  .navbar.fixed-navbar .nav-link {
    line-height: 1;
  }

  .sidebar,
  .backdrop,
  .menu-btn {
    display: none !important;
  }

  .app {
    display: block;
    grid-template-columns: none;
    padding-top: calc(var(--chrome-top) + var(--chrome-nav));
  }

  .device-list-desktop {
    display: none !important;
  }

  .device-list-mobile {
    display: block !important;
  }

  .modal-dialog,
  .modal-dialog.modal-sm,
  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl,
  .records-modal-dialog,
  #partnerBoxesModal .modal-dialog,
  #editDeviceModal .modal-dialog,
  #QRModal .modal-dialog {
    max-width: calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
  }

  #editDeviceModal .modal-dialog {
    max-height: calc(100vh - 2rem) !important;
    max-height: calc(100dvh - 2rem) !important;
  }

  #editDeviceModal .modal-content {
    max-height: calc(100vh - 2rem) !important;
    max-height: calc(100dvh - 2rem) !important;
  }

  body.device-mgmt-page .app > .main > .content,
  body.overview-flush-page .app > .main > .content {
    padding: 0 !important;
  }

  body.device-mgmt-page .myContent,
  body.overview-flush-page .myContent {
    padding: 0 !important;
    margin: 0 !important;
  }

  #profileTabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #profileTabs .nav-item {
    flex: 1 1 0;
    min-width: 0;
  }

  #profileTabs .nav-link {
    padding: 0.3rem 0.25rem;
    font-size: 0.78rem;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
  }

  #profileTabs .tab-image {
    height: 18px !important;
  }

  body.has-report-nav .app {
    padding-top: calc(var(--chrome-top) + var(--chrome-nav) + var(--chrome-report));
  }

  body:not(.has-report-nav) .topbar {
    display: none;
  }

  body.has-report-nav .topbar {
    position: fixed;
    top: calc(var(--chrome-top) + var(--chrome-nav));
    left: 0;
    right: 0;
    z-index: 1028;
    height: var(--chrome-report);
    min-height: var(--chrome-report);
    padding: 0 0.6rem;
    background: rgba(238, 242, 248, 0.96);
  }

  body.has-report-nav .topbar-report-nav {
    max-width: none;
    flex: 1;
    justify-content: flex-start;
  }

  body.has-report-nav .topbar-actions {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    flex-shrink: 0;
  }

  body.has-report-nav .print-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
    box-shadow: none;
  }

  body.has-report-nav .topbar-logout {
    display: none;
  }

  .records-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0.15rem 0 1.5rem;
  }

  .page-panel.records-location-panel,
  .page-panel.records-location-panel > .page-panel-body {
    display: block;
    height: auto;
    min-height: 0;
  }

  .records-loc-toolbar--single-store .records-loc-toolbar-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.75rem;
  }

  .records-loc-toolbar--single-store .records-loc-toolbar-left-wrap {
    width: 100%;
    flex: 1 1 auto;
  }

  .records-loc-toolbar--single-store .records-loc-toolbar-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .records-loc-toolbar--single-store .records-loc-field {
    flex-direction: column;
    align-items: stretch;
    margin-right: 0 !important;
    width: 100%;
  }

  .records-loc-toolbar--single-store .records-loc-label {
    margin-right: 0;
    margin-bottom: 0.2rem;
  }

  .records-loc-toolbar--single-store .records-loc-field .form-control,
  #recordsLocFilter,
  #recordsLocD0,
  #recordsLocD1 {
    min-width: 0 !important;
    width: 100%;
  }

  .records-loc-toolbar--single-store .records-loc-toolbar-bottom {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .records-loc-toolbar--single-store .records-loc-stats-slot,
  #recordsLocStatsSlot {
    width: 100%;
    margin-left: 0 !important;
  }

  .records-loc-toolbar.records-loc-toolbar--single-store #recordsLocStatsSlot .records-location-stats-pair {
    height: auto;
    grid-template-rows: auto auto;
  }

  body {
    background: #fff;
  }

  .app > .main > .content {
    padding: 0.65rem 0.75rem 1.25rem;
  }

  .myContent .card,
  .myContent .page-panel,
  .records-container .page-panel,
  .records-container .card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .myContent .card-header,
  .records-container .card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }

  .myContent .page-panel-body,
  .myContent .page-panel > .card-body,
  .myContent .card-body,
  .records-container .page-panel-body,
  .records-container .card-body {
    padding: 0.5rem 0 0;
  }

  #showAllCubo .card {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--line) !important;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .device-list-toolbar {
    margin: 0 0 0.35rem;
  }

  .device-loc-filter {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 0.35rem;
  }

  .device-loc-filter #deviceLocFilter,
  .device-loc-filter #machineLocFilter {
    min-width: 0;
    width: 8.5rem;
  }

  .device-list-search-slot .dataTables_filter input {
    max-width: 7.5rem;
    width: 7.5rem;
  }
}

@media (max-width: 820px) {
  .modal-dialog,
  .modal-dialog.modal-sm,
  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl,
  .records-modal-dialog {
    max-height: calc(100vh - 1.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  }

  .modal-content {
    max-height: calc(100vh - 1.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .modal-header,
  .modal-footer {
    flex-shrink: 0 !important;
  }

  .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #partnerBoxesModal .modal-body {
    overflow: hidden !important;
  }
}

html:has(body.partner-box-page) {
  height: 100%;
  overflow: hidden;
}

body.partner-box-page {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  width: 100%;
  height: 100%;
  height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}

body.partner-box-page .mobile-chrome.navbar.fixed-navbar {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--chrome-top);
  background-color: var(--navy);
  padding-top: 0;
  padding-bottom: 0;
}

body.partner-box-page .partner-box-nav-side,
body.partner-box-page .partner-box-admin-login {
  min-width: 6.8rem;
}

body.partner-box-page .partner-box-admin-login {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

body.partner-box-page .partner-box-replace-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.8rem;
  min-height: 2.15rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #f5c451;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

body.partner-box-page .partner-box-admin-login:hover,
body.partner-box-page .partner-box-admin-login:focus {
  color: #fff;
  opacity: 0.82;
  text-decoration: none;
}

body.partner-box-page .partner-box-replace-btn:hover,
body.partner-box-page .partner-box-replace-btn:focus {
  color: var(--navy);
  background: #ffd36a;
  opacity: 1;
}

.partner-box-main {
  height: 100%;
  padding: calc(var(--chrome-top) + 0.55rem) 0.85rem max(0.55rem, env(safe-area-inset-bottom));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.partner-box-card {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.partner-box-info {
  flex: 0 0 auto;
  padding: 0.7rem 0.9rem 0.65rem;
}

.partner-box-loc span,
.partner-box-meta span,
.partner-box-stock span,
.partner-box-form label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.partner-box-loc strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}

.partner-box-meta {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
}

.partner-box-meta li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.32rem 0;
  border-top: 1px solid var(--line);
}

.partner-box-meta b {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  word-break: break-all;
  min-width: 0;
}

.partner-box-stock {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: #f3f6fb;
  border-radius: 12px;
}

.partner-box-stock strong {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.partner-box-error {
  color: #b42318;
  font-weight: 600;
  margin: 0;
}

.partner-box-scan {
  display: block;
  width: 100%;
  max-height: 60vh;
  background: #111;
  object-fit: cover;
}

.partner-box-card > .partner-box-error {
  padding: 1rem;
}

.partner-box-actions .partner-box-error {
  padding: 0.4rem 0 0;
}

.partner-box-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0.9rem 0.7rem;
}

.partner-box-back {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted) !important;
  font-weight: 600;
  font-size: 0.92rem !important;
  min-height: 32px;
  padding: 0;
  margin: -0.2rem 0;
}

.partner-box-back i {
  font-size: 0.8rem;
}

.partner-box-back:hover,
.partner-box-back:focus {
  color: var(--navy) !important;
  text-decoration: none;
}

.partner-box-q {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.partner-box-choice {
  display: flex;
  gap: 0.65rem;
}

.partner-box-choice--stack {
  flex-direction: column;
}

body.partner-box-page .partner-box-choice .btn,
body.partner-box-page .partner-box-form .btn-block {
  flex: 1 1 0;
  min-height: 44px;
  border-radius: 12px;
  font-size: 1rem !important;
  font-weight: 700;
  line-height: 1.2;
}

body.partner-box-page .partner-box-choice--stack .btn {
  min-height: 46px;
}

body.partner-box-page #restockChoiceBtn,
body.partner-box-page .partner-box-form .btn-primary.btn-block,
body.partner-box-page #invYesBtn {
  background: var(--navy);
  border-color: var(--navy);
}

body.partner-box-page #faultChoiceBtn,
body.partner-box-page #adjustChoiceBtn {
  color: var(--navy);
  border: 1.5px solid var(--line);
  background: #fff;
}

.partner-box-adjust-now {
  margin: -0.25rem 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.partner-box-adjust-now b {
  color: var(--navy);
  font-size: 1.2rem;
}

body.partner-box-page #faultStoppedChoice .btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

#faultStoppedChoice {
  margin: 0.15rem 0 0.75rem;
}

.partner-box-form {
  margin-top: 0;
}

.partner-box-form label {
  margin: 0 0 0.3rem;
}

.partner-box-form .form-control {
  height: 44px;
  margin-bottom: 0.6rem;
  font-size: 16px !important;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  padding: 0.45rem 0.85rem;
}

.partner-box-form .form-control:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(102, 151, 255, 0.2);
}

body.replace-product-page .partner-box-main {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.replace-product-page .partner-box-actions {
  flex: 1 1 auto;
}

body.replace-product-page .product-stock-hint {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
}

body.replace-product-page .product-combo {
  margin-bottom: 0.35rem;
}

body.replace-product-page .product-combo .form-control {
  margin-bottom: 0;
}

.partner-box-ok {
  color: var(--ok);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0.15rem 0 0;
}

body.partner-box-page .swal2-popup.partner-box-swal {
  width: min(28rem, calc(100vw - 1.7rem)) !important;
  padding: 1.4rem 1.45rem 1.25rem !important;
  border-radius: 22px !important;
}

body.partner-box-page .partner-box-swal .swal2-icon {
  transform: scale(0.78);
  margin: 0.2rem auto 0.25rem !important;
}

body.partner-box-page .partner-box-swal .swal2-title {
  font-size: 1.4rem;
  padding: 0;
  margin: 0;
}

body.partner-box-page .partner-box-swal .swal2-html-container {
  font-size: 1.1rem;
  margin: 0.55rem 0 0.9rem !important;
}

body.partner-box-page .partner-box-swal .swal2-actions {
  margin: 0;
  gap: 0.65rem;
}

body.partner-box-page .partner-box-swal .swal2-styled {
  padding: 0.62rem 1.45rem;
  font-size: 1.08rem;
  min-width: 5.2rem;
}

body.partner-box-page .partner-box-swal-stock-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #5b6472;
  margin-bottom: 0.15rem;
}

body.partner-box-page .partner-box-swal-qty {
  display: block;
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

body.partner-box-page .partner-box-swal-stock-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #5b6472;
}

body.partner-box-kb:not([data-box-step="mode"]) .partner-box-meta {
  display: none;
}

body.partner-box-kb .partner-box-info {
  padding: 0.45rem 0.8rem 0.4rem;
}

body.partner-box-kb .partner-box-loc strong {
  font-size: 0.95rem;
}

body.partner-box-kb .partner-box-main {
  padding-top: calc(var(--chrome-top) + 0.35rem);
  gap: 0.3rem;
}

body.partner-box-kb .partner-box-actions {
  padding: 0.6rem 0.8rem 0.5rem;
}

body.partner-box-kb .partner-box-q {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.inventory-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.inventory-stat {
  min-width: 7.2rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.inventory-stat .n {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.inventory-stat .l {
  font-size: 0.8rem;
  color: #6c757d;
}

.inventory-stat.warn .n {
  color: #c27803;
}

.inventory-stat.danger .n {
  color: #c0392b;
}

.inventory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 0.85rem;
}

.inventory-filter label {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.2rem;
}

.inventory-filter select {
  min-width: 10rem;
}

.inventory-qty-input {
  max-width: 5.5rem;
  margin: 0 auto;
  text-align: center;
}

#stockTable tbody tr.inventory-row-low {
  background: #fff8e8;
}

#stockTable tbody tr.inventory-row-empty,
#warehouseTable tbody tr.inventory-row-empty {
  background: #fdeeee;
}

@media (max-width: 767.98px) {
  .inventory-stat {
    min-width: calc(50% - 0.4rem);
    flex: 1 1 calc(50% - 0.4rem);
  }

  .inventory-filter {
    flex: 1 1 100%;
  }

  .inventory-filter select {
    min-width: 0;
    width: 100%;
  }
}
