body.bg-grid {
  background:
    radial-gradient(1200px 500px at 10% 5%, rgba(13, 202, 240, 0.18), transparent 65%),
    radial-gradient(900px 400px at 90% 100%, rgba(25, 135, 84, 0.16), transparent 60%),
    linear-gradient(180deg, #0d1117 0%, #111827 100%);
  min-height: 100vh;
}

.glass-card {
  background: rgba(22, 29, 43, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.navbar {
  backdrop-filter: blur(6px);
  background: rgba(16, 23, 36, 0.9) !important;
}

.navbar .btn.btn-outline-primary {
  color: #eaf3ff;
  border-color: #69b7ff;
  background-color: rgba(49, 132, 253, 0.35);
}

.navbar .btn.btn-outline-primary:hover,
.navbar .btn.btn-outline-primary:focus {
  color: #ffffff;
  border-color: #8ecaff;
  background-color: rgba(49, 132, 253, 0.55);
}

.navbar .btn.btn-outline-success {
  color: #e7ffef;
  border-color: #63d39b;
  background-color: rgba(25, 135, 84, 0.35);
}

.navbar .btn.btn-outline-success:hover,
.navbar .btn.btn-outline-success:focus {
  color: #ffffff;
  border-color: #84e7b5;
  background-color: rgba(25, 135, 84, 0.55);
}

.table-wide {
  min-width: 0;
  width: 100%;
}

.invoices-table {
  table-layout: auto;
}

.action-cell {
  min-width: 220px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.35rem;
}

.action-grid form {
  margin: 0;
}

.action-grid .btn {
  width: 100%;
}

.action-cell--compact {
  min-width: 160px;
}

.action-grid-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.action-grid-compact form {
  margin: 0;
}

.action-grid-compact .btn {
  width: auto;
  padding: 0.18rem 0.42rem;
  font-size: 0.74rem;
  line-height: 1.2;
}

.action-cell-two {
  width: 200px;
  min-width: 200px;
  text-align: center;
}

.col-actions-two {
  width: 200px;
  min-width: 200px;
  text-align: left;
}

.action-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 96px);
  justify-content: center;
  gap: 0.25rem;
}

.action-grid-two form {
  margin: 0;
}

.action-grid-two .btn {
  width: 96px;
  height: 28px;
  min-height: 28px;
  padding: 0.18rem 0.42rem;
  font-size: 0.74rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.live-changed {
  animation: livePulse 1.2s ease;
}

.qr-hover-wrap {
  position: relative;
  display: inline-block;
}

.qr-hover-pop {
  position: absolute;
  top: 110%;
  left: 0;
  z-index: 30;
  background: rgba(20, 27, 40, 0.98);
  min-width: 190px;
  display: none;
}

.qr-hover-wrap:hover .qr-hover-pop {
  display: block;
}

.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.qr-modal-panel {
  width: min(92vw, 560px);
  background: rgba(22, 29, 43, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

#qr-modal-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  background: #fff;
}

@keyframes livePulse {
  0% { background-color: rgba(13, 202, 240, 0.08); }
  35% { background-color: rgba(13, 202, 240, 0.28); }
  100% { background-color: transparent; }
}
