/* ============================================================
   GESTOR AUTOMOTOR — Hoja de estilos
   ============================================================ */

:root {
  /* Marca */
  --brand: #2a78d6;
  --brand-600: #1c5cab;
  --brand-soft: #eaf2fd;

  /* Superficies */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  /* Texto */
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --text-invert: #f9fafb;

  /* Sidebar (oscuro) */
  --sidebar-bg: #0f172a;
  --sidebar-text: #cbd5e1;
  --sidebar-muted: #64748b;
  --sidebar-active: #1e293b;

  /* Paleta categórica (dataviz, validada) */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;

  /* Estados de trámite */
  --st-pendiente: #d97706;
  --st-pendiente-bg: #fef3c7;
  --st-proceso: #2a78d6;
  --st-proceso-bg: #dbeafe;
  --st-completado: #16a34a;
  --st-completado-bg: #dcfce7;

  /* Éxito / error / warning */
  --ok: #16a34a;
  --ok-bg: #dcfce7;
  --err: #dc2626;
  --err-bg: #fee2e2;
  --warn: #d97706;
  --warn-bg: #fef3c7;

  /* Sombra y radio */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.16);
  --radius: 12px;
  --radius-sm: 8px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ============================ Reset / base ============================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

.hidden { display: none !important; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }

a { color: var(--brand); text-decoration: none; }

/* ============================ Botones ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }

.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }

.btn-danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err-bg); }

.btn-block { width: 100%; }
.btn-icon { padding: 8px; }

/* ============================ AUTH ============================ */
.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 10% -10%, #eaf2fd 0%, transparent 60%),
              radial-gradient(1000px 500px at 110% 110%, #e7f4ee 0%, transparent 55%),
              var(--bg);
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-brand { text-align: center; }
.brand-mark {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--brand);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.brand-mark-sm {
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 11px;
  flex-shrink: 0;
}
.auth-brand-title { font-size: 24px; margin-top: 14px; }
.auth-brand-sub { color: var(--text-3); margin: 6px 0 0; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  border: none;
  background: transparent;
  padding: 8px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-3);
}
.auth-tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-hint { color: var(--text-3); font-size: 13px; text-align: center; margin: 16px 0 0; }

.config-banner {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #f0d48a;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.config-banner code { background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 4px; }

/* ============================ Fields ============================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(42, 120, 214, 0.16);
}
.field textarea { resize: vertical; min-height: 76px; }
.field .field-help { font-size: 12px; color: var(--text-3); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .field.full { grid-column: 1 / -1; }

/* ============================ App shell ============================ */
.app-view { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-brand-name { color: #fff; font-weight: 700; font-size: 15px; }
.sidebar-brand-tag { color: var(--sidebar-muted); font-size: 12px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 550;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.is-active { background: var(--sidebar-active); color: #fff; }
.nav-icon { display: inline-flex; }
.nav-icon svg { width: 18px; height: 18px; }

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-chip { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; }
.user-name { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { color: var(--sidebar-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar .btn-ghost {
  color: var(--sidebar-text);
  border-color: rgba(255, 255, 255, 0.14);
}
.sidebar .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ============================ Main / topbar ============================ */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-title { font-size: 20px; }
.topbar-subtitle { color: var(--text-3); font-size: 13px; margin: 2px 0 0; }

.content { padding: 28px; }

/* ============================ KPIs ============================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kpi-head { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--text-3); }
.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
}
.kpi-icon svg { width: 18px; height: 18px; }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.kpi-foot { font-size: 12.5px; color: var(--text-3); }

/* ============================ Paneles / cards ============================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.panel-title { font-size: 15px; font-weight: 650; }
.panel-body { padding: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-stack { display: flex; flex-direction: column; gap: 16px; }
.mt-16 { margin-top: 16px; }

/* ============================ Tablas ============================ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1;
  max-width: 340px;
}
.search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42,120,214,0.16); }
.search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.search .search-icon svg { width: 16px; height: 16px; display: block; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  vertical-align: middle;
}
.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { font-variant-numeric: tabular-nums; }
.cell-sub { color: var(--text-3); font-size: 12.5px; }
.table .row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ============================ Badges de estado ============================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
}
.badge svg { width: 13px; height: 13px; }
.badge-pendiente { color: var(--st-pendiente); background: var(--st-pendiente-bg); }
.badge-en_proceso { color: var(--st-proceso); background: var(--st-proceso-bg); }
.badge-completado { color: var(--st-completado); background: var(--st-completado-bg); }

/* ============================ Charts ============================ */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; }
.chart .axis { stroke: var(--border-strong); stroke-width: 1; }
.chart .gridline { stroke: var(--border); stroke-width: 1; }
.chart .tick { fill: var(--text-3); font-size: 11px; }
.chart .legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.chart .legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.chart .legend-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.chart-tooltip {
  position: fixed;
  pointer-events: none;
  background: #111827;
  color: #fff;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 1000;
  white-space: nowrap;
}
.chart-tooltip.is-visible { opacity: 1; }
.chart-tooltip .tt-value { font-weight: 700; }

/* ============================ Barras horizontales ============================ */
.hbar { display: flex; flex-direction: column; gap: 14px; }
.hbar-row {
  display: grid;
  grid-template-columns: 150px 1fr 44px;
  align-items: center;
  gap: 12px;
}
.hbar-label {
  font-size: 13px;
  color: var(--text-2);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hbar-track {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.hbar-fill {
  height: 18px;
  border-radius: 0 4px 4px 0;
  transition: width 0.45s ease;
}
.hbar-value {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .hbar-row { grid-template-columns: 110px 1fr 36px; gap: 8px; }
}

/* ============================ Empty / loading ============================ */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
}
.empty .empty-icon { font-size: 34px; margin-bottom: 8px; }
.empty h4 { color: var(--text-2); margin-bottom: 4px; }
.empty p { font-size: 13.5px; margin: 0 0 16px; }

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: var(--text-3);
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ Modal ============================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
  animation: fade 0.15s ease;
}
.modal {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  animation: pop 0.18s ease;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 17px; }
.modal-close { border: none; background: transparent; color: var(--text-3); padding: 6px; border-radius: 6px; display: grid; place-items: center; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 22px; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ============================ Toast ============================ */
.toast-root {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.2s ease;
  max-width: 360px;
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-success svg { color: #4ade80; }
.toast-error svg { color: #f87171; }
.toast-info svg { color: #60a5fa; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }

/* ============================ Responsive ============================ */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-view { grid-template-columns: 1fr; }
  .sidebar { position: fixed; bottom: 0; top: auto; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 8px; z-index: 50; }
  .sidebar-brand, .sidebar-footer { display: none; }
  .sidebar-nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .nav-item { flex-direction: column; gap: 3px; padding: 6px; font-size: 11px; }
  .main { padding-bottom: 70px; }
  .content { padding: 16px; }
  .topbar { padding: 16px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================ Empresa / filtro / checkboxes ============================ */
.empresa-select {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  height: 38px;
}
.empresa-select svg { width: 16px; height: 16px; color: var(--text-3); }
.empresa-select select {
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--text);
  outline: none;
  max-width: 180px;
}

.user-role { color: var(--sidebar-muted); font-size: 11.5px; text-transform: capitalize; }
.sidebar .field-label { color: var(--sidebar-muted); }
.sidebar select {
  width: 100%;
  padding: 8px 10px;
  background: #1e293b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
}
.sidebar select option { background: #1e293b; }

/* Filtro por fecha (dashboard) */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .filter-label { font-size: 13px; font-weight: 600; color: var(--text-3); }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-pill:hover { border-color: var(--brand); color: var(--brand); }
.filter-pill.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter-date { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.filter-date input {
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
}
.filter-date input:focus { outline: none; border-color: var(--brand); }

/* Checkbox group (entrega, empresas) */
.check-group { display: flex; gap: 8px; flex-wrap: wrap; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
}
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

/* Acciones CSV y monto */
.btn-soft { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-2); }
.btn-soft:hover { background: var(--surface); border-color: var(--text-3); }
.csv-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.monto { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================ Selects de filtro ============================ */
.filter-select {
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}
.filter-select:focus { outline: none; border-color: var(--brand); }

/* ============================ Resumen de reportes ============================ */
.resumen-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.resumen-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.resumen-label { font-size: 12px; color: var(--text-3); font-weight: 600; }
.resumen-value { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

@media (max-width: 900px) {
  .resumen-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================ Encabezado/pie para impresión ============================ */
.print-header, .print-footer { display: none; }

@media print {
  .sidebar, .topbar, .toast-root, #modal-root { display: none !important; }
  .app-view { display: block !important; }
  .main { padding: 0; }
  .content { padding: 0; }
  body { background: #fff; }
  .panel { border: none; box-shadow: none; }
  .toolbar, .csv-actions, .filter-bar { display: none !important; }
  .print-header, .print-footer { display: block !important; }
  .print-header { font-size: 15px; font-weight: 700; margin-bottom: 16px; white-space: pre-line; }
  .print-footer { font-size: 12px; color: #333; margin-top: 20px; border-top: 1px solid #ccc; padding-top: 8px; white-space: pre-line; }
  .table td, .table th { border-color: #ddd; }
}

/* ============================ Tablas de impresión e imágenes de encabezado/pie ============================ */
.print-only { display: none; }
.img-preview img { max-width: 100%; max-height: 90px; display: block; margin-top: 8px; }

@media print {
  .screen-only { display: none !important; }
  .print-only { display: block !important; }
  .print-header img { width: 100%; height: auto; display: block; margin: 0 0 10px; }
  .print-footer img { max-width: 100%; max-height: 90px; height: auto; display: block; margin: 8px auto 0; }
}
