/* =========================================
   INVENTÁRIO TI — DESIGN SYSTEM
   Bootstrap 5 + Custom ERP Styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES ── */
:root {
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --sidebar-bg: #1e293b;
  --sidebar-hover: #334155;
  --sidebar-active: #0d6efd;
  --topbar-height: 60px;
  --body-bg: #f1f5f9;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --blue-primary: #0d6efd;
  --blue-light: #e8f0fe;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --yellow: #ca8a04;
  --yellow-light: #fef9c3;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: all .2s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--body-bg);
  color: var(--text-primary);
  font-size: .9rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--blue-primary); }

/* ── SIDEBAR ── */
#sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: width .3s ease;
  overflow: hidden;
}

#sidebar .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  min-height: var(--topbar-height);
  white-space: nowrap;
}

#sidebar .brand-icon {
  width: 36px; height: 36px;
  background: var(--blue-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: #fff;
}

#sidebar .brand-text {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
}

#sidebar .brand-text small {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  font-weight: 400;
}

#sidebar .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}

#sidebar .sidebar-nav::-webkit-scrollbar { width: 4px; }
#sidebar .sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

.nav-section-label {
  padding: 6px 20px 2px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
}

.nav-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px;
  color: rgba(255,255,255,.75);
  border-radius: 0;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border-left: 3px solid transparent;
  font-size: .875rem;
}

.nav-item-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
  border-left-color: rgba(255,255,255,.2);
}

.nav-item-link.active {
  background: rgba(13, 110, 253, .15);
  color: #fff;
  border-left-color: var(--blue-primary);
  font-weight: 500;
}

.nav-item-link .nav-icon {
  width: 20px;
  text-align: center;
  font-size: .95rem;
  flex-shrink: 0;
  color: rgba(255,255,255,.6);
}

.nav-item-link.active .nav-icon,
.nav-item-link:hover .nav-icon {
  color: #fff;
}

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background: rgba(220,38,38,.15);
  color: #f87171;
  border-color: rgba(220,38,38,.3);
}

.btn-logout .fa-solid {
  font-size: .95rem;
}

.nav-item-link .nav-badge {
  margin-left: auto;
  background: var(--blue-primary);
  color: #fff;
  font-size: .65rem;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 600;
}

/* Sub-menu */
.nav-sub {
  background: rgba(0,0,0,.15);
}

.nav-sub .nav-item-link {
  padding-left: 52px;
  font-size: .83rem;
}

/* Collapse arrow */
.nav-item-link .nav-arrow {
  margin-left: auto;
  font-size: .7rem;
  transition: transform .2s ease;
  color: rgba(255,255,255,.4);
}

.nav-item-link[aria-expanded="true"] .nav-arrow {
  transform: rotate(180deg);
}

/* ── TOPBAR ── */
#topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1030;
  gap: 16px;
  transition: left .3s ease;
  box-shadow: var(--shadow-sm);
}

#topbar .topbar-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  flex: 1;
}

#topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── MODULE SWITCHER ── */
.module-switcher {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--card-border);
}

.module-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.module-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,.7);
}

.module-btn.active {
  background: #fff;
  color: var(--blue-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.module-btn i {
  font-size: .85rem;
}

/* ── MAIN CONTENT ── */
#main-content {
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  min-height: 100vh;
  transition: margin-left .3s ease;
}

.content-wrapper {
  padding: 24px;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.page-header .breadcrumb {
  margin: 0;
  font-size: .8rem;
}

.page-header .breadcrumb-item.active {
  color: var(--text-secondary);
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--card-border);
  padding: 16px 20px;
  font-weight: 600;
  font-size: .925rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header .card-header-icon {
  width: 32px; height: 32px;
  background: var(--blue-light);
  color: var(--blue-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
}

.card-body { padding: 20px; }

/* Stat Cards */
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  margin-bottom: 20px;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon.blue { background: var(--blue-light); color: var(--blue-primary); }
.stat-icon.green { background: var(--green-light); color: var(--green); }
.stat-icon.red { background: var(--red-light); color: var(--red); }
.stat-icon.yellow { background: var(--yellow-light); color: var(--yellow); }

.stat-info .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.stat-info .stat-label {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── TABLES ── */
.table-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.table {
  margin: 0;
  font-size: .875rem;
}

.table thead th {
  background: #f8fafc;
  border-bottom: 2px solid var(--card-border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .775rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 16px;
  white-space: nowrap;
}

.table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-color: #f1f5f9;
  color: var(--text-primary);
}

.table tbody tr {
  transition: background .15s ease;
}

.table tbody tr:hover { background: #f8fafc; }

.table tbody tr.row-baixado { 
  background: #fff5f5;
}

.table tbody tr.row-baixado:hover { background: #fee2e2; }

.table tbody tr.row-baixado td {
  color: #b91c1c;
}

/* ── BADGES ── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.badge-ativo {
  background: var(--green-light);
  color: var(--green);
}

.badge-baixado {
  background: var(--red-light);
  color: var(--red);
}

.badge-inativo {
  background: #f1f5f9;
  color: var(--text-secondary);
}

.badge-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ── FORMS ── */
.form-label {
  font-weight: 500;
  font-size: .85rem;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.form-label .required {
  color: var(--red);
  margin-left: 2px;
}

.form-control, .form-select {
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  padding: 9px 13px;
  transition: var(--transition);
  color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}

.form-control.is-invalid, .form-select.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.invalid-feedback {
  font-size: .8rem;
  color: var(--red);
}

textarea.form-control { resize: vertical; min-height: 80px; }

/* Upload area */
.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #fafafa;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--blue-primary);
  background: var(--blue-light);
}

.upload-area .upload-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-area.has-image { padding: 12px; }

.preview-img {
  max-height: 180px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* ── BUTTONS ── */
.btn {
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-primary {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}

.btn-primary:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
  box-shadow: 0 4px 12px rgba(13,110,253,.3);
}

.btn-sm { padding: 5px 12px; font-size: .8rem; }

.btn-icon {
  width: 34px; height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* ── SEARCH BAR ── */
.search-bar {
  position: relative;
}

.search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar .form-control {
  padding-left: 38px;
}

/* ── EQUIPMENT DETAIL ── */
.equip-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.equip-photo {
  width: 120px; height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  flex-shrink: 0;
  background: #f8fafc;
}

.equip-photo-placeholder {
  width: 120px; height: 120px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2.5rem;
  color: var(--text-muted);
}

.info-table td:first-child {
  width: 160px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: .85rem;
  padding: 7px 16px 7px 0;
}

.info-table td:last-child {
  color: var(--text-primary);
  font-size: .875rem;
}

/* QR & Barcode display */
.code-box {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
}

.code-box img { max-width: 100%; }

.code-box svg { max-width: 100%; height: auto; }

.code-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 8px;
}

/* ── TOAST ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: #1e293b;
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  min-width: 280px;
  max-width: 400px;
  animation: slideInUp .3s ease;
  border-left: 4px solid var(--blue-primary);
}

.toast-item.toast-success { border-left-color: var(--green); }
.toast-item.toast-error { border-left-color: var(--red); }
.toast-item.toast-warning { border-left-color: var(--yellow); }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-success .toast-icon { color: #4ade80; }
.toast-error .toast-icon { color: #f87171; }
.toast-warning .toast-icon { color: #fbbf24; }

@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateY(10px); }
}

.toast-item.leaving { animation: fadeOut .3s ease forwards; }

.modal-header {
  border-bottom: 1px solid var(--card-border);
  padding: 16px 20px;
}

.modal-title { font-weight: 600; font-size: 1rem; }

.modal-body { padding: 20px; }

.modal-footer {
  border-top: 1px solid var(--card-border);
  padding: 14px 20px;
  gap: 8px;
}

/* ── CUSTOM MODAL (Alert & Confirm) ── */
.cmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.cmodal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cmodal-box {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.10);
  width: 100%;
  max-width: 420px;
  margin: 20px;
  overflow: hidden;
  transform: scale(.92) translateY(12px);
  opacity: 0;
  transition: transform .28s cubic-bezier(.34,1.46,.64,1), opacity .22s ease;
  border-top: 4px solid transparent;
}

.cmodal-box.enter {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.cmodal-box.leave {
  transform: scale(.94) translateY(8px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* Borda superior por tipo */
.cmodal-box.cmodal-success { border-top-color: var(--green); }
.cmodal-box.cmodal-error   { border-top-color: var(--red); }
.cmodal-box.cmodal-warning { border-top-color: var(--yellow); }
.cmodal-box.cmodal-danger  { border-top-color: var(--red); }
.cmodal-box.cmodal-info    { border-top-color: var(--blue-primary); }

/* Ícone */
.cmodal-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.8rem;
  margin: 28px auto 0;
}

.cmodal-icon-success { background: var(--green-light); color: var(--green); }
.cmodal-icon-error   { background: var(--red-light);   color: var(--red); }
.cmodal-icon-warning { background: var(--yellow-light); color: var(--yellow); }
.cmodal-icon-danger  { background: var(--red-light);   color: var(--red); }
.cmodal-icon-info    { background: var(--blue-light);  color: var(--blue-primary); }

/* Corpo */
.cmodal-body {
  padding: 18px 28px 20px;
  text-align: center;
}

.cmodal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.3;
}

.cmodal-message {
  font-size: .875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Footer */
.cmodal-footer {
  display: flex;
  gap: 10px;
  padding: 0 20px 22px;
  justify-content: center;
}

/* Botões */
.cmodal-btn {
  flex: 1;
  max-width: 160px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cmodal-btn-cancel {
  background: #f1f5f9;
  color: var(--text-secondary);
}

.cmodal-btn-cancel:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.cmodal-btn-success {
  background: var(--green);
  color: #fff;
}
.cmodal-btn-success:hover { background: #15803d; box-shadow: 0 4px 12px rgba(22,163,74,.35); }

.cmodal-btn-error,
.cmodal-btn-danger {
  background: var(--red);
  color: #fff;
}
.cmodal-btn-error:hover,
.cmodal-btn-danger:hover { background: #b91c1c; box-shadow: 0 4px 12px rgba(220,38,38,.35); }

.cmodal-btn-warning {
  background: var(--yellow);
  color: #fff;
}
.cmodal-btn-warning:hover { background: #a16207; box-shadow: 0 4px 12px rgba(202,138,4,.35); }

.cmodal-btn-info {
  background: var(--blue-primary);
  color: #fff;
}
.cmodal-btn-info:hover { background: #0b5ed7; box-shadow: 0 4px 12px rgba(13,110,253,.35); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state .empty-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state h5 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: .875rem;
  margin-bottom: 20px;
}

/* ── MOBILE OVERLAY ── */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1035;
}

/* ── PAGINATION ── */
.pagination {
  gap: 4px;
}

.page-link {
  border-radius: var(--radius-sm) !important;
  font-size: .8rem;
  color: var(--text-secondary);
  border-color: var(--card-border);
  padding: 6px 12px;
}

.page-item.active .page-link {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}

/* ── INLINE ADD (modal for tipo/fabricante/local) ── */
.quick-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--blue-primary);
  cursor: pointer;
  margin-top: 4px;
}

.quick-add-btn:hover { text-decoration: underline; }

/* ── FILTER SECTION ── */
.filter-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  #sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width) !important;
  }

  #sidebar.open {
    transform: translateX(0);
  }

  #sidebar-overlay.show {
    display: block;
  }

  #topbar {
    left: 0 !important;
  }

  #main-content {
    margin-left: 0 !important;
  }
}

@media (max-width: 576px) {
  .content-wrapper { padding: 16px; }
  .stat-card { padding: 14px; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .stat-info .stat-value { font-size: 1.5rem; }
  .equip-detail-header { flex-direction: column; }
}

/* ===============================================
   PRINT STYLES — ETIQUETA PATRIMONIAL 50x30mm
   =============================================== */
@media print {
  @page {
    size: 50mm 30mm;
    margin: 0;
  }

  body.print-label-page * {
    visibility: hidden !important;
  }

  body.print-label-page #etiqueta-print,
  body.print-label-page #etiqueta-print * {
    visibility: visible !important;
  }

  body.print-label-page #etiqueta-print {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 50mm !important;
    height: 30mm !important;
  }
}

/* Etiqueta visual */
#etiqueta-print {
  width: 50mm;
  height: 30mm;
  background: #fff;
  display: flex;
  align-items: stretch;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.etiqueta-left {
  width: 18mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2mm;
  border-right: 0.5px solid #ddd;
  gap: 2mm;
}

.etiqueta-left img,
.etiqueta-left canvas {
  width: 14mm !important;
  height: 14mm !important;
}

.etiqueta-logo {
  max-width: 14mm;
  max-height: 6mm;
  object-fit: contain;
}

.etiqueta-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2mm 2mm 2mm 1mm;
  overflow: hidden;
}

.etiqueta-right .et-barcode svg {
  width: 100% !important;
  height: 8mm !important;
}

.etiqueta-field {
  font-size: 5.5pt;
  line-height: 1.3;
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.etiqueta-field strong {
  font-size: 5pt;
  color: #555;
  text-transform: uppercase;
}

/* Print QR page */
@media print {
  @page.print-qr {
    size: A4;
    margin: 20mm;
  }
}

body.no-module-os .requires-os {
  display: none !important;
}
