/* PDF Styles - Optimisé pour wkhtmltopdf */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.3;
  color: #1f2937;
}

/* Container */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Spacing */
.px-10 { padding-left: 10px; padding-right: 10px; }
.px-2 { padding-left: 4px; padding-right: 4px; }
.py-8 { padding-top: 20px; padding-bottom: 20px; }
.py-1 { padding-top: 2px; padding-bottom: 2px; }
.py-2 { padding-top: 4px; padding-bottom: 4px; }
.pb-2 { padding-bottom: 4px; }
.mb-10 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 20px; }
.mb-2 { margin-bottom: 4px; }
.mt-10 { margin-top: 24px; }
.mt-8 { margin-top: 20px; }
.mt-2 { margin-top: 4px; }

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-2xl { font-size: 16px; font-weight: 800; }
.text-lg { font-size: 14px; }
.text-sm { font-size: 10px; }
.text-xs { font-size: 9px; }
.leading-tight { line-height: 1.25; }
.font-sans { font-family: Arial, sans-serif; }
.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.tracking-wide { letter-spacing: 0.05em; }

/* Colors */
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-50 { background-color: #f9fafb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-400 { border-color: #9ca3af; }

/* Border */
.border { border: 1px solid #000; }
.border-b { border-bottom: 1px solid #000; }
.border-t { border-bottom-width: 1px; }

/* Layout */
.grid { display: block; }
.grid-cols-2 > div { display: inline-block; width: 48%; vertical-align: top; }
.gap-6 { margin-bottom: 12px; }
.w-full { width: 100%; }
.w-1-4 { width: 25%; }
.w-1-2 { width: 50%; }
.w-auto { width: auto; }
.h-10 { height: 24px; }
.h-12 { height: 28px; }
.h-16 { height: 40px; }
.h-20 { height: 50px; }
.h-24 { height: 60px; }
.h-32 { height: 80px; }
.h-40 { height: 100px; }
.h-48 { height: 120px; }

/* Flexbox compatible with wkhtmltopdf */
.flex {
  display: block;
  width: 100%;
}

.flex > div {
  display: inline-block;
  vertical-align: top;
}

.items-start > div {
  vertical-align: top;
}

.justify-between {
  text-align: justify;
}

.justify-between::after {
  content: "";
  display: inline-block;
  width: 100%;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 8px;
}

table th,
table td {
  border: 1px solid #d1d5db;
  padding: 3px 2px;
  text-align: left;
  word-wrap: break-word;
  overflow: hidden;
}

table th {
  background-color: #e5e7eb;
  color: #374151;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 7px;
  line-height: 1.2;
}

/* Colonnes du tableau d'émargement - largeurs fixes optimisées */
table th:nth-child(1),
table td:nth-child(1) { width: 18%; } /* Nom, Prénom */

table th:nth-child(2),
table td:nth-child(2) { width: 14%; } /* Entreprise */

table th:nth-child(3),
table td:nth-child(3) { width: 13%; } /* Emargement matin */

table th:nth-child(4),
table td:nth-child(4) { width: 20%; } /* Signature matin */

table th:nth-child(5),
table td:nth-child(5) { width: 13%; } /* Emargement après-midi */

table th:nth-child(6),
table td:nth-child(6) { width: 20%; } /* Signature après-midi */

table tbody tr.even\:bg-gray-50:nth-child(4n+1) {
  background-color: #f9fafb;
}

table img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Small text in headers */
table small {
  font-size: 6px;
  font-weight: normal;
  text-transform: none;
}

/* Images outside tables */
img {
  max-width: 100%;
  height: auto;
  display: block;
} 