/* ============================================================
   AMPA Escola Calderon — QR Tool
   Global stylesheet (index, admin, redirect)
   ============================================================ */

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --c-primary:       #1E40AF;
  --c-primary-hover: #1D3FA5;
  --c-primary-light: #DBEAFE;
  --c-primary-dark:  #1E3A8A;
  --c-accent:        #F59E0B;
  --c-accent-hover:  #D97706;
  --c-success:       #10B981;
  --c-danger:        #EF4444;
  --c-danger-hover:  #DC2626;
  --c-warning:       #F59E0B;

  --c-bg:       #F1F5F9;
  --c-surface:  #FFFFFF;
  --c-border:   #E2E8F0;
  --c-input-bg: #F8FAFC;

  --c-text:       #1E293B;
  --c-text-muted: #64748B;
  --c-text-light: #94A3B8;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  --transition: 180ms ease;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

/* ─── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ─── Header ────────────────────────────────────────────────── */
.header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

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

.brand-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--c-text);
}

.brand-subtitle {
  font-size: .75rem;
  color: var(--c-text-muted);
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text-muted);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--c-primary-light);
  color: var(--c-primary);
  text-decoration: none;
}

/* ─── Page header ───────────────────────────────────────────── */
.main { padding: 32px 0 60px; }

.page-header { margin-bottom: 28px; }

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
}

.page-desc {
  margin-top: 4px;
  font-size: .9rem;
  color: var(--c-text-muted);
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  padding: 28px;
}

/* ─── Generator layout — mobile-first ───────────────────────── */
/* Mobile: single column, form above preview */
.generator-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Desktop: two-column grid */
@media (min-width: 900px) {
  .generator-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
  }
}

/* ─── Form elements ─────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}

.form-label.required::after {
  content: ' *';
  color: var(--c-danger);
}

.form-input {
  width: 100%;
  padding: 9px 13px;
  font-size: .9rem;
  font-family: inherit;
  background: var(--c-input-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, .12);
  background: var(--c-surface);
}

.form-input::placeholder { color: var(--c-text-light); }

.form-input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.form-hint {
  display: block;
  margin-top: 5px;
  font-size: .78rem;
  color: var(--c-text-muted);
}

.form-error-inline {
  display: block;
  margin-top: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-danger);
}

/* Red border on the input when validation fails */
.form-input.input-error {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

/* Mobile: single column */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Wider screens: two columns */
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* Checkbox */
.form-group-checkbox { display: flex; flex-direction: column; justify-content: flex-end; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--c-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── Slug preview ──────────────────────────────────────────── */
.slug-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 7px 11px;
  background: var(--c-primary-light);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  min-height: 32px;
}

.slug-preview-label { color: var(--c-primary-dark); font-weight: 600; flex-shrink: 0; }

.slug-preview-url {
  font-family: var(--font-mono);
  color: var(--c-primary);
  word-break: break-all;
}

/* ─── Logo upload ────────────────────────────────────────────── */
.logo-upload-area {
  border: 2px dashed var(--c-border);
  border-radius: var(--radius);
  background: var(--c-input-bg);
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.logo-upload-area:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}

.logo-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  color: var(--c-text-muted);
  font-size: .85rem;
  font-weight: 500;
  pointer-events: none;
}

.logo-upload-content svg { color: var(--c-primary); opacity: .6; }

.logo-hint { font-size: .75rem; font-weight: 400; }

.logo-preview-area {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 8px;
}

.logo-preview-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-danger);
  color: #fff;
  font-size: .7rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  line-height: 1;
}

.logo-options {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  cursor: pointer;
  color: var(--c-text-muted);
  font-weight: 500;
}

.radio-label input[type="radio"] { accent-color: var(--c-primary); }

/* ─── Color mode selector ───────────────────────────────────── */
.color-mode-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.color-mode-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.color-mode-option:hover { border-color: var(--c-primary); color: var(--c-primary); }

.color-mode-option.selected {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
  color: var(--c-primary);
}

.color-swatch {
  width: 40px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,.08);
}

.ampa-swatch { background: linear-gradient(135deg, #1E40AF, #F59E0B); }
.mono-swatch { background: #1F2937; }
.custom-swatch { background: conic-gradient(#EF4444, #F59E0B, #10B981, #3B82F6, #EF4444); }

.custom-colors {
  padding: 14px;
  background: var(--c-bg);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}

/* Mobile: 2 columns */
.color-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Wider: 4 columns */
@media (min-width: 480px) {
  .color-row { grid-template-columns: repeat(4, 1fr); }
}

.color-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  font-size: .75rem;
  color: var(--c-text-muted);
  font-weight: 500;
}

.color-item input[type="color"] {
  width: 44px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  cursor: pointer;
  padding: 2px;
  background: none;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  min-height: 44px;   /* touch-friendly tap target */
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 1px 4px rgba(30,64,175,.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--c-primary-hover);
  box-shadow: 0 4px 12px rgba(30,64,175,.35);
}

.btn-secondary {
  background: var(--c-accent);
  color: #fff;
}

.btn-secondary:hover:not(:disabled) { background: var(--c-accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}

.btn-outline:hover:not(:disabled) { background: var(--c-primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
  border: 1.5px solid var(--c-border);
}

.btn-ghost:hover:not(:disabled) { background: var(--c-bg); color: var(--c-text); }

.btn-danger {
  background: var(--c-danger);
  color: #fff;
}

.btn-danger:hover:not(:disabled) { background: var(--c-danger-hover); }

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

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius);
  width: 100%;
}

.btn-icon {
  padding: 7px;
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
}

.form-actions { margin-top: 28px; }

/* ─── Preview card ──────────────────────────────────────────── */
/* Mobile: static, sits below the form */
.preview-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Desktop: stick to the top while scrolling the form */
@media (min-width: 900px) {
  .preview-card {
    position: sticky;
    top: 80px;
  }
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-title {
  font-size: 1rem;
  font-weight: 700;
}

.preview-badge {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--c-success);
  color: #fff;
}

.preview-badge.generated {
  background: var(--c-primary);
}

.qr-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  padding: 8px;
}

/* The placeholder sits on top of the (always-rendering) QR canvas.
   Hidden once the user has typed a URL. */
.qr-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--c-text-muted);
  font-size: .875rem;
  text-align: center;
  background: var(--c-surface);
  border-radius: var(--radius);
}

.qr-placeholder::before {
  content: '';
  display: block;
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    45deg,
    var(--c-bg) 0px, var(--c-bg) 8px,
    var(--c-border) 8px, var(--c-border) 9px
  );
}

/* Render target: the qr-code-styling canvas lives here */
#qr-render { position: relative; z-index: 1; }

.qr-info {}

.qr-url-display {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: var(--c-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
}

.qr-url-label { font-size: .72rem; font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .05em; }

.qr-url-value {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--c-primary);
  word-break: break-all;
}

/* Mobile: stack buttons vertically */
.export-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .export-actions { grid-template-columns: 1fr 1fr; }
}

.preview-hint {
  text-align: center;
  font-size: .78rem;
  color: var(--c-text-light);
}

/* ─── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.toast.show { opacity: 1; }
.toast.success { background: var(--c-success); }
.toast.error   { background: var(--c-danger); }

/* ─── Admin — login screen ──────────────────────────────────── */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.login-logo img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  margin: 0 auto;
}

.login-logo h1 { font-size: 1.2rem; font-weight: 700; }
.login-logo p { font-size: .85rem; color: var(--c-text-muted); }

.form-error {
  padding: 9px 12px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  color: var(--c-danger);
  font-size: .85rem;
  margin-bottom: 14px;
}

/* ─── Admin — panel ─────────────────────────────────────────── */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-chip {
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--c-primary-light);
  color: var(--c-primary);
}

.stat-chip.expired { background: #FEF2F2; color: var(--c-danger); }

/* History table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.history-table thead {
  background: var(--c-bg);
  border-bottom: 2px solid var(--c-border);
}

.history-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-text-muted);
  white-space: nowrap;
}

.history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}

.history-table tbody tr:last-child td { border-bottom: none; }

.history-table tbody tr:hover { background: var(--c-bg); }

.table-slug {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--c-primary);
  font-weight: 600;
}

.table-url {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-text-muted);
  font-size: .82rem;
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 99px;
  white-space: nowrap;
}

.badge-active {
  background: #D1FAE5;
  color: #065F46;
}

.badge-expired {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-permanent {
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--c-text-muted);
}

.empty-state p { margin-top: 8px; font-size: .9rem; }

/* ─── Modal ─────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--c-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  padding: 28px;
  transform: scale(.95) translateY(8px);
  transition: transform 200ms ease;
}

.modal-backdrop.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title { font-size: 1.05rem; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.modal-close:hover { background: var(--c-bg); }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Delete confirm modal */
.confirm-message {
  color: var(--c-text-muted);
  font-size: .9rem;
}

.confirm-slug {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-danger);
}

/* ─── Redirect page ─────────────────────────────────────────── */
.redirect-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px 60px;
  min-height: 70vh;
}

.redirect-card {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.redirect-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.redirect-icon.loading { background: var(--c-primary-light); color: var(--c-primary); }
.redirect-icon.ready   { background: #D1FAE5; color: #065F46; }
.redirect-icon.expired { background: #FEE2E2; color: var(--c-danger); }
.redirect-icon.error   { background: #FEF3C7; color: #92400E; }

.redirect-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.redirect-desc {
  font-size: .9rem;
  color: var(--c-text-muted);
  margin-bottom: 24px;
}

.destination-box {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 20px 0;
  text-align: left;
}

.destination-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}

.destination-url {
  font-size: .85rem;
  color: var(--c-text);
  word-break: break-all;
  font-family: var(--font-mono);
}

.expiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--c-primary-light);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 20px;
  font-size: .78rem;
  color: var(--c-text-light);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
  margin-top: auto;
}

/* ─── Utilities ─────────────────────────────────────────────── */
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.text-center { text-align: center; }
.text-muted  { color: var(--c-text-muted); }
.text-danger { color: var(--c-danger); }
.text-success { color: var(--c-success); }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* ─── Responsive tweaks ─────────────────────────────────────── */

/* Mobile defaults */
.card { padding: 20px; }
.page-title { font-size: 1.25rem; }
.main { padding: 20px 0 40px; }

/* Hide "Caducitat" column on small screens — show on wider ones */
.history-table th:nth-child(4),
.history-table td:nth-child(4) { display: none; }

@media (min-width: 640px) {
  .card { padding: 28px; }
  .page-title { font-size: 1.5rem; }
  .main { padding: 32px 0 60px; }
  .history-table th:nth-child(4),
  .history-table td:nth-child(4) { display: table-cell; }
}
